:root {
  color: #12251d;
  background: #eef4f0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(40, 179, 111, 0.16), transparent 34rem),
    #eef4f0;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 24px;
}

.phone {
  display: grid;
  gap: 18px;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.eyebrow,
.label {
  margin-bottom: 4px;
  color: #557066;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.muted {
  color: #60746c;
  line-height: 1.55;
}

.card {
  border: 1px solid rgba(43, 82, 66, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(20, 55, 40, 0.08);
}

.login-card {
  width: min(100%, 410px);
  margin: 10vh auto 0;
  padding: 34px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 17px;
  color: white;
  background: #128c5a;
  font-weight: 850;
  letter-spacing: -0.04em;
}

form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 7px;
  color: #334a41;
  font-size: 0.88rem;
  font-weight: 650;
}

input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cbd8d1;
  border-radius: 12px;
  outline: none;
  color: #12251d;
  background: white;
}

input:focus {
  border-color: #128c5a;
  box-shadow: 0 0 0 3px rgba(18, 140, 90, 0.12);
}

.button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
}

.button.primary {
  color: white;
  background: #128c5a;
}

.button:disabled {
  cursor: default;
  opacity: 0.62;
}

.text-button {
  padding: 6px;
  border: 0;
  color: #557066;
  background: transparent;
  cursor: pointer;
}

.status-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #557066;
  font-size: 0.82rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9caea6;
}

.status-dot.online {
  background: #20b56c;
  box-shadow: 0 0 0 4px rgba(32, 181, 108, 0.12);
}

.line-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.line-number {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 780;
}

.call-card {
  min-height: 360px;
  padding: 38px 24px;
  text-align: center;
}

.phone-icon {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 45px auto 24px;
  place-items: center;
  border-radius: 50%;
  color: #128c5a;
  background: #e4f5ec;
  font-size: 2.15rem;
}

.call-state {
  margin-bottom: 22px;
  color: #128c5a;
  font-weight: 750;
}

.caller-avatar {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #128c5a, #075e54);
  font-size: 1.65rem;
  font-weight: 800;
}

.caller-phone {
  color: #60746c;
}

.call-timer {
  min-height: 24px;
  color: #334a41;
  font-variant-numeric: tabular-nums;
}

.call-actions {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 28px;
}

.round-button {
  display: grid;
  min-width: 84px;
  gap: 8px;
  border: 0;
  color: #43584f;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.round-button > span:first-child {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 1.35rem;
}

.round-button.answer > span:first-child {
  background: #20b56c;
}

.round-button.reject > span:first-child {
  background: #e5484d;
}

.round-button.neutral > span:first-child {
  color: #334a41;
  background: #e7eeea;
}

.round-button.neutral.selected > span:first-child {
  color: white;
  background: #334a41;
}

.round-button .action-label {
  display: inline;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
}

.context-card {
  padding: 18px 20px;
}

.context-card h3,
.context-card p:last-child {
  margin-bottom: 0;
}

.error {
  min-height: 20px;
  margin: 14px 0 0;
  color: #bd3035;
  font-size: 0.86rem;
}

@media (max-width: 560px) {
  .shell {
    padding: 14px;
  }

  .phone-header,
  .line-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-group {
    width: 100%;
  }

  .status-group .text-button {
    margin-left: auto;
  }

  .line-card .button {
    width: 100%;
  }
}
