@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/manrope-cyrillic-ext-wght-normal.4cdf0bed0838.woff2") format('woff2-variations');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/manrope-cyrillic-wght-normal.e58febde317b.woff2") format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/manrope-latin-ext-wght-normal.6d36d5bdedfa.woff2") format('woff2-variations');
  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;
}

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("./fonts/manrope-latin-wght-normal.938c6e8019b6.woff2") format('woff2-variations');
  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;
}

:root {
  --q-night: #07101c;
  --q-sidebar: #0a1524;
  --q-panel: #0e1b2d;
  --q-panel-raised: #132238;
  --q-line: #24344c;
  --q-line-soft: #19283d;
  --q-copy: #eef3fa;
  --q-muted: #8fa0b9;
  --q-dim: #667993;
  --q-cyan: #71cfcb;
  --q-cyan-soft: rgba(113, 207, 203, 0.12);
  --q-amber: #e5ad63;
  --q-amber-soft: rgba(229, 173, 99, 0.12);
  --q-red: #f27680;
  --q-red-soft: rgba(242, 118, 128, 0.11);
  --q-green: #73cf9a;
  --q-green-soft: rgba(115, 207, 154, 0.11);
  --q-font: 'Manrope Variable', 'Segoe UI Variable', 'Segoe UI', sans-serif;
  --q-mono: 'Manrope Variable', 'Segoe UI Variable', 'Segoe UI', sans-serif;
  --q-font-caption: 0.75rem;
  --q-line-caption: 1rem;
  --q-font-body: 0.875rem;
  --q-line-body: 1.25rem;
  --q-font-subtitle: 1rem;
  --q-line-subtitle: 1.375rem;
  --q-font-section: 1.25rem;
  --q-line-section: 1.75rem;
  --q-font-page: 1.75rem;
  --q-line-page: 2.25rem;
  --q-sidebar-width: 188px;
  --q-header-height: 52px;
  --q-control-min: 36px;
  --q-page-gap: 32px;
  --q-section-gap: 12px;
  --q-panel-padding: 18px;
  --q-row-min: 66px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--q-night); font-family: var(--q-font); font-variant-numeric: tabular-nums; }
body { margin: 0; min-height: 100vh; color: var(--q-copy); background: var(--q-night); font-size: var(--q-font-body); line-height: var(--q-line-body); }
button, input, select, textarea { font: inherit; font-size: var(--q-font-body); line-height: var(--q-line-body); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--q-cyan); text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid var(--q-cyan); outline-offset: 3px; }

.q-skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; translate: 0 -160%; border-radius: 7px; background: var(--q-cyan); color: var(--q-night); padding: 9px 13px; font-weight: 600; }
.q-skip-link:focus { translate: 0; }

.q-shell { display: grid; grid-template-columns: var(--q-sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.q-sidebar { min-width: 0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; border-right: 1px solid var(--q-line-soft); background: rgba(10, 21, 36, 0.98); padding: 22px 14px 16px; }
.q-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; color: var(--q-copy); text-decoration: none; }
.q-brand__mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--q-cyan); color: var(--q-night); box-shadow: 0 0 0 5px rgba(113, 207, 203, 0.08); font: 600 var(--q-font-body)/1 var(--q-font); }
.q-brand__copy strong, .q-brand__copy small { display: block; }
.q-brand__copy strong { font-size: var(--q-font-body); line-height: var(--q-line-body); font-weight: 600; letter-spacing: -0.02em; }
.q-brand__copy small { margin-top: 1px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-nav { display: grid; gap: 4px; }
.q-nav__link { min-height: var(--q-control-min); display: flex; align-items: center; gap: 10px; border-radius: 8px; color: var(--q-muted); padding: 8px 10px; text-decoration: none; font-size: var(--q-font-body); line-height: var(--q-line-body); }
.q-nav__link svg { width: 15px; height: 15px; flex: 0 0 auto; }
.q-nav__link:hover { color: var(--q-copy); background: rgba(19, 34, 56, 0.62); }
.q-nav__link--active { color: var(--q-copy); background: var(--q-cyan-soft); box-shadow: inset 2px 0 0 var(--q-cyan); }
.q-sidebar__foot { margin-top: auto; border-top: 1px solid var(--q-line-soft); padding: 14px 8px 0; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-sidebar__foot span, .q-sidebar__foot strong { display: block; }
.q-sidebar__foot strong { margin-top: 7px; color: var(--q-green); font-size: var(--q-font-caption); line-height: var(--q-line-caption); font-weight: 500; }
.q-live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--q-green); box-shadow: 0 0 0 4px rgba(115, 207, 154, 0.08); }

.q-app { min-width: 0; background: radial-gradient(circle at 73% 0, rgba(57, 110, 139, 0.13), transparent 31%), var(--q-night); }
.q-topbar { min-height: var(--q-header-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--q-line-soft); padding: 0 20px; color: var(--q-muted); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-environment { display: flex; align-items: center; }
.q-user { display: flex; align-items: center; gap: 9px; border: 1px solid var(--q-line); border-radius: 9px; background: var(--q-panel); padding: 6px 7px 6px 10px; }
.q-user > span { color: var(--q-copy); }
.q-user > small { color: var(--q-dim); }
.q-user form { margin: 0; }
.q-user__logout { min-height: var(--q-control-min); border: 0; border-left: 1px solid var(--q-line); background: transparent; color: var(--q-muted); padding: 2px 7px 2px 10px; cursor: pointer; }
.q-user__logout:hover { color: var(--q-copy); }

.q-main { width: min(1480px, 100%); margin: 0 auto; padding: clamp(20px, 3vw, 42px); }
.q-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--q-page-gap); }
.q-kicker { margin: 0 0 6px; color: var(--q-cyan); font-size: var(--q-font-caption); line-height: var(--q-line-caption); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.q-page-head h1 { margin: 0; font-size: var(--q-font-page); line-height: var(--q-line-page); font-weight: 600; letter-spacing: -0.035em; }
.q-page-head__summary { max-width: 680px; margin: 9px 0 0; color: var(--q-muted); }
.q-page-head__meta { color: var(--q-dim); text-align: right; font-size: var(--q-font-caption); line-height: var(--q-line-caption); }

.q-panel, .q-card, .q-form-card { border: 1px solid var(--q-line); border-radius: 12px; background: rgba(14, 27, 45, 0.94); }
.q-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--q-line-soft); padding: var(--q-section-gap) var(--q-panel-padding); }
.q-panel__head h2 { margin: 0; font-size: var(--q-font-section); line-height: var(--q-line-section); font-weight: 600; }
.q-panel__body, .q-card, .q-form-card { padding: var(--q-panel-padding); }
.q-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--q-section-gap); }
.q-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr); gap: 18px; align-items: start; }
.q-stack { display: grid; gap: var(--q-section-gap); }

.q-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--q-line); border-radius: 12px; }
.q-table { width: 100%; border-collapse: collapse; background: rgba(14, 27, 45, 0.94); }
.q-table th { color: var(--q-dim); text-align: left; font-size: var(--q-font-caption); line-height: var(--q-line-caption); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.q-table th, .q-table td { border-bottom: 1px solid var(--q-line-soft); padding: 10px 12px; vertical-align: top; }
.q-table tbody tr:last-child td { border-bottom: 0; }
.q-table tbody tr:hover { background: rgba(19, 34, 56, 0.58); }
.q-table-wrap--flush { border: 0; border-radius: 0 0 12px 12px; }
.q-table__action { width: 1%; text-align: right; white-space: nowrap; }
.q-cell-note { display: block; margin-top: 2px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-money { color: var(--q-cyan); font-size: var(--q-font-subtitle); line-height: var(--q-line-subtitle); white-space: nowrap; }
.q-address { display: block; max-width: 360px; font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-inline-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.q-inline-actions form { margin: 0; }
.q-inline-actions .q-button { min-height: var(--q-control-min); padding: 6px 9px; font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-finance-table { min-width: 920px; }
.q-wallet-table { min-width: 900px; }
.q-mono { font-family: var(--q-mono); font-variant-numeric: tabular-nums; }
.q-break { overflow-wrap: anywhere; word-break: break-word; }
.q-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.q-form { display: grid; gap: 15px; }
.q-form p { display: grid; gap: 6px; margin: 0; }
.q-form label { color: var(--q-muted); font-size: var(--q-font-caption); line-height: var(--q-line-caption); font-weight: 600; }
.q-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), .q-form select, .q-form textarea { width: 100%; min-height: var(--q-control-min); border: 1px solid var(--q-line); border-radius: 8px; background: var(--q-panel-raised); color: var(--q-copy); padding: 7px 10px; }
.q-form textarea { min-height: 112px; resize: vertical; }
.q-form input::placeholder, .q-form textarea::placeholder { color: var(--q-dim); }
.q-form .helptext { color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-form-card--narrow { width: min(680px, 100%); }
.q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 3px; }
.q-button { min-height: var(--q-control-min); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--q-line); border-radius: 8px; background: var(--q-panel-raised); color: var(--q-copy); padding: 7px 12px; text-decoration: none; font-weight: 600; cursor: pointer; }
.q-button:hover { border-color: var(--q-muted); }
.q-button--primary { border-color: var(--q-cyan); background: var(--q-cyan); color: var(--q-night); }
.q-button--danger { border-color: rgba(242, 118, 128, 0.38); background: var(--q-red-soft); color: var(--q-red); }

.q-status { display: inline-flex; align-items: center; gap: 7px; width: fit-content; border-radius: 999px; background: var(--q-cyan-soft); color: var(--q-cyan); padding: 5px 9px; font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.q-status--warning { background: var(--q-amber-soft); color: var(--q-amber); }
.q-status--danger { background: var(--q-red-soft); color: var(--q-red); }
.q-status--success { background: var(--q-green-soft); color: var(--q-green); }
.q-alert, .q-errors { border-left: 3px solid var(--q-cyan); background: var(--q-cyan-soft); padding: 12px 14px; }
.q-alert--error, .q-errors { border-left-color: var(--q-red); background: var(--q-red-soft); }
.q-errors, .q-errors .errorlist, .q-form .errorlist { color: var(--q-red); }
.q-errors .errorlist, .q-form .errorlist { margin: 0; padding-left: 18px; }
.q-empty { padding: 36px 22px; color: var(--q-muted); text-align: center; }
.q-empty strong, .q-empty span { display: block; }
.q-empty span { margin-top: 5px; color: var(--q-dim); }
.q-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }

.q-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 18px; border: 1px solid var(--q-line-soft); border-radius: 11px; overflow: hidden; background: var(--q-line-soft); }
.q-fact { min-width: 0; background: var(--q-panel-raised); padding: 14px 15px; }
.q-fact dt { margin-bottom: 5px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-fact dd { margin: 0; overflow-wrap: anywhere; }
.q-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.q-record { min-height: var(--q-row-min); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--q-line-soft); padding: 11px 14px; }
.q-record:last-child { border-bottom: 0; }
.q-record--link { color: var(--q-copy); text-decoration: none; }
.q-record--link:hover { background: rgba(19, 34, 56, 0.58); }
.q-record--link > span { color: var(--q-dim); }
.q-panel--compact { max-width: 760px; }
.q-copy-note { margin: 0; color: var(--q-muted); }

.q-config-section { margin-top: var(--q-section-gap); overflow: hidden; }
.q-config-section--summary { margin-top: 0; border: 1px solid var(--q-line); border-radius: 12px; background: linear-gradient(115deg, var(--q-cyan-soft), rgba(14, 27, 45, 0.94) 42%); }
.q-config-section > .q-form-card { margin: var(--q-panel-padding); }
.q-config-current { display: grid; gap: 10px; border-bottom: 1px solid var(--q-line-soft); padding: var(--q-panel-padding); }
.q-config-current h3 { margin: 0; font-size: var(--q-font-subtitle); line-height: var(--q-line-subtitle); font-weight: 600; }
.q-config-current p { margin: 0; color: var(--q-muted); }
.q-config-current .q-facts { margin-bottom: 0; }
.q-readiness { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--q-line-soft); }
.q-readiness__item { min-height: var(--q-control-min); display: grid; grid-template-columns: 18px minmax(130px, 1fr) minmax(130px, auto); gap: 10px; align-items: center; background: rgba(14, 27, 45, 0.96); padding: 10px var(--q-panel-padding); }
.q-readiness__item > span { color: var(--q-amber); }
.q-readiness__item > a { color: var(--q-copy); font-weight: 600; text-decoration: none; }
.q-readiness__item > small { color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); text-align: right; }
.q-readiness__item--done > span { color: var(--q-green); }
.q-readiness__item--done > a { color: var(--q-muted); }
.q-version-history { border-top: 1px solid var(--q-line-soft); }
.q-version-history > summary { min-height: var(--q-control-min); display: flex; align-items: center; padding: 10px var(--q-panel-padding); color: var(--q-muted); cursor: pointer; font-weight: 600; }
.q-version-history[open] > summary { border-bottom: 1px solid var(--q-line-soft); color: var(--q-copy); }
.q-version-history > .q-table-wrap { margin: var(--q-section-gap); }
.q-version-history > .q-record, .q-config-section > .q-record { padding-inline: var(--q-panel-padding); }
.q-weekday-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.q-weekday-grid > div { min-width: 0; }
.q-weekday-grid label { min-height: var(--q-control-min); display: flex; align-items: center; gap: 7px; border: 1px solid var(--q-line); border-radius: 8px; background: var(--q-panel-raised); padding: 7px 9px; color: var(--q-copy); cursor: pointer; }
.q-weekday-grid input { margin: 0; accent-color: var(--q-cyan); }
.q-invite-reveal { display: grid; gap: 7px; margin: var(--q-panel-padding); border: 1px solid rgba(115, 207, 154, 0.38); border-left: 3px solid var(--q-green); border-radius: 9px; background: var(--q-green-soft); padding: 13px 15px; }
.q-invite-reveal a { overflow-wrap: anywhere; }
.q-invite-reveal small { color: var(--q-muted); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }

.q-attention { text-align: right; }
.q-attention strong, .q-attention span { display: block; }
.q-attention strong { color: var(--q-amber); font: 500 27px/1 var(--q-mono); }
.q-attention span { margin-top: 5px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.q-bound-errors { margin-bottom: 14px; }
.q-workbench { display: grid; gap: var(--q-section-gap); }
.q-work-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.q-work-filters { display: flex; flex-wrap: wrap; gap: 5px; }
.q-filter { min-height: 36px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--q-muted); padding: 7px 10px; cursor: pointer; }
.q-filter span { margin-left: 4px; color: var(--q-dim); font-family: var(--q-mono); }
.q-filter[aria-pressed="true"] { border-color: var(--q-line); background: var(--q-panel-raised); color: var(--q-copy); }
.q-filter[aria-pressed="true"] span { color: var(--q-cyan); }
.q-work-toolbar__note { color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-workspace { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr); gap: var(--q-section-gap); align-items: start; }
.q-work-list, .q-work-details { min-width: 0; border: 1px solid var(--q-line); border-radius: 12px; overflow: hidden; background: rgba(14, 27, 45, 0.92); }
.q-work-list__head, .q-work-row { display: grid; grid-template-columns: 86px minmax(150px, 1.15fr) minmax(135px, 0.8fr) minmax(145px, 1fr); gap: 12px; align-items: center; }
.q-work-list__head { border-bottom: 1px solid var(--q-line-soft); padding: 10px 14px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.q-work-row { width: 100%; min-height: var(--q-row-min); border: 0; border-bottom: 1px solid var(--q-line-soft); border-left: 2px solid transparent; background: transparent; color: var(--q-copy); padding: 11px 14px; text-align: left; cursor: pointer; }
.q-work-row:last-of-type { border-bottom: 0; }
.q-work-row:hover { background: rgba(19, 34, 56, 0.58); }
.q-work-row[aria-selected="true"] { border-left-color: var(--q-cyan); background: linear-gradient(90deg, var(--q-cyan-soft), transparent 68%); }
.q-work-id, .q-work-data strong { font-family: var(--q-mono); }
.q-work-id { font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-work-id small, .q-work-copy strong, .q-work-copy small, .q-work-data strong, .q-work-data small { display: block; }
.q-work-id small, .q-work-copy small, .q-work-data small { margin-top: 2px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-work-copy strong, .q-work-data strong { overflow-wrap: anywhere; font-size: var(--q-font-body); line-height: var(--q-line-body); font-weight: 600; }
.q-route { min-width: 0; }
.q-route__dots { width: min(118px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; position: relative; margin-bottom: 6px; }
.q-route__dots::before { content: ""; position: absolute; right: 7px; left: 7px; top: 50%; height: 1px; background: var(--q-line); }
.q-route__dots i { width: 7px; height: 7px; position: relative; z-index: 1; justify-self: center; border-radius: 50%; background: var(--q-line); box-shadow: 0 0 0 3px var(--q-panel); }
.q-route__dots .is-done { background: var(--q-green); }
.q-route__dots .is-current { background: var(--q-amber); box-shadow: 0 0 0 3px var(--q-panel), 0 0 0 5px var(--q-amber-soft); }
.q-route__dots .is-error { background: var(--q-red); box-shadow: 0 0 0 3px var(--q-panel), 0 0 0 5px var(--q-red-soft); }
.q-route > small { color: var(--q-muted); font-size: var(--q-font-caption); line-height: var(--q-line-caption); white-space: nowrap; }
.q-work-details { position: sticky; top: calc(var(--q-header-height) + 12px); }
.q-work-detail { border-bottom: 1px solid var(--q-line); }
.q-work-detail:last-child { border-bottom: 0; }
.q-work-detail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--q-line-soft); padding: 13px 15px; }
.q-work-detail__head h2 { margin: 0; font-size: var(--q-font-subtitle); line-height: var(--q-line-subtitle); font-weight: 600; }
.q-work-detail__head span { color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-work-detail__body { padding: 16px; }
.q-work-detail__body h3 { margin: 14px 0 4px; font-size: var(--q-font-section); line-height: var(--q-line-section); font-weight: 600; letter-spacing: -0.025em; }
.q-work-detail__subtitle { margin: 0 0 15px; color: var(--q-muted); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 0 14px; overflow: hidden; border: 1px solid var(--q-line-soft); border-radius: 9px; background: var(--q-line-soft); }
.q-detail-facts div { min-width: 0; background: var(--q-panel-raised); padding: 10px; }
.q-detail-facts dt { margin-bottom: 4px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-detail-facts dd { margin: 0; overflow-wrap: anywhere; }
.q-work-note { margin: 0 0 15px; border-left: 2px solid var(--q-amber); background: var(--q-amber-soft); color: var(--q-muted); padding: 10px 11px; font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-work-note strong { color: var(--q-copy); font-weight: 500; }
.q-candidates { display: grid; gap: 8px; margin: 0; border: 1px solid var(--q-line); border-radius: 9px; padding: 12px; }
.q-candidates legend { color: var(--q-muted); padding: 0 5px; font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-candidates label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; border-radius: 7px; background: var(--q-panel-raised); padding: 9px; cursor: pointer; }
.q-candidates input { margin: 3px 0 0; accent-color: var(--q-cyan); }
.q-candidates strong, .q-candidates small { display: block; }
.q-candidates small { margin-top: 4px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-work-pagers { display: flex; flex-wrap: wrap; gap: 10px 20px; }

.q-sales-desk { min-height: 580px; display: grid; grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr); border: 1px solid var(--q-line); border-radius: 12px; overflow: hidden; background: rgba(14, 27, 45, 0.9); }
.q-conversation-list { min-width: 0; border-right: 1px solid var(--q-line); background: rgba(10, 21, 36, 0.52); }
.q-sales-panel-head { min-height: var(--q-row-min); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--q-line-soft); padding: 11px 14px; }
.q-sales-panel-head .q-kicker { margin-bottom: 4px; }
.q-sales-panel-head h2 { margin: 0; font-size: var(--q-font-subtitle); line-height: var(--q-line-subtitle); font-weight: 600; }
.q-sales-panel-head > span { color: var(--q-dim); }
.q-conversation-item { min-height: var(--q-row-min); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--q-line-soft); padding: 11px 14px; }
.q-conversation-item:hover { background: rgba(19, 34, 56, 0.58); }
.q-conversation-item strong, .q-conversation-item small { display: block; }
.q-conversation-item small { margin-top: 2px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-conversation-item form { margin: 0; }
.q-conversation-item .q-button { min-height: var(--q-control-min); padding: 6px 9px; font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-pagination--inset { margin: 0; padding: 13px 17px; }
.q-sales-blank { display: grid; place-content: center; justify-items: center; max-width: 520px; margin: auto; padding: 48px; color: var(--q-muted); text-align: center; }
.q-sales-blank h2 { margin: 17px 0 7px; color: var(--q-copy); font-size: var(--q-font-section); line-height: var(--q-line-section); font-weight: 600; }
.q-sales-blank p { margin: 0 0 15px; }
.q-telegram-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--q-cyan); border-radius: 50%; color: var(--q-cyan); box-shadow: 0 0 0 7px var(--q-cyan-soft); font: 600 var(--q-font-body)/1 var(--q-font); }

.q-sales-desk--lead { grid-template-columns: minmax(210px, 0.42fr) minmax(420px, 1fr) minmax(300px, 0.52fr); align-items: stretch; }
.q-lead-identity, .q-lead-rail { min-width: 0; background: rgba(10, 21, 36, 0.52); padding: 20px; }
.q-lead-identity { border-right: 1px solid var(--q-line); }
.q-lead-rail { border-left: 1px solid var(--q-line); }
.q-back-link { display: inline-block; margin-bottom: 22px; color: var(--q-muted); }
.q-lead-identity dl { display: grid; gap: 14px; margin: 0 0 22px; }
.q-lead-identity dt { margin-bottom: 4px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-lead-identity dd { margin: 0; overflow-wrap: anywhere; }
.q-message-timeline { min-width: 0; }
.q-signal-line { position: relative; display: grid; gap: 14px; padding: 22px 24px 24px 36px; }
.q-signal-line::before { content: ""; position: absolute; top: 22px; bottom: 24px; left: 24px; width: 1px; background: var(--q-line); }
.q-message { position: relative; width: min(82%, 640px); border: 1px solid var(--q-line); border-radius: 9px; background: var(--q-panel-raised); padding: 11px 13px; }
.q-message::before { content: ""; position: absolute; top: 15px; left: -18px; width: 8px; height: 8px; border: 2px solid var(--q-cyan); border-radius: 50%; background: var(--q-panel); }
.q-message--outbound { justify-self: end; border-color: rgba(113, 207, 203, 0.38); }
.q-message header { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--q-dim); font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-message--outbound header span { color: var(--q-cyan); }
.q-message p { margin: 7px 0 0; white-space: pre-wrap; }
.q-quick-templates, .q-composer { border-top: 1px solid var(--q-line); padding: 20px 24px; }
.q-quick-templates > h3, .q-composer > h3 { margin: 0 0 14px; font-size: var(--q-font-body); line-height: var(--q-line-body); font-weight: 600; }
.q-template-reply { border-left: 2px solid var(--q-cyan); background: var(--q-cyan-soft); padding: 13px; }
.q-template-reply + .q-template-reply { margin-top: 10px; }
.q-template-reply label { display: grid; gap: 7px; }
.q-lead-rail section { padding-bottom: 21px; margin-bottom: 21px; border-bottom: 1px solid var(--q-line-soft); }
.q-lead-rail section:last-child { margin-bottom: 0; border-bottom: 0; }
.q-lead-rail h2 { margin: 0 0 13px; font-size: var(--q-font-subtitle); line-height: var(--q-line-subtitle); font-weight: 600; }

.q-template-library { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 0.46fr); gap: 20px; align-items: start; }
.q-template-card { border: 1px solid var(--q-line); border-left: 3px solid var(--q-cyan); border-radius: 10px; background: var(--q-panel); padding: 16px 18px; }
.q-template-card--active { background: linear-gradient(90deg, var(--q-cyan-soft), var(--q-panel) 56%); }
.q-template-card header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.q-template-card h2 { margin: 0; font-size: var(--q-font-subtitle); line-height: var(--q-line-subtitle); font-weight: 600; }
.q-template-card p { margin: 11px 0 0; color: var(--q-muted); }
.q-sticky-editor { position: sticky; top: calc(var(--q-header-height) + 12px); }
.q-sticky-editor h2 { margin: 0; font-size: var(--q-font-section); line-height: var(--q-line-section); font-weight: 600; }
.q-conversion-form { width: min(860px, 100%); }
.q-conversion-form textarea { min-height: 150px; font-family: var(--q-font); font-size: var(--q-font-body); line-height: var(--q-line-body); }
.q-format-note { display: grid; gap: 5px; border-left: 2px solid var(--q-amber); background: var(--q-amber-soft); color: var(--q-muted); padding: 11px 13px; font-size: var(--q-font-caption); line-height: var(--q-line-caption); }
.q-format-note strong { color: var(--q-copy); font-weight: 500; }

.q-public-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 70% 10%, rgba(57, 110, 139, 0.2), transparent 32%), var(--q-night); }
.q-public-main { width: min(430px, 100%); }
.q-auth { display: grid; gap: 26px; }
.q-auth__brand { display: flex; align-items: center; gap: 13px; }
.q-auth__brand .q-brand__mark { width: 42px; height: 42px; font-size: var(--q-font-subtitle); }
.q-auth__intro h1 { margin: 0; font-size: var(--q-font-page); line-height: var(--q-line-page); font-weight: 600; letter-spacing: -0.035em; }
.q-auth__intro p { margin: 9px 0 0; color: var(--q-muted); }
.q-auth .q-form-card { padding: 24px; box-shadow: 0 24px 70px rgba(2, 8, 18, 0.42); }

@media (max-width: 980px) {
  .q-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-split { grid-template-columns: 1fr; }
  .q-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-workspace { grid-template-columns: 1fr; }
  .q-work-details { position: static; }
  .q-sales-desk--lead { grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr); }
  .q-lead-rail { grid-column: 1 / -1; border-top: 1px solid var(--q-line); border-left: 0; }
  .q-template-library { grid-template-columns: 1fr; }
  .q-sticky-editor { position: static; }
}

@media (max-width: 860px) {
  .q-shell { grid-template-columns: 1fr; }
  .q-sidebar { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid var(--q-line-soft); padding: 14px 18px; gap: 14px; }
  .q-sidebar .q-brand { padding: 0; }
  .q-nav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 3px; }
  .q-nav__link { flex: 0 0 auto; }
  .q-sidebar__foot { display: none; }
  .q-main { padding: 24px 20px 40px; }
}

@media (max-width: 760px) {
  .q-topbar { min-height: 56px; padding: 0 16px; }
  .q-environment, .q-user > small { display: none; }
  .q-page-head { display: block; }
  .q-page-head__meta { margin-top: 12px; text-align: left; }
  .q-grid { grid-template-columns: 1fr; }
  .q-section-grid { grid-template-columns: 1fr; }
  .q-work-toolbar { align-items: flex-start; flex-direction: column; }
  .q-work-list__head { display: none; }
  .q-work-row { grid-template-columns: 76px minmax(120px, 1fr) minmax(110px, 0.7fr); }
  .q-work-row .q-route { grid-column: 2 / -1; }
  .q-sales-desk, .q-sales-desk--lead { grid-template-columns: 1fr; }
  .q-conversation-list, .q-lead-identity { border-right: 0; border-bottom: 1px solid var(--q-line); }
  .q-lead-rail { grid-column: auto; }
  .q-sales-blank { min-height: 330px; padding: 34px 22px; }
  .q-message { width: 94%; }
  .q-readiness__item { grid-template-columns: 18px minmax(0, 1fr); }
  .q-readiness__item > small { grid-column: 2; text-align: left; }
  .q-weekday-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-public-shell { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
