/* Softphone Dial page — keypad, in-call layout, and notes card. Split from
 * softphone.css to stay within file-length limits; both are linked in the
 * application layout. All values consume var(--ha-*) tokens. */

/* ————— Dialpad ————— */
.dialpad {
  max-width: 400px; margin: 0 auto; padding: var(--ha-space-6);
  border-radius: var(--ha-radius-lg); background: var(--ha-blue-primary); color: #fff;
}
.dialpad__status {
  font-size: var(--ha-fs-small); color: rgba(255, 255, 255, .6); text-align: center;
}
.dialpad__display {
  width: 100%; border: 0; background: transparent; color: #fff; text-align: center;
  font-family: inherit; font-size: var(--ha-fs-h2); font-weight: var(--ha-weight-bold);
  padding: var(--ha-space-4) 0; margin-bottom: var(--ha-space-4);
}
.dialpad__display:focus { outline: none; }
.dialpad__display::placeholder { color: rgba(255, 255, 255, .4); }
.dialpad__keys {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ha-space-3);
}
.dialpad__key {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; height: 64px; border: 0; border-radius: var(--ha-radius-md);
  background: var(--ha-blue-primary-alt); color: #fff; cursor: pointer; font-family: inherit;
}
.dialpad__key:hover { background: var(--ha-blue-dark-gradient-2); }
.dialpad__key-digit { font-size: var(--ha-fs-h3); font-weight: var(--ha-weight-medium); }
.dialpad__key-sub {
  font-size: 10px; letter-spacing: .12em; color: rgba(255, 255, 255, .55);
}
.dialpad__actions {
  display: flex; gap: var(--ha-space-3); align-items: center; margin-top: var(--ha-space-5);
}
.dialpad__call {
  flex: 1; height: 56px; background: var(--ha-success); border-radius: var(--ha-radius-pill);
}
.dialpad__call:disabled, .dialpad__call[disabled] { background: var(--ha-border); }
.dialpad__backspace {
  width: 56px; height: 56px; flex: 0 0 auto; border: 0; border-radius: var(--ha-radius-pill);
  background: var(--ha-blue-primary-alt); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ————— In-call ————— */
.incall__status {
  display: flex; align-items: center; gap: var(--ha-space-2);
  font-size: var(--ha-fs-caption); text-transform: uppercase; color: var(--ha-success);
  letter-spacing: .08em; margin-bottom: var(--ha-space-3);
}
.incall__status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ha-success);
}
.incall__number { font-size: var(--ha-fs-h2); font-weight: var(--ha-weight-bold); }
.incall__timer {
  font-size: var(--ha-fs-h3); font-weight: var(--ha-weight-bold);
  margin: var(--ha-space-4) 0 var(--ha-space-6);
}
.incall__controls { display: flex; gap: var(--ha-space-12); }
.call-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; background: transparent; color: #fff; cursor: pointer; font-family: inherit;
  font-size: var(--ha-fs-small);
}
.call-btn span {
  width: 56px; height: 56px; border-radius: var(--ha-radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
}
.call-btn--mute span { background: rgba(255, 255, 255, .14); }
.call-btn--end span { background: var(--ha-danger); }
.call-btn--end { color: var(--ha-danger); }

/* ————— Notes card ————— */
.notes-card {
  max-width: 400px; margin: var(--ha-space-5) auto 0; padding: var(--ha-space-6);
  background: #fff; border: 1px solid var(--ha-border); border-radius: var(--ha-radius-md);
  box-shadow: var(--ha-shadow-card);
}
.notes-card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--ha-space-3);
}
.notes-card__title { font-weight: var(--ha-weight-bold); }
.notes-card__saved {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--ha-fs-small); color: var(--ha-success);
}
.notes-card textarea { min-height: 110px; resize: vertical; }
