/* Dr.Laser CRM — brand tokens from «Брендбук Dr.Laser» (стр. 19–21):
   индиго #111F46, золото #846E26 / #E2D19A / #EAD591, белый; Manrope — заголовки, Montserrat — текст. */
:root {
  --indigo: #111f46;
  --indigo-2: #1c2c5e;
  --indigo-3: #2a3c74;
  --gold: #846e26;
  --gold-2: #e2d19a;
  --gold-3: #ead591;
  --gold-grad: linear-gradient(135deg, #846e26 0%, #e2d19a 45%, #ead591 60%, #846e26 100%);
  --white: #ffffff;
  --bg: #f3f4f8;
  --surface: #ffffff;
  --line: #e2e5ee;
  --line-2: #eef0f5;
  --text: #111f46;
  /* Text colours pass WCAG AA 4.5:1 on white, --bg and their badge backgrounds; --field (input borders) 3:1. */
  --muted: #5f6987;
  --good: #277a4d;
  --bad: #b5362f;
  --warn: #946500;
  --field: #868ea4;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(17, 31, 70, .06), 0 4px 14px rgba(17, 31, 70, .06);
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --sidebar-w: 76px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 400 14px/1.45 var(--font-body); color: var(--text); background: var(--bg); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
a { color: inherit; }
[x-cloak] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.text-bad { color: var(--bad); }
code, .pre { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.pre { white-space: pre-wrap; max-width: 640px; max-height: 260px; overflow: auto; background: var(--line-2); padding: 8px; border-radius: 8px; }

/* ---------- Sidebar (amoCRM-like narrow rail) ---------- */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--indigo); color: #c9cfe2;
  display: flex; flex-direction: column; align-items: center; padding: 14px 0; z-index: 20; }
.sidebar__logo img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.sidebar__nav { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; width: 100%; }
.sidebar__nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; text-decoration: none;
  font-size: 10.5px; font-weight: 500; position: relative; transition: color .15s, background .15s; }
.sidebar__nav a:hover { color: #fff; background: var(--indigo-2); }
.sidebar__nav a.active { color: var(--gold-3); background: var(--indigo-2); }
.sidebar__nav a.active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-grad); }
.sidebar__me { margin-top: auto; position: relative; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold-2); background: var(--indigo-3); color: #fff;
  font: 700 13px var(--font-head); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.avatar--sm { width: 32px; height: 32px; font-size: 12px; background: var(--indigo); }
.avatar--lg { width: 56px; height: 56px; font-size: 20px; background: var(--indigo); }
.menu { position: absolute; background: #fff; color: var(--text); border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(17,31,70,.18);
  min-width: 220px; padding: 6px; z-index: 50; }
.sidebar .menu { left: 52px; bottom: 0; }
.menu--down { top: calc(100% + 6px); left: 0; max-height: 60vh; overflow: auto; }
.menu__head { padding: 8px 10px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu__head small { color: var(--muted); }
.menu__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 7px;
  text-decoration: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.menu__item:hover { background: var(--line-2); }
.menu__item.is-current { font-weight: 600; background: #f5efd9; }

.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.page-login .main { margin-left: 0; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.topbar__title { margin: 0; font-size: 19px; }
.topbar__left { position: relative; }
.topbar__filters { display: flex; gap: 10px; flex: 1; min-width: 240px; }
.topbar__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.pipeline-switch { border: 0; background: none; cursor: pointer; text-align: left; padding: 2px 4px; color: var(--text); }
.pipeline-switch__label { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pipeline-switch__name { font: 700 18px var(--font-head); }
.summary { color: var(--muted); white-space: nowrap; } .summary b { color: var(--text); }
.search { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--field); border-radius: 999px; padding: 0 12px; flex: 1; max-width: 420px; color: var(--muted); }
.search:focus-within { outline: 2px solid rgba(132,110,38,.35); border-color: var(--gold); }
.search input { border: 0 !important; background: transparent !important; outline: 0 !important; padding: 9px 0; width: 100%; font: inherit; color: var(--text); }
.segmented { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; }
.segmented a { padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; }
.segmented a.active { background: var(--indigo); color: #fff; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 999px;
  padding: 9px 18px; font: 600 13.5px var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s; }
.btn:hover { background: var(--line-2); }
.btn--primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-2); }
.btn--gold { background: var(--gold-grad); border: 0; color: var(--indigo); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 5px 11px; font-size: 12.5px; }
.btn--block { width: 100%; justify-content: center; padding: 12px; }
.icon-btn { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; }
.icon-btn:hover { background: var(--line-2); }
.select, input:not([type=checkbox]):not([type=radio]), textarea {
  font: inherit; color: var(--text); border: 1px solid var(--field); border-radius: var(--radius-sm); padding: 8px 10px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(132,110,38,.35); outline-offset: 0; border-color: var(--gold); }
textarea { width: 100%; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; border: 0; padding: 0; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 500; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack { display: flex; flex-direction: column; }
.row-gap { display: flex; gap: 10px; }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 12px; }
.alert--error { background: #fbeceb; color: var(--bad); }
.tag { font-size: 11px; background: var(--line-2); color: var(--muted); padding: 1px 7px; border-radius: 999px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; background: var(--status-color, #ccc); color: var(--indigo); font-size: 12px; font-weight: 600; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--line-2); }
.badge--success { background: #e3f3ea; color: var(--good); } .badge--failed { background: #fbeceb; color: var(--bad); } .badge--running { background: #fff3d9; color: var(--warn); }
.badge--ok { background: #e3f3ea; color: var(--good); }
.badge--mismatch, .badge--deviation, .badge--error { background: #fbeceb; color: var(--bad); }
.badge--no_data { background: #fff3d9; color: var(--warn); }
.metric-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.metric-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.metric-card__label { font-size: 12px; color: var(--muted); }
.metric-card__value { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin: 4px 0; }
.metric-card__hint { font-size: 12px; color: var(--muted); }
.empty { margin: 40px auto; max-width: 560px; text-align: center; color: var(--muted); }
.empty-sm { padding: 6px 2px; font-size: 13px; }

/* ---------- Kanban ---------- */
.board { flex: 1; display: flex; flex-direction: column; min-height: 0; position: relative; }
.board__columns { display: flex; gap: 0; overflow-x: auto; flex: 1; padding: 0 8px 90px; align-items: stretch; }
.column { flex: 0 0 272px; display: flex; flex-direction: column; border-right: 1px solid var(--line); min-height: calc(100vh - 80px); }
.column__head { padding: 14px 12px 10px; border-bottom: 3px solid var(--status-color); background: var(--bg); position: sticky; top: 0; z-index: 2; }
.column__title { font: 700 12.5px var(--font-head); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.column__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.column__quick { margin: 8px 10px 4px; border: 1px dashed var(--line); background: transparent; border-radius: var(--radius-sm); padding: 7px; color: var(--muted); cursor: pointer; font: inherit; font-size: 12.5px; }
.column__quick:hover { border-color: var(--gold); color: var(--gold); }
.column__cards { display: flex; flex-direction: column; gap: 8px; padding: 6px 10px 20px; min-height: 80px; flex: 1; }
.column__more { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 14px; }
.card { display: block; background: #fff; border-radius: 10px; padding: 10px 12px; text-decoration: none; box-shadow: var(--shadow);
  border-left: 3px solid transparent; cursor: grab; transition: transform .12s, box-shadow .12s; }
.card:hover { border-left-color: var(--gold); box-shadow: 0 2px 4px rgba(17,31,70,.08), 0 8px 22px rgba(17,31,70,.10); }
.card__top { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); }
.card__price { font-weight: 600; color: var(--text); }
.card__name { font: 600 13.5px var(--font-head); margin: 4px 0 2px; color: var(--indigo); word-break: break-word; }
.card__contact { font-size: 12.5px; color: var(--muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.task-dot { font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.task-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.task-dot--ok { color: var(--good); } .task-dot--overdue { color: var(--bad); } .task-dot--none { color: var(--warn); }
.sortable-ghost { opacity: .35; } .sortable-chosen { transform: rotate(1.5deg); }
.dropzones { position: fixed; left: var(--sidebar-w); right: 0; bottom: 0; display: none; grid-template-columns: 1fr 1fr; z-index: 30; }
body.is-dragging .dropzones { display: grid; }
.dropzone { height: 76px; display: grid; place-items: center; font: 700 14px var(--font-head); text-transform: uppercase; letter-spacing: .05em; overflow: hidden; }
.dropzone .card { display: none; }
.dropzone--lost { background: #e9ebf0; color: var(--muted); }
.dropzone--won { background: var(--gold-grad); color: var(--indigo); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(17,31,70,.45); }
.modal__dialog { position: relative; background: #fff; border-radius: 18px; width: min(560px, calc(100vw - 32px)); padding: 22px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); max-height: 92vh; overflow: auto; }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---------- Toasts (app.js) ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: 0 10px 30px rgba(17,31,70,.25);
  font-weight: 500; max-width: 420px; transition: opacity .4s; }
.toast--error { background: var(--bad); }
.toast--hide { opacity: 0; }

/* ---------- Deal card ---------- */
.deal { display: grid; grid-template-columns: 380px 1fr; min-height: 100vh; }
.deal__side { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.deal__head { background: var(--indigo); color: #fff; padding: 16px 20px 18px; }
.deal__back { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-2); text-decoration: none; font-size: 13px; }
.deal__head .deal__back { margin-bottom: 8px; }
.deal__name { width: 100%; background: transparent !important; border: 0 !important; color: #fff !important; font: 700 21px var(--font-head) !important; padding: 2px 0 !important; }
.deal__name:focus { outline: 1px dashed var(--gold-2) !important; }
.deal__id { font-size: 12px; color: #9aa3c2; margin-bottom: 12px; }
.stages { display: flex; gap: 3px; margin-bottom: 10px; }
.stages__step { flex: 1; height: 8px; border: 0; border-radius: 3px; background: rgba(255,255,255,.16); cursor: pointer; padding: 0; }
.stages__step.is-done, .stages__step.is-current { background: var(--status-color); }
.stages__step.is-current { box-shadow: 0 0 0 2px #fff; }
.select--status { width: 100%; background: var(--status-color) !important; color: var(--indigo) !important; font-weight: 600; border: 0 !important; }
.deal__tabs { padding: 4px 20px 8px; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tabs button { border: 0; background: none; padding: 10px 0; font: 600 13px var(--font-body); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--indigo); border-bottom-color: var(--gold); }
.props { display: flex; flex-direction: column; }
.prop { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.prop > span { color: var(--muted); }
/* amoCRM-like inline fields: underline instead of a full frame, still visible (3:1) */
.prop input, .prop .select--bare { border: 1px solid transparent; border-bottom-color: var(--field); border-radius: 0; padding: 5px 6px; background: transparent; width: 100%; }
.prop input:hover, .prop .select--bare:hover { border-color: var(--field); border-radius: var(--radius-sm); }
.deal__contact { padding: 12px 20px; border-top: 1px solid var(--line-2); }
.contact-chip { display: flex; gap: 10px; align-items: center; text-decoration: none; padding: 8px; border-radius: 10px; }
.contact-chip:hover { background: var(--line-2); }
.contact-chip small { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.deal__danger { margin-top: auto; padding: 12px 20px; }
.deal__feed { display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; }
.feed { flex: 1; overflow-y: auto; padding: 20px 28px; display: flex; flex-direction: column; gap: 10px; }
.feed__empty { color: var(--muted); text-align: center; margin-top: 40px; }
.feed__empty:not(:only-child) { display: none; }
.event { max-width: 760px; }
.event__meta { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.event__body { font-size: 13.5px; }
.event--note .event__note { background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); white-space: pre-wrap; border-left: 3px solid var(--gold); }
.open-tasks { padding: 0 28px; display: flex; flex-direction: column; gap: 6px; }
.task-line { display: grid; grid-template-columns: 170px 150px 1fr auto; gap: 10px; align-items: center; background: #fff8e6; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.task-line.is-overdue { background: #fdeceb; }
.task-line__when { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.task-line__done { display: flex; gap: 6px; align-items: center; }
.inline-form { display: inline-flex; gap: 6px; }
.composer { background: #fff; border-top: 1px solid var(--line); padding: 10px 28px 16px; }
.composer__modes { display: flex; gap: 6px; margin-bottom: 8px; }
.composer__modes button { border: 0; background: none; padding: 6px 10px; border-radius: 999px; cursor: pointer; font: 600 12.5px var(--font-body); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.composer__modes button.active { background: var(--indigo); color: #fff; }
.composer__row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.composer__actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ---------- Tasks / tables / panels ---------- */
.tasks-board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; padding: 20px; }
.tasks-col h2 small { color: var(--muted); font-weight: 500; }
.tasks-col--overdue h2 { color: var(--bad); }
.task-card { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); margin-bottom: 8px; }
.task-card__when { font-size: 12px; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.task-card__text { margin: 4px 0; }
.task-card__deal { font-size: 12.5px; color: var(--gold); text-decoration: none; font-weight: 600; }
.task-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin: 16px 20px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; }
.admin-grid .panel { margin-right: 0; } .admin-grid .panel:last-child { margin-right: 20px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; }
.table th { text-align: left; font: 600 11.5px var(--font-body); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table th[scope="row"] { font-weight: 400; font-size: 14px; text-transform: none; letter-spacing: normal; color: inherit; border-bottom-color: var(--line-2); vertical-align: top; }
.table--compact td, .table--compact th, .table--compact th[scope="row"] { padding: 7px 10px; font-size: 12.5px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-link { cursor: pointer; } .table tr.is-link:hover td { background: #faf7ec; }
.table-wrap > .table { margin: 0; }
.main > .table-wrap { margin: 16px 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.alert-line { display: grid; grid-template-columns: 130px 220px 1fr auto; gap: 10px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.alert-line--critical b { color: var(--bad); } .alert-line--warning b { color: var(--warn); }
.users-layout { display: grid; grid-template-columns: 1fr 420px; }
.users-layout .panel:last-child { margin-left: 0; }
.studios-pick__list { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; }
.contact-page { display: grid; grid-template-columns: 380px 1fr; }
.account-layout { display: grid; grid-template-columns: 380px minmax(0, 520px); }
.account-layout .panel:last-child { margin-left: 0; }
.contact-page .panel:last-child { margin-left: 0; }
.contact-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.contact-head h1 { margin: 0 0 4px; }
.deal-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.deal-row:hover { background: #faf7ec; }

/* ---------- Settings / changelog ---------- */
.settings-tabs { display: flex; gap: 4px; margin: 16px 20px 0; border-bottom: 1px solid var(--line); }
.settings-tabs a { padding: 8px 14px; color: var(--muted); text-decoration: none; font: 600 14px var(--font-head); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.settings-tabs a.active { color: var(--indigo); border-bottom-color: var(--gold); }
.changelog { max-width: 1100px; line-height: 1.6; }
.changelog h1 { font-size: 22px; }
.changelog h2 { font-size: 19px; margin-top: 1.6em; padding-bottom: 6px; border-bottom: 2px solid var(--gold-2); }
.changelog h3 { font-size: 14px; margin-top: 1.4em; color: var(--indigo); text-transform: none; letter-spacing: 0; }
.changelog ul { padding-left: 20px; margin: .4em 0 1em; }
.changelog li { margin: 3px 0; }
.changelog code { background: var(--line-2); border-radius: 4px; padding: 1px 5px; font-size: 12.5px; }
.changelog table { border-collapse: collapse; width: 100%; margin: .6em 0 1em; display: block; overflow-x: auto; }
.changelog th, .changelog td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.changelog th { font: 600 12px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; border-bottom-color: var(--line); }
.changelog td:last-child { white-space: nowrap; text-align: center; }

/* ---------- Login ---------- */
.page-login { background: var(--indigo); }
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 40px 8vw; }
.login__brand img { width: min(460px, 100%); }
.login__brand p { color: var(--gold-2); font: 500 16px var(--font-head); letter-spacing: .06em; text-transform: uppercase; margin-top: 18px; }
.login__card { background: #fff; border-radius: 30px; padding: 36px 34px; max-width: 400px; width: 100%; justify-self: center; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.login__card h1 { font-size: 26px; margin-bottom: 18px; }
.login__card input { padding: 11px 12px; }
.login__hint { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- Mobile (ТЗ Б3к.5) ---------- */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { inset: auto 0 0 0; width: 100%; height: 62px; flex-direction: row; padding: 0 6px; }
  .sidebar__logo { display: none; }
  .sidebar__nav { flex-direction: row; margin: 0; justify-content: space-around; }
  .sidebar__nav a { padding: 8px 2px; font-size: 10px; }
  .sidebar__nav a.active::before { left: 10px; right: 10px; top: 0; bottom: auto; width: auto; height: 3px; border-radius: 0 0 3px 3px; }
  .sidebar__me { margin: 0 6px; } .sidebar .menu { left: auto; right: 0; bottom: 56px; }
  .main { margin-left: 0; padding-bottom: 62px; }
  .topbar { padding: 10px 12px; gap: 10px; }
  .topbar__filters { order: 3; flex-basis: 100%; flex-wrap: wrap; }
  .topbar__filters .search { max-width: none; flex-basis: 100%; }
  .topbar__filters .select { flex: 1; min-width: 0; }
  .topbar__right { gap: 10px; }
  .column { flex-basis: 84vw; }
  .deal, .contact-page, .account-layout, .users-layout, .admin-grid { grid-template-columns: 1fr; }
  .deal__feed { height: auto; position: static; }
  .tasks-board { grid-template-columns: 1fr; }
  .task-line { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; padding: 32px 16px; }
  .panel, .admin-grid .panel, .users-layout .panel:last-child, .contact-page .panel:last-child, .account-layout .panel:last-child { margin: 12px; }
  .dropzones { bottom: 62px; }
  .toasts { right: 12px; left: 12px; bottom: 74px; align-items: stretch; }
}
