/*
 * Creglo Dash — design language ported from the creglo marketing theme
 * (wp-content/themes/creglo-theme). Tokens, fonts and the .c-button / .c-input
 * component classes mirror that theme so the dashboard reads as one product.
 */

/* ---- Fonts (copied to /public/fonts) ---------------------------------- */
@font-face {
  font-family: 'Argentum Sans';
  font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/argentum-sans-latin-400-normal.woff2") format('woff2'),
       url("/fonts/argentum-sans-latin-400-normal.woff") format('woff');
}
@font-face {
  font-family: 'Argentum Sans';
  font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/argentum-sans-latin-500-normal.woff2") format('woff2'),
       url("/fonts/argentum-sans-latin-500-normal.woff") format('woff');
}
@font-face {
  font-family: 'Argentum Sans';
  font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/argentum-sans-latin-700-normal.woff2") format('woff2'),
       url("/fonts/argentum-sans-latin-700-normal.woff") format('woff');
}
@font-face {
  font-family: 'Superior Title';
  font-weight: 500; font-style: italic; font-display: swap;
  src: url("/fonts/superior-title-medium-italic.otf") format('opentype');
}
@font-face {
  font-family: 'Gotham-Book';
  font-display: swap;
  src: url("/fonts/Gotham-Book.otf") format('opentype');
}

/* ---- Tokens (from creglo-theme common/colors.scss + core.scss) --------- */
:root {
  --cr-text: #231f20;
  --cr-orange: #ffcc79;
  --cr-yellow: #fffaa0;
  --cr-gray-bg: #f1f0f0;
  --cr-dark-teal: #092e40;
  --cr-input-bg: #faf5e8;
  --cr-input-text: #331715;
  --cr-white: #ffffff;
  --cr-red: #e24932;

  --font-body: 'Argentum Sans', sans-serif;
  --font-display: 'Superior Title', Georgia, serif;
  --font-label: 'Gotham-Book', sans-serif;

  --radius-input: 9px;
  --radius-button: 15px;
  --radius-card: 18px;
}

/* ---- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--cr-text);
  background: var(--cr-gray-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, p { margin: 0; }
a { color: var(--cr-dark-teal); }

/* ---- Buttons (creglo-theme common/buttons.scss) ----------------------- */
.c-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-align: center; text-decoration: none;
  background: var(--cr-orange); color: var(--cr-text);
  border: none; outline: none; border-radius: var(--radius-button);
  padding: 12px 32px; cursor: pointer;
  transition: background 150ms ease-out, transform 150ms ease-out;
}
.c-button:hover { background: #ffbe55; }
.c-button:active { transform: translateY(1px); }
.c-button--yellow { background: var(--cr-yellow); }
.c-button--yellow:hover { background: #fff582; }
.c-button--block { width: 100%; }
.c-button--ghost {
  background: transparent; color: var(--cr-dark-teal);
  border: 1.5px solid rgba(9, 46, 64, 0.2);
}
.c-button--ghost:hover { background: rgba(9, 46, 64, 0.06); }
.c-button--danger { background: var(--cr-red); color: #fff; white-space: nowrap; }
.c-button--danger:hover { background: #c93a25; }

/* Notification toasts (layout poller) */
.c-toasts { position: fixed; top: 78px; right: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.c-toast {
  display: block; background: var(--cr-dark-teal); color: var(--cr-orange); text-decoration: none;
  border-radius: 12px; padding: 12px 18px; font-family: var(--font-body); font-size: 14px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(9, 46, 64, 0.25); max-width: 320px; animation: c-toast-in 0.25s ease-out;
}
@keyframes c-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---- Inputs (creglo-theme common/inputs.scss) ------------------------- */
.c-input__title {
  display: block; margin-bottom: 8px;
  font-family: var(--font-label); font-size: 15px; line-height: 1.2;
  color: var(--cr-text);
}
.c-input {
  width: 100%; box-sizing: border-box;
  padding: 14px; border: none; outline: none;
  border-radius: var(--radius-input);
  background: var(--cr-input-bg); color: var(--cr-input-text);
  font-family: var(--font-body); font-size: 16px;
}
.c-input::placeholder { color: rgba(51, 23, 21, 0.55); }
.c-input:focus { box-shadow: 0 0 0 2px var(--cr-orange); }
.c-input--invalid { box-shadow: 0 0 0 2px var(--cr-red); }
.c-field { margin-bottom: 18px; }

/* ---- App shell -------------------------------------------------------- */
.c-navbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 28px;
  background: var(--cr-white); border-bottom: 1px solid #e7e6e6;
}
.c-navbar__logo { height: 30px; }
.c-navbar__right { display: flex; align-items: center; gap: 18px; }
.c-navbar__user { font-size: 14px; color: rgba(35, 31, 32, 0.7); }
.c-navbar__signout {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--font-body); font-size: 14px; color: var(--cr-dark-teal);
  text-decoration: underline;
}

.c-main { max-width: 1100px; margin: 0 auto; padding: 36px 28px; }

.c-card {
  background: var(--cr-white); border-radius: var(--radius-card);
  padding: 28px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.c-card + .c-card { margin-top: 18px; }

.c-page-title {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 34px; margin-bottom: 6px;
}
.c-page-subtitle { color: rgba(35, 31, 32, 0.6); margin-bottom: 28px; }
.c-page-title--lg { font-size: 48px; }
@media (max-width: 900px) { .c-page-title--lg { font-size: 34px; } }

.c-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.c-stat { background: var(--cr-white); border-radius: var(--radius-card); padding: 22px; }
.c-stat__value { font-family: var(--font-display); font-style: italic; font-size: 40px; line-height: 1; }
.c-stat__label { margin-top: 8px; font-size: 14px; color: rgba(35, 31, 32, 0.6); }

/* ---- App shell: sidebar layout (Figma creglo_Cdashboard) --------------- */
.c-shell { display: flex; min-height: calc(100vh - 73px); background: var(--cr-white); }
.c-shell__main { flex: 1; min-width: 0; }
.c-sidebar {
  width: 330px; flex-shrink: 0; background: var(--cr-gray-bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 30px 20px;
}
.c-sidebar__links { display: flex; flex-direction: column; gap: 10px; }
.c-sidebar__link {
  font-family: var(--font-body); font-weight: 700; font-size: 20px;
  color: var(--cr-text); text-decoration: none;
  padding: 10px 16px; border-radius: 26px;
}
.c-sidebar__link:hover { background: rgba(255, 250, 160, 0.5); }
.c-sidebar__link--active { background: var(--cr-yellow); }
.c-sidebar__footer { display: flex; flex-direction: column; gap: 4px; padding: 0 16px; }
.c-sidebar__user { font-size: 13px; color: rgba(35, 31, 32, 0.7); margin-bottom: 10px; word-break: break-all; }
.c-sidebar__legal { font-size: 12px; color: var(--cr-text); text-decoration: none; }
.c-sidebar__legal:hover { text-decoration: underline; }

/* Mobile hamburger: checkbox sits right before .c-navbar / .c-shell in the DOM */
.c-nav-check { position: absolute; width: 1px; height: 1px; opacity: 0; }
.c-navbar__menu { display: none; color: var(--cr-text); cursor: pointer; } /* app-shell burger; public navbar has its own .c-navbar__burger */

.c-navbar__bell { position: relative; display: inline-flex; color: var(--cr-text); }
.c-navbar__bell:hover { color: var(--cr-dark-teal); }
.c-navbar__bell-badge { position: absolute; top: -6px; right: -8px; }

.c-welcome { font-family: var(--font-body); font-weight: 700; font-size: 40px; line-height: 1.15; margin-bottom: 6px; }
.c-welcome__highlight { background: var(--cr-yellow); border-radius: 26px; padding: 0 12px; margin-left: -12px; }

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

/* Creator home (Figma creglo_Cdashboard) */
.c-home__head { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; margin-bottom: 34px; }
.c-home__head > div:first-of-type { flex: 1; }
.c-home__avatar { width: 118px; height: 118px; border-radius: 15px; object-fit: cover; }
.c-home__loc { font-family: var(--font-display); font-style: italic; font-size: 20px; margin-top: 6px; }
.c-profile__stats { display: flex; gap: 28px; flex-wrap: wrap; }
.c-profile__stat { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.c-home__cards { display: grid; grid-template-columns: 343px 1fr; gap: 20px; align-items: start; }
.c-home__item { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.c-home__item-link { color: var(--cr-text); text-decoration: underline; font-size: 16px; text-align: start; }
.c-home__cards form.button_to { margin-bottom: 10px; }
.c-home__deal { margin-bottom: 26px; }
.c-home__deal:last-child { margin-bottom: 0; }
.c-home__deal .c-home__item { margin-bottom: 5px; }
.c-home__pill {
  display: inline-block; background: var(--cr-orange); border-radius: 26px;
  padding: 4px 16px; font-weight: 700; font-size: 15px; margin-top: 10px;
}
.c-home__stack { display: flex; flex-direction: column; gap: 20px; }
.c-home__item-plain { color: var(--cr-text); text-decoration: none; }
.c-home__item-plain:hover { text-decoration: underline; }
@media (max-width: 900px) { .c-home__cards { grid-template-columns: 1fr; } }

/* Analytics (Figma 40:329) */
.c-tabs { display: flex; gap: 8px; margin-bottom: 34px; align-items: center; flex-wrap: wrap; }
.c-tabs__select {
  margin-left: auto; background: var(--cr-gray-bg); border: none; outline: none;
  border-radius: 15px; padding: 8px 14px; font-family: var(--font-body);
  font-weight: 700; font-size: 15px; color: var(--cr-text); cursor: pointer;
  max-width: 100%; /* long @handle options: don't overflow the viewport on mobile */
}
.c-tabs__tab { font-weight: 700; font-size: 15px; padding: 6px 18px; border-radius: 15px; text-decoration: none; color: inherit; }
.c-tabs__tab:hover { background: rgba(255, 250, 160, 0.5); }
.c-tabs__tab--active { background: var(--cr-orange); }
.c-tabs__tab--active:hover { background: var(--cr-orange); }
.c-analytics__stats { display: flex; gap: 56px; flex-wrap: wrap; margin: 44px 0; }
.c-connect { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.c-content-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.c-content-row__item { flex: 0 0 auto; }
.c-content-row__item img { width: 160px; height: 200px; object-fit: cover; border-radius: 5px; display: block; }
.c-analytics__value { font-weight: 700; font-size: 31px; }
.c-analytics__label { font-size: 16px; margin-top: 4px; }
.c-card--gray { background: var(--cr-gray-bg); border-radius: 15px; padding: 26px 30px; }
.c-card__heading { font-family: var(--font-body); font-weight: 700; font-size: 26px; margin-bottom: 14px; }

@media (max-width: 1024px) {
  .c-shell { flex-direction: column; }
  .c-navbar__menu { display: inline-flex; }
  .c-nav-check:focus-visible ~ .c-navbar .c-navbar__menu { outline: 2px solid var(--cr-text); border-radius: 4px; }
  .c-sidebar { display: none; width: 100%; padding: 16px 20px 24px; gap: 24px; }
  .c-nav-check:checked ~ .c-shell .c-sidebar { display: flex; }
}

/* ---- Messages screen (Figma 40:552) ------------------------------------ */
.c-msgs__bar {
  background: var(--cr-gray-bg); border-radius: 15px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.c-msgs__bar-subject {
  background: var(--cr-yellow); border-radius: 26px; padding: 2px 14px;
  font-size: 20px; font-weight: 500;
}
.c-msgs__bar-meta { color: rgba(35, 31, 32, 0.6); font-size: 14px; }
.c-msgs { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.c-msgs__thread { background: var(--cr-gray-bg); border-radius: 15px; padding: 20px; }
.c-msgs__reply {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  background: var(--cr-white); border: 1px solid var(--cr-text); border-radius: 26px;
  padding: 5px 6px 5px 20px;
}
.c-msgs__reply-input {
  flex: 1; border: none; outline: none; background: transparent; resize: none;
  font-family: var(--font-body); font-size: 16px; color: var(--cr-text); padding: 8px 0;
}
.c-msgs__reply-input::placeholder { color: #d9d9d9; }
.c-msgs__aside { background: var(--cr-gray-bg); border-radius: 15px; padding: 20px; }
.c-msgs__aside-item {
  display: block; padding: 14px 0; border-bottom: 1px solid #d9d9d9;
  color: var(--cr-text); text-decoration: none; font-size: 16px; font-weight: 500;
}
.c-msgs__aside-item:last-child { border-bottom: none; }
.c-msgs__aside-active { background: var(--cr-orange); border-radius: 26px; padding: 2px 10px; margin-left: -10px; }

@media (max-width: 1100px) {
  .c-msgs { grid-template-columns: 1fr; }
  .c-msgs__aside { order: 2; }
}

/* ---- Auth (login / password reset) ------------------------------------ */
.c-auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.c-auth__card { width: 100%; max-width: 420px; background: var(--cr-white); border-radius: var(--radius-card); padding: 40px 36px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
.c-auth__logo { height: 34px; margin-bottom: 28px; }
.c-auth__title { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 30px; margin-bottom: 6px; }
.c-auth__subtitle { color: rgba(35, 31, 32, 0.6); margin-bottom: 28px; font-size: 15px; }
.c-auth__links { margin-top: 22px; font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.c-auth__check { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; color: rgba(35, 31, 32, 0.75); }

/* ---- Login screen (mirrors creglo-theme apply page) ------------------- */
/* Mirrors creglo-theme components/navbar.scss so WP -> dash feels seamless:
   $height-navbar: 104px, container 14px 32px, logo 137px, links bold 20px. */
.c-navbar--public {
  display: block; height: 104px; max-height: 104px; padding: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #000;
}
.c-navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 14px 32px; }
.c-navbar__brand { display: flex; align-items: center; } /* kills the inline-img baseline offset (WP .navbar-logo-container) */
.c-navbar--public .c-navbar__logo { width: 137px; height: auto; }
.c-navbar__public-links { display: flex; align-items: center; gap: 24px; }
.c-navbar--public .c-navbar__link { font-weight: 700; font-size: 20px; position: relative; }
.c-navbar--public .c-navbar__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--cr-text); transition: all 0.2s ease;
}
.c-navbar--public .c-navbar__link:hover::after { width: 100%; }
.c-navbar--public .c-button--yellow { font-size: 20px; padding: 12px 24px; border-radius: 15px; max-width: 190px; width: 100%; white-space: nowrap; }
.c-navbar__burger { display: none; }

@media (max-width: 600px) {
  /* Hamburger (mirrors creglo-theme .menuIcon) */
  .c-navbar__burger {
    display: block; width: 30px; height: 22px; position: relative; cursor: pointer; z-index: 50;
  }
  .c-navbar__burger span {
    display: block; position: absolute; height: 2px; width: 100%; right: 0;
    background: var(--cr-text); transition: 0.25s ease-in-out;
  }
  .c-navbar__burger span:nth-child(1) { top: 0; }
  .c-navbar__burger span:nth-child(2) { top: 10px; width: calc(100% - 5px); }
  .c-navbar__burger span:nth-child(3) { top: 20px; }
  /* Pin the close button while the overlay is open (navbar itself isn't fixed) */
  .c-navbar__toggle:checked ~ .c-navbar__burger { position: fixed; top: 24px; right: 20px; }
  .c-navbar__toggle:checked ~ .c-navbar__burger span:nth-child(1) { top: 10px; transform: rotate(135deg); }
  .c-navbar__toggle:checked ~ .c-navbar__burger span:nth-child(2) { opacity: 0; }
  .c-navbar__toggle:checked ~ .c-navbar__burger span:nth-child(3) { top: 10px; transform: rotate(-135deg); }

  /* Full-screen overlay menu (mirrors creglo-theme __menu-nav) */
  .c-navbar__public-links {
    display: none; position: fixed; inset: 0; height: 100vh; background: var(--cr-white);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 80px 20px 50px; gap: 34px; z-index: 40;
  }
  .c-navbar__toggle:checked ~ .c-navbar__public-links { display: flex; }
  .c-navbar--public .c-navbar__link { font-size: 18px; font-weight: 700; }
  .c-navbar__inner { padding: 14px 20px; }
}

.c-login { background: var(--cr-white); min-height: calc(100vh - 79px); padding: 74px 36px 100px; position: relative; }
.c-login__container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 380px 1fr; gap: 32px 120px; align-items: start; }
.c-login__sidebar { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.c-login__heading { font-family: var(--font-body); font-weight: 700; font-size: 40px; margin: 0; }
.c-login__heading-highlight, .c-login__title-highlight { position: relative; z-index: 1; }
.c-login__heading-highlight::after, .c-login__title-highlight::after {
  content: ''; position: absolute; left: -8px; right: -8px; top: 50%; transform: translateY(-50%);
  height: 22px; background: var(--cr-yellow); border-radius: 26px; z-index: -1;
}
.c-login__title-highlight::after { background: var(--cr-orange); }
.c-login__logo { width: 246px; height: auto; display: block; }
.c-login__image { width: 328px; height: 437px; object-fit: cover; border-radius: 15px; margin-top: 12px; }
.c-login__decor { display: flex; align-items: center; gap: 20px; margin-top: 12px; }
.c-login__decor-heart { width: 39px; height: 39px; object-fit: contain; flex: 0 0 auto; }
.c-login__decor-pill { width: 196px; height: 33px; border: 1px solid var(--cr-text); border-radius: 26px; }

.c-login__panel { background: var(--cr-gray-bg); border-radius: 9px; padding: 40px; max-width: 701px; }
.c-login__title { font-family: var(--font-body); font-weight: 700; font-size: 40px; margin: 0 0 28px; }
.c-login__form .c-input { width: 100%; background: var(--cr-white); }
.c-login__forgot { display: block; font-family: var(--font-display); font-style: italic; font-size: 15px; text-decoration: underline; margin: 4px 0 0; }
.c-login__hint { color: rgba(35, 31, 32, 0.6); font-size: 15px; margin: -16px 0 24px; }
.c-login__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.c-login__actions .c-auth__check { margin-bottom: 0; }
.c-login__actions .c-button { margin-left: auto; }
.c-login__aside { font-family: var(--font-display); font-style: italic; font-size: 15px; text-align: right; margin: 20px 0 0; line-height: 1.6; }
.c-login__aside a { text-decoration: underline; }

@media (max-width: 900px) {
  .c-login { padding: 40px 20px 60px; }
  .c-login__container { grid-template-columns: 1fr; gap: 40px; }
  .c-login__panel { padding: 28px; }
  .c-login__title, .c-login__heading { font-size: 32px; }
}

/* ---- Tables / detail lists -------------------------------------------- */
.c-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.c-table th { text-align: left; padding: 0 14px 12px; color: rgba(35, 31, 32, 0.5); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.c-table td { padding: 14px; border-top: 1px solid #efeeee; }
.c-button--sm { padding: 7px 16px; font-size: 13px; }
.c-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; margin: 0; }
.c-detail dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(35, 31, 32, 0.5); margin-bottom: 4px; }
.c-detail dd { margin: 0; font-size: 15px; word-break: break-word; }
.c-navbar__link { font-size: 14px; color: var(--cr-text); text-decoration: none; font-weight: 500; }
.c-navbar__link:hover { color: var(--cr-dark-teal); }
.c-badge {
  display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--cr-red); color: var(--cr-white);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* ---- Admin deal: price recommendation (Figma 67-105) ------------------ */
.c-section-heading { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.c-status-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 121px; height: 32px; padding: 0 18px;
  background: var(--cr-orange); border-radius: var(--radius-button);
  font-size: 15px; font-weight: 700;
}
.c-price-pill {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 176px; height: 76px; border-radius: 26px;
  background: rgba(217, 217, 217, 0.5);
}
.c-price-pill--avg { background: var(--cr-orange); }
.c-price-pill--avg .c-price-pill__amount { font-weight: 700; }
.c-price-pill__amount { font-size: 25px; }
.c-price-pill__label { font-size: 15px; font-weight: 500; }
.c-terms-row { display: flex; gap: 7px; }
.c-terms-row + .c-terms-row { margin-top: 6px; }
.c-terms-row__label, .c-terms-row__value {
  display: flex; align-items: center; min-height: 38px; padding: 8px 20px;
  border-radius: 5px; font-size: 18px; font-weight: 700;
}
.c-terms-row__label { width: 203px; flex-shrink: 0; background: var(--cr-yellow); }
.c-terms-row__value { flex: 1; background: rgba(217, 217, 217, 0.5); }

/* ---- Notifications / assignments (1D) --------------------------------- */
.c-assign-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.c-assign-form .c-input { width: auto; min-width: 180px; }
.c-notif {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; text-align: left; padding: 14px 4px; border: none; border-top: 1px solid #efeeee;
  background: none; cursor: pointer; font-family: var(--font-body); font-size: 14px; color: var(--cr-text);
}
.c-notif:first-child { border-top: none; }
.c-notif--unread { font-weight: 600; }
.c-notif--unread .c-notif__text::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px;
  border-radius: 50%; background: var(--cr-red); vertical-align: middle;
}
.c-notif__time { color: rgba(35, 31, 32, 0.5); font-size: 13px; white-space: nowrap; }

/* ---- Inbox ------------------------------------------------------------ */
.c-convo-list { list-style: none; margin: 0; padding: 0; }
.c-convo { border-top: 1px solid #efeeee; }
.c-convo:first-child { border-top: none; }
.c-convo__link { display: block; padding: 14px 6px; text-decoration: none; color: inherit; border-radius: 12px; }
.c-convo__link:hover { background: #faf9f8; }
.c-convo__top { display: flex; justify-content: space-between; align-items: baseline; }
.c-convo__brand { font-weight: 600; }
.c-convo__time { color: #9a9698; font-size: 13px; }
.c-convo__subject { font-size: 14px; margin: 2px 0 6px; }
.c-convo__meta { font-size: 12px; color: #6b6768; display: flex; align-items: center; gap: 6px; }

.c-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.c-badge--open { background: #e7f6ec; color: #1f6b3b; }
.c-badge--awaiting_reply { background: #fff4e0; color: #9a6a16; }
.c-badge--closed { background: #eee; color: #777; }

.c-thread { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.c-bubble { max-width: 74%; padding: 14px 16px; border-radius: 16px; background: var(--cr-white); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.c-bubble--inbound { align-self: flex-start; border-top-left-radius: 4px; }
.c-bubble--outbound { align-self: flex-end; background: var(--cr-input-bg); border-top-right-radius: 4px; }
.c-bubble__meta { font-size: 12px; color: #9a9698; margin-bottom: 6px; }
.c-bubble__body { font-size: 15px; line-height: 1.5; }
.c-bubble__body p { margin: 0 0 8px; }
.c-bubble__body p:last-child { margin-bottom: 0; }
.c-bubble__attachments { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.c-attachment { font-size: 12px; background: #f1f0f0; border-radius: 8px; padding: 4px 8px; }
.c-reply { margin-top: 22px; }
.c-reply__box { min-height: 110px; resize: vertical; }

/* ---- Flash ------------------------------------------------------------ */
.c-flash { max-width: 1100px; margin: 16px auto 0; padding: 0 28px; }
.c-flash__msg { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 8px; }
.c-flash__msg--notice { background: #e7f6ec; color: #1f6b3b; }
.c-flash__msg--alert { background: #fdecea; color: #a3271a; }
/* ponytail: overlaid on .c-login's 74px top padding so it never shifts content; mobile has no room, so it stays in-flow there */
.c-flash--login { position: absolute; top: 14px; left: 36px; right: 36px; max-width: 1280px; margin: 0 auto; padding: 0; }
@media (max-width: 900px) {
  .c-flash--login { position: static; margin: 0; }
}
