.wlcms_app { min-height: 100vh; }
.wlcms_sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--wlcms_sidebar_width);
  display: flex;
  flex-direction: column;
  border-right: 1px solid #273142;
  background: var(--wlcms_color_navy);
  color: #d0d5dd;
}
.wlcms_sidebar__brand { min-height: var(--wlcms_header_height); display: flex; align-items: center; gap: 11px; padding: 0 18px; border-bottom: 1px solid #273142; text-decoration: none; }
.wlcms_sidebar__logo { width: 38px; height: auto; }
.wlcms_sidebar__brand-copy { min-width: 0; }
.wlcms_sidebar__brand-name { display: block; color: var(--wlcms_color_white); font-size: 14px; font-weight: 900; letter-spacing: -.02em; }
.wlcms_sidebar__brand-type { display: block; margin-top: 1px; color: #98a2b3; font-size: 10px; }
.wlcms_sidebar__scroll { flex: 1 1 auto; overflow-y: auto; padding: 16px 12px; }
.wlcms_sidebar__group + .wlcms_sidebar__group { margin-top: 22px; }
.wlcms_sidebar__label { margin: 0 8px 7px; color: #667085; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.wlcms_sidebar__nav { display: grid; gap: 3px; }
.wlcms_sidebar__link { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 8px; color: #cfd4dc; font-size: 12px; font-weight: 760; text-decoration: none; }
.wlcms_sidebar__link:hover { background: #1f2937; color: var(--wlcms_color_white); }
.wlcms_sidebar__link--active { background: #312e81; color: var(--wlcms_color_white); }
.wlcms_sidebar__icon { width: 22px; height: 22px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 6px; background: rgba(255,255,255,.06); color: inherit; font-size: 10px; font-weight: 900; }
.wlcms_sidebar__count { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 999px; background: rgba(255,255,255,.09); color: #e5e7eb; font-size: 9px; text-align: center; }
.wlcms_sidebar__footer { padding: 14px 16px; border-top: 1px solid #273142; }
.wlcms_sidebar__user { display: flex; align-items: center; gap: 10px; }
.wlcms_sidebar__avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #312e81; color: white; font-size: 11px; font-weight: 900; }
.wlcms_sidebar__user-name { display: block; color: white; font-size: 11px; font-weight: 800; }
.wlcms_sidebar__user-meta { display: block; color: #98a2b3; font-size: 9px; }

.wlcms_main { min-height: 100vh; margin-left: var(--wlcms_sidebar_width); }
.wlcms_topbar { position: sticky; top: 0; z-index: 30; min-height: var(--wlcms_header_height); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; border-bottom: 1px solid var(--wlcms_color_border); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.wlcms_topbar__left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wlcms_topbar__menu { display: none; width: 38px; height: 38px; place-items: center; border: 1px solid var(--wlcms_color_border); border-radius: 9px; background: var(--wlcms_color_surface); }
.wlcms_topbar__crumb { color: var(--wlcms_color_text_muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wlcms_topbar__crumb strong { color: var(--wlcms_color_text); }
.wlcms_topbar__actions { display: flex; align-items: center; gap: 10px; }
.wlcms_page { width: min(1180px, calc(100% - 56px)); margin-inline: auto; padding: 34px 0 56px; }
.wlcms_page__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.wlcms_page__intro { min-width: 0; }
.wlcms_page__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.wlcms_split { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(300px,.7fr); gap: 24px; align-items: start; }
.wlcms_split--equal { grid-template-columns: repeat(2,minmax(0,1fr)); }
.wlcms_sticky { position: sticky; top: calc(var(--wlcms_header_height) + 20px); }

.wlcms_chart { display: grid; grid-template-columns: repeat(12,1fr); align-items: end; gap: 7px; min-height: 180px; padding-top: 18px; }
.wlcms_chart__bar { min-height: 16px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg,var(--wlcms_color_brand),#a89fff); }

.wlcms_detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--wlcms_color_border); border-radius: var(--wlcms_radius_md); overflow: hidden; }
.wlcms_detail { padding: 14px 16px; border-bottom: 1px solid var(--wlcms_color_border); background: var(--wlcms_color_surface); }
.wlcms_detail:nth-child(odd) { border-right: 1px solid var(--wlcms_color_border); }
.wlcms_detail:nth-last-child(-n+2) { border-bottom: 0; }
.wlcms_detail__label { display: block; color: var(--wlcms_color_text_muted); font-size: 10px; font-weight: 750; }
.wlcms_detail__value { display: block; margin-top: 5px; color: var(--wlcms_color_text); font-size: 13px; font-weight: 800; }

.wlcms_timeline { position: relative; display: grid; gap: 18px; }
.wlcms_timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 12px; width: 1px; background: var(--wlcms_color_border); }
.wlcms_timeline__item { position: relative; display: grid; grid-template-columns: 25px 1fr; gap: 11px; }
.wlcms_timeline__dot { position: relative; z-index: 1; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--wlcms_color_brand_border); border-radius: 50%; background: var(--wlcms_color_brand_soft); color: var(--wlcms_color_brand_dark); font-size: 9px; font-weight: 900; }
.wlcms_timeline__title { margin: 1px 0 2px; font-size: 12px; font-weight: 850; }
.wlcms_timeline__meta { color: var(--wlcms_color_text_muted); font-size: 10px; }

@media (max-width: 1080px) {
  .wlcms_split,
  .wlcms_split--equal { grid-template-columns: 1fr; }
  .wlcms_sticky { position: static; }
}
@media (max-width: 820px) {
  .wlcms_sidebar { transform: translateX(-100%); transition: transform var(--wlcms_motion_normal) var(--wlcms_ease); box-shadow: var(--wlcms_shadow_md); }
  .wlcms_sidebar--open { transform: translateX(0); }
  .wlcms_main { margin-left: 0; }
  .wlcms_topbar__menu { display: grid; }
  .wlcms_page { width: min(100% - 32px, 1180px); }
  .wlcms_topbar { padding-inline: 16px; }
  .wlcms_page__header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .wlcms_topbar__actions .wlcms_button--quiet { display: none; }
  .wlcms_detail-grid { grid-template-columns: 1fr; }
  .wlcms_detail:nth-child(odd) { border-right: 0; }
  .wlcms_detail:nth-last-child(2) { border-bottom: 1px solid var(--wlcms_color_border); }
}

/* Sign out: the sidebar is dark, so this needs its own light-on-dark styling (the shared quiet button is invisible here). */
.wlcms_sidebar__signout { width: 100%; margin-top: 12px; padding: 9px 12px; border: 1px solid #3b475a; border-radius: 10px; background: transparent; color: #e4e7ec; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.wlcms_sidebar__signout:hover, .wlcms_sidebar__signout:focus-visible { background: #1f2937; color: #ffffff; border-color: #667085; }
.wlcms_topbar__actions form { margin: 0; }

.wlcms_metric-grid { margin-bottom: 24px; }
.wlcms_page__header { gap: 16px; }

/* Chart bar heights in 5% steps (classes, not inline styles). */
.wlcms_chart .wlcms_chart__bar--h0 { height: 0%; }
.wlcms_chart .wlcms_chart__bar--h1 { height: 5%; }
.wlcms_chart .wlcms_chart__bar--h2 { height: 10%; }
.wlcms_chart .wlcms_chart__bar--h3 { height: 15%; }
.wlcms_chart .wlcms_chart__bar--h4 { height: 20%; }
.wlcms_chart .wlcms_chart__bar--h5 { height: 25%; }
.wlcms_chart .wlcms_chart__bar--h6 { height: 30%; }
.wlcms_chart .wlcms_chart__bar--h7 { height: 35%; }
.wlcms_chart .wlcms_chart__bar--h8 { height: 40%; }
.wlcms_chart .wlcms_chart__bar--h9 { height: 45%; }
.wlcms_chart .wlcms_chart__bar--h10 { height: 50%; }
.wlcms_chart .wlcms_chart__bar--h11 { height: 55%; }
.wlcms_chart .wlcms_chart__bar--h12 { height: 60%; }
.wlcms_chart .wlcms_chart__bar--h13 { height: 65%; }
.wlcms_chart .wlcms_chart__bar--h14 { height: 70%; }
.wlcms_chart .wlcms_chart__bar--h15 { height: 75%; }
.wlcms_chart .wlcms_chart__bar--h16 { height: 80%; }
.wlcms_chart .wlcms_chart__bar--h17 { height: 85%; }
.wlcms_chart .wlcms_chart__bar--h18 { height: 90%; }
.wlcms_chart .wlcms_chart__bar--h19 { height: 95%; }
.wlcms_chart .wlcms_chart__bar--h20 { height: 100%; }
.wlcms_chart__bar--h0 { min-height: 3px; opacity: .35; }
.wlcms_chart-labels { display: grid; grid-template-columns: repeat(12,1fr); gap: 7px; margin-top: 8px; font-size: 11px; color: var(--wlcms_color_text_muted); text-align: center; }
.wlcms_toolbar form { display: contents; }

/* Support conversation. Message bodies are plain text: pre-wrap keeps line breaks, nothing is ever rendered as HTML. */
.wlcms_thread { display: grid; gap: 14px; margin-bottom: 18px; }
.wlcms_msg { padding: 16px 18px; border: 1px solid var(--wlcms_color_border); border-radius: 12px; background: var(--wlcms_color_surface); }
.wlcms_msg--staff { border-color: var(--wlcms_color_brand_border); background: var(--wlcms_color_brand_soft); }
.wlcms_msg--note { border-style: dashed; background: var(--wlcms_color_warning_soft); }
.wlcms_msg__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; font-size: 12px; color: var(--wlcms_color_text_muted); }
.wlcms_msg__meta strong { color: var(--wlcms_color_text); }
.wlcms_msg__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.wlcms_textarea { min-height: 120px; resize: vertical; font: inherit; line-height: 1.5; }
.wlcms_page__actions form { margin: 0; }
.wlcms_msg__delivery { margin: 10px 0 0; font-size: 12px; }
.wlcms_sidebar__count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.wlcms_table__check { width: 36px; }
.wlcms_modal { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--wlcms_color_border); border-radius: 16px; background: var(--wlcms_color_surface, #fff); color: var(--wlcms_color_text); box-shadow: 0 24px 60px rgba(16, 24, 40, .28); }
.wlcms_modal::backdrop { background: rgba(16, 24, 40, .55); }
.wlcms_modal__body { display: grid; gap: 12px; padding: 24px 24px 8px; }
.wlcms_modal__title { margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.wlcms_modal__text { margin: 0; color: var(--wlcms_color_text_soft); font-size: 13px; line-height: 1.5; }
.wlcms_modal__list { margin: 0; max-height: 72px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--wlcms_color_surface_alt, #f4f6fa); font-size: 12px; overflow-wrap: anywhere; }
.wlcms_modal__footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 24px; }
.wlcms_button--danger-solid { border-color: var(--wlcms_color_danger); background: var(--wlcms_color_danger); color: #fff; }
.wlcms_button--danger-solid:disabled { opacity: .4; cursor: not-allowed; }
.wlcms_changelog { margin: 6px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--wlcms_color_surface_alt, #f4f6fa); font: inherit; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
