:root {
  font-family: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #15171a;
  background: #f6f7f9;
  font-synthesis: none;
  --brand: #5b5cf0;
  --brand-hover: #494ae0;
  --brand-pressed: #3f40c8;
  --brand-soft: #eeedff;
  --brand-border: #c9c8ff;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --muted: #68707d;
  --line: #e3e6ea;
  --input-border: #d7dbe1;
  --text-tertiary: #9299a5;
  --success-soft: #eaf9ef;
  --warning-soft: #fff6dd;
  --danger-soft: #feecec;
  --panel: #fff;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: #f6f7f9; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, input, textarea, select { min-height: 42px; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

.topbar {
  min-height: 82px;
  padding: max(10px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 10px max(22px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  flex-wrap: nowrap;
  overflow: visible;
}
.brand-column{display:contents}.brand { display: flex; align-items: center; gap: 8px; flex:0 0 224px; min-width:0; }.brand img { width: 34px; height: 34px; object-fit: cover; border-radius:10px; box-shadow: 0 7px 18px #5b5cf025; }
.brand strong { display: block; letter-spacing:1px; font-size:14px; line-height:1.1; white-space:nowrap; }
.brand span { display: block; margin-top:2px; font-size:10px; line-height:1.1; color: var(--muted); white-space:nowrap; }
.online { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.dot, .status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--green); }
.workspace-nav-controls{display:flex;gap:5px;flex:0 0 auto}.workspace-nav-controls button{width:38px;height:38px;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted);font-size:19px;line-height:1}.workspace-nav-controls button:hover{border-color:var(--brand-border);background:var(--brand-soft);color:var(--brand)}.tabs { display: flex; flex:1 1 auto; gap:2px; margin-left:0; min-width:0; overflow:hidden; padding:4px; border-radius:12px; background:#eceef2; }
.tab { flex:1 1 0; min-width:0; overflow:hidden; text-overflow:ellipsis; border:0; background:transparent; color:#4f5661; border-radius:10px; padding:9px 10px; font-weight:500; font-size:14px; white-space:nowrap; }.tab.nav-control{min-width:44px;padding:10px 12px;font-size:21px;line-height:1}
.tab.active { background: var(--brand); color: #fff; box-shadow: 0 5px 14px #5b5cf033; }
.user-menu { display: flex; align-items: center; gap: 10px; margin-left: 4px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #ece9ff; color: var(--brand); font-weight: 500; }
.avatar-photo { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: #ece9ff; }
.avatar.small,.avatar-photo.small { width: 34px; height: 34px; }
.avatar.large,.avatar-photo.large { width: 56px; height: 56px; font-size: 20px; }
.avatar.xlarge,.avatar-photo.xlarge { width: 76px; height: 76px; font-size: 26px; }
.profile-button { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 5px 8px; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.profile-button:hover { background: #f3f4f7; }
.user-copy { display: grid; min-width: 80px; font-size: 13px; }
.user-copy small { color: var(--muted); font-size: 11px; }

.ghost, .secondary, .primary, .danger, .call {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 15px;
  background: #fff;
  color: #15171a;
  font-weight: 500;
}
.ghost { padding: 8px 11px; color: var(--muted); }
.presence-control { position:relative; display:flex; align-items:center; gap:6px; flex:0 0 142px; min-height:36px; padding:0 8px; border:1px solid var(--line); border-radius:10px; background:#fff; }.presence-control > button { min-width:0; width:108px; min-height:26px; padding:0 12px 0 0; border:0; background:transparent; color:var(--text); font:500 11px/1.2 inherit; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }.presence-menu { display:none; position:absolute; z-index:100; top:calc(100% + 6px); left:0; width:220px; padding:7px; border:1px solid #d9dcff; border-radius:14px; background:#fff; box-shadow:0 18px 42px rgba(21,23,26,.18); }.presence-control.is-open .presence-menu { display:grid; gap:3px; }.presence-menu button { width:100%; min-height:38px; padding:8px 12px; border:0; border-radius:9px; background:#fff; color:var(--text); font:500 11px/1.2 inherit; text-align:left; white-space:nowrap; cursor:pointer; }.presence-menu button:hover,.presence-menu button:focus-visible { background:var(--brand-soft); color:var(--brand); outline:0; }.presence-control option{white-space:nowrap;font-size:11px !important}
.presence-control .dot { background:#22c55e; }
.presence-control .presence-dnd { background:#f59e0b; }
.presence-control .presence-passive { background:#94a3b8; }
.presence-control .presence-offline { background:#cbd5e1; }
.status-badge.dnd { background:#fff4d6; color:#9a6700; }
.status-badge.passive { background:#eef2f7; color:#64748b; }
.status-badge.offline { background:#f1f3f5; color:#7b8491; }
.campaign-toggle { display:inline-flex; align-items:center; gap:8px; min-height:36px; padding:0 10px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--muted); cursor:pointer; user-select:none; }
.campaign-toggle input { position:absolute; opacity:0; pointer-events:none; }
.campaign-toggle .toggle-track { position:relative; width:30px; height:18px; border-radius:999px; background:#cbd5e1; transition:.16s ease; }
.campaign-toggle .toggle-track i { position:absolute; top:3px; left:3px; width:12px; height:12px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #64748b66; transition:.16s ease; }
.campaign-toggle input:checked + .toggle-track { background:#22c55e; }
.campaign-toggle input:checked + .toggle-track i { transform:translateX(12px); }
.campaign-toggle input:checked ~ b { color:#16803d; }
.call-drawer { position:fixed; top:16px; right:16px; bottom:16px; z-index:60; width:min(360px,calc(100vw - 32px)); padding:20px; overflow:auto; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 24px 70px rgba(21,23,26,.22); animation:drawer-in .18s ease-out; }
.call-drawer .dialer { display:flex; flex-direction:column; gap:18px; min-height:100%; }
.call-drawer .dialer-head { display:grid; grid-template-columns:auto 1fr auto; gap:12px; align-items:center; }
.call-drawer .dialer-head .dialer-duration { grid-column:1 / -1; display:flex; justify-content:space-between; padding:12px; border-radius:10px; background:var(--brand-soft); }
.call-drawer .dialer-number { width:100%; font-size:20px; text-align:center; }
.call-drawer .dialpad { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.call-drawer .dialpad button { min-height:54px; font-size:20px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.call-drawer .dialpad button:hover { border-color:var(--brand-border); background:var(--brand-soft); color:var(--brand); }
.call-drawer .dialer-call { width:100%; min-height:50px; }
@keyframes drawer-in { from { transform:translateX(24px); opacity:0; } to { transform:translateX(0); opacity:1; } }
.crm-view-switch { display:flex; gap:8px; align-items:center; }
.crm-view-switch>button:not(.secondary) { min-height:40px; padding:8px 14px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--muted); }
.crm-view-switch>button.active { border-color:var(--brand); background:var(--brand-soft); color:var(--brand); }
.crm-kanban { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(270px,320px); grid-template-columns:none; gap:14px; overflow-x:auto; overflow-y:hidden; padding:2px 4px 14px; scroll-snap-type:x proximity; }
.crm-column{scroll-snap-align:start}
.crm-column { min-height:360px; padding:12px; border:1px solid var(--line); border-radius:14px; background:#f6f7f9; }
.crm-column:nth-child(4n+1){border-top:3px solid #5b5ce2;background:linear-gradient(180deg,#f0efff 0,#f8f8fb 120px)}
.crm-column:nth-child(4n+2){border-top:3px solid #19b7a5;background:linear-gradient(180deg,#eafbf8 0,#f8f8fb 120px)}
.crm-column:nth-child(4n+3){border-top:3px solid #f4a340;background:linear-gradient(180deg,#fff6e8 0,#f8f8fb 120px)}
.crm-column:nth-child(4n+4){border-top:3px solid #e66a8d;background:linear-gradient(180deg,#fff0f4 0,#f8f8fb 120px)}
.crm-column header { display:flex; justify-content:space-between; align-items:center; padding:6px 4px 12px; }
.crm-column header span { min-width:24px; padding:3px 7px; border-radius:999px; background:#fff; color:var(--muted); text-align:center; }
.crm-lead-card { display:flex; flex-direction:column; gap:8px; margin-bottom:10px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 3px 10px rgba(21,23,26,.05); }
.crm-lead-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(38,41,74,.12);border-color:#bfc1ff}
.crm-lead-card{cursor:pointer;transition:.18s ease}
.crm-lead-card.is-dragging,.crm-list-row.is-dragging{opacity:.45}
.crm-column.is-over{outline:2px dashed #5b5ce2;outline-offset:2px;background:#eeedff}
.crm-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px}
.crm-status-pill,.crm-task-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#f0efff;color:#5656d8;font-size:12px;font-weight:700}
.crm-note{margin:0;padding:8px 10px;border-left:3px solid #c8c8ff;background:#f7f7ff;border-radius:6px;color:#555b70;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.crm-task-badge{background:#eefaf4;color:#198754}
.crm-detail{min-width:min(680px,80vw)}
.crm-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0;padding:14px;border-radius:12px;background:#f6f7fb}
.crm-detail-grid>div{display:flex;flex-direction:column;gap:5px}.crm-detail-body{display:grid;gap:16px}.crm-detail-body section{padding-top:14px;border-top:1px solid var(--line)}
.crm-detail-body h3{margin:0 0 10px}.crm-last-call,.crm-task-list>div,.crm-activity-list>div{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}.crm-last-call span,.crm-task-list span,.crm-activity-list span{display:block;color:var(--muted);font-size:12px;margin-top:4px}.crm-last-call p,.crm-activity-list p{margin:7px 0 0}.crm-task-list,.crm-activity-list{display:grid;gap:8px}
.crm-list-row{cursor:pointer}.crm-list-row:hover{background:#f7f7ff}
.campaign-status-editor textarea{min-height:130px;line-height:1.55}
.crm-lead-head { display:flex; flex-direction:column; gap:3px; }
.crm-lead-head span,.crm-lead-card>small,.crm-card-foot small { color:var(--muted); font-size:12px; }
.crm-phone { color:var(--brand); font-weight:600; text-decoration:none; }
.crm-phone:hover { text-decoration:underline; }
.crm-card-foot { display:flex; justify-content:space-between; gap:8px; padding-top:8px; border-top:1px solid var(--line); font-size:12px; }
.crm-list { overflow:auto; }
.crm-list-row { display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr; gap:14px; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line); }
.crm-list-head { background:#f6f7f9; color:var(--muted); font-size:13px; }
@media(max-width:1000px){.crm-kanban{grid-auto-columns:minmax(250px,82vw);}.crm-list-row{min-width:720px;}}
.status-dot.is-off { background:#cbd5e1; }
.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
.primary:hover { border-color: var(--brand-hover); background: var(--brand-hover); }
.primary:active { border-color: var(--brand-pressed); background: var(--brand-pressed); }
.danger { color: #fff; border-color: var(--red); background: var(--red); }
.call { min-width: 142px; color: #fff; border-color: var(--green); background: var(--green); }
.call:disabled, .primary:disabled { opacity: .38; cursor: not-allowed; }
.content { width: 100%; flex: 1; padding: 24px max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }

.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: max(22px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); background: radial-gradient(circle at 15% 10%,#e8e9ff,transparent 35%),radial-gradient(circle at 85% 85%,#e8f9ff,transparent 35%),#f6f7f9; }
.login-card { width: min(430px,100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px,6vw,36px); box-shadow: 0 30px 80px #32355a1a; }
.login-logo { width: 116px; height: 116px; display: block; margin: 0 auto 16px; object-fit: cover; border-radius: 25px; }
.login h1 { text-align: center; margin: 0; font-size: 28px; }
.login p { text-align: center; color: var(--muted); margin: 7px 0 26px; }
.field { display: grid; gap: 7px; margin-bottom: 15px; min-width: 0; }
.field label, .label { font-size: 12px; font-weight: 500; color: var(--muted); }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #dfe2e7; border-radius: 10px; background: #fff; padding: 11px 12px; color: #17191c; outline: none; }
input:focus, textarea:focus, select:focus { border-color: #9394fa; box-shadow: 0 0 0 3px #5b5cf018; }
textarea { resize: vertical; min-height: 110px; }
.login .primary { width: 100%; padding: 13px; margin-top: 8px; }
.error { color: var(--red); font-size: 13px; margin-top: 12px; overflow-wrap: anywhere; }

.lead-layout { width: min(1540px,100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; align-items: start; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px #20243c0a; }
.card-pad { padding: clamp(18px,2.1vw,28px); }
.callbar { grid-column: 1/-1; min-height: 112px; display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.callstate { display: flex; align-items: center; gap: 12px; flex: 1 1 310px; min-width: 240px; }
.call-icon { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #e7f8eb; color: var(--green); font-size: 20px; }
.callstate strong { display: block; font-size: 17px; }
.callstate small { display: block; max-width: 420px; margin-top: 4px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.sip-switch { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.switch { position: relative; width: 46px; height: 26px; min-height: 26px; border-radius: 20px; background: #cbd0d8; border: 0; padding: 0; }
.switch:after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; left: 3px; top: 3px; background: #fff; transition: .2s; box-shadow: 0 1px 5px #0003; }
.switch.on { background: var(--green); }
.switch.on:after { left: 23px; }
.icon-button { width: 44px; flex: 0 0 44px; border: 1px solid var(--line); background: #f4f5f7; border-radius: 10px; }
.dial-field { flex: 1 1 300px; min-width: 220px; }
.dial-field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.call-number { font-size: 16px; }
.callbar .danger { min-width: 142px; }
.sip-inline-control { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; color: #68707d; font-size: 12px; font-weight: 700; }
.sip-inline-control .switch { flex: 0 0 46px; width: 46px; height: 26px; min-height: 26px; border: 0; border-radius: 999px; padding: 0; background: #bcc4cf; box-shadow: inset 0 1px 2px rgba(14, 24, 43, .18); cursor: pointer; transition: background .18s ease; }
.sip-inline-control .switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; margin: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(14, 24, 43, .32); transition: left .18s ease; }
.sip-inline-control .switch.on { background: #22c55e; }
.sip-inline-control .switch.on::after { left: 23px; transform: none; }
.sip-inline-control .switch:disabled { opacity: .5; cursor: not-allowed; }
.sip-toggle-label { min-width: 20px; }

.lead-card, .workflow-card { min-height: 720px; }
.lead-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.lead-meta { flex-wrap: wrap; min-width: 0; }
.lead-meta > span:last-child { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead-chip { display: inline-flex; align-items: center; max-width: 100%; min-height: 28px; padding: 5px 10px; overflow: hidden; text-overflow: ellipsis; border-radius: 999px; background: #eaf2ff; color: var(--brand); font-size: 12px; font-weight: 500; white-space: nowrap; }
.lead-head { display: grid; grid-template-columns: minmax(0,1fr) 160px; gap: 14px; align-items: center; margin-top: 10px; }
.lead-head input { min-height: 52px; padding-left: 0; border-color: transparent; background: transparent; font-size: clamp(24px,3vw,36px); font-weight: 500; }
.lead-head input:hover { border-color: var(--line); background: #fff; padding-left: 12px; }
.lead-head select { background-color: #f5f6f8; }
.lead-subtitle { margin: 0 0 22px; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 12px; font-size: 17px; font-weight: 500; }
.card-config-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.lead-data-section { position: relative; padding-top: 1px; }
.section-config-title > span { flex: 1; }
.section-config-title small { color: var(--orange); font-size: 11px; }
.gear-button,.field-gear { width: 36px; min-height: 36px; border: 0; border-radius: 9px; background: #f1f2f5; color: var(--muted); }
.field-gear { width: 30px; min-height: 30px; margin: 2px 0 0 auto; padding: 0; flex: 0 0 30px; }
.field-label-row { display: flex; align-items: flex-start; min-width: 0; min-height: 34px; gap: 8px; }
.field-label-row label { min-width: 0; padding-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-label-row + input,.field-label-row + select,.field-label-row + textarea,.field-label-row + .inline-field { margin-top: 2px; }
.config-hidden { opacity: .58; outline: 1px dashed #c8ccd4; outline-offset: 3px; border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.wide { grid-column: 1/-1; }
.inline-field { display: flex; gap: 8px; min-width: 0; }
.inline-field input { overflow: hidden; text-overflow: ellipsis; }
.description-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.description-head .muted { font-size: 11px; }
.description { min-height: 180px; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.next-actions { padding-top: 4px; }

.workflow-tabs { display: flex; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.workflow-tabs::-webkit-scrollbar { display: none; }
.workflow-tab { flex: 0 0 auto; border: 0; background: transparent; padding: 10px 14px; color: var(--muted); font-weight: 500; border-radius: 10px; }
.workflow-tab.active { background: var(--brand); color: #fff; }
.workflow { padding: clamp(18px,2.1vw,28px); }
.workflow-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.workflow-heading h2 { margin: 0; font-size: 22px; }
.workflow-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.scenario-editor { min-height: 320px; line-height: 1.55; }
.script-steps p { white-space: pre-wrap; overflow-wrap: anywhere; }
.workflow-heading p { margin: 4px 0 0; }
.script-steps { display: grid; gap: 0; }
.script-steps article { display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 14px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.script-steps article > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f0f1f4; color: var(--muted); }
.script-steps b { font-size: 15px; font-weight: 500; }
.script-steps p { margin: 6px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.result-title { justify-content: space-between; }
.result-title small { color: var(--muted); font-weight: 400; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 13px 0 18px; }
.result { display: flex; align-items: center; gap: 9px; min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px; text-align: left; overflow-wrap: anywhere; }
.result.selected { border-color: var(--brand); background: #f2f2ff; color: var(--brand); }
.radio { width: 17px; height: 17px; flex: 0 0 auto; border: 2px solid currentColor; border-radius: 50%; }
.result.selected .radio { box-shadow: inset 0 0 0 3px #f2f2ff; background: var(--brand); }
.save-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 14px; }
.workflow-empty { min-height: 410px; display: grid; place-content: center; justify-items: center; text-align: center; }
.workflow-empty b { font-size: 22px; }
.workflow-empty p { max-width: 440px; }

.waiting { min-height: calc(100vh - 150px); min-height: calc(100dvh - 150px); display: grid; place-items: center; padding: 30px 16px; text-align: center; }
.waiting img { width: 180px; border-radius: 38px; }
.spinner { width: 32px; height: 32px; border: 3px solid #dedff4; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 22px auto; }
.waiting h2 { font-size: 27px; margin: 0; }
.waiting p { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

.page { width: min(1500px,100%); margin: 0 auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.metric { padding: 20px; }
.metric b { font-size: 31px; display: block; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
.panel-grid { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 18px; }
.list-item { padding: 15px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list-item:hover { background: #fafaff; }
.list-item.active { background: #f0f0ff; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); background: #17192566; }
.modal { width: min(600px,100%); max-height: min(86vh,86dvh); overflow: auto; background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 35px 100px #0003; }
.modal h2 { margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
#toast { position: fixed; right: max(22px,env(safe-area-inset-right)); bottom: max(22px,env(safe-area-inset-bottom)); max-width: min(420px,calc(100vw - 44px)); z-index: 100; padding: 12px 16px; border-radius: 10px; background: #15171a; color: #fff; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; overflow-wrap: anywhere; }
#toast.show { opacity: 1; transform: none; }
.quick-phone { position: fixed; right: max(24px,env(safe-area-inset-right)); bottom: max(24px,env(safe-area-inset-bottom)); z-index: 35; width: 62px; height: 62px; min-height: 62px; border: 0; border-radius: 50%; background: linear-gradient(145deg,#38d66a,#16b84b); color: #fff; font-size: 25px; box-shadow: 0 16px 36px #22c55e55; transition: transform .18s,box-shadow .18s; }
.quick-phone:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 42px #22c55e66; }
.dialer { max-width: 390px; margin: 0 auto; }
.dialer-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dialer-head h2,.dialer-head p { margin: 0; }
.dialer-head > div:not(.dialer-duration) { min-width: 0; flex: 1; }
.dialer-duration { margin-left: auto; padding: 9px 12px; border: 1px solid var(--brand-border); border-radius: 10px; background: var(--brand-soft); color: var(--brand); text-align: right; }
.dialer-duration span { display: block; color: var(--muted); font-size: 11px; line-height: 15px; }
.dialer-duration strong { display: block; font-size: 20px; line-height: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dialer-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #e6f9ec; color: var(--green); font-size: 24px; }
.dialer-number { min-height: 62px; text-align: center; font-size: 25px; font-weight: 500; letter-spacing: .6px; }
.dialpad { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 18px 0; }
.dialpad button { min-height: 58px; border: 1px solid var(--line); border-radius: 15px; background: #f6f7f9; font-size: 21px; font-weight: 500; }
.dialpad button:hover { border-color: #bfc3cc; background: #fff; }
.dialer-call { width: 100%; min-height: 56px; }

.campaign-layout { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 18px; min-height: 680px; }
.campaign-sidebar { overflow: hidden; align-self: start; }
.campaign-item { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 16px; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.campaign-item:hover { background: #fafaff; }
.campaign-item.active { background: #f0f0ff; color: var(--brand); }
.campaign-item span { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.campaign-item small { color: var(--muted); }
.campaign-main { overflow: hidden; }
.campaign-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.campaign-header h2 { margin: 0; overflow-wrap: anywhere; }
.campaign-header p { margin: 6px 0 0; color: var(--muted); }
.status-dot { display: inline-block; margin-right: 7px; }
.campaign-tabs { display: flex; gap: 4px; padding: 10px 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.campaign-tabs button { flex: 0 0 auto; border: 0; background: transparent; padding: 10px 13px; border-radius: 9px; font-weight: 500; color: var(--muted); }
.campaign-tabs button.active { background: #eeefff; color: var(--brand); }
.campaign-content { padding: 22px; min-height: 540px; }
.campaign-content > form { max-width: 920px; }
.campaign-content .field { margin-bottom: 18px; }
.empty-panel { min-height: 600px; display: grid; place-content: center; text-align: center; }
.overview > h2 { margin-top: 0; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.summary-grid div { padding: 15px; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.summary-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.summary-grid span { color: var(--muted); }
.info-card { padding: 15px; border-radius: 12px; background: #eaf8ef; color: #16783a; font-weight: 500; }
.report-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) auto; align-items: end; gap: 12px; margin-bottom: 18px; padding: 16px; }
.report-filters .field { margin: 0; }
.report-scope-note { margin-bottom: 18px; padding: 13px 16px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.report-operators { margin-top: 18px; }
.operator-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.operator-stats button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; text-align: left; }
.operator-stats button:hover { border-color: var(--brand); background: var(--brand-soft); }
.operator-stats span { display: grid; gap: 3px; }
.operator-stats small { color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.check input { width: auto; }
.schedule-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.schedule-grid { display: grid; grid-template-columns: 42px repeat(24,24px); gap: 4px; align-items: center; overflow: auto; padding: 15px 0; }
.schedule-grid small { text-align: center; font-size: 9px; color: var(--muted); }
.schedule-grid > b { font-size: 11px; }
.slot { width: 24px; height: 28px; min-height: 28px; border: 0; border-radius: 5px; background: #e5e7eb; padding: 0; }
.slot.active { background: var(--brand); }
.contact-actions { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; }
.campaign-content .metrics .card { box-shadow: none; }
.employee-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfc; }
.employee-option { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.employee-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.employee-option input { width: 18px; min-height: 18px; }
.employee-option span { display: grid; min-width: 0; }
.employee-option b,.employee-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-option small { color: var(--muted); }
.schema-head,.schema-section-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.schema-head h2 { margin: 0; }
.schema-head p { margin: 4px 0 0; }
.schema-sections { display: grid; gap: 12px; margin-top: 20px; }
.schema-sections article { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfc; }
.schema-sections article.dragging { opacity: .45; border-color: var(--brand); }
.schema-section-title { justify-content: flex-start; }
.schema-section-title > div { display: grid; flex: 1; }
.schema-section-title .schema-order { display: flex; flex: 0 0 auto; grid-auto-flow: column; gap: 5px; }
.schema-order .gear-button:disabled { opacity: .35; cursor: not-allowed; }
.schema-section-title small { margin-top: 3px; color: var(--muted); }
.drag-handle { color: #aeb4bd; letter-spacing: -4px; cursor: grab; user-select: none; }
.schema-field-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 0 28px; }
.schema-field-chips span,.role-badge,.status-badge { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #eceeff; color: var(--brand); font-size: 11px; font-style: normal; }
.schema-field-chips .disabled-chip { background: #eef0f2; color: var(--muted); text-decoration: line-through; }
.section-fields-editor { margin-top: 18px; }
.section-fields-editor .section-title { justify-content: space-between; }
.schema-field-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; }
.schema-field-row span { display: grid; flex: 1; min-width: 0; gap: 3px; }
.schema-field-label { width: 100%; min-height: 34px; padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; font: inherit; font-weight: 600; color: inherit; }
.schema-field-label:hover,.schema-field-label:focus { border-color: var(--input-border); background: #fff; }
.schema-field-delete { width: 34px; min-height: 34px; padding: 0; flex: 0 0 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--red); }
.schema-field-delete:hover { border-color: #fecaca; background: var(--danger-soft); }
.schema-field-row small { color: var(--muted); }
.field-order-actions { display: flex; gap: 8px; margin-top: 8px; }
.user-metrics { margin-bottom: 18px; }
.user-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.user-card { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 13px; min-height: 150px; padding: 18px; border: 1px solid var(--line); text-align: left; }
.user-card-copy { display: grid; align-content: start; gap: 4px; min-width: 0; }
.user-card-copy b,.user-card-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card-copy small { color: var(--muted); }
.status-badge { position: absolute; left: 18px; bottom: 17px; background: #e9f9ee; color: #16833c; }
.status-badge.inactive { background: #f0f1f3; color: var(--muted); }
.task-lead-link { display:inline-block; margin-top:8px; padding:0; border:0; background:transparent; color:var(--brand); font-size:12px; font-weight:600; cursor:pointer; }
.modern-report-filters { align-items:center; }
.modern-report-filters select,
.modern-report-filters input,
.modern-report-filters button { box-sizing:border-box; height:44px; min-height:44px; line-height:20px; }
.modern-report-nav-item { box-sizing:border-box; min-height:44px; height:44px; display:inline-flex; align-items:center; justify-content:center; white-space:nowrap; }
.topbar .tabs { height:48px; box-sizing:border-box; align-items:stretch; }
.topbar .tab { height:40px; min-height:40px; align-self:center; padding-top:0; padding-bottom:0; }
.topbar .workspace-nav-controls button,
.topbar .notification-button,
.topbar .profile-button { height:40px; min-height:40px; box-sizing:border-box; }
.header-search { position:relative; flex:0 1 210px; min-width:150px; }
.header-search input { width:100%; height:40px; min-height:40px; box-sizing:border-box; padding:0 30px 0 11px; border:1px solid var(--line); border-radius:10px; font-size:13px; }
.header-search > span { position:absolute; right:10px; top:10px; color:var(--muted); pointer-events:none; }
.header-search-results { display:none; position:absolute; z-index:120; top:46px; left:0; width:280px; padding:8px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 18px 42px rgba(21,23,26,.18); }
.header-search-results.is-open { display:grid; gap:4px; }
.header-search-item,.header-search-action { width:100%; min-height:36px; padding:7px 10px; border:0; border-radius:8px; background:#fff; color:var(--text); text-align:left; cursor:pointer; }
.header-search-item:hover,.header-search-action:hover { background:var(--brand-soft); color:var(--brand); }
.header-search-item b,.header-search-item small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.header-search-item small { margin-top:2px; color:var(--muted); font-size:11px; }
.header-search-empty { padding:8px 10px; color:var(--muted); font-size:12px; }
@media (min-width:981px) {
  .topbar { gap:7px; padding-left:16px; padding-right:16px; white-space:nowrap; }
  .brand { flex:0 0 190px; gap:7px; }
  .brand img { width:32px; height:32px; }
  .brand strong { font-size:13px; letter-spacing:.8px; }
  .brand span { font-size:9px; }
  .presence-control { flex-basis:132px; padding-left:7px; padding-right:7px; }
  .presence-control > button { width:98px; font-size:11px !important; }
  .workspace-nav-controls { gap:4px; }
  .workspace-nav-controls button { width:36px; height:38px; }
  .header-search { flex-basis:175px; min-width:140px; }
  .header-search input { height:38px; min-height:38px; font-size:12px; }
  .tabs { min-width:0; }
  .topbar .tab { padding-left:7px; padding-right:7px; font-size:13px; gap:5px; }
  .user-menu { gap:5px; margin-left:2px; }
  .notification-button { width:38px; padding:0; }
  .profile-button { padding-left:4px; padding-right:4px; gap:6px; }
  .user-copy { min-width:68px; font-size:12px; }
  .user-copy small { font-size:10px; }
}
.header-search > span { display:grid; place-items:center; top:0; right:0; width:38px; height:100%; font-size:17px; }
.header-search .header-search-action:first-of-type { display:flex; align-items:center; gap:8px; }
@media (min-width:981px) {
  .topbar { justify-content:flex-start; }
  .brand { flex-basis:172px; }
  .presence-control { flex-basis:126px; }
  .header-search { flex:0 0 190px; margin-left:0; }
  .tabs { flex:0 1 535px; }
  .topbar .tab { flex:1 1 0; padding-left:5px; padding-right:5px; }
}
.edit-user { position: absolute; right: 18px; bottom: 19px; color: var(--brand); font-size: 12px; }
.profile-editor-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.avatar-upload { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fafaff; }
.avatar-upload-preview { display: grid; place-items: center; flex: 0 0 auto; }
.avatar-upload-copy { display: grid; gap: 4px; min-width: 0; }
.avatar-upload-copy b { font-size: 14px; font-weight: 600; }
.avatar-upload-copy small { color: var(--muted); font-size: 12px; }
.avatar-upload-copy button { justify-self: start; min-height: 36px; margin-top: 5px; padding: 6px 12px; font-size: 12px; }
.profile-editor-head h2,.profile-editor-head p { margin: 0; }

@media (max-width: 1260px) {
  .topbar { gap: 12px; }
  .brand { min-width: 225px; }
  .online span { display: none; }
  .tab { padding-inline: 13px; }
  .user-copy { display: none; }
  .callbar { flex-wrap: wrap; }
  .callstate { flex-basis: calc(100% - 180px); }
  .dial-field { flex: 1 1 420px; }
}
@media (max-width: 980px) {
  .topbar { flex-wrap: wrap; }
  .tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .tab { flex: 1 0 auto; }
  .user-menu { margin-left: auto; }
  .lead-layout { grid-template-columns: 1fr; }
  .callbar { grid-column: auto; }
  .lead-card, .workflow-card { min-height: 0; }
  .campaign-layout, .panel-grid { grid-template-columns: 1fr; min-height: 0; }
  .campaign-sidebar { display: flex; overflow-x: auto; }
  .campaign-item { min-width: 240px; border-right: 1px solid var(--line); }
  .campaign-header { align-items: flex-start; }
  .campaign-header .actions { flex-wrap: wrap; }
  .user-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .report-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Android WebView can report a desktop CSS viewport; keep the mobile layout
   based on the actual client instead of its emulated width. */
.android-webview .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; grid-template-rows:auto auto; gap:8px; padding:10px 12px; min-height:0; }
.android-webview .brand { grid-column:1; min-width:0; }
.android-webview .brand img { width:36px; height:36px; }
.android-webview .brand strong { font-size:13px; letter-spacing:.7px; overflow:hidden; text-overflow:ellipsis; }
.android-webview .brand span { font-size:9px; }
.android-webview .brand > div { display:none; }
.android-webview .presence-control { grid-column:2; width:132px; min-width:0; }
.android-webview .presence-control > button { width:100%; font-size:11px; }
.android-webview .workspace-nav-controls { grid-column:3; }
.android-webview .workspace-nav-controls button { width:36px; height:36px; }
.android-webview .user-menu { display:flex; grid-column:4; grid-row:1; justify-self:end; align-self:center; margin-left:0; }
.android-webview .user-menu .user-copy { display:none; }
.android-webview .profile-button { width:42px; height:42px; min-height:42px; padding:0; justify-content:center; border-radius:50%; }
.android-webview .tabs { grid-column:1 / -1; grid-row:2; width:100%; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
.android-webview .tabs::-webkit-scrollbar { display:none; }
.android-webview .tab { flex:0 0 auto; min-width:92px; min-height:42px; padding:8px 10px; font-size:13px; }
.android-webview .header-search { grid-column:1 / -1; grid-row:3; width:100%; }
.android-webview .header-search input { height:40px; min-height:40px; font-size:14px; }
.android-webview .content { padding:14px 12px 86px; }
.android-webview .callbar { min-height:0; padding:16px; }
.android-webview .lead-card, .android-webview .workflow-card { min-height:0; }
@media (max-width: 700px) {
  .topbar { position: relative; padding: max(10px,env(safe-area-inset-top)) 14px 10px; }
  .brand { min-width: 0; flex: 1; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: 14px; }
  .brand span { display: none; }
  .online { display: none; }
  .user-menu { gap: 6px; }
  .user-menu .ghost { font-size: 0; width: 42px; padding: 0; }
  .user-menu .ghost:after { content: "↪"; font-size: 18px; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 7px max(8px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); border: 1px solid var(--line); border-radius: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(18px); }
  .tab { min-width: 76px; min-height: 46px; padding: 8px 10px; font-size: 12px; }
  .content { padding: 14px 12px calc(78px + env(safe-area-inset-bottom)); }
  .quick-phone { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 56px; height: 56px; min-height: 56px; }
  .dialer-head { flex-wrap: wrap; }
  .dialer-duration { width: 100%; margin-left: 0; text-align: center; }
  .callbar { gap: 10px; padding: 16px; }
  .callstate { flex-basis: calc(100% - 100px); min-width: 0; }
  .callstate small { font-size: 11px; }
  .sip-switch { margin-left: auto; }
  .dial-field { order: 6; flex-basis: 100%; }
  .callbar .call, .callbar .danger { order: 7; width: 100%; }
  .callbar #mute-button { order: 5; width: 100%; }
  .lead-head { grid-template-columns: 1fr; gap: 6px; }
  .lead-head input { font-size: 28px; }
  .lead-head select { width: 100%; }
  .form-grid, .metrics, .summary-grid, .results { grid-template-columns: 1fr; }
  .employee-picker,.user-grid { grid-template-columns: 1fr; }
  .report-filters,.operator-stats { grid-template-columns: 1fr; }
  .report-filters > button { width: 100%; }
  .wide { grid-column: auto; }
  .inline-field { flex-direction: column; }
  .inline-field .secondary { width: 100%; }
  .description-head { align-items: flex-end; }
  .workflow { padding: 18px; }
  .workflow-heading { align-items: flex-start; }
  .save-row .primary { width: 100%; }
  .page-head, .campaign-header, .schedule-head { align-items: stretch; flex-direction: column; }
  .page-head > .primary, .campaign-header .actions > * { width: 100%; text-align: center; }
  .campaign-content { padding: 16px; }
  .summary-grid div:nth-child(odd) { border-right: 0; }
  .card-pad { overflow-x: auto; }
  .table { min-width: 640px; }
  .modal { padding: 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  input, textarea, select { font-size: 16px; }
}
@media (max-width: 380px) {
  .brand strong { letter-spacing: .6px; font-size: 12px; }
  .avatar { width: 34px; height: 34px; }
  .lead-meta { align-items: flex-start; flex-direction: column; }
  .workflow-tabs { padding-inline: 10px; }
  .workflow-tab { padding-inline: 11px; }
  .script-steps article { grid-template-columns: 30px minmax(0,1fr); gap: 10px; }
  .script-steps article > span { width: 30px; height: 30px; }
}
@media (orientation: landscape) and (max-height: 560px) and (max-width: 980px) {
  .topbar { position: relative; }
  .content { padding-top: 12px; }
  .callbar { min-height: 0; }
  .waiting { min-height: 420px; }
  .waiting img { width: 110px; }
}
@media (pointer: coarse) {
  button, input, select { min-height: 44px; }
  .result { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Campaign workspace — Bulatkin Leads design system */
.lucide{display:inline-block;flex:0 0 auto;vertical-align:-3px}.primary,.secondary,.danger,.danger-outline,.icon-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px}.campaigns-page{width:min(1440px,100%);margin:0 auto}.campaign-page-head{margin-bottom:24px}.campaign-page-head h1{margin-bottom:4px;font-size:28px;line-height:36px;font-weight:500}.campaign-layout{grid-template-columns:266px minmax(0,1fr);gap:22px;min-height:680px}.campaign-sidebar{display:grid;align-content:start;gap:12px;overflow:visible}.campaign-item{min-height:112px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 4px 16px rgba(21,23,26,.03)}.campaign-item:hover{border-color:var(--brand-border);background:#f0f1f4}.campaign-item.active{border-color:var(--brand);background:var(--brand-soft);color:#15171a;box-shadow:0 4px 16px rgba(91,92,240,.08)}.campaign-item span{align-self:stretch;justify-content:space-between}.campaign-item b{font-size:16px;line-height:24px;font-weight:500}.campaign-item small{padding-top:12px;border-top:1px solid var(--line);font-size:12px;line-height:16px}.campaign-state{width:10px;height:10px;align-self:start;border-radius:50%;background:var(--orange)}.campaign-state.active{background:var(--green)}.campaign-main{overflow:visible}.campaign-header{min-height:104px;padding:18px 20px;border:0;border-radius:16px;background:#f0f1f4}.campaign-header h2{font-size:24px;line-height:32px;font-weight:500}.campaign-header p{display:flex;align-items:center;font-size:13px;line-height:18px}.campaign-header .actions{display:flex;align-items:center;gap:10px}.icon-action{width:44px;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:#15171a}.icon-action:hover{background:#f0f1f4}.campaign-tabs{gap:6px;margin:10px 0 0;padding:0 0 12px;border-bottom:1px solid var(--line)}.campaign-tabs button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:10px 12px}.campaign-tabs button:hover{background:#f0f1f4;color:#15171a}.campaign-tabs button.active{background:var(--brand-soft);color:var(--brand)}.campaign-content{min-height:540px;padding:20px 0 0}.campaign-content>form{max-width:none}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-heading h2{margin:0;font-size:20px;line-height:28px;font-weight:500}.section-heading p{margin:2px 0 0}.mode-badge{padding:6px 10px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:12px;line-height:16px;font-weight:500}.campaign-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.campaign-metric{min-width:0;min-height:126px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(21,23,26,.05)}.campaign-metric span,.campaign-metric small{display:block;color:var(--muted)}.campaign-metric b{display:block;margin-top:12px;font-size:28px;line-height:36px;font-weight:500}.campaign-metric i{display:block;height:6px;margin-top:10px;overflow:hidden;border-radius:99px;background:#e6e8ec}.campaign-metric em{display:block;height:100%;border-radius:inherit;background:var(--brand)}.settings-stack{display:grid;gap:18px}.settings-card{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(21,23,26,.05)}.settings-card>h2,.settings-card>h3{margin:0 0 14px;font-weight:500}.summary-list{padding:18px}.summary-list>div{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:58px;border-bottom:1px solid var(--line)}.summary-list>div:last-child{border-bottom:0}.summary-list span{color:var(--muted)}.summary-list b{font-weight:500;text-align:right;overflow-wrap:anywhere}.history-card{margin-top:18px}.history-item{display:flex;align-items:center;gap:12px;min-height:66px;border-bottom:1px solid var(--line)}.history-item:last-child{border:0}.history-item>span{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#edf5ff;color:var(--brand)}.history-item div{display:grid;gap:3px;min-width:0}.history-item b{font-weight:500;overflow-wrap:anywhere}.history-item small{color:var(--muted)}.campaign-script{min-height:320px;line-height:1.6}.employee-picker{grid-template-columns:1fr;padding:0;border:0;background:transparent}.employee-option{min-height:62px;padding:10px 12px}.employee-option>input{position:absolute;opacity:0;pointer-events:none}.employee-option span{flex:1}.operator-switch{position:relative;width:46px;height:26px;flex:0 0 auto;border-radius:20px;background:#cbd0d8}.operator-switch:after{content:"";position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002;transition:.2s}.employee-option input:checked+.operator-switch{background:var(--brand)}.employee-option input:checked+.operator-switch:after{left:23px}.danger-zone{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px;border:1px solid #fecaca;border-radius:14px;background:var(--danger-soft)}.danger-zone h2{margin:0 0 4px;color:#b91c1c;font-size:18px;font-weight:500}.danger-zone p{margin:0;color:#9f3a3a}.danger-actions{display:flex;gap:10px;flex:0 0 auto}.danger-outline{padding:10px 15px;border:1px solid var(--red);border-radius:10px;background:#fff;color:var(--red);font-weight:500}.danger-outline:hover{background:var(--danger-soft)}.save-confirmation{position:fixed;z-index:60;top:max(18px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;min-width:min(420px,calc(100% - 32px));padding:13px 16px;border:1px solid #bbebc9;border-radius:12px;background:var(--success-soft);color:#16783a;box-shadow:0 12px 36px #16281d20}.save-confirmation span{display:grid}.save-confirmation small{color:#3d7f53}.schema-panel .schema-head{margin-bottom:8px}
@media(max-width:980px){.campaign-layout{grid-template-columns:1fr}.campaign-sidebar{display:flex;padding-bottom:4px;overflow-x:auto;scroll-snap-type:x mandatory}.campaign-item{min-width:240px;scroll-snap-align:start}}
@media(max-width:700px){.campaign-page-head h1{font-size:24px;line-height:32px}.campaign-page-head>.primary{min-height:48px}.campaign-header{align-items:stretch;padding:16px}.campaign-header .actions{display:grid;grid-template-columns:1fr 48px}.campaign-header .actions>*{width:auto;min-height:48px}.campaign-tabs{margin-top:8px;padding-bottom:8px;scroll-snap-type:x mandatory}.campaign-tabs button{min-height:48px;font-size:16px;scroll-snap-align:start}.campaign-content{padding-top:16px}.section-heading{align-items:stretch;flex-direction:column}.section-heading>.primary{width:100%;min-height:48px}.campaign-metrics{grid-template-columns:1fr}.campaign-metric{min-height:112px}.summary-list>div{align-items:flex-start;flex-direction:column;gap:5px;padding:12px 0}.summary-list b{text-align:left}.danger-zone,.danger-actions{align-items:stretch;flex-direction:column}.danger-actions button{width:100%;min-height:48px}.schedule-head>div:last-child{display:grid;gap:8px}.schedule-head button{width:100%;min-height:48px}.campaign-content input,.campaign-content textarea,.campaign-content select,.campaign-content button{font-size:16px}}

/* Global application components — the same system as Campaigns */
body{color:#15171a;background:#f6f7f9;font-weight:400}.topbar{min-height:80px;border-color:var(--line);box-shadow:0 2px 12px rgba(21,23,26,.03)}.brand strong{font-weight:500}.online{padding:8px 11px;border-radius:999px;background:var(--success-soft);color:#16783a}.tabs{gap:4px;padding:4px;background:#f0f1f4}.tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;color:var(--muted)}.tab:hover{background:#fff;color:#15171a}.tab.active{background:var(--brand);color:#fff;box-shadow:0 5px 14px rgba(91,92,240,.2)}.profile-button{border:1px solid transparent}.profile-button:hover{border-color:var(--line);background:#fff}.ghost,.secondary,.primary,.danger,.call{min-height:44px;border-radius:10px;font-size:14px;line-height:20px;font-weight:500;transition:background-color .16s,border-color .16s,color .16s,transform .12s}.ghost:hover,.secondary:hover{border-color:var(--brand-border);background:var(--brand-soft);color:var(--brand)}.ghost:active,.secondary:active,.primary:active,.danger:active,.call:active{transform:translateY(1px)}.danger:hover{border-color:#dc2626;background:#dc2626}.call:hover{border-color:#1eae4e;background:#1eae4e}.card{border-color:var(--line);border-radius:14px;box-shadow:0 4px 16px rgba(21,23,26,.05)}.card-pad{padding:24px}input,textarea,select{min-height:44px;border-color:var(--input-border);border-radius:10px;background:#fff;color:#15171a}input:hover,textarea:hover,select:hover{border-color:#bfc5cf}input:focus,textarea:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(91,92,240,.22)}.field label,.label{color:var(--muted);font-weight:500}.page-head h1{font-size:28px;line-height:36px;font-weight:500}.page-head p{margin:4px 0 0}.callbar{border-radius:16px;box-shadow:0 4px 16px rgba(21,23,26,.05)}.call-icon{background:var(--success-soft)}.callstate strong{font-weight:500}.lead-card,.workflow-card{border-radius:16px}.lead-head input{font-weight:500}.section-title{font-weight:500}.gear-button,.field-gear{border:1px solid transparent;background:#f0f1f4}.gear-button:hover,.field-gear:hover{border-color:var(--brand-border);background:var(--brand-soft);color:var(--brand)}.workflow-tabs{gap:6px;padding:12px 16px}.workflow-tab{display:inline-flex;align-items:center;min-height:44px}.workflow-tab:hover{background:#f0f1f4;color:#15171a}.workflow-tab.active{background:var(--brand-soft);color:var(--brand);box-shadow:none}.workflow-heading h2{font-size:20px;line-height:28px;font-weight:500}.script-steps article{border-radius:12px}.result{min-height:48px;border-color:var(--input-border);border-radius:10px}.result:hover{border-color:var(--brand-border);background:#fafaff}.result.selected{border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}.result.selected .radio{box-shadow:inset 0 0 0 3px var(--brand-soft);background:var(--brand)}.waiting>div{width:min(480px,100%);padding:32px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 4px 16px rgba(21,23,26,.05)}.waiting img{width:150px;border-radius:32px}.waiting h2{font-size:24px;line-height:32px;font-weight:500}.spinner{border-color:#dedfff;border-top-color:var(--brand)}.metrics{gap:14px}.metric{min-height:126px;padding:18px;border-radius:14px}.metric b{font-size:28px;line-height:36px;font-weight:500}.table{border:1px solid var(--line);border-radius:12px;border-collapse:separate;border-spacing:0;overflow:hidden}.table th{padding:13px 14px;background:#f6f7f9;color:var(--muted);font-weight:500}.table td{padding:13px 14px}.table tbody tr:hover{background:#fafaff}.report-filters{border-radius:14px;box-shadow:0 4px 16px rgba(21,23,26,.05)}.report-scope-note{border:1px solid var(--brand-border);border-radius:10px}.operator-stats button{min-height:68px;border-radius:10px}.operator-stats button:hover{border-color:var(--brand-border);background:var(--brand-soft)}.user-card{border-radius:14px;box-shadow:0 4px 16px rgba(21,23,26,.05)}.user-card:hover{border-color:var(--brand-border);background:#fafaff;transform:translateY(-1px)}.role-badge{background:var(--brand-soft)}.status-badge{background:var(--success-soft)}.modal-backdrop{background:rgba(21,23,26,.46);backdrop-filter:blur(6px)}.modal{border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 30px 90px rgba(21,23,26,.22)}.modal h2{font-size:20px;line-height:28px;font-weight:500}.modal-actions{padding-top:18px;border-top:1px solid var(--line)}.login-card{border-radius:16px;box-shadow:0 24px 70px rgba(21,23,26,.12)}.login h1{font-weight:500}.quick-phone{display:grid;place-items:center;border:0;background:var(--brand);box-shadow:0 10px 28px rgba(91,92,240,.32)}.quick-phone:hover{background:var(--brand-hover)}.dialer-icon{background:var(--brand-soft);color:var(--brand)}.dialpad button{border-color:var(--line);border-radius:10px}.toast{border-radius:10px}
@media(max-width:700px){.topbar{box-shadow:0 2px 10px rgba(21,23,26,.04)}.tab{gap:4px}.tab .lucide{width:16px;height:16px}.page-head h1{font-size:24px;line-height:32px}.card-pad{padding:18px}.waiting{padding:20px 12px}.waiting>div{padding:24px 18px}.waiting img{width:120px}.modal{padding:20px}.metric{min-height:110px}.table th,.table td{padding:11px 12px}.quick-phone{bottom:calc(78px + env(safe-area-inset-bottom))}}

/* Lead workspace, notifications and tasks — unified Bulatkin Leads system */
.notification-button{position:relative;width:44px;height:44px;min-height:44px;display:grid;place-items:center;padding:0;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--muted)}
.workspace-refresh{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:rgba(22,25,38,.42);backdrop-filter:blur(10px)}.workspace-refresh>div{width:min(340px,calc(100% - 36px));display:grid;justify-items:center;gap:12px;padding:34px 28px;border:1px solid rgba(255,255,255,.7);border-radius:24px;background:linear-gradient(145deg,#fff,#f2f4ff);box-shadow:0 28px 80px rgba(15,20,45,.3);color:#1b2340;font-size:19px;font-weight:600}.workspace-refresh img{width:58px;height:58px;border-radius:16px}.workspace-refresh small{color:var(--muted);font-size:13px;font-weight:400}.workspace-refresh i{width:100%;height:5px;border-radius:9px;background:linear-gradient(90deg,#5b5cf0 0 35%,#e4e6fb 35%);animation:workspace-load 1.1s ease-in-out infinite}@keyframes workspace-load{50%{transform:scaleX(.55);transform-origin:left}}.profile-menu{position:fixed;z-index:120;width:250px;padding:8px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 20px 55px rgba(22,25,38,.18)}.profile-menu-head{display:flex;align-items:center;gap:10px;padding:10px 11px 13px;border-bottom:1px solid var(--line)}.profile-menu-head>div{display:grid;gap:2px}.profile-menu-head small{color:var(--muted);font-size:12px}.profile-menu button{width:100%;min-height:42px;padding:10px 12px;border:0;border-radius:10px;background:transparent;text-align:left;color:var(--text);font:inherit}.profile-menu button:hover{background:var(--brand-soft);color:var(--brand)}.profile-menu hr{height:1px;margin:7px 4px;border:0;background:var(--line)}.profile-menu .danger-action{color:#c63744}
.workspace-boot{min-height:100vh;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 18% 18%,#e9e7ff 0,transparent 32%),radial-gradient(circle at 82% 78%,#e4f8f2 0,transparent 29%),#f8f9fd;color:#17213e}.workspace-boot-card{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:16px;width:min(390px,calc(100% - 40px));padding:24px 26px;border:1px solid rgba(255,255,255,.86);border-radius:24px;background:rgba(255,255,255,.78);box-shadow:0 24px 70px rgba(48,55,94,.14);backdrop-filter:blur(14px)}.workspace-boot-logo{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:linear-gradient(145deg,#fff,#ececff);box-shadow:0 9px 20px rgba(91,92,240,.16)}.workspace-boot img{width:44px;height:44px;border-radius:12px}.workspace-boot-card>div:nth-child(2){display:grid;gap:5px}.workspace-boot-card strong{font-size:13px;letter-spacing:.1em;color:#1c2440}.workspace-boot-card span{color:#717b92;font-size:14px}.workspace-boot-card i{grid-column:1/-1;width:100%;height:4px;overflow:hidden;border-radius:999px;background:#e7e8f5}.workspace-boot-card i:after{content:"";display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#5b5cf0,#8c7cff);animation:workspace-boot-progress 1.25s ease-in-out infinite}@keyframes workspace-boot-progress{0%{transform:translateX(-120%)}100%{transform:translateX(300%)}}@media(max-width:520px){.workspace-boot-card{padding:21px 22px;border-radius:20px}}
.enterprise-card{cursor:pointer}.enterprise-card.is-selected{border-color:#5b5cf0!important;background:#f2f1ff!important;box-shadow:0 12px 28px rgba(91,92,240,.16)!important}.enterprise-card.is-selected b{color:#4d4ed6}
.notification-button:hover{border-color:var(--brand-border);background:var(--brand-soft);color:var(--brand)}
.notification-button>span{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px;border:2px solid #fff;border-radius:99px;background:var(--danger);color:#fff;font-size:10px;font-weight:500}

/* Android/WebView compact layout: keep every primary control visible and
   let navigation scroll inside its own row instead of clipping the header. */
@media (max-width: 980px) {
  .topbar { display:grid; grid-template-columns:minmax(0,1fr) auto auto; grid-template-rows:auto auto; gap:8px; padding:10px 12px; min-height:0; }
  .brand { grid-column:1; flex:0 1 auto; min-width:0; }
  .brand img { width:36px; height:36px; }
  .brand strong { font-size:13px; letter-spacing:.7px; overflow:hidden; text-overflow:ellipsis; }
  .brand span { font-size:9px; }
  .presence-control { grid-column:2; flex:0 1 132px; width:132px; min-width:0; }
  .presence-control > button { width:100%; font-size:11px; }
  .workspace-nav-controls { grid-column:3; }
  .workspace-nav-controls button { width:36px; height:36px; }
  .user-menu { grid-column:1 / -1; display:none; }
  .tabs { grid-column:1 / -1; grid-row:2; order:initial; width:100%; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
  .tabs::-webkit-scrollbar { display:none; }
  .tab { flex:0 0 auto; min-width:92px; min-height:42px; padding:8px 10px; font-size:13px; }
  .header-search { grid-column:1 / -1; grid-row:3; flex:1 1 auto; min-width:0; width:100%; }
  .header-search input { height:40px; min-height:40px; font-size:14px; }
  .content { padding:14px 12px 86px; }
  .callbar { min-height:0; padding:16px; }
  .lead-card, .workflow-card { min-height:0; }
}
.lead-card{display:grid;align-content:start;gap:16px}.lead-meta{margin-bottom:-4px}.lead-head{margin-top:0}.lead-subtitle{margin:-12px 0 0}.card-config-row{margin:0}.dynamic-card-sections{display:grid;gap:16px}
.lead-data-section{padding:18px;border:1px solid var(--line);border-radius:14px;background:#f6f7f9;box-shadow:0 4px 16px rgba(21,23,26,.025)}
.lead-data-section .section-title{margin:0 0 14px;font-size:18px;line-height:26px}.lead-data-section .form-grid{gap:6px 14px}.lead-data-section .field{gap:3px;margin:0}.lead-data-section .field-label-row{min-height:24px}.lead-data-section .field-label-row label{padding-top:3px}.lead-data-section .field-label-row+input,.lead-data-section .field-label-row+select,.lead-data-section .field-label-row+textarea,.lead-data-section .field-label-row+.inline-field{margin-top:0}.lead-data-section input,.lead-data-section textarea,.lead-data-section select{background:#fff}.lead-data-section .description{min-height:150px}
.next-actions{padding:18px;border:1px solid var(--line);border-radius:14px;background:#f6f7f9}.next-actions .section-title{margin:0 0 14px;font-size:18px}.next-actions .secondary{background:#fff}
.workflow-card{padding:16px}.workflow-tabs{width:max-content;max-width:100%;gap:4px;margin:0 0 2px;padding:4px;border:0;border-radius:12px;background:#f0f1f4}
.workflow-tab{gap:7px;min-height:44px;padding:10px 14px}.workflow-tab.active{background:var(--brand);color:#fff;box-shadow:0 5px 14px rgba(91,92,240,.18)}.workflow-tab>b{min-width:19px;height:19px;display:grid;place-items:center;padding:0 5px;border-radius:99px;background:var(--brand);color:#fff;font-size:10px}.workflow-tab.active>b{background:#fff;color:var(--brand)}
.workflow{padding:20px 4px 4px}.workflow-heading{align-items:flex-start}.workflow-heading h2{font-size:20px;line-height:28px}.script-steps article{padding:18px 12px}.script-steps article:hover{background:#fafaff}.result-title{margin-top:20px}
.activity-list,.task-list{display:grid;gap:10px;margin-top:16px}.activity-list>article,.task-card{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff}.activity-icon,.task-icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:var(--brand-soft);color:var(--brand)}.activity-list article>div,.task-copy{min-width:0;flex:1}.activity-list b,.task-copy b{font-weight:500}.activity-list p,.task-copy p{margin:5px 0;line-height:1.45;overflow-wrap:anywhere}.activity-list small,.task-copy small{color:var(--muted);overflow-wrap:anywhere}
.task-copy>div:first-child{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.task-status{padding:4px 8px;border-radius:999px;background:var(--warning-soft);color:#9a6300;font-size:11px;white-space:nowrap}.status-accepted .task-status{background:var(--brand-soft);color:var(--brand)}.status-done .task-status{background:var(--success-soft);color:#16783a}.status-declined{opacity:.65}.status-declined .task-status{background:var(--danger-soft);color:#b91c1c}.task-actions{display:flex;gap:8px;margin-top:12px}.task-actions button{min-height:38px}.empty-state{min-height:280px;display:grid;place-content:center;justify-items:center;gap:8px;padding:24px;text-align:center;color:var(--muted)}.empty-state svg{color:var(--brand)}.empty-state b{color:var(--text);font-size:18px;font-weight:500}.empty-state p{max-width:400px;margin:0}
.notification-head,.modal-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.notification-head h2,.notification-head p,.modal-title-row h2,.modal-title-row p{margin:0}.notification-head .primary{flex:0 0 auto}.notification-tabs{display:flex;margin:16px 0 4px}.task-counter{padding:6px 10px;border-radius:999px;background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:500}.notification-list{max-height:58vh;overflow:auto;padding-right:4px}.created-tasks-title{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding:14px 0 4px;border-top:1px solid var(--line)}.created-tasks-title span{padding:4px 8px;border-radius:99px;background:#f0f1f4;color:var(--muted);font-size:11px}
@media(max-width:700px){.notification-button{width:42px;height:42px;min-height:42px}.lead-card{gap:14px}.lead-data-section,.next-actions{padding:14px}.workflow-card{padding:12px}.workflow-tabs{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.workflow-tab{width:100%;min-width:0;justify-content:center;gap:4px;min-height:48px;padding:9px 5px;font-size:13px}.workflow-tab .lucide{width:16px;height:16px}.workflow{padding:16px 2px 2px}.workflow-heading{flex-direction:column}.workflow-heading>.primary{width:100%}.task-copy>div:first-child{flex-direction:column}.task-actions{flex-direction:column}.task-actions button{width:100%;min-height:48px}.notification-head{flex-direction:column}.notification-head .primary{width:100%}.activity-list>article,.task-card{padding:12px}.user-menu .notification-button{display:grid}}
 .registration-requests,.enterprise-grid{margin:18px 0;padding:20px}.registration-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line)}.registration-row span,.enterprise-card span,.enterprise-card small{display:block;color:var(--muted);font-size:13px;margin-top:4px}.enterprise-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.enterprise-card{padding:16px}.login-card .secondary{width:100%;margin-top:10px}
 .accept-user{margin-left:auto;min-height:34px;padding:7px 13px;font-size:12px}
 .crm-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.crm-filters input,.crm-filters select{min-height:38px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--text)}.crm-filters input[type=date]{width:145px}.crm-filters input:not([type=date]){min-width:210px}
 .crm-filter-shell{margin:14px 0 18px;padding:0;border:0;background:transparent}.crm-main-toolbar{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #d9dbea;border-radius:16px;background:linear-gradient(135deg,#fff,#f6f7ff);box-shadow:0 8px 24px rgba(54,58,120,.08)}.crm-main-toolbar select{height:44px;min-width:190px;padding:0 14px;border:0;border-radius:12px;background:#eeedff;color:#5355d9;font-weight:600}.crm-search-box{display:flex;align-items:center;gap:8px;flex:1;height:44px;padding:0 13px;border:1px solid #d9dbea;border-radius:12px;background:#fff}.crm-search-box span{font-size:25px;line-height:1;color:#767b91}.crm-search-box input{width:100%;min-width:0;border:0;outline:0;background:transparent}.crm-filter-toggle{height:44px;white-space:nowrap}.crm-filter-panel{display:none;align-items:end;flex-wrap:wrap;gap:10px;margin-top:10px;padding:14px;border:1px solid #e0e2ed;border-radius:14px;background:#fff;box-shadow:0 8px 20px rgba(54,58,120,.06)}.crm-filter-panel.is-open{display:flex}.crm-filter-panel select{height:40px;min-width:180px;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:#fff}.crm-filter-panel label{display:grid;gap:5px;color:var(--muted);font-size:12px}.crm-filter-panel input{height:40px;padding:0 10px;border:1px solid var(--line);border-radius:9px}
 .chat-enterprise-select{min-height:42px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff}.chat-card{display:grid;grid-template-rows:1fr auto;min-height:62vh;padding:18px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#f8f8ff,#fff);box-shadow:0 10px 30px rgba(45,48,94,.08)}.chat-messages{display:grid;align-content:start;gap:10px;max-height:58vh;overflow:auto;padding:8px}.chat-message{max-width:72%;padding:11px 14px;border:1px solid #e0e2ed;border-radius:14px 14px 14px 4px;background:#fff}.chat-message.mine{justify-self:end;border-color:#c9c8ff;border-radius:14px 14px 4px 14px;background:#f0efff}.chat-message b{display:block}.chat-message small{display:block;color:var(--muted);font-size:11px}.chat-message p{margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere}.chat-message a{display:inline-block;margin-top:5px;color:var(--brand);overflow-wrap:anywhere}.chat-attach-row{display:flex;gap:10px;align-items:end;margin-top:14px}.chat-attach-row textarea{flex:1;min-height:58px;resize:vertical;padding:12px;border:1px solid var(--line);border-radius:12px}.chat-attach-row input[type=file]{max-width:180px}.chat-attach-row button{min-height:58px}.chat-attachment{padding:6px 0;font-size:12px}
 .chat-fab{position:fixed;left:22px;bottom:24px;z-index:20;width:56px;height:56px;display:grid;place-items:center;border:0;border-radius:50%;background:#19b7a5;color:#fff;box-shadow:0 10px 25px rgba(25,183,165,.35);cursor:pointer}.chat-fab span{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;display:grid;place-items:center;padding:0 5px;border:2px solid #fff;border-radius:99px;background:#e05276;color:#fff;font-size:10px;font-weight:700}
 .enterprise-edit-list{display:grid;gap:10px;max-height:48vh;overflow:auto}.enterprise-edit-row{display:flex;gap:8px}.enterprise-edit-row input,.new-enterprise-form input{flex:1;min-height:40px;padding:0 10px;border:1px solid var(--line);border-radius:9px}.enterprise-edit-row button,.new-enterprise-form button{min-height:40px}.new-enterprise-form{display:flex;gap:8px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}

/* Yandex Rent workspace */
.yr-page{--yr-ink:#172033;--yr-muted:#7d8798;--yr-line:#e7eaf0;--yr-purple:#655cf6;--yr-purple-soft:#f0efff;max-width:1680px;margin:0 auto;color:var(--yr-ink)}
.yr-hero{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:32px;min-height:216px;padding:34px 38px;overflow:hidden;border-radius:28px;background:radial-gradient(circle at 78% 15%,rgba(255,255,255,.19),transparent 26%),radial-gradient(circle at 0 100%,rgba(255,205,45,.15),transparent 32%),linear-gradient(118deg,#181633 0%,#292561 48%,#655cf6 100%);color:#fff;box-shadow:0 24px 55px rgba(38,34,99,.2)}
.yr-hero:after{content:"";position:absolute;width:300px;height:300px;right:-80px;bottom:-180px;border:1px solid #ffffff2c;border-radius:50%;box-shadow:0 0 0 42px #ffffff0b,0 0 0 85px #ffffff08}.yr-hero-copy,.yr-hero-state{position:relative;z-index:1}.yr-brand-row{display:flex;align-items:center;gap:10px}.yr-yandex-mark{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:#ffdd2d;color:#181633;font-size:17px;font-weight:900;box-shadow:0 8px 18px #0002}.yr-eyebrow,.yr-section-kicker{text-transform:uppercase;letter-spacing:.105em;font-size:10px;font-weight:800}.yr-eyebrow{color:#d8d6ff}.yr-hero h1{margin:18px 0 7px;font-size:clamp(34px,4vw,52px);line-height:1;letter-spacing:-.045em;font-weight:700}.yr-hero p{max-width:620px;margin:0;color:#d9d8ee;font-size:15px}.yr-hero-state{min-width:280px;display:grid;justify-items:end;gap:8px}.yr-live{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #ffffff24;border-radius:99px;background:#ffffff12;font-size:11px;font-weight:750;backdrop-filter:blur(8px)}.yr-live i{width:8px;height:8px;border-radius:50%;background:#46e7a3;box-shadow:0 0 0 5px #46e7a327}.yr-live.is-alert i{background:#ffb84a;box-shadow:0 0 0 5px #ffb84a24}.yr-hero-state small{color:#c7c5df;font-size:11px}.yr-sync{min-height:38px;padding:0 14px;border:1px solid #ffffff36;border-radius:10px;background:#fff;color:#292561;font-size:12px;font-weight:800}.yr-sync:hover{background:#ffdd2d;border-color:#ffdd2d}.yr-sync:disabled{opacity:.7;cursor:wait}
.yr-nav{display:flex;gap:4px;margin:18px 0;padding:5px;border:1px solid var(--yr-line);border-radius:16px;background:#fff;box-shadow:0 8px 28px #25283c0a;overflow-x:auto}.yr-nav button{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:0;border-radius:11px;background:transparent;color:#717b8f;font-size:13px;font-weight:700;white-space:nowrap}.yr-nav button span{font-size:16px}.yr-nav button b{padding:2px 7px;border-radius:99px;background:#eff1f5;font-size:10px}.yr-nav button:hover{background:#f7f7fb;color:var(--yr-ink)}.yr-nav button.active{background:var(--yr-purple-soft);color:var(--yr-purple)}.yr-nav button.active b{background:#fff;color:var(--yr-purple)}
.yr-overview,.yr-workspace{animation:yr-rise .28s ease-out}.yr-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.yr-kpi{display:flex;align-items:flex-start;gap:11px;min-width:0;padding:17px;border:1px solid var(--yr-line);border-radius:18px;background:#fff;box-shadow:0 8px 26px #2736650a}.yr-kpi-icon{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;font-weight:900}.yr-kpi small,.yr-kpi strong,.yr-kpi span{display:block}.yr-kpi small{color:var(--yr-muted);font-size:10px;font-weight:700}.yr-kpi strong{margin:5px 0 3px;font-size:25px;line-height:1;font-weight:720;letter-spacing:-.035em}.yr-kpi span{color:#a1a8b6;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yr-kpi.violet .yr-kpi-icon{background:#efedff;color:#655cf6}.yr-kpi.green .yr-kpi-icon{background:#e7f9f0;color:#18a76b}.yr-kpi.blue .yr-kpi-icon{background:#eaf3ff;color:#377ce6}.yr-kpi.amber .yr-kpi-icon{background:#fff4d8;color:#d48b00}.yr-kpi.rose .yr-kpi-icon{background:#ffeaed;color:#de5269}.yr-kpi.teal .yr-kpi-icon{background:#e4f9f7;color:#169b90}
.yr-overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr);gap:16px;margin-top:16px}.yr-panel{border:1px solid var(--yr-line);border-radius:20px;background:#fff;box-shadow:0 8px 30px #2736650a}.yr-panel>header,.yr-detail-section>header,.yr-event-shell>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid #eef0f4}.yr-panel header h2,.yr-detail-section header h3,.yr-event-shell header h2{margin:4px 0 0;font-size:18px;letter-spacing:-.02em}.yr-section-kicker{color:#9a92ff}.yr-panel header button{min-height:34px;border:0;background:transparent;color:var(--yr-purple);font-size:11px;font-weight:800}.yr-stage-bars{padding:10px 16px 15px}.yr-stage-bars>button{width:100%;display:flex;align-items:center;gap:12px;min-height:46px;padding:6px;border:0;border-radius:11px;background:transparent;text-align:left}.yr-stage-bars>button:hover{background:#f8f8fc}.yr-stage-index{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;font-size:9px;font-weight:900}.yr-stage-index.violet,.yr-stage-index.purple{background:#eeedff;color:#655cf6}.yr-stage-index.blue,.yr-stage-index.indigo{background:#eaf3ff;color:#3679db}.yr-stage-index.cyan{background:#e3f9fb;color:#149bab}.yr-stage-index.amber,.yr-stage-index.orange{background:#fff3d9;color:#cb8100}.yr-stage-index.teal,.yr-stage-index.green,.yr-stage-index.lime,.yr-stage-index.emerald{background:#e6f8ef;color:#169d63}.yr-stage-index.slate{background:#edf0f4;color:#687386}.yr-stage-index.rose{background:#ffeaed;color:#d94d65}.yr-stage-copy{display:grid;grid-template-columns:minmax(150px,1fr) minmax(80px,1.3fr);align-items:center;gap:14px;flex:1;min-width:0}.yr-stage-copy b{font-size:11px;font-weight:700}.yr-stage-copy i{height:6px;overflow:hidden;border-radius:99px;background:#eff1f5}.yr-stage-copy em{display:block;height:100%;min-width:2px;border-radius:inherit;background:linear-gradient(90deg,#655cf6,#9791ff)}.yr-stage-bars>button>strong{width:30px;text-align:right;font-size:12px}.yr-focus-list{padding:10px 15px}.yr-focus-list>button{width:100%;display:flex;align-items:center;gap:11px;min-height:62px;padding:9px 5px;border:0;border-bottom:1px solid #f0f1f5;background:transparent;text-align:left}.yr-focus-list>button>i{width:33px;height:33px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;font-style:normal;font-weight:900}.yr-focus-list i.rose{background:#ffeaed;color:#de5269}.yr-focus-list i.slate{background:#edf0f4;color:#697486}.yr-focus-list i.amber{background:#fff3d9;color:#c98200}.yr-focus-list i.green{background:#e6f8ef;color:#169d63}.yr-focus-list span{flex:1}.yr-focus-list b,.yr-focus-list small{display:block}.yr-focus-list b{font-size:12px}.yr-focus-list small{margin-top:3px;color:var(--yr-muted);font-size:9px}.yr-focus-list em{color:#adb3bf}.yr-sync-card{display:flex;align-items:flex-start;gap:12px;margin:5px 16px 16px;padding:15px;border-radius:14px;background:linear-gradient(135deg,#f0efff,#f7f7ff)}.yr-sync-card b,.yr-sync-card small{display:block}.yr-sync-card b{font-size:11px}.yr-sync-card small{margin-top:4px;color:#7b779d;font-size:9px;line-height:1.45}.yr-pulse{width:10px;height:10px;flex:0 0 auto;margin-top:2px;border-radius:50%;background:#35ce8b;box-shadow:0 0 0 5px #35ce8b21}.yr-activity{margin-top:16px}.yr-activity>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}.yr-activity>div>button{display:flex;align-items:center;gap:10px;min-height:80px;padding:14px 18px;border:0;border-right:1px solid #eef0f4;background:transparent;text-align:left}.yr-activity>div>button:last-child{border-right:0}.yr-activity button>i{width:9px;height:34px;flex:0 0 auto;border-radius:9px;background:#655cf6}.yr-activity button>i.applications{background:#23b77c}.yr-activity button>i.views{background:#4184e9}.yr-activity button>i.status{background:#f2a735}.yr-activity button span{flex:1;min-width:0}.yr-activity button b,.yr-activity button small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yr-activity button b{font-size:10px}.yr-activity button small{margin-top:4px;color:var(--yr-muted);font-size:9px}.yr-activity button em{color:#b2b8c4}
.yr-toolbar{display:flex;align-items:center;gap:9px;margin-bottom:14px;padding:10px;border:1px solid var(--yr-line);border-radius:16px;background:#fff;box-shadow:0 8px 28px #25283c0a}.yr-search{display:flex;align-items:center;gap:8px;flex:1;min-width:230px;height:42px;padding:0 12px;border:1px solid #e0e3e9;border-radius:11px;background:#fafbfc}.yr-search span{font-size:22px;color:#929aaa}.yr-search input{width:100%;min-width:0;min-height:36px;border:0;background:transparent;box-shadow:none!important;outline:0;font-size:12px}.yr-segments{display:flex;gap:3px;padding:3px;border-radius:10px;background:#f1f2f5}.yr-segments button{min-height:34px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#788194;font-size:10px;font-weight:750;white-space:nowrap}.yr-segments button.active{background:#fff;color:var(--yr-purple);box-shadow:0 2px 8px #27366512}.yr-toolbar select{min-height:42px;max-width:180px;border-color:#e0e3e9;font-size:11px}.yr-export{height:42px;display:flex;align-items:center;padding:0 13px;border:1px solid #e0e3e9;border-radius:11px;color:#576176;text-decoration:none;font-size:11px;font-weight:750;white-space:nowrap}.yr-export:hover{border-color:#bdb9ff;background:#f0efff;color:#655cf6}
.yr-kanban{display:grid;grid-auto-flow:column;grid-auto-columns:300px;gap:12px;overflow-x:auto;padding:2px 2px 20px;scroll-snap-type:x proximity}.yr-kanban::-webkit-scrollbar{height:9px}.yr-kanban::-webkit-scrollbar-thumb{border-radius:99px;background:#d8dbe2}.yr-column{min-height:600px;padding:10px;border:1px solid var(--yr-line);border-radius:18px;background:#f3f4f7;scroll-snap-align:start;transition:.18s}.yr-column.drag-over{outline:2px dashed #655cf6;outline-offset:-4px;background:#edebff}.yr-column>header{display:flex;align-items:center;gap:9px;padding:4px 3px 12px}.yr-column>header>div{min-width:0;flex:1}.yr-column>header b,.yr-column>header small{display:block}.yr-column>header b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yr-column>header small{margin-top:3px;color:var(--yr-muted);font-size:9px}.yr-column>header>strong{min-width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#fff;color:#717b8f;font-size:10px}.yr-column-list{display:grid;align-content:start;gap:9px}.yr-column-empty{min-height:100px;display:grid;place-items:center;padding:16px;border:1px dashed #d3d7e0;border-radius:13px;color:#a2a9b6;text-align:center;font-size:10px}.yr-flat-card{position:relative;padding:14px;border:1px solid #e4e6eb;border-radius:15px;background:#fff;box-shadow:0 5px 18px #2736650a;cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s}.yr-flat-card:hover{transform:translateY(-2px);border-color:#bebaff;box-shadow:0 13px 28px #34346a18}.yr-flat-card.dragging{opacity:.45}.yr-flat-card:before{content:"";position:absolute;left:0;top:17px;width:3px;height:32px;border-radius:0 5px 5px 0;background:#a4a9b4}.yr-flat-card.success:before{background:#22bb7c}.yr-flat-card.info:before{background:#4087eb}.yr-flat-card.warning:before{background:#efa82c}.yr-flat-card.danger:before{background:#e45b71}.yr-flat-card.removed:before{background:#8d96a6}.yr-card-top{display:flex;align-items:center;justify-content:space-between}.yr-card-state{display:flex;align-items:center;gap:6px;color:#7d8697;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}.yr-card-state i{width:6px;height:6px;border-radius:50%;background:#a4a9b4}.yr-flat-card.success .yr-card-state{color:#169960}.yr-flat-card.success .yr-card-state i{background:#22bb7c}.yr-flat-card.info .yr-card-state{color:#3476d5}.yr-flat-card.info .yr-card-state i{background:#4087eb}.yr-flat-card.warning .yr-card-state,.yr-flat-card.danger .yr-card-state{color:#c87900}.yr-flat-card.warning .yr-card-state i,.yr-flat-card.danger .yr-card-state i{background:#efa82c}.yr-card-menu{min-height:24px;padding:0;border:0;background:transparent;color:#9ca3af;letter-spacing:1px}.yr-flat-card h3{min-height:34px;margin:10px 0 12px;font-size:13px;line-height:1.3;letter-spacing:-.01em}.yr-owner{display:flex;align-items:center;gap:8px;padding-bottom:11px;border-bottom:1px solid #f0f1f4}.yr-owner>span{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;background:#f0efff;color:#655cf6;font-size:10px;font-weight:800}.yr-owner b,.yr-owner small{display:block}.yr-owner b{font-size:10px}.yr-owner small{margin-top:2px;color:var(--yr-muted);font-size:9px}.yr-card-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:11px 0}.yr-card-metrics div{position:relative;padding:7px;border-radius:9px;background:#f7f8fa}.yr-card-metrics small,.yr-card-metrics b{display:block}.yr-card-metrics small{color:#9098a7;font-size:7px;text-transform:uppercase;font-weight:800}.yr-card-metrics b{margin-top:4px;font-size:12px}.yr-card-metrics em{position:absolute;right:5px;top:5px;color:#1ba66a;font-size:7px;font-weight:900}.yr-flat-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.yr-flat-card footer>span{display:flex;align-items:center;gap:5px;min-width:0;color:#6d7585;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yr-flat-card footer>span i{width:18px;height:18px;display:grid;place-items:center;flex:0 0 auto;border-radius:6px;background:#e9ecf2;font-style:normal;font-weight:800}.yr-flat-card footer small{color:#9ba2af;font-size:7px}.yr-warning{margin-top:9px;padding:7px 8px;border-radius:8px;background:#fff4dd;color:#a76a00;font-size:8px;font-weight:700}
.yr-table-shell{overflow:auto;border:1px solid var(--yr-line);border-radius:18px;background:#fff;box-shadow:0 9px 30px #2736650a}.yr-table{width:100%;min-width:1100px;border-collapse:collapse}.yr-table th{position:sticky;top:0;z-index:1;padding:12px 13px;border-bottom:1px solid var(--yr-line);background:#f7f8fa;color:#8a93a4;font-size:8px;text-align:left;text-transform:uppercase;letter-spacing:.07em}.yr-table td{padding:13px;border-bottom:1px solid #f0f1f4;color:#566074;font-size:10px;vertical-align:middle}.yr-table tr:hover td{background:#fafaff}.yr-table td>b,.yr-table td>small{display:block}.yr-table td>b{color:#283247;font-size:11px}.yr-table td>small{max-width:290px;margin-top:4px;color:#959dab;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yr-table input[type=checkbox]{width:16px;height:16px;min-height:16px;accent-color:#655cf6}.yr-stage-pill{display:inline-flex;padding:5px 7px;border-radius:7px;background:#f0efff;color:#655cf6;font-size:9px;font-weight:800}.yr-publication{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:99px;background:#f0f2f5;color:#788294;font-size:8px;font-weight:800}.yr-publication i{width:6px;height:6px;border-radius:50%;background:#939ba8}.yr-publication.online{background:#e7f8ef;color:#158d58}.yr-publication.online i{background:#23b778;box-shadow:0 0 0 3px #23b77820}.yr-delta{margin-left:5px;color:#3477d9;font-size:8px;font-style:normal;font-weight:900}.yr-delta.success{color:#15945d}.yr-row-open{min-height:28px;width:30px;padding:0;border:1px solid #e2e5ea;border-radius:8px;background:#fff;color:#655cf6}.yr-bulk{position:fixed;z-index:35;left:50%;bottom:25px;transform:translateX(-50%);display:flex;align-items:center;gap:9px;min-width:min(720px,calc(100vw - 30px));padding:10px 12px;border:1px solid #403b8f;border-radius:15px;background:#201e46;color:#fff;box-shadow:0 20px 55px #17152f55}.yr-bulk b{padding:0 8px;font-size:11px;white-space:nowrap}.yr-bulk select{min-height:38px;flex:1;border:1px solid #ffffff24;background:#ffffff12;color:#fff;font-size:10px}.yr-bulk select option{color:#172033}.yr-bulk button{min-height:38px;padding:0 13px;border:0;border-radius:9px;background:#ffdd2d;color:#201e46;font-size:10px;font-weight:900}.yr-bulk .yr-bulk-close{width:38px;padding:0;background:#ffffff12;color:#fff;font-size:18px}
.yr-owner-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}.yr-owner-card{padding:18px;border:1px solid var(--yr-line);border-radius:17px;background:#fff;box-shadow:0 7px 24px #2736650a}.yr-owner-card>div:first-child{display:flex;align-items:center;gap:11px}.yr-owner-card>div:first-child>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(135deg,#655cf6,#958fff);color:#fff;font-weight:800}.yr-owner-card h3{margin:0 0 4px;font-size:14px}.yr-owner-card a{color:#655cf6;font-size:10px;text-decoration:none}.yr-owner-card dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.yr-owner-card dl>div{padding:10px;border-radius:10px;background:#f7f8fa}.yr-owner-card dt{color:#929aa9;font-size:8px}.yr-owner-card dd{margin:5px 0 0;font-size:11px;font-weight:800}.yr-owner-card footer{padding-top:12px;border-top:1px solid #eef0f4;color:#8a93a3;font-size:9px}.yr-event-shell{border:1px solid var(--yr-line);border-radius:19px;background:#fff;box-shadow:0 8px 28px #2736650a}.yr-event-legend{display:flex;gap:12px;color:#818a9a;font-size:9px}.yr-event-legend span{display:flex;align-items:center;gap:5px}.yr-event-legend i,.yr-timeline>button>i,.yr-detail-timeline article>i{width:8px;height:8px;border-radius:50%}.yr-event-legend i.auto,.yr-timeline i.auto,.yr-detail-timeline i.auto{background:#4389eb;box-shadow:0 0 0 4px #4389eb18}.yr-event-legend i.manual,.yr-timeline i.manual,.yr-detail-timeline i.manual{background:#655cf6;box-shadow:0 0 0 4px #655cf618}.yr-timeline{padding:8px 20px 18px}.yr-timeline>button{position:relative;width:100%;display:grid;grid-template-columns:120px 18px 1fr 20px;align-items:center;gap:12px;min-height:63px;padding:8px 0;border:0;border-bottom:1px solid #eef0f4;background:transparent;text-align:left}.yr-timeline>button:before{content:"";position:absolute;left:141px;top:0;bottom:0;width:1px;background:#e8eaf0}.yr-timeline time{color:#8992a3;font-size:9px}.yr-timeline>button>i{position:relative;z-index:1}.yr-timeline b,.yr-timeline span,.yr-timeline small{display:block}.yr-timeline b{font-size:11px}.yr-timeline span{margin-top:3px;color:#697386;font-size:9px}.yr-timeline small{margin-top:4px;color:#a0a7b4;font-size:8px}.yr-timeline em{color:#aab1bd}.yr-loading-inline,.yr-empty{min-height:240px;display:grid;place-content:center;text-align:center;color:#939bab}.yr-empty b{color:#4d5668;font-size:13px}.yr-empty p{margin:6px 0 0;font-size:10px}.yr-empty-line{padding:20px;color:#8d95a5;font-size:10px}
.yr-loading,.yr-error{min-height:72vh;display:grid;place-items:center;text-align:center}.yr-loading>div{display:grid;justify-items:center}.yr-orbit{width:58px;height:58px;margin-bottom:18px;border:3px solid #e7e5ff;border-top-color:#655cf6;border-radius:50%;animation:yr-spin .8s linear infinite}.yr-loading b{font-size:18px}.yr-loading p,.yr-error p{color:#818a9a}.yr-error>span{width:54px;height:54px;display:grid;place-items:center;margin:auto;border-radius:16px;background:#ffeaed;color:#dc5068;font-size:25px;font-weight:900}.yr-error h1{margin:15px 0 5px}
.yr-detail-layer{position:fixed;z-index:100;inset:0}.yr-detail-scrim{position:absolute;inset:0;background:#11132680;backdrop-filter:blur(5px)}.yr-detail{position:absolute;right:0;top:0;bottom:0;width:min(850px,94vw);overflow:auto;background:#f6f7f9;box-shadow:-25px 0 70px #10122638;animation:yr-slide .22s ease-out}.yr-detail-head{position:sticky;z-index:4;top:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 23px;border-bottom:1px solid #e6e8ee;background:#fff}.yr-detail-address{display:flex;align-items:center;gap:12px;min-width:0}.yr-detail-address small{display:block;color:#8b94a5;font-size:8px}.yr-detail-address h2{margin:4px 0 0;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.yr-detail-head>button{width:38px;min-height:38px;border:1px solid #e1e4e9;border-radius:10px;background:#fff;color:#6c7586;font-size:20px}.yr-detail-summary{display:flex;align-items:center;gap:10px;padding:12px 23px;border-bottom:1px solid #e7e9ee;background:#fff}.yr-detail-summary select{min-height:34px;border-color:#dbd9ff;background:#f0efff;color:#5850db;font-size:9px;font-weight:800}.yr-detail-summary>span:last-child{margin-left:auto;color:#8c94a3;font-size:9px}.yr-detail-tabs{position:sticky;z-index:3;top:77px;display:flex;gap:2px;padding:5px 19px;border-bottom:1px solid #e7e9ee;background:#fff;overflow-x:auto}.yr-detail-tabs button{min-height:39px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#747e90;font-size:9px;font-weight:750;white-space:nowrap}.yr-detail-tabs button.active{background:#f0efff;color:#655cf6}.yr-detail-tabs b{padding:2px 5px;border-radius:99px;background:#655cf6;color:#fff;font-size:7px}.yr-detail-body{padding:18px 22px 40px}.yr-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.yr-info-card,.yr-chart-card,.yr-detail-section{padding:19px;border:1px solid #e5e8ed;border-radius:17px;background:#fff;box-shadow:0 7px 24px #2736650a}.yr-info-card h3{margin:0 0 15px;font-size:14px}.yr-person{display:flex;align-items:center;gap:10px;margin-bottom:15px}.yr-person>span{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#f0efff;color:#655cf6;font-weight:800}.yr-person b,.yr-person a{display:block}.yr-person b{font-size:12px}.yr-person a{margin-top:4px;color:#655cf6;font-size:10px;text-decoration:none}.yr-info-card dl{margin:0}.yr-info-card dl>div{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-top:1px solid #eef0f4}.yr-info-card dt{color:#8f97a6;font-size:9px}.yr-info-card dd{margin:0;font-size:10px;font-weight:700;text-align:right;overflow-wrap:anywhere}.yr-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:8px!important}.yr-quick-actions{display:flex;gap:8px;margin-top:13px}.yr-quick-actions a{flex:1;display:grid;place-items:center;min-height:43px;padding:0 10px;border:1px solid #dfddeb;border-radius:11px;background:#fff;color:#5952d8;text-decoration:none;font-size:9px;font-weight:800;text-align:center}.yr-quick-actions a:hover{border-color:#bdb9ff;background:#f0efff}.yr-publication-card>.yr-publication{margin-bottom:14px}.yr-link-list{display:grid;gap:8px}.yr-link-list a{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #e8eaf0;border-radius:11px;color:#273144;text-decoration:none}.yr-link-list a>span{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#f0efff;color:#655cf6;font-weight:900}.yr-link-list a div{flex:1}.yr-link-list b,.yr-link-list small{display:block}.yr-link-list b{font-size:10px}.yr-link-list small{margin-top:3px;color:#8f97a7;font-size:8px}.yr-link-list em{color:#9da4b1}.yr-stat-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:13px}.yr-stat-kpis article{padding:16px;border:1px solid #e5e8ed;border-radius:15px;background:#fff}.yr-stat-kpis small,.yr-stat-kpis strong,.yr-stat-kpis span{display:block}.yr-stat-kpis small{color:#8f97a7;font-size:9px}.yr-stat-kpis strong{margin:7px 0 5px;font-size:24px}.yr-stat-kpis span{color:#8d95a4;font-size:8px}.yr-chart-card{margin-top:13px}.yr-chart-card.blue{color:#4184e9}.yr-chart-card.green{color:#20ae70}.yr-chart-card header{display:flex;align-items:flex-end;justify-content:space-between}.yr-chart-card header small,.yr-chart-card header h3{display:block;margin:0}.yr-chart-card header small{color:#8e96a6;font-size:8px}.yr-chart-card header h3{margin-top:3px;color:#273144;font-size:13px}.yr-chart-card header strong{font-size:20px}.yr-spark{width:100%;height:190px;margin-top:10px;overflow:visible}.yr-chart-empty{height:160px;display:grid;place-items:center;color:#929aaa;font-size:9px}.yr-detail-section{padding:0}.yr-detail-section>header{padding:17px 19px}.yr-count{min-width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:#f0efff;color:#655cf6;font-size:10px;font-weight:800}.yr-related-list,.yr-task-list,.yr-comment-list{padding:10px 17px 18px}.yr-related-list article,.yr-comment-list article{display:flex;align-items:flex-start;gap:10px;padding:12px 2px;border-bottom:1px solid #eef0f4}.yr-related-list article>span,.yr-comment-list article>span{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#f0efff;color:#655cf6;font-weight:800}.yr-related-list article>div,.yr-comment-list article>div{flex:1}.yr-related-list b,.yr-related-list small,.yr-comment-list b,.yr-comment-list small{display:block}.yr-related-list b,.yr-comment-list b{font-size:10px}.yr-related-list small,.yr-comment-list small{margin-top:4px;color:#9199a7;font-size:8px}.yr-related-list em{padding:5px 7px;border-radius:7px;background:#f5f6f8;color:#6e7788;font-size:8px;font-style:normal}.yr-inline-form{display:grid;grid-template-columns:1fr 180px 150px auto;gap:7px;padding:12px 18px;background:#f8f9fb}.yr-inline-form input,.yr-inline-form select{min-height:38px;font-size:9px}.yr-task-list article{display:flex;align-items:flex-start;gap:10px;padding:12px 2px;border-bottom:1px solid #eef0f4}.yr-task-list article>i{width:13px;height:13px;flex:0 0 auto;margin-top:2px;border:2px solid #7d75f6;border-radius:4px}.yr-task-list article>div{flex:1}.yr-task-list b,.yr-task-list small{display:block}.yr-task-list b{font-size:10px}.yr-task-list small{margin-top:4px;color:#9199a7;font-size:8px}.yr-task-list p{margin:6px 0 0;color:#687285;font-size:9px}.yr-task-list article>span{padding:5px 7px;border-radius:7px;background:#fff4da;color:#a46a00;font-size:8px}.yr-detail-timeline{padding:10px 19px 20px}.yr-detail-timeline article{position:relative;display:grid;grid-template-columns:110px 14px 1fr;align-items:center;gap:10px;min-height:52px}.yr-detail-timeline article:before{content:"";position:absolute;left:126px;top:0;bottom:0;width:1px;background:#e8eaf0}.yr-detail-timeline time{color:#8e96a5;font-size:8px}.yr-detail-timeline article>i{position:relative;z-index:1}.yr-detail-timeline b,.yr-detail-timeline small{display:block}.yr-detail-timeline b{font-size:10px}.yr-detail-timeline small{margin-top:3px;color:#969eac;font-size:8px}.yr-comment-form{display:flex;gap:8px;padding:14px 17px;background:#f8f9fb}.yr-comment-form textarea{flex:1;min-height:70px;font-size:10px}.yr-comment-form button{align-self:flex-end}.yr-comment-list p{margin:7px 0 0;color:#525d70;font-size:10px;line-height:1.5}
@keyframes yr-spin{to{transform:rotate(360deg)}}@keyframes yr-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes yr-slide{from{transform:translateX(50px);opacity:.5}to{transform:none;opacity:1}}
@media(max-width:1350px){.yr-kpis{grid-template-columns:repeat(3,1fr)}.yr-segments button:nth-child(n+4){display:none}.yr-activity>div{grid-template-columns:repeat(2,1fr)}.yr-activity>div>button:nth-child(2){border-right:0}}
@media(max-width:1000px){.yr-hero{min-height:190px;padding:28px}.yr-overview-grid{grid-template-columns:1fr}.yr-toolbar{flex-wrap:wrap}.yr-search{order:0;width:100%;flex-basis:100%}.yr-segments{flex:1;overflow:auto}.yr-stage-copy{grid-template-columns:minmax(150px,1fr) 1fr}.yr-detail-grid{grid-template-columns:1fr}.yr-inline-form{grid-template-columns:1fr 1fr}.yr-inline-form button{grid-column:1/-1}.yr-stat-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.content:has(.yr-page){padding:12px 8px 90px}.yr-page{width:100%}.yr-hero{min-height:260px;align-items:flex-start;flex-direction:column;padding:23px;border-radius:21px}.yr-hero h1{font-size:35px}.yr-hero-state{width:100%;min-width:0;align-items:start;justify-items:start}.yr-nav{margin:10px 0}.yr-nav button{min-height:46px;padding:0 12px}.yr-kpis{grid-template-columns:repeat(2,1fr);gap:8px}.yr-kpi{padding:13px}.yr-kpi:nth-child(n+5){display:none}.yr-overview-grid{gap:10px;margin-top:10px}.yr-panel>header{padding:16px}.yr-stage-bars{padding:8px}.yr-stage-copy{grid-template-columns:1fr}.yr-stage-copy i{display:none}.yr-activity{display:none}.yr-toolbar{padding:8px}.yr-segments{width:100%;order:2}.yr-toolbar select{flex:1}.yr-kanban{grid-auto-columns:86vw}.yr-column{min-height:520px}.yr-bulk{flex-wrap:wrap}.yr-bulk b{width:100%}.yr-bulk select{min-width:150px}.yr-detail{width:100vw}.yr-detail-head{padding:14px}.yr-detail-tabs{top:67px;padding-left:10px}.yr-detail-summary{padding:10px 14px;flex-wrap:wrap}.yr-detail-summary>span:last-child{display:none}.yr-detail-body{padding:12px 10px 30px}.yr-quick-actions{flex-direction:column}.yr-stat-kpis{grid-template-columns:1fr}.yr-inline-form{grid-template-columns:1fr}.yr-inline-form button{grid-column:auto}.yr-timeline>button{grid-template-columns:78px 14px 1fr}.yr-timeline>button:before{left:99px}.yr-owner-grid{grid-template-columns:1fr}}

.yr-check{display:flex;align-items:center;gap:14px;margin:12px 0;padding:14px 18px;border:1px solid #dfe3ea;border-radius:16px;background:#fff;box-shadow:0 7px 22px #2736650a}.yr-check-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#eef0ff;color:#655cf6;font-weight:900}.yr-check.running .yr-check-icon span{width:17px;height:17px;border:2px solid #bcb8ff;border-top-color:#655cf6;border-radius:50%;animation:yr-spin .8s linear infinite}.yr-check.success .yr-check-icon{background:#e7f8ef;color:#15945d}.yr-check.warning .yr-check-icon{background:#fff4da;color:#a46a00}.yr-check.failed .yr-check-icon{background:#ffeaed;color:#c94860}.yr-check-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px 20px;min-width:0;flex:1}.yr-check-copy b,.yr-check-copy small{display:block}.yr-check-copy b{font-size:12px}.yr-check-copy small{margin-top:3px;color:#8790a1;font-size:9px}.yr-check-copy strong{font-size:10px;color:#566074}.yr-check-copy>i{grid-column:1/-1;height:5px;overflow:hidden;border-radius:99px;background:#eceef3}.yr-check-copy>i>em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#655cf6,#9b86ff);transition:width .35s ease}.yr-check.success .yr-check-copy>i>em{background:#22b879}.yr-check.warning .yr-check-copy>i>em{background:#efa82c}.yr-check.failed .yr-check-copy>i>em{background:#dc5068}
@media(max-width:700px){.yr-check{align-items:flex-start;padding:13px}.yr-check-copy{grid-template-columns:1fr}.yr-check-copy>i{grid-column:1}.yr-check-copy strong{order:2}.yr-check-copy>i{order:3}}

.crm-pipeline-picker{margin:18px 0;padding:18px;border:1px solid #e2e5ec;border-radius:18px;background:linear-gradient(135deg,#fff,#f8f8ff);box-shadow:0 8px 26px rgba(40,44,78,.06)}.crm-pipeline-picker>header{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:13px}.crm-pipeline-picker>header span{color:#655cf6;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.crm-pipeline-picker>header h2{margin:4px 0 0;font-size:19px}.crm-pipeline-picker>header>small{color:#7d8697;font-size:11px}.crm-pipeline-options{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 6px}.crm-pipeline-options>button{min-width:220px;display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid #e0e3ea;border-radius:14px;background:#fff;color:#293247;text-align:left;box-shadow:0 3px 12px rgba(32,39,70,.04);transition:.16s}.crm-pipeline-options>button:hover{transform:translateY(-1px);border-color:#bbb7ff}.crm-pipeline-options>button.active{border-color:#655cf6;background:#f0efff;box-shadow:0 6px 18px rgba(101,92,246,.13)}.crm-pipeline-options>button>i{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:#eceef3;color:#606a7c;font-style:normal;font-weight:900}.crm-pipeline-options>button.active>i{background:#655cf6;color:#fff}.crm-pipeline-options>button.yandex>i{background:#ffdd2d;color:#1e2230}.crm-pipeline-options>button>span{min-width:0;flex:1}.crm-pipeline-options b,.crm-pipeline-options small{display:block}.crm-pipeline-options b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.crm-pipeline-options small{margin-top:4px;color:#8790a0;font-size:9px;white-space:nowrap}.crm-pipeline-options em{color:#655cf6;font-size:9px;font-style:normal;font-weight:800;white-space:nowrap}
@media(max-width:700px){.crm-pipeline-picker{margin:12px 0;padding:13px}.crm-pipeline-picker>header{align-items:flex-start;flex-direction:column;gap:4px}.crm-pipeline-picker>header>small{display:none}.crm-pipeline-options>button{min-width:195px}}

/* Bulatkin Rent / Control Room 2026 — inspired by modern open-source CRM patterns */
.content:has(.yr-page){background:
  radial-gradient(circle at 16% 0,rgba(96,72,255,.08),transparent 26rem),
  linear-gradient(#f4f5f8,#f7f8fa 28rem)}
.yr-page{--yr-ink:#11131a;--yr-muted:#777f90;--yr-line:#e4e6eb;--yr-purple:#6c5cff;--yr-purple-soft:#eeebff;max-width:1780px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.yr-hero{display:block;min-height:410px;padding:0;border:1px solid #ffffff1a;border-radius:32px;background:
  radial-gradient(circle at 80% 32%,rgba(111,91,255,.5),transparent 24%),
  radial-gradient(circle at 58% 100%,rgba(29,206,174,.18),transparent 30%),
  linear-gradient(125deg,#0b0d13 0%,#13121f 48%,#252050 100%);box-shadow:0 34px 90px rgba(18,17,38,.24)}
.yr-hero:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to right,#0008,transparent 84%)}
.yr-hero:after{width:390px;height:390px;right:4%;bottom:-245px;border-color:#ffffff20;box-shadow:0 0 0 58px #ffffff08,0 0 0 116px #ffffff05}
.yr-hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:center;gap:54px;padding:46px 52px 34px}
.yr-hero-copy{min-width:0}.yr-brand-row{gap:12px}.yr-yandex-mark{width:38px;height:38px;border-radius:13px;background:#ffdf33;color:#11131a;box-shadow:0 10px 30px #0005;font-size:19px}.yr-eyebrow{color:#aaa4d6;font-size:10px;letter-spacing:.17em}
.yr-hero h1{max-width:800px;margin:25px 0 13px;font-size:clamp(44px,5vw,74px);line-height:.94;letter-spacing:-.065em;font-weight:760}.yr-hero h1 span{display:block;color:#a99fff}.yr-hero p{max-width:700px;color:#adb0bf;font-size:16px;line-height:1.55}
.yr-hero-facts{display:flex;gap:12px;margin-top:30px}.yr-hero-facts>div{min-width:132px;padding:13px 15px;border:1px solid #ffffff13;border-radius:15px;background:#ffffff09;backdrop-filter:blur(12px)}.yr-hero-facts small,.yr-hero-facts b,.yr-hero-facts span{display:block}.yr-hero-facts small{color:#888b9b;font-size:8px;font-weight:800;letter-spacing:.11em;text-transform:uppercase}.yr-hero-facts b{margin:6px 0 2px;color:#fff;font-size:21px;letter-spacing:-.04em}.yr-hero-facts span{color:#8f92a2;font-size:8px}
.yr-orbit-status{position:relative;width:260px;height:260px;display:grid;place-items:center;justify-self:center}.yr-orbit-status:before,.yr-orbit-status:after,.yr-orbit-status>i{content:"";position:absolute;border-radius:50%}.yr-orbit-status:before{inset:0;border:1px solid #ffffff24;box-shadow:inset 0 0 70px #6c5cff18}.yr-orbit-status:after{inset:25px;border:1px dashed #ffffff30;animation:yr-orbit 24s linear infinite}.yr-orbit-status>i:first-child{inset:52px;border:1px solid #8277ff70;background:radial-gradient(circle,#6658ff30,transparent 68%);box-shadow:0 0 60px #6c5cff35}.yr-orbit-status>i:nth-child(2){width:10px;height:10px;right:34px;top:76px;background:#6fffd0;box-shadow:0 0 0 7px #6fffd01c,0 0 24px #6fffd0;animation:yr-ping 2.2s ease-in-out infinite}.yr-orbit-status>div{position:relative;z-index:2;text-align:center}.yr-orbit-status small,.yr-orbit-status strong,.yr-orbit-status span{display:block}.yr-orbit-status small{color:#8d88b5;font-size:8px;font-weight:900;letter-spacing:.18em}.yr-orbit-status strong{margin:7px 0 2px;color:#fff;font-size:48px;line-height:1;letter-spacing:-.06em}.yr-orbit-status span{color:#aaa6c7;font-size:10px}
.yr-hero-console{position:relative;z-index:3;display:flex;align-items:center;gap:16px;min-height:68px;padding:11px 18px 11px 24px;border-top:1px solid #ffffff12;background:#080a0f7a;backdrop-filter:blur(18px)}.yr-hero-console>.yr-live{border-color:#ffffff14;background:#ffffff09;color:#d9dbe4}.yr-hero-console>small{flex:1;color:#777b8d;font-size:10px}.yr-live i{background:#5fffc2;box-shadow:0 0 0 5px #5fffc21d,0 0 18px #5fffc2}.yr-sync{min-height:44px;padding:0 16px;border:1px solid #ffffff1f;border-radius:13px;background:#f7f7fa;color:#181a22;transition:.18s}.yr-sync b{margin-left:10px}.yr-sync:hover{transform:translateY(-1px);background:#ffdf33;box-shadow:0 10px 24px #0004}
.yr-nav{position:sticky;z-index:16;top:10px;align-items:center;gap:4px;margin:16px 0;padding:7px 8px;border:1px solid #dfe1e8;border-radius:18px;background:#fbfbfddd;box-shadow:0 12px 40px #20243312;backdrop-filter:blur(18px)}.yr-nav-label{padding:0 12px;color:#a0a5b1;font-size:8px;font-weight:900;letter-spacing:.16em}.yr-nav button{min-height:43px;padding:0 15px;border-radius:11px;color:#686f7f;font-size:12px}.yr-nav button span{width:23px;height:23px;display:grid;place-items:center;border-radius:7px;background:#eff0f3;color:#737a89;font-size:13px}.yr-nav button.active{background:#171921;color:#fff;box-shadow:0 8px 20px #14161d26}.yr-nav button.active span{background:#6c5cff;color:#fff}.yr-nav button.active b{background:#343641;color:#fff}.yr-nav-command{margin-left:auto;padding:7px 9px;border:1px solid #e0e2e8;border-radius:8px;background:#fff;color:#8d93a0;font-size:8px;font-style:normal;font-weight:800}
.yr-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:11px}.yr-kpi{position:relative;display:block;min-height:176px;padding:16px 17px 13px;overflow:hidden;border:1px solid #e2e4ea;border-radius:20px;background:#fff;box-shadow:0 12px 35px #22263b0b}.yr-kpi:before{content:"";position:absolute;width:90px;height:90px;right:-40px;top:-44px;border-radius:50%;background:currentColor;opacity:.06}.yr-kpi-top{display:flex;align-items:center;justify-content:space-between}.yr-kpi-top>span{color:#b1b5bf;font-size:13px}.yr-kpi-icon{width:35px;height:35px;border-radius:11px}.yr-kpi-copy{margin-top:15px}.yr-kpi small{font-size:9px;letter-spacing:.025em}.yr-kpi strong{margin:6px 0 4px;font-size:30px;font-weight:760}.yr-kpi span{font-size:8px}.yr-kpi-signal{position:absolute;left:17px;right:17px;bottom:13px;height:23px;display:flex;align-items:end;gap:4px}.yr-kpi-signal em{display:block;width:100%;border-radius:3px 3px 1px 1px;background:currentColor;opacity:.16}.yr-kpi-signal em:nth-child(1){height:24%}.yr-kpi-signal em:nth-child(2){height:46%}.yr-kpi-signal em:nth-child(3){height:38%}.yr-kpi-signal em:nth-child(4){height:72%}.yr-kpi-signal em:nth-child(5){height:58%}.yr-kpi-signal em:nth-child(6){height:92%;opacity:.34}.yr-kpi.violet{color:#6c5cff}.yr-kpi.green{color:#0ead74}.yr-kpi.blue{color:#2d76e8}.yr-kpi.amber{color:#d98c00}.yr-kpi.rose{color:#df4d6d}.yr-kpi.teal{color:#049d9a}.yr-kpi:first-child{border-color:#242632;background:linear-gradient(145deg,#171921,#26293a);color:#8e82ff;box-shadow:0 18px 40px #17192125}.yr-kpi:first-child small,.yr-kpi:first-child span{color:#9295a5}.yr-kpi:first-child strong{color:#fff}.yr-kpi:first-child .yr-kpi-icon{background:#6c5cff;color:#fff}
.yr-overview-grid{grid-template-columns:minmax(0,1.65fr) minmax(330px,.72fr);gap:13px;margin-top:13px}.yr-panel{border-color:#e0e2e8;border-radius:22px;box-shadow:0 14px 40px #23273a0b}.yr-panel>header{padding:21px 23px}.yr-panel header h2{font-size:19px}.yr-section-kicker{color:#7367f8;letter-spacing:.14em}.yr-stage-bars{padding:9px 14px 15px}.yr-stage-bars>button{min-height:50px;border-radius:13px}.yr-stage-bars>button:hover{background:#f4f2ff}.yr-stage-index{border-radius:10px}.yr-stage-copy i{height:7px;background:#eeeef2}.yr-stage-copy em{background:linear-gradient(90deg,#6c5cff,#a99fff);box-shadow:0 0 14px #6c5cff50}.yr-focus{background:linear-gradient(180deg,#171921 0 76px,#fff 76px)}.yr-focus>header{border-color:#ffffff14}.yr-focus header h2{color:#fff}.yr-focus .yr-section-kicker{color:#948aff}.yr-focus-list{padding-top:12px}.yr-focus-list>button{padding:10px 7px}.yr-sync-card{border:1px solid #e4e0ff;background:linear-gradient(135deg,#f1efff,#faf9ff)}.yr-activity{margin-top:13px}.yr-activity>div>button{transition:.16s}.yr-activity>div>button:hover{background:#f7f6ff}.yr-activity button>i{width:5px}
.yr-toolbar{position:sticky;z-index:12;top:75px;gap:8px;margin-bottom:12px;padding:8px;border-color:#dedfe6;border-radius:17px;background:#ffffffdf;box-shadow:0 14px 34px #22263b0d;backdrop-filter:blur(18px)}.yr-search{height:44px;border-color:#e1e2e8;border-radius:11px;background:#f6f7f9}.yr-search:focus-within{border-color:#887eff;background:#fff;box-shadow:0 0 0 3px #6c5cff12}.yr-search kbd{padding:4px 6px;border:1px solid #dfe1e7;border-radius:6px;background:#fff;color:#969ba7;font:700 8px/1 ui-monospace,monospace;white-space:nowrap}.yr-segments{background:#eff0f3}.yr-segments button.active{color:#171921}.yr-toolbar select{border-radius:11px}.yr-export{gap:7px;border:0;background:#171921;color:#fff}.yr-export span{font-size:14px}.yr-export:hover{background:#6c5cff;color:#fff}
.yr-kanban{gap:11px;padding:16px 16px 22px;border:1px solid #242630;border-radius:24px;background:radial-gradient(circle at 20% 0,#34304d,#171921 32%,#111319 100%);box-shadow:0 22px 55px #17192122}.yr-kanban::-webkit-scrollbar-thumb{background:#444754}.yr-column{min-height:640px;padding:9px;border-color:#ffffff13;border-radius:17px;background:#f1f2f5}.yr-column>header{min-height:54px;padding:6px 5px 12px}.yr-column>header b{font-size:12px}.yr-column>header>strong{border:1px solid #e2e3e8}.yr-flat-card{padding:15px;border-color:#e0e2e7;border-radius:15px;box-shadow:0 7px 20px #1d20300c}.yr-flat-card:hover{transform:translateY(-3px) scale(1.006);border-color:#8e84ff;box-shadow:0 16px 34px #26253f20}.yr-flat-card h3{font-size:14px}.yr-owner b{font-size:11px}.yr-card-metrics div{background:#f4f5f7}.yr-card-metrics small{font-size:7px}.yr-card-metrics b{font-size:13px}.yr-flat-card footer small{font-size:8px}
.yr-table-shell{border-radius:21px;box-shadow:0 16px 45px #24283c0c}.yr-table th{height:46px;background:#171921;color:#a7aab5}.yr-table th:first-child{border-radius:18px 0 0}.yr-table th:last-child{border-radius:0 18px 0 0}.yr-table td{height:64px;font-size:10px}.yr-table tr:hover td{background:#f4f2ff}.yr-stage-pill{background:#eeebff;color:#6255ed}.yr-row-open{border:0;background:#efedff}
.yr-owner-card,.yr-event-shell,.yr-info-card,.yr-chart-card,.yr-detail-section{border-color:#e0e2e8;box-shadow:0 14px 38px #25293d0d}.yr-owner-card{transition:.18s}.yr-owner-card:hover{transform:translateY(-3px);border-color:#a9a2ff;box-shadow:0 20px 44px #28274318}.yr-detail{background:#f4f5f8}.yr-detail-head{background:#171921;color:#fff;border-color:#2a2c36}.yr-detail-address small{color:#888c99}.yr-detail-head>button{border-color:#ffffff1d;background:#ffffff0c;color:#fff}.yr-detail-summary{background:#171921;border-color:#2a2c36}.yr-detail-summary>span:last-child{color:#8f929f}.yr-detail-tabs{top:77px;box-shadow:0 10px 24px #1e22300a}
@keyframes yr-orbit{to{transform:rotate(360deg)}}@keyframes yr-ping{50%{transform:scale(.72);opacity:.55}}
@media(max-width:1200px){.yr-hero-grid{grid-template-columns:1fr 230px;gap:28px}.yr-orbit-status{width:220px;height:220px}.yr-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.yr-hero{min-height:0}.yr-hero-grid{grid-template-columns:1fr;padding:28px 24px 22px}.yr-orbit-status{display:none}.yr-hero h1{font-size:43px}.yr-hero-facts{overflow:auto}.yr-hero-console{align-items:flex-start;flex-wrap:wrap;padding:14px}.yr-hero-console>small{width:100%;flex-basis:100%;order:3}.yr-nav-label,.yr-nav-command{display:none}.yr-nav{top:5px}.yr-toolbar{top:66px}.yr-kpis{grid-template-columns:repeat(2,1fr)}.yr-kpi{min-height:158px}}
@media(max-width:520px){.yr-hero-grid{padding:24px 19px 18px}.yr-hero h1{font-size:37px}.yr-hero-facts>div{min-width:120px}.yr-hero-console .yr-sync{width:100%}.yr-kpis{grid-template-columns:1fr 1fr}.yr-kpi{min-height:145px;padding:13px}.yr-kpi strong{font-size:25px}.yr-kpi-signal{left:13px;right:13px}.yr-nav button{padding:0 10px}.yr-nav button span{display:none}.yr-toolbar{position:relative;top:auto}.yr-search kbd{display:none}}

/* Concise CRM 2026 — information first, restrained high-tech surface */
.yr-page{max-width:1640px}.yr-hero.yr-hero-compact{min-height:0;border-radius:22px;background:radial-gradient(circle at 78% 0,#322d6b 0,transparent 34%),linear-gradient(130deg,#111319,#1a1d29);box-shadow:0 18px 50px rgba(17,19,25,.18)}.yr-hero-compact:after{display:none}.yr-hero-compact .yr-hero-grid{display:block;padding:28px 32px 22px}.yr-hero-compact .yr-hero-copy{max-width:none}.yr-hero-compact h1{margin:15px 0 6px;font-size:42px;line-height:1;letter-spacing:-.045em}.yr-hero-compact p{margin:0;font-size:13px}.yr-hero-compact .yr-brand-row{gap:9px}.yr-hero-compact .yr-yandex-mark{width:32px;height:32px;border-radius:10px;font-size:16px}.yr-hero-compact .yr-hero-facts{position:absolute;right:32px;bottom:22px;margin:0}.yr-hero-compact .yr-hero-facts>div{min-width:105px;padding:10px 13px;border-radius:11px}.yr-hero-compact .yr-hero-facts b{font-size:18px}.yr-hero-compact .yr-hero-console{min-height:56px;padding:8px 14px 8px 24px}.yr-kpis{gap:9px}.yr-kpi{min-height:118px;display:flex;align-items:center;gap:13px;padding:15px;border-radius:16px}.yr-kpi:before,.yr-kpi-signal,.yr-kpi-top>span{display:none}.yr-kpi-icon{width:36px;height:36px;flex:0 0 auto}.yr-kpi-copy{margin:0}.yr-kpi strong{margin:3px 0;font-size:27px}.yr-kpi:first-child{background:#171921}.yr-nav{margin:12px 0;border-radius:14px}.yr-overview-grid,.yr-activity{margin-top:10px}.yr-panel{border-radius:17px}.yr-kanban{border-radius:18px}.yr-column{min-height:560px}

.yr-journal-head{padding:22px 24px 14px!important}.yr-journal-head h2{display:flex;align-items:center;gap:10px;margin:4px 0 0}.yr-journal-head h2 b{padding:4px 8px;border-radius:8px;background:#efedff;color:#655cf6;font-size:11px}.yr-journal-head p{margin:7px 0 0;color:#858c99;font-size:10px}.yr-event-filters{display:flex;gap:7px;padding:0 24px 18px;border-bottom:1px solid #eceef2;overflow:auto}.yr-event-filters button{display:flex;align-items:center;gap:8px;min-height:38px;padding:0 13px;border:1px solid #e2e4e9;border-radius:10px;background:#fff;color:#687080;font-size:10px;font-weight:700;white-space:nowrap}.yr-event-filters button b{padding:3px 6px;border-radius:6px;background:#f1f2f5;color:#8a909c;font-size:8px}.yr-event-filters button.active{border-color:#6c5cff;background:#171921;color:#fff}.yr-event-filters button.active b{background:#6c5cff;color:#fff}.yr-event-groups{padding:5px 24px 25px}.yr-event-day{padding-top:17px}.yr-event-day>h3{margin:0 0 8px;color:#9299a6;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.yr-event-day>div{overflow:hidden;border:1px solid #e5e7ec;border-radius:14px}.yr-event-day button{width:100%;display:grid;grid-template-columns:80px minmax(240px,1fr) minmax(150px,.45fr) 52px 18px;align-items:center;gap:14px;min-height:68px;padding:10px 15px;border:0;border-bottom:1px solid #eceef2;background:#fff;color:#20232b;text-align:left}.yr-event-day button:last-child{border-bottom:0}.yr-event-day button:hover{background:#f8f7ff}.yr-event-type{display:inline-flex;justify-content:center;padding:5px 7px;border-radius:7px;background:#eef0f4;color:#727988;font-size:7px;font-weight:900;letter-spacing:.08em}.yr-event-type.applications{background:#e4f8ef;color:#0a8f5c}.yr-event-main b,.yr-event-main small,.yr-event-change strong,.yr-event-change span{display:block}.yr-event-main b{font-size:11px}.yr-event-main small{margin-top:4px;color:#9299a5;font-size:8px}.yr-event-change strong{font-size:10px}.yr-event-change span{margin-top:3px;color:#8c939f;font-size:8px}.yr-event-day time{color:#818896;font-size:9px}.yr-event-day em{color:#6c5cff;font-style:normal}.yr-event-empty{margin:30px}

.yr-detail-one-screen{width:min(1040px,96vw);background:#f4f5f7}.yr-detail-one-screen .yr-detail-head{padding:17px 22px}.yr-detail-one-screen .yr-detail-address h2{font-size:18px}.yr-detail-one-screen .yr-detail-summary{position:sticky;z-index:8;top:0;padding:10px 22px}.yr-detail-summary label{display:flex;align-items:center;gap:8px;color:#9296a3;font-size:9px}.yr-detail-one-screen .yr-detail-body{padding:16px 18px 32px}.yr-command-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.yr-command-kpis article{min-height:96px;padding:15px;border:1px solid #e1e3e8;border-radius:14px;background:#fff;box-shadow:0 7px 20px #23273a08}.yr-command-kpis article.accent{border-color:#272a34;background:#171921}.yr-command-kpis small,.yr-command-kpis strong,.yr-command-kpis span{display:block}.yr-command-kpis small{color:#858d9b;font-size:8px;font-weight:800;text-transform:uppercase}.yr-command-kpis strong{margin:7px 0 5px;color:#181b22;font-size:20px;line-height:1.05}.yr-command-kpis span{color:#8c93a0;font-size:8px}.yr-command-kpis .accent strong{color:#fff}.yr-application-pulse{display:grid;grid-template-columns:135px 1fr auto;align-items:center;gap:15px;margin:10px 0;padding:14px 17px;border:1px solid #bdebd7;border-radius:14px;background:linear-gradient(100deg,#e9faf2,#f8fffb)}.yr-application-pulse>span{color:#149161;font-size:8px;font-weight:900;letter-spacing:.12em}.yr-application-pulse strong,.yr-application-pulse small{display:block}.yr-application-pulse strong{font-size:13px}.yr-application-pulse small{margin-top:3px;color:#778478;font-size:8px}.yr-application-pulse>b{color:#0a9d67;font-size:23px}.yr-application-pulse.no-data{border-color:#e1e3e8;background:#fff}.yr-application-pulse.no-data>span,.yr-application-pulse.no-data>b{color:#8b929f}.yr-command-grid,.yr-work-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.yr-compact-panel{overflow:hidden;border:1px solid #e0e2e7;border-radius:14px;background:#fff;box-shadow:0 8px 24px #23273b08}.yr-compact-panel>header{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:10px 15px;border-bottom:1px solid #eceef2}.yr-compact-panel>header h3{margin:0;font-size:12px}.yr-compact-panel>header>span{color:#8a919e;font-size:9px}.yr-compact-panel .yr-person{padding:13px 15px 7px}.yr-compact-panel dl{margin:0;padding:5px 15px 12px}.yr-compact-panel dl>div{display:flex;justify-content:space-between;gap:20px;padding:7px 0;border-bottom:1px solid #f0f1f4}.yr-compact-panel dl>div:last-child{border-bottom:0}.yr-compact-panel dt{color:#8c939f;font-size:8px}.yr-compact-panel dd{margin:0;color:#313640;font-size:9px;font-weight:650;text-align:right}.yr-compact-links{display:flex;gap:7px;padding:0 15px 14px}.yr-compact-links a{padding:8px 10px;border-radius:8px;background:#efedff;color:#6256e8;font-size:8px;font-weight:800}.yr-compact-history{padding:4px 15px 8px}.yr-compact-history button{width:100%;display:grid;grid-template-columns:8px 1fr;align-items:center;gap:9px;padding:9px 0;border:0;border-bottom:1px solid #eff0f3;background:none;text-align:left}.yr-compact-history button:last-child{border-bottom:0}.yr-compact-history i{width:6px;height:6px;border-radius:50%;background:#7b70f5}.yr-compact-history i.auto{background:#12ad77}.yr-compact-history b,.yr-compact-history small{display:block}.yr-compact-history b{font-size:9px}.yr-compact-history small{margin-top:3px;color:#949aa5;font-size:8px}.yr-task-compact{grid-template-columns:1fr 130px 130px auto;padding:11px 13px;border-top:1px solid #eceef2}.yr-task-compact input,.yr-task-compact select{min-width:0}.yr-compact-panel .yr-task-list,.yr-compact-panel .yr-related-list,.yr-compact-panel .yr-comment-list{padding:5px 15px 10px}.yr-compact-panel .yr-comment-form{padding:11px 14px}.yr-compact-panel .yr-comment-form textarea{min-height:55px}

@media(max-width:900px){.yr-hero-compact .yr-hero-facts{position:static;margin-top:18px}.yr-command-kpis{grid-template-columns:1fr 1fr}.yr-command-grid,.yr-work-grid{grid-template-columns:1fr}.yr-event-day button{grid-template-columns:70px 1fr 120px 45px}.yr-event-day button>em{display:none}.yr-task-compact{grid-template-columns:1fr 1fr}.yr-task-compact button{grid-column:1/-1}}
@media(max-width:600px){.yr-hero-compact .yr-hero-grid{padding:22px 18px 18px}.yr-hero-compact h1{font-size:34px}.yr-hero-compact .yr-hero-facts{gap:6px}.yr-hero-compact .yr-hero-facts>div{min-width:88px}.yr-command-kpis{grid-template-columns:1fr 1fr}.yr-command-kpis article{min-height:88px}.yr-application-pulse{grid-template-columns:1fr auto}.yr-application-pulse>span{grid-column:1/-1}.yr-event-filters,.yr-event-groups{padding-left:13px;padding-right:13px}.yr-event-day button{grid-template-columns:1fr 44px;gap:6px}.yr-event-type,.yr-event-change{display:none}.yr-event-main{grid-column:1}.yr-event-day time{grid-column:2;grid-row:1}.yr-detail-one-screen{width:100vw}.yr-detail-one-screen .yr-detail-body{padding:10px}.yr-task-compact{grid-template-columns:1fr}}

.yr-unread-badge{min-width:20px!important;height:20px!important;display:inline-grid!important;place-items:center;padding:0 6px!important;border-radius:99px!important;background:#ff3f65!important;color:#fff!important;font-size:8px!important;box-shadow:0 0 0 4px rgba(255,63,101,.11)}.yr-nav button.active .yr-unread-badge{background:#ff4f73!important}.yr-unread-banner{display:flex;align-items:center;gap:11px;margin:0 24px 10px;padding:12px 14px;border:1px solid #c8c4ff;border-radius:12px;background:#f3f1ff;color:#292545}.yr-unread-banner>i{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:#6c5cff;box-shadow:0 0 0 5px rgba(108,92,255,.13)}.yr-unread-banner b,.yr-unread-banner span{display:block}.yr-unread-banner b{font-size:10px}.yr-unread-banner span{margin-top:3px;color:#77728e;font-size:8px}.yr-event-day button.unread{position:relative;background:#faf9ff}.yr-event-day button.unread:before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:#6c5cff}.yr-event-day button.unread .yr-event-main b:after{content:"НОВОЕ";display:inline-block;margin-left:8px;padding:3px 5px;border-radius:5px;background:#6c5cff;color:#fff;font-size:6px;letter-spacing:.08em;vertical-align:2px}@media(max-width:600px){.yr-unread-banner{margin:0 13px 8px}}
.yr-event-person{display:flex;align-items:center;gap:6px;margin-top:7px;color:#7d8492;font-size:8px}.yr-event-person i{width:19px;height:19px;display:grid;place-items:center;border-radius:7px;background:linear-gradient(135deg,#6c5cff,#9a8fff);color:#fff;font-size:7px;font-style:normal;font-weight:900;letter-spacing:-.04em}.yr-event-person b{font-size:8px;font-weight:750;color:#707888}
.referrals-page{max-width:1280px}.referral-table{overflow:auto}.referral-row{display:grid;grid-template-columns:1.1fr 1fr 2fr .9fr .8fr;gap:14px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);min-width:760px}.referral-row:last-child{border-bottom:0}.referral-row small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.referral-head{background:#f6f7f9;color:var(--muted);font-size:12px}.referral-link-cell{display:flex;gap:8px;min-width:0}.referral-link-cell input{min-width:0;flex:1;font-size:12px}.referral-link-cell button{min-height:38px;padding:7px 10px}
