:root {
  color-scheme: light;
  --ink: #172723;
  --muted: #52645e;
  --soft: #65756e;
  --line: #e4eae5;
  --wash: #f4f7f3;
  --green: #21563f;
  --accent: #d4f783;
  --deep: #132923;
  --white: #fff;
  font: 15px/1.45 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--wash);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { color: inherit; font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--green); }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #5c885b; outline-offset: 2px; }
button:focus:not(:focus-visible), input:focus:not(:focus-visible), textarea:focus:not(:focus-visible) { outline: none; }
.icon { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 24px; height: 24px; }
.startup { display: grid; place-items: center; min-height: 100dvh; color: var(--muted); }
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; background: var(--deep); color: #eaf3eb; padding: 28px 15px 15px; display: flex; flex-direction: column; gap: 27px; z-index: 4; }
.wordmark { display: flex; gap: 10px; align-items: center; font-size: 24px; letter-spacing: -.055em; font-weight: 760; padding: 0 9px; }
.wordmark img { width: 35px; height: 35px; }
.wordmark span:last-child { font-size: 12px; font-weight: 600; color: #acbeb0; letter-spacing: .06em; margin-left: 2px; }
.workspace-wrap, .profile-wrap { position: relative; }
.workspace-switch, .profile { width: 100%; display: flex; align-items: center; text-align: left; gap: 10px; padding: 8px; border: 1px solid #395047; border-radius: 11px; background: #1c342c; color: #fff; min-width: 0; }
.workspace-switch:hover, .profile:hover { background: #29453a; }
.workspace-switch .avatar { width: 34px; height: 34px; border-radius: 8px; background: #587865; color: #fff; font-size: 12px; }
.identity { display: grid; flex: 1; min-width: 0; }
.identity strong, .identity small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.identity strong { font-size: 13px; font-weight: 680; }
.identity small { color: #aec6b8; font-size: 11px; line-height: 1.5; }
.sidebar nav { display: grid; gap: 4px; }
.side-label { margin: 0 10px 6px; color: #93ad9e; text-transform: uppercase; font-size: 10px; font-weight: 720; letter-spacing: .12em; }
.side-nav { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: #cbdacf; text-align: left; font-size: 14px; font-weight: 540; }
.side-nav:hover { background: #243f34; color: white; }
.side-nav.active { background: var(--accent); color: #1a3626; font-weight: 740; }
.side-count { margin-left: auto; border-radius: 5px; padding: 1px 6px; font-size: 11px; background: #284b39; color: #eff7ef; }
.active .side-count { background: #bde365; color: #203321; }
.side-bottom { margin-top: auto; }
.profile { padding: 10px 5px 0; border: 0; border-top: 1px solid #385046; border-radius: 0; background: transparent; }
.profile .avatar { background: #e0ccf9; color: #4a3467; width: 33px; height: 33px; }
.pop { position: absolute; z-index: 12; min-width: 100%; width: max-content; max-width: 255px; top: calc(100% + 7px); left: 0; border: 1px solid #dbe5dd; border-radius: 11px; padding: 5px; box-shadow: 0 8px 24px #152b242c; background: #fff; color: var(--ink); }
.profile-wrap .pop { top: auto; bottom: calc(100% + 9px); }
.pop button { display: flex; align-items: center; gap: 9px; width: 100%; background: transparent; border: 0; border-radius: 6px; min-height: 36px; padding: 5px 9px; text-align: left; }
.pop button:hover { background: var(--wash); }
.pop button .icon:last-child { margin-left: auto; }
.main { min-width: 0; }
.topbar { border-bottom: 1px solid var(--line); background: #fff; height: 59px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 26px; }
.breadcrumbs, .top-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.breadcrumbs { color: var(--muted); font-size: 13px; }
.breadcrumbs strong { color: var(--ink); font-weight: 640; white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-label { display: inline-flex; gap: 6px; align-items: center; color: #385e44; font-size: 12px; font-weight: 640; border: 1px solid #deebd9; border-radius: 99px; background: #f1f8ea; padding: 4px 9px; white-space: nowrap; }
.mobile-nav { display: none !important; }
.page { padding: 21px 25px 24px; }
.page-head { display: flex; justify-content: space-between; align-items: center; column-gap: 15px; row-gap: 12px; margin-bottom: 21px; min-height: 67px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(29px, 2.55vw, 37px); line-height: 1.14; font-weight: 760; letter-spacing: -.05em; }
.page-head p { color: var(--muted); margin-top: 6px; font-size: 14px; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.btn, .icon-btn { display: inline-flex; justify-content: center; align-items: center; gap: 7px; text-decoration: none; background: #fff; border: 1px solid #dce5dd; border-radius: 8px; color: #26443a; min-height: 37px; padding: 7px 11px; font-size: 13px; font-weight: 660; white-space: nowrap; }
.btn:hover, .icon-btn:hover { background: #f0f5ef; }
.btn.primary { border-color: #bae16a; background: var(--accent); color: #213c24; }
.btn.primary:hover { background: #c1ed68; }
.btn.solid { color: #fff; background: #24593d; border-color: #24593d; }
.btn.solid:hover { background: #1a462e; }
.btn.clear, .icon-btn.clear { border-color: transparent; background: transparent; }
.btn.clear:hover, .icon-btn.clear:hover { background: #eef4ed; }
.btn.danger { color: #98392f; }
.icon-btn { width: 36px; min-height: 35px; padding: 5px; }
.inbox { display: grid; grid-template-columns: minmax(238px, 29%) minmax(286px, 1fr) minmax(231px, 25%); height: calc(100dvh - 192px); min-height: 585px; background: #fff; border: 1px solid #dce6de; border-radius: 13px; box-shadow: 0 2px 4px #20352908; overflow: hidden; }
.inbox.no-detail { grid-template-columns: minmax(238px, 29%) minmax(0, 1fr); }
.lead-list, .conversation, .inspector { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.lead-list, .conversation { border-right: 1px solid var(--line); }
.no-detail .conversation { border-right: 0; }
.list-head { padding: 13px 12px 0; }
.search { display: flex; align-items: center; gap: 7px; border: 1px solid #dce6de; border-radius: 8px; padding: 0 9px; background: #f8faf7; min-height: 37px; color: var(--muted); }
.search:focus-within { border-color: #7a9d7b; }
.search input { width: 100%; padding: 7px 0; border: 0; background: transparent; font-size: 13px; outline: none; min-width: 0; }
.search input:focus-visible { outline: none; }
.search input::placeholder, textarea::placeholder { color: var(--soft); }
.key { font-size: 11px; color: #566661; min-width: 22px; text-align: center; padding: 1px 2px; border-radius: 4px; border: 1px solid #dce5dd; white-space: nowrap; }
.tabs { display: flex; gap: 3px; min-width: 0; margin-top: 10px; border-bottom: 1px solid var(--line); }
.tab { background: transparent; padding: 8px 6px; border: 0; color: var(--muted); font-size: 12px; font-weight: 610; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-pressed="true"] { border-bottom-color: #508353; color: #214c37; font-weight: 730; }
.tab:hover { color: #1a562e; }
.list-caption { padding: 9px 12px 5px; color: var(--soft); font-size: 11px; font-weight: 650; letter-spacing: .04em; display: flex; justify-content: space-between; align-items: center; min-height: 37px; }
.list-caption select { max-width: 118px; background: #fff; border: 1px solid #dce5dd; border-radius: 6px; padding: 3px 5px; font-size: 11px; cursor: pointer; }
.list-body, .messages, .inspector { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c9d8cc transparent; }
.list-body { padding: 1px 6px 8px; }
.lead-row { position: relative; width: 100%; min-height: 73px; display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: start; gap: 8px; text-align: left; padding: 10px 8px; border: 1px solid transparent; border-radius: 8px; background: #fff; }
.lead-row + .lead-row { border-top-color: #f0f2ef; }
.lead-row:hover { background: #f5f8f4; }
.lead-row.selected { background: #eaf3e7; border-color: #dcebd9; }
.lead-row.selected::before { position: absolute; left: -1px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; content: ''; background: #528b54; }
.lead-row .avatar { margin-top: 2px; }
.avatar { width: 39px; height: 39px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; font-weight: 740; flex: none; color: #32483e; background: #dfebe1; }
.avatar.tone0 { background: #f8dfd6; color: #8c4837; }
.avatar.tone1 { background: #e4ddf5; color: #5b4888; }
.avatar.tone2 { background: #e0ecd9; color: #39614a; }
.avatar.tone3 { background: #f4e6c9; color: #705321; }
.avatar.tone4 { background: #dce8f7; color: #426189; }
.avatar.tone5 { background: #d9edeb; color: #386765; }
.avatar.tone6 { background: #f0e1ef; color: #824872; }
.avatar.large { width: 48px; height: 48px; font-size: 16px; }
.lead-copy { display: grid; min-width: 0; row-gap: 2px; }
.lead-copy strong { font-size: 13px; line-height: 1.4; }
.lead-copy .lead-subject { font-size: 12px; color: #39534a; font-weight: 610; }
.lead-copy small { font-size: 11px; color: var(--muted); }
.lead-meta { display: grid; min-width: 25px; justify-items: end; align-content: start; gap: 4px; color: var(--muted); font-size: 10px; }
.lead-meta-badges { display: flex; align-items: center; gap: 5px; }
.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: #46844a; }
.channel-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: #e7eee9; color: #4c6659; flex: none; }
.channel-icon.telegram { background: #dff2fb; color: #08789f; }
.channel-icon.vk { background: #e3edff; color: #195caf; }
.channel-icon.avito { background: #eff2f8; color: #5f4b88; }
.channel-icon.max { background: #ebe5ff; color: #653ec6; }
.channel-icon.webhook { background: #eee7f5; color: #724b91; }
.channel-icon.big { width: 42px; height: 42px; border-radius: 11px; }
.channel-icon .icon { width: 14px; height: 14px; }
.channel-icon.big .icon { width: 21px; height: 21px; }
.conversation-head { display: flex; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); padding: 10px 14px; gap: 9px; }
.conversation-title { flex: 1; min-width: 0; }
.conversation-title strong { display: block; font-size: 15px; }
.conversation-channel { margin-top: 2px; display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.conversation-channel .channel-icon { width: 16px; height: 16px; border-radius: 5px; }
.conversation-channel .icon { width: 11px; height: 11px; }
.chat-controls { display: flex; align-items: center; gap: 3px; }
.chat-back { display: none; }
.messages { display: flex; flex-direction: column; flex: 1; align-items: stretch; padding: 16px 16px 12px; gap: 11px; background: #f7faf7; }
.message-day { align-self: center; color: var(--muted); font-size: 11px; font-weight: 610; padding: 4px 8px; border: 1px solid #e3ebe2; border-radius: 20px; background: #fff; }
.message { display: grid; min-width: 0; max-width: min(92%, 470px); align-self: flex-start; gap: 3px; }
.message.outbound { align-self: flex-end; }
.message.note { align-self: center; max-width: 95%; }
.bubble { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.47; padding: 9px 11px; border: 1px solid #e0e8e0; background: #fff; border-radius: 10px 10px 10px 3px; }
.outbound .bubble { background: #e6f2df; border-color: #dcead5; border-radius: 10px 10px 3px 10px; }
.note .bubble { background: #fff7dd; border-color: #eee2b8; border-radius: 9px; }
.message-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.outbound .message-meta { justify-content: flex-end; }
.composer { margin: 10px 12px 12px; border: 1px solid #dae6db; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px #28423306; }
.composer .tabs { margin-top: 0; padding: 0 9px; }
.composer .tab { padding: 7px; }
.composer .tab .icon { margin-right: 3px; }
.composer textarea { display: block; width: 100%; border: 0; padding: 8px 11px; min-height: 53px; max-height: 180px; resize: vertical; background: transparent; font-size: 13px; }
.composer textarea:focus-visible { outline-offset: -2px; }
.composer-floor { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 7px 11px; gap: 7px; }
.composer-floor small { font-size: 10px; color: var(--soft); }
.inspector { padding: 0 13px 10px; }
.inspector-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 57px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 740; }
.contact-card { display: flex; align-items: center; gap: 9px; padding: 13px 0 11px; }
.contact-card h3 { font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.contact-card p { font-size: 12px; color: var(--muted); line-height: 1.2; margin-top: 3px; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; border-radius: 6px; padding: 4px 7px; background: #e9eef1; color: #3b5968; font-size: 11px; line-height: 1.2; font-weight: 690; width: max-content; }
.status.new { background: #e6eefb; color: #2f568d; }
.status.progress { background: #fbefce; color: #725211; }
.status.proposal { background: #eee5fa; color: #644789; }
.status.won, .status.connected { background: #e5f2df; color: #2b6233; }
.status.lost { background: #fae6e2; color: #843a31; }
.inspect-section { border-top: 1px solid var(--line); padding: 10px 0; display: grid; gap: 8px; }
.inspect-section h3 { margin: 0 0 1px; font-size: 12px; font-weight: 740; }
.line-field { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--muted); min-height: 25px; }
.line-field strong { color: var(--ink); font-weight: 710; text-align: right; }
.line-field select { width: 114px; max-width: 60%; padding: 3px; border: 1px solid #dce5dd; border-radius: 6px; background: #fff; color: var(--ink); font-size: 11px; text-overflow: ellipsis; }
.contact-links { display: grid; gap: 7px; }
.contact-links a, .contact-links span { display: flex; gap: 6px; align-items: center; font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.contact-links a:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { background: #edf2ed; color: #3c594b; padding: 3px 7px; border-radius: 5px; font-size: 11px; }
.empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 16px; text-align: center; color: var(--muted); min-height: 110px; font-size: 13px; }
.empty h3 { color: var(--ink); font-size: 15px; }
.empty > .icon { width: 30px; height: 30px; color: #5a8264; }
.loading { opacity: .7; }
.board { display: grid; grid-template-columns: repeat(5, minmax(158px, 1fr)); gap: 10px; overflow: auto; padding-bottom: 8px; }
.board-lane { min-width: 0; background: #eaf0e9; border: 1px solid #dce5dd; border-radius: 11px; padding: 9px; min-height: 330px; }
.lane-head { display: flex; align-items: center; justify-content: space-between; padding: 1px 1px 7px; gap: 5px; }
.lane-total { font-size: 12px; color: var(--muted); margin: 0 2px 9px; }
.lane-items { display: grid; gap: 7px; }
.deal { display: grid; width: 100%; min-width: 0; gap: 7px; padding: 9px; background: #fff; border: 1px solid #dce5dd; border-radius: 8px; text-align: left; box-shadow: 0 1px 2px #2035290b; }
.deal:hover { border-color: #8baa8a; }
.deal strong { font-size: 13px; overflow-wrap: anywhere; }
.deal p { color: var(--muted); font-size: 12px; }
.deal footer { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-weight: 680; font-size: 12px; }
.summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 13px; }
.metric, .panel { border: 1px solid #dce5dd; background: #fff; border-radius: 12px; min-width: 0; padding: 15px; }
.metric { display: grid; gap: 6px; }
.metric .icon { color: #36704b; }
.metric p { font-size: 13px; color: var(--muted); }
.metric strong { font-size: clamp(18px, 2.1vw, 30px); letter-spacing: -.04em; line-height: 1.1; overflow-wrap: anywhere; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 12px; }
.panel h2 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 5px; }
.panel > p { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.chart { width: 100%; max-height: 265px; display: block; margin-top: 12px; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.bars { display: grid; gap: 10px; margin-top: 13px; }
.bar-item { display: grid; gap: 4px; }
.bar-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.bar-label span { display: flex; align-items: center; gap: 7px; }
progress { appearance: none; display: block; width: 100%; height: 7px; border: none; border-radius: 4px; overflow: hidden; background: #edf2ed; }
progress::-webkit-progress-bar { background: #edf2ed; }
progress::-webkit-progress-value { background: #75a871; }
progress::-moz-progress-bar { background: #75a871; }
.panel-list { display: grid; gap: 8px; }
.record { display: flex; align-items: center; min-width: 0; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px; }
.record > div { display: grid; flex: 1; min-width: 0; }
.record h3 { font-size: 14px; overflow-wrap: anywhere; }
.record p { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-grid .panel { align-self: start; }
.record-actions { display: flex; align-items: center; gap: 6px; }
.team-subtitle { margin: 19px 0 6px; font-size: 14px; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; }
.form input, .form select, .form textarea, .filter-select { width: 100%; border: 1px solid #d7e1d8; border-radius: 8px; padding: 8px 9px; background: #fff; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.form p, .hint { color: var(--muted); font-size: 13px; }
.form .error { color: #963f34; }
.form-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 4px; }
.auth { min-height: 100dvh; display: grid; grid-template-columns: minmax(290px, 1fr) minmax(375px, 1fr); }
.auth-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; background: radial-gradient(ellipse at 100% 90%, #315844 0%, var(--deep) 61%); color: #fff; min-height: 100%; padding: clamp(25px, 6vw, 80px); }
.auth-intro .wordmark { padding: 0; }
.auth-intro h1 { font-size: clamp(38px, 5vw, 73px); line-height: 1.04; max-width: 620px; }
.auth-intro h1 span { color: var(--accent); }
.auth-intro p { max-width: 360px; color: #c8dacc; margin-top: 18px; font-size: 16px; }
.auth-body { display: grid; place-items: center; padding: 30px; }
.auth-card { width: min(100%, 380px); display: grid; gap: 16px; }
.auth-card h2 { font-size: 29px; letter-spacing: -.045em; }
.auth-card .form-actions { justify-content: stretch; }
.auth-card .form-actions .btn { flex: 1; }
.auth-switch { justify-self: start; }
dialog { width: min(470px, calc(100% - 25px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #dce6dd; border-radius: 13px; box-shadow: 0 18px 60px #153c2b44; color: var(--ink); }
dialog::backdrop { background: #14282188; }
.dialog-body { padding: 17px; display: grid; gap: 13px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-head h2 { font-size: 23px; letter-spacing: -.04em; }
.copy-field { display: flex; align-items: stretch; gap: 6px; }
.copy-field input { min-width: 0; text-overflow: ellipsis; }
.toast { position: fixed; z-index: 9; right: 19px; bottom: 19px; width: max-content; max-width: min(420px, calc(100% - 38px)); padding: 9px 13px; border-radius: 8px; background: #204c37; color: #fff; font-size: 13px; box-shadow: 0 5px 20px #153c2b38; }
.toast.error { background: #843c30; }
.notification-panel { display: grid; gap: 11px; }
.notification-setting { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 12px; background: #f6f9f5; border: 1px solid var(--line); border-radius: 9px; }
.notification-setting h3 { font-size: 14px; margin-bottom: 3px; }
.notification-setting p { font-size: 13px; color: var(--muted); }
.notification-preview { margin: -7px 0 1px; }
[hidden] { display: none !important; }
@media (min-height: 915px) {
  .lead-row { min-height: 79px; }
  .messages { gap: 13px; }
}
@media (max-width: 1210px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr); }
  .sidebar { padding-right: 11px; padding-left: 11px; }
  .page, .topbar { padding-right: 17px; padding-left: 17px; }
  .inbox { grid-template-columns: minmax(205px, 29%) minmax(245px, 1fr) minmax(192px, 23%); }
  .inbox.no-detail { grid-template-columns: minmax(205px, 29%) minmax(0, 1fr); }
  .lead-row { gap: 5px; }
  .lead-row .avatar { width: 33px; height: 33px; font-size: 11px; }
  .lead-row { grid-template-columns: 33px minmax(0, 1fr) auto; }
  .inspector { padding: 0 10px 8px; }
}
@media (max-width: 1000px) {
  .inbox, .inbox.no-detail { grid-template-columns: minmax(207px, 36%) minmax(0, 1fr); position: relative; }
  .inspector { position: absolute; right: 0; top: 0; bottom: 0; width: min(255px, 92%); background: #fff; box-shadow: -6px 0 24px #1735261f; z-index: 2; }
  .inbox:not(.no-detail):not(.detail-overlay) .inspector { display: none; }
  .conversation { border-right: 0; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 725px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; transform: translateX(-100%); transition: transform .18s ease-out; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-shade { position: fixed; inset: 0; border: 0; padding: 0; background: #14282177; z-index: 3; }
  .mobile-nav { display: inline-flex !important; }
  .topbar { height: 51px; padding: 0 10px; gap: 4px; }
  .breadcrumbs, .top-actions { gap: 5px; }
  .top-actions .btn { font-size: 0; gap: 0; width: 35px; padding: 5px; }
  .page { padding: 12px 10px; }
  .page-head { min-height: 57px; margin-bottom: 11px; }
  .page-head p { font-size: 12px; }
  .inbox { height: calc(100dvh - 133px); min-height: 450px; }
  .settings-grid, .report-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .page-head { flex-wrap: wrap; }
  .page-head p { max-width: 29ch; }
  .head-actions .btn { padding: 6px 7px; }
  .demo-label { font-size: 10px; padding: 3px 5px; }
  .breadcrumbs .icon:not(.mobile-nav .icon) { display: none; }
  .breadcrumbs > span { display: none; }
  .inbox, .inbox.no-detail { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 153px); }
  .inbox .lead-list { border: 0; }
  .inbox .conversation { display: none; }
  .inbox.mobile-chat .lead-list { display: none; }
  .inbox.mobile-chat .conversation { display: flex; }
  .chat-back { display: inline-flex; }
  .auth { grid-template-columns: 1fr; }
  .auth-intro { padding: 20px; gap: 15px; }
  .auth-intro h1 { font-size: 29px; }
  .auth-intro p { display: none; }
  .auth-body { padding: 23px 19px; align-items: start; }
  .summary { gap: 7px; }
  .metric, .panel { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
