.entry-screen {
  display: grid;
  grid-template-columns: minmax(390px, .87fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--side);
}
.entry-side { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 620px; padding: 27px clamp(22px, 3.9vw, 58px); }
.entry-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.entry-form { width: min(390px, 100%); margin: auto; padding: 35px 0 64px; display: grid; gap: 19px; }
.entry-title { margin-bottom: 5px; }
.entry-title h1 { font-size: clamp(32px, 4vw, 45px); letter-spacing: -.05em; }
.entry-title p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.entry-field > label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 630; }
.entry-field > input { width: 100%; height: 47px; }
.entry-password { position: relative; }
.entry-password input { width: 100%; padding-right: 47px !important; height: 47px; }
.entry-password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 37px; min-height: 35px; border: 0; color: var(--dim); background: transparent; }
.entry-form .entry-submit { min-height: 48px; }
.entry-error { padding: 10px 12px; border: 1px solid var(--danger-line); border-radius: var(--control-radius); color: var(--danger); background: var(--danger-bg); font-size: 13px; }
.entry-visual {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(25px, 5vh, 60px);
  padding: 36px;
  margin: 14px 14px 14px 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--raised);
  color: var(--text);
}
.entry-illustration { position: relative; display: grid; place-items: center; width: min(89%,420px); }
.entry-mock {
  width: 90%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--control-line);
  border-radius: 17px;
  padding: 9px;
  transform: rotate(-6deg);
  box-shadow: var(--overlay-shadow);
}
.entry-mock-window { display: flex; gap: 5px; padding: 4px 5px 10px; }
.entry-mock-window i { inline-size: 6px; block-size: 6px; border-radius: 50%; background: var(--control-line); }
.entry-mock-window i:first-child { background: var(--chart-neutral); }
.entry-mock-body { display: grid; grid-template-columns: 19% 1fr; gap: 10px; border-radius: 9px; background: var(--raised); padding: 10px; aspect-ratio: 1.57; }
.entry-mock-rail { display: grid; gap: 11px; align-content: start; padding: 9px 5px; border-radius: 6px; background: var(--panel); }
.entry-mock-rail i { height: 5px; border-radius: 4px; background: var(--control-line); }
.entry-mock-rail i:first-child { width: 60%; height: 13px; background: var(--chart-neutral); }
.entry-mock-main { display: grid; gap: 9px; grid-template-rows: 27% minmax(0,1fr); min-width: 0; }
.entry-mock-tiles { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.entry-mock-tiles i { min-width: 0; border-radius: 6px; background: var(--panel); }
.entry-mock-tiles i::before { content: ""; display: block; border-radius: 4px; width: 13px; height: 13px; margin: 8px; background: var(--chart-neutral); }
.entry-mock-bars { display: flex; align-items: end; gap: 6%; padding: 9px 11px; background: var(--panel); border-radius: 7px; min-height: 0; }
.entry-mock-bars i { flex: 1; height: 43%; border-radius: 4px 4px 0 0; background: var(--control-line); }
.entry-mock-bars i:nth-child(2n) { height: 62%; }
.entry-mock-bars i:nth-child(3n) { height: 51%; }
.entry-mock-bars i:nth-child(5n) { height: 73%; }
.entry-mock-bars i:last-child { height: 88%; background: var(--brand); }
.entry-float { position: absolute; display: grid; place-items: center; width: clamp(39px,6vw,65px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 17px; background: var(--panel); box-shadow: var(--shadow); }
.entry-float svg { width: 45%; height: 45%; }
.entry-float-call { inset: 2% auto auto -1%; color: var(--text); transform: rotate(-10deg); }
.entry-float-calendar { inset: auto -2% 2% auto; color: var(--muted); transform: rotate(9deg); }
.entry-float-done { inset: 7% 0 auto auto; width: clamp(28px,4vw,44px); border-radius: 11px; color: var(--positive); transform: rotate(12deg); }
.entry-visual-text { text-align: center; }
.entry-visual-text h2 { font-size: clamp(25px,3.8vw,48px); font-weight: 690; line-height: 1.08; letter-spacing: -.065em; }
.entry-visual-text p { margin-top: 12px; color: var(--muted); font-size: 13px; }
.entry-boot { display: grid; gap: 15px; align-content: center; justify-items: center; min-height: 100vh; background: var(--side); }
.entry-loading { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.loading-ring { inline-size: 13px; block-size: 13px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: load-ring .9s linear infinite; }
@keyframes load-ring { to { transform: rotate(1turn); } }
.crm-dialog {
  position: fixed;
  max-width: min(490px, calc(100vw - 28px));
  width: 100%;
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--overlay-shadow);
}
.crm-dialog::backdrop { background: var(--scrim); }
.crm-dialog-header { padding: 22px 22px 13px; }
.crm-dialog-header h2 { font-size: 21px; }
.crm-dialog-body { display: grid; gap: 11px; padding: 0 22px 16px; color: var(--muted); overflow-wrap: anywhere; }
.crm-dialog-body .reject-company { color: var(--text); font-weight: 650; }
.crm-dialog-body :is(.reject-error,#removeCallError) { color: var(--danger); }
.reject-reason { display: grid; gap: 6px; }
.reject-attempt { border: 1px solid var(--line); border-radius: 9px; background: var(--raised); padding: 9px 11px; }
.reject-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--text); font-size: 13px; font-weight: 615; cursor: pointer; }
.reject-switch input {
  appearance: none;
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--control-line);
  border-radius: 999px;
  background: var(--control-line);
  cursor: pointer;
}
.reject-switch input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #00000040;
}
.reject-switch input:checked { border-color: var(--brand); background: var(--brand); }
.reject-switch input:checked::before { transform: translateX(16px); }
.reject-switch input:disabled { opacity: .65; cursor: default; }
.reject-attempt .note-help { margin-top: 4px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; background: var(--raised); border-top: 1px solid var(--line); }
@media (max-width: 850px) {
  .entry-screen { grid-template-columns: minmax(330px,1fr) minmax(0,.82fr); }
  .entry-visual { padding: 16px; }
  .entry-form { padding-top: 30px; }
}
@media (max-width: 650px) {
  .entry-screen { display: block; }
  .entry-side { min-height: 100vh; min-height: 100dvh; padding: 19px 20px; }
  .entry-visual { display: none; }
  .entry-form { padding: 27px 0 50px; }
}
@media (max-width: 350px) {
  .entry-side { padding-inline: 14px; }
  .dialog-actions { justify-content: stretch; }
  .dialog-actions .button { flex: 1; }
}
