:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --white: #fffefa;
  --ink: #222c3d;
  --soft: #596577;
  --muted: #7b8491;
  --rule: #dce0e5;
  --deep: #17352e;
  --deep-soft: #25473e;
  --green: #52745b;
  --green-dark: #35543d;
  --lime: #d9eed1;
  --coral: #f4aa82;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-shell { display: grid; grid-template-columns: minmax(340px, .92fr) minmax(420px, 1.08fr); width: min(1120px, calc(100% - 64px)); min-height: min(720px, calc(100vh - 64px)); margin: 32px auto; overflow: hidden; border: 1px solid rgba(34, 44, 61, .08); border-radius: 16px; background: var(--white); box-shadow: 0 26px 80px rgba(28, 44, 39, .1); }
.welcome-panel { position: relative; display: flex; flex-direction: column; min-height: 680px; padding: 42px clamp(30px, 5vw, 62px) 38px; overflow: hidden; color: #f8f6f1; background: var(--deep); isolation: isolate; }
.brand, .mobile-brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: inherit; text-decoration: none; }
.brand img, .mobile-brand img { display: block; border-radius: 11px; }
.brand span, .mobile-brand span { font-size: 23px; font-weight: 740; letter-spacing: -.075em; }
.welcome-copy { position: relative; z-index: 1; margin: auto 0; padding: 54px 0 72px; }
.eyebrow, .form-eyebrow { margin: 0 0 20px; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.eyebrow { color: #d8e5d5; }
.eyebrow-line { display: inline-block; width: 23px; height: 1px; margin: 0 9px 3px 0; background: var(--coral); }
.welcome-copy h1 { max-width: 430px; margin: 0; font: 500 clamp(42px, 5.2vw, 67px)/.99 var(--serif); letter-spacing: -.065em; }
.welcome-copy h1 em { color: var(--coral); font-weight: 500; }
.welcome-lead { max-width: 340px; margin: 25px 0 0; color: #d4ded9; font-size: 15px; line-height: 1.75; }
.welcome-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; max-width: 360px; padding-top: 21px; border-top: 1px solid rgba(238, 243, 239, .19); }
.secure-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(217, 238, 209, .3); border-radius: 50%; color: var(--lime); }
.secure-icon svg { width: 20px; height: 20px; }
.welcome-note strong, .welcome-note small { display: block; }
.welcome-note strong { font-size: 12px; font-weight: 720; }
.welcome-note small { margin-top: 3px; color: #bdcbc3; font-size: 11px; }
.panel-ornament { position: absolute; z-index: -1; display: block; border: 1px solid rgba(217, 238, 209, .13); border-radius: 50%; pointer-events: none; }
.ornament-one { top: 18%; right: -160px; width: 390px; height: 390px; }
.ornament-two { top: calc(18% + 50px); right: -110px; width: 290px; height: 290px; border-color: rgba(244, 170, 130, .22); }

.form-panel { display: flex; flex-direction: column; min-width: 0; padding: 46px clamp(30px, 6vw, 82px) 28px; background: var(--white); }
.mobile-brand { display: none; color: var(--deep); }
.form-content { width: 100%; max-width: 390px; margin: auto; padding: 40px 0 56px; }
.form-eyebrow { margin-bottom: 12px; color: var(--green); }
.form-content h2 { margin: 0; color: var(--ink); font: 500 clamp(32px, 3vw, 40px)/1.08 var(--serif); letter-spacing: -.055em; }
.form-intro { margin: 12px 0 29px; color: var(--soft); font-size: 13px; line-height: 1.7; }
#login-form > label, .password-label-row label { display: block; margin: 0 0 8px; color: #313c4c; font-size: 12px; font-weight: 680; }
.password-label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 19px; }
.password-label-row label { margin-bottom: 8px; }
.input-wrap { position: relative; display: flex; align-items: center; min-height: 51px; border: 1px solid #d9dee2; border-radius: 7px; background: #fff; transition: border-color .18s ease, box-shadow .18s ease; }
.input-wrap:focus-within { border-color: #68806c; box-shadow: 0 0 0 3px rgba(82, 116, 91, .13); }
.input-wrap > svg { flex: 0 0 18px; width: 18px; height: 18px; margin-left: 15px; color: #818c96; }
.input-wrap input { width: 100%; min-width: 0; height: 49px; padding: 0 13px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.input-wrap input::placeholder { color: #9ba3aa; }
.input-wrap input:-webkit-autofill { box-shadow: 0 0 0 100px #fff inset; -webkit-text-fill-color: var(--ink); }
.password-toggle { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; margin-right: 4px; border: 0; border-radius: 6px; background: transparent; color: #78848c; }
.password-toggle:hover { background: #f2f4f0; color: var(--deep); }
.password-toggle svg { width: 19px; height: 19px; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 51px; margin-top: 24px; padding: 12px 17px; border: 1px solid var(--deep); border-radius: 7px; background: var(--deep); color: white; font-size: 13px; font-weight: 730; transition: background .18s ease, transform .18s ease, opacity .18s ease; }
.submit-button:hover:not(:disabled) { transform: translateY(-1px); background: var(--deep-soft); }
.submit-button:focus-visible, .password-toggle:focus-visible, .secondary-button:focus-visible { outline: 3px solid rgba(82, 116, 91, .36); outline-offset: 3px; }
.submit-button:disabled { cursor: not-allowed; opacity: .55; }
.button-arrow { width: 17px; height: 17px; margin-left: auto; }
.button-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.38); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-button.is-loading .button-spinner { display: block; }
.submit-button.is-loading .button-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-message { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #f0d1c7; border-radius: 6px; background: #fff5f1; color: #8e3827; font-size: 12px; line-height: 1.5; }
.auth-note { display: flex; align-items: center; gap: 8px; margin: 19px 0 0; color: var(--muted); font-size: 11px; }
.status-dot { display: inline-block; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #78967b; }
.form-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 17px; border-top: 1px solid #e9e9e3; color: #7c858d; font-size: 9px; }
.form-footer > span:first-child { font-weight: 780; letter-spacing: .12em; }
.connected-view { text-align: left; }
.connected-icon { display: grid; width: 52px; height: 52px; margin-bottom: 26px; place-items: center; border-radius: 50%; background: #e8f0e4; color: var(--green-dark); }
.connected-icon svg { width: 25px; height: 25px; }
.connected-view .form-intro { margin-bottom: 24px; }
.connected-status { display: flex; align-items: center; gap: 9px; width: fit-content; padding: 10px 12px; border: 1px solid #e1e8de; border-radius: 6px; background: #f5f8f3; color: #445b48; font-size: 11px; }
.secondary-button { min-height: 43px; margin-top: 24px; padding: 10px 14px; border: 1px solid #cfd6d1; border-radius: 6px; background: transparent; color: var(--deep); font-size: 12px; font-weight: 700; }
.secondary-button:hover { background: #f2f5f0; }
.workspace-entry-button { margin-top: 21px; }
.company-loading { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--soft); font-size: 12px; }
.company-loading::before { width: 14px; height: 14px; border: 2px solid #dfe7dc; border-top-color: var(--green); border-radius: 50%; content: ''; animation: spin .7s linear infinite; }
.company-empty { margin: 20px 0 0; padding: 17px; border: 1px solid #e5e7df; border-radius: 8px; background: #f8f8f4; color: var(--soft); font-size: 13px; }
.company-empty p { margin: 0; }
.company-list { display: grid; gap: 10px; margin-top: 21px; }
.company-option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 70px; padding: 13px 15px; border: 1px solid #e0e4df; border-radius: 8px; background: #fff; color: var(--ink); text-align: left; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.company-option:hover { transform: translateY(-1px); border-color: #9bad9d; background: #fbfcf9; }
.company-option:focus-visible { outline: 3px solid rgba(82, 116, 91, .3); outline-offset: 2px; }
.company-option-main { display: grid; min-width: 0; gap: 4px; }
.company-option-name { overflow: hidden; font-size: 13px; font-weight: 710; text-overflow: ellipsis; white-space: nowrap; }
.company-option-role { color: var(--muted); font-size: 11px; }
.company-option-arrow { flex: 0 0 18px; width: 18px; height: 18px; margin-left: auto; color: var(--green); }
.selected-company-card { display: grid; gap: 7px; margin-top: 21px; padding: 18px; border: 1px solid #dfe7dc; border-radius: 8px; background: #f6f8f3; }
.selected-company-label { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.selected-company-card strong { overflow-wrap: anywhere; color: var(--deep); font: 500 23px/1.15 var(--serif); letter-spacing: -.035em; }
.selected-company-role { color: #526456; font-size: 12px; }
.selected-company-note { margin: 14px 0 0; color: var(--soft); font-size: 11px; line-height: 1.6; }
.company-empty .secondary-button { margin-top: 16px; }

.workspace-view { position: fixed; z-index: 20; inset: 0; display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; overflow: auto; background: var(--paper); color: var(--ink); }
.workspace-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 27px 20px 19px; background: var(--deep); color: #f8f6f1; }
.workspace-brand { display: flex; align-items: center; gap: 11px; width: fit-content; color: inherit; text-decoration: none; }
.workspace-brand img { display: block; border-radius: 10px; }
.workspace-brand span { font-size: 22px; font-weight: 740; letter-spacing: -.075em; }
.workspace-label { display: block; margin: 0; color: #85958b; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.workspace-sidebar > .workspace-label { margin: 48px 9px 12px; }
.workspace-nav { display: grid; gap: 5px; }
.workspace-nav-item { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 9px 11px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #c3cdc6; font-size: 12px; font-weight: 630; text-align: left; }
.workspace-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.workspace-nav-item.is-active { border-color: rgba(217,238,209,.12); background: rgba(217,238,209,.11); color: #f5f8f2; }
.workspace-nav-icon { display: grid; width: 19px; place-items: center; color: #c6d9c4; font-size: 18px; line-height: 1; }
.workspace-sidebar-footer { display: grid; gap: 9px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(240,246,241,.16); }
.workspace-company-context { display: grid; gap: 5px; min-width: 0; padding: 0 4px 8px; }
.workspace-company-context strong { overflow-wrap: anywhere; color: #f5f7f3; font-size: 12px; font-weight: 700; }
.workspace-company-role { color: #afc0b3; font-size: 11px; }
.workspace-quiet-button { width: fit-content; padding: 7px 4px; border: 0; background: transparent; color: #c3cdc6; font-size: 11px; text-align: left; }
.workspace-quiet-button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.workspace-main { min-width: 0; }
.workspace-topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 66px; padding: 0 clamp(23px, 4vw, 52px); border-bottom: 1px solid #e6e7e1; background: rgba(255,254,250,.88); color: #7c858d; font-size: 9px; font-weight: 780; letter-spacing: .12em; }
.workspace-context-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #e2e9df; border-radius: 20px; background: #f7f9f5; color: #516653; font-size: 10px; font-weight: 600; letter-spacing: 0; }
.workspace-panel { width: min(810px, 100%); margin: 0 auto; padding: clamp(43px, 7vw, 82px) clamp(23px, 5vw, 68px) 60px; }
.workspace-eyebrow { margin: 0 0 14px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.workspace-panel h1 { max-width: 630px; margin: 0; color: var(--deep); font: 500 clamp(37px, 5vw, 58px)/1.04 var(--serif); letter-spacing: -.06em; }
.workspace-lead { max-width: 540px; margin: 16px 0 32px; color: var(--soft); font-size: 14px; line-height: 1.75; }
.workspace-overview { display: flex; align-items: center; gap: 15px; max-width: 620px; padding: 19px; border: 1px solid #e2e6df; border-radius: 9px; background: var(--white); }
.workspace-overview-mark { display: grid; flex: 0 0 43px; width: 43px; height: 43px; place-items: center; border-radius: 9px; background: #e8eee4; color: var(--green-dark); font: 500 23px var(--serif); }
.workspace-overview > div { display: grid; min-width: 0; gap: 4px; }
.workspace-overview strong { overflow-wrap: anywhere; color: var(--deep); font-size: 13px; font-weight: 720; }
.workspace-verified { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #5b765d; font-size: 10px; white-space: nowrap; }
.workspace-verified::before { width: 6px; height: 6px; border-radius: 50%; background: #78967b; content: ''; }
.workspace-text-action { display: inline-flex; align-items: center; gap: 12px; margin-top: 23px; padding: 8px 0; border: 0; border-bottom: 1px solid #c7d0c7; background: transparent; color: var(--deep); font-size: 12px; font-weight: 710; }
.workspace-text-action:hover { color: var(--green); border-color: var(--green); }
.services-neutral-state { display: flex; align-items: flex-start; gap: 16px; max-width: 680px; padding: 22px; border: 1px solid #e2e6df; border-radius: 9px; background: var(--white); }
.services-neutral-mark { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #f1eee7; color: #687b69; font-size: 17px; }
.services-neutral-state strong { color: var(--deep); font-size: 13px; font-weight: 700; }
.services-neutral-state p { margin: 7px 0 0; color: var(--soft); font-size: 12px; line-height: 1.7; }
.services-list { display: grid; max-width: 680px; border-top: 1px solid #e2e6df; }
.service-entry { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 18px 2px; border-bottom: 1px solid #e2e6df; }
.service-entry-copy { display: grid; min-width: 0; gap: 5px; }
.service-entry-copy strong { overflow-wrap: anywhere; color: var(--deep); font-size: 14px; font-weight: 700; }
.service-entry-copy span { color: var(--muted); font-size: 11px; }
.service-status { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #e4e6df; border-radius: 20px; background: #f7f7f3; color: #657168; font-size: 10px; font-weight: 700; }
.service-status.is-available { border-color: #dbe7d8; background: #f1f6ef; color: #46694b; }
.service-entry-action { flex: 0 0 auto; display: flex; align-items: center; }
.service-access-btn { font-size: 12px; font-weight: 600; color: #b8965a; background: rgba(184, 150, 90, 0.08); border: 1px solid rgba(184, 150, 90, 0.25); border-radius: 6px; padding: 6px 12px; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; }
.service-access-btn:hover { background: rgba(184, 150, 90, 0.18); border-color: #b8965a; transform: translateY(-1px); }
.service-access-btn:active { transform: translateY(0); }

/* CRM Activity & Call Log Dashboard */
.activity-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 780px;
  margin: 22px 0 16px;
}
.kpi-card {
  padding: 16px 20px;
  border: 1px solid #e2e6df;
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.kpi-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.kpi-value {
  color: var(--deep);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 780px;
  margin-bottom: 20px;
}
.activity-filter-btn {
  padding: 7px 14px;
  border: 1px solid #dde1da;
  border-radius: 20px;
  background: var(--white);
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.activity-filter-btn:hover {
  border-color: var(--green);
  color: var(--deep);
}
.activity-filter-btn.is-active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
  font-weight: 700;
}

.activity-crm-list {
  max-width: 780px;
}
.crm-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid #e2e6df;
  border-radius: 12px;
  background: var(--white);
  margin-bottom: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.crm-card:hover {
  border-color: #cbd5c8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.crm-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.crm-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.crm-card-icon {
  font-size: 18px;
  line-height: 1;
}
.crm-card-name {
  color: var(--deep);
  font-size: 15px;
  font-weight: 700;
}
.crm-card-phone {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.crm-card-phone:hover {
  text-decoration: underline;
}
.crm-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.crm-badge {
  padding: 4px 9px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.crm-badge-urgent {
  background: #fde8e8;
  color: #c53030;
  border: 1px solid #feb2b2;
}
.crm-badge-normal {
  background: #edf2f7;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}
.crm-badge-rdv {
  background: #e6fffa;
  color: #234e52;
  border: 1px solid #b2f5ea;
}
.crm-badge-rappel {
  background: #fffaf0;
  color: #7b341e;
  border: 1px solid #feebc8;
}

.crm-card-topic {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.crm-appointment-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}
.crm-appointment-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #166534;
  font-size: 12px;
  font-weight: 600;
}
.crm-calendar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.crm-btn-gcal {
  padding: 5px 10px;
  border: 1px solid #86efac;
  border-radius: 6px;
  background: #fff;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.crm-btn-gcal:hover {
  background: #dcfce7;
}
.crm-btn-gcal.is-synced {
  background: #15803d;
  color: #fff;
  border-color: #166534;
}
.crm-btn-gcal.is-synced:hover {
  background: #166534;
}
.crm-btn-ics {
  padding: 5px 10px;
  border: 1px solid #86efac;
  border-radius: 6px;
  background: #166534;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.crm-btn-ics:hover {
  background: #14532d;
}

.crm-drawer-toggle {
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}
.crm-drawer-toggle:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.crm-details-drawer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: #f8faf8;
  border: 1px solid #e6ede4;
  border-radius: 8px;
  margin-top: 6px;
}
.crm-details-section h4 {
  margin: 0 0 6px;
  color: var(--deep);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.crm-details-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.6;
}
.crm-transcript-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}
.crm-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}
.crm-bubble-caller {
  align-self: flex-start;
  background: #e2e8f0;
  color: #1a202c;
}
.crm-bubble-agent {
  align-self: flex-end;
  background: #dcfce7;
  color: #14532d;
}

.crm-audio-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
}

.crm-audio-player {
  width: 100%;
  height: 38px;
  border-radius: 6px;
  outline: none;
}

.crm-badge-status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.crm-badge-status-called_back {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}
.crm-badge-status-completed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.crm-status-actions-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.crm-status-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.crm-btn-status-action {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.crm-btn-status-action:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
.crm-btn-status-action.is-called-back:hover {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}
.crm-btn-status-action.is-completed:hover {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #16a34a;
}


@media (max-width: 760px) {
  body { background: var(--white); }
  .login-shell { display: flex; flex-direction: column; width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
  .welcome-panel { display: none; }
  .form-panel { flex: 1; min-height: 100vh; padding: 25px 25px 22px; }
  .mobile-brand { display: inline-flex; }
  .mobile-brand img { border-radius: 10px; }
  .mobile-brand span { font-size: 22px; }
  .form-content { max-width: 440px; padding: 48px 0; }
  .workspace-view { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .workspace-sidebar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'brand brand' 'nav nav' 'footer footer'; gap: 14px; min-height: auto; padding: 14px 18px 13px; }
  .workspace-brand { grid-area: brand; }
  .workspace-sidebar > .workspace-label { display: none; }
  .workspace-nav { grid-area: nav; display: flex; gap: 7px; }
  .workspace-nav-item { flex: 1; justify-content: center; min-height: 39px; padding: 8px; }
  .workspace-sidebar-footer { grid-area: footer; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; margin: 0; padding-top: 11px; }
  .workspace-company-context { grid-column: 1; grid-row: 1 / span 2; padding: 0; }
  .workspace-quiet-button { grid-column: 2; justify-self: end; padding: 5px 2px; }
  .workspace-topbar { min-height: 52px; padding-inline: 20px; }
  .workspace-panel { padding: 38px 22px 48px; }
  .workspace-panel h1 { font-size: clamp(36px, 10vw, 47px); }
  .workspace-overview { align-items: flex-start; flex-wrap: wrap; padding: 15px; }
  .workspace-verified { width: 100%; margin: 0 0 0 58px; }
  .services-neutral-state { padding: 17px; }
}
@media (max-width: 380px) {
  .form-panel { padding-inline: 20px; }
  .form-content { padding-block: 36px; }
  .form-content h2 { font-size: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
