@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  --ink: #202223;
  --ink-soft: #6d7175;
  --sand: #f6f6f7;
  --paper: rgba(255, 255, 255, 0.96);
  --paper-strong: #ffffff;
  --line: #e3e5e8;
  --line-v2: #fafafa;
  --sidebar-width: 320px;
  --sidebar-width-collapsed: 92px;
  --sidebar-width-current: var(--sidebar-width);
  --topbar-height: 84px;
  --violet: #4b1fcf;
  --violet-deep: #37178f;
  --violet-soft: #efe9ff;
  --teal: #008060;
  --teal-soft: #dff7ea;
  --amber: #48b618;
  --amber-soft: #e2e2e2;
  --danger: #bf1515;
  --danger-soft: #fff0ed;
  --shadow: 0px 4px 24px rgba(26, 26, 26, 0.06);
  --shadow-v2: 0px 6px 24px -12px rgba(26, 26, 26, 0.5);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background: var(--sand);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(75, 31, 207, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(0, 128, 96, 0.04), transparent 26%),
    linear-gradient(180deg, #f6f6f7 0%, #f1f2f3 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
.metric-card strong,
.client-row strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}
/*.status-pill,*/

p,
li,
dd {
  line-height: 1.6;
}

.page-shell {
  min-height: 100vh;
  padding: 0;
}

.client-auth-shell {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  padding: 32px 18px 24px;
}

.client-auth-stage {
  display: grid;
  width: 100%;
  min-height: calc(100vh - 96px);
  place-items: center;
}

.client-auth-card {
  width: min(100%, 460px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 44px rgba(17, 18, 19, 0.08);
}

.client-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

.client-auth-logo {
  display: block;
  width: min(240px, 72%);
  height: auto;
  object-fit: contain;
}

.client-auth-brand-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.client-auth-heading {
  text-align: center;
}

.client-auth-heading .eyebrow {
  margin-bottom: 8px;
}

.client-auth-actions {
  display: grid;
  gap: 12px;
}

.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--violet-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 4px 0 0;
  text-align: center;
  transition: color 120ms ease, opacity 120ms ease;
}

.link-button:hover {
  color: var(--violet);
}

.client-auth-footer {
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding-top: 12px;
  text-align: center;
}

.page-shell--sidebar-collapsed {
  --sidebar-width-current: var(--sidebar-width-collapsed);
}

.loading-shell,
.auth-layout {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.loading-shell {
  display: grid;
  place-items: center;
}

.loading-card,
.brand-card,
.guide-card,
.auth-card,
.credential-card,
.sidebar-card,
.panel,
.metric-card,
.flash,
.topbar {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.flash {
  border: 1px solid var(--line-v2);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-v2);
  position:fixed;
  top:10px; left: 50%;
  z-index:9999;
  transform:translateX(-50%);
}

.loading-card,
.brand-card,
.guide-card,
.auth-card,
.credential-card,
.sidebar-card,
.panel,
.topbar {
  padding: 22px;
}

.loading-card h1,
.brand-card h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  gap: 24px;
}

.brand-column,
.auth-column,
.main-column,
.sidebar {
  display: grid;
  gap: 20px;
}

.main-column {
  min-height: 100vh;
  padding: calc(var(--topbar-height) + 24px) 32px 36px;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(239, 233, 255, 0.92), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 249, 250, 1));
  box-shadow: none;
  align-content: start;
}

.brand-card {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.4), transparent 30%),
    linear-gradient(180deg, rgba(23, 49, 67, 0.96), rgba(32, 74, 88, 0.93));
  color: #f6fbfd;
  min-height: 420px;
}

.brand-card .eyebrow {
  color: #86efe6;
}

.lead {
  max-width: 56ch;
  font-size: 1.02rem;
}

.brand-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: auto;
}

.metric-tile {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-label,
.stat-label,
dt,
.eyebrow {
  display: block;
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

section.pageTitleSection
{
  font-size:1.1rem;
  font-weight:700;
  letter-spacing:0rem;
  color:(--ink);
}
.pageTitleSection .pageTitleIcon
{
  width:30px;
  display:inline-block;
  margin-right:4px;
  margin-top:3px;
}

.pageTitleSection .pageTitle
{
  display:inline-block;
  vertical-align: top;
}
.pageTitleIcon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.eyebrow {
  color: var(--amber);
}

.guide-list {
  margin: 0;
  padding-left: 18px;
}

.panel-heading {
  margin-bottom: 18px;
}

.panel-heading--inline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.panel-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.panel-heading h2,
.auth-card h2,
.credential-card h2,
.guide-card h2,
.topbar h2 {
  margin: 8px 0 0;
  font-size: 1.55rem;
}

.stack-form,
.field-grid,
.workspace-grid,
.metric-strip,
.channel-board,
.client-list,
.panel-meta,
.topbar-actions,
.form-actions,
.credential-grid {
  display: grid;
  gap: 16px;
}

.stack-form {
  display: grid;
  gap: 18px;
}

.form-actions {
  grid-template-columns: 49% minmax(0, 1fr);
  align-items: center;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(23, 49, 67, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(13, 123, 114, 0.52);
  box-shadow: 0 0 0 4px rgba(13, 123, 114, 0.13);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.primary-button,
.ghost-button,
.danger-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  padding: 11px 16px;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.primary-button {
  background: #111213;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 18, 19, 0.12);
}

.ghost-button {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.ghost-button--light {
  border-color: rgba(32, 34, 35, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.danger-button {
  background: #ffffff;
  color: var(--danger);
  border-color: rgba(215, 44, 13, 0.18);
}

.credential-card p {
  margin-bottom: 0;
}

.credential-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

dd {
  margin: 0;
}

code {
  display: inline-block;
  border-radius: 999px;
  background: rgba(23, 49, 67, 0.07);
  padding: 4px 10px;
}

.flash {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.flash--inline {
  margin-bottom: 0;
}

.flash--success {
  background: #f1f8f5;
}

.flash--error {
  background: #ffffff;
}

.flash--error .flash-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--danger);
  color: #ffffff;
}

.flash--error .flash-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.flash--info {
  background: #f1f7fe;
}

.flash-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 auto;
}

.flash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.flash-icon svg,
.flash-close-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  fill: none;
}

.flash-message {
  flex: 1 1 auto;
  line-height: 1.5;
}

.flash-close-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  transition: opacity 120ms ease, transform 120ms ease;
}

.flash-close-button:hover {
  opacity: 1;
  transform: scale(1.04);
}

.app-shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  grid-template-columns: var(--sidebar-width-current) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-card--brand {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}

.sidebar-card-header,
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.topbar {
  align-items: center;
}

.topbar-subtitle {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  align-items: stretch;
  align-content: flex-start;
  justify-content: flex-start;
  gap: 2px;
  height: 100vh;
  max-height: 100vh;
  overflow: auto;
  padding: 30px 10px 18px;
  padding-right: 8px;
  border-radius: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #4d20d1 0%, #391692 100%);
  color: #f7f3ff;
  box-shadow: 0 28px 56px rgba(41, 16, 109, 0.34);
}

.sidebar--collapsed .sidebar-brand-row {
  justify-content: center;
  padding-inline: 0;
}

.sidebar--collapsed .sidebar-brand-title,
.sidebar--collapsed .admin-nav-label,
.sidebar--collapsed .sidebar-footer {
  display: none;
}

.sidebar--collapsed .admin-nav-button {
  justify-content: center;
  padding-inline: 8px;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.client-list {
  max-height: 360px;
  overflow: auto;
}

.client-row {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  padding: 16px;
  text-align: left;
}

.client-row span {
  color: rgba(255, 255, 255, 0.74);
}

.client-row--active {
  border-color: rgba(255, 255, 255, 0.22);
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(24, 8, 71, 0.24);
  color: var(--violet-deep);
}

.client-row--active span {
  color: rgba(55, 23, 143, 0.72);
}

.client-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  max-height:28px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight:500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(23, 49, 67, 0.07);
}

.status-pill--plan {
  background: rgba(75, 31, 207, 0.1);
  color: var(--violet-deep);
}

.status-pill--active,
.status-pill--connected,
.status-pill--on-duty {
  background: var(--teal-soft);
  color: #0a6259 !important;
}

.status-pill--connected
{
  background:var(--teal-soft) url(../assets/connected_icon.svg) no-repeat 5px 5px;
  background-size: 18px;
  padding-left:28px;
}

.status-pill--pending,
.status-pill--trial,
.status-pill--past-due {
  background: var(--amber-soft);
  color: #bf1515;
}

.status-pill--pending
{
  background: #efefef;
  color: #333;
}

.status-pill--disconnected,
.status-pill--suspended,
.status-pill--error,
.status-pill--off-duty {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-pill--disconnected
{
  background:var(--danger-soft) url(../assets/disconnected_icon.svg) no-repeat 5px 3px;
  background-size: 23px;
  padding-left:31px;
}

.status-pill--off-duty {
  background: rgba(23, 49, 67, 0.08);
  color: var(--ink-soft);
}

.metric-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.metric-card {
  padding: 20px;
}

.metric-card strong {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  letter-spacing: -0.04em;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.95fr);
}

.panel-meta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.panel-meta strong {
  color: var(--ink);
  margin-right: 8px;
}

.panel--accent {
  background:
    radial-gradient(circle at top left, rgba(79, 210, 193, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(23, 49, 67, 0.97), rgba(32, 74, 88, 0.93));
  color: #222222;
}

.panel--accent .eyebrow {
  color: #1823b6;
}

.channel-board {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.channel-panel {
  border-radius: 22px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dfdfdf;
}

.channel-panel p {
  margin-bottom: 0;
  color:#666666;
}

.channel-status
{
  display:block;
  margin-top:10px;
}

.channel-panel img.channel_service_icon
{
  width:50px;
}

.channel-panel-header {
  display: inline-block;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 0px;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.integration-card {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid #dfdfdf;
  border-radius: 22px;
  background: #ffffff;
}

.integration-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: top;
}

.integration-card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0px 2px 10px -3px #cfcfcf;
}

.integration-card-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.integration-card-icon__fallback {
  color: var(--violet-deep);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.integration-card-copy {
  display: grid;
  gap: 6px;
}

.integration-card-copy strong {
  font-size: 1rem;
}

.integration-card-account {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  padding:5px 10px !important;
  margin-top:5px;
}

.integration-card-copy span
{
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.integration-card-status {
  display: inline-block;
  gap: 10px;
}

.integration-card-actions {
  display: flex;
  flex-direction: column;
  height:100%;
}

.integration-card-actions button
{
  margin-top: auto;
  width:120px;
  height:46px;
}

.empty-card {
  border: 1px dashed rgba(23, 49, 67, 0.16);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.52);
}

.empty-card--large {
  min-height: 280px;
  display: grid;
  place-content: center;
}

.empty-card--inverted {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

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

  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .auth-layout,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .brand-card {
    min-height: auto;
  }

  .brand-metrics,
  .field-grid,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .sidebar-card-header,
  .panel-heading--inline {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 0;
  }

  .client-auth-shell {
    padding: 22px 14px 18px;
  }

  .client-auth-stage {
    min-height: calc(100vh - 72px);
  }

  .client-auth-card {
    padding: 24px 22px;
    border-radius: 22px;
  }

  .loading-card,
  .brand-card,
  .guide-card,
  .auth-card,
  .credential-card,
  .sidebar-card,
  .panel,
  .topbar {
    padding: 22px;
    border-radius: 22px;
  }

  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .flash {
    flex-direction: column;
    align-items: stretch;
  }
}

.brand-card--client {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(17, 71, 98, 0.97), rgba(10, 114, 102, 0.94));
}

.client-app-shell .sidebar {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #17181c 0%, #0f1013 100%);
  color: #f4f5f6;
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.34);
}

.client-app-shell .sidebar-brand-mark {
  background: #ffffff;
  color: #111213;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.client-app-shell .sidebar .admin-nav-button {
  color: rgba(255, 255, 255, 0.9);
}

.client-app-shell .sidebar .admin-nav-icon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.client-app-shell .sidebar .admin-nav-button--active {
  background: #ffffff;
  color: #111213;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.client-app-shell .sidebar .admin-nav-button--active .admin-nav-icon {
  background: rgba(17, 18, 19, 0.08);
  color: #111213;
}

.client-app-shell .sidebar-footer {
  color: rgba(255, 255, 255, 0.62);
}

.client-app-shell .sidebar-footer strong,
.client-app-shell .sidebar-brand-title {
  color: #ffffff;
}

.sidebar-card--client {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(180deg, rgba(231, 247, 245, 0.96), rgba(247, 250, 255, 0.96));
}

.app-switch {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.app-switch p {
  margin-bottom: 0;
}

.anchor-button {
  color: inherit;
  text-decoration: none;
}

.anchor-button--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.workspace-selector,
.summary-grid,
.insight-grid,
.detail-list,
.conversation-feed {
  display: grid;
  gap: 14px;
}

.workspace-chip {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(23, 49, 67, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.workspace-chip strong,
.summary-card strong,
.detail-row strong,
.conversation-card strong {
  display: block;
}

.workspace-chip span {
  color: var(--ink-soft);
}

.workspace-chip--active {
  border-color: rgba(13, 123, 114, 0.45);
  background: linear-gradient(180deg, rgba(220, 247, 242, 0.92), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(13, 123, 114, 0.08);
}

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

.summary-card,
.insight-card,
.detail-row,
.conversation-card {
  border-radius: 22px;
  border: 1px solid rgba(23, 49, 67, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.detail-list {
  margin-bottom: 16px;
}

.detail-row strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.08rem;
}

.value-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.value-stack p {
  margin: 0;
}

.panel-note {
  align-self: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.panel-inline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top:8px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.availability-pill__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.availability-pill--online {
  color: #0f8b55;
  background: rgba(104, 197, 157, 0.12);
}

.availability-pill--offline {
  color: #7d8595;
  background: rgba(181, 187, 197, 0.14);
}

.availability-text
{
  color:#666666;
  font-weight: 500;
  letter-spacing: -0.2px;
}

.duty-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  color: #253046;
  background: #ffffff;
  border: 0px solid rgba(37, 48, 70, 0.1);
  border-radius: 999px;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    opacity 120ms ease;
}

.duty-toggle:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.duty-toggle__track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d9dfeb;
  transition: background-color 120ms ease;
}

.duty-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: transform 120ms ease;
}

.duty-toggle__label {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.duty-toggle--active {
  border-color: rgba(15, 139, 85, 0.16);
  background: rgba(15, 139, 85, 0.05);
}

.duty-toggle--active .duty-toggle__track {
  background: rgba(15, 139, 85, 0.9);
}

.duty-toggle--active .duty-toggle__thumb {
  transform: translateX(16px);
}

.duty-toggle--inactive {
  border-color: rgba(125, 133, 149, 0.18);
  background: rgba(125, 133, 149, 0.05);
}

.conversation-feed {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.agent-feed {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.conversation-card {
  display: grid;
  gap: 14px;
}

.agent-card {
  align-content: start;
}

.agent-card-header-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.agent-duty-status
{
  display:grid;
}

.agent-card-header-main strong {
  min-width: 0;
}

.agent-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.agent-card-note {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.agent-card-editor {
  padding-top: 6px;
}

.agent-card-avatar {
  flex: 0 0 auto;
}

.conversation-card p {
  margin: 0;
}

.conversation-card-header,
.conversation-card-footer,
.conversation-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.conversation-card-header,
.conversation-card-footer,
.conversation-meta time {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.conversation-meta span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.agent-card-header-main .agent-display-name
{
  color: var(--ink);
  font-size: 1.2rem !important;
  font-weight: 700;
}

span.agent-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

span.agent-availability__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

span.agent-availability--online {
  color: #02a852 !important;
  
}

span.agent-availability--offline {
  color: #909090 !important;
}

span.agent-availability-text
{
  font-size:0.82rem !important;
  color:#333 !important;
  font-weight: 400;
}

.conversation-card-footer {
  flex-wrap: wrap;
}

.badge-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 7px;
  max-height:30px;
  background: rgba(13, 123, 114, 0.12);
  color: #04534b;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(13, 123, 114, 0.12);
  color: #0a6259;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge--muted {
  background: rgba(23, 49, 67, 0.08);
  color: var(--ink-soft);
}

.badge--light {
  background: #efefef;
  color: var(--ink-soft);
}

.badge--open {
  background: #dbfef0;
  color: #00493e;
}

.badge--pending {
  background: #efefef;
  color: var(--ink-soft);
}

.badge--resolved,
.badge--closed {
  background: #5fc930;
  color: #ffffff;
}

.badge--archived {
  background: #efefef;
  color: var(--ink-soft);
}

.badge--unread {
  background:var(--danger);
  color: #ffdbdb;
}

.panel--inbox {
  background:
    radial-gradient(circle at top left, rgba(79, 210, 193, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 250, 255, 0.92));

  padding-top:10px;
}

.inbox-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
}

.inbox-shell--filters-open {
  grid-template-columns: minmax(520px, 580px) minmax(0, 1fr);
}

.inbox-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.inbox-list-layout--filters-open {
  grid-template-columns: minmax(180px, 220px) minmax(280px, 340px);
}

.inbox-list-panel,
.thread-panel {
  min-height: 760px;
  max-height: clamp(540px, calc(100vh - 220px), 780px);
  border: 1px solid rgba(23, 49, 67, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:0px 0px 16px 0px #f5f5f5;
}

.inbox-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.inbox-list-panel-header,
.thread-header,
.thread-composer {
  padding: 18px 20px;
}

.inbox-list-panel-header p,
.thread-subtitle {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.inbox-list-panel-header {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid rgba(23, 49, 67, 0.08);
}

.inbox-list {
  scrollbar-width: thin;
  scrollbar-color: #dfdfdf #f1f1f1; /* thumb color | track color */
}

.inbox-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.inbox-list-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.inbox-toolbar__filter-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0px solid rgba(23, 49, 67, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease,
    transform 120ms ease;
}

.inbox-toolbar__filter-button img
{
  width:26px;
}

.inbox-toolbar__filter-button:hover {
  background: #fafafa;
  color: var(--violet-deep);
  transform: translateY(-1px);
}

.inbox-toolbar__filter-button--active {
  border-color: rgba(75, 31, 207, 0.22);
  background: #f1f1f1;
  color: var(--violet-deep);
}

.inbox-toolbar__filter-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.inbox-search-box {
  display: block;
}

.inbox-search-box input {
  width: 100%;
  min-height: 38px;
  padding: 0 14px 0 14px;
  border: 1px solid #f5f5f5;
  border-radius: 25px;
  background: #f5f5f5 url(../assets/search_light_icon.svg) no-repeat 96% 5px;
  background-size:24px;
  color: var(--ink);
  font-size:0.82rem;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.inbox-search-box input::placeholder {
  color: #888;
}

.inbox-search-box input:focus {
  border-color: rgba(13, 123, 114, 0.52);
  box-shadow: 0 0 0 4px rgba(13, 123, 114, 0.13);
  background: #ffffff url(../assets/search_light_icon.svg) no-repeat 96% 5px;
  background-size:24px;
}

.inbox-filter-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 760px;
  max-height: clamp(540px, calc(100vh - 220px), 780px);
  padding: 18px 4px;
  border: 1px solid rgba(23, 49, 67, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.68);
  overflow: auto;
  box-shadow:0px 0px 16px 0px #f5f5f5;
}

.inbox-filter-card__section {
  display: grid;
  gap: 10px;
  margin-bottom:20px;
}

.inbox-filter-card__subtitle {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.0em;
  text-transform: uppercase;
  padding:0px 10px;
}

.inbox-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inbox-filter-group--stacked {
  display: grid;
  gap: 2px;
}

.inbox-filter-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0px solid rgba(23, 49, 67, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  padding: 8px 10px;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.inbox-filter-button-icon
{
  display:inline-block;
  margin-right:10px;
}

.inbox-filter-group--stacked .inbox-filter-button {
  justify-content: flex-start;
  width: 100%;
  text-align: left;
}

.inbox-filter-button__label {
  min-width: 0;
}

.inbox-filter-button__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.inbox-filter-button__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 49, 67, 0.08);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.inbox-filter-button__unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #d92d20;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.inbox-filter-button--active .inbox-filter-button__count {
  background: rgba(75, 31, 207, 0.12);
  color: var(--violet-deep);
}

.inbox-filter-button:hover {
  border-color: rgba(75, 31, 207, 0.18);
  background:#f1f1f1;
  color: var(--ink);
}

.inbox-filter-button--active {
  border-color: rgba(75, 31, 207, 0.22);
  background:#f1f1f1;
  color: var(--ink);
  font-weight: 700;;
}

.inbox-list {
  display: inline-block;
  gap: 0px;
  padding: 0px;
  overflow: auto;
  width:100%;
}

.inbox-row {
  border: 0px solid rgba(23, 49, 67, 0.08);
  border-top:1px solid #efefef;
  /*border-radius: 20px;*/
  background: rgba(255, 255, 255, 0.84);
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 16px;
  text-align: left;
  width:100%;
}

.inbox-row--active {
  /*border-color: rgba(13, 123, 114, 0.4);*/
  background: #eefbf5;
  /*box-shadow: inset 0 0 0 1px rgba(13, 123, 114, 0.1);*/
}

.inbox-row p {
  margin: 0;
  color: var(--ink-soft);
}

.inbox-col-avatar
{
  display:inline-block;
  box-sizing: content-box;
  position: relative;
  vertical-align: top;

}
.inbox-col-avatar img, .thread-header img
{
  width:43px;
  border-radius: 25px;
  border:0.3px #cfcfcf solid;
}

.inbox-col-avatar time
{
  font-size:0.7rem;
  position: absolute;
  bottom:5px;
  left: 0px;
  white-space: nowrap;
}

.inbox-channel
{
  position:absolute;
  top:25px;
  right:-5px;
}
.inbox-channel img
{
  width:25px;
  border:0px #fff solid;
}

.inbox-col-personal-detail
{
  display:inline-block;
  padding-left:10px;
  box-sizing: content-box;
  width:100%;
}

.thread-header .inbox-col-personal-detail
{
  width:auto;
}

.thread-header .inbox-col-personal-detail h3
{
  margin-top:10px;
  padding-top:0px;
  margin-left:5px;
  font-size:1.2rem;
}

.inbox-col-personal-detail p
{
  font-size:0.8rem;
  margin-top:6px;
  margin-bottom:10px;
}

.inbox-row-header,
.inbox-row-meta,
.inbox-row-footer,
.thread-header,
.thread-header-meta,
.thread-composer-actions,
.message-bubble-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.thread-header-meta
{
  margin-top:8px;
}

.thread-composer-actions
{
  margin-top:10px;
}

.inbox-row-header
{
  font-size:1rem;
}

.inbox-row-meta,
.inbox-row-footer,
.thread-header-meta,
.thread-subtitle,
.message-bubble-meta time,
.thread-loading {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.message-bubble-meta time,
.thread-loading {
  color: var(--ink-soft);
  font-size: 0.72rem;
}
.message-bubble-meta time
{
  text-align: right;
  width:100%;
  letter-spacing: -0.4px;
}

.inbox-row-footer
{
  float: right;
  margin-top:14px;
}

.inbox-row-footer img
{
  width:15px;
  margin-right:5px;
}

.thread-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.thread-header {
  border-bottom: 1px solid rgba(23, 49, 67, 0.08);
  align-items: start;
}

.thread-action-menu {
  position: relative;
  margin-top:0px;
}

.thread-action-menu__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 30px;
  height: 30px;
  border: 0px solid #fff;
  border-radius: 0px;
  background:#fff;
  cursor: pointer;
}
/*
.thread-action-menu__button:hover {
  transform: translateY(-1px);
  border-color: rgba(75, 31, 207, 0.18);
  box-shadow: 0 10px 20px rgba(23, 49, 67, 0.08);
}
*/

.thread-action-menu__button img {
  width:30px;
  border:0px #fff solid;
}

.thread-action-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 12;
  display: grid;
  min-width: 180px;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(23, 49, 67, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(23, 49, 67, 0.12);
}

.thread-action-menu__label {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thread-action-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(23, 49, 67, 0.04);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-align: left;
  transition: background-color 120ms ease, color 120ms ease;
}

.thread-action-menu__item:hover:not(:disabled) {
  background: rgba(75, 31, 207, 0.08);
  color: var(--violet-deep);
}

.thread-action-menu__item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.thread-header h3 {
  margin: 8px 0 8px;
  font-size: 1.48rem;
}

.typing-indicator {
  align-items: center;
  align-self: start;
  display: inline-flex;
  gap: 10px;
  margin-top: -2px;
  max-width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(23, 49, 67, 0.08);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(23, 49, 67, 0.06);
  pointer-events: none;
}

.typing-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0f8f5f;
  box-shadow: 0 0 0 6px rgba(15, 143, 95, 0.12);
  flex: 0 0 auto;
}

.thread-body {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 20px;
  background:
  radial-gradient(circle at 20px 20px, rgba(15, 143, 95, 0.06) 2px, transparent 2px) 0 0 / 30px 30px,
  linear-gradient(180deg, #f7fbf8 0%, #eef7f2 100%);
}

.thread-body--loading {
  place-items: center;
}

.thread-loading {
  padding: 16px 18px;
  border-radius: 999px;
  background: rgba(23, 49, 67, 0.06);
}

.message-bubble {
  display: grid;
  gap: 10px;
  max-width: min(72%, 560px);
  min-width: min(45%, 180px);
  padding: 6px 12px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(23, 49, 67, 0.08);
  font-size:0.92rem;
}

.message-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.message-bubble--inbound {
  justify-self: start;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(23, 49, 67, 0.08);
  border-top-left-radius: 0px;
}

.message-bubble--outbound {
  justify-self: end;
  background: linear-gradient(135deg, rgba(27, 99, 93, 0.94), rgba(9, 131, 137, 0.92));
  color: #f7fffe;
  border-top-right-radius: 0px;
}

.message-bubble--outbound .message-bubble-meta,
.message-bubble--outbound .message-bubble-meta time {
  color: rgba(247, 255, 254, 0.78);
}

.message-bubble--system {
  justify-self: center;
  background: rgba(23, 49, 67, 0.08);
  color: var(--ink);
}

.thread-composer {
  border-top: 1px solid rgba(23, 49, 67, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.thread-lock-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(215, 44, 13, 0.12);
  border-radius: 14px;
  background: rgba(255, 240, 237, 0.9);
  color: #a12a10;
  font-size: 0.9rem;
}

.thread-composer-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.thread-composer textarea {
  min-height: 92px;
}

.empty-card--compact {
  margin: 18px;
}

.empty-card--thread {
  margin: 20px;
  display: grid;
  place-content: center;
  min-height: 320px;
}

.field--compact {
  gap: 10px;
}

.field--compact span {
  margin-bottom: -2px;
}

.admin-nav {
  display: grid;
  gap: 4px;
  margin-top: 0;
}

.admin-nav-button {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(23, 49, 67, 0.08);
  border-radius: 14px;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.admin-nav-button strong,
.hero-stat-card strong,
.mini-stat-card strong,
.inspector-row strong,
.topbar-pill strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.admin-nav-label {
  display: flex;
  align-items: center;
}

.admin-nav-button--active {
  border-color: rgba(0, 128, 96, 0.24);
  background: linear-gradient(180deg, rgba(0, 128, 96, 0.08), rgba(255, 255, 255, 0.98));
  box-shadow: inset 3px 0 0 #008060;
}

.admin-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(109, 113, 117, 0.08);
  color: currentColor;
  flex: 0 0 auto;
}

.admin-nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  padding: 0 8px;
}

.sidebar-brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--violet-deep);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(24, 8, 71, 0.18);
}

.sidebar-brand-title {
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.sidebar-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 18px 8px 6px;
  color: rgba(255, 255, 255, 0.72);
}

.sidebar-footer strong {
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.94rem;
}

.sidebar-footer span {
  font-size: 0.82rem;
  line-height: 1.5;
}

.sidebar-snapshot-card {
  background:
    radial-gradient(circle at top left, rgba(13, 123, 114, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 243, 0.94));
}

.sidebar-snapshot-meta,
.topbar-pills,
.hero-actions,
.hero-stat-grid,
.mini-stat-grid,
.quick-action-grid,
.section-stack,
.section-grid,
.inspector-list,
.detail-stack {
  display: grid;
  gap: 16px;
}

.sidebar-snapshot-meta {
  grid-template-columns: 1fr;
  align-items: start;
}

.mini-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-stat-grid--sidebar .mini-stat-card {
  padding: 14px 16px;
}

.mini-stat-card,
.hero-stat-card {
  border-radius: 14px;
  border: 1px solid rgba(23, 49, 67, 0.08);
  background: #ffffff;
  padding: 16px 18px;
}

.mini-stat-card strong,
.hero-stat-card strong {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.topbar--admin {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: fixed;
  top: 0;
  left: var(--sidebar-width-current);
  right: 0;
  z-index: 30;
  min-height: var(--topbar-height);
  padding: 18px 32px 16px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 10px 26px rgba(32, 34, 35, 0.05);
  backdrop-filter: blur(10px);
}

.topbar-main-row {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  margin-left: auto;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.topbar-menu-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(32, 34, 35, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease, background 120ms ease;
}

.topbar-menu-button:hover {
  transform: translateY(-1px);
  border-color: rgba(75, 31, 207, 0.14);
  background: #f4efff;
  color: var(--violet-deep);
  box-shadow: 0 12px 24px rgba(32, 34, 35, 0.08);
}

.topbar-menu-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.topbar-utility {
  display: flex;
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.topbar-icon-button,
.topbar-logout-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(32, 34, 35, 0.08);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.topbar-profile {
  position: relative;
}

.topbar-icon-button:hover,
.topbar-logout-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(32, 34, 35, 0.08);
}

.topbar-icon-button:hover {
  border-color: rgba(75, 31, 207, 0.14);
  background: #f4efff;
  color: var(--violet-deep);
}

.topbar-logout-button:hover {
  border-color: rgba(215, 44, 13, 0.14);
  background: #fff3ef;
  color: var(--danger);
}

.topbar-icon-button {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
}

.topbar-icon-button svg,
.topbar-logout-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.topbar-badge {
  position: absolute;
  top: -2px;
  right: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff8c1a;
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255, 140, 26, 0.28);
}

.topbar-logout-button {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
}

.topbar-profile-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(32, 34, 35, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.topbar-profile-button:hover {
  transform: translateY(-1px);
  border-color: rgba(75, 31, 207, 0.14);
  box-shadow: 0 12px 24px rgba(32, 34, 35, 0.08);
}

.topbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 123, 114, 0.16), rgba(75, 31, 207, 0.18));
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.user-avatar,
.topbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: #efefef;
  color: var(--ink);
}

.user-avatar--md {
  width: 48px;
  height: 48px;
}

.user-avatar--xl {
  width: 120px;
  height: 120px;
}

.user-avatar img,
.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar svg,
.topbar-avatar svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 220px;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(32, 34, 35, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(32, 34, 35, 0.14);
}

.profile-menu-label {
  display: grid;
  gap: 4px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid rgba(23, 49, 67, 0.08);
}

.profile-menu-label strong {
  font-size: 0.96rem;
}

.profile-menu-label span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.profile-menu-item {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.profile-menu-item:hover {
  background: #f4efff;
  color: var(--violet-deep);
  transform: translateY(-1px);
}

.profile-panel {
  background:
    radial-gradient(circle at top right, rgba(239, 233, 255, 0.52), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 249, 250, 1));
}

.profile-editor {
  display: grid;
  gap: 24px;
}

.profile-avatar-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.profile-avatar-preview {
  display: flex;
  justify-content: center;
}

.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.profile-upload-button {
  margin: 0;
}

.settings-editor {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.settings-brand-column {
  display: grid;
  gap: 18px;
}

.tenant-brand-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(23, 49, 67, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.tenant-brand-preview__logo {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(76, 31, 208, 0.08);
  color: var(--violet-deep);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.tenant-brand-preview__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.tenant-brand-preview__body {
  display: grid;
  gap: 6px;
}

.tenant-brand-preview__body strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.15rem;
}

.tenant-brand-preview__body span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.settings-logo-actions {
  align-items: flex-start;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .profile-avatar-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-avatar-preview {
    justify-content: flex-start;
  }

  .settings-editor,
  .tenant-brand-preview {
    grid-template-columns: minmax(0, 1fr);
  }
}

.section-stack {
  margin-top: 6px;
}

.section-stack--form {
  width: min(100%, 760px);
  margin-inline: auto;
}

.section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-card--admin {
  display: grid;
  gap: 22px;
  background:
    radial-gradient(circle at top right, rgba(0, 128, 96, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 251, 250, 1));
  color: var(--ink);
  border-color: rgba(0, 128, 96, 0.12);
}

.hero-card--admin .eyebrow {
  color: var(--teal);
}

.hero-card--detail {
  display: grid;
  gap: 22px;
  background:
    radial-gradient(circle at top right, rgba(0, 128, 96, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 251, 249, 1));
  color: var(--ink);
  border-color: rgba(0, 128, 96, 0.12);
}

.hero-card--detail .eyebrow {
  color: var(--teal);
}

.hero-card--billing {
  display: grid;
  gap: 22px;
  background:
    radial-gradient(circle at top right, rgba(185, 137, 0, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 251, 243, 1));
  color: var(--ink);
  border-color: rgba(185, 137, 0, 0.16);
}

.hero-card--billing .eyebrow,
.hero-card--billing .hero-stat-card strong,
.hero-card--billing .hero-stat-card .metric-label {
  color: #8a6116;
}

.hero-copy h2 {
  margin: 8px 0 14px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0;
  max-width: 62ch;
}

.hero-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-actions .ghost-button {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.hero-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(32, 34, 35, 0.08);
}

.hero-stat-card strong,
.hero-stat-card .metric-label {
  color: var(--ink);
}

.hero-stat-card .metric-label {
  margin-bottom: 8px;
  opacity: 0.82;
}

.quick-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.directory-list {
  display: grid;
  gap: 14px;
}

.directory-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.directory-toolbar-search {
  flex: 1;
}

.directory-toolbar-search input {
  min-height: 58px;
  border-radius: 20px;
  background: #fbfbfd;
}

.directory-toolbar-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.directory-summary-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.directory-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.directory-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(32, 34, 35, 0.08);
  background:
    radial-gradient(circle at top right, rgba(239, 233, 255, 0.78), transparent 28%),
    #ffffff;
  box-shadow: 0 14px 28px rgba(32, 34, 35, 0.06);
}

.directory-card--active {
  border-color: rgba(75, 31, 207, 0.24);
  box-shadow: 0 22px 36px rgba(75, 31, 207, 0.12);
}

.directory-card-header,
.directory-card-actions,
.directory-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.directory-card-identity {
  display: flex;
  gap: 14px;
  align-items: center;
}

.directory-card-identity strong {
  display: block;
  font-size: 1.1rem;
}

.directory-card-identity span,
.directory-card-description,
.directory-card-footer span,
.directory-card-stat span {
  color: var(--ink-soft);
}

.directory-card-avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6f49e8, #4820be);
  color: #ffffff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 14px 22px rgba(75, 31, 207, 0.24);
}

.directory-card-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.directory-selected-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 128, 96, 0.1);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
}

.directory-card-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.directory-card-description {
  margin: 0;
}

.directory-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.directory-card-stat {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  background: #f8f7fb;
  border: 1px solid rgba(75, 31, 207, 0.06);
}

.directory-card-stat strong,
.directory-link-button {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.directory-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--violet-deep);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
}

.directory-link-button:hover {
  text-decoration: underline;
}

.directory-pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(32, 34, 35, 0.08);
}

.directory-pagination-controls,
.directory-pagination-pages {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.directory-page-button {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(75, 31, 207, 0.08);
  border-radius: 50%;
  background: #f5f1ff;
  color: var(--violet-deep);
  cursor: pointer;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.directory-page-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(75, 31, 207, 0.14);
}

.directory-page-button--active {
  background: linear-gradient(180deg, #5e34de, #4216bc);
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(75, 31, 207, 0.26);
}

.directory-row {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(23, 49, 67, 0.08);
}

.directory-row--active {
  border-color: rgba(13, 123, 114, 0.4);
  background: linear-gradient(180deg, rgba(220, 247, 242, 0.88), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 0 0 1px rgba(13, 123, 114, 0.08);
}

.directory-row-main,
.directory-row-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.directory-row-main strong {
  display: block;
}

.directory-row-main span,
.directory-row-detail span {
  color: var(--ink-soft);
}

.directory-row-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.directory-row-detail {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.inspector-list {
  gap: 12px;
}

.inspector-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(23, 49, 67, 0.08);
}

.inspector-row > div {
  display: grid;
  gap: 4px;
}

.inspector-row strong {
  font-size: 1rem;
}

.inspector-row span,
.inspector-row p {
  margin: 0;
  color: var(--ink-soft);
}

.inspector-row code {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inspector-row--soft {
  align-items: start;
  background: rgba(255, 255, 255, 0.54);
}

.info-callout {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(13, 123, 114, 0.1);
  border: 1px solid rgba(13, 123, 114, 0.14);
}

.info-callout strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.info-callout p {
  margin: 0;
}

.info-callout--accent {
  background: rgba(210, 110, 44, 0.1);
  border-color: rgba(210, 110, 44, 0.16);
}

.panel,
.metric-card,
.sidebar-card {
  background: #ffffff;
}

.panel,
.metric-card,
.sidebar-card,
.client-row {
  border-radius: 18px;
}

.sidebar .sidebar-card {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: none;
}

.sidebar .sidebar-card-header,
.sidebar .sidebar-card h2 {
  color: #ffffff;
}

.sidebar .sidebar-card p,
.sidebar .sidebar-card .panel-note,
.sidebar .field span {
  color: rgba(255, 255, 255, 0.76);
}

.sidebar .sidebar-snapshot-meta > span,
.sidebar .mini-stat-card span {
  color: rgba(255, 255, 255, 0.76);
}

.sidebar .field input,
.sidebar .field select,
.sidebar .field textarea {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar .field input::placeholder,
.sidebar .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.sidebar .field input:focus,
.sidebar .field select:focus,
.sidebar .field textarea:focus {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.sidebar .ghost-button {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.sidebar .admin-nav-button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
}

.sidebar .admin-nav-button strong {
  color: inherit;
  font-size: 0.94rem;
}

.sidebar .admin-nav-icon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

.sidebar .admin-nav-button--active {
  background: #ffffff;
  color: var(--violet-deep);
  box-shadow: 0 16px 28px rgba(24, 8, 71, 0.18);
}

.sidebar .admin-nav-button--active .admin-nav-icon {
  background: rgba(75, 31, 207, 0.1);
  color: var(--violet-deep);
}

.sidebar .sidebar-snapshot-card {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.08);
}

.sidebar .mini-stat-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.overlay
{
  opacity: 0.7;
  background:#000;
  position: fixed;
  left:0px;
  top:0px;
  width:100%;
  height:100%;
  z-index:9998;
}
.popup-panel
{
  position:fixed;
  transform: translate(-50%,-50%);
  left:50%;
  top:50%;
  max-width:480px;
  width:100%;
  background:#fff;
  padding:18px;
  border:1px #dfdfdf solid;
  border-radius: 24px;
  box-shadow: 0px 5px 15px -5px #666;
  z-index:9999;
}
.popup-title
{
  font-size:1.6rem;
  font-weight: 700;
  color:#000;
}

@media (max-width: 980px) {
  .app-switch,
  .inbox-shell,
  .hero-actions,
  .hero-stat-grid,
  .quick-action-grid,
  .directory-row-main,
  .directory-row-actions,
  .directory-card-header,
  .directory-card-actions,
  .directory-card-footer,
  .directory-pagination,
  .panel-inline-meta,
  .conversation-card-header,
  .conversation-meta,
  .thread-header,
  .thread-header-meta,
  .thread-composer-actions {
    flex-direction: column;
  }

  .inbox-shell {
    grid-template-columns: 1fr;
  }

  .inbox-list-layout--filters-open {
    grid-template-columns: 1fr;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(17, 18, 19, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 39;
  }

  .sidebar-backdrop--visible {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, var(--sidebar-width));
    height: 100vh;
    max-height: 100vh;
    overflow: auto;
    padding: 24px 10px 14px;
    padding-right: 0;
    transform: translateX(-100%);
    transition: transform 180ms ease, box-shadow 180ms ease;
    z-index: 40;
  }

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

  .sidebar--collapsed .sidebar-brand-row {
    justify-content: flex-start;
    padding-inline: 8px;
  }

  .sidebar--collapsed .sidebar-brand-title {
    display: block;
  }

  .sidebar--collapsed .admin-nav-label {
    display: flex;
  }

  .sidebar--collapsed .sidebar-footer {
    display: grid;
  }

  .sidebar--collapsed .admin-nav-button {
    justify-content: flex-start;
    padding-inline: 10px;
  }

  .sidebar-brand-row {
    margin-bottom: 20px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .directory-toolbar,
  .directory-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .main-column {
    min-height: auto;
    padding: calc(var(--topbar-height) + 20px) 20px 20px;
    border-radius: 0;
  }

  .topbar--admin {
    left: 0;
    padding: 16px 20px 14px;
  }

  .inbox-filter-card,
  .inbox-list-panel,
  .thread-panel {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .summary-grid,
  .insight-grid,
  .mini-stat-grid,
  .conversation-feed,
  .directory-card-stats {
    grid-template-columns: 1fr;
  }

  .page-shell {
    padding: 0;
  }

  .message-bubble {
    max-width: 100%;
  }
}
