
:root {
  --navy: #050244;
  --navy-deep: #020129;
  --navy-soft: #171462;
  --orange: #d55a14;
  --orange-bright: #f17812;
  --ink: #17182a;
  --muted: #666b7d;
  --line: #e4e6ee;
  --surface: #ffffff;
  --canvas: #f4f5f9;
  --error: #b42318;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a,
input,
select,
textarea,
label {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(560px, 1.14fr);
}

.brand-panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  align-self: start;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 110% 10%, rgba(241, 120, 18, 0.28), transparent 34%),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
}

.brand-panel::before,
.brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.brand-panel::before {
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  right: -260px;
  bottom: 4%;
}

.brand-panel::after {
  width: 170px;
  height: 170px;
  background: rgba(213, 90, 20, 0.12);
  left: -85px;
  top: 35%;
}

.brand-panel__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  min-height: 100vh;
  margin-left: auto;
  padding: clamp(30px, 5vw, 72px) clamp(28px, 5.2vw, 76px);
  display: flex;
  flex-direction: column;
}

.brand-logo {
  display: block;
  width: min(100%, 390px);
  height: auto;
  margin: -8px 0 clamp(44px, 8vh, 86px);
  mix-blend-mode: screen;
}

.brand-logo--official {
  height: 210px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: normal;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.eyebrow,
.step-label {
  margin: 0 0 14px;
  color: var(--orange-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-copy h1 {
  max-width: 510px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.55rem, 4.4vw, 4.75rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.brand-intro {
  max-width: 510px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
}

.brand-points {
  margin: clamp(38px, 6vh, 64px) 0 42px;
  display: grid;
  gap: 14px;
}

.brand-point {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 16px;
}

.brand-point span {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--orange-bright);
  font-size: 0.72rem;
  font-weight: 800;
}

.brand-point p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.45;
}

.brand-point strong {
  color: #fff;
}

.brand-slogan {
  margin: auto 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.5;
}

.brand-slogan strong {
  color: var(--orange-bright);
}

.form-panel {
  min-width: 0;
  padding: clamp(28px, 5vw, 76px);
  display: flex;
  align-items: center;
}

.form-panel__inner {
  width: min(100%, 820px);
  margin: 0 auto;
}

.lead-form,
.review-card {
  width: 100%;
  padding: clamp(26px, 4.2vw, 52px);
  border: 1px solid rgba(5, 2, 68, 0.08);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(5, 2, 68, 0.08);
}

.form-header {
  margin-bottom: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.form-header h2,
.review-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.required-note {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.76rem;
}

b {
  color: var(--orange);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset + fieldset {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

legend {
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.field {
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 9px;
  color: #313348;
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #d8dae4;
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field textarea {
  min-height: 138px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.5;
}

.field select {
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 23px,
    calc(100% - 15px) 23px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a2a5b2;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b5b7c4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy-soft);
  box-shadow: 0 0 0 4px rgba(5, 2, 68, 0.09);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: #fffafa;
}

.field-help {
  display: block;
  margin-top: 7px;
  color: #8a8e9d;
  font-size: 0.72rem;
  line-height: 1.4;
}

.error {
  display: block;
  margin-top: 7px;
  color: var(--error);
  font-size: 0.75rem;
  line-height: 1.35;
}

.turn-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.turn-option {
  min-height: 52px;
  margin: 0 !important;
  border: 1px solid #d8dae4;
  border-radius: 12px;
  display: grid !important;
  place-items: center;
  cursor: pointer;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  transition: 160ms ease;
}

.turn-option:hover {
  border-color: #a9abb8;
}

.turn-option.is-selected {
  border-color: var(--navy);
  background: rgba(5, 2, 68, 0.06);
  color: var(--navy) !important;
}

.turn-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.turn-option:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(5, 2, 68, 0.1);
}

.consent-row {
  margin: 34px 0 24px;
  padding: 18px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  background: #f7f7fb;
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--navy);
}

.consent-row label {
  color: #565a6a;
  font-size: 0.79rem;
  line-height: 1.5;
}

.primary-button {
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(213, 90, 20, 0.22);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: #c74f0d;
  box-shadow: 0 15px 32px rgba(213, 90, 20, 0.28);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.primary-button:focus-visible,
.secondary-actions button:focus-visible,
.new-lead-button:focus-visible {
  outline: 3px solid rgba(213, 90, 20, 0.32);
  outline-offset: 3px;
}

.privacy-note {
  margin: 16px 0 0;
  color: #9295a2;
  font-size: 0.73rem;
  line-height: 1.45;
  text-align: center;
}

.admin-link {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  color: #8b8e9b;
  font-size: 0.72rem;
  text-underline-offset: 3px;
}

.review-card {
  text-align: center;
}

.success-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(213, 90, 20, 0.1);
  color: var(--orange);
  font-size: 1.6rem;
  font-weight: 900;
}

.review-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border: 1px solid rgba(5, 2, 68, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.review-card .step-label {
  margin-bottom: 10px;
}

.review-intro {
  max-width: 600px;
  margin: 16px auto 28px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.review-list {
  margin: 0 0 28px;
  padding: 4px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafafd;
  text-align: left;
}

.review-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
}

.review-list div:last-child {
  border-bottom: 0;
}

.review-list dt {
  color: var(--muted);
  font-size: 0.77rem;
}

.review-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.whatsapp-button {
  background: #147a45;
  box-shadow: 0 12px 26px rgba(20, 122, 69, 0.2);
}

.whatsapp-button:hover {
  background: #106b3b;
  box-shadow: 0 15px 32px rgba(20, 122, 69, 0.25);
}

.secondary-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.secondary-actions--single {
  grid-template-columns: 1fr;
}

.save-error {
  margin: -8px 0 20px;
  padding: 13px 15px;
  border: 1px solid #f4c7c3;
  border-radius: 12px;
  background: #fff5f4;
  color: var(--error);
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-shell {
  min-height: 100vh;
  background: #f3f4f8;
}

.admin-header {
  color: #fff;
  background:
    radial-gradient(circle at 88% -20%, rgba(213, 90, 20, 0.35), transparent 34%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.admin-header__inner {
  width: min(100% - 48px, 1500px);
  min-height: 225px;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 38px;
}

.admin-header img {
  width: 250px;
  height: 142px;
  object-fit: contain;
  object-position: left center;
}

.admin-header__copy p,
.table-card-header p {
  margin: 0 0 9px;
  color: var(--orange-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.admin-header__copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.admin-header__copy span {
  display: block;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.admin-actions {
  display: flex;
  gap: 10px;
}

.admin-button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--orange);
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.admin-button--secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.admin-content {
  width: min(100% - 48px, 1500px);
  margin: -26px auto 0;
  padding-bottom: 64px;
}

.admin-content--password-only {
  max-width: 1120px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metrics-grid article {
  min-width: 0;
  min-height: 138px;
  padding: 23px;
  border: 1px solid rgba(5, 2, 68, 0.08);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 12px 32px rgba(5, 2, 68, 0.07);
}

.metrics-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.metrics-grid strong {
  margin: 13px 0 5px;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.metrics-grid small {
  margin-top: auto;
  color: #999ca8;
  font-size: 0.69rem;
}

.agent-card {
  margin-top: 22px;
  border: 1px solid rgba(5, 2, 68, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 45px rgba(5, 2, 68, 0.06);
}

.agent-card__header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.agent-card__header p {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.agent-card__header h2,
.agent-form h3 {
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.agent-card__header h2 {
  font-size: 1.45rem;
}

.agent-card__header > span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef7f1;
  color: #147a45;
  font-size: 0.72rem;
  font-weight: 800;
}

.agent-card__body {
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1.1fr);
}

.agent-form {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: #fbfbfd;
}

.agent-form h3 {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.agent-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.agent-form__grid .field:first-child {
  grid-column: 1 / -1;
}

.agent-submit {
  margin-top: 18px;
  cursor: pointer;
}

.agent-submit:disabled,
.agent-row button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.save-success {
  margin: 16px 0 0;
  padding: 13px 15px;
  border: 1px solid #bfe0ca;
  border-radius: 12px;
  background: #f0faf3;
  color: #126c3d;
  font-size: 0.82rem;
}

.agent-form .save-error {
  margin: 16px 0 0;
}

.agent-list {
  max-height: 410px;
  overflow-y: auto;
  padding: 12px 24px;
}

.agent-row {
  padding: 14px 4px;
  border-bottom: 1px solid #eeeff3;
  display: grid;
  grid-template-columns: 42px minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 13px;
}

.agent-row:last-child {
  border-bottom: 0;
}

.agent-row--inactive {
  opacity: 0.65;
}

.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 2, 68, 0.08);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
}

.agent-row__info {
  min-width: 0;
}

.agent-row__info strong,
.agent-row__info span {
  display: block;
}

.agent-row__info strong {
  color: var(--navy);
  font-size: 0.84rem;
}

.agent-row__info span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-state {
  color: #147a45;
  font-size: 0.68rem;
  font-weight: 800;
}

.agent-state--inactive {
  color: #858996;
}

.agent-row button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d9dbe4;
  border-radius: 9px;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
}

.agent-list__empty {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-users-card__body {
  grid-template-columns: minmax(410px, 0.9fr) minmax(520px, 1.1fr);
}

.password-change-card {
  margin-top: 22px;
  padding: 26px 28px;
  border: 1px solid rgba(5, 2, 68, 0.1);
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(620px, 1.35fr);
  gap: 32px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(5, 2, 68, 0.06);
}

.password-change-card--required {
  border-color: rgba(213, 90, 20, 0.42);
  background:
    linear-gradient(90deg, rgba(213, 90, 20, 0.055), transparent 38%),
    #fff;
}

.password-change-card__copy p {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.password-change-card__copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.password-change-card__copy span {
  margin-top: 12px;
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.password-change-card__copy strong {
  color: var(--navy);
}

.password-change-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
}

.password-change-form__tools {
  grid-column: 1 / -1;
  display: flex;
  gap: 18px;
}

.password-change-form__tools button {
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.password-change-form .save-error {
  grid-column: 1 / -1;
  margin: 0;
}

.password-change-form > .admin-button {
  grid-column: 1 / -1;
  width: fit-content;
  cursor: pointer;
}

.admin-user-form__intro {
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.admin-user-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-password-field {
  grid-column: 1 / -1;
}

.admin-password-field__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-password-field__row input {
  border-radius: 12px 0 0 12px;
}

.admin-password-field__row button {
  min-width: 82px;
  padding: 0 12px;
  border: 1px solid #d8dae4;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-password-tools {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-password-tools small {
  color: var(--muted);
  font-size: 0.67rem;
}

.admin-password-tools button,
.admin-reset-panel__actions button,
.admin-user-row__actions button {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-user-list {
  max-height: 500px;
  overflow-y: auto;
  padding: 12px 24px;
}

.admin-user-row {
  padding: 16px 4px;
  border-bottom: 1px solid #eeeff3;
}

.admin-user-row:last-child {
  border-bottom: 0;
}

.admin-user-row--inactive {
  opacity: 0.65;
}

.admin-user-row__main {
  display: grid;
  grid-template-columns: 42px minmax(160px, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.admin-user-row__actions {
  margin: 10px 0 0 55px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-user-row__actions button:disabled,
.admin-reset-panel__actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.admin-user-row__actions .danger-action {
  color: #a33131;
}

.admin-reset-panel {
  margin: 15px 0 2px 55px;
  padding: 16px;
  border: 1px solid #dedfe7;
  border-radius: 14px;
  background: #f8f8fb;
}

.admin-reset-panel label {
  margin-bottom: 9px;
  display: block;
  color: var(--navy);
  font-size: 0.73rem;
  font-weight: 800;
}

.admin-reset-panel__actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.admin-reset-panel__actions .admin-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  color: #fff;
  text-decoration: none;
}

.leads-table-card {
  margin-top: 22px;
  border: 1px solid rgba(5, 2, 68, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 45px rgba(5, 2, 68, 0.06);
}

.table-card-header {
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.table-card-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.table-card-header > span {
  color: #9295a2;
  font-size: 0.72rem;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1380px;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #eeeff3;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: #f8f8fb;
  color: #747886;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: #4c5060;
  font-size: 0.78rem;
}

td strong {
  color: var(--navy);
}

td a {
  color: var(--navy);
  font-weight: 700;
}

tbody tr:hover {
  background: #fcfcfe;
}

.status-pill {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(213, 90, 20, 0.1);
  color: #a9430b;
  font-size: 0.69rem;
  font-weight: 800;
}

.status-pill--progress {
  background: rgba(5, 2, 68, 0.08);
  color: var(--navy);
}

.status-pill--closed {
  background: #eaf7ee;
  color: #147a45;
}

.status-pill--lost {
  background: #f1f2f5;
  color: #6c707d;
}

.follow-up-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.follow-up-cell > button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #d9dbe4;
  border-radius: 9px;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
}

.follow-up-cell > button:hover {
  border-color: var(--navy);
  background: #f7f7fb;
}

.notes-indicator {
  color: var(--orange);
  font-size: 0.58rem;
}

.follow-up-dialog {
  width: min(94vw, 620px);
  max-height: min(90vh, 760px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(2, 1, 41, 0.36);
}

.follow-up-dialog::backdrop {
  background: rgba(2, 1, 41, 0.64);
  backdrop-filter: blur(3px);
}

.follow-up-dialog form {
  display: flex;
  max-height: min(90vh, 760px);
  flex-direction: column;
}

.follow-up-dialog__header {
  padding: 26px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(213, 90, 20, 0.28), transparent 36%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.follow-up-dialog__header p {
  margin: 0 0 8px;
  color: var(--orange-bright);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.follow-up-dialog__header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  white-space: normal;
}

.follow-up-dialog__header span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
}

.follow-up-dialog__header > button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
}

.follow-up-dialog__body {
  padding: 26px 28px;
  display: grid;
  gap: 20px;
  overflow-y: auto;
}

.follow-up-dialog__body .save-error,
.follow-up-dialog__body .save-success {
  margin: 0;
}

.follow-up-dialog__actions {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafafd;
}

.follow-up-dialog__actions > button:first-child {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #d8dae4;
  border-radius: 11px;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.follow-up-dialog__actions .admin-button {
  cursor: pointer;
}

.follow-up-dialog__actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.empty-state {
  padding: 70px 24px;
  text-align: center;
}

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

.empty-state p {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-denied {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-content: center;
  text-align: center;
}

.admin-denied h1 {
  margin: 0 0 12px;
  color: var(--navy);
}

.admin-denied p {
  color: var(--muted);
}

.admin-denied a {
  color: var(--orange);
  font-weight: 800;
}

.login-shell {
  min-height: 100vh;
  padding: 28px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 80% 0%, rgba(213, 90, 20, 0.18), transparent 30%),
    linear-gradient(145deg, var(--navy-deep), var(--navy));
}

.login-card {
  width: min(100%, 460px);
  padding: 38px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.login-card img {
  width: 230px;
  height: 130px;
  margin: -12px auto 18px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.login-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.login-intro {
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.login-card .primary-button {
  margin-top: 22px;
}

.login-back {
  width: fit-content;
  margin: 18px auto 0;
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-underline-offset: 3px;
}

.secondary-actions button,
.new-lead-button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d8dae4;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 750;
}

.secondary-actions button:hover,
.new-lead-button:hover {
  border-color: var(--navy);
  background: #f7f7fb;
}

.new-lead-button {
  margin-top: 28px;
  border: 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1040px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    position: relative;
    min-height: auto;
  }

  .brand-panel__inner {
    width: min(100%, 820px);
    min-height: auto;
    margin: 0 auto;
    padding: 30px 28px 50px;
  }

  .brand-logo {
    width: min(100%, 340px);
    margin-bottom: 38px;
  }

  .brand-logo--official {
    height: 180px;
  }

  .brand-copy h1 {
    max-width: 720px;
    font-size: clamp(2.5rem, 8vw, 4.2rem);
  }

  .brand-intro {
    max-width: 700px;
  }

  .brand-points,
  .brand-slogan {
    display: none;
  }

  .form-panel {
    padding: 32px 22px 56px;
  }

  .admin-header__inner {
    grid-template-columns: 190px 1fr;
  }

  .admin-header img {
    width: 190px;
    height: 108px;
  }

  .admin-actions {
    grid-column: 1 / -1;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-card__body {
    grid-template-columns: 1fr;
  }

  .agent-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-users-card__body {
    grid-template-columns: 1fr;
  }

  .password-change-card {
    grid-template-columns: 1fr;
  }

  .password-change-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-panel__inner {
    padding: 22px 20px 40px;
  }

  .brand-logo {
    width: 270px;
    margin: -2px 0 34px;
  }

  .brand-logo--official {
    height: 154px;
  }

  .brand-copy h1 {
    font-size: 2.5rem;
  }

  .brand-intro {
    margin-top: 18px;
    font-size: 0.96rem;
  }

  .form-panel {
    padding: 20px 12px 40px;
  }

  .lead-form,
  .review-card {
    padding: 25px 18px;
    border-radius: 20px;
  }

  .form-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .field--full {
    grid-column: auto;
  }

  .schedule-grid {
    gap: 24px;
  }

  .turn-options {
    gap: 6px;
  }

  .turn-option {
    min-height: 48px;
    font-size: 0.77rem !important;
  }

  .review-list {
    padding: 0 16px;
  }

  .review-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .secondary-actions {
    grid-template-columns: 1fr;
  }

  .admin-header__inner,
  .admin-content {
    width: min(100% - 28px, 1500px);
  }

  .admin-header__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .admin-header img {
    width: 210px;
    height: 118px;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .agent-card__header,
  .agent-form {
    padding: 22px 18px;
  }

  .agent-form__grid {
    grid-template-columns: 1fr;
  }

  .agent-form__grid .field:first-child {
    grid-column: auto;
  }

  .admin-user-form__grid {
    grid-template-columns: 1fr;
  }

  .admin-password-field {
    grid-column: auto;
  }

  .agent-list {
    padding: 10px 16px;
  }

  .admin-user-list {
    padding: 10px 16px;
  }

  .admin-user-row__actions,
  .admin-reset-panel {
    margin-left: 0;
  }

  .admin-password-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .password-change-card {
    padding: 22px 18px;
    gap: 22px;
  }

  .password-change-form__tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .agent-row {
    grid-template-columns: 38px 1fr auto;
  }

  .agent-avatar {
    width: 36px;
    height: 36px;
  }

  .agent-state {
    display: none;
  }

  .login-shell {
    padding: 14px;
  }

  .login-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .follow-up-dialog {
    width: calc(100vw - 20px);
    border-radius: 18px;
  }

  .follow-up-dialog__header,
  .follow-up-dialog__body,
  .follow-up-dialog__actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .follow-up-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .table-card-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
