:root {
  --bg: #eef1ec;
  --ink: #17201d;
  --muted: #66716d;
  --line: #d7ddd7;
  --panel: #ffffff;
  --steel: #223136;
  --steel-light: #314348;
  --accent: #14b8a6;
  --accent-dark: #0f766e;
  --focus: #0d9488;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,
input,
textarea,
select {
  font: inherit;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(238, 241, 236, 0.92)),
    var(--bg);
}

.auth-shell {
  width: min(940px, 100%);
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  border: 1px solid #cdd5cf;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(27, 38, 35, 0.16);
  overflow: hidden;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 38px 40px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(34, 49, 54, 0.96), rgba(19, 28, 26, 0.98)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 22px);
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow,
.form-kicker {
  margin: 0 0 10px;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-panel h1,
.topbar h1,
.welcome h1 {
  margin: 0;
  line-height: 1;
}

.brand-panel h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 5vw, 4.75rem);
  overflow-wrap: anywhere;
}

.intro {
  max-width: 360px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.98rem;
  line-height: 1.55;
}

.login-panel {
  display: grid;
  align-items: center;
  padding: 44px 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 251, 249, 1)),
    var(--panel);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form h2,
.welcome h2 {
  margin: 0;
  font-size: 1.75rem;
}

.login-form label {
  margin-top: 8px;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 700;
}

.login-form input {
  width: 100%;
  height: 50px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: #fdfdfb;
  outline: none;
}

.login-form input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.14);
}

.login-form button,
.secondary-button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(180deg, #2dd4bf, var(--accent));
  cursor: pointer;
  font-weight: 800;
}

.login-form button {
  margin-top: 14px;
  width: 100%;
}

.login-form button:hover,
.secondary-button:hover {
  background: var(--accent-dark);
}

.alert {
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.08);
  font-size: 0.92rem;
  font-weight: 600;
}

.manual-duplicate-warning {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(20, 184, 166, 0.05);
}

.manual-duplicate-warning h2 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.manual-duplicate-list {
  display: grid;
  gap: 8px;
}

.manual-duplicate-link {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(31, 45, 48, 0.1);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  background: #ffffff;
  text-decoration: none;
}

.manual-duplicate-link span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.manual-duplicate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manual-duplicate-override {
  background: #ffffff;
}

.manual-duplicate-new {
  color: var(--text);
  background: #ffffff;
  text-decoration: none;
}

.form-error {
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.07);
  font-size: 0.86rem;
  font-weight: 800;
}

.invite-role {
  margin: -5px 0 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.app-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #f6f7f4;
}

.crm-shell {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  overflow: hidden;
}

body.power-dialer-reviewing .crm-shell {
  grid-template-columns: minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--steel), #182321);
}

body.power-dialer-reviewing .sidebar,
body.power-dialer-reviewing .header-back-button {
  display: none;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.sidebar-brand-logo {
  display: block;
  width: min(168px, 100%);
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
  height: auto;
}

.workspace-switcher {
  position: relative;
  z-index: 30;
}

.workspace-switcher > summary {
  cursor: pointer;
  list-style: none;
}

.workspace-switcher > summary::-webkit-details-marker {
  display: none;
}

.workspace-switcher .sidebar-brand {
  justify-content: space-between;
}

.workspace-switcher-chevron {
  width: 16px;
  height: 16px;
  margin-left: auto;
  filter: brightness(0) invert(1);
  opacity: 0.66;
  transition: transform 160ms ease;
}

.workspace-switcher[open] .workspace-switcher-chevron {
  transform: rotate(180deg);
}

.workspace-logo-fallback {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.workspace-switcher-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 270px;
  padding: 10px;
  border: 1px solid #dce5e4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(3, 35, 39, 0.24);
  color: #183235;
}

.workspace-switcher-label {
  margin: 3px 8px 8px;
  color: #789092;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-switcher-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 5px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #183235;
  cursor: pointer;
  text-align: left;
}

.workspace-switcher-option:hover,
.workspace-switcher-option.is-active {
  background: #edf9f7;
}

.workspace-switcher-option > img:first-child,
.workspace-switcher-option > span:first-child {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  background: #173337;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.workspace-switcher-option-name {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-switcher-option .workspace-check {
  width: 16px;
  height: 16px;
  background: transparent;
  filter: none;
}

.workspace-create-panel {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e8eeee;
}

.workspace-create-panel > summary {
  padding: 8px;
  color: #0b9387;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
  list-style: none;
}

.workspace-create-panel form {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.workspace-create-panel label {
  display: grid;
  gap: 4px;
  color: #607779;
  font-size: 0.7rem;
  font-weight: 700;
}

.workspace-create-panel input {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid #ccd9d8;
  border-radius: 8px;
  color: #183235;
  font: inherit;
}

.workspace-create-panel input[type="file"] {
  font-size: 0.67rem;
}

.workspace-create-panel button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: #18b8a7;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}

.brand-mark-small {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  font-size: 0.82rem;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 34px;
}

.nav-item,
.icon-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-item {
  padding: 0 12px;
}

.nav-item img,
.icon-button img {
  width: 20px;
  height: 20px;
  filter: invert(1);
  opacity: 0.74;
}

.nav-item .nav-brand-icon {
  filter: none;
  opacity: 1;
}

.nav-item:hover,
.icon-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.is-active,
.icon-button.is-active {
  color: #ffffff;
  background: rgba(20, 184, 166, 0.94);
}

.nav-item.is-active img,
.icon-button.is-active img,
.icon-button:hover img {
  opacity: 1;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 6px;
}

.sidebar-logout {
  margin: 0;
}

.icon-button {
  width: 100%;
  border: 0;
  padding: 0 12px;
  background: transparent;
  cursor: pointer;
}

.crm-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.crm-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.crm-header .eyebrow {
  color: var(--muted);
}

.crm-header h1 {
  margin: 0;
  font-size: 1.45rem;
}

.header-subline {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.header-subline-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.header-subline-group .header-subline {
  margin: 0;
}

.assignee-chip,
.assignee-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.assignee-form span {
  text-transform: uppercase;
}

.assignee-form select {
  min-width: 128px;
  max-width: 190px;
  height: 26px;
  padding: 0 22px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.supplier-number {
  color: #4d6b42;
}

.header-lead-edit {
  min-width: 280px;
}

.header-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.header-title-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-back-button {
  width: auto;
  min-width: 26px;
  max-width: min(230px, 34vw);
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0 8px 0 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
}

.header-back-button:hover {
  background: #f7f8f5;
}

.header-back-button:focus-visible {
  outline: 2px solid rgba(20, 184, 166, 0.42);
  outline-offset: 2px;
}

.header-back-button img {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.header-back-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-title-main h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.header-title-main .inline-icon-actions {
  flex: 0 0 auto;
}

.header-edit-form {
  width: min(420px, 100%);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.context-header-actions {
  display: contents;
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 6px;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.primary-action {
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, #2dd4bf, var(--accent));
}

.primary-action.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.secondary-action,
.ghost-action {
  border: 1px solid var(--line);
  color: var(--steel);
  background: #ffffff;
}

.secondary-action-button {
  min-height: 42px;
}

.secondary-action-button:disabled {
  cursor: default;
  opacity: 0.64;
}

.ghost-action {
  justify-self: start;
}

.primary-action:hover {
  background: var(--accent-dark);
}

.secondary-action:hover,
.ghost-action:hover {
  border-color: #c7d0c7;
  background: #f7f8f5;
}

.primary-action img,
.secondary-action img,
.ghost-action img {
  width: 18px;
  height: 18px;
}

.primary-action img {
  filter: invert(1);
}

.primary-action-button {
  border: 0;
}

.phone-widget {
  position: relative;
}

.phone-forwarding-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 999px;
  padding: 0 8px 0 10px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.phone-forwarding-status[hidden] {
  display: none !important;
}

.phone-forwarding-status-check {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
}

.phone-forwarding-status-check::before {
  content: "";
  width: 7px;
  height: 4px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}

.power-dialer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  border: 1px solid #dfe5dc;
  border-radius: 6px;
  padding: 8px 10px 8px 12px;
  background: #fbfcfa;
  box-shadow: none;
}

body.power-dialer-mode-active .power-dialer-bar {
  border-color: rgba(20, 184, 166, 0.36);
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.13), #fbfcfa 72%);
  box-shadow: inset 3px 0 0 var(--accent);
}

.power-dialer-bar[hidden] {
  display: none;
}

.power-dialer-bar [hidden] {
  display: none !important;
}

.power-dialer-bar span,
.power-dialer-counter {
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.power-dialer-mode-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  color: #ffffff !important;
  background: var(--accent);
  font-size: 0.68rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.power-dialer-mode-copy {
  color: #0f766e !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
}

.power-dialer-counter {
  border: 0;
  border-radius: 999px;
  padding: 4px 7px;
  background: transparent;
}

.power-dialer-counter.is-clickable {
  cursor: pointer;
}

.power-dialer-counter.is-clickable:hover {
  background: #edf0ec;
}

.power-dialer-bar.is-reviewing {
  background: #ffffff;
}

.power-dialer-bar.is-reviewing .power-dialer-control {
  display: none !important;
}

.power-dialer-control-stack {
  display: inline-grid;
  grid-template-rows: 32px 13px;
  justify-items: stretch;
  align-items: stretch;
  align-self: center;
}

.power-dialer-control-stack[hidden] {
  display: none !important;
}

.power-dialer-control {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #dbe0da;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
}

.power-dialer-shortcut-control {
  width: 32px;
  border-radius: 7px 7px 0 0;
}

.power-dialer-skip-button {
  width: 50px;
  border-radius: 7px 7px 0 0;
}

.power-dialer-numpad-button {
  width: 38px;
  border-radius: 7px 7px 0 0;
}

.power-dialer-stop-button {
  width: auto;
  min-width: 72px;
  border-radius: 7px 7px 0 0;
  padding: 0 12px;
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 900;
}

.power-dialer-shortcut-key {
  box-sizing: border-box;
  width: 100%;
  min-height: 13px;
  margin-top: -1px;
  border: 1px solid #dbe0da;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  padding: 1px 3px 2px;
  color: var(--steel);
  background: #f8faf7;
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.power-dialer-bar .power-dialer-shortcut-key {
  color: var(--steel);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.power-dialer-control-danger + .power-dialer-shortcut-key {
  border-color: rgba(20, 184, 166, 0.28);
  color: #0f766e;
  background: rgba(20, 184, 166, 0.08);
}

.power-dialer-control:hover {
  border-color: #c9d2c8;
  background: #f4f7f2;
}

.power-dialer-control.is-muted {
  border-color: rgba(20, 184, 166, 0.28);
  background: rgba(20, 184, 166, 0.08);
}

.power-dialer-control-danger {
  border-color: rgba(20, 184, 166, 0.28);
  background: var(--accent);
}

.power-dialer-control-danger:hover {
  border-color: rgba(20, 184, 166, 0.28);
  background: var(--accent);
}

.power-dialer-control img {
  width: 15px;
  height: 15px;
  opacity: 0.74;
}

.power-dialer-control-danger img {
  filter: invert(1);
  opacity: 1;
}

.power-dialer-review-button {
  min-height: 28px;
  border: 1px solid #dbe0da;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--steel);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 850;
}

.power-dialer-review-button:hover {
  background: #f4f7f2;
}

.dialer-review-list-modal {
  width: min(520px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 64px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(20, 31, 30, 0.22);
  overflow: hidden;
}

.dialer-review-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.dialer-review-list-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  text-align: left;
  background: #ffffff;
  cursor: pointer;
}

.dialer-review-list-item:hover,
.dialer-review-list-item.is-current {
  background: #f6f7f4;
}

.dialer-review-list-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--steel);
  background: #edf0ec;
  font-size: 0.75rem;
  font-weight: 900;
}

.dialer-review-list-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.dialer-review-list-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialer-review-list-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialer-review-list-item em {
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.08);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.dialer-review-list-item em.is-done {
  color: #28734d;
  background: rgba(40, 115, 77, 0.1);
}

.live-note-hint {
  align-self: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.phone-toggle,
.phone-call-button,
.phone-mute-button,
.phone-numpad-button,
.phone-hangup-button,
.phone-accept-button,
.phone-reject-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
}

.phone-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--steel);
  background: #ffffff;
}

.phone-toggle:hover {
  border-color: #c7d0c7;
  background: #f7f8f5;
}

.phone-toggle img,
.phone-call-button img,
.phone-mute-button img,
.phone-hangup-button img,
.phone-accept-button img,
.phone-reject-button img {
  width: 16px;
  height: 16px;
}

.phone-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: 286px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(20, 34, 36, 0.14);
}

.phone-panel [hidden] {
  display: none !important;
}

.phone-dial-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
}

.phone-dial-row input,
.phone-audio-settings select {
  width: 100%;
  height: 36px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.phone-dial-row input {
  padding: 0 10px;
  font-weight: 700;
}

.phone-dial-row input:focus,
.phone-audio-settings select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.12);
}

.phone-forwarding-toggle {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid #dbe0da;
  border-radius: 8px;
  color: var(--ink);
  background: #f8faf7;
  font-size: 0.78rem;
  font-weight: 850;
}

.phone-forwarding-toggle input {
  grid-row: span 2;
  accent-color: var(--mint);
}

.phone-forwarding-toggle small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.phone-forwarding-toggle.is-active {
  border-color: rgba(82, 181, 169, 0.44);
  background: rgba(82, 181, 169, 0.12);
}

.phone-call-button {
  width: 38px;
  height: 36px;
  border-color: rgba(57, 135, 73, 0.28);
  border-radius: 6px;
  background: #2f8f48;
}

.phone-call-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.phone-call-button img,
.phone-hangup-button img,
.phone-accept-button img,
.phone-reject-button img {
  filter: invert(1);
}

.phone-audio-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.phone-audio-settings label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.phone-audio-settings select {
  padding: 0 8px;
  font-size: 0.78rem;
}

.phone-panel-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}

.phone-history-open {
  width: 100%;
  min-height: 100%;
  border: 1px solid #d9dfd8;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: left;
}

.phone-history-open:hover {
  border-color: rgba(31, 178, 166, 0.38);
  background: #f6fffd;
}

.phone-error {
  margin-top: 8px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 6px;
  padding: 7px 8px;
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.07);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.phone-incoming-view {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(57, 135, 73, 0.2);
  border-radius: 7px;
  padding: 10px;
  background: #fbfdfb;
}

.phone-incoming-view.is-ringing {
  animation: phoneIncomingPulse 1.1s ease-in-out infinite;
}

.phone-incoming-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.phone-incoming-title {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.phone-incoming-title strong,
.phone-incoming-title span,
.phone-incoming-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-incoming-title strong {
  flex: 0 1 auto;
  color: var(--ink);
  font-size: 0.92rem;
}

.phone-incoming-title span {
  flex: 1 1 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.phone-incoming-title span::before {
  content: "| ";
  color: #a7b1a8;
}

.phone-incoming-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.phone-incoming-actions {
  display: grid;
  grid-template-columns: 36px 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.phone-accept-button,
.phone-reject-button {
  width: 36px;
  height: 34px;
  border-radius: 6px;
}

.phone-accept-button {
  border-color: rgba(57, 135, 73, 0.28);
  background: #2f8f48;
}

.phone-reject-button {
  border-color: rgba(20, 184, 166, 0.26);
  background: var(--accent);
}

.phone-reject-button:hover {
  border-color: rgba(20, 184, 166, 0.26);
  background: var(--accent);
}

.phone-ignore-button {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.phone-ignore-button:hover {
  border-color: #c7d0c7;
  background: #f7f8f5;
}

@keyframes phoneIncomingPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(57, 135, 73, 0.18);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(57, 135, 73, 0.08);
  }
}

.phone-call-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.phone-call-view strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-call-view > span {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.phone-call-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.phone-call-action-stack {
  display: grid;
  justify-items: stretch;
}

.phone-call-shortcut-key {
  min-height: 13px;
  margin-top: -1px;
  border: 1px solid #dfe6df;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  padding: 1px 0 2px;
  color: var(--steel);
  background: #f8faf7;
  font: inherit;
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.phone-mute-button,
.phone-numpad-button,
.phone-hangup-button {
  width: 34px;
  height: 34px;
  border-radius: 6px;
}

.phone-mute-button,
.phone-numpad-button {
  background: #ffffff;
}

.phone-numpad-button,
.phone-numpad-toggle {
  color: var(--steel);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.power-dialer-bar .power-dialer-numpad-button.phone-numpad-toggle {
  width: 38px;
  height: 32px;
  border-radius: 7px 7px 0 0;
}

.power-dialer-bar .power-dialer-numpad-button.phone-numpad-toggle + .power-dialer-shortcut-key {
  width: 38px;
}

.phone-mute-button.is-muted {
  border-color: rgba(20, 184, 166, 0.25);
  background: rgba(20, 184, 166, 0.08);
}

.phone-hangup-button {
  border-color: rgba(20, 184, 166, 0.26);
  background: var(--accent);
}

.phone-hangup-button:hover {
  border-color: rgba(20, 184, 166, 0.26);
  background: var(--accent);
}

.phone-numpad-popover {
  position: fixed;
  z-index: 120;
  width: 210px;
  border: 1px solid #dbe3da;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(20, 34, 36, 0.18);
}

.phone-numpad-popover[hidden] {
  display: none !important;
}

.phone-numpad-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  margin-bottom: 9px;
}

.phone-numpad-head strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.phone-numpad-head span {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.phone-numpad-head button {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  border: 1px solid #dbe0da;
  border-radius: 50%;
  color: var(--steel);
  background: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.phone-numpad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.phone-numpad-grid button {
  min-height: 42px;
  border: 1px solid #dbe0da;
  border-radius: 9px;
  color: var(--ink);
  background: #fbfcfa;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 950;
}

.phone-numpad-grid button:hover {
  border-color: rgba(20, 184, 166, 0.34);
  background: rgba(20, 184, 166, 0.08);
}

.user-chip-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-round-action {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.header-round-action img {
  width: 17px;
  height: 17px;
}

.header-round-action:hover,
.header-round-action:focus-visible {
  border-color: rgba(20, 184, 166, 0.42);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.user-chip:hover strong,
.user-chip:focus-visible strong {
  color: var(--accent-strong);
}

.user-chip > span {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  background: #ffffff;
  font-weight: 800;
}

.user-chip strong,
.user-chip small {
  display: block;
  white-space: nowrap;
}

.user-chip strong {
  font-size: 0.9rem;
}

.user-chip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.user-chip-compact {
  padding-right: 2px;
}

.user-quick-card {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 85;
  width: min(290px, calc(100vw - 28px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.user-quick-card::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #ffffff;
  transform: rotate(45deg);
}

.user-quick-card h2 {
  margin: 2px 0 12px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.user-quick-list {
  display: grid;
  gap: 8px;
}

.user-quick-copy-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid #e3e8e1;
  border-radius: 13px;
  background: #fbfcfa;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.user-quick-copy-row:hover,
.user-quick-copy-row:focus-visible {
  border-color: rgba(20, 184, 166, 0.45);
  background: rgba(20, 184, 166, 0.07);
}

.user-quick-copy-row:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.user-quick-copy-row span,
.user-quick-copy-row strong,
.user-quick-copy-row small {
  min-width: 0;
  display: block;
}

.user-quick-copy-row small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.user-quick-copy-row strong {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-quick-copy-row em {
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}

.empty-workspace {
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(#eef1ec 1px, transparent 1px),
    linear-gradient(90deg, #eef1ec 1px, transparent 1px),
    #f8f9f6;
  background-size: 28px 28px;
}

.workspace {
  min-height: 0;
  overflow: hidden;
  padding: 28px;
  background: #f8f9f6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.accounting-workspace {
  overflow: auto;
}

.accounting-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.accounting-tabs {
  width: fit-content;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  background: #eef3ef;
}

.accounting-tabs a {
  border-radius: 7px;
  padding: 9px 15px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.accounting-tabs a:hover {
  color: var(--steel);
}

.accounting-tabs a.is-active {
  color: var(--steel);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 32, 29, 0.08);
}

.accounting-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(23, 32, 29, 0.06);
}

.accounting-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.accounting-panel-head h2,
.accounting-panel-head p {
  margin: 0;
}

.accounting-panel-head h2 {
  margin-top: 4px;
  color: var(--steel);
  font-size: 1.45rem;
}

.accounting-panel-head > div > p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.accounting-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.accounting-filter label {
  display: grid;
  gap: 5px;
}

.accounting-filter label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.accounting-filter input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  color: var(--steel);
  background: #ffffff;
  font: inherit;
}

.accounting-filter input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(20, 184, 166, 0.12);
}

.accounting-filter .secondary-action {
  min-height: 38px;
}

.accounting-filter-reset {
  align-self: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.accounting-alert {
  margin: 18px 24px 0;
}

.accounting-list-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  background: #f7faf8;
}

.accounting-incoming-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.accounting-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.accounting-select-all input,
.accounting-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.accounting-list-summary {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.accounting-list-summary strong {
  color: var(--steel);
}

.accounting-table-wrap {
  overflow-x: auto;
}

.accounting-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: var(--steel);
}

.accounting-table th,
.accounting-table td {
  border-top: 1px solid #edf0ec;
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.accounting-table th {
  color: var(--muted);
  background: #ffffff;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.accounting-table td {
  font-size: 0.82rem;
}

.accounting-table tbody tr:hover {
  background: #f8fbf9;
}

.accounting-table a:not(.icon-only) {
  color: var(--steel);
  font-weight: 750;
  text-decoration: none;
}

.accounting-table a:not(.icon-only):hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.accounting-table .accounting-number {
  text-align: right;
  white-space: nowrap;
}

.accounting-table td:first-child,
.accounting-table th:first-child,
.accounting-table td:last-child,
.accounting-table th:last-child {
  width: 42px;
  text-align: center;
}

.accounting-table-incoming td:first-child,
.accounting-table-incoming th:first-child {
  width: auto;
  text-align: left;
}

.accounting-file-name {
  max-width: 240px;
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounting-empty-state {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 40px 24px;
  color: var(--muted);
  text-align: center;
}

.accounting-empty-state img {
  width: 34px;
  height: 34px;
  margin-bottom: 5px;
  opacity: 0.55;
}

.accounting-empty-state strong {
  color: var(--steel);
}

.accounting-empty-state p {
  max-width: 460px;
  margin: 0;
  font-size: 0.86rem;
}

.incoming-invoice-modal-backdrop {
  z-index: 78;
  grid-template-columns: minmax(360px, 560px) minmax(500px, 680px);
  align-items: center;
  justify-content: center;
  gap: 12px;
  place-items: stretch;
}

.incoming-invoice-preview,
.incoming-invoice-modal {
  width: 100%;
  height: min(820px, calc(100vh - 48px));
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
  overflow: hidden;
}

.incoming-invoice-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.incoming-invoice-preview-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}

.incoming-invoice-preview-head h2 {
  max-width: 420px;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.incoming-invoice-preview .incoming-invoice-preview-toggle {
  display: none;
}

.incoming-invoice-preview-content {
  min-height: 0;
  display: grid;
  place-items: stretch;
  overflow: auto;
  border: 1px solid #e7ece6;
  border-radius: 8px;
  background: #f3f5f2;
}

.incoming-invoice-preview-content[hidden],
.incoming-invoice-preview-content iframe[hidden],
.incoming-invoice-preview-content > img[hidden],
.incoming-invoice-preview-placeholder[hidden] {
  display: none;
}

.incoming-invoice-preview-content iframe {
  width: 100%;
  height: 100%;
  min-height: 620px;
  border: 0;
  background: #ffffff;
}

.incoming-invoice-preview-content > img {
  max-width: 100%;
  height: auto;
  justify-self: center;
  align-self: start;
}

.incoming-invoice-preview-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.incoming-invoice-preview-placeholder img {
  width: 34px;
  height: 34px;
  opacity: 0.48;
}

.incoming-invoice-modal {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  gap: 13px;
}

.incoming-invoice-scan-state {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--steel);
  background: #f0fdfa;
}

.incoming-invoice-scan-state[hidden] {
  display: none;
}

.incoming-invoice-scan-state div {
  display: grid;
  gap: 2px;
}

.incoming-invoice-scan-state small {
  color: var(--muted);
  font-size: 0.72rem;
}

.incoming-invoice-spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 2px solid rgba(20, 184, 166, 0.22);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: incoming-invoice-spin 0.8s linear infinite;
}

@keyframes incoming-invoice-spin {
  to { transform: rotate(360deg); }
}

.incoming-invoice-message {
  margin: 0;
  max-height: 110px;
  overflow: auto;
  white-space: pre-line;
}

.incoming-invoice-message.is-error {
  border-color: #f1c4bf;
  color: #9f3128;
  background: #fff5f4;
}

.incoming-invoice-fields {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 2px 4px 4px 0;
}

.incoming-invoice-field {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 820;
}

.incoming-invoice-field-wide {
  grid-column: 1 / -1;
}

.incoming-invoice-field input,
.incoming-invoice-field textarea {
  width: 100%;
  border: 1px solid #dbe0da;
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 650;
  outline: none;
}

.incoming-invoice-field input {
  min-height: 39px;
}

.incoming-invoice-field textarea {
  resize: vertical;
}

.incoming-invoice-field input:focus,
.incoming-invoice-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.incoming-invoice-field > small {
  min-height: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.incoming-invoice-field.is-recognized > small {
  color: #18766d;
}

.incoming-invoice-field.is-uncertain > small {
  color: #9a6700;
}

.incoming-invoice-confirmations {
  display: grid;
  gap: 7px;
  border: 1px solid #f0d59a;
  border-radius: 8px;
  padding: 10px 12px;
  color: #704c00;
  background: #fffaf0;
  font-size: 0.76rem;
  font-weight: 800;
}

.incoming-invoice-confirmations[hidden],
.incoming-invoice-confirmations label[hidden] {
  display: none;
}

.incoming-invoice-confirmations label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.incoming-invoice-confirmations input {
  accent-color: var(--accent);
}

.incoming-invoice-modal .incoming-invoice-modal-actions {
  grid-template-columns: minmax(0, 1fr) auto auto;
  justify-content: flex-end;
}

.incoming-invoice-modal .incoming-invoice-modal-actions [data-incoming-invoice-replace-file] {
  margin-right: 0;
}

.incoming-invoice-menu {
  min-width: 180px;
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-padding: 28px;
  background:
    linear-gradient(#eef1ec 1px, transparent 1px),
    linear-gradient(90deg, #eef1ec 1px, transparent 1px),
    #f8f9f6;
  background-size: 28px 28px;
}

.dashboard-column {
  display: grid;
  align-content: start;
  gap: 18px;
}

.dashboard-inbox {
  width: 100%;
  max-height: min(620px, calc(100vh - 176px));
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(24, 33, 30, 0.08);
  overflow: hidden;
}

.dashboard-analysis {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.dashboard-inbox-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
}

.dashboard-inbox-head h2 {
  margin: 0;
  font-size: 1rem;
}

.dashboard-inbox-head > span {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid #edf0ec;
  border-radius: 999px;
  color: var(--steel);
  background: #fbfcfa;
  font-size: 0.78rem;
  font-weight: 900;
}

.dashboard-inbox-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border-top: 1px solid #edf0ec;
  border-bottom: 1px solid #edf0ec;
  padding: 6px;
  background: #fbfcfa;
}

.dashboard-inbox-tabs-three {
  grid-template-columns: repeat(3, 1fr);
}

.dashboard-inbox-tabs-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-inbox-tabs-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-inbox-tabs-single {
  grid-template-columns: 1fr;
}

.dashboard-inbox-tabs button {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 6px;
  padding: 7px 4px;
  color: var(--muted);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-inbox-tabs button > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-tab-count {
  min-width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.14);
  font-size: 0.62rem;
  font-weight: 950;
  line-height: 1;
  transform: translateY(-3px);
}

.dashboard-tab-count[hidden] {
  display: none;
}

.dashboard-inbox-tabs button.is-active {
  color: var(--ink);
  background: #edf1eb;
}

.dashboard-inbox-tabs button.is-active .dashboard-tab-count {
  color: var(--accent-dark);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.22);
}

.dashboard-offer-tabs button[data-inbox-filter="planned"].is-active {
  color: #1f2937;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #475569;
}

.dashboard-offer-tabs button[data-inbox-filter="offered"].is-active {
  color: #78350f;
  background: #fef3c7;
  box-shadow: inset 0 0 0 1px #d97706;
}

.dashboard-offer-tabs button[data-inbox-filter="accepted"].is-active {
  color: #166534;
  background: #dcfce7;
  box-shadow: inset 0 0 0 1px #16a34a;
}

.dashboard-offer-tabs button[data-inbox-filter="rejected"].is-active {
  color: #991b1b;
  background: #fee2e2;
  box-shadow: inset 0 0 0 1px #dc2626;
}

.dashboard-inbox-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  overflow: auto;
}

.calendar-workspace {
  overflow: auto;
  padding: 28px;
}

.outreach-workspace {
  overflow: auto;
  padding: 28px;
}

.outreach-channel-grid {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.outreach-channel-card {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  text-align: center;
  cursor: default;
  user-select: none;
}

.outreach-channel-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.outreach-channel-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.outreach-channel-link:hover,
.outreach-channel-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(10, 102, 194, 0.45);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  outline: none;
}

.linkedin-outreach {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  align-content: start;
  gap: 18px;
}

.ai-calling { width: min(1200px, 100%); margin: 0 auto; display: grid; gap: 16px; color: #172320; }
.ai-calling-head, .ai-calling-title, .ai-calling-live-head, .ai-calling-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ai-calling-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; padding: 20px; border: 1px solid #dbe6e3; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #fbfdfc 58%, #eefaf7 100%); box-shadow: 0 10px 28px rgba(28, 58, 51, .055); }
.ai-calling-title { justify-content: flex-start; min-width: 0; }
.ai-calling-title h1, .ai-calling-live h2, .ai-calling-panel h2 { margin: 0; }
.ai-calling-title h1 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; }
.ai-calling-title p, .ai-calling-live p, .ai-calling-panel p { margin: 4px 0 0; color: var(--muted); }
.ai-calling-title > div:last-child { min-width: 0; }
.ai-calling-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(145deg, #dff8f1, #f4fcfa); box-shadow: inset 0 0 0 1px #caeee6; }
.ai-calling-icon img { width: 23px; }
.ai-calling-control-card { min-width: 375px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 14px; border: 1px solid #d8e3e1; border-radius: 13px; background: rgba(255, 255, 255, .9); box-shadow: 0 5px 16px rgba(31, 58, 52, .045); }
.ai-calling-control-status { display: grid; gap: 4px; }
.ai-calling-control-status small { color: #71807e; font-size: 11px; }
.ai-calling-control-actions { display: flex; align-items: center; gap: 8px; }
.ai-calling-control-actions form { margin: 0; }
.ai-calling-control-actions .primary-action:disabled { color: #84918f; background: #edf2f1; border-color: #dce5e3; opacity: 1; cursor: not-allowed; }
.ai-calling-state, .live-call-pulse, .ai-calling-consent-ok { width: fit-content; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 750; background: #eef2f2; }
.ai-calling-state { display: inline-flex; align-items: center; gap: 7px; color: #53635f; }
.ai-calling-state i { width: 7px; height: 7px; border-radius: 50%; background: #9aa8a5; box-shadow: 0 0 0 3px rgba(154, 168, 165, .14); }
.ai-calling-state.state-running, .ai-calling-consent-ok { color: #08735d; background: #dff8f0; }
.ai-calling-state.state-running i { background: #11ad88; box-shadow: 0 0 0 3px rgba(17, 173, 136, .14); }
.ai-calling-state.state-emergency_stopped { color: #a32222; background: #ffe8e8; }
.ai-calling-state.state-emergency_stopped i { background: #d84b4b; box-shadow: 0 0 0 3px rgba(216, 75, 75, .13); }
.ai-calling-emergency, .ai-calling-controls .danger-action { border: 1px solid #f2c1c1; background: #fff7f7; color: #a32222; border-radius: 9px; padding: 9px 12px; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.ai-calling-emergency:hover { background: #fff0f0; border-color: #eaa6a6; }
.ai-calling-emergency img, .ai-calling-controls button img { width: 16px; }
.ai-calling-toolbox { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 14px; border-top: 1px solid #e6eeec; }
.ai-calling-toolbox > span { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; color: #53635f; font-size: 12px; }
.ai-calling-toolbox > span img { width: 16px; }
.ai-calling-toolbox button { background: rgba(255,255,255,.78); }
.ai-calling-readiness { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; margin-top: -2px; padding: 11px 13px; border: 1px solid #efd79c; border-radius: 11px; color: #72551e; background: #fff9ea; }
.ai-calling-readiness > img { width: 18px; margin-top: 1px; }
.ai-calling-readiness > span { display: grid; gap: 2px; }
.ai-calling-readiness small { color: #8b6e34; }
.ai-calling-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ai-calling-kpis article, .ai-calling-panel, .ai-calling-live, .ai-calling-manage { background: #fff; border: 1px solid #dde6e5; border-radius: 15px; padding: 16px; }
.ai-calling-kpis article { position: relative; min-height: 145px; overflow: hidden; padding: 16px 17px; box-shadow: 0 6px 18px rgba(34, 61, 55, .035); }
.ai-calling-kpis article::after { content: ''; position: absolute; right: -28px; bottom: -36px; width: 92px; height: 92px; border-radius: 50%; background: var(--kpi-tint, #edf6f4); opacity: .75; }
.ai-calling-kpi-label { display: flex; align-items: center; gap: 9px; }
.ai-calling-kpi-label > span:last-child { color: #61716e; font-size: 10px; font-weight: 800; letter-spacing: .065em; }
.ai-calling-kpi-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--kpi-tint, #edf6f4); }
.ai-calling-kpi-icon img { width: 15px; }
.ai-calling-kpis article > strong { position: relative; z-index: 1; display: block; margin: 10px 0 2px; font-size: 32px; line-height: 1; letter-spacing: -.03em; }
.ai-calling-kpis article > small { position: relative; z-index: 1; color: #7c8987; font-size: 11px; line-height: 1.35; }
.ai-calling-kpis .tone-target { --kpi-tint: #e9f2ff; }
.ai-calling-kpis .tone-complete { --kpi-tint: #def8ef; }
.ai-calling-kpis .tone-queue { --kpi-tint: #fff1d8; }
.ai-calling-kpis .tone-eligible { --kpi-tint: #eeeafe; }
.ai-calling-review-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(225px, .72fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid #9adfd1; border-radius: 15px; background: linear-gradient(135deg, #f1fcf9, #fff); box-shadow: 0 7px 22px rgba(14, 120, 98, .04); }
.ai-calling-review-panel h2, .ai-calling-review-panel p { margin: 3px 0 0; }
.ai-calling-review-panel h2 span { display: inline-grid; place-items: center; min-width: 25px; height: 25px; margin-left: 5px; padding: 0 7px; border-radius: 999px; color: #08735d; background: #dff8f0; font-size: 14px; vertical-align: 2px; }
.ai-calling-review-panel p, .ai-calling-review-panel small { color: #71807e; }
.ai-calling-review-panel button:disabled { color: #84918f; background: #edf2f1; border-color: #dce5e3; opacity: 1; cursor: not-allowed; }
.ai-calling-review-contacts { display: grid; gap: 5px; }
.ai-calling-review-contacts a { display: flex; justify-content: space-between; gap: 10px; color: inherit; text-decoration: none; padding: 7px 9px; border-radius: 8px; background: rgba(255,255,255,.82); }
.ai-calling-review-contacts a small { text-align: right; }
.ai-calling-review-contacts.is-empty { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.72); }
.ai-calling-review-contacts.is-empty > img { width: 24px; }
.ai-calling-review-contacts.is-empty > span { display: grid; gap: 2px; }
.ai-calling-live { border-color: #8cddcd; box-shadow: 0 8px 28px rgba(14, 120, 98, .09); }
.live-call-pulse { color: #08735d; background: #dff8f0; }
.live-call-pulse::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #11ad88; animation: ai-call-pulse 1.5s infinite; }
@keyframes ai-call-pulse { 50% { opacity: .35; transform: scale(.8); } }
.ai-calling-live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; margin-top: 14px; }
.ai-calling-transcript { min-height: 180px; max-height: 320px; overflow: auto; padding: 14px; border-radius: 12px; background: #f6f9f8; }
.ai-calling-transcript p { display: grid; grid-template-columns: 65px 1fr; gap: 10px; margin: 0 0 10px; color: #1c2927; }
.ai-calling-transcript strong { color: #08735d; font-size: 12px; }
.ai-calling-transcript .speaker-contact strong { color: #485b91; }
.ai-calling-controls { display: grid; align-content: start; gap: 9px; }
.ai-calling-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ai-calling-panel { min-height: 190px; box-shadow: 0 6px 18px rgba(34, 61, 55, .03); }
.ai-calling-panel-head > strong { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #53635f; background: #f0f4f3; font-size: 13px; }
.ai-calling-list { display: grid; gap: 8px; margin-top: 12px; max-height: 410px; overflow: auto; }
.ai-calling-list > a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: #f7f9f9; text-decoration: none; color: inherit; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.ai-calling-list > a:hover { border-color: #cce5df; background: #f1faf8; transform: translateY(-1px); }
.ai-calling-list span > * { display: block; }
.ai-calling-list small, .ai-calling-list time { color: #71807e; font-size: 11px; }
.ai-calling-avatar { width: 34px; height: 34px; border-radius: 9px; background: #e3f4f0; color: #08735d; display: grid !important; place-items: center; font-weight: 700; }
.ai-calling-empty { min-height: 108px; display: grid; place-items: center; align-content: center; gap: 4px; padding: 16px; border: 1px dashed #d5e1df; border-radius: 11px; color: #53635f; background: #fbfdfd; text-align: center; }
.ai-calling-empty > span { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 10px; background: #edf7f5; }
.ai-calling-empty img { width: 17px; }
.ai-calling-empty small { max-width: 330px; line-height: 1.4; }
.ai-calling-manage { padding: 0; overflow: hidden; }
.ai-calling-manage > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 13px 16px; transition: background .15s ease; }
.ai-calling-manage > summary::-webkit-details-marker { display: none; }
.ai-calling-manage > summary:hover { background: #fbfdfd; }
.ai-calling-manage > summary > span:not(.ai-calling-manage-icon):not(.ai-calling-manage-meta) { display: grid; margin-right: auto; }
.ai-calling-manage > summary small { color: #71807e; font-weight: 400; margin-top: 3px; }
.ai-calling-manage-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 11px; background: #edf7f5; }
.ai-calling-manage-icon img { width: 18px; }
.ai-calling-manage-meta { display: flex; align-items: center; gap: 0; color: #71807e; }
.ai-calling-manage-meta b { padding: 0; color: inherit; background: transparent; font-size: 10px; font-weight: 650; white-space: nowrap; }
.ai-calling-manage-meta b + b::before { content: '·'; margin: 0 7px; color: #abb5b3; }
.ai-calling-count-pill { padding: 5px 8px; border-radius: 999px; color: #60706d; background: #f0f4f3; font-size: 10px; white-space: nowrap; }
.ai-calling-manage-chevron { width: 16px; transition: transform .18s ease; }
.ai-calling-manage[open] > summary .ai-calling-manage-chevron { transform: rotate(180deg); }
.ai-calling-settings { border-top: 1px solid #e5eceb; padding: 0 20px 18px; display: grid; gap: 0; background: #fff; }
.ai-calling-settings fieldset { border: 0; padding: 0; margin: 0; }
.ai-calling-settings legend, .ai-calling-settings label > span { font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.ai-calling-setting-section { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 12px 28px; align-items: start; padding: 22px 0; border: 0; border-top: 1px solid #e9efed; background: transparent; }
.ai-calling-setting-section:first-of-type { border-top: 0; }
.ai-calling-setting-section > header { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: flex-start; gap: 10px; padding-top: 3px; }
.ai-calling-setting-section > header > span { min-width: 26px; color: #15977d; font-size: 10px; font-weight: 800; letter-spacing: .06em; line-height: 1.5; }
.ai-calling-setting-section > header > div { display: grid; gap: 2px; }
.ai-calling-setting-section > header strong { font-size: 14px; }
.ai-calling-setting-section > header small { color: #71807e; font-size: 11px; line-height: 1.4; }
.ai-calling-setting-section > :not(header):not(script) { grid-column: 2; }
.ai-calling-dropdown-row { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ai-calling-multiselect { position: relative; min-width: 0; }
.ai-calling-multiselect > summary { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 7px 10px; border: 1px solid #d3dddb; border-radius: 8px; background: #fff; cursor: pointer; list-style: none; }
.ai-calling-multiselect > summary::-webkit-details-marker { display: none; }
.ai-calling-multiselect > summary > span { display: grid; min-width: 0; margin-right: auto; }
.ai-calling-multiselect > summary small { color: #53635f; font-size: 11px; font-weight: 700; }
.ai-calling-multiselect > summary strong { overflow: hidden; color: #172320; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ai-calling-multiselect > summary img { width: 16px; flex: 0 0 16px; transition: transform .16s ease; }
.ai-calling-multiselect[open] { z-index: 5; }
.ai-calling-multiselect[open] > summary { border-color: #71cfc0; box-shadow: 0 0 0 3px rgba(22, 183, 153, .1); }
.ai-calling-multiselect[open] > summary img { transform: rotate(180deg); }
.ai-calling-multiselect-menu { position: absolute; top: calc(100% + 6px); right: 0; left: 0; z-index: 20; max-height: 280px; overflow-y: auto; padding: 7px !important; border: 1px solid #d6e2df !important; border-radius: 11px; background: #fff; box-shadow: 0 14px 34px rgba(30, 53, 48, .15); }
.ai-calling-options, .ai-calling-weekdays { display: grid; gap: 3px; }
.ai-calling-multiselect-menu .ai-calling-weekdays { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ai-calling-multiselect-menu .ai-calling-options label, .ai-calling-multiselect-menu .ai-calling-weekdays label { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 9px 10px; border: 0; border-radius: 7px; cursor: pointer; }
.ai-calling-multiselect-menu label:hover, .ai-calling-multiselect-menu label:focus-within { background: #f0faf7; }
.ai-calling-multiselect-menu label > span { min-width: 0; margin: 0; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ai-calling-multiselect-menu input { accent-color: #10a98a; }
.ai-calling-multiselect-menu p { margin: 8px; color: #71807e; font-size: 12px; }
.ai-calling-schedule-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.ai-calling-schedule-grid > label, .ai-calling-conversation-grid > label { display: grid; }
.ai-calling-range-input { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.ai-calling-range-input i { color: #8a9694; font-size: 11px; font-style: normal; }
.ai-calling-settings input, .ai-calling-settings textarea, .ai-calling-settings select, .ai-calling-consent-form input { border: 1px solid #ccd8d6; border-radius: 8px; padding: 9px; font: inherit; background: #fff; }
.ai-calling-settings input, .ai-calling-settings textarea, .ai-calling-settings select { width: 100%; }
.ai-calling-settings .ai-calling-multiselect-menu input[type="checkbox"] { width: 14px; height: 14px; flex: 0 0 14px; margin: 0; padding: 0; border-radius: 3px; }
.ai-calling-settings input:focus, .ai-calling-settings textarea:focus, .ai-calling-settings select:focus, .ai-calling-multiselect > summary:focus-visible { outline: 0; border-color: #62c8b5; box-shadow: 0 0 0 3px rgba(22, 183, 153, .11); }
.ai-calling-conversation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ai-calling-script-picker { display: grid; gap: 7px; }
.ai-calling-script-picker > small { color: #71807e; font-size: 12px; font-weight: 400; }
.ai-calling-script-preview { display: grid; gap: 5px; padding: 0; border: 1px solid #dbe4e2; border-radius: 9px; background: #f8faf9; overflow: hidden; }
.ai-calling-script-preview[hidden] { display: none; }
.ai-calling-script-preview > summary { display: flex; align-items: center; gap: 10px; padding: 11px 13px; cursor: pointer; list-style: none; }
.ai-calling-script-preview > summary::-webkit-details-marker { display: none; }
.ai-calling-script-preview > summary > span { display: grid; gap: 2px; margin-right: auto; }
.ai-calling-script-preview > summary small { color: #71807e; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.ai-calling-script-preview > summary img { width: 15px; transition: transform .16s ease; }
.ai-calling-script-preview[open] > summary img { transform: rotate(180deg); }
.ai-calling-script-preview > p { max-height: 240px; overflow: auto; margin: 0; padding: 13px 14px; border-top: 1px solid #e2e9e7; color: #435451; background: #fff; white-space: pre-wrap; line-height: 1.5; }
.ai-calling-advanced { width: fit-content; }
.ai-calling-advanced > summary { color: #60706d; cursor: pointer; font-size: 11px; font-weight: 700; }
.ai-calling-advanced > label { width: min(260px, 100%); display: grid; margin-top: 10px; }
.ai-calling-savebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 0; border: 0; border-top: 1px solid #e9efed; border-radius: 0; background: #fff; box-shadow: none; }
.ai-calling-savebar > span { display: flex; align-items: center; gap: 9px; color: #667572; }
.ai-calling-savebar > span img { width: 18px; }
.ai-calling-savebar button { flex: 0 0 auto; }
.ai-calling-savebar button img { width: 15px; }
.ai-calling-consents { border-top: 1px solid #e5eceb; max-height: 480px; overflow: auto; }
.ai-calling-consents article { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #edf1f1; }
.ai-calling-consents article > div { display: grid; margin-right: auto; }
.ai-calling-consents small { color: #71807e; }
.ai-calling-consent-form { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.ai-calling-consents-empty { display: grid; place-items: center; gap: 4px; padding: 26px 16px; color: #667572; text-align: center; }
.ai-calling-consents-empty img { width: 25px; margin-bottom: 4px; }
.ai-calling-prompt-dialog { width: min(980px, calc(100vw - 32px)); max-width: none; height: min(820px, calc(100vh - 40px)); max-height: none; padding: 0; border: 0; border-radius: 16px; color: #172320; background: #fff; box-shadow: 0 24px 80px rgba(17, 35, 31, .28); }
.ai-calling-prompt-dialog::backdrop { background: rgba(18, 31, 29, .58); backdrop-filter: blur(3px); }
.ai-calling-prompt-form { height: 100%; display: grid; grid-template-rows: auto auto auto minmax(260px, 1fr) auto auto auto; gap: 12px; padding: 22px; }
.ai-calling-prompt-form > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ai-calling-prompt-form h2 { margin: 2px 0 0; font-size: 25px; }
.ai-calling-prompt-form .icon-button { width: 36px; height: 36px; border: 1px solid #dbe4e2; border-radius: 9px; background: #fff; color: #53635f; font-size: 24px; line-height: 1; cursor: pointer; }
.ai-calling-prompt-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid #c8e9e1; border-radius: 11px; background: #f3fcfa; }
.ai-calling-prompt-intro p { margin: 0; color: #435451; line-height: 1.45; }
.ai-calling-prompt-intro span { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; color: #08735d; background: #dff8f0; font-size: 11px; font-weight: 800; }
.ai-calling-prompt-form > label { font-size: 12px; font-weight: 800; }
.ai-calling-prompt-form textarea { width: 100%; min-height: 0; resize: none; padding: 15px; border: 1px solid #cbd8d5; border-radius: 11px; color: #1b2926; background: #fbfdfd; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.ai-calling-prompt-form textarea:focus { outline: 0; border-color: #62c8b5; box-shadow: 0 0 0 3px rgba(22, 183, 153, .11); }
.ai-calling-prompt-counter { margin: -7px 2px 0; color: #71807e; font-size: 11px; text-align: right; }
.ai-calling-prompt-status { min-height: 18px; margin: 0; color: #08735d; font-size: 12px; font-weight: 700; }
.ai-calling-prompt-status.is-error { color: #a32222; }
.ai-calling-prompt-form > footer { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 9px; }
.ai-calling-prompt-form > small { color: #71807e; line-height: 1.4; }
@media (max-width: 1080px) {
  .ai-calling-hero { grid-template-columns: 1fr; }
  .ai-calling-control-card { min-width: 0; }
  .ai-calling-setting-section { grid-template-columns: 180px minmax(0, 1fr); gap: 12px 20px; }
  .ai-calling-schedule-grid { grid-template-columns: 1fr 1fr; }
  .ai-calling-schedule-grid > .ai-calling-multiselect { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  .ai-calling-live-head { align-items: flex-start; flex-direction: column; }
  .ai-calling-kpis { grid-template-columns: 1fr 1fr; }
  .ai-calling-main-grid, .ai-calling-live-grid, .ai-calling-review-panel, .ai-calling-conversation-grid { grid-template-columns: 1fr; }
  .ai-calling-review-panel button { justify-self: stretch; justify-content: center; }
  .ai-calling-manage-meta { display: none; }
  .ai-calling-setting-section { grid-template-columns: 1fr; gap: 14px; padding: 18px 0; }
  .ai-calling-setting-section > :not(header):not(script) { grid-column: 1; }
  .ai-calling-savebar { align-items: stretch; flex-direction: column; }
  .ai-calling-savebar button { justify-content: center; }
}
@media (max-width: 620px) {
  .ai-calling { gap: 12px; }
  .ai-calling-hero { padding: 14px; border-radius: 14px; }
  .ai-calling-title { align-items: flex-start; }
  .ai-calling-title .settings-category-back { flex: 0 0 auto; }
  .ai-calling-icon { display: none; }
  .ai-calling-title h1 { font-size: 26px; }
  .ai-calling-title p:last-child { font-size: 12px; line-height: 1.4; }
  .ai-calling-control-card { grid-template-columns: 1fr; }
  .ai-calling-control-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ai-calling-control-actions button { width: 100%; justify-content: center; }
  .ai-calling-toolbox { display: grid; grid-template-columns: 1fr 1fr; }
  .ai-calling-toolbox > span { grid-column: 1 / -1; }
  .ai-calling-toolbox button { justify-content: center; }
  .ai-calling-toolbox button:last-child { grid-column: 1 / -1; }
  .ai-calling-kpis { gap: 8px; }
  .ai-calling-kpis article { min-height: 128px; padding: 13px; }
  .ai-calling-kpis article > strong { font-size: 28px; }
  .ai-calling-kpi-label > span:last-child { font-size: 9px; }
  .ai-calling-review-panel, .ai-calling-panel { padding: 14px; }
  .ai-calling-review-panel h2 { font-size: 20px; }
  .ai-calling-manage > summary { padding: 12px; }
  .ai-calling-manage-icon { display: none; }
  .ai-calling-settings { padding: 10px; }
  .ai-calling-setting-section { padding: 13px; }
  .ai-calling-schedule-grid { grid-template-columns: 1fr; }
  .ai-calling-schedule-grid > .ai-calling-multiselect { grid-column: auto; }
  .ai-calling-range-input { gap: 5px; }
  .ai-calling-consents article { align-items: stretch; flex-direction: column; }
  .ai-calling-consent-form { display: grid; grid-template-columns: 1fr; }
  .ai-calling-multiselect-menu .ai-calling-weekdays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-calling-prompt-dialog { width: 100vw; height: 100vh; border-radius: 0; }
  .ai-calling-prompt-form { padding: 16px; grid-template-rows: auto auto auto minmax(240px, 1fr) auto auto auto; }
  .ai-calling-prompt-intro { display: grid; }
  .ai-calling-prompt-intro span { justify-self: start; }
  .ai-calling-prompt-form > footer { grid-template-columns: 1fr 1fr; }
  .ai-calling-prompt-form > footer > span { display: none; }
  .ai-calling-prompt-form > footer button { justify-content: center; }
  .ai-calling-prompt-form > footer [data-ai-calling-prompt-save] { grid-column: 1 / -1; }
}

.timeline-ai-call-tag { display: inline-flex; margin-left: 6px; padding: 2px 6px; border-radius: 999px; color: #096b59; background: #dff8f0; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .08em; vertical-align: 1px; }
.ai-call-timeline-context, .ai-call-review-evidence { margin: 10px 0; padding: 12px; border: 1px solid #b8e8df; border-radius: 10px; background: #f4fcfa; }
.ai-call-timeline-context > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-call-timeline-context span, .ai-call-review-evidence > strong { color: #08735d; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ai-call-timeline-context p, .ai-call-review-evidence p { margin: 7px 0 3px; white-space: pre-wrap; }
.ai-call-timeline-context small, .ai-call-review-evidence small { color: #71807e; }
.ai-call-review-evidence details { border-top: 1px solid rgba(15, 118, 110, .14); padding-top: 8px; }
.ai-call-review-evidence summary { color: #08735d; cursor: pointer; font-size: .78rem; font-weight: 700; }
.ai-call-review-transcript { display: grid; gap: 5px; margin-top: 8px; max-height: 180px; overflow-y: auto; }
.ai-call-review-transcript p { margin: 0; font-size: .78rem; }
.ai-call-opt-out-confirmation { display: flex !important; align-items: flex-start; gap: 9px; margin: 10px 0; padding: 12px; border: 1px solid #efc078; border-radius: 10px; background: #fff8e7; }
.ai-call-opt-out-confirmation input { margin-top: 3px; }
.ai-call-opt-out-confirmation span { display: grid; gap: 3px; color: #765625; }

.linkedin-outreach-head,
.linkedin-panel-head,
.linkedin-campaign-title,
.linkedin-browser-controls,
.linkedin-campaign-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.linkedin-outreach-head h1,
.linkedin-panel h2 {
  margin: 3px 0;
}

.linkedin-outreach-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.linkedin-outreach-title,
.linkedin-browser-title,
.linkedin-connect-intro {
  display: flex;
  align-items: center;
  gap: 14px;
}

.linkedin-outreach-title .settings-category-back {
  flex: 0 0 auto;
}

.linkedin-title-icon,
.linkedin-connect-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e7f3ff;
}

.linkedin-title-icon {
  width: 48px;
  height: 48px;
}

.linkedin-title-icon img { width: 30px; height: 30px; }

.linkedin-connect-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.linkedin-connect-intro {
  align-items: flex-start;
}

.linkedin-connect-intro h2 {
  margin: 3px 0 6px;
  font-size: 1.35rem;
}

.linkedin-connect-intro p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.linkedin-connect-logo {
  width: 62px;
  height: 62px;
}

.linkedin-connect-logo img { width: 38px; height: 38px; }

.linkedin-connect-steps {
  grid-column: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.linkedin-connect-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #edf0ec;
  border-radius: 11px;
  background: #fbfcfa;
}

.linkedin-connect-steps li > span {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.linkedin-connect-steps li div { display: grid; gap: 2px; }
.linkedin-connect-steps small { color: var(--muted); line-height: 1.35; }

.linkedin-connect-consent {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dfe9e6;
  border-radius: 13px;
  background: #f7faf9;
}

.linkedin-safety-note {
  border: 1px solid #e5e8e5;
  border-radius: 10px;
  background: #fff;
}

.linkedin-safety-note summary {
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}

.linkedin-safety-note p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.linkedin-connect-button {
  width: 100%;
  justify-content: center;
}

.linkedin-connect-button img {
  width: 19px;
  height: 19px;
  border-radius: 4px;
}

.linkedin-account-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.linkedin-account-pill img { width: 30px; height: 30px; border-radius: 7px; }
.linkedin-account-pill span { display: grid; gap: 2px; }
.linkedin-account-pill small { color: var(--muted); }
.linkedin-account-pill.is-paused { border-color: #f4b860; background: #fffaf0; }

.linkedin-account-status {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.linkedin-account-status.is-connected { color: #047857; background: #d1fae5; }
.linkedin-account-status.is-paused { color: #92400e; background: #fef3c7; }
.linkedin-profile-link { margin: 10px 0; text-align: center; }

.linkedin-warning-card,
.linkedin-risk-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #f0c36d;
  background: #fff8e8;
}

.linkedin-warning-card { border-color: #9ec5eb; background: #eef7ff; }
.linkedin-warning-card p,
.linkedin-risk-card p { margin: 5px 0 0; line-height: 1.5; }

.linkedin-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.linkedin-phase-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 15px 16px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
}

.linkedin-phase-card:hover,
.linkedin-phase-card:focus-visible,
.linkedin-phase-card.is-active { border-color: #0a66c2; background: #f2f8fe; outline: none; }
.linkedin-phase-card.is-coming-soon:not(.is-active) { color: var(--muted); }
.linkedin-phase-card > span:last-child { display: grid; gap: 3px; min-width: 0; }
.linkedin-phase-card small { color: var(--muted); }
.linkedin-phase-number {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #0a66c2;
  font-size: 0.78rem;
  font-weight: 900;
}

.linkedin-coming-soon { display: flex; align-items: center; gap: 14px; min-height: 150px; }
.linkedin-coming-soon h2 { margin: 3px 0 5px; }
.linkedin-coming-soon p:last-child { margin: 0; color: var(--muted); }

.linkedin-message-dashboard { margin-bottom: 14px; }
.linkedin-message-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.linkedin-message-version { margin: -2px 0 0; color: var(--muted); font-size: .76rem; }
.linkedin-sales-grid.linkedin-message-activity-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.linkedin-message-variant-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.linkedin-message-variant-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.linkedin-message-variant-card span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.linkedin-message-variant-card strong { font-size: 24px; }
.linkedin-message-variant-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.linkedin-message-variant-card.is-summary { background: #f7f9f8; }
.linkedin-message-settings { display: grid; gap: 14px; padding: 16px; }
.linkedin-inherited-settings { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f7f9f8; }
.linkedin-inherited-settings span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.linkedin-inherited-settings small { color: var(--muted); }
.linkedin-message-quantity { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 10px; }
.linkedin-message-quantity label,
.linkedin-message-templates label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.linkedin-message-quantity input,
.linkedin-message-templates textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); font: inherit; padding: 10px 11px; box-sizing: border-box; }
.linkedin-message-templates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.linkedin-message-templates textarea { resize: vertical; min-height: 150px; line-height: 1.45; }
.linkedin-message-templates small { font-weight: 500; }
.linkedin-message-preview { display: block; min-height: 58px; margin-top: 1px; padding: 9px 10px; border: 1px dashed var(--line); border-radius: 8px; background: #f7f9f8; color: var(--text); font-size: .78rem; font-weight: 500; line-height: 1.45; white-space: pre-wrap; }
.linkedin-message-preview::before { content: "Vorschau"; display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.linkedin-template-help { margin: 0; color: var(--muted); font-size: 12px; }
.linkedin-template-help code { display: inline-block; margin: 2px; padding: 2px 5px; border-radius: 5px; background: #f7f9f8; color: var(--text); }

.linkedin-sales-dashboard {
  display: grid;
  gap: 14px;
}

.linkedin-sales-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #b9ddd8;
  border-radius: 15px;
  background: linear-gradient(135deg, #f2fbf9 0%, #fff 72%);
  box-shadow: var(--shadow-soft);
}

.linkedin-sales-toolbar h2 { margin: 3px 0 5px; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.linkedin-sales-toolbar p:last-child { margin: 0; color: var(--muted); }
.linkedin-sales-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.linkedin-sales-toolbar-actions form { margin: 0; }
.linkedin-sales-toolbar-actions button { white-space: nowrap; }

.linkedin-sales-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 14px;
}

.linkedin-sales-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.linkedin-today-card { border-color: #badbd6; }
.linkedin-accepted-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.linkedin-sales-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.linkedin-sales-card-head h3 { margin: 0 0 3px; font-size: 1rem; }
.linkedin-sales-card-head p { margin: 0; color: var(--muted); font-size: 0.78rem; }
.linkedin-sales-card-head > strong {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 0.78rem;
}

.linkedin-sales-list { display: grid; gap: 7px; margin-top: 13px; }
.linkedin-accepted-history {
  min-height: 0;
  max-height: none;
  flex: 1 1 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 0 4px 2px 0;
}
.linkedin-accepted-history:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 10px;
}
.linkedin-sales-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 11px;
  background: #f7f9f8;
}
.linkedin-sales-person.is-connected { background: #f1faf5; }
.linkedin-person-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #075985;
  background: #e7f3ff;
  font-size: 0.78rem;
  font-weight: 900;
}
.linkedin-sales-person.is-connected .linkedin-person-avatar { color: #047857; background: #dff7e9; }
.linkedin-sales-person a { min-width: 0; display: grid; gap: 2px; color: inherit; text-decoration: none; }
.linkedin-sales-person a:hover strong { color: var(--accent-dark); }
.linkedin-sales-person strong,
.linkedin-sales-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkedin-sales-person small { color: var(--muted); font-size: 0.72rem; }
.linkedin-sales-time { color: var(--muted); font-size: 0.7rem; font-weight: 800; white-space: nowrap; }
.linkedin-sales-time.is-sent { color: #047857; }
.linkedin-sales-time.is-searching { color: #0369a1; }
.linkedin-sales-time.is-due { color: #b45309; }
.linkedin-sales-empty { margin: 4px 0 0; padding: 18px 10px; color: var(--muted); text-align: center; }

.linkedin-disclosure { padding: 0; overflow: hidden; }
.linkedin-disclosure > summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.linkedin-disclosure > summary::-webkit-details-marker { display: none; }
.linkedin-disclosure > summary > span:first-child { min-width: 0; display: grid; gap: 3px; margin-right: auto; }
.linkedin-disclosure > summary strong { font-size: 0.94rem; }
.linkedin-disclosure > summary small { color: var(--muted); font-size: 0.75rem; }
.linkedin-disclosure > summary > img { width: 16px; height: 16px; transition: transform 160ms ease; }
.linkedin-disclosure[open] > summary > img { transform: rotate(180deg); }
.linkedin-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.linkedin-disclosure .linkedin-campaign-form,
.linkedin-disclosure .linkedin-history-filters { margin: 0; padding: 16px; }
.linkedin-disclosure .linkedin-status-summary { margin: 0; padding: 0 16px 12px; }
.linkedin-disclosure .linkedin-target-list { margin: 0; padding: 0 16px 16px; }
.linkedin-disclosure .dashboard-inbox-empty { margin: 0 16px 16px; }
.linkedin-disclosure-count { min-width: 28px; padding: 4px 8px; border-radius: 999px; background: #eef2f1; font-size: 0.74rem; font-weight: 800; text-align: center; }
.linkedin-account-disclosure .linkedin-sidebar { grid-template-columns: minmax(0, 1fr); padding: 16px; }

.linkedin-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 16px;
}

.linkedin-sidebar,
.linkedin-main { display: grid; align-content: start; gap: 16px; }

.linkedin-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
}

.linkedin-risk-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  line-height: 1.35;
  cursor: pointer;
}

.linkedin-risk-confirm input { margin-top: 2px; }
.linkedin-risk-confirm span { color: var(--ink); font-size: 0.86rem; }

.linkedin-campaign-list,
.linkedin-target-list { display: grid; gap: 8px; margin-top: 10px; }

.linkedin-campaign-link {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.linkedin-campaign-link:hover,
.linkedin-campaign-link.is-active { border-color: #0a66c2; background: #f2f8fe; }
.linkedin-campaign-link small { color: var(--muted); }
.linkedin-campaign-link span { width: max-content; padding: 2px 7px; border-radius: 999px; color: #075985; background: #e0f2fe; font-size: 0.72rem; font-weight: 700; }

.linkedin-create-panel summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

.linkedin-campaign-form { display: grid; gap: 14px; margin-top: 16px; }
.linkedin-campaign-form label { display: grid; gap: 6px; }
.linkedin-campaign-form label > span { font-size: 0.78rem; font-weight: 700; }
.linkedin-form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.linkedin-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.linkedin-selection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.linkedin-selection label,
.linkedin-selection-list label { display: flex; grid-template-columns: auto 1fr; flex-direction: row; align-items: flex-start; gap: 7px; }
.linkedin-selection label span,
.linkedin-selection-list label span { display: grid; gap: 2px; }
.linkedin-selection small,
.linkedin-selection-list small { color: var(--muted); }
.linkedin-contact-selection { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.linkedin-contact-selection summary { cursor: pointer; font-weight: 600; }
.linkedin-template-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.linkedin-template-previews > div { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; }
.linkedin-template-previews pre { min-height: 38px; margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: var(--muted); }
.linkedin-selection-list { max-height: 280px; display: grid; gap: 7px; margin-top: 10px; overflow: auto; }

.linkedin-connection-preview {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #cfe0dc;
  border-radius: 11px;
  background: #f7faf9;
}
.linkedin-preview-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.linkedin-preview-counts button {
  min-height: 34px;
  border: 1px solid #dce5e2;
  border-radius: 9px;
  padding: 7px 9px;
  color: var(--steel);
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  text-align: left;
}
.linkedin-preview-counts button:hover:not(:disabled),
.linkedin-preview-counts button:focus-visible { border-color: var(--accent); color: var(--accent-dark); outline: none; }
.linkedin-preview-counts button:disabled { cursor: default; opacity: 0.65; }
.linkedin-preview-counts button strong { color: inherit; }
.linkedin-connection-preview ul { display: grid; gap: 3px; margin: 0; padding-left: 19px; color: var(--muted); font-size: 0.78rem; }
.linkedin-connection-settings { display: flex; align-items: end; gap: 14px; }
.linkedin-connection-settings label { width: min(180px, 100%); }
.linkedin-connection-settings p { margin: 0 0 10px; color: var(--muted); font-size: 0.8rem; }
.linkedin-preview-hint { margin: 10px 0 0; padding: 10px 12px; border-radius: 9px; color: #075985; background: #eaf6ff; line-height: 1.45; }
.linkedin-contact-preview-list .dialer-preview-table-row.is-excluded em {
  border-radius: 7px;
  color: #92400e;
  background: #fef3c7;
  line-height: 1.35;
  white-space: normal;
}

.linkedin-status-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.linkedin-status-summary span { display: flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 9px; background: #f3f6f5; font-size: 0.75rem; }

.linkedin-daily-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}
.linkedin-daily-summary div { min-width: 0; padding: 9px; border-radius: 9px; background: #f3f6f5; }
.linkedin-daily-summary dt { color: var(--muted); font-size: 0.62rem; font-weight: 800; }
.linkedin-daily-summary dd { margin: 3px 0 0; font-size: 1.12rem; font-weight: 800; }
.linkedin-automation-control form,
.linkedin-automation-control button { width: 100%; }
.linkedin-weekdays { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; border: 0; }
.linkedin-weekdays legend { width: 100%; margin-bottom: 3px; font-size: 0.78rem; font-weight: 700; }
.linkedin-weekdays label { display: block; }
.linkedin-weekdays input { position: absolute; opacity: 0; pointer-events: none; }
.linkedin-weekdays span {
  min-width: 42px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}
.linkedin-weekdays input:checked + span { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.linkedin-weekdays input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.linkedin-automation-settings-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.linkedin-history-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 220px); gap: 10px; margin-top: 13px; }
.linkedin-history-filters label { display: grid; gap: 5px; }
.linkedin-history-filters span { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.linkedin-history-filters input,
.linkedin-history-filters select { width: 100%; }

.linkedin-target {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 9px 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.linkedin-target a { color: inherit; text-decoration: none; }
.linkedin-target > div:first-child a { display: grid; gap: 3px; }
.linkedin-target small { color: var(--muted); }
.linkedin-target-status { align-self: start; padding: 4px 8px; border-radius: 999px; background: #eef2f1; font-size: 0.72rem; font-weight: 700; }
.linkedin-target-status.status-replied { color: #047857; background: #d1fae5; }
.linkedin-target-status.status-connected { color: #047857; background: #d1fae5; }
.linkedin-target-status.status-profile_review,
.linkedin-target-status.status-error,
.linkedin-target-status.status-paused { color: #92400e; background: #fef3c7; }
.linkedin-target-detail { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.linkedin-target-detail p { width: 100%; margin: 0; }
.linkedin-profile-confirm { width: 100%; display: flex; gap: 7px; }
.linkedin-profile-confirm select,
.linkedin-profile-confirm input { min-width: 0; flex: 1; }
.danger-link { color: #b91c1c !important; }

.linkedin-browser-modal {
  width: min(1120px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.linkedin-browser-title img { width: 38px; height: 38px; border-radius: 8px; }
.linkedin-browser-title h2 { margin: 2px 0 0; }
.linkedin-browser-help { margin: 12px 0; color: var(--muted); line-height: 1.45; }

.linkedin-login-modal {
  width: min(500px, calc(100vw - 28px));
  overflow: visible;
}

.linkedin-login-form {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.linkedin-login-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.linkedin-login-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.linkedin-login-form input:focus {
  border-color: var(--accent-dark);
  outline: 3px solid rgba(50, 145, 133, 0.13);
}

.linkedin-login-form .primary-action {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  margin-top: 3px;
}

.linkedin-login-form .primary-action img { width: 18px; height: 18px; }

.linkedin-verification-note {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border: 1px solid #b9d9f5;
  border-radius: 10px;
  background: #eef7ff;
}

.linkedin-verification-note span { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }

.linkedin-login-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px;
  border-radius: 9px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 0.84rem;
  font-weight: 800;
}

.linkedin-login-form[hidden],
.linkedin-login-progress[hidden] { display: none; }

.linkedin-login-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(50, 145, 133, 0.25);
  border-top-color: var(--accent-dark);
  border-radius: 999px;
  animation: linkedin-login-spin 700ms linear infinite;
}

@keyframes linkedin-login-spin { to { transform: rotate(360deg); } }

.dashboard-inbox-icon-linkedin { background: #e7f3ff; }
.dashboard-inbox-icon-linkedin img { width: 100%; height: 100%; border-radius: 5px; }
.timeline-item-linkedin .timeline-icon img { border-radius: 4px; }

@media (max-width: 900px) {
  .linkedin-connect-card { grid-template-columns: 1fr; }
  .linkedin-connect-consent { grid-column: 1; grid-row: auto; }
  .linkedin-sales-grid,
  .linkedin-sales-grid.linkedin-message-activity-grid { grid-template-columns: 1fr; }
  .linkedin-accepted-history { max-height: 356px; flex-basis: auto; }
  .linkedin-message-kpis,
  .linkedin-message-templates { grid-template-columns: 1fr; }
  .linkedin-layout { grid-template-columns: 1fr; }
  .linkedin-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linkedin-settings-grid,
  .linkedin-automation-settings-grid,
  .linkedin-selection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .linkedin-outreach-head,
  .linkedin-campaign-title { align-items: flex-start; flex-direction: column; }
  .linkedin-sales-toolbar { align-items: flex-start; flex-direction: column; }
  .linkedin-sales-toolbar-actions { width: 100%; justify-content: space-between; }
  .linkedin-sales-person { grid-template-columns: 34px minmax(0, 1fr); }
  .linkedin-message-quantity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linkedin-sales-time { grid-column: 2; }
  .linkedin-outreach-title { align-items: flex-start; }
  .linkedin-title-icon { display: none; }
  .linkedin-connect-card { padding: 16px; }
  .linkedin-connect-intro { flex-direction: column; }
  .linkedin-sidebar,
  .linkedin-form-columns,
  .linkedin-template-previews,
  .linkedin-settings-grid,
  .linkedin-automation-settings-grid,
  .linkedin-history-filters,
  .linkedin-selection { grid-template-columns: 1fr; }
  .linkedin-account-disclosure .linkedin-sidebar { grid-template-columns: 1fr; }
  .linkedin-target { grid-template-columns: 1fr; }
  .linkedin-profile-confirm { flex-direction: column; }
  .linkedin-phase-grid { grid-template-columns: 1fr; }
  .linkedin-connection-settings { align-items: stretch; flex-direction: column; }
}

.outreach-channel-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
}

.outreach-channel-icon img {
  width: 29px;
  height: 29px;
}

.outreach-channel-icon-email {
  color: #0f766e;
  background: #e6f7f4;
}

.outreach-channel-icon-linkedin {
  overflow: hidden;
  background: #0a66c2;
}

.outreach-channel-icon-linkedin img {
  width: 58px;
  height: 58px;
}

.outreach-channel-icon-instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

.outreach-channel-icon-facebook {
  color: #fff;
  background: #1877f2;
  font-family: Arial, sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.outreach-channel-icon-sms {
  background: #eef2ff;
}

.outreach-channel-icon-whatsapp {
  border-radius: 50%;
  background: #25d366;
}

.outreach-channel-icon-tiktok,
.outreach-channel-icon-xing {
  overflow: hidden;
}

.outreach-channel-icon-tiktok {
  background: #090909;
}

.outreach-channel-icon-xing {
  background: #006567;
}

.outreach-channel-icon-tiktok img,
.outreach-channel-icon-xing img {
  width: 58px;
  height: 58px;
}

.outreach-channel-icon-post {
  background: #fff4e6;
}

.outreach-channel-icon-phone {
  color: #0f766e;
  background: #e6f7f4;
}

.outreach-channel-icon-instagram img,
.outreach-channel-icon-whatsapp img {
  filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
  .outreach-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .outreach-channel-grid {
    grid-template-columns: 1fr;
  }
}

.calendar-shell {
  min-height: min(920px, calc(100vh - 190px));
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.calendar-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.calendar-toolbar h2 {
  margin: 0;
  font-size: 1.4rem;
}

.calendar-toolbar small {
  color: var(--muted);
  font-weight: 750;
}

.calendar-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.calendar-view-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.calendar-view-tabs button {
  border: 0;
  border-radius: 8px;
  padding: 9px 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.calendar-view-tabs button.is-active {
  color: var(--ink);
  background: #edf1eb;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 850;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.calendar-dot-appointment { background: var(--accent); }
.calendar-dot-task { background: #f59e0b; }
.calendar-dot-google { background: #3b82f6; }
.calendar-dot-apple { background: #6b7280; }
.calendar-dot-holiday { background: #ef4444; }

.calendar-status {
  padding: 8px 18px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.calendar-grid {
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.calendar-grid-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
}

.calendar-grid-month {
  display: grid;
  grid-template-columns: 54px repeat(7, minmax(120px, 1fr));
  gap: 8px;
}

.calendar-grid-day {
  display: grid;
}

.calendar-grid-quarter {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 12px;
}

.calendar-grid-year {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
}

.calendar-day-cell {
  min-height: 148px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.calendar-grid-day .calendar-day-cell {
  min-height: 520px;
  grid-template-rows: 1fr;
}

.calendar-grid-day .calendar-day-head {
  display: none;
}

.calendar-day-cell.is-outside {
  opacity: 0.48;
}

.calendar-day-cell.is-past {
  background: #f8faf9;
  color: #6b7280;
}

.calendar-day-cell.is-past .calendar-day-events {
  opacity: 0.78;
}

.calendar-day-cell.is-today {
  background: #fff;
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.18);
  color: var(--text);
}

.calendar-day-cell.is-drop-target {
  border-color: rgba(20, 184, 166, 0.75);
  background: rgba(20, 184, 166, 0.08);
  box-shadow: inset 0 0 0 2px rgba(20, 184, 166, 0.22);
}

.calendar-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-day-head > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.calendar-day-weekday {
  flex-basis: 100%;
  color: var(--steel);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-day-head strong {
  font-size: 0.95rem;
}

.calendar-day-head em {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent);
  padding: 2px 6px;
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-day-head span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.calendar-month-weekday,
.calendar-month-week-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.calendar-month-weekday {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: var(--steel);
}

.calendar-month-week-label {
  align-self: stretch;
  border: 1px dashed rgba(15, 23, 42, 0.1);
  background: rgba(248, 250, 249, 0.9);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.calendar-month-week-label-head {
  border-color: transparent;
  background: transparent;
}

.calendar-day-events {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  overflow: auto;
}

.calendar-day-events p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.calendar-event {
  width: 100%;
  display: grid;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 7px;
  text-align: left;
  color: var(--ink);
  background: #f8faf8;
  cursor: pointer;
}

.calendar-event[draggable="true"] {
  cursor: grab;
}

.calendar-event.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.calendar-event span,
.calendar-event small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 850;
}

.calendar-event strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.calendar-event-detailed {
  cursor: default;
  gap: 7px;
}

.calendar-event-main {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.calendar-event-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.calendar-event-action-button {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 0.72rem;
}

.calendar-event .calendar-event-action-button span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.calendar-event-action-button img {
  width: 13px;
  height: 13px;
}

.calendar-event-appointment {
  border-color: rgba(20, 184, 166, 0.22);
  background: rgba(20, 184, 166, 0.09);
}

.calendar-event-task {
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.1);
}

.calendar-event-google {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.08);
}

.calendar-event-apple {
  border-color: rgba(107, 114, 128, 0.2);
  background: rgba(107, 114, 128, 0.08);
}

.calendar-event-holiday {
  border-color: rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.08);
}

.calendar-mini-month {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.calendar-mini-month h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.calendar-mini-month > div {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-mini-day {
  min-height: 34px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 1px solid #edf0ec;
  border-radius: 7px;
  color: var(--steel);
  background: #fbfcfa;
  cursor: pointer;
}

.calendar-mini-day.is-outside {
  opacity: 0.35;
}

.calendar-mini-day span {
  font-size: 0.72rem;
  font-weight: 850;
}

.calendar-mini-day strong {
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.14);
  font-size: 0.58rem;
}

.calendar-event-meta {
  display: grid;
  gap: 8px;
  margin: 0;
}

.calendar-event-meta div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.calendar-event-meta dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-event-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.calendar-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 820px) {
  .calendar-workspace {
    padding: 14px;
  }

  .calendar-toolbar {
    display: grid;
  }

  .calendar-toolbar-actions {
    justify-content: stretch;
  }

  .calendar-toolbar-actions > * {
    flex: 1 1 0;
  }

  .calendar-view-tabs {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(88px, 1fr);
    grid-template-columns: none;
  }

  .calendar-grid-week,
  .calendar-grid-quarter,
  .calendar-grid-year {
    grid-template-columns: 1fr;
  }

  .calendar-grid-month {
    grid-template-columns: 1fr;
  }

  .calendar-month-weekday,
  .calendar-month-week-label,
  .calendar-month-week-label-head {
    display: none;
  }

  .calendar-day-cell {
    min-height: 120px;
  }
}

.dashboard-inbox-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 30px;
  align-items: start;
  gap: 9px;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  padding: 9px;
  background: #ffffff;
}

.dashboard-pipeline-item {
  grid-template-columns: 32px minmax(0, 1fr);
}

.dashboard-inbox-item[hidden],
.dashboard-inbox-empty[hidden] {
  display: none;
}

.dashboard-inbox-placeholder {
  grid-template-columns: 32px minmax(0, 1fr);
}

.dashboard-inbox-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f2f5f1;
}

.dashboard-inbox-icon img {
  width: 16px;
  height: 16px;
  opacity: 0.72;
}

.task-due-overdue {
  color: #dc2626 !important;
  font-weight: 950 !important;
}

.dashboard-inbox-icon-call {
  background: rgba(20, 184, 166, 0.08);
}

.dashboard-inbox-icon-email {
  background: rgba(68, 113, 124, 0.1);
}

.dashboard-offer-icon-planned {
  background: rgba(68, 113, 124, 0.1);
}

.dashboard-offer-icon-offered {
  background: #fef3c7;
}

.dashboard-offer-icon-accepted {
  background: rgba(20, 184, 166, 0.11);
}

.dashboard-offer-icon-rejected {
  background: rgba(185, 28, 28, 0.08);
}

.dashboard-appointment-icon {
  background: rgba(20, 184, 166, 0.1);
}

.dashboard-invoice-icon-open,
.dashboard-invoice-icon-created {
  background: rgba(20, 184, 166, 0.1);
}

.dashboard-invoice-icon-sent {
  background: rgba(59, 130, 246, 0.1);
}

.dashboard-invoice-icon-overdue {
  background: rgba(248, 113, 113, 0.12);
}

.dashboard-invoice-icon-paid {
  background: rgba(34, 197, 94, 0.12);
}

.dashboard-inbox-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}

.dashboard-inbox-copy strong,
.dashboard-inbox-copy span,
.dashboard-inbox-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-inbox-copy strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
}

.dashboard-inbox-copy span {
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-inbox-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.inbox-done-button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe4da;
  border-radius: 7px;
  background: #fbfcfa;
  cursor: pointer;
}

.inbox-done-button:hover {
  border-color: rgba(45, 125, 70, 0.35);
  background: rgba(45, 125, 70, 0.08);
}

.inbox-done-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.inbox-done-button img {
  width: 15px;
  height: 15px;
  opacity: 0.78;
}

.dashboard-inbox-empty {
  margin: 0;
  border: 1px dashed #dfe5de;
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  background: #fbfcfa;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.dashboard-appointment-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  padding: 9px;
  background: #ffffff;
}

.dashboard-appointment-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.dashboard-appointment-copy strong,
.dashboard-appointment-copy .dashboard-appointment-lead,
.dashboard-appointment-copy span,
.dashboard-appointment-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-appointment-copy strong,
.dashboard-appointment-copy .dashboard-appointment-lead {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 950;
}

.dashboard-appointment-copy .dashboard-appointment-lead {
  width: fit-content;
  max-width: 100%;
  text-decoration: none;
}

.dashboard-appointment-copy .dashboard-appointment-lead:hover {
  color: var(--accent);
  text-decoration: underline;
}

.dashboard-appointment-copy span {
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-appointment-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-appointment-join {
  border: 1px solid rgba(20, 184, 166, 0.34);
  border-radius: 7px;
  padding: 7px 9px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.08);
  font-size: 0.72rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.dashboard-appointment-join:hover {
  border-color: rgba(20, 184, 166, 0.56);
  background: rgba(20, 184, 166, 0.14);
}

.dashboard-appointment-join:disabled {
  border-color: #e2e8df;
  color: var(--muted);
  background: #fbfcfa;
  cursor: default;
  opacity: 0.65;
}

.dashboard-appointment-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-appointment-link-copy,
.dashboard-appointment-menu-button {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 184, 166, 0.28);
  border-radius: 7px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.06);
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.dashboard-appointment-link-copy img,
.dashboard-appointment-menu-button img {
  width: 14px;
  height: 14px;
}

.dashboard-appointment-link-copy:hover,
.dashboard-appointment-link-copy.is-copied,
.dashboard-appointment-menu-button:hover {
  border-color: rgba(20, 184, 166, 0.52);
  background: rgba(20, 184, 166, 0.13);
}

.dashboard-show-all-button {
  border: 1px dashed rgba(20, 184, 166, 0.42);
  border-radius: 8px;
  padding: 10px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.06);
  font-size: 0.8rem;
  font-weight: 950;
  cursor: pointer;
}

.dashboard-show-all-button:hover {
  background: rgba(20, 184, 166, 0.12);
}

.dashboard-analysis-head-actions,
.dashboard-analysis-modal-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dashboard-analysis-head-actions > span {
  min-width: 22px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-align: center;
}

.dashboard-analysis-interval-select {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dashboard-analysis-interval-select select {
  min-width: 104px;
  height: 34px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 30px 0 10px;
  color: var(--ink);
  background: #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23687972' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 9px center;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.dashboard-analysis-interval-select select:hover,
.dashboard-analysis-interval-select select:focus-visible {
  border-color: rgba(20, 184, 166, 0.55);
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.11);
}

.dashboard-analysis-interval-select select:disabled {
  cursor: wait;
  opacity: 0.62;
}

.dashboard-analysis-status {
  margin: 8px 0 0;
  font-size: 0.76rem;
}

.dashboard-analysis-card {
  width: 100%;
  display: grid;
  gap: 12px;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  padding: 12px;
  color: inherit;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-analysis-card:hover {
  border-color: rgba(20, 184, 166, 0.36);
  box-shadow: 0 10px 26px rgba(24, 33, 30, 0.08);
  transform: translateY(-1px);
}

.dashboard-analysis-card > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-analysis-card strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
}

.dashboard-analysis-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-analysis-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.dashboard-analysis-card dl > div {
  min-width: 0;
  border: 1px solid #edf0ec;
  border-radius: 7px;
  padding: 8px;
  background: #fbfcfa;
}

.dashboard-analysis-card dt,
.dashboard-analysis-card dd {
  margin: 0;
}

.dashboard-analysis-card dt {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-analysis-card dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.leads-workspace {
  overflow: auto;
}

.leads-workspace:has(.lead-detail) {
  overflow: hidden;
}

.lead-section-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 34px;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.lead-tab-links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.lead-tab-add-button {
  min-width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.lead-tab-add-button:hover {
  color: var(--ink);
  background: #f3f5f1;
}

.lead-tab-add-button img {
  width: 14px;
  height: 14px;
  opacity: 0.76;
}

.lead-section-tabs a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.lead-section-tabs a:hover {
  color: var(--ink);
  background: #f3f5f1;
}

.lead-section-tabs a.is-active {
  color: var(--ink);
  font-weight: 850;
  background: #eef1ec;
}

.lead-website-tab {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1ec;
}

.lead-script-tab {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #eef1ec;
}

.lead-website-tab > a {
  min-height: 34px;
  padding: 0 10px;
}

.lead-script-tab > a {
  min-height: 34px;
  padding: 0 10px;
}

.lead-website-tab .lead-website-tab-close,
.lead-script-tab .lead-script-tab-close {
  min-width: 28px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid #d9dfd7;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.lead-website-tab .lead-website-tab-close:hover,
.lead-script-tab .lead-script-tab-close:hover {
  color: var(--accent);
  background: #f7f8f5;
}

.lead-empty-tab {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.lead-empty-tab-soft {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 14px;
}

.settings-workspace {
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
}

.settings-category-grid {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.settings-category-card {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.settings-category-card:hover {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.11);
  transform: translateY(-2px);
}

.settings-category-card:focus-visible {
  outline: 3px solid rgba(20, 184, 166, 0.28);
  outline-offset: 3px;
}

.settings-category-card h2,
.settings-category-detail-title h2 {
  margin: 0;
  font-size: 1.05rem;
}

.settings-category-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #e6f7f4;
}

.settings-category-icon img {
  width: 29px;
  height: 29px;
}

.settings-category-detail-head {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.settings-category-back {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.settings-category-back:hover {
  color: var(--ink);
}

.settings-category-back:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(20, 184, 166, 0.28);
  outline-offset: 3px;
}

.settings-category-back img {
  width: 17px;
  height: 17px;
}

.settings-category-detail-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.settings-category-detail-title .settings-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.settings-category-detail-title .settings-category-icon img {
  width: 23px;
  height: 23px;
}

.settings-panel,
.settings-alert {
  width: min(720px, 100%);
  margin-inline: auto;
}

.settings-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.settings-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.settings-panel-head > img,
.settings-panel-title > img {
  width: 24px;
  height: 24px;
  opacity: 0.72;
}

.settings-panel-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.settings-panel-head-spread {
  justify-content: space-between;
  gap: 16px;
}

.settings-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 900px) {
  .settings-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .settings-category-grid {
    grid-template-columns: 1fr;
  }
}

.power-dialer-script-form textarea,
.power-dialer-script-row textarea,
.power-dialer-script-highlight {
  min-height: 9rem;
  font-family: inherit;
  line-height: 1.5;
  white-space: pre-wrap;
}

.power-dialer-script-form textarea {
  resize: vertical;
}

.power-dialer-script-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.power-dialer-script-summary {
  width: 100%;
}

.power-dialer-script-card {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  border: 1px solid #e2e8e2;
  border-radius: 9px;
  padding: 10px;
  background: #ffffff;
  transition: border-color 140ms ease, background 140ms ease;
}

.power-dialer-script-card:hover {
  border-color: rgba(20, 184, 166, 0.32);
  background: #fcfefd;
}

.power-dialer-script-card-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.09);
}

.power-dialer-script-card-icon img {
  width: 17px;
  height: 17px;
  opacity: 0.72;
}

.power-dialer-script-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.power-dialer-script-card-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.power-dialer-script-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.power-dialer-script-menu-button {
  justify-self: end;
}

.power-dialer-script-menu {
  min-width: 174px;
}

.power-dialer-script-empty {
  min-height: 116px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px dashed #d9e2da;
  border-radius: 9px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.power-dialer-script-empty img {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  opacity: 0.5;
}

.power-dialer-script-empty strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.power-dialer-script-empty span {
  font-size: 0.76rem;
  font-weight: 700;
}

.power-dialer-script-modal-backdrop {
  z-index: 72;
}

.power-dialer-script-modal {
  width: min(980px, 100%);
  height: min(820px, calc(100vh - 48px));
  height: min(820px, calc(100dvh - 48px));
  max-height: calc(100dvh - 48px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.power-dialer-script-modal.is-rename {
  width: min(680px, 100%);
  height: auto;
  grid-template-rows: auto auto auto;
}

.power-dialer-script-modal [data-power-dialer-script-body-field] {
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.power-dialer-script-modal .power-dialer-script-editor-shell {
  min-height: 0;
  height: 100%;
}

.power-dialer-script-modal .power-dialer-script-editor-shell textarea,
.power-dialer-script-modal .power-dialer-script-highlight {
  min-height: 0;
  height: 100%;
  resize: none;
}

.power-dialer-script-modal label {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 800;
}

.power-dialer-script-modal label[hidden] {
  display: none;
}

.power-dialer-script-modal input {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe0da;
  border-radius: 8px;
  padding: 0 11px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
  outline: none;
}

.power-dialer-script-modal input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.12);
}

.power-dialer-script-modal-actions {
  margin-top: 2px;
}

.power-dialer-script-row {
  display: grid;
  gap: 12px;
  border: 1px solid #dde6df;
  border-radius: 14px;
  padding: 14px;
  background: #fbfdfb;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.power-dialer-script-row label,
.power-dialer-script-body-field {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 800;
}

.power-dialer-script-row-head {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.power-dialer-script-row input,
.power-dialer-script-form textarea,
.power-dialer-script-row textarea {
  width: 100%;
  border: 1px solid #dbe0da;
  border-radius: 8px;
  background: #ffffff;
  outline: none;
}

.power-dialer-script-row input {
  height: 40px;
  padding: 0 11px;
  font-weight: 800;
}

.power-dialer-script-form textarea,
.power-dialer-script-row textarea {
  min-height: 13rem;
  resize: vertical;
}

.power-dialer-script-editor-shell {
  background: #ffffff;
  border-radius: 8px;
  position: relative;
  width: 100%;
}

.power-dialer-script-highlight,
.power-dialer-script-editor-shell textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 13rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: normal;
  tab-size: 4;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
}

.power-dialer-script-highlight {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  color: var(--ink);
}

.power-dialer-script-editor-shell textarea {
  position: relative;
  z-index: 1;
  min-height: 13rem;
  background: transparent;
  color: transparent;
  caret-color: var(--ink);
}

.power-dialer-script-editor-shell textarea::placeholder {
  color: var(--muted);
}

.power-dialer-script-variable {
  display: inline;
  border-radius: 4px;
  background: rgba(28, 184, 166, 0.14);
  color: #0f766e;
  font: inherit;
  font-weight: inherit;
  margin: 0;
  padding: 0;
  box-shadow: 0 0 0 2px rgba(28, 184, 166, 0.18);
  vertical-align: baseline;
}

.power-dialer-script-row input:focus,
.power-dialer-script-row textarea:focus,
.power-dialer-script-form textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.12);
}

.power-dialer-script-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.power-dialer-script-tag-menu {
  position: fixed;
  z-index: 5000;
  display: grid;
  min-width: 180px;
  padding: 0.35rem;
  border: 1px solid rgba(28, 184, 166, 0.28);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.power-dialer-script-tag-menu[hidden] {
  display: none;
}

.power-dialer-script-tag-menu button {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #183436;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.45rem 0.55rem;
  text-align: left;
}

.power-dialer-script-tag-menu button:hover,
.power-dialer-script-tag-menu button:focus-visible {
  background: rgba(28, 184, 166, 0.12);
  outline: none;
}

.connector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.connector-row-stack {
  display: grid;
  align-items: stretch;
}

.connector-row strong {
  display: block;
  font-size: 0.94rem;
}

.connector-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.integration-list {
  display: grid;
  gap: 8px;
}

.integration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #edf0ec;
  border-radius: 7px;
  padding: 9px 10px;
  background: #ffffff;
}

.integration-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.integration-row strong,
.integration-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-row strong {
  font-size: 0.86rem;
}

.integration-row span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.connector-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.connector-form label,
.connector-field {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 800;
}

.connector-field-wide {
  grid-column: 1 / -1;
}

.connector-form input,
.connector-form select {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 11px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.connector-form select {
  font-weight: 800;
}

.connector-form input:focus,
.connector-form select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.12);
}

.connector-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border: 1px solid #edf0ec;
  border-radius: 7px;
  padding: 0 11px;
  background: #ffffff;
}

.connector-checkbox input {
  width: 16px;
  height: 16px;
  padding: 0;
  accent-color: var(--mint);
}

.twilio-number-list {
  display: grid;
  gap: 8px;
}

.twilio-number-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.twilio-number-row .icon-only {
  width: 34px;
  height: 34px;
}

.twilio-number-row .icon-only[hidden] {
  display: none;
}

.twilio-number-add {
  justify-self: start;
  margin-top: 2px;
}

.connector-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-column: 1 / -1;
  gap: 10px;
}

.invite-link-panel {
  display: grid;
  gap: 8px;
}

.invite-link-panel strong {
  font-size: 0.96rem;
}

.invite-link-panel input {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 11px;
  color: var(--ink);
  background: #fbfcfa;
  font-weight: 800;
}

.team-list {
  display: grid;
  gap: 8px;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #edf0ec;
  border-radius: 7px;
  padding: 10px 11px;
  background: #ffffff;
}

.team-row > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.team-row strong,
.team-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.team-row-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.workspace-member-role-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.workspace-member-role-form select {
  min-height: 32px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.team-row-meta small {
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.07);
  font-size: 0.7rem;
  font-weight: 900;
}

.empty-state {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
  text-align: center;
}

.empty-state img {
  width: 46px;
  height: 46px;
  opacity: 0.42;
}

.empty-state h2 {
  margin: 0;
  color: var(--steel);
  font-size: 1.25rem;
}

.lead-global-search {
  position: relative;
  z-index: 5;
  margin-bottom: 14px;
}

.lead-global-search label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(24, 33, 30, 0.05);
}

.lead-global-search label:focus-within {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.lead-global-search img {
  width: 17px;
  height: 17px;
  opacity: 0.58;
}

.lead-global-search input {
  width: 100%;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
  outline: none;
}

.lead-global-search input::placeholder {
  color: #8a968f;
}

.lead-global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 12px;
  border: 1px solid #dfe5de;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(24, 35, 32, 0.15);
}

.lead-global-search-results[hidden] {
  display: none;
}

.lead-global-search-results section {
  display: grid;
  gap: 7px;
}

.lead-search-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  padding: 8px;
  color: inherit;
  background: #fbfcfa;
  text-decoration: none;
}

.lead-search-result:hover,
.lead-search-result:focus-visible {
  border-color: rgba(20, 184, 166, 0.32);
  background: #f0fdfa;
  outline: none;
}

.lead-search-result-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.08);
}

.lead-search-result-contact {
  background: #eef1ec;
}

.lead-search-result-favicon {
  overflow: hidden;
  background: #ffffff;
}

.lead-search-result-favicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.lead-search-result strong,
.lead-search-result small {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-search-result strong {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 950;
}

.lead-search-result small,
.lead-search-empty {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
}

.lead-search-empty {
  margin: 0;
  border: 1px dashed #e2e8df;
  border-radius: 8px;
  padding: 9px;
  background: #fbfcfa;
}

.lead-list {
  display: grid;
  gap: 10px;
}

.lead-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: inherit;
  background: #ffffff;
  text-decoration: none;
}

.lead-row:hover {
  border-color: #c8d2ca;
  box-shadow: 0 10px 30px rgba(27, 38, 35, 0.07);
}

.lead-row-card {
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 0;
  padding: 0;
}

.lead-row-main {
  min-height: 78px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.lead-row-action {
  margin-right: 10px;
}

.lead-title-with-favicon {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.lead-title-with-favicon h1 {
  min-width: 0;
}

.lead-favicon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(219, 224, 218, 0.9);
}

.lead-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef1ec;
}

.lead-icon-favicon {
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(219, 224, 218, 0.9);
}

.lead-icon-favicon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.lead-folder-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-content: start;
}

.lead-folder-row {
  position: relative;
  min-height: 104px;
  align-items: start;
  padding: 0;
}

.lead-folder-link {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px 48px 14px 14px;
  color: inherit;
  text-decoration: none;
}

.lead-folder-action {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.lead-folder-icon {
  background: rgba(20, 184, 166, 0.08);
}

.lead-folder-icon img {
  filter: invert(55%) sepia(78%) saturate(448%) hue-rotate(123deg) brightness(91%) contrast(88%);
}

.lead-list-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 20px 80px rgba(23, 32, 29, 0.22);
}

.lead-list-modal label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 900;
}

.lead-current-list {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 7px;
  margin-top: 12px;
  padding: 9px 10px;
  background: rgba(20, 184, 166, 0.055);
}

.lead-current-list span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lead-current-list strong {
  color: var(--steel);
  font-size: 0.86rem;
}

.lead-list-modal input,
.lead-list-modal select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--steel);
  background: #ffffff;
  font: inherit;
  font-weight: 700;
}

.lead-list-modal-text,
.lead-list-help {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.lead-list-help {
  margin: 8px 0 0;
  font-size: 0.76rem;
}

.lead-list-delete-actions,
.lead-transfer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lead-list-delete-actions {
  justify-content: flex-start;
}

.lead-transfer-head {
  margin: 4px 0 10px;
}

.lead-transfer-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #f9faf8;
}

.lead-transfer-list label {
  min-height: 30px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin: 0;
  font-size: 0.82rem;
}

.dashboard-email-modal {
  width: min(1180px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.dashboard-email-modal-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 14px;
}

.dashboard-email-reader,
.dashboard-email-side {
  min-height: 0;
  overflow: auto;
  border: 1px solid #edf0ec;
  border-radius: 10px;
  padding: 14px;
  background: #fbfcfa;
}

.dashboard-email-side[hidden] {
  display: none;
}

.dashboard-analysis-modal {
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.dashboard-analysis-detail {
  min-height: 0;
  display: grid;
  gap: 16px;
  overflow: auto;
  padding-right: 2px;
}

.dashboard-analysis-all-modal {
  width: min(620px, 100%);
}

.dashboard-analysis-modal-controls {
  flex: 0 0 auto;
}

.dashboard-offers-modal {
  width: min(680px, 100%);
}

.dashboard-offers-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}

.dashboard-offers-net-total {
  color: var(--accent-dark, #087f73);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.dashboard-offers-modal .modal-head > div {
  min-width: 0;
}

.dashboard-offers-modal-inbox {
  max-height: none;
  box-shadow: none;
}

.dashboard-analysis-all-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}

.dashboard-appointments-detail {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 16px;
  overflow: auto;
  padding-right: 2px;
}

.dashboard-appointments-period {
  display: grid;
  gap: 10px;
}

.dashboard-appointments-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0;
  color: #7e8b84;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-appointments-divider::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  top: 50%;
  height: 1px;
  background: #d9e1dc;
}

.dashboard-appointments-divider span {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  background: #ffffff;
}

.dashboard-appointments-detail .dashboard-appointment-card.is-past {
  border-color: #e5e8e5;
  background: #f5f6f4;
  filter: grayscale(0.35);
  opacity: 0.62;
}

.dashboard-appointments-detail .dashboard-appointment-card.is-past:hover,
.dashboard-appointments-detail .dashboard-appointment-card.is-past:focus-within {
  opacity: 0.8;
}

.dashboard-analysis-detail section {
  display: grid;
  gap: 10px;
}

.dashboard-analysis-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-analysis-categories button {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.dashboard-analysis-categories button span { font-size: 0.8rem; }
.dashboard-analysis-categories button strong { font-size: 1.35rem; }
.dashboard-analysis-categories button[aria-pressed="true"] {
  border-color: #1fb2a6;
  background: #eaf8f5;
  color: #126a62;
}

.dashboard-analysis-summary, .dashboard-analysis-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.dashboard-analysis-back { justify-self: start; min-height: 36px; }
.dashboard-analysis-company-list { display: grid; gap: 10px; }
.dashboard-analysis-company {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow-wrap: anywhere;
}
.dashboard-analysis-company summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px;
  cursor: pointer;
  list-style: none;
}
.dashboard-analysis-company summary::-webkit-details-marker { display: none; }
.dashboard-analysis-company summary::before { content: '›'; font-size: 1.4rem; color: #126a62; }
.dashboard-analysis-company details[open] summary::before { transform: rotate(90deg); }
.dashboard-analysis-company summary > span:first-of-type { flex: 1; min-width: 0; }
.dashboard-analysis-company summary strong, .dashboard-analysis-company summary small { display: block; }
.dashboard-analysis-company summary small { color: var(--muted); margin-top: 4px; line-height: 1.5; }
.dashboard-analysis-company-count { white-space: nowrap; font-size: 0.78rem; color: var(--muted); }
.dashboard-analysis-lead-open { display: inline-block; margin: 0 12px 10px 32px; padding: 5px 0; font-size: 0.8rem; color: #126a62; font-weight: 800; }
.dashboard-analysis-call-list { list-style: none; padding: 0 12px; margin: 0; }
.dashboard-analysis-call-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.dashboard-analysis-call-list li > div { display: grid; gap: 4px; font-size: 0.8rem; }
.dashboard-analysis-call-list time, .dashboard-analysis-call-list span { color: var(--muted); }
.dashboard-analysis-call-list .is-reached { color: #126a62; font-weight: 800; }
.dashboard-analysis-clickable-stat { position: relative; }
.dashboard-analysis-clickable-stat button { display: flex; justify-content: space-between; gap: 8px; width: 100%; border: 0; background: transparent; padding: 0; color: #126a62; font: inherit; cursor: pointer; }
.dashboard-analysis-clickable-stat button::after { content: ''; position: absolute; inset: 0; border-radius: 8px; }
.dashboard-analysis-clickable-stat:hover { border-color: #1fb2a6; }
.dashboard-analysis-detail :is(button, summary, a):focus-visible { outline: 2px solid #126a62; outline-offset: 3px; }

@media (max-width: 620px) {
  .dashboard-analysis-detail .dashboard-analysis-session-card { grid-template-columns: minmax(0, 1fr); }
  .dashboard-analysis-categories { gap: 6px; }
  .dashboard-analysis-categories button { padding: 10px 8px; }
  .dashboard-analysis-detail .dashboard-analysis-appointment-card { grid-template-columns: minmax(0, 1fr); }
}

.dashboard-analysis-detail h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
}

.dashboard-analysis-session-list,
.dashboard-analysis-appointment-list {
  display: grid;
  gap: 10px;
}

.dashboard-analysis-session-card,
.dashboard-analysis-appointment-card {
  border: 1px solid #edf0ec;
  border-radius: 10px;
  background: #fbfcfa;
}

.dashboard-analysis-session-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.75fr);
  gap: 12px;
  padding: 12px;
}

.dashboard-analysis-session-card h3 {
  margin: 0;
  font-size: 0.94rem;
}

.dashboard-analysis-session-card > div > span {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-analysis-leads-toggle {
  margin-top: 8px;
  padding: 0;
}

.dashboard-analysis-lead-list {
  display: grid;
  gap: 6px;
  max-height: 220px;
  margin: 10px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.dashboard-analysis-lead-list[hidden] {
  display: none;
}

.dashboard-analysis-lead-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e7ece6;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
}

.dashboard-analysis-lead-list a:hover {
  border-color: rgba(31, 178, 166, 0.35);
  background: #f6fffd;
}

.dashboard-analysis-lead-list strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-analysis-lead-list span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.dashboard-analysis-leads-empty {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-analysis-session-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.dashboard-analysis-session-card dl > div {
  border: 1px solid #e7ece6;
  border-radius: 8px;
  padding: 8px;
  background: #ffffff;
}

.dashboard-analysis-session-card dt,
.dashboard-analysis-session-card dd {
  margin: 0;
}

.dashboard-analysis-session-card dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-analysis-session-card dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 950;
}

.dashboard-analysis-appointment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
}

.dashboard-analysis-appointment-card strong,
.dashboard-analysis-appointment-card span {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-analysis-appointment-card strong {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
}

.dashboard-analysis-appointment-card span,
.dashboard-analysis-appointment-card small {
  color: var(--steel);
  font-size: 0.74rem;
  font-weight: 800;
}

.dashboard-analysis-appointment-card a {
  border: 1px solid #dfe5de;
  border-radius: 7px;
  padding: 6px 8px;
  color: var(--ink);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.dashboard-analysis-appointment-card a:hover {
  border-color: rgba(20, 184, 166, 0.38);
  background: rgba(20, 184, 166, 0.08);
}

.dashboard-email-reader dl {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.dashboard-email-reader dl > div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
}

.dashboard-email-reader dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-email-reader dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.dashboard-email-body {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  color: var(--steel);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
}

.dashboard-email-body p {
  margin: 0 0 0.85em;
}

.dashboard-email-body table,
.timeline-email-html table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-email-body td,
.dashboard-email-body th,
.timeline-email-html td,
.timeline-email-html th {
  border: 1px solid #e5ebe4;
  padding: 6px;
  vertical-align: top;
}

.dashboard-email-body a,
.timeline-email-html a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.dashboard-email-body img,
.timeline-email-html img {
  max-width: 100%;
  max-height: 180px;
  height: auto;
}

.dashboard-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dashboard-email-create-form,
.dashboard-email-assign-panel {
  display: grid;
  gap: 12px;
}

.dashboard-email-create-form h3,
.dashboard-email-create-form h4,
.dashboard-email-assign-panel h3 {
  margin: 0;
}

.dashboard-email-assign-search {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dfe5de;
  border-radius: 9px;
  padding: 0 10px;
  background: #fff;
}

.dashboard-email-assign-search:focus-within {
  border-color: rgba(20, 184, 166, 0.65);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.dashboard-email-assign-search img {
  width: 16px;
  height: 16px;
  opacity: 0.62;
}

.dashboard-email-assign-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.dashboard-email-assign-empty {
  margin: 0;
  border: 1px dashed #dfe5de;
  border-radius: 9px;
  padding: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.dashboard-email-create-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
}

.dashboard-email-create-form input,
.dashboard-email-create-form select {
  min-height: 36px;
  border: 1px solid #dfe5de;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
}

.dashboard-email-list-tree {
  display: grid;
  gap: 8px;
}

.dashboard-email-list-group,
.dashboard-email-lead-group {
  border: 1px solid #e5ebe3;
  border-radius: 9px;
  background: #fff;
}

.dashboard-email-list-group summary,
.dashboard-email-lead-group summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.dashboard-email-list-group summary span,
.dashboard-email-lead-group summary small {
  color: var(--muted);
  font-weight: 800;
}

.dashboard-email-contact-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.dashboard-email-contact-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf0ec;
  padding-top: 8px;
}

.dashboard-email-contact-list strong,
.dashboard-email-contact-list span {
  display: block;
}

.dashboard-email-contact-list span {
  color: var(--muted);
  font-size: 0.76rem;
}

.dashboard-email-contact-list button {
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(20, 184, 166, 0.08);
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.lead-transfer-list input {
  min-height: auto;
}

.mini-action-danger {
  color: #ffffff;
  background: var(--accent);
}

.lead-import-modal {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 20px 80px rgba(23, 32, 29, 0.22);
}

.lead-import-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lead-import-source-card {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--steel);
  background: #f9faf8;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.lead-import-source-card:hover {
  border-color: #c8d2ca;
  background: #ffffff;
}

.lead-import-source-card img {
  width: 22px;
  height: 22px;
  opacity: 0.72;
}

.lead-import-source-card strong {
  font-size: 0.98rem;
}

.lead-import-source-card span,
.lead-import-toolbar p,
.lead-import-duplicate-copy {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.lead-import-paste-panel {
  margin-top: 12px;
}

.lead-import-paste-panel textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--steel);
  font: inherit;
  font-weight: 700;
}

.lead-import-status {
  margin-bottom: 12px;
  border: 1px solid rgba(52, 101, 74, 0.22);
  border-radius: 6px;
  padding: 10px 12px;
  color: #2f6648;
  background: rgba(52, 101, 74, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
}

.lead-import-status.is-error {
  border-color: rgba(20, 184, 166, 0.28);
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.07);
}

.lead-research-board {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.lead-research-board-head,
.lead-research-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lead-research-job-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lead-research-cancel {
  color: #a44848;
}

.lead-research-board h2,
.lead-research-job h3,
.lead-research-candidate h3 {
  margin: 2px 0 0;
}

.lead-research-jobs {
  display: grid;
  gap: 10px;
}

.lead-research-job,
.lead-research-candidate {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
}

.lead-research-job p,
.lead-research-candidate p,
.lead-research-empty {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.lead-research-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  margin: 10px 0;
  background: #eef1ec;
}

.lead-research-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.lead-research-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.lead-research-overview > div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 10px;
  background: #f8faf7;
}

.lead-research-overview span,
.lead-research-plan-item small,
.lead-research-plan-item em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.lead-research-overview strong {
  color: var(--ink);
  font-size: 1rem;
}

.lead-research-profile,
.lead-research-costs {
  line-height: 1.4;
}

.lead-research-plan,
.lead-research-evidence {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcfa;
}

.lead-research-plan > summary,
.lead-research-evidence > summary {
  cursor: pointer;
  padding: 9px 10px;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 850;
}

.lead-research-plan-list {
  display: grid;
  max-height: 260px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.lead-research-plan-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(217, 224, 218, 0.7);
}

.lead-research-plan-item:last-child {
  border-bottom: 0;
}

.lead-research-plan-item > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: #eef1ec;
  font-size: 0.68rem;
  font-weight: 900;
}

.lead-research-plan-item > div {
  display: grid;
  min-width: 0;
}

.lead-research-plan-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-research-plan-item.is-active {
  background: rgba(20, 184, 166, 0.08);
}

.lead-research-plan-item.is-active > span,
.lead-research-plan-item.is-done > span {
  color: #fff;
  background: var(--accent);
}

.lead-research-evidence > div {
  display: grid;
  gap: 5px;
  padding: 0 9px 9px;
}

.lead-research-evidence a {
  display: grid;
  grid-template-columns: minmax(100px, 0.35fr) minmax(0, 1fr);
  gap: 8px;
  color: var(--steel);
  font-size: 0.73rem;
  text-decoration: none;
}

.lead-research-evidence a:hover {
  color: var(--accent-dark);
}

.lead-research-evidence span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-research-candidates {
  display: grid;
  gap: 8px;
}

.lead-research-candidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.lead-research-candidate-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lead-research-sources a {
  color: var(--accent-dark);
  text-decoration: none;
}

.lead-research-sources a:hover {
  text-decoration: underline;
}

.lead-research-strategy {
  color: var(--accent-dark) !important;
}

.lead-research-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.lead-research-contacts {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.lead-research-contact {
  border: 1px solid var(--line, #dfe7e4);
  border-radius: 10px;
  padding: 9px 11px;
  background: #f8fbfa;
}

.lead-research-contact > div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.lead-research-contact span,
.lead-research-contact p,
.lead-research-contact small {
  color: var(--muted, #687773);
  font-size: 12px;
}

.lead-research-contact p {
  margin: 3px 0 0;
}

.contact-enrichment-status {
  grid-column: 2 / -1;
  margin: 6px 0 0;
}

.contact-enrichment-status.is-error {
  color: #b42318;
}

.lead-research-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
}

.lead-research-badge.is-warning {
  border-color: rgba(170, 75, 35, 0.24);
  color: #9a4d26;
  background: rgba(245, 158, 11, 0.12);
}

.lead-research-candidate-actions .mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.lead-research-warning {
  display: block;
  margin-top: 6px;
  color: var(--accent-dark);
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .lead-research-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lead-research-modal {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 20px 80px rgba(23, 32, 29, 0.22);
}

.lead-research-form,
.lead-research-key-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.lead-research-form[hidden],
.lead-research-key-form[hidden] {
  display: none;
}

.lead-research-copy {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.lead-research-field {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 800;
}

.lead-research-field input,
.lead-research-field textarea {
  width: 100%;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  color: var(--ink);
  background: #fdfdfb;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.lead-research-field input {
  height: 42px;
  padding: 0 11px;
}

.lead-research-field textarea {
  min-height: 108px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

.lead-research-field input:focus,
.lead-research-field textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.14);
}

.lead-research-count-field {
  max-width: 210px;
}

.lead-research-modal .form-row-actions {
  grid-template-columns: minmax(0, 1fr);
}

.lead-research-modal .primary-action {
  width: 100%;
  min-height: 42px;
}

.lead-research-status {
  margin-bottom: 12px;
  border: 1px solid rgba(52, 101, 74, 0.22);
  border-radius: 6px;
  padding: 10px 12px;
  color: #2f6648;
  background: rgba(52, 101, 74, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
}

.lead-research-status.is-error {
  border-color: rgba(20, 184, 166, 0.28);
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.07);
}

.lead-import-toolbar,
.lead-transfer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lead-import-table-wrap {
  max-height: min(52vh, 520px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.lead-import-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.lead-import-table th,
.lead-import-table td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 7px;
  text-align: left;
  vertical-align: top;
}

.lead-import-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f7f4;
}

.lead-import-table th span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.lead-import-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.lead-import-column-head span {
  min-width: 0;
  margin-bottom: 0;
}

.lead-import-column-head .icon-only {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.lead-import-table select,
.lead-import-table input {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 8px;
  color: var(--steel);
  background: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.lead-import-duplicates {
  display: grid;
  gap: 10px;
}

.lead-import-duplicate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(20, 184, 166, 0.04);
}

.lead-import-duplicate-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.lead-import-decision {
  display: grid;
  gap: 6px;
  align-content: center;
  min-width: 160px;
}

.lead-import-decision label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 800;
}

.supplier-icon {
  background: #eef4ea;
}

.lead-icon img {
  width: 22px;
  height: 22px;
  opacity: 0.72;
}

.lead-row h2 {
  margin: 0;
  font-size: 1.05rem;
}

.lead-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead-detail {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px minmax(360px, 1fr) 300px;
  gap: 14px;
  overflow: hidden;
}

.lead-detail-leads {
  grid-template-columns: 320px minmax(520px, 1fr);
}

.lead-detail-leads > .timeline-panel {
  grid-column: 2;
  grid-row: 1;
}

.lead-detail-suppliers {
  grid-template-columns: 320px minmax(520px, 1fr);
}

.lead-detail-suppliers > .detail-column:first-child {
  grid-column: 1;
  grid-row: 1;
}

.lead-detail-suppliers > .timeline-panel,
.lead-detail-suppliers > .supplier-main-panel {
  grid-column: 2;
  grid-row: 1;
}

.website-card {
  margin-bottom: 10px;
}

.website-card a {
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.website-card a:hover {
  color: var(--accent);
}

.lead-website-view {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.lead-website-view[hidden],
[data-lead-tab-content][hidden],
.lead-website-tab[hidden],
.lead-script-tab[hidden] {
  display: none !important;
}

.ai-coach { display: grid; gap: 1.2rem; max-width: 860px; padding: 1.5rem; border: 1px solid #d8e6e2; border-radius: 18px; background: #fff; }
.ai-coach-empty { display: none; }
.ai-coach.is-idle { max-width: 680px; gap: .85rem; }
.ai-coach.is-idle .form-kicker, .ai-coach.is-idle :is(.ai-coach-status, .ai-coach-source-section, .ai-coach-goals, .ai-coach-controls, .ai-coach-speaker, .ai-coach-suggestion) { display: none; }
.ai-coach.is-idle .ai-coach-empty { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid #d8e6e2; border-radius: 12px; background: #f8fcfb; }
.ai-coach-empty strong { display: block; color: #173f39; }
.ai-coach-empty p { margin: .25rem 0 0; color: #526a66; font-size: .9rem; }
.ai-coach-product { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.ai-coach-product img { width: 1rem; height: 1rem; }
.ai-coach h2, .ai-coach-status, .ai-coach-speaker { margin: 0; }
.ai-coach-status, .ai-coach-speaker { color: #395a55; }
.ai-coach-source-section { display: grid; gap: .7rem; padding: 1rem; border: 1px solid #d8e6e2; border-radius: 14px; background: #f8fcfb; }
.ai-coach-source-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.ai-coach-source-heading h3 { margin: 0; font-size: 1rem; }
.ai-coach-sources { display: grid; gap: .55rem; }
.ai-coach-source { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border: 1px solid #d8e6e2; border-radius: 10px; background: #fff; cursor: pointer; }
.ai-coach-source:has(input:checked) { border-color: #159d86; background: #e8f8f4; }
.ai-coach-source input { margin-top: .18rem; accent-color: #0d9488; }
.ai-coach-source strong, .ai-coach-source small { display: block; }
.ai-coach-source small, .ai-coach-source-hint { color: #526a66; }
.ai-coach-source-hint { margin: 0; font-size: .85rem; }
.ai-coach-goals, .ai-coach-controls { display: flex; flex-wrap: wrap; gap: .7rem; }
.ai-coach-goals button { padding: .75rem 1rem; border: 1px solid #c8d6d2; border-radius: 10px; background: #fff; cursor: pointer; }
.ai-coach-goals button[aria-pressed="true"] { background: #e3f7f2; border-color: #159d86; color: #08715e; font-weight: 700; }
.ai-coach-help { min-width: 9rem; min-height: 3.25rem; background: #0d9488; color: #fff; font-size: 1.15rem; font-weight: 700; }
.ai-coach-help:disabled { opacity: .65; cursor: not-allowed; }
.ai-coach-suggestion { min-height: 6rem; padding: 1.4rem; border-radius: 16px; background: #e7f8f4; color: #163d38; font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.ai-coach-suggestion:empty { display: none; }
.ai-coach-suggestion[data-complete="false"] { opacity: .75; }
@media (max-width: 640px) { .ai-coach { padding: 1rem; } .ai-coach-goals button { flex: 1 1 100%; } .ai-coach.is-idle .ai-coach-empty { align-items: stretch; flex-direction: column; } }

.lead-website-frame-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  background: #f6f7f4;
}

.lead-website-frame-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-website-view iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  background: #ffffff;
}

.lead-website-frame-note {
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.detail-column,
.timeline-panel {
  min-height: 0;
  overflow: auto;
}

.detail-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.detail-panel,
.timeline-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.detail-panel {
  padding: 14px;
}

.power-dialer-script-tab {
  display: grid;
  gap: 1rem;
}

.power-dialer-script-picker {
  display: block;
  width: min(360px, 100%);
  margin-top: 0.25rem;
}

.power-dialer-script-picker select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.55rem 2.3rem 0.55rem 0.75rem;
}

.power-dialer-script-picker select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(28, 184, 166, 0.14);
  outline: none;
}

.power-dialer-script-output {
  border: 1px solid rgba(28, 184, 166, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(237, 253, 250, 0.95), rgba(255, 255, 255, 0.96));
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.65;
  padding: 1.1rem;
  white-space: normal;
}

.power-dialer-script-text {
  white-space: normal;
}

.power-dialer-script-missing-tag {
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
  font-weight: 850;
  padding: 0.1rem 0.35rem;
}

.detail-company-mark,
.timeline-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef1ec;
}

.detail-company-mark {
  width: 42px;
  height: 42px;
}

.detail-company-mark img,
.detail-panel-head img {
  width: 20px;
  height: 20px;
  opacity: 0.72;
}

.detail-panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.detail-panel-head-spread {
  justify-content: space-between;
}

.detail-panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.detail-panel-head-tight {
  margin-top: 4px;
  margin-bottom: 0;
}

.detail-panel-head h3,
.timeline-head h2,
.timeline-card h3,
.contact-card h4 {
  margin: 0;
}

.detail-panel-head h3 {
  font-size: 0.98rem;
}

.compact-facts {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.compact-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0ec;
  padding-bottom: 9px;
}

.compact-facts div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.compact-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.compact-facts dd {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.address-list,
.contact-list {
  display: grid;
  gap: 10px;
}

.contact-list.is-sorting .contact-card {
  cursor: grabbing;
}

.product-list {
  display: grid;
  gap: 8px;
}

.supplier-products-view {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.supplier-products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf0ec;
  padding-bottom: 14px;
}

.supplier-products-head h2 {
  margin: 0;
  font-size: 1.18rem;
}

.supplier-products-head span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.supplier-product-search {
  width: min(320px, 48%);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe0da;
  border-radius: 7px;
  padding: 0 10px;
  background: #ffffff;
}

.supplier-product-search img {
  width: 15px;
  height: 15px;
  opacity: 0.62;
}

.supplier-product-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: none;
  font-size: 0.84rem;
  font-weight: 750;
}

.supplier-product-list {
  align-content: start;
  grid-template-columns: 1fr;
  gap: 8px;
  overflow: auto;
}

.supplier-product-card {
  min-height: 78px;
  align-items: stretch;
  padding: 13px 12px;
  background: #ffffff;
}

.supplier-product-card > .edit-view {
  width: 100%;
  align-items: center;
}

.supplier-product-card .product-card-main {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(260px, 2fr);
  align-items: center;
  gap: 18px;
}

.supplier-product-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.supplier-product-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-product-title small {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
}

.supplier-product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.supplier-product-facts div {
  min-width: 0;
  border: 1px solid #edf0ec;
  border-radius: 7px;
  padding: 8px 9px;
  background: #fbfcfa;
}

.supplier-product-facts dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.supplier-product-facts dd {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-product-facts dd small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supplier-product-empty {
  margin: 0;
  border: 1px dashed #dfe5de;
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  background: #fbfcfa;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.supplier-product-card[hidden],
.supplier-product-empty[hidden] {
  display: none;
}

.product-card {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  padding: 0 8px 0 11px;
  background: #fbfcfa;
}

.product-card-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-card-main strong {
  font-size: 0.86rem;
  font-weight: 800;
}

.product-card-main small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.product-price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 3px;
  color: var(--steel);
}

.product-price-line strong {
  font-size: 0.78rem;
}

.product-price-line small,
.price-updated-note {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.product-edit-panel {
  display: none;
  gap: 10px;
  margin-top: 0;
  border: 1px solid #dfe5de;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.editable-card.is-editing > .product-edit-panel {
  display: grid;
}

.product-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf0ec;
  padding-bottom: 8px;
}

.product-edit-head h4 {
  font-size: 0.92rem;
  white-space: nowrap;
}

.product-edit-head small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.product-edit-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.product-edit-panel .form-row-actions {
  grid-template-columns: minmax(0, 1fr) auto;
}

.product-edit-danger {
  display: grid;
  gap: 8px;
  border-top: 1px solid #edf0ec;
  padding-top: 9px;
}

.product-edit-danger .mini-action {
  width: 100%;
}

.product-edit-danger span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.mini-action-danger {
  border-color: rgba(20, 184, 166, 0.22);
  color: var(--accent);
  background: rgba(20, 184, 166, 0.05);
}

.mini-action-danger:hover {
  background: rgba(20, 184, 166, 0.08);
}

.mini-action-danger img {
  filter: invert(55%) sepia(78%) saturate(448%) hue-rotate(123deg) brightness(91%) contrast(88%);
  opacity: 0.82;
}

.address-card,
.contact-card {
  border: 1px solid #edf0ec;
  border-radius: 8px;
  background: #fbfcfa;
}

.address-card {
  padding: 11px;
}

.editable-card {
  position: relative;
}

.editable-card-plain {
  border: 0;
  background: transparent;
}

.edit-view {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.edit-view > div:first-child,
.contact-card > div:last-child {
  min-width: 0;
}

.edit-view strong {
  display: block;
  color: var(--steel);
  font-size: 0.86rem;
}

.edit-view p {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 0.84rem;
  line-height: 1.35;
}

.field-caption {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.inline-icon-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.icon-only {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--steel);
  background: transparent;
  cursor: pointer;
}

.icon-only:hover {
  border-color: var(--line);
  background: #ffffff;
}

.icon-only img {
  width: 15px;
  height: 15px;
  opacity: 0.72;
}

.icon-only-danger:hover {
  border-color: rgba(20, 184, 166, 0.25);
  background: rgba(20, 184, 166, 0.06);
}

.icon-only-danger img {
  opacity: 0.62;
}

.icon-only-danger:hover img {
  filter: invert(55%) sepia(78%) saturate(448%) hue-rotate(123deg) brightness(91%) contrast(88%);
  opacity: 0.9;
}

.icon-only:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.edit-form {
  display: none;
  margin-top: 8px;
}

.editable-card.is-editing > .edit-view,
.editable-card.is-editing > div > .edit-view,
.editable-card.is-editing > .add-toggle {
  display: none;
}

.editable-card.is-editing > .edit-form,
.editable-card.is-editing > div > .edit-form,
.editable-card.is-editing .timeline-card > .edit-form {
  display: grid;
}

.form-row-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.add-card {
  margin-top: 10px;
  border: 1px dashed #dfe4dd;
  border-radius: 8px;
  padding: 0;
  background: #ffffff;
}

.add-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--steel);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}

.add-toggle:hover {
  background: #f8f9f6;
}

.timeline-panel {
  padding: 16px;
}

.lead-main-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.lead-main-panel [data-lead-tab-content] {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.lead-main-panel .timeline-list,
.lead-main-panel .lead-inquiries,
.lead-main-panel .lead-empty-tab {
  min-height: 0;
  overflow: auto;
}

.lead-inquiries {
  display: grid;
  align-content: start;
  gap: 12px;
}

.power-dialer-workspace {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
}

.power-dialer-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #ffffff;
}

.power-dialer-board-head h2 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 1.18rem;
}

.power-dialer-board-head > span {
  border: 1px solid #e1e6df;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--steel);
  background: #f7f9f6;
  font-size: 0.78rem;
  font-weight: 850;
}

.power-dialer-grid {
  min-height: 0;
  display: grid;
  gap: 12px;
}

.power-dialer-grid-1 {
  grid-template-columns: 1fr;
}

.power-dialer-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.power-dialer-grid-3,
.power-dialer-grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, 1fr);
}

.power-dialer-card {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid #dfe5de;
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
}

.power-dialer-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.08);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.power-dialer-card.is-connected span {
  color: #28783f;
  background: rgba(57, 135, 73, 0.1);
}

.power-dialer-card.is-stopped span,
.power-dialer-card.is-missed span {
  color: var(--muted);
  background: #f1f3f0;
}

.power-dialer-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.12;
}

.power-dialer-card p,
.power-dialer-card small {
  margin: 0;
  color: var(--steel);
  font-weight: 850;
}

.power-dialer-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.power-dialer-locked .workspace a[href^="mailto:"],
.power-dialer-locked .workspace [data-contact-action],
.power-dialer-locked .workspace .detail-column button,
.power-dialer-locked .workspace .lead-section-tabs button,
.power-dialer-locked .workspace .inquiry-card-actions,
.power-dialer-locked .workspace .editable-card:not(.timeline-item-call) > .edit-view button {
  pointer-events: none;
  opacity: 0.42;
}

.power-dialer-locked .workspace [data-appointment-open],
.power-dialer-locked .workspace [data-appointment-open] * {
  pointer-events: auto;
  opacity: 1;
}

.power-dialer-locked .workspace .lead-section-tabs a,
.power-dialer-locked .workspace .lead-section-tabs button {
  pointer-events: auto;
  opacity: 1;
}

.dialer-review-list-item em.is-waiting {
  color: #92400e;
  background: #fef3c7;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  border: 1px solid #dfe5de;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.inquiry-form[hidden] {
  display: none;
}

.inquiry-card > .inquiry-edit-form {
  display: none;
}

.inquiry-card.is-editing > .inquiry-edit-form {
  display: grid;
}

.inquiry-form-head,
.inquiry-card-head,
.inquiry-delivery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inquiry-delivery-head label {
  flex: 1 1 0;
}

.inquiry-form-head h2,
.inquiry-card h3 {
  font-size: 1.05rem;
}

.inquiry-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.inquiry-form input,
.inquiry-form select {
  height: 34px;
  padding: 0 9px;
}

.inquiry-form textarea {
  min-height: 82px;
  padding: 8px 9px;
  resize: vertical;
  line-height: 1.4;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.12);
}

.inquiry-title-group > span,
.inquiry-delivery-summary-head span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.inquiry-card-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.inquiry-card-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.inquiry-form-grid,
.inquiry-meta-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(240px, 1.25fr) minmax(190px, 0.95fr) minmax(112px, 0.45fr);
  gap: 10px;
}

.inquiry-checkbox-field {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 58px;
  border: 1px solid #e6ebe4;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfa;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.inquiry-checkbox-field input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.inquiry-checkbox-field span {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: 1.2;
}

.inquiry-deliveries,
.inquiry-list,
.inquiry-delivery-list {
  display: grid;
  gap: 10px;
}

.inquiry-list {
  gap: 9px;
}

.inquiry-delivery,
.inquiry-delivery-summary {
  border: 1px solid #e7ece6;
  border-radius: 8px;
  background: #fbfcfa;
}

.inquiry-card {
  border: 1px solid #dde4dd;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(24, 35, 32, 0.035);
}

.inquiry-card-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "identity"
    "facts"
    "deliveries"
    "notes";
  align-items: start;
  gap: 9px;
}

.inquiry-card-head {
  display: flex;
  grid-area: identity;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid #edf0ec;
  padding-bottom: 8px;
}

.inquiry-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
  min-width: 250px;
}

.inquiry-stage-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
  justify-content: flex-end;
}

.supplier-request-open {
  min-height: 30px;
  padding-inline: 9px;
  white-space: nowrap;
}

.supplier-request-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(47, 111, 137, 0.18);
  border-radius: 6px;
  padding: 0 8px;
  color: #2f6f89;
  background: rgba(47, 111, 137, 0.07);
  font-size: 0.74rem;
  font-weight: 850;
}

.inquiry-card-actions time {
  width: auto;
  min-width: 0;
  margin-right: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.inquiry-title-group {
  display: grid;
  gap: 4px;
  align-content: start;
  min-width: 0;
}

.inquiry-title-group h3 {
  font-size: 1.04rem;
}

.inquiry-overview-grid {
  display: grid;
  grid-area: facts;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr) minmax(74px, 0.36fr) minmax(104px, 0.48fr);
  gap: 6px;
  min-width: 0;
}

.inquiry-overview-grid div {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  padding: 7px 8px;
  background: #fbfcfa;
}

.inquiry-overview-grid small,
.inquiry-delivery-summary li small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}

.inquiry-overview-grid strong {
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.25;
}

.inquiry-delivery {
  padding: 12px;
}

.inquiry-delivery {
  background: #f8f9f6;
}

.inquiry-delivery-summary {
  padding: 9px;
  background: #fbfcfa;
}

.inquiry-delivery-list {
  grid-area: deliveries;
}

.inquiry-delivery-summary-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.inquiry-delivery-summary-head h4 {
  min-width: 0;
}

.inquiry-delivery-summary-head small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inquiry-product-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px auto;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid #edf0ec;
  padding-top: 12px;
}

.inquiry-product-picker label:first-child {
  position: relative;
}

.inquiry-product-suggestions {
  position: absolute;
  z-index: 15;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #dfe5de;
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(24, 35, 32, 0.12);
}

.inquiry-product-suggestions button {
  width: 100%;
  display: grid;
  gap: 2px;
  border: 0;
  border-radius: 6px;
  padding: 8px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.inquiry-product-suggestions button:hover {
  background: #f3f5f1;
}

.inquiry-product-suggestions small,
.inquiry-item-row small,
.inquiry-card-head time {
  color: var(--muted);
  font-size: 0.76rem;
}

.inquiry-items {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.inquiry-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 58px;
  align-items: center;
  gap: 8px;
  border: 1px solid #edf0ec;
  border-radius: 7px;
  padding: 8px;
  background: #ffffff;
}

.inquiry-item-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.inquiry-item-row .inline-icon-actions {
  justify-content: end;
}

.inquiry-add-delivery {
  justify-self: start;
}

.inquiry-form > .form-row-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.inquiry-meta-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.inquiry-meta-grid strong,
.inquiry-delivery-summary h4 {
  font-size: 0.8rem;
}

.inquiry-delivery-summary ul {
  display: grid;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.inquiry-delivery-summary li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #edf0ec;
  border-radius: 7px;
  padding: 7px 8px;
  background: #ffffff;
  font-size: 0.8rem;
}

.inquiry-delivery-summary li span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.inquiry-notes {
  grid-area: notes;
  margin: 0;
  border-top: 1px solid #edf0ec;
  padding-top: 8px;
  color: var(--steel);
  font-size: 0.8rem;
}

.supplier-request-modal {
  width: min(760px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.supplier-request-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.supplier-request-head h2 {
  font-size: 1.1rem;
}

.supplier-request-list {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-right: 2px;
}

.supplier-request-delivery {
  display: grid;
  gap: 8px;
}

.supplier-request-delivery h3 {
  color: var(--steel);
  font-size: 0.82rem;
}

.supplier-request-item {
  display: grid;
  gap: 9px;
  border: 1px solid #e4e9e3;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
}

.supplier-request-item.has-error {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.08);
}

.supplier-request-item-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: start;
}

.supplier-request-item-title div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.supplier-request-item-title small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.supplier-request-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
}

.supplier-request-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(47, 111, 137, 0.18);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--steel);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 830;
}

.supplier-request-chip:hover {
  border-color: rgba(20, 184, 166, 0.32);
  background: #f0fdfa;
}

.supplier-request-chip img {
  width: 13px;
  height: 13px;
  opacity: 0.58;
}

.supplier-request-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.supplier-request-search input {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 9px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.supplier-request-search input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.12);
}

.supplier-request-modal .form-row-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.supplier-request-modal .mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.offer-modal {
  width: min(980px, 100%);
  height: min(820px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.offer-modal.is-previewing {
  width: min(760px, calc(100vw - 48px));
  height: calc(100vh - 32px);
  max-height: none;
}

.offer-modal [data-offer-edit-panel] {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto;
  gap: 14px;
}

.offer-modal [data-offer-edit-panel][hidden] {
  display: none;
}

.offer-modal-preview {
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
}

.offer-modal-preview[hidden] {
  display: none;
}

.offer-pdf-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6f2;
}

.offer-modal-list,
.offer-delivery-group,
.lead-offers {
  display: grid;
  gap: 12px;
}

.lead-timeline-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-timeline-combined-actions .note-add-card { min-width: 0; }
.lead-timeline-action-toggle { width: 36px; min-height: 34px; padding: 7px; justify-content: center; }
.lead-timeline-action-toggle img { width: 19px; height: 19px; }
.lead-timeline-action-toggle[aria-expanded="true"] { background: #e8f5f2; border-color: #14b8a6; }
.lead-timeline-menu button:focus-visible { outline: 2px solid #14b8a6; outline-offset: -2px; background: #f2f5f1; }

.roi-dialog { width: min(1080px, calc(100vw - 32px)); max-width: none; height: min(860px, calc(100dvh - 32px)); max-height: none; padding: 0; border: 1px solid #d7e1dc; border-radius: 12px; color: #1d3031; background: white; overflow: hidden; }
.roi-dialog[open] { display: flex; flex-direction: column; }
.roi-dialog::backdrop { background: rgb(20 35 34 / 45%); }
.roi-dialog .modal-head { padding: 18px 22px; margin: 0; flex-shrink: 0; border-bottom: 1px solid #e5ebe7; }
.roi-layout { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 0; flex: 1; overflow: hidden; }
.roi-form, .roi-results { padding: 22px; min-width: 0; overflow: auto; }
.roi-results { background: #f4f9f7; border-left: 1px solid #e0e8e2; }
.roi-form section { margin-top: 24px; }
.roi-form h3 { margin: 0 0 12px; font-size: 15px; }
.roi-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; min-width: 0; }
.roi-form input:not([type=checkbox]):not([type=radio]) { width: 100%; box-sizing: border-box; min-height: 38px; padding: 8px 10px; border: 1px solid #d7e1dc; border-radius: 6px; color: inherit; background: white; font: inherit; font-size: 14px; }
.roi-form input:focus-visible { outline: 2px solid #14b8a6; outline-offset: 1px; }
.roi-form input[readonly] { background: #f6f8f7 !important; }
.roi-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roi-tool { display: grid; grid-template-columns: 1fr 95px 28px; gap: 8px; margin-bottom: 14px; }
.roi-tool .roi-checkbox { grid-column: 1 / 3; flex-direction: row; align-items: center; }
.roi-tool [data-tool-remove] { grid-column: 3; grid-row: 1; align-self: end; }
.roi-time-head, .roi-time-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; align-items: center; font-size: 12px; margin: 10px 0; }
.roi-time-row label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.roi-time-row small { color: #657972; }
.roi-rate-mode { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.roi-rate-mode label { flex-direction: row; align-items: center; }
.roi-countries, .roi-salary-basis { border: 0; margin: 0 0 12px; padding: 0; display: flex; gap: 8px; min-width: 0; }
.roi-countries legend, .roi-salary-basis legend { font-size: 12px; margin-bottom: 7px; }
.roi-countries label { position: relative; cursor: pointer; }
.roi-countries input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.roi-countries label > span { font-size: 26px; line-height: 1; border: 1px solid #ccdcd3; border-radius: 7px; padding: 9px 13px; background: white; }
.roi-countries input:checked + span { border-color: #0d9784; background: #dff4ec; box-shadow: 0 0 0 1px #0d9784; }
.roi-countries input:focus-visible + span { outline: 2px solid #0d9784; outline-offset: 3px; }
.roi-countries input:disabled + span { cursor: default; }
.roi-salary-selectors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.roi-salary-basis { align-items: center; margin-bottom: 0; }
.roi-salary-basis label { flex-direction: row; align-items: center; }
.roi-form select { min-height: 38px; width: 100%; border: 1px solid #d7e1dc; border-radius: 6px; background: white; color: inherit; padding: 8px; font: inherit; }
.roi-salary-info { font-size: 13px; line-height: 1.5; font-weight: 600; background: #e8f5ef; padding: 12px; border-radius: 6px; }
.roi-salary-assumptions { font-size: 12px; margin-top: 14px; }
.roi-salary-assumptions summary { cursor: pointer; margin-bottom: 12px; }
.roi-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roi-comparison div { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid #dce7e0; border-radius: 8px; background: white; }
.roi-comparison strong { font-size: clamp(16px, 2vw, 23px); overflow-wrap: anywhere; }
.roi-benefit { margin: 18px 0; padding: 20px; display: flex; flex-direction: column; gap: 9px; background: #dff4ec; border-radius: 9px; }
.roi-benefit strong { font-size: 32px; overflow-wrap: anywhere; color: #106851; }
.roi-benefit.is-negative { background: #fff0e9; }
.roi-benefit.is-negative strong { color: #9a4326; }
.roi-breakdown > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #dce7e0; font-size: 13px; }
.roi-breakdown dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.roi-hint { font-size: 12px; color: #596e65; line-height: 1.5; }
.roi-results details { margin-top: 18px; font-size: 13px; line-height: 1.6; }
.roi-results summary { cursor: pointer; font-weight: 600; }
.roi-results ol { padding-left: 20px; }
.roi-results li { padding: 5px 0; }
.roi-discard-dialog { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; overflow: auto; border: 1px solid #dce7e0; border-radius: 14px; padding: 22px; color: #243331; background: #fff; box-shadow: 0 18px 70px #14272340; }
.roi-discard-dialog::backdrop { background: #172b2966; }
.roi-discard-dialog .modal-head { padding: 0; border: 0; }
.roi-discard-dialog h2 { margin: 0; font-size: 20px; }
.roi-discard-dialog p { margin: 16px 0 22px; line-height: 1.5; }
.roi-discard-dialog footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.roi-discard-dialog .roi-discard-button { background: #a72f37; border-color: #a72f37; color: #fff; }
.roi-footer { flex-shrink: 0; border-top: 1px solid #dce7e0; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: white; }
.roi-footer p { margin: 0; font-size: 12px; }
.roi-footer > div { display: flex; gap: 8px; margin-left: auto; }
.roi-footer .roi-save { background: #0d9784; color: white; border-color: #0d9784; }
.roi-dialog [hidden] { display: none !important; }
.roi-menu button:focus-visible { outline: 2px solid #14b8a6; outline-offset: -2px; }
.roi-tool-tariff { grid-column: 1 / -1; display: grid; gap: 6px; min-width: 0; }
.roi-tool-tariff p { margin: 0; }
.roi-tool-tariff details[open] p { margin-top: 6px; }
.roi-tool[data-provider-id] { padding-bottom: 12px; border-bottom: 1px solid #e0e8e2; }
.roi-estimate { font-size: 11px; color: #86601c; }
.roi-tool-menu .roi-provider-logo { width: 18px; height: 18px; object-fit: contain; flex: 0 0 18px; }
.roi-tool-tariff details { font-size: 12px; overflow-wrap: anywhere; }
.roi-tool-tariff select { width: 100%; min-width: 0; }
.roi-tool [data-tool-cost][readonly] { background: #f0fdfa; cursor: default; }
.roi-tool-menu { position: fixed; z-index: 10; max-width: calc(100vw - 16px); }
.roi-tool-menu button:disabled { opacity: .45; cursor: default; }
@media (max-width: 720px) {
  .roi-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); }
  .roi-layout { display: block; overflow: auto; }
  .roi-form, .roi-results { padding: 16px; overflow: visible; }
  .roi-results { border-left: none; border-top: 1px solid #dce7e0; }
  .roi-footer { padding: 10px 12px; flex-wrap: wrap; }
  .roi-footer p:empty { display: none; }
  .roi-footer p:not(:empty) { width: 100%; }
}

.timeline-item-appointment .timeline-card {
  border-color: rgba(20, 184, 166, 0.2);
  background: linear-gradient(180deg, rgba(240, 253, 250, 0.9), #ffffff);
}

.timeline-item-appointment.is-pinned-appointment .timeline-card {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.12);
}

.timeline-appointment {
  display: grid;
  gap: 12px;
}

.timeline-appointment-pin {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timeline-item.is-pinned-note .timeline-card {
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.1);
}

.timeline-note-pin {
  display: inline-block;
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timeline-appointment-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.timeline-appointment h4 {
  margin: 2px 0 4px;
  color: var(--steel);
  font-size: 1.02rem;
}

.timeline-appointment small {
  color: var(--muted);
  font-weight: 760;
}

.timeline-appointment-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  white-space: nowrap;
}

.timeline-appointment-meta strong {
  color: var(--steel);
  font-weight: 900;
}

.timeline-appointment-actions {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.timeline-appointment-link,
.timeline-appointment-copy-link {
  justify-self: start;
}

.timeline-appointment-recording {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 9px;
  padding: 10px;
  background: rgba(20, 184, 166, 0.07);
}

.timeline-appointment-recording-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline-appointment-recording-head strong {
  color: var(--steel);
  font-size: 0.86rem;
}

.timeline-appointment-recording-head span {
  color: #0f766e;
  font-size: 0.74rem;
  font-weight: 900;
}

.timeline-appointment-recording-player {
  width: 100%;
  max-height: 320px;
  border-radius: 8px;
  background: #101817;
}

.timeline-appointment-recording-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-appointment-recording-download {
  justify-self: start;
}

.recording-share-page {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(15, 30, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 30, 28, 0.03) 1px, transparent 1px),
    #f7faf8;
  background-size: 24px 24px;
  color: var(--steel);
}

.recording-share-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.recording-share-card {
  width: min(1040px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.recording-share-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.recording-share-brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-weight: 900;
}

.recording-share-brand strong {
  font-size: 1rem;
}

.recording-share-card h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

.recording-share-meta {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.recording-share-player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #101817;
}

.recording-share-player {
  width: 100%;
  max-height: 72vh;
  display: block;
  background: #101817;
}

.recording-share-loader {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  pointer-events: none;
  background: rgba(16, 24, 23, 0.32);
}

.recording-share-player-wrap.is-loading .recording-share-loader {
  display: grid;
}

.recording-share-loader span {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--brand);
  border-radius: 999px;
  animation: recording-share-spin 0.8s linear infinite;
}

@keyframes recording-share-spin {
  to {
    transform: rotate(360deg);
  }
}

.recording-share-download {
  width: max-content;
  margin-top: 16px;
}

.recording-share-note {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(36, 178, 160, 0.2);
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.06);
}

.recording-share-note h2 {
  margin: 3px 0 10px;
  font-size: 1.15rem;
}

.recording-share-note > p:last-child {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.appointment-backdrop {
  align-items: center;
}

.appointment-modal {
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 36px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.appointment-step-list {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.appointment-type-card,
.appointment-contact-card {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fbfdfc;
  color: var(--ink);
  cursor: pointer;
}

.appointment-type-card:hover,
.appointment-contact-card:hover:not(:disabled) {
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.055);
}

.appointment-external-link {
  justify-self: start;
  margin-top: 4px;
  color: var(--muted);
}

.appointment-contact-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.appointment-attendee-intro {
  display: grid;
  gap: 4px;
  padding: 2px 2px 6px;
}

.appointment-attendee-intro span,
.appointment-attendee-actions > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.appointment-attendee-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.appointment-attendee-contact-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.appointment-attendee-contact-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
}

.appointment-attendee-contact-title small {
  padding: 2px 6px;
  border-radius: 999px;
  background: #eef2f0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.appointment-attendee-count {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.appointment-attendee-count.is-muted {
  background: #eef2f0;
  color: var(--muted);
}

.appointment-attendee-chevron {
  color: var(--muted);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
}

.appointment-attendee-card.is-selected {
  border-color: rgba(13, 148, 136, 0.55);
  background: rgba(20, 184, 166, 0.09);
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.12);
}

.appointment-attendee-details {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.appointment-attendee-details > span {
  overflow-wrap: anywhere;
}

.appointment-attendee-details small {
  color: var(--muted);
}

.appointment-attendee-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 2px;
}

.appointment-attendee-detail-head > div {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.appointment-attendee-detail-head > div span {
  color: var(--muted);
  font-size: 0.78rem;
}

.appointment-attendee-detail-intro {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.appointment-attendee-email {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.appointment-attendee-email-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: #eef5f3;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.appointment-attendee-email.is-selected .appointment-attendee-email-icon {
  background: var(--accent-dark);
  color: #ffffff;
}

.appointment-attendee-order {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

.appointment-attendee-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 2px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 18px);
}

.appointment-attendee-actions .mini-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.appointment-external-form {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: auto;
}

.appointment-external-form[hidden] {
  display: none;
}

.appointment-external-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.appointment-external-grid label {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 830;
}

.appointment-external-grid label:nth-child(2) {
  grid-column: 1 / -1;
}

.appointment-external-grid input,
.appointment-external-grid textarea {
  width: 100%;
  border: 1px solid #dbe0da;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
  outline: none;
}

.appointment-external-grid input {
  height: 38px;
}

.appointment-external-grid textarea {
  min-height: 92px;
  resize: vertical;
  padding: 10px;
  line-height: 1.45;
}

.appointment-external-note-field {
  grid-column: 1 / -1;
}

.timeline-appointment-ai-note {
  border-color: rgba(20, 184, 166, 0.22);
  background: rgba(20, 184, 166, 0.055);
}

.appointment-booking-step {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(420px, 1fr);
  gap: 12px;
}

.appointment-booking-note {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 830;
}

.appointment-booking-note textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid #dbe0da;
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  resize: vertical;
  outline: none;
}

.appointment-booking-step[hidden],
.appointment-step-list[hidden] {
  display: none;
}

.appointment-booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
}

.appointment-cal-frame {
  min-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8f5;
}

.offer-list-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.offer-list-actions {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid rgba(222, 230, 225, 0.75);
  justify-content: flex-start;
}

.offer-action-spacer {
  flex: 1 1 auto;
  min-width: 18px;
}

.offer-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 800;
}

.offer-status-draft {
  color: #1f2937;
  border-color: #475569;
  background: #ffffff;
}

.offer-status-sent {
  color: #78350f;
  border-color: #d97706;
  background: #fef3c7;
}

.offer-status-accepted {
  color: #166534;
  border-color: #16a34a;
  background: #dcfce7;
}

.offer-status-rejected {
  color: #991b1b;
  border-color: #dc2626;
  background: #fee2e2;
}

.offer-status-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid;
  border-radius: 999px;
  overflow: hidden;
}

.offer-status-control select {
  min-height: 28px;
  border: 0;
  outline: 0;
  padding: 3px 28px 3px 10px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.offer-status-control:focus-within {
  outline: 3px solid rgba(20, 184, 166, 0.2);
  outline-offset: 2px;
}

.offer-status-control select:disabled {
  cursor: wait;
  opacity: 0.65;
}

.offer-modal-list {
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.offer-delivery-group h3 {
  margin: 0;
  color: var(--steel);
  font-size: 0.82rem;
}

.offer-item-card {
  position: relative;
  border: 1px solid #e4e9e3;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
}

.offer-item-head,
.offer-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.offer-item-head {
  margin-bottom: 10px;
}

.offer-item-head small,
.offer-preview-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.offer-item-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(130px, 0.7fr) minmax(90px, 0.45fr) minmax(130px, 0.7fr);
  gap: 10px;
}

.offer-item-grid label,
.offer-delivery-cost label,
.offer-address-select {
  position: relative;
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 830;
}

.offer-item-grid input,
.offer-item-grid select,
.offer-item-grid textarea,
.offer-delivery-cost input,
.offer-address-select select {
  width: 100%;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 9px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-weight: 760;
  outline: none;
}

.offer-item-grid input,
.offer-item-grid select,
.offer-delivery-cost input,
.offer-address-select select {
  height: 36px;
}

.offer-item-grid textarea {
  min-height: 92px;
  overflow: hidden;
  padding: 9px;
  resize: vertical;
}

.offer-item-grid label:last-child {
  grid-column: 1 / -1;
}

.offer-product-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  width: min(340px, calc(100vw - 48px));
  margin-top: 4px;
  border: 1px solid #d8e4de;
  border-radius: 9px;
  padding: 4px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 32, 29, 0.16);
}

.offer-product-suggestions button,
.offer-item-menu button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 8px 9px;
  background: transparent;
  color: var(--steel);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.offer-product-suggestions button {
  display: grid;
  gap: 2px;
}

.offer-product-suggestions button span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.offer-product-suggestions button:hover,
.offer-product-suggestions button.is-active,
.offer-item-menu button:hover {
  background: rgba(20, 184, 166, 0.09);
  color: #0f766e;
}

.offer-item-menu {
  position: fixed;
  z-index: 90;
  width: 220px;
  border: 1px solid #d8e4de;
  border-radius: 9px;
  padding: 4px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(23, 32, 29, 0.16);
}

.offer-add-item {
  justify-self: start;
}

.offer-delivery-cost {
  max-width: 220px;
}

.offer-modal-totals,
.offer-preview-totals {
  display: grid;
  gap: 6px;
  justify-self: end;
  min-width: 260px;
}

.offer-modal-totals p,
.offer-preview-totals p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  color: var(--steel);
  font-size: 0.86rem;
  font-weight: 830;
}

.offer-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
}

.offer-preview-head {
  margin-bottom: 14px;
}

.offer-preview-head h2 {
  margin: 2px 0;
}

.offer-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.offer-preview-meta {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.offer-preview-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
}

.offer-preview-meta small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-preview-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.offer-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 130px 130px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.offer-preview-row:first-child {
  border-top: 0;
}

.offer-preview-row-head {
  color: var(--muted);
  background: #f4f6f2;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.offer-preview-grand-total {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  color: var(--ink) !important;
  font-size: 1rem !important;
}

.offer-list {
  display: grid;
  gap: 10px;
}

.offer-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  align-items: start;
  border: 1px solid rgba(222, 230, 225, 0.95);
  border-radius: 12px;
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.offer-list-card:hover,
.offer-list-card:focus-visible {
  border-color: rgba(20, 184, 166, 0.32);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
  outline: none;
}

.offer-cancel-dialog { max-height: calc(100dvh - 32px); overflow: auto; }
.offer-cancel-dialog [data-cancel-error] { color: #a12525; }
.offer-cancel-dialog footer { flex-wrap: wrap; }
.offer-cancel-dialog [data-cancel-submit],
.offer-cancel-dialog [data-cancel-submit]:hover,
.offer-cancel-dialog [data-cancel-submit]:focus-visible { background: #a72f37; border-color: #a72f37; color: #fff; }
.offer-cancel-dialog [data-cancel-submit]:disabled { opacity: .55; cursor: not-allowed; }

.offer-list-card.is-accepted-offer {
  opacity: 0.68;
  background: linear-gradient(180deg, #f8faf9 0%, #f3f7f5 100%);
}

.offer-list-card.is-accepted-offer:hover,
.offer-list-card.is-accepted-offer:focus-visible {
  transform: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.offer-list-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.offer-list-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.offer-list-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 760;
}

.offer-list-total {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.offer-list-total small {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.offer-list-total strong {
  color: var(--steel);
  font-weight: 900;
  font-size: 1.02rem;
}

.offer-list-actions .mini-action {
  min-height: 30px;
  padding: 6px 10px;
}

.offer-delete-action {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: rgba(180, 35, 24, 0.04);
}

.offer-delete-action:hover {
  border-color: rgba(180, 35, 24, 0.34);
  background: rgba(180, 35, 24, 0.08);
}

.lead-orders {
  display: grid;
  gap: 12px;
}

.order-list-card {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(222, 230, 225, 0.95);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.035);
}

.order-list-main {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.order-actions-menu-wrap {
  position: relative;
  align-self: start;
}

.order-actions-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 5px);
  right: 0;
  width: max-content;
  min-width: 220px;
  display: grid;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 32, 29, 0.16);
}

.order-actions-menu[hidden] { display: none; }

.order-actions-menu a,
.order-actions-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 760;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.order-actions-menu a:hover,
.order-actions-menu button:hover { background: var(--surface-soft); }
.order-actions-menu button:disabled { color: var(--muted); cursor: not-allowed; opacity: 0.65; }
.order-actions-menu .is-danger { color: #9f3128; }
.order-actions-menu img { width: 16px; height: 16px; }

.order-reverse-charge-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 310px;
  min-height: 52px;
  border-radius: 7px;
  padding: 8px 10px;
  cursor: pointer;
}

.order-reverse-charge-menu-item:hover { background: var(--surface-soft); }

.order-reverse-charge-menu-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.order-reverse-charge-menu-copy strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.order-reverse-charge-menu-copy small {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
}

.order-reverse-charge-error {
  margin: 0 10px 6px;
  max-width: 290px;
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.35;
}

.order-stripe-migration-backdrop { z-index: 82; }
.order-stripe-migration-modal {
  width: min(560px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}
.order-migration-intro { margin: 0; color: var(--muted); line-height: 1.5; }
.order-migration-summary { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 13px; background: var(--surface-soft); }
.order-migration-summary > div { display: flex; justify-content: space-between; gap: 16px; }
.order-migration-summary span { color: var(--muted); }
.order-migration-summary strong { text-align: right; }
.order-migration-link { display: grid; gap: 6px; color: var(--steel); font-size: 0.8rem; font-weight: 820; }
.order-migration-link input { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 10px; font: inherit; }
.order-migration-error { min-height: 0; margin: 0; color: #a52836; line-height: 1.45; }
.order-migration-actions { margin-top: 0; flex-wrap: wrap; }

.order-list-main h3 {
  margin: 2px 0 4px;
  font-size: 1.05rem;
}

.order-list-main p {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.order-list-total {
  display: grid;
  justify-items: end;
  gap: 2px;
  white-space: nowrap;
}

.order-list-total small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-list-total strong {
  color: var(--steel);
  font-size: 1.08rem;
}

.order-list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.order-list-date-badges {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.order-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.order-date-badge small {
  color: var(--muted);
  font-size: inherit;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.order-date-badge small::after {
  content: ":";
}

.order-date-badge strong {
  color: var(--steel);
  font-size: inherit;
  line-height: 1.15;
  white-space: nowrap;
}

.order-date-badge.is-overdue {
  border-color: transparent;
  background: transparent;
}

.order-date-badge.is-overdue strong {
  color: #dc2626;
}

.order-invoice-list {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(222, 230, 225, 0.75);
}

.order-invoice-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(20, 184, 166, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(240, 253, 250, 0.5);
  font-weight: 820;
}

.order-invoice-main {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.order-invoice-main span,
.order-invoice-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-invoice-main small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
}

.order-invoice-row.is-overdue .order-invoice-main span {
  color: #dc2626;
}

.invoice-paid-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  white-space: nowrap;
}

.invoice-payment-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}

.invoice-paid-toggle input {
  accent-color: var(--accent);
}

.order-invoice-show-all {
  justify-self: start;
}

.invoice-actions-menu-wrap {
  position: relative;
  justify-self: end;
}

.invoice-actions-menu {
  position: absolute;
  z-index: 16;
  top: calc(100% + 5px);
  right: 0;
  width: 280px;
  max-width: min(280px, calc(100vw - 32px));
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 32, 29, 0.16);
}

.invoice-actions-menu[hidden] {
  display: none;
}

.invoice-actions-menu.opens-up {
  top: auto;
  bottom: calc(100% + 5px);
}

.invoice-actions-menu > button,
.invoice-reverse-charge-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.invoice-actions-menu > button {
  justify-content: flex-start;
}

.invoice-actions-menu > button:hover,
.invoice-reverse-charge-menu-item:hover {
  background: var(--surface-soft);
}

.invoice-actions-menu > button img {
  width: 16px;
  height: 16px;
}

.invoice-reverse-charge-menu-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.invoice-reverse-charge-menu-copy small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.invoice-reverse-charge-error {
  margin: 0 10px 6px;
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .order-invoice-row {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .invoice-actions-menu-wrap {
    justify-self: start;
  }

  .invoice-actions-menu {
    right: auto;
    left: 0;
  }
}

.email-attachments-panel {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 8px 0 0;
  background: #ffffff;
}

.email-attachment-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
}

.email-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.email-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  color: var(--steel);
  background: #fbfefd;
  font-size: 0.8rem;
  font-weight: 830;
}

.email-attachment-chip .icon-only {
  width: 24px;
  height: 24px;
}

.email-attachment-menu {
  position: fixed;
  z-index: 80;
  width: 280px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(222, 230, 225, 0.95);
  border-radius: 12px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.email-attachment-menu[hidden] {
  display: none;
}

.email-attachment-menu button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--steel);
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 820;
  cursor: pointer;
}

.email-attachment-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-attachment-menu button:disabled {
  color: #a8b2ad;
  background: #f5f7f6;
  cursor: not-allowed;
}

.email-attachment-menu button:hover,
.email-attachment-menu button:focus-visible {
  outline: none;
  background: rgba(20, 184, 166, 0.10);
}

.email-attachment-menu button:disabled:hover,
.email-attachment-menu button:disabled:focus-visible {
  background: #f5f7f6;
}

.email-attachment-menu p {
  margin: 6px 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.email-attachment-menu.is-offer-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-attachment-menu small {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.email-signature-menu {
  width: 240px;
}

.email-signature-list {
  display: grid;
  gap: 12px;
}

.email-signature-form,
.email-signature-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
}

.email-signature-row {
  display: grid;
  gap: 10px;
}

.email-signature-row-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.email-signature-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.email-signature-toolbar button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #ffffff;
  color: var(--steel);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.email-signature-toolbar button:hover,
.email-signature-toolbar button:focus-visible {
  outline: none;
  border-color: rgba(20, 184, 166, 0.42);
  background: rgba(20, 184, 166, 0.09);
}

.email-signature-editor {
  min-height: 92px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #dbe0da;
  border-radius: 10px;
  padding: 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.email-signature-editor:focus {
  outline: 2px solid rgba(20, 184, 166, 0.25);
  border-color: var(--accent);
}

.email-signature-editor img {
  display: block;
  max-width: 240px;
  max-height: 120px;
  margin: 6px 0;
}

.email-attachment-check-list {
  display: grid;
  gap: 4px;
  max-height: min(280px, 45vh);
  overflow: auto;
}

.email-attachment-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 820;
  cursor: pointer;
}

.email-attachment-check-row:hover,
.email-attachment-check-row:focus-within {
  background: rgba(20, 184, 166, 0.10);
}

.email-attachment-check-row input {
  width: 14px;
  height: 14px;
  accent-color: var(--mint);
}

.email-attachment-check-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-attachment[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .email-modal-backdrop.has-side-preview {
    grid-template-columns: 1fr;
    overflow: auto;
    align-items: start;
  }

  .email-offer-preview {
    height: min(760px, calc(100vh - 48px));
  }

  .offer-item-grid,
  .offer-preview-meta,
  .offer-preview-row {
    grid-template-columns: 1fr;
  }
}

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.timeline-head h2 {
  font-size: 1.15rem;
}

.timeline-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.timeline-time-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0;
  color: #7e8b84;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-time-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #d9e1dc;
}

.timeline-time-divider span {
  position: relative;
  z-index: 1;
  padding: 0 10px;
  background: #ffffff;
}

.timeline-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.timeline-item-outgoing,
.timeline-item-system {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.timeline-item-outgoing .timeline-icon,
.timeline-item-system .timeline-icon {
  grid-column: 2;
  grid-row: 1;
}

.timeline-item-outgoing .timeline-card,
.timeline-item-system .timeline-card {
  grid-column: 1;
  justify-self: end;
  text-align: left;
}

.timeline-item-incoming .timeline-card,
.timeline-item-outgoing .timeline-card,
.timeline-item-system .timeline-card {
  width: min(78%, 520px);
}

.timeline-item-incoming .timeline-card {
  justify-self: start;
}

.timeline-icon {
  width: 34px;
  height: 34px;
  margin-top: 2px;
}

.timeline-icon img {
  width: 17px;
  height: 17px;
  opacity: 0.72;
}

.timeline-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #e7ece6;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.timeline-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.note-add-card {
  position: relative;
  min-width: 118px;
  display: flex;
  justify-content: flex-end;
}

.note-add-card .note-form {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(360px, 72vw);
  border: 1px solid #dfe5de;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(24, 35, 32, 0.14);
}

.timeline-card .note-form {
  margin-top: 10px;
  border-top: 1px solid #edf0ec;
  padding-top: 10px;
}

.timeline-item-outgoing .timeline-card,
.timeline-item-system .timeline-card {
  border-color: rgba(20, 184, 166, 0.18);
  background: #f0fdfa;
}

.timeline-item-incoming .timeline-card {
  background: #ffffff;
}

.timeline-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.timeline-card-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-live-tag {
  border: 1px solid rgba(51, 132, 88, 0.22);
  border-radius: 999px;
  padding: 1px 6px;
  color: #25724c;
  background: #eef8f1;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  text-transform: none;
}

.timeline-card h3 {
  margin-top: 3px;
  font-size: 0.98rem;
}

.timeline-card time {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.timeline-card p {
  margin: 10px 0 8px;
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.45;
}

.timeline-note-body,
.call-note p {
  white-space: pre-wrap;
}

.timeline-note-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.timeline-note-body a {
  color: #1769aa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.timeline-item-email .timeline-card {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.timeline-item-sms .timeline-card {
  border-color: rgba(20, 184, 166, 0.16);
  background: #f8fffd;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.timeline-email {
  display: grid;
  gap: 8px;
}

.timeline-sms {
  display: grid;
  gap: 8px;
}

.timeline-email-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.timeline-email-party {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.timeline-email-party-list {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.timeline-email-party-recipient {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.timeline-email-party span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-email-party strong {
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.25;
}

.timeline-email-party em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

.timeline-email-draft-badge {
  align-self: flex-start;
  width: fit-content;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-email-reply {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.timeline-email-reply:hover {
  border-color: rgba(20, 184, 166, 0.42);
  background: rgba(20, 184, 166, 0.07);
}

.timeline-email-reply img {
  width: 14px;
  height: 14px;
}

.timeline-email h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.35;
}

.timeline-email-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-email-draft-actions .mini-action {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.78rem;
}

.timeline-email-draft-actions .mini-action-danger {
  border-color: rgba(220, 38, 38, 0.2);
  color: #b91c1c;
  background: rgba(220, 38, 38, 0.04);
}

.timeline-email-draft-actions .mini-action-danger:hover {
  background: rgba(220, 38, 38, 0.08);
}

.timeline-email-draft-actions .mini-action-danger img {
  filter: invert(21%) sepia(82%) saturate(2691%) hue-rotate(346deg) brightness(90%) contrast(89%);
}

.timeline-email-preview {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.timeline-email:has(.timeline-email-details[open]) .timeline-email-preview {
  display: none;
}

.timeline-sms-message {
  margin: 0;
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.timeline-email-details {
  display: grid;
  gap: 8px;
}

.timeline-email-details:not([open]) .timeline-email-full,
.timeline-email-details:not([open]) small {
  display: none;
}

.timeline-email-details summary {
  order: 3;
  width: fit-content;
  margin-top: 2px;
  cursor: pointer;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  list-style: none;
}

.timeline-email-details summary::-webkit-details-marker {
  display: none;
}

.timeline-email-less-label,
.timeline-email-details[open] .timeline-email-more-label {
  display: none;
}

.timeline-email-details[open] .timeline-email-less-label {
  display: inline;
}

.timeline-email-full {
  order: 1;
  padding: 0;
  border-top: 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
}

.timeline-email-details small {
  order: 2;
}

.timeline-email-attachments {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.timeline-email-attachments > span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-email-attachments > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-email-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.08);
  color: var(--text);
  min-height: 0;
  padding: 1px 6px;
  font-size: 0.64rem;
  line-height: 1.05;
  text-align: left;
}

button.timeline-email-attachment-chip {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

button.timeline-email-attachment-chip:hover {
  border-color: rgba(20, 184, 166, 0.42);
  background: rgba(20, 184, 166, 0.14);
}

.timeline-email-attachment-chip img {
  width: 9px;
  height: 9px;
  opacity: 0.72;
}

.timeline-email-attachment-chip strong {
  overflow: hidden;
  max-width: 132px;
  font-size: inherit;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-email-attachment-chip small {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
}

.email-attachment-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(6px);
}

.email-attachment-preview-backdrop[hidden] {
  display: none;
}

.email-attachment-preview-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(920px, 100%);
  height: min(780px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.email-attachment-preview-modal .modal-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.email-attachment-preview-modal .modal-head small {
  display: block;
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.email-attachment-preview-modal .modal-head h2 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.email-attachment-preview-modal .icon-button {
  display: inline-grid;
  min-height: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  gap: 0;
  line-height: 1;
}

.email-attachment-preview-modal .icon-button img {
  display: block;
  width: 16px;
  height: 16px;
  filter: none;
  opacity: 0.76;
}

.email-attachment-preview-modal .icon-button:hover {
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.08);
}

.email-attachment-preview-body {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8faf9;
}

.email-attachment-preview-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.email-attachment-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.email-attachment-preview-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 360px;
  padding: 28px;
  text-align: center;
}

.email-attachment-preview-empty img {
  width: 34px;
  height: 34px;
  opacity: 0.7;
}

.email-attachment-preview-empty strong {
  color: var(--text);
  font-size: 0.96rem;
}

.email-attachment-preview-empty span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.email-attachment-preview-empty.is-error strong {
  color: #9f3232;
}

.email-calendar-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  width: min(560px, calc(100% - 32px));
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.email-calendar-preview-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(20, 184, 166, 0.1);
}

.email-calendar-preview-icon img {
  width: 20px;
  height: 20px;
  opacity: 0.76;
}

.email-calendar-preview > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.email-calendar-preview small {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.email-calendar-preview strong {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
}

.email-calendar-preview-date,
.email-calendar-preview-time {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.email-calendar-preview-zone {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.email-attachment-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
}

.timeline-email-html {
  white-space: normal;
}

.timeline-email-html p {
  margin: 0 0 0.85em;
}

.timeline-email-html blockquote {
  margin: 10px 0;
  border-left: 3px solid #d8e7e2;
  padding-left: 10px;
  color: var(--muted);
}

.call-note {
  border: 1px solid #edf0ec;
  border-radius: 7px;
  margin: 8px 0;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.72);
}

.call-failure-details {
  border: 1px solid rgba(185, 68, 68, 0.2);
  border-radius: 7px;
  margin: 8px 0;
  padding: 9px 10px;
  background: rgba(185, 68, 68, 0.055);
}

.call-failure-details > strong {
  color: #943c3c;
  font-size: 0.82rem;
}

.call-failure-details p {
  margin: 4px 0 6px;
  color: var(--steel);
  font-size: 0.82rem;
}

.call-failure-details small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.call-failure-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.call-failure-codes span {
  border-radius: 999px;
  padding: 2px 7px;
  color: #7f3535;
  background: rgba(185, 68, 68, 0.1);
  font-size: 0.68rem;
  font-weight: 800;
}

.call-note span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.call-note p {
  margin: 4px 0 0;
  font-size: 0.86rem;
}

.timeline-item-call.is-editing .call-note-display {
  display: none;
}

.timeline-item-call.is-editing .power-dialer-review-summary {
  display: none;
}

.timeline-item-note.is-editing .timeline-note-display,
.timeline-item-note.is-editing .timeline-card > small {
  display: none;
}

.timeline-item-note.is-editing .timeline-card > .edit-form {
  margin-top: 0;
}

.power-dialer-review-summary {
  border-color: rgba(47, 111, 137, 0.18);
  background: rgba(47, 111, 137, 0.06);
}

.power-dialer-review-summary p {
  white-space: normal;
}

.power-dialer-review-summary p span {
  display: block;
}

.power-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.power-review-grid [hidden] {
  display: none !important;
}

.power-review-grid fieldset,
.power-review-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
  border: 1px solid #e3e8e1;
  border-radius: 6px;
  padding: 8px;
  background: #ffffff;
}

.power-review-grid legend,
.power-review-grid > label > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.power-review-grid fieldset label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 0;
  border-radius: 5px;
  padding: 4px 6px;
  color: var(--steel);
  background: #f7f9f6;
  font-size: 0.76rem;
  font-weight: 850;
}

.power-review-grid input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.power-review-grid select {
  width: 100%;
  min-height: 32px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 8px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
}

.power-dialer-review-form textarea {
  min-height: 84px;
  resize: vertical;
}

.power-review-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.power-review-save-actions > .mini-action {
  flex: 1 1 auto;
}

.timeline-audio {
  width: 100%;
  height: 34px;
  margin: 2px 0 8px;
}

.timeline-audio-native {
  display: none;
}

.timeline-audio-player {
  min-height: 44px;
  display: grid;
  grid-template-columns: 34px minmax(120px, 1fr) auto 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 4px 0 8px;
  padding: 5px 7px;
  background: #f6f7f4;
}

.timeline-audio-play,
.timeline-audio-speed {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--steel);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.timeline-audio-play {
  width: 30px;
  padding: 0;
}

.timeline-audio-speed {
  min-width: 38px;
  padding: 0 7px;
}

.timeline-audio-play:hover,
.timeline-audio-speed:hover {
  background: #edf0ec;
}

.timeline-audio-waveform {
  width: 100%;
  height: 34px;
  display: block;
  cursor: pointer;
}

.timeline-audio-time {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.transcript-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0 0 8px;
  padding: 0 10px;
  color: var(--steel);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.transcript-button:hover {
  background: #f7f8f5;
}

.transcript-button img {
  width: 15px;
  height: 15px;
  opacity: 0.7;
}

.timeline-card small,
.muted-copy {
  color: var(--muted);
}

.timeline-call-counterpart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.timeline-call-counterpart strong {
  color: var(--steel);
  font-size: inherit;
}

.timeline-call-counterpart span {
  font-variant-numeric: tabular-nums;
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  cursor: grab;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.contact-card.is-dragging {
  opacity: 0.55;
  transform: scale(0.995);
}

.contact-card.is-drop-target {
  border-color: rgba(20, 184, 166, 0.34);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.08);
}

.contact-card.is-editing {
  cursor: default;
}

.contact-card .edit-view {
  display: block;
  padding-right: 28px;
}

.contact-card .inline-icon-actions {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  gap: 4px;
}

.contact-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--steel-light);
  font-weight: 800;
}

.contact-card h4 {
  margin: 0;
  font-size: 0.93rem;
}

.contact-title-line {
  min-width: 0;
  display: block;
  padding-right: 2px;
}

.contact-title-line h4 {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
  line-height: 1.2;
}

.contact-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 3px 0 2px;
}

.contact-meta-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.priority-tag {
  flex: 0 0 auto;
  border: 1px solid #e1e7df;
  border-radius: 999px;
  padding: 1px 5px;
  color: var(--muted);
  background: #ffffff;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.15;
}

.contact-card p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-card a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin-top: 6px;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.contact-card a img {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  opacity: 0.72;
}

.contact-card a span {
  min-width: max-content;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.contact-card a[data-contact-type="email"] {
  align-items: flex-start;
  white-space: normal;
}

.contact-card a[data-contact-type="email"] span {
  min-width: 0;
  overflow-wrap: normal;
  white-space: normal;
  word-break: normal;
}

.contact-links {
  display: grid;
  gap: 4px;
  margin: 9px 0;
  overflow: visible;
}

.contact-delete-form {
  margin: 0;
}

.contact-edit-actions {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  margin-top: 8px;
}

.contact-card.is-editing .contact-edit-actions {
  display: grid;
}

.contact-save-action {
  width: 100%;
}

.contact-delete-modal {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.method-editor {
  display: grid;
  gap: 6px;
}

.method-editor > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.method-list {
  display: grid;
  gap: 6px;
}

.method-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: center;
}

.method-drag-handle {
  width: 22px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: #a3aca6;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.method-drag-handle:hover,
.method-drag-handle:focus-visible {
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.08);
}

.method-drag-handle:active,
.method-list.is-sorting .method-drag-handle {
  cursor: grabbing;
}

.method-drag-handle img {
  width: 14px;
  height: 14px;
  opacity: 0.68;
}

.method-row.is-dragging {
  opacity: 0.6;
}

.method-row .icon-only {
  width: 30px;
  height: 30px;
}

.mini-link-button {
  width: max-content;
  border: 0;
  padding: 0;
  color: var(--steel);
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.mini-link-button:hover {
  color: var(--accent);
}

.contact-menu {
  position: fixed;
  z-index: 50;
  min-width: 150px;
  border: 1px solid #d8ded7;
  border-radius: 6px;
  padding: 4px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(23, 32, 29, 0.18);
}

.contact-menu button {
  width: 100%;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  padding: 0 9px;
  color: var(--steel);
  background: transparent;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  text-align: left;
}

.contact-menu button:hover {
  background: #f2f5f1;
}

.contact-menu button.contact-menu-danger {
  color: #b42318;
}

.contact-menu button.contact-menu-danger:hover {
  background: #fff1f0;
}

.contact-menu button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.contact-menu img {
  width: 15px;
  height: 15px;
  opacity: 0.72;
}

.email-insert-menu-panel {
  z-index: 72;
  width: min(190px, calc(100vw - 16px));
  max-height: min(360px, calc(100vh - 16px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.email-insert-menu-level-1 {
  width: min(270px, calc(100vw - 16px));
}

.email-insert-menu-level-2 {
  width: min(300px, calc(100vw - 16px));
}

.email-insert-menu-panel button {
  min-height: 34px;
}

.email-insert-menu-panel button:hover,
.email-insert-menu-panel button:focus-visible,
.email-insert-menu-panel button[aria-expanded="true"] {
  background: #f2f5f1;
  outline: none;
}

.email-insert-menu-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.email-insert-menu-panel button.has-separator {
  min-height: 38px;
  margin-top: 4px;
  border-top: 1px solid #e8ece7;
  border-radius: 0 0 4px 4px;
}

.email-insert-menu-content {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 1px;
  line-height: 1.2;
}

.email-insert-menu-content > span,
.email-insert-menu-content > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-insert-menu-content > small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.email-insert-menu-panel .email-insert-menu-arrow {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-left: auto;
  opacity: 0.58;
}

.lead-row-menu [data-lead-row-menu-delete] {
  color: #9f3128;
}

.lead-row-menu {
  min-width: 205px;
}

.lead-row-menu-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 1px;
}

.lead-row-menu-copy > span,
.lead-row-menu-copy > small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-row-menu-copy > small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.lead-row-menu .lead-row-menu-arrow {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  margin-left: auto;
  opacity: 0.58;
}

.lead-row-menu [data-lead-row-menu-assignee][aria-expanded="true"] {
  background: #f2f5f1;
}

.lead-row-assignee-menu {
  z-index: 52;
  width: min(230px, calc(100vw - 16px));
  max-height: min(360px, calc(100vh - 16px));
  overflow-y: auto;
}

.lead-row-assignee-menu button {
  min-height: 34px;
}

.lead-row-assignee-menu button:focus-visible {
  background: #f2f5f1;
  outline: none;
}

.lead-row-assignee-menu button:disabled {
  cursor: default;
  opacity: 0.7;
}

.lead-row-menu-check {
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.lead-row-menu-check img {
  width: 14px;
  height: 14px;
  opacity: 1;
}

.call-activity-menu {
  min-width: 164px;
}

.call-activity-menu [data-call-menu-delete],
.note-activity-menu [data-note-menu-delete] {
  color: #9f3128;
}

.note-activity-menu {
  min-width: 164px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 32, 29, 0.36);
  backdrop-filter: blur(3px);
}

.modal-backdrop[hidden] {
  display: none;
}

.phone-calls-modal {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.phone-calls-backdrop {
  z-index: 70;
}

.german-vat-id-backdrop {
  z-index: 78;
}

.german-vat-id-modal {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.german-vat-id-modal label {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 850;
}

.german-vat-id-modal input {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe0da;
  border-radius: 7px;
  padding: 0 11px;
  color: var(--ink);
  outline: none;
}

.german-vat-id-modal input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.12);
}

.german-vat-id-modal .german-vat-reverse-charge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  border: 1px solid #e2e7e2;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8faf8;
  cursor: pointer;
}

.german-vat-reverse-charge-copy {
  display: grid;
  gap: 3px;
}

.german-vat-reverse-charge-copy strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.german-vat-reverse-charge-copy small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
}

.german-vat-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
}

.german-vat-id-modal .german-vat-switch input,
.order-actions-menu .german-vat-switch input,
.invoice-actions-menu .german-vat-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
}

.german-vat-switch > span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c8cfcc;
  box-shadow: inset 0 0 0 1px rgba(30, 48, 43, 0.06);
  transition: background 0.18s ease;
}

.german-vat-switch > span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(24, 37, 33, 0.24);
  transition: transform 0.18s ease;
}

.german-vat-switch input:checked + span {
  background: var(--accent);
}

.german-vat-switch input:checked + span::after {
  transform: translateX(20px);
}

.german-vat-switch input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.phone-calls-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow: auto;
  padding-right: 2px;
}

.phone-call-history-row,
.phone-call-history-session > button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e7ece6;
  border-radius: 9px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fbfcfa;
  text-align: left;
  text-decoration: none;
}

.phone-call-history-session > button {
  cursor: pointer;
}

.phone-call-history-row:hover,
.phone-call-history-session > button:hover {
  border-color: rgba(31, 178, 166, 0.35);
  background: #f6fffd;
}

.phone-call-history-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
}

.phone-call-history-icon.is-incoming {
  background: #1fb2a6;
}

.phone-call-history-icon.is-forwarded {
  background: #4f46e5;
}

.phone-call-history-icon.is-outgoing,
.phone-call-history-icon.is-power {
  background: var(--ink);
}

.phone-call-history-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.phone-call-history-copy strong,
.phone-call-history-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-call-history-copy strong {
  font-size: 0.84rem;
  font-weight: 950;
}

.phone-call-history-copy small,
.phone-call-history-row time,
.phone-call-history-session time {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.phone-call-history-number {
  cursor: pointer;
}

.phone-call-history-number:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.phone-call-menu {
  z-index: 90;
}

.phone-call-history-session {
  display: grid;
  gap: 6px;
}

.phone-call-history-session-calls {
  display: grid;
  gap: 6px;
  margin-left: 18px;
  padding-left: 14px;
  border-left: 1px solid #e7ece6;
}

.phone-call-history-session-calls[hidden] {
  display: none;
}

.product-db-modal {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.offer-products-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.offer-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid #edf0ec;
  border-radius: 10px;
  padding: 12px;
  background: #fbfcfa;
}

.offer-product-main {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(120px, 0.75fr) minmax(82px, 0.45fr) minmax(125px, 0.7fr);
  gap: 10px;
}

.offer-product-main label {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 850;
}

.offer-product-main input,
.offer-product-main select,
.offer-product-main textarea {
  width: 100%;
  border: 1px solid #dbe0da;
  border-radius: 7px;
  padding: 0 9px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 760;
}

.offer-product-main input,
.offer-product-main select {
  height: 36px;
}

.offer-product-main textarea {
  min-height: 74px;
  padding: 9px;
  resize: vertical;
}

.offer-product-long {
  grid-column: 1 / -1;
}

.offer-product-actions {
  display: grid;
  gap: 7px;
  justify-items: stretch;
}

.product-db-table-wrap {
  overflow: auto;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  background: #ffffff;
}

.product-db-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.product-db-table th,
.product-db-table td {
  border-bottom: 1px solid #edf0ec;
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

.product-db-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #fbfcfa;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-db-table td {
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 750;
}

.product-db-table td > strong,
.product-db-supplier strong {
  display: block;
  color: var(--ink);
  font-size: 0.86rem;
}

.product-db-table small,
.product-db-supplier small,
.product-db-price small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.product-db-suppliers {
  display: grid;
  gap: 7px;
}

.product-db-supplier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  gap: 12px;
  border: 1px solid #edf0ec;
  border-radius: 7px;
  padding: 8px 9px;
  background: #fbfcfa;
}

.product-db-price {
  text-align: right;
}

.muted-inline {
  color: var(--muted);
  font-weight: 750;
}

.product-modal {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.dialer-modal {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.dialer-summary-modal {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.dialer-preview-list-modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.dialer-summary-copy {
  margin: 0;
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 850;
}

.dialer-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dialer-summary-stats div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.dialer-summary-stats span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dialer-summary-stats strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.dialer-summary-actions {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.dialer-summary-actions .mini-action {
  min-height: 38px;
}

.dialer-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 190px);
  gap: 14px;
  align-items: center;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
}

.dialer-setting strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.dialer-setting span,
.dialer-preview-button span,
.dialer-number-menu p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.38;
}

.dialer-setting .dialer-setting-pill {
  justify-self: end;
  margin: 0;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.dialer-resume-review-setting {
  border-color: rgba(20, 184, 166, 0.22);
  background: rgba(20, 184, 166, 0.06);
}

.dialer-resume-review-setting .mini-action {
  justify-self: end;
}

.dialer-setting select,
.dialer-setting input[type="number"] {
  width: 100%;
  height: 38px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
  outline: none;
}

.dialer-radio-group {
  display: grid;
  gap: 6px;
}

.dialer-radio-group label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 9px;
  background: #ffffff;
  color: var(--steel);
  font-size: 0.8rem;
  font-weight: 850;
}

.dialer-radio-group input {
  accent-color: var(--accent);
}

.dialer-ranking-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.dialer-ranking-options label {
  cursor: pointer;
}

.dialer-ranking-options span {
  margin-top: 0;
  color: var(--steel);
}

.dialer-modal-page {
  display: grid;
  gap: 14px;
}

.dialer-modal-page[hidden] {
  display: none;
}

.dialer-settings-panel {
  display: grid;
  gap: 14px;
}

.dialer-settings-panel[hidden] {
  display: none;
}

.dialer-settings-copy {
  border: 1px solid #dcece8;
  border-radius: 8px;
  padding: 12px;
  background: #f5fbf9;
}

.dialer-settings-copy strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.dialer-settings-copy span,
.dialer-lead-list-options p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.38;
}

.dialer-max-attempts-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  margin-top: 10px;
}

.dialer-max-attempts-control input {
  width: 100%;
  height: 38px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  font-weight: 800;
  outline: none;
}

.dialer-max-attempts-control.is-unlimited {
  grid-template-columns: 38px;
}

.dialer-infinity-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  color: var(--steel);
  background: #ffffff;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
}

.dialer-infinity-button.is-active {
  border-color: var(--accent);
  color: #ffffff;
  background: var(--accent);
}

.dialer-lead-list-options {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  padding-right: 2px;
}

.dialer-lead-list-options label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 9px;
  background: #ffffff;
  color: var(--steel);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.dialer-lead-list-options input {
  accent-color: var(--accent);
}

.dialer-toggle-option {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  margin-top: 10px;
  padding: 0 9px;
  background: #ffffff;
  color: var(--steel);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.dialer-toggle-option input {
  accent-color: var(--accent);
}

.dialer-number-picker {
  position: relative;
}

.dialer-number-toggle {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.dialer-number-toggle img {
  width: 15px;
  height: 15px;
  opacity: 0.68;
}

.dialer-number-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 56;
  display: grid;
  gap: 4px;
  border: 1px solid #d8ded7;
  border-radius: 7px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(23, 32, 29, 0.14);
}

.dialer-number-menu[hidden] {
  display: none;
}

.dialer-number-menu label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 5px;
  padding: 0 8px;
  color: var(--steel);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.dialer-number-menu label:hover {
  background: #f2f5f1;
}

.dialer-number-menu input {
  accent-color: var(--accent);
}

.dialer-preview-button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px dashed #dbe0da;
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.dialer-preview-button:hover {
  border-color: #cbd4ca;
  background: #fbfcfa;
}

.dialer-preview-button img {
  width: 18px;
  height: 18px;
  opacity: 0.72;
}

.dialer-preview-button span {
  margin: 0;
}

.dialer-preview-button strong {
  color: inherit;
  font-size: inherit;
}

.dialer-preview-table {
  display: grid;
  gap: 6px;
  max-height: min(560px, calc(100vh - 170px));
  overflow: auto;
  padding-right: 2px;
}

.dialer-preview-table-head,
.dialer-preview-table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(90px, 0.55fr);
  gap: 12px;
  align-items: center;
}

.dialer-preview-table-head {
  padding: 0 12px 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dialer-preview-table-row {
  min-height: 48px;
  border: 1px solid #edf0ec;
  border-radius: 7px;
  padding: 8px 12px;
  background: #ffffff;
}

.dialer-preview-table-row.is-next {
  border-color: #d7dfd5;
  background: #fbfcfa;
}

.dialer-preview-lead-link,
.dialer-preview-table-row span,
.dialer-preview-table-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialer-preview-lead-link {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.dialer-preview-lead-link:hover,
.dialer-preview-lead-link:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

.dialer-preview-table-row span {
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 800;
}

.dialer-preview-table-row em {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--steel);
  background: #f0f3ef;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 850;
}

.email-modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
  overflow: hidden;
}

.email-modal-body {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow: auto;
  padding-right: 4px;
}

.mail-center-modal {
  width: min(980px, calc(100vw - 40px));
  height: min(680px, calc(100vh - 48px));
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.mail-center-tabs {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5faf8;
}

.mail-center-tabs button {
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.mail-center-tabs button.is-active {
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(23, 32, 29, 0.08);
}

.mail-center-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 14px;
}

.mail-center-list-panel,
.mail-center-preview {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
  overflow: hidden;
}

.mail-center-list {
  height: 100%;
  overflow: auto;
  padding: 8px;
}

.mail-center-list-item {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mail-center-list-item:hover,
.mail-center-list-item.is-active {
  border-color: rgba(20, 184, 166, 0.25);
  background: rgba(20, 184, 166, 0.07);
}

.mail-center-list-item.is-delivery-failed {
  border-color: rgba(220, 38, 38, 0.2);
  background: rgba(254, 242, 242, 0.78);
}

.mail-center-list-item.is-delivery-failed span {
  color: #b91c1c;
}

.mail-center-list-item strong,
.mail-center-list-item span,
.mail-center-list-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-center-list-item strong {
  font-size: 0.9rem;
}

.mail-center-list-item span {
  font-size: 0.84rem;
  font-weight: 800;
}

.mail-center-list-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

.mail-center-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.mail-center-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.mail-center-preview-head h3 {
  margin: 2px 0 6px;
  font-size: 1.05rem;
}

.mail-center-preview-meta {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.mail-center-body {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  color: var(--ink);
  line-height: 1.5;
}

.mail-center-body img {
  max-width: 100%;
  height: auto;
}

.mail-center-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.email-send-error-backdrop {
  z-index: 180;
}

.email-send-error-dialog {
  width: min(470px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(185, 28, 28, 0.2);
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.28);
}

.email-send-error-dialog:focus {
  outline: 3px solid rgba(20, 184, 166, 0.22);
  outline-offset: 3px;
}

.email-send-error-dialog h2 {
  margin: 2px 0 8px;
  color: var(--ink);
  font-size: 1.18rem;
}

.email-send-error-dialog p {
  margin: 0;
  color: var(--steel);
  line-height: 1.5;
}

.email-send-error-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #b91c1c;
  background: #fef2f2;
}

.email-send-error-icon img {
  width: 22px;
  height: 22px;
}

.email-send-error-draft-status {
  margin-top: 10px !important;
  border-radius: 10px;
  padding: 9px 11px;
  color: #166534 !important;
  background: #f0fdf4;
  font-weight: 800;
}

.email-send-error-draft-status.is-error {
  color: #991b1b !important;
  background: #fef2f2;
}

.email-send-error-dialog .form-row-actions {
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 4px;
}

.email-send-force-button {
  border-color: #d8a719;
  background: #fff4c2;
  color: #5d4300;
}

.email-send-force-button:hover,
.email-send-force-button:focus-visible {
  border-color: #b88400;
  background: #ffe99a;
}

@media (max-width: 480px) {
  .email-send-error-dialog {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 16px;
  }

  .email-send-error-icon {
    width: 38px;
    height: 38px;
  }

  .email-send-error-dialog .form-row-actions {
    grid-template-columns: 1fr;
  }
}

.sms-modal {
  width: min(430px, 100%);
}

.email-modal.sms-modal textarea {
  height: clamp(150px, 24vh, 240px);
  min-height: 130px;
}

.sms-counter {
  justify-self: end;
  margin-top: -6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.email-modal-backdrop.has-reply-preview {
  grid-template-columns: minmax(340px, 500px) minmax(420px, 620px);
  align-items: center;
  justify-content: center;
  gap: 12px;
  place-items: stretch;
}

.email-modal-backdrop.has-reply-preview .email-modal {
  width: 100%;
  max-height: min(780px, calc(100vh - 72px));
}

.email-reply-preview {
  width: 100%;
  height: min(780px, calc(100vh - 72px));
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
  overflow: hidden;
}

.email-reply-preview[hidden] {
  display: none;
}

.email-reply-preview-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}

.email-reply-preview-head h2 {
  max-width: 390px;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 1.02rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-reply-preview-toggle {
  display: none;
}

.email-reply-preview-content {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
}

.email-reply-preview-content[hidden] {
  display: none;
}

.email-reply-preview-meta {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid rgba(217, 225, 221, 0.8);
  padding-bottom: 11px;
}

.email-reply-preview-meta p {
  min-width: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.email-reply-preview-meta strong {
  color: var(--steel);
  font-weight: 850;
}

.email-reply-preview-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.email-reply-preview-body {
  min-height: 0;
  overflow: auto;
  padding: 2px 6px 8px 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.52;
  overflow-wrap: anywhere;
}

.email-reply-preview-body.is-plain-text {
  white-space: pre-wrap;
}

.email-reply-preview-body img {
  max-width: 100%;
  height: auto;
}

.email-reply-preview-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid rgba(217, 225, 221, 0.8);
  padding-top: 10px;
}

.email-reply-preview-attachments[hidden] {
  display: none;
}

.email-reply-preview-attachments .timeline-email-attachment-chip {
  max-width: 100%;
}

.email-modal-backdrop.has-side-preview {
  grid-template-columns: minmax(380px, 500px) minmax(390px, 560px);
  align-items: center;
  justify-content: center;
  gap: 12px;
  place-items: stretch;
}

.email-modal-backdrop.has-side-preview .email-modal {
  width: 100%;
  max-height: min(780px, calc(100vh - 72px));
}

.email-offer-preview {
  width: 100%;
  height: min(780px, calc(100vh - 72px));
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.email-offer-preview .modal-head {
  align-items: center;
}

.email-offer-preview .modal-head h2 {
  margin: 2px 0 0;
  font-size: 1.02rem;
}

.email-offer-preview .offer-pdf-preview {
  border-radius: 6px;
}

.email-offer-preview .offer-preview-actions {
  justify-content: stretch;
  gap: 8px;
}

.email-offer-preview .offer-preview-actions > * {
  flex: 1 1 0;
  justify-content: center;
}

.email-offer-preview[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .email-modal-backdrop.has-reply-preview,
  .email-modal-backdrop.has-side-preview {
    grid-template-columns: 1fr;
    align-items: start;
    place-items: stretch;
    overflow: auto;
  }

  .email-modal-backdrop.has-reply-preview .email-modal {
    max-height: calc(58dvh - 16px);
  }

  .email-reply-preview {
    height: auto;
    max-height: min(380px, calc(42dvh - 16px));
  }

  .email-reply-preview.is-collapsed {
    max-height: none;
  }

  .email-reply-preview-toggle {
    display: grid;
  }

  .email-reply-preview.is-collapsed .email-reply-preview-toggle img {
    transform: rotate(-90deg);
  }
}

.transcript-modal {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.transcript-list {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.transcript-entry {
  width: min(78%, 480px);
  border: 1px solid #edf0ec;
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfa;
}

.transcript-entry-me {
  justify-self: end;
  border-color: rgba(20, 184, 166, 0.18);
  background: #f0fdfa;
}

.transcript-entry-other {
  justify-self: start;
  background: #ffffff;
}

.transcript-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.transcript-entry-head strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.transcript-entry-head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.transcript-entry p {
  margin: 0;
  color: var(--steel);
  font-size: 0.9rem;
  line-height: 1.48;
}

.email-modal label,
.email-recipient-section {
  display: grid;
  gap: 7px;
}

.email-modal label span,
.email-field-head span {
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 800;
}

.email-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.email-recipient-list {
  display: grid;
  gap: 6px;
}

.email-recipient-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: center;
}

.email-recipient-picker-row {
  grid-template-columns: minmax(0, 1fr) 30px;
}

.email-combo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  background: #ffffff;
}

.email-combo input {
  border: 0;
}

.email-combo-toggle {
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid #edf0ec;
  border-radius: 0 6px 6px 0;
  background: transparent;
  cursor: pointer;
}

.email-combo-toggle:hover {
  background: #f8f9f6;
}

.email-combo-toggle img {
  width: 15px;
  height: 15px;
  opacity: 0.68;
}

.country-combo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  width: 100%;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  background: #ffffff;
}

.country-combo:focus-within {
  border-color: rgba(20, 184, 166, 0.65);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.10);
}

.country-combo input {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.country-combo input:focus {
  box-shadow: none;
}

.country-combo-toggle {
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid #edf0ec;
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
}

.country-combo-toggle:hover {
  background: #f8f9f6;
}

.country-option-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 56;
  display: grid;
  gap: 2px;
  border: 1px solid #d8ded7;
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 32, 29, 0.14);
}

.country-option-list[hidden] {
  display: none;
}

.country-option-list button {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 5px;
  padding: 0 9px;
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 760;
  text-align: left;
}

.country-option-list button:hover,
.country-option-list button:focus-visible {
  background: #f2f5f1;
  outline: none;
}

.email-modal input,
.email-modal textarea,
.email-picker {
  width: 100%;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.email-modal input,
.email-picker {
  height: 38px;
  padding: 0 10px;
}

.email-modal .email-combo input {
  border: 0;
}

.email-suggestion-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 55;
  max-height: 160px;
  overflow: auto;
  border: 1px solid #d8ded7;
  border-radius: 6px;
  padding: 4px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 32, 29, 0.14);
}

.email-suggestion-list[hidden] {
  display: none;
}

.email-suggestion-list button {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  padding: 0 9px;
  color: var(--steel);
  background: transparent;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  text-align: left;
}

.email-suggestion-list button:hover {
  background: #f2f5f1;
}

.email-modal textarea {
  height: clamp(180px, 28vh, 300px);
  min-height: 160px;
  max-height: 300px;
  resize: none;
  padding: 10px;
  font: inherit;
  line-height: 1.45;
}

.email-message-compose {
  display: grid;
  overflow: visible;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  background: #ffffff;
}

.email-message-compose:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.16);
}

.email-message-compose textarea,
.email-message-editor {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.email-message-editor {
  min-height: clamp(180px, 28vh, 300px);
  max-height: none;
  overflow: visible;
  padding: 10px;
  font: inherit;
  line-height: 1.45;
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.email-message-editor:empty::before {
  content: attr(data-placeholder);
  color: #9aa39a;
}

.email-message-editor a {
  color: #0b57d0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.email-booking-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin: 0 2px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  user-select: all;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  vertical-align: baseline;
}

.email-booking-token::before {
  content: "↗";
  margin-right: 6px;
  font-size: 0.82em;
  font-weight: 900;
}

.email-booking-link-preview,
.email-signature-preview {
  display: grid;
  gap: 4px;
  max-width: 100%;
  padding: 0 10px 10px;
  background: #ffffff;
}

.email-booking-link-preview[hidden],
.email-signature-preview[hidden] {
  display: none;
}

.email-booking-link-preview::before,
.email-signature-preview::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 8px;
  background: #edf0ec;
}

.email-booking-link-preview-label,
.email-signature-preview-label {
  display: none;
}

.email-booking-link-preview-body,
.email-signature-preview-body {
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.35;
}

.email-signature-preview-body img {
  display: block;
  max-width: min(460px, 100%);
  max-height: 170px;
  object-fit: contain;
}

.email-modal .form-row-actions {
  margin: 0 -16px -16px;
  border-top: 1px solid var(--line);
  padding: 12px 16px 16px;
  background: #ffffff;
}

.email-modal .email-send-actions {
  grid-template-columns: minmax(0, 0.78fr) minmax(150px, 1.15fr) auto;
}

.email-schedule-selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 6px;
}

.email-schedule-selection[hidden] {
  display: none;
}

.email-schedule-date {
  min-width: 0;
  white-space: nowrap;
}

.email-schedule-remove {
  min-height: 32px;
  color: #b91c1c;
  background: #fff7f7;
}

.email-schedule-menu {
  width: 258px;
  z-index: 90;
}

.email-schedule-time-label {
  display: block;
  margin: 10px 0 5px;
  color: var(--steel);
  font-size: 0.74rem;
  font-weight: 800;
}

.email-schedule-time input {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--steel);
  font: inherit;
  font-weight: 800;
}

.email-schedule-time > span {
  color: var(--steel);
  font-weight: 800;
}

.email-schedule-error,
.timeline-email-schedule-error {
  margin: 8px 0 0;
  color: #b91c1c;
  font-size: 0.74rem;
  font-weight: 700;
}

.email-schedule-save {
  width: 100%;
  margin-top: 10px;
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.timeline-email-draft-badge.is-scheduled {
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.1);
}

.timeline-email-draft-badge.is-failed {
  color: #b91c1c;
  background: #fef2f2;
}

.product-step {
  display: grid;
  gap: 12px;
}

.product-step[hidden] {
  display: none;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1rem;
}

.product-modal label {
  display: grid;
  gap: 6px;
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-modal input {
  width: 100%;
  height: 42px;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  padding: 0 11px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.product-suggestions {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.product-suggestions button {
  min-height: 34px;
  display: grid;
  gap: 3px;
  border: 1px solid #edf0ec;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--steel);
  background: #fbfcfa;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
}

.product-suggestions button[hidden] {
  display: none;
}

.product-suggestions small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.product-suggestions button:hover {
  border-color: #c7d0c7;
  background: #f2f5f1;
}

.compact-edit-form,
.add-mini-form {
  display: grid;
  gap: 9px;
}

.add-mini-form {
  margin-top: 0;
  border-top: 1px solid #edf0ec;
  padding: 12px;
}

.compact-edit-form.edit-form,
.add-mini-form.edit-form {
  display: none;
}

.editable-card.is-editing > .edit-form,
.editable-card.is-editing > div > .edit-form {
  display: grid;
}

.compact-edit-form label {
  display: grid;
  gap: 5px;
  color: var(--steel);
  font-size: 0.78rem;
  font-weight: 800;
}

.compact-edit-form input,
.compact-edit-form select,
.compact-edit-form textarea {
  width: 100%;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.compact-edit-form input,
.compact-edit-form select {
  height: 34px;
  padding: 0 9px;
}

.task-due-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 7px;
}

.task-due-fields label {
  min-width: 0;
}

.task-time-mask {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 3px;
}

.task-time-mask > input[type="text"] {
  min-width: 0;
  padding: 0 4px;
  text-align: center;
}

.task-time-mask > b {
  color: var(--steel);
  font: inherit;
  font-weight: 800;
}

.compact-edit-form textarea {
  min-height: 74px;
  padding: 8px 9px;
  resize: vertical;
  line-height: 1.4;
  font: inherit;
}

.compact-edit-form input:focus,
.compact-edit-form select:focus,
.compact-edit-form textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.12);
}

.task-list {
  display: grid;
  gap: 8px;
}

.task-card {
  border: 1px solid #edf0ec;
  border-radius: 8px;
  background: #fbfcfa;
  padding: 10px 11px;
}

.task-card-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  cursor: pointer;
  outline: none;
}

.task-card-view:focus,
.task-card-view:hover {
  color: var(--steel);
}

.task-card-main {
  min-width: 0;
}

.task-card.is-completed {
  background: #f4f7f3;
}

.task-card.is-completed strong {
  color: #7b8780;
  text-decoration: line-through;
}

.task-card strong {
  display: block;
  color: var(--steel);
  font-size: 0.86rem;
  line-height: 1.35;
}

.task-card small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.task-card small img {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.task-menu [data-task-menu-delete] {
  color: #0f766e;
}

.compact-edit-form input[data-date-picker] {
  cursor: pointer;
}

.date-picker-menu {
  position: fixed;
  z-index: 60;
  width: 238px;
  border: 1px solid #d9dfd8;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(24, 35, 32, 0.16);
}

.date-picker-head,
.date-picker-weekdays,
.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 4px;
}

.date-picker-head {
  grid-template-columns: 28px 1fr 28px;
  margin-bottom: 8px;
}

.date-picker-head strong {
  color: var(--steel);
  font-size: 0.84rem;
  text-align: center;
  text-transform: capitalize;
}

.date-picker-head button,
.date-picker-days button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--steel);
  font: inherit;
  font-weight: 800;
}

.date-picker-head button {
  height: 28px;
  font-size: 1rem;
}

.date-picker-weekdays {
  margin-bottom: 4px;
}

.date-picker-weekdays span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.date-picker-days button,
.date-picker-days > span {
  height: 28px;
}

.date-picker-days button {
  position: relative;
  font-size: 0.78rem;
}

.date-picker-days button.is-today {
  text-shadow: 0 0 3px #ffffff, 0 0 3px #ffffff;
}

.date-picker-days button.is-today::before,
.date-picker-days button.is-today::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.date-picker-days button.is-today::before {
  inset: -2px -3px -1px -2px;
  border: 2.5px solid rgba(224, 48, 54, 0.84);
  border-radius: 55% 45% 52% 48% / 43% 57% 46% 54%;
  transform: rotate(-7deg) scaleY(0.88);
  filter: drop-shadow(0 0 0.45px rgba(180, 22, 28, 0.5));
  -webkit-mask: conic-gradient(from 126deg, transparent 0deg, rgba(0, 0, 0, 0.2) 9deg, #000 24deg, #000 330deg, rgba(0, 0, 0, 0.18) 347deg, transparent 360deg);
  mask: conic-gradient(from 126deg, transparent 0deg, rgba(0, 0, 0, 0.2) 9deg, #000 24deg, #000 330deg, rgba(0, 0, 0, 0.18) 347deg, transparent 360deg);
}

.date-picker-days button.is-today::after {
  inset: 1px -1px 1px 0;
  border: 2px solid rgba(224, 48, 54, 0.76);
  border-radius: 48% 52% 45% 55% / 56% 44% 54% 46%;
  transform: rotate(-13deg) scale(0.94, 0.82);
  -webkit-mask: conic-gradient(from -48deg, transparent 0deg, rgba(0, 0, 0, 0.15) 12deg, #000 30deg, #000 292deg, rgba(0, 0, 0, 0.16) 313deg, transparent 334deg);
  mask: conic-gradient(from -48deg, transparent 0deg, rgba(0, 0, 0, 0.15) 12deg, #000 30deg, #000 292deg, rgba(0, 0, 0, 0.16) 313deg, transparent 334deg);
}

.date-picker-days button.is-today.is-selected::before {
  border-color: rgba(207, 35, 42, 0.92);
}

.date-picker-days button.is-today.is-selected::after {
  border-color: rgba(207, 35, 42, 0.82);
}

.date-picker-head button:hover,
.date-picker-days button:hover,
.date-picker-days button.is-selected {
  background: #eef1ec;
}

.date-picker-days button.is-past {
  background: #f3f5f2;
  color: #9aa39d;
}

.date-picker-days button.is-past:hover {
  background: #e9ede8;
  color: #738078;
}

.date-picker-days button.is-past.is-selected {
  background: #e2e8e1;
  color: var(--steel);
}

.mini-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 8px;
}

.mini-action,
.danger-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.mini-action {
  border: 1px solid var(--line);
  color: var(--steel);
  background: #ffffff;
}

.mini-action-muted {
  color: var(--muted);
  background: #f8f9f6;
}

.mini-action:disabled {
  cursor: default;
  opacity: 0.72;
}

.mini-action.is-sent {
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.1);
}

.mini-action.is-reminder {
  color: #b91c1c;
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(254, 242, 242, 0.9);
}

.danger-action {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  color: var(--accent-dark);
  background: rgba(20, 184, 166, 0.06);
}

.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.mini-action:hover {
  background: #f7f8f5;
}

.danger-action:hover:not(:disabled) {
  background: rgba(20, 184, 166, 0.12);
}

.mini-action img,
.danger-action img {
  width: 14px;
  height: 14px;
}

.muted-copy {
  margin: 0;
  font-size: 0.88rem;
}

.lead-form {
  width: min(940px, 100%);
  display: grid;
  gap: 16px;
}

.form-section {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
}

.section-heading img {
  width: 26px;
  height: 26px;
  opacity: 0.72;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.08rem;
}

.form-section label,
.field-grid label {
  display: grid;
  gap: 7px;
  color: var(--steel);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-section input,
.form-section textarea,
.form-section select {
  width: 100%;
  border: 1px solid #dbe0da;
  border-radius: 6px;
  color: var(--ink);
  background: #fdfdfb;
  outline: none;
}

.form-section input,
.form-section select {
  height: 44px;
  padding: 0 12px;
}

.form-section textarea {
  resize: vertical;
  min-height: 86px;
  padding: 11px 12px;
  line-height: 1.45;
}

.form-section input:focus,
.form-section textarea:focus,
.form-section select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(47, 111, 137, 0.14);
}

.form-section select:disabled {
  color: var(--muted);
  background: #f2f4f1;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.entry-block {
  display: grid;
  gap: 12px;
  border: 1px solid #e3e7e1;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfa;
}

.entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entry-head strong {
  font-size: 0.9rem;
}

.entry-remove {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.entry-remove:hover {
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.07);
}

.entry-remove img {
  width: 16px;
  height: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.address-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 140px minmax(0, 1fr);
}

.form-footer {
  display: flex;
  justify-content: flex-end;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 780px) {
  .dashboard-appointment-card {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .dashboard-appointment-join {
    grid-column: 1 / -1;
    text-align: center;
  }

  .auth-page {
    padding: 18px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .brand-panel,
  .login-panel {
    padding: 28px;
  }

  .brand-panel h1 {
    max-width: none;
    font-size: 3rem;
  }

  .crm-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .sidebar-brand {
    padding: 0 4px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
  }

  .nav-item,
  .icon-button {
    min-height: 44px;
  }

  .sidebar-footer {
    margin-top: 12px;
  }

  .crm-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .workspace {
    padding: 18px;
  }

  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .lead-detail {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .lead-detail-leads {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .lead-detail-leads > .timeline-panel {
    grid-column: 1;
    grid-row: 2;
  }

  .lead-detail-suppliers {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .lead-detail-suppliers > .detail-column:first-child,
  .lead-detail-suppliers > .timeline-panel,
  .lead-detail-suppliers > .detail-column:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .detail-column,
  .timeline-panel {
    overflow: visible;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .connector-form {
    grid-template-columns: 1fr;
  }

  .connector-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dialer-summary-stats {
    grid-template-columns: 1fr;
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .empty-workspace {
    min-height: 360px;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .app-page {
    height: 100dvh;
  }

  .crm-shell {
    grid-template-columns: 206px minmax(0, 1fr);
    height: 100dvh;
  }

  .sidebar {
    height: 100dvh;
    padding: 16px 12px;
  }

  .sidebar-brand {
    min-height: 40px;
  }

  .brand-mark-small {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .sidebar-nav {
    gap: 5px;
    margin-top: 24px;
  }

  .nav-item,
  .icon-button {
    min-height: 40px;
    gap: 10px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .nav-item img,
  .icon-button img {
    width: 18px;
    height: 18px;
  }

  .crm-header {
    min-height: 72px;
    gap: 16px;
    padding: 16px 20px;
  }

  .crm-header h1 {
    font-size: 1.28rem;
  }

  .workspace {
    padding: 16px;
  }

  .dashboard-workspace {
    gap: 14px;
    overflow-y: auto;
    scroll-padding: 16px;
  }

  .lead-detail,
  .lead-detail-leads,
  .lead-detail-suppliers {
    gap: 12px;
  }

  .lead-detail {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .lead-detail-leads,
  .lead-detail-suppliers {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .lead-detail-suppliers > .supplier-main-panel,
  .lead-detail-suppliers > .timeline-panel {
    grid-column: 2;
  }

  .detail-column {
    white-space: normal;
  }

  .timeline-panel {
    padding: 12px;
  }

  .dashboard-inbox {
    max-height: min(620px, calc(100dvh - 144px));
  }

  .lead-website-view iframe {
    min-height: 420px;
  }
}

.offer-list-actions .offer-status-action {
  min-height: 34px;
  padding: 7px 12px;
  border-width: 1px;
  border-style: solid;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.offer-list-actions .offer-status-action img {
  width: 15px;
  height: 15px;
}

.offer-list-actions .offer-status-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.offer-list-actions .offer-status-action-accepted {
  color: #075e59;
  border-color: rgba(20, 184, 166, 0.38);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.18), rgba(20, 184, 166, 0.09));
}

.offer-list-actions .offer-status-action-accepted:hover {
  border-color: rgba(20, 184, 166, 0.58);
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.24), rgba(20, 184, 166, 0.13));
}

.offer-list-actions .offer-status-action-rejected {
  color: #9f1d16;
  border-color: rgba(220, 38, 38, 0.30);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.13), rgba(220, 38, 38, 0.065));
}

.offer-list-actions .offer-status-action-rejected:hover {
  border-color: rgba(220, 38, 38, 0.48);
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.18), rgba(220, 38, 38, 0.095));
}

@media (max-width: 820px) {
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .app-page {
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .crm-shell {
    min-height: 100dvh;
    display: block;
    overflow: visible;
  }

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .sidebar-brand {
    min-height: 40px;
    padding: 0;
  }

  .brand-mark-small {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .sidebar-nav,
  .sidebar-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .sidebar-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-logout {
    min-width: 0;
  }

  .nav-item,
  .icon-button {
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding: 0 10px;
  }

  .nav-item span,
  .icon-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .crm-main {
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .crm-header {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 16px;
  }

  .crm-header h1 {
    font-size: clamp(1.55rem, 7vw, 2.05rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .header-lead-edit {
    min-width: 0;
  }

  .header-title-row,
  .header-title-main {
    min-width: 0;
  }

  .header-title-main {
    align-items: flex-start;
  }

  .header-title-main .inline-icon-actions {
    padding-top: 2px;
  }

  .header-subline-group {
    align-items: flex-start;
  }

  .assignee-form {
    width: 100%;
    align-items: start;
  }

  .assignee-form select {
    max-width: none;
    width: 100%;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
  }

  .context-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    order: 3;
  }

  .primary-action,
  .secondary-action,
  .ghost-action,
  .primary-action-button,
  .secondary-action-button {
    width: 100%;
    min-height: 46px;
    padding-inline: 14px;
  }

  .user-chip-wrap {
    order: 1;
    align-self: start;
  }

  .user-quick-card {
    right: auto;
    left: 0;
  }

  .user-quick-card::before {
    right: auto;
    left: 24px;
  }

  .phone-widget {
    order: 2;
    width: max-content;
    max-width: 100%;
  }

  .phone-forwarding-status {
    order: 2;
    justify-self: start;
  }

  .phone-toggle {
    width: 44px;
    height: 44px;
  }

  .phone-panel {
    position: fixed;
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 20px);
    overflow: auto;
    z-index: 80;
  }

  .power-dialer-bar {
    order: 0;
    width: 100%;
    flex-wrap: wrap;
  }

  .power-dialer-counter {
    flex: 1 1 auto;
    text-align: left;
  }

  .workspace {
    min-height: 0;
    overflow: visible;
    padding: 14px;
  }

  .dashboard-workspace {
    grid-template-columns: 1fr;
    gap: 14px;
    overflow: visible;
    padding: 14px;
    scroll-padding: 14px;
  }

  .dashboard-column {
    gap: 14px;
  }

  .dashboard-inbox {
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .dashboard-inbox-list {
    overflow: visible;
  }

  .dashboard-inbox-tabs {
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(86px, 1fr);
    grid-template-columns: none;
  }

  .dashboard-inbox-tabs button {
    min-height: 34px;
    white-space: nowrap;
  }

  .dashboard-inbox-item,
  .dashboard-appointment-card {
    grid-template-columns: 32px minmax(0, 1fr) 30px;
  }

  .dashboard-appointment-card {
    align-items: start;
  }

  .dashboard-appointment-join {
    grid-column: 2 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .dashboard-analysis-card dl {
    grid-template-columns: 1fr;
  }

  .dashboard-analysis-head-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 5px;
  }

  .dashboard-analysis-modal .modal-head {
    align-items: flex-start;
  }

  .dashboard-analysis-modal-controls {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .dashboard-analysis-interval-select select {
    min-width: 96px;
  }

  .leads-workspace,
  .leads-workspace:has(.lead-detail) {
    overflow: visible;
  }

  .lead-global-search {
    margin-bottom: 12px;
  }

  .lead-global-search label {
    min-height: 50px;
  }

  .lead-global-search-results {
    position: fixed;
    inset: auto 10px 10px;
    top: min(260px, 42dvh);
    max-height: calc(58dvh - 20px);
    overflow: auto;
  }

  .lead-folder-list {
    grid-template-columns: 1fr;
  }

  .lead-row,
  .lead-folder-link {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .lead-row {
    min-height: 70px;
    padding: 12px;
  }

  .lead-row-card {
    grid-template-columns: minmax(0, 1fr) 38px;
    padding: 0;
  }

  .lead-row-main {
    min-height: 70px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .lead-row-action {
    margin-right: 8px;
  }

  .lead-icon {
    width: 40px;
    height: 40px;
  }

  .lead-detail,
  .lead-detail-leads,
  .lead-detail-suppliers {
    height: auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
  }

  .lead-detail-leads > .timeline-panel,
  .lead-detail-suppliers > .detail-column:first-child,
  .lead-detail-suppliers > .timeline-panel,
  .lead-detail-suppliers > .supplier-main-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .detail-column,
  .timeline-panel,
  .lead-main-panel,
  .lead-main-panel [data-lead-tab-content],
  .lead-main-panel .timeline-list,
  .lead-main-panel .lead-inquiries,
  .lead-main-panel .lead-empty-tab {
    min-height: 0;
    overflow: visible;
  }

  .timeline-panel {
    padding: 10px;
  }

  .lead-section-tabs {
    align-items: stretch;
    overflow-x: auto;
    margin-bottom: 12px;
  }

  .lead-tab-links {
    min-width: max-content;
  }

  .lead-section-tabs a {
    min-height: 38px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .lead-timeline-actions {
    min-width: max-content;
  }

  .timeline-list {
    gap: 10px;
  }

  .timeline-item,
  .timeline-item-outgoing,
  .timeline-item-system {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .timeline-item-outgoing .timeline-icon,
  .timeline-item-system .timeline-icon {
    grid-column: 1;
  }

  .timeline-item-incoming .timeline-card,
  .timeline-item-outgoing .timeline-card,
  .timeline-item-system .timeline-card {
    width: 100%;
    grid-column: 2;
    justify-self: stretch;
  }

  .timeline-icon {
    width: 30px;
    height: 30px;
  }

  .timeline-card {
    padding: 10px;
  }

  .timeline-card-head,
  .timeline-email-bar,
  .timeline-appointment-main,
  .order-list-main,
  .offer-preview-head,
  .supplier-products-head,
  .connector-row,
  .team-row,
  .integration-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .timeline-card time,
  .timeline-appointment-meta {
    justify-items: start;
    white-space: normal;
  }

  .timeline-audio-player {
    grid-template-columns: 32px minmax(0, 1fr) 44px;
  }

  .timeline-audio-time {
    grid-column: 2 / -1;
  }

  .power-review-grid,
  .offer-item-grid,
  .offer-preview-meta,
  .offer-preview-row,
  .appointment-external-grid,
  .connector-form,
  .offer-product-main,
  .product-edit-grid,
  .dialer-setting,
  .dialer-preview-table-head,
  .dialer-preview-table-row,
  .lead-import-source-grid,
  .lead-import-duplicate-card,
  .supplier-product-card .product-card-main,
  .supplier-product-facts {
    grid-template-columns: 1fr;
  }

  .offer-preview-row-head {
    display: none;
  }

  .offer-list-card,
  .order-invoice-row,
  .offer-product-row,
  .lead-research-candidate {
    grid-template-columns: 1fr;
  }

  .offer-list-total,
  .order-list-total,
  .offer-modal-totals,
  .offer-preview-totals {
    justify-self: stretch;
    justify-items: stretch;
    min-width: 0;
    width: 100%;
  }

  .offer-list-actions,
  .order-list-actions,
  .offer-preview-actions,
  .connector-actions,
  .lead-research-candidate-actions,
  .dashboard-email-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .offer-list-actions .mini-action,
  .order-list-actions .mini-action,
  .offer-preview-actions > *,
  .dashboard-email-actions > *,
  .lead-research-candidate-actions > * {
    width: 100%;
    justify-content: center;
  }

  .offer-action-spacer {
    display: none;
  }

  .modal-backdrop {
    align-items: stretch;
    justify-items: stretch;
    place-items: stretch;
    padding: 8px;
  }

  .dashboard-email-modal,
  .dashboard-analysis-modal,
  .appointment-modal,
  .offer-modal,
  .offer-modal.is-previewing,
  .email-modal,
  .transcript-modal,
  .phone-calls-modal,
  .product-db-modal,
  .product-modal,
  .dialer-modal,
  .dialer-summary-modal,
  .dialer-preview-list-modal,
  .lead-list-modal,
  .lead-import-modal,
  .lead-research-modal,
  .dialer-review-list-modal,
  .contact-delete-modal {
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
    overflow: auto;
  }

  .email-modal {
    overflow: hidden;
  }

  .offer-modal,
  .offer-modal.is-previewing,
  .appointment-modal,
  .dashboard-email-modal,
  .product-db-modal,
  .dialer-preview-list-modal,
  .transcript-modal,
  .phone-calls-modal {
    min-height: 0;
    height: calc(100dvh - 16px);
  }

  .offer-modal [data-offer-edit-panel],
  .offer-modal-preview,
  .appointment-booking-step,
  .appointment-external-form,
  .dashboard-email-modal,
  .dashboard-analysis-modal,
  .transcript-modal,
  .product-db-modal,
  .dialer-preview-list-modal,
  .phone-calls-modal {
    min-height: 0;
  }

  .dashboard-email-modal-grid,
  .email-modal-backdrop.has-side-preview {
    grid-template-columns: 1fr;
  }

  .dashboard-email-side,
  .dashboard-email-reader {
    min-height: 160px;
  }

  .email-modal-backdrop.has-side-preview .email-modal,
  .email-offer-preview {
    width: 100%;
    height: auto;
    max-height: calc(50dvh - 14px);
  }

  .email-offer-preview .offer-pdf-preview,
  .offer-pdf-preview {
    min-height: 360px;
  }

  .form-row-actions,
  .product-edit-panel .form-row-actions {
    grid-template-columns: 1fr;
  }

  .mini-action,
  .inbox-done-button,
  .icon-only {
    min-height: 36px;
  }

  .appointment-attendee-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .appointment-attendee-actions .mini-action {
    width: 100%;
    justify-content: center;
  }

  .appointment-attendee-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .appointment-attendee-detail-head > div {
    justify-items: start;
    text-align: left;
  }

  .appointment-attendee-contact-end {
    gap: 6px;
  }

  .appointment-attendee-count {
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .phone-call-history-row,
  .phone-call-history-session > button {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .phone-call-history-row time,
  .phone-call-history-session time {
    grid-column: 2;
  }

  .phone-call-history-session-calls {
    margin-left: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 430px) {
  .crm-header {
    padding: 16px 14px;
  }

  .workspace,
  .dashboard-workspace {
    padding: 10px;
  }

  .sidebar-nav,
  .sidebar-footer {
    grid-template-columns: 1fr;
  }

  .dashboard-inbox-item {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 7px;
    padding: 8px;
  }

  .dashboard-inbox-copy span {
    white-space: normal;
  }

  .contact-card {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 9px;
  }

  .contact-avatar {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 900px) {
  .incoming-invoice-modal-backdrop {
    grid-template-columns: 1fr;
    align-items: start;
    place-items: stretch;
    overflow: auto;
  }

  .incoming-invoice-preview,
  .incoming-invoice-modal {
    height: auto;
  }

  .incoming-invoice-preview {
    max-height: min(390px, calc(42dvh - 12px));
  }

  .incoming-invoice-preview.is-collapsed {
    max-height: none;
  }

  .incoming-invoice-preview .incoming-invoice-preview-toggle {
    display: grid;
  }

  .incoming-invoice-preview.is-collapsed .incoming-invoice-preview-toggle img {
    transform: rotate(-90deg);
  }

  .incoming-invoice-modal {
    max-height: calc(58dvh - 12px);
  }

  .accounting-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .accounting-filter {
    justify-content: flex-start;
  }

  .accounting-list-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .accounting-list-summary {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 600px) {
  .accounting-tabs {
    width: 100%;
  }

  .accounting-tabs a {
    flex: 1 1 0;
    padding-inline: 8px;
    text-align: center;
  }

  .incoming-invoice-fields {
    grid-template-columns: 1fr;
  }

  .incoming-invoice-field-wide {
    grid-column: 1;
  }

  .incoming-invoice-modal .incoming-invoice-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .incoming-invoice-modal .incoming-invoice-modal-actions [data-incoming-invoice-replace-file] {
    grid-column: 1 / -1;
    margin-right: 0;
  }

  .accounting-panel-head,
  .accounting-list-toolbar {
    padding: 16px;
  }

  .accounting-filter label {
    flex: 1 1 130px;
  }

  .accounting-filter input {
    width: 100%;
  }

  .accounting-list-toolbar {
    grid-template-columns: 1fr;
  }

  .accounting-list-summary,
  .accounting-list-toolbar .primary-action {
    grid-column: 1;
    grid-row: auto;
  }
}
.contact-research-proof {
  width: 100%;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-research-proof > a,
.contact-research-proof > small {
  display: block;
  margin-top: 4px;
}

.contact-research-proof > summary {
  cursor: pointer;
}

.lead-research-history {
  font-size: 12px;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.stripe-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 5px; background: #efedff; color: #5146a8; font-size: 11px; font-weight: 700; }
