/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* ============================================================
   Architect Capital — monochrome design tokens (brand pass).
   Black-on-white, Apple-like minimalism: air, thin lines, one
   accent (black). Every color/space below flows from these vars.
   ============================================================ */

:root {
  color-scheme: light;

  /* surfaces */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: #e6e6e9;
  --border-strong: #d2d2d7;

  /* text */
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;

  /* the single accent is black */
  --accent: #1d1d1f;
  --accent-hover: #000000;
  --on-accent: #ffffff;

  /* functional */
  --danger: #b42318;
  --danger-bg: rgba(180, 35, 24, 0.08);
  --success: #1e7a3c;
  --success-bg: rgba(30, 122, 60, 0.1);
  --warning: #92610e;
  --warning-bg: rgba(146, 97, 14, 0.12);
  --neutral-bg: rgba(60, 60, 67, 0.07);
  --shimmer: #ececee;

  /* shape & motion */
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --transition: 0.16s ease;
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- Dark theme (2026-07-18) ---
   Token-level override: every component reads the palette through these
   vars, so the whole UI flips with no per-component work. `prefers-color-
   scheme` is the default signal; an explicit [data-theme] (stamped by the
   Telegram theme sync — see components/TelegramSetup.tsx) wins in BOTH
   directions, so a user whose OS is dark but Telegram is light still gets
   light, and vice-versa. The single accent inverts — a near-black primary
   on light becomes near-white on dark, --on-accent following it — which is
   why every button reads background:var(--accent);color:var(--on-accent). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0e10;
    --surface: #17181b;
    --surface-2: #202226;
    --border: #26282d;
    --border-strong: #34373d;
    --text: #f2f3f5;
    --text-secondary: #a0a6ad;
    --text-tertiary: #7c828a;
    --accent: #f2f3f5;
    --accent-hover: #ffffff;
    --on-accent: #17181b;
    --danger: #f0a3a0;
    --danger-bg: rgba(240, 120, 120, 0.14);
    --success: #7fce9b;
    --success-bg: rgba(60, 180, 110, 0.14);
    --warning: #e3c07a;
    --warning-bg: rgba(230, 190, 110, 0.14);
    --neutral-bg: rgba(220, 225, 230, 0.08);
    --shimmer: #2a2c31;
    --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0e10;
  --surface: #17181b;
  --surface-2: #202226;
  --border: #26282d;
  --border-strong: #34373d;
  --text: #f2f3f5;
  --text-secondary: #a0a6ad;
  --text-tertiary: #7c828a;
  --accent: #f2f3f5;
  --accent-hover: #ffffff;
  --on-accent: #17181b;
  --danger: #f0a3a0;
  --danger-bg: rgba(240, 120, 120, 0.14);
  --success: #7fce9b;
  --success-bg: rgba(60, 180, 110, 0.14);
  --warning: #e3c07a;
  --warning-bg: rgba(230, 190, 110, 0.14);
  --neutral-bg: rgba(220, 225, 230, 0.08);
  --shimmer: #2a2c31;
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: #e6e6e9;
  --border-strong: #d2d2d7;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #1d1d1f;
  --accent-hover: #000000;
  --on-accent: #ffffff;
  --danger: #b42318;
  --danger-bg: rgba(180, 35, 24, 0.08);
  --success: #1e7a3c;
  --success-bg: rgba(30, 122, 60, 0.1);
  --warning: #92610e;
  --warning-bg: rgba(146, 97, 14, 0.12);
  --neutral-bg: rgba(60, 60, 67, 0.07);
  --shimmer: #ececee;
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 2px;
}

.main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* --- Auth --- */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.auth-brand-logo {
  height: 120px;
  width: auto;
  display: block;
  margin-bottom: -0.4rem; /* the mark's own transparent padding already spaces it */
}

/* The brand mark is black line-art PNG — invisible on a dark surface. Flip
   it to white in dark mode (2026-07-18), covering both the prefers-color-
   scheme default and an explicit [data-theme] set by the Telegram sync. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-brand-logo,
  :root:not([data-theme="light"]) .dashboard-nav-mark {
    filter: brightness(0) invert(1);
  }
}
:root[data-theme="dark"] .auth-brand-logo,
:root[data-theme="dark"] .dashboard-nav-mark {
  filter: brightness(0) invert(1);
}

.auth-brand-name {
  font-family: var(--font-brand), -apple-system, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-indent: 0.32em; /* optically recenter letterspaced text */
}

.auth-brand-rule {
  width: 56px;
  height: 1px;
  background: var(--border-strong);
}

.auth-brand-tagline {
  font-family: var(--font-brand), -apple-system, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-indent: 0.28em;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  width: 340px;
  padding: 0;
}

.auth-form h1 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.auth-form input {
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--transition);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--text);
}

.auth-form button {
  margin-top: 0.375rem;
  padding: 0.7rem;
  border: none;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.auth-form button:hover {
  background: var(--accent-hover);
}

.auth-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-error {
  color: var(--danger);
  font-size: 0.875rem;
}

/* --- Dashboard shell --- */

.dashboard-shell {
  min-height: 100vh;
}

/* The nav must NEVER widen the page: long content wraps to a second row
   instead of forcing horizontal scroll, and the user email is truncated
   (it's identity, not reading material). */
.dashboard-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
  padding: 0.875rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dashboard-nav-mark {
  height: 22px;
  width: auto;
  display: block;
}

.dashboard-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-brand), -apple-system, system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  flex: 1 1;
  min-width: 0;
}

.dashboard-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition);
}

.dashboard-nav-link:hover {
  color: var(--text);
}

.dashboard-nav-link.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.dashboard-nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.dashboard-nav-email {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .dashboard-nav-email {
    display: none;
  }
}

.dashboard-nav-logout {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  transition: background var(--transition), border-color var(--transition);
}

.dashboard-nav-logout:hover {
  background: var(--surface-2);
  border-color: var(--text-tertiary);
}

/* "Add to home screen" — only rendered inside a supporting Telegram build
   (see AddToHomeScreenButton). Pill on desktop, full-width in the drawer. */
.add-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.add-home-btn:hover {
  background: var(--surface);
  border-color: var(--text-tertiary);
}
@media (max-width: 900px) {
  .add-home-btn {
    width: 100%;
    margin-top: 0.75rem;
  }
}

.dashboard-content {
  padding: 2.5rem 2rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.dashboard-page h1 {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}

.dashboard-section {
  margin-top: 3rem;
}

.dashboard-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

/* --- Stat cards --- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.5rem;
}

.stat-card-value {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.stat-card-label {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* On a phone the auto-fit grid collapses to one column and the desktop
   padding/size make each tile huge — a wall of oversized cards to scroll
   past. Pin to a compact 2-up grid with tighter spacing and a smaller
   value so the whole stat block reads at a glance (2026-07-18). */
@media (max-width: 640px) {
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0.6rem;
    gap: 0.6rem;
  }
  /* A trailing odd tile spans the full row so it lines up with the grid's
     edges, instead of floating half-width in the middle (which read as
     crooked) or hugging the left column. */
  .stat-grid > .stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .stat-card {
    padding: 0.85rem 0.95rem;
  }
  .stat-card-value {
    font-size: 1.4rem;
  }
  .stat-card-label {
    margin-top: 0.35rem;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
}

/* --- Tables --- */

/* `border-collapse: separate` (not collapse) + per-cell borders: the
   combination `position: sticky` needs — collapsed borders detach from
   sticky header cells and smear while scrolling. Corner rounding is done
   on the corner CELLS because `overflow: hidden` on the table would make
   it its own (non-scrolling) scroll container and silently kill sticky. */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  font-size: 0.875rem;
}

.data-table thead th:first-child {
  border-top-left-radius: var(--radius-m);
}

.data-table thead th:last-child {
  border-top-right-radius: var(--radius-m);
}

.data-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-m);
}

.data-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-m);
}

.data-table th {
  text-align: left;
  padding: 0.8rem 1rem;
  background: var(--surface);
  color: var(--text-tertiary);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border);
}

.data-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table td {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

.data-table tr:first-child td {
  border-top: none;
}

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

/* Deep-link target row (AI Workspace citation → group/media page,
   2026-07-16): a persistent marker distinct from the transient :hover
   fill, so the cited row stays identifiable after the pointer moves. */
.table-row-highlighted {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.table-index-cell {
  text-align: right;
  color: var(--text-tertiary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.empty-state {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 1rem 0;
  line-height: 1.55;
}

/* --- Empty-state card (what + why + the action that fills it) --- */

.empty-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  padding: 3rem 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  text-align: center;
}

.empty-card-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.empty-card-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.55;
}

.empty-card .run-button {
  margin-top: 0.5rem;
}

/* --- Loading skeletons --- */

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.skeleton-line {
  height: 2.4rem;
  border-radius: var(--radius-s);
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--shimmer) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: skeleton-shimmer 1.4s ease infinite;
}

.skeleton-line:nth-child(1) { width: 100%; }
.skeleton-line:nth-child(2) { width: 96%; }
.skeleton-line:nth-child(3) { width: 99%; }
.skeleton-line:nth-child(4) { width: 94%; }
.skeleton-line:nth-child(5) { width: 98%; }
.skeleton-line:nth-child(n + 6) { width: 92%; }

@keyframes skeleton-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-line { animation: none; }
}

/* --- Scroll shell for wide tables ---
   On desktop the page is the ONE scroll surface (no nested scrolling) and
   sticky headers pin against the viewport. `overflow` here would hijack
   the sticky context, so it turns on only below 1100px, where a wide
   table genuinely can't fit and needs its own horizontal scroll (sticky
   vertical pinning is sacrificed there — the lesser evil on a phone). */

.table-scroll {
  border-radius: var(--radius-m);
}

@media (max-width: 1100px) {
  .table-scroll {
    overflow-x: auto;
  }

  .table-scroll .data-table {
    min-width: 640px;
  }
}

.table-scroll::-webkit-scrollbar {
  height: 8px;
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.table-scroll::-webkit-scrollbar-track {
  background: transparent;
}

/* --- Table → cards on mobile (2026-07-18) ---
   Tables tagged `.mobile-cards` drop their header row on a phone and render
   each row as a card: the column name moves inline as a label via the
   `data-label` attribute on each cell. No horizontal scroll — every field
   stacks within the phone width. Desktop is untouched (rules are ≤640px
   only). Placed AFTER `.table-scroll .data-table{min-width}` so the equal-
   specificity `min-width:0` reset wins by source order. */
@media (max-width: 640px) {
  .data-table.mobile-cards {
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
    /* Card-tables are full-width dark cards; without a clear gap the first
       one blends into whatever precedes it (a stat tile, another section) —
       "slipping together". This separates every card-table from the block
       above it. */
    margin-top: 1.25rem;
  }
  .data-table.mobile-cards thead {
    display: none;
  }
  .data-table.mobile-cards tbody {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
  }
  .data-table.mobile-cards tbody tr {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.35rem 0.9rem;
  }
  .data-table.mobile-cards tbody tr:hover {
    background: var(--surface);
  }
  .data-table.mobile-cards td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border: 0;
    text-align: right;
    font-size: 0.9rem;
    white-space: normal;
  }
  .data-table.mobile-cards td + td {
    border-top: 1px solid var(--border);
  }
  .data-table.mobile-cards td::before {
    content: attr(data-label);
    flex: none;
    max-width: 45%;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
  }
  /* action / index cells carry an empty label — no prefix, value right */
  .data-table.mobile-cards td[data-label=""]::before {
    content: none;
  }
}

.page-error {
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: var(--radius-s);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.table-error-note {
  margin-top: 0.25rem;
  color: var(--danger);
  font-size: 0.75rem;
  max-width: 260px;
}

/* --- Badges --- */

.badge {
  display: inline-block;
  padding: 0.125rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-error {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-neutral {
  background: var(--neutral-bg);
  color: var(--text-secondary);
}

/* --- Connect WhatsApp flow (Sprint 11) --- */

.connect-whatsapp-panel {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.connect-whatsapp-qr {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: var(--radius-m);
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.connect-whatsapp-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.connect-whatsapp-status {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.connect-whatsapp-status.is-connected {
  color: var(--success);
}

.connect-whatsapp-status.is-failed {
  color: var(--danger);
}

.advanced-accounts-toggle {
  margin-top: 1.5rem;
}

.advanced-accounts-toggle summary {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

/* --- Buttons --- */

.run-button {
  padding: 0.375rem 0.875rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}

.run-button:hover {
  background: var(--accent-hover);
}

.run-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* quiet variant for repeated row actions (e.g. "Open" in tables) */
.data-table .run-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.data-table .run-button:hover {
  background: var(--surface-2);
  border-color: var(--text-tertiary);
}

/* --- Sync logs page --- */

.log-level {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.log-level-info {
  color: var(--text-secondary);
}

.log-level-warning {
  color: var(--warning);
}

.log-level-error {
  color: var(--danger);
}

/* --- Media page --- */

.upload-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1rem 1.25rem;
}

.upload-form input[type="file"] {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.upload-result-note {
  color: var(--success);
  font-size: 0.8rem;
}

.media-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.media-filters input,
.media-filters select {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  transition: border-color var(--transition);
}

.media-filters input:focus,
.media-filters select:focus {
  outline: none;
  border-color: var(--text);
}

.media-filters input {
  min-width: 260px;
}

/* --- Mapping page --- */

.mapping-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.5rem;
  max-width: 640px;
}

.mapping-group h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.625rem;
}

.mapping-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.mapping-required {
  color: var(--danger);
}

.mapping-row input {
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
}

/* --- Media import cell --- */

.import-cell {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 200px;
}

.import-cell select {
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
}

/* --- Import jobs / errors --- */

.error-link {
  color: var(--danger);
  font-weight: 600;
  text-decoration: underline;
}

.raw-row-cell {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* --- Document Intelligence / Projects (Sprint 8) --- */

.tab-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color var(--transition);
}

.tab-button:hover {
  color: var(--text);
}

.tab-button.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.entity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entity-list li {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font-size: 0.85rem;
  background: var(--surface);
}

/* Daily Brief highlights: a clean divided list inside the brief card, not
   a stack of boxed mini-cards (a border nested inside the card's own border
   read as "ugly little tables"). Hairline dividers + a leading dot. */
.workspace-daily-brief .entity-list {
  gap: 0;
  margin-top: 0.25rem;
}
.workspace-daily-brief .entity-list li {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 0.7rem 0 0.7rem 0.95rem;
  position: relative;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}
.workspace-daily-brief .entity-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.12rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.knowledge-pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.875rem;
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* --- Nav dropdowns + search bar (Sprint 10) --- */

.dashboard-nav-dropdown {
  position: relative;
}

.dashboard-nav-dropdown > button {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.dashboard-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  /* Always in the DOM now (the mobile drawer expands it inline), so the
     desktop popover is gated on `.open` instead of on conditional render. */
  display: none;
  flex-direction: column;
  min-width: 190px;
  margin-top: 0.5rem;
  padding: 0.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-pop);
}

.dashboard-nav-dropdown-menu.open {
  display: flex;
}

.dashboard-nav-caret {
  font-size: 0.7em;
  opacity: 0.6;
}

.dashboard-nav-dropdown-item {
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-s);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}

.dashboard-nav-dropdown-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.dashboard-nav-dropdown-item.active {
  color: var(--text);
  font-weight: 600;
}







/* --- Pagination (2026-07-18) — themes via tokens, responsive: numbered
   pages on desktop, a compact "page / total" on narrow screens --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.pagination-range {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.pagination-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-m);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.pagination-btn:hover:not(:disabled):not(.active) {
  background: var(--surface-2);
  border-color: var(--text-tertiary);
}
.pagination-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  cursor: default;
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-ellipsis {
  color: var(--text-tertiary);
  padding: 0 0.15rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
/* compact "page / total" label — mobile only */
.pagination-compact {
  display: none;
  font-size: 0.9rem;
  color: var(--text);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  padding: 0 0.5rem;
  min-width: 3.5rem;
  text-align: center;
}
@media (max-width: 640px) {
  .pagination-numbers {
    display: none;
  }
  .pagination-compact {
    display: inline-block;
  }
  .pagination {
    justify-content: center;
  }
  .pagination-range {
    width: 100%;
    text-align: center;
    order: 2;
  }
}

/* --- Mobile navigation: burger drawer (2026-07-18) ---
   Desktop is untouched: the two structural wrappers are `display: contents`,
   so brand / links / search / user flatten straight back into the nav flex
   row exactly as before, and the burger + scrim stay hidden. Below the
   breakpoint the panel turns into an off-canvas drawer. */
.dashboard-nav-bar,
.dashboard-nav-panel {
  display: contents;
}

.dashboard-nav-burger,
.dashboard-nav-scrim {
  display: none;
}

@media (max-width: 900px) {
  .dashboard-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 40;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  /* top bar: burger + brand */
  .dashboard-nav-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
  }
  .dashboard-nav-burger {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: -0.35rem;
    border: 0;
    border-radius: var(--radius-m);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition);
  }
  .dashboard-nav-burger:hover {
    background: var(--surface-2);
  }
  .dashboard-nav-brand {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* the link panel becomes an off-canvas drawer. It opens BELOW the top
     bar (top: 64px ≈ 40px burger + 2×0.75rem padding) so the bar — and the
     burger, which toggles to ✕ — stays visible and clickable while the
     drawer is open; a full-height drawer would bury its own close control. */
  .dashboard-nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: min(84vw, 320px);
    padding: 1rem 0.75rem calc(1rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-pop);
    transform: translateX(-102%);
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 60;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .dashboard-nav.mobile-open .dashboard-nav-panel {
    transform: translateX(0);
  }

  /* links stack vertically; groups render expanded inline */
  .dashboard-nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    flex: 0 0 auto;
    width: 100%;
  }
  .dashboard-nav-link {
    padding: 0.7rem 0.6rem;
    border-radius: var(--radius-m);
    border-bottom: 0;
    font-size: 1rem;
  }
  .dashboard-nav-link.active {
    background: var(--surface-2);
    border-bottom-color: transparent;
  }
  .dashboard-nav-dropdown > button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  /* Accordion: the caret is the affordance and rotates when expanded. */
  .dashboard-nav-caret {
    display: inline-block;
    transition: transform var(--transition);
  }
  .dashboard-nav-link[aria-expanded="true"] .dashboard-nav-caret {
    transform: rotate(180deg);
  }
  /* Submenus collapse by default in the drawer — a group's sub-links only
     appear once its header is tapped (openGroup → `.open`), so the menu
     stays short instead of listing every child at once. */
  .dashboard-nav-dropdown-menu {
    display: none;
    position: static;
    min-width: 0;
    margin: 0 0 0.25rem 0.55rem;
    padding: 0.1rem 0 0.1rem 0.6rem;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .dashboard-nav-dropdown-menu.open {
    display: flex;
  }
  .dashboard-nav-dropdown-item {
    font-size: 0.95rem;
    padding: 0.55rem 0.6rem;
  }

  /* search + account settle to the bottom of the drawer */
  
  
  .dashboard-nav-user {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    justify-content: space-between;
  }
  .dashboard-nav-email {
    display: block;
    max-width: none;
  }

  /* dimming scrim behind the drawer — starts below the bar so the bar
     (and the ✕ close) stays live while the drawer is open */
  .dashboard-nav-scrim {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    border: 0;
    padding: 0;
    background: rgba(10, 10, 12, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 50;
    cursor: default;
  }
  .dashboard-nav.mobile-open .dashboard-nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .dashboard-nav-panel,
  .dashboard-nav-scrim {
    transition: none;
  }
}

/* --- AI Workspace (Sprint 10) --- */

.workspace-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.workspace-daily-brief {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.5rem;
}

.workspace-daily-brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* The title is now a toggle: collapsed by default, expands the brief. */
.workspace-daily-brief-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  min-width: 0;
}
.workspace-daily-brief-chevron {
  flex: none;
  color: var(--text-tertiary);
  transition: transform var(--transition);
}
.workspace-daily-brief-toggle[aria-expanded="true"] .workspace-daily-brief-chevron {
  transform: rotate(180deg);
}

/* Collapsible body: the grid-rows 0fr↔1fr trick eases to the content's own
   height with no hardcoded max-height. */
.workspace-daily-brief-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.workspace-daily-brief-body.open {
  grid-template-rows: 1fr;
}
.workspace-daily-brief-inner {
  min-height: 0;
  overflow: hidden;
}
.workspace-daily-brief-body.open .workspace-daily-brief-inner {
  padding-top: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .workspace-daily-brief-body,
  .workspace-daily-brief-chevron {
    transition: none;
  }
}

.workspace-daily-brief-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.workspace-daily-brief-tldr {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
}

.workspace-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Suggested-question chips: two per row, equal size — a tidy grid instead
   of ragged pills of every length. */
.workspace-suggestions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 0.5rem;
  gap: 0.5rem;
}
.workspace-suggestions .quick-action-button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
}

.quick-action-button {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.quick-action-button:hover {
  background: var(--surface-2);
}

.quick-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quick-action-button.active {
  border-color: var(--text);
  background: var(--accent);
  color: var(--on-accent);
}

.workspace-grid {
  display: grid;
  /* minmax(0, 1fr) — NOT 1fr — so a wide AI answer (long code, a big table)
     scrolls inside its own bubble instead of stretching the chat column and
     dragging the whole page sideways. A plain 1fr track has min-width:auto,
     which lets oversized content expand it. */
  grid-template-columns: 210px minmax(0, 1fr) 290px;
  grid-gap: 1.25rem;
  gap: 1.25rem;
  align-items: start;
}

.workspace-history,
.workspace-context {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.125rem;
  /* Bounded + independently scrolling (2026-07-16, revised same day after
     a real regression report — "input keeps sliding, history goes
     crooked"). The FIRST attempt at this fix used `position: sticky` +
     `max-height: calc(100vh - 2rem)` on BOTH side columns via this same
     shared selector — that made each one balloon toward ~full viewport
     height (since sticky's own box still occupies its full max-height in
     the grid track once content exceeds it), which set the WHOLE grid
     row's height near 100vh; the short-content middle chat column then
     sat pinned to the TOP of that oversized row (`align-items: start`),
     leaving a huge dead gap above the input box — read live as "всё
     съезжает". A plain (non-sticky) capped box is the right tool: each
     side column is now independently scrollable within a modest, fixed
     height, never influenced by the other column's content or by page
     scroll position. */
  max-height: 70vh;
  overflow-y: auto;
}

.workspace-context h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.workspace-new-button {
  width: 100%;
  margin-bottom: 0.875rem;
}

.workspace-history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.workspace-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-s);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.workspace-history-item:hover {
  background: var(--surface-2);
}

.workspace-history-item.active {
  background: var(--surface-2);
  color: var(--text);
}

.workspace-history-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-delete-button {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color var(--transition);
}

.workspace-delete-button:hover {
  color: var(--danger);
}

.workspace-chat {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  /* A fixed (not min-) height (2026-07-16 — found live: with only
     `min-height`, an empty/short conversation left the input sitting
     wherever the flex column's natural content ended, nowhere near the
     bottom of the panel, read as "стоит криво в центре, а не
     зафиксировано внизу"). Fixed height + `.workspace-messages{flex:1}`
     below means the input is ALWAYS pinned to this panel's bottom edge,
     regardless of how many messages there are — messages scroll inside
     their own flex:1 area instead of the panel growing/shrinking. */
  height: 75vh;
  min-width: 0;
}

/* The conversation is now a clearly-bounded panel (2026-07-18 — it read as
   an undefined empty area before): its own surface, border, and padding so
   it's obviously the chat, distinct from the page around it. */
.workspace-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1 1;
  overflow-y: auto;
  min-height: 0;
  min-width: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}

.workspace-bubble {
  max-width: 85%;
  min-width: 0;
  padding: 0.8rem 1.05rem;
  border-radius: var(--radius-l);
  font-size: 0.9rem;
  line-height: 1.55;
}

.workspace-bubble-user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
  /* The user's own typed text, rendered as plain text (not markdown) —
     preserve their literal line breaks. Assistant bubbles render real
     markdown elements below, which supply their own spacing. */
  white-space: pre-wrap;
}

.workspace-bubble-assistant {
  align-self: flex-start;
  background: var(--surface-2);
}

.workspace-typing {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.85rem 1.1rem;
}

.workspace-typing-label {
  margin-right: 0.15rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.workspace-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  animation: workspace-typing-bounce 1.1s ease-in-out infinite;
}

.workspace-typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.workspace-typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes workspace-typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-typing-dot {
    animation: none;
  }
}

.workspace-bubble-content {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Code blocks scroll inside their own box instead of widening the bubble
   (and with it the page). */
.workspace-bubble-content pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 0 0 0.6em;
  padding: 0.7em 0.85em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  font-size: 0.85em;
}
.workspace-bubble-content pre code {
  background: none;
  border: 0;
  padding: 0;
}

/* Markdown rendered inside an assistant bubble (2026-07-16 — content used
   to render as raw text, so a model-written price table showed as literal
   unformatted "| Юнит | Цена |..." pipe characters). Tight, monochrome,
   readable in a narrow chat column — tokens only, per the brand pass. */
.workspace-bubble-content p {
  margin: 0 0 0.6em;
}

.workspace-bubble-content p:last-child {
  margin-bottom: 0;
}

.workspace-bubble-content ul,
.workspace-bubble-content ol {
  margin: 0 0 0.6em;
  padding-left: 1.3em;
}

.workspace-bubble-content li {
  margin-bottom: 0.2em;
}

.workspace-bubble-content strong {
  font-weight: 600;
}

.workspace-bubble-content a {
  color: inherit;
  text-decoration: underline;
  -webkit-text-decoration-color: var(--border-strong);
          text-decoration-color: var(--border-strong);
  text-underline-offset: 2px;
}

.workspace-bubble-content code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.05em 0.35em;
  font-size: 0.85em;
}

.workspace-bubble-content > .workspace-md-table-wrap {
  overflow-x: auto;
  margin: 0 0 0.6em;
  /* One-hop scroll on narrow viewports instead of the whole page
     scrolling sideways — a real risk once tables carry 4-5 numeric
     columns (price/area/balcony/...). */
}

.workspace-bubble-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85em;
  white-space: nowrap;
}

.workspace-bubble-content th,
.workspace-bubble-content td {
  border: 1px solid var(--border);
  padding: 0.35em 0.6em;
  text-align: left;
}

.workspace-bubble-content th {
  background: var(--surface);
  font-weight: 600;
}

.workspace-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.workspace-copy-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 0;
  padding: 0.25rem 0.4rem;
  border-radius: var(--radius-s);
  color: var(--text-tertiary);
  font-size: 0.72rem;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}
.workspace-copy-btn:hover {
  color: var(--text);
  background: var(--surface);
}

/* Unified composer (2026-07-18): one continuous bar carrying the border and
   background; the input, mic, and Send sit INSIDE it borderless, so it reads
   as a single connected surface rather than three separate boxes. */
.composer-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  padding: 0.3rem 0.35rem 0.3rem 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  transition: border-color var(--transition);
}
.composer-bar:focus-within {
  border-color: var(--text);
}

.composer-input {
  flex: 1 1;
  min-width: 0;
  min-height: 40px;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.4;
  resize: none;
  max-height: 140px;
  overflow-y: auto;
}
.composer-input:focus {
  outline: none;
}
.composer-input::placeholder {
  color: var(--text-tertiary);
}

/* Mic + Send: round 40px controls inside the bar, self-anchored to the
   bottom so they stay put as the input grows. Custom SVG glyphs, no emoji. */
.composer-icon-btn,
.composer-send {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}
.composer-icon-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
}
.composer-icon-btn:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}
.composer-icon-btn.listening {
  background: var(--danger-bg);
  color: var(--danger);
}
.composer-send {
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
}
.composer-send:hover:not(:disabled) {
  background: var(--accent-hover);
}
/* While the AI is thinking, Send becomes a red Stop that aborts the request. */
.composer-send.composer-stop {
  background: var(--danger);
  color: var(--on-accent);
}
.composer-icon-btn:disabled,
.composer-send:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.workspace-recommendations-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.workspace-recommendations-header h2 {
  margin-bottom: 0;
}

.workspace-recommendations-link {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ai-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.125rem;
  margin-bottom: 0.875rem;
}

@media (max-width: 960px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Stacked, the chat is what the user came for — pull it above the
     conversation history and the recommendations rail (which follow it),
     rather than making them scroll past the history to reach the input. */
  .workspace-chat {
    order: -1;
    height: 70vh;
  }
}

/* --- Insights feed (Enterprise Sprint 6 / Frontend Mini Sprint) --- */

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1rem 1.25rem;
}

.insight-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.insight-card-time {
  margin-left: auto;
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.insight-card-title {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Compact variant for the AI Workspace sidebar (2026-07-16) — an
   Insight.title is a raw, unbounded diff string ("Изменение
   commercial_terms.full_payment_discount ... Not specified, but buyers
   committing with 50% or full payment receive priority ..."), fine at
   full page width on /dashboard/insights but wrapping to 8-10 lines in a
   290px column, which was the actual cause of each recommendation card
   ballooning and dragging the whole row tall. Clamped, not truncated by
   the backend — the full text stays one click away on /dashboard/insights. */
.insight-card-title-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.insight-why {
  color: var(--text-secondary);
}

/* --- Agent badge + "how was this answered" panel (Sprint 7a) --- */

.agent-badge {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  background: var(--neutral-bg);
  color: var(--text-secondary);
}

.agent-badge-investment {
  background: var(--accent);
  color: var(--on-accent);
}

.agent-badge-market {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.agent-badge-general {
  background: var(--neutral-bg);
  color: var(--text-secondary);
}

.explain-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0.15rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.explain-toggle:hover {
  color: var(--text);
}

.explain-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.75rem 0.95rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.explain-panel h4 {
  margin: 0.45rem 0 0.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.explain-panel h4:first-child {
  margin-top: 0;
}

.explain-panel code {
  background: rgba(60, 60, 67, 0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

.workspace-input-wrap {
  position: relative;
}

/* --- Voice input (2026-07-16) --- */

.mic-button {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-m);
  padding: 0 0.85rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  /* Matches the textarea's single-line height; align-items:flex-end on
     the form keeps it pinned to the bottom edge as the textarea grows. */
  min-height: 2.9rem;
}

.mic-button:hover {
  background: var(--surface-2);
}

.mic-button.listening {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.mic-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Chat model picker (2026-07-16) --- */

.model-picker {
  position: relative;
  margin-top: 0.4rem;
}

.model-picker-toggle {
  background: none;
  border: none;
  padding: 0.15rem 0.2rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  cursor: pointer;
  transition: color var(--transition);
}

.model-picker-toggle:hover {
  color: var(--text);
}

.model-picker-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.model-picker-real {
  color: var(--text-tertiary);
  font-size: 0.72rem;
}

.model-picker-menu {
  /* Same overlay rule as .mention-hint — a popover must never shove the
     input row around by entering normal flow. Opens upward (bottom:100%):
     the picker sits at the panel's bottom edge, so downward would clip. */
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  min-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-pop);
  z-index: 5;
  overflow: hidden;
}

.model-picker-option {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
  text-align: left;
  background: none;
  border: none;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
}

.model-picker-option:hover {
  background: var(--surface-2);
}

.model-picker-option.active {
  background: var(--surface-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.model-picker-option-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.model-picker-option-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.mention-hint {
  /* Overlay, not a normal-flow sibling of the input form (2026-07-16) —
     see the operator's report + the comment at this component's JSX call
     site: a normal-flow version pushed the input row down/up on every
     keystroke of "@...". Anchored to `.workspace-input-wrap` below. */
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 0.5rem;
  box-shadow: var(--shadow-pop);
  z-index: 5;
}

/* --- Subscriptions page --- */

.subscriptions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .subscriptions-grid {
    grid-template-columns: 1fr;
  }
}

.subscriptions-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.375rem 1.5rem;
}

.subscriptions-col h2 {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
}

.subscriptions-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.subscriptions-form-column {
  flex-direction: column;
}

.subscriptions-form-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subscriptions-form select,
.subscriptions-form input {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  color: var(--text);
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  flex: 1 1;
  min-width: 120px;
  max-width: 100%;
}

/* Phone: two-up input rows would overflow a ~280px column (2×min-width +
   gap), which is where the horizontal scroll came from — stack them
   full-width instead. */
@media (max-width: 640px) {
  .subscriptions-form-row {
    flex-direction: column;
  }
  .subscriptions-form select,
  .subscriptions-form input {
    min-width: 0;
    width: 100%;
  }
}

.subscriptions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subscription-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 0.55rem 0.8rem;
  font-size: 0.87rem;
}

.subscription-name {
  flex: 1 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.subscription-details {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.76rem;
  margin-top: 0.15rem;
}

/* --- Brand launch splash (2026-07-19) — a deliberately always-dark screen
   (matches the dark app icon), independent of the app's light/dark theme, so
   the fixed dark values here are intentional, not a token miss. Shown only on
   an app launch (installed PWA / Telegram); see components/SplashScreen.tsx. */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0d0e10;
  overflow: hidden;
  /* Hidden by default — shown only on an app launch (html.app-launch, set
     pre-paint for PWA / by SplashScreen for Telegram), so an ordinary browser
     tab never sees it. */
  display: none;
}
html.app-launch .splash {
  display: block;
}
.splash-hide {
  opacity: 0;
  transition: opacity 0.5s ease;
}
/* The mark sits at the EXACT screen centre at ~the OS splash icon's size, so
   when our overlay takes over from the OS icon splash the mark doesn't jump —
   it's already exactly where the system left it. Only the text (placed below
   centre) animates in. No entrance animation on the mark = no second zoom. */
.splash-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Scales with the screen (like Android's own splash icon) and sized to be
     no smaller than the OS icon, so our /K doesn't visibly shrink into it on
     handoff. Cap keeps it sane on tablets. */
  width: min(52vw, 230px);
  height: min(52vw, 230px);
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.splash-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  /* Sits just under the (now larger, responsive) mark. */
  margin-top: calc(min(26vw, 115px) + 1.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1.5rem;
  text-align: center;
}
.splash-title {
  font-family: var(--font-brand), -apple-system, system-ui, sans-serif;
  font-size: clamp(1.5rem, 7.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: #f4f5f7;
  opacity: 0;
  animation: splash-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}
.splash-rule {
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  animation: splash-rule 0.5s ease 0.7s forwards;
}
.splash-tagline {
  font-family: var(--font-brand), -apple-system, system-ui, sans-serif;
  font-size: clamp(0.62rem, 3vw, 0.8rem);
  font-weight: 300;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: splash-in 0.7s ease 0.9s forwards;
}
@keyframes splash-mark {
  from { opacity: 0; transform: scale(0.55); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes splash-in {
  from { opacity: 0; transform: translateY(16px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splash-rule {
  to { width: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .splash-mark,
  .splash-title,
  .splash-rule,
  .splash-tagline {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }
}

/* ------------------------------------------------------------------ */
/* Investor Workspace — the project decision screen.                   */
/* Tokens only, no literal colours (brand rule).                       */
/* ------------------------------------------------------------------ */

.iw-hero {
  margin: 4px 0 20px;
}
.iw-hero h1 {
  margin-bottom: 4px;
}
.iw-hero-meta {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin: 2px 0;
}

.iw-band {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-s);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.iw-band-good { background: var(--success-bg); color: var(--success); }
.iw-band-bad { background: var(--danger-bg); color: var(--danger); }
.iw-band-neutral { background: var(--neutral-bg); color: var(--text-secondary); }

/* ⚠ Watch — only rendered when the Engine flagged something */
.iw-watch {
  background: var(--warning-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.iw-watch-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--warning);
  margin: 0 0 8px;
}
.iw-watch ul { margin: 0; padding-left: 18px; }
.iw-watch li { color: var(--text); font-size: 0.94rem; margin: 3px 0; }
.iw-watch li.iw-watch-risk { color: var(--danger); }

/* Price positioning — the single most decision-useful figure */
.iw-price {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.iw-price-value {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 4px 0 12px;
}
.iw-price-value span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.iw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.iw-chip {
  padding: 4px 10px;
  border-radius: var(--radius-s);
  font-size: 0.82rem;
  font-weight: 550;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  cursor: default;
}
.iw-chip-good { background: var(--success-bg); color: var(--success); border-color: transparent; }
.iw-chip-warn { background: var(--neutral-bg); color: var(--text-secondary); border-color: transparent; }

/* Decision tiles */
.iw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 20px;
}
.iw-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 14px 16px;
}
.iw-tile-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.iw-tile-value {
  font-size: 1.5rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 6px 0 2px;
}
.iw-tile-sub { font-size: 0.84rem; color: var(--text-secondary); }
.iw-tile-empty {
  font-size: 0.88rem;
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: 8px;
}

.iw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.iw-actions .run-button { text-decoration: none; display: inline-flex; align-items: center; }

.secondary-button {
  padding: 9px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 550;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.secondary-button:hover:not(:disabled) { background: var(--surface-2); border-color: var(--text-tertiary); }
.secondary-button:disabled { opacity: 0.55; cursor: default; }

.iw-section-note { font-size: 0.8rem; font-weight: 500; color: var(--text-tertiary); }
.iw-section-body { white-space: pre-wrap; color: var(--text); margin: 0 0 8px; }

.iw-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.iw-footer .table-error-note { max-width: 70ch; margin: 0; }

@media (max-width: 640px) {
  .iw-price-value { font-size: 1.6rem; }
  .iw-tile-value { font-size: 1.3rem; }
  .iw-actions .run-button,
  .iw-actions .secondary-button { flex: 1 1 auto; justify-content: center; text-align: center; }
}

/* Comparison page bits */
.iw-chip-x {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  margin-left: 6px;
  padding: 0;
  opacity: 0.6;
}
.iw-chip-x:hover { opacity: 1; }

.iw-picker {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  margin-top: 8px;
  overflow: hidden;
}
.iw-picker li { padding: 0; border-bottom: 1px solid var(--border); }
.iw-picker li:last-child { border-bottom: none; }
.iw-picker-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition);
}
.iw-picker-item:hover { background: var(--surface-2); }

.iw-leader { font-weight: 650; color: var(--text); }

.filter-input {
  width: 100%;
  max-width: 460px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
  font-size: 0.94rem;
  transition: border-color var(--transition);
}
.filter-input:focus { outline: none; border-color: var(--accent); }
.filter-input::placeholder { color: var(--text-tertiary); }
.filter-input:disabled { opacity: 0.6; cursor: default; }

/* AI Workspace — open-project context bar (Investor Workspace hand-off) */
.iw-context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
}
.iw-context-label {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 550;
}
.iw-context-label a { color: var(--text); }
.iw-context-prompts { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }

/* Shared list search box */
.search-box { position: relative; display: inline-block; width: 100%; max-width: 460px; margin-bottom: 12px; }
.search-box .filter-input { width: 100%; padding-right: 34px; }
.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.search-clear:hover { color: var(--text); }

/* Source attribution / disclaimers: muted, NOT danger-coloured (they are
   provenance, not errors — .table-error-note uses var(--danger)). */
.iw-source {
  color: var(--text-tertiary);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0.35rem 0 0;
  max-width: 90ch;
}

/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app/layout.tsx","import":"Jost","arguments":[{"subsets":["latin"],"weight":["300","400","500"],"variable":"--font-brand","display":"swap"}],"variableName":"brandFont"} ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic */
@font-face {
  font-family: '__Jost_1c3766';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/b8c37bb59076c047-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: '__Jost_1c3766';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/5bbac197f803cc34-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Jost_1c3766';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/_next/static/media/9dd75fadc5b3df29-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: '__Jost_1c3766';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/b8c37bb59076c047-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: '__Jost_1c3766';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/5bbac197f803cc34-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Jost_1c3766';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/9dd75fadc5b3df29-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: '__Jost_1c3766';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/b8c37bb59076c047-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: '__Jost_1c3766';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/5bbac197f803cc34-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: '__Jost_1c3766';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/9dd75fadc5b3df29-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: '__Jost_Fallback_1c3766';src: local("Arial");ascent-override: 111.45%;descent-override: 39.06%;line-gap-override: 0.00%;size-adjust: 96.01%
}.__className_1c3766 {font-family: '__Jost_1c3766', '__Jost_Fallback_1c3766';font-style: normal
}.__variable_1c3766 {--font-brand: '__Jost_1c3766', '__Jost_Fallback_1c3766'
}

