:root {
  --dark: #111317;
  --panel: #171a21;
  --panel-2: #20242d;
  --orange: #f58220;
  --orange-2: #ff9a3d;
  --blue: #006dff;
  --blue-dark: #061f6f;
  --blue-glow: rgba(0, 109, 255, 0.28);
  --cream: #f8fafc;
  --ink: #111317;
  --muted: #6f7785;
  --line: #e6e8ec;
  --white: #ffffff;
  --danger: #b6372a;
  --ok: #16834c;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 40px, var(--blue-glow) 0, rgba(0, 109, 255, 0) 260px),
    linear-gradient(145deg, var(--blue-dark) 0, var(--dark) 42%, var(--dark) 220px, var(--cream) 220px, var(--cream) 100%);
  line-height: 1.45;
}

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

.shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 14px 12px 86px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 4px 12px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  color: var(--white);
  font-size: clamp(1.45rem, 6vw, 2.5rem);
}

h2 {
  color: var(--dark);
  font-size: 1.35rem;
}

h3 {
  color: var(--dark);
  font-size: 1.05rem;
}

.topbar p:last-child,
.area-head p,
.login-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.topbar p:last-child {
  color: #c9ced8;
}

.logout {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-weight: 700;
}

.card {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(17, 19, 23, 0.09);
}

.login-card {
  margin-top: 18px;
}

.stack {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.form {
  display: grid;
  gap: 6px;
}

.requirement-card {
  border-top-color: var(--blue);
}

.grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--dark);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 109, 255, 0.16);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

button {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--blue) 100%);
  color: white;
  padding: 14px 16px;
  font-weight: 800;
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.flow-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.flow-buttons button {
  min-height: 42px;
  background: var(--panel-2);
  text-align: left;
  font-size: 0.92rem;
}

.flow-builder {
  border-top-color: var(--blue);
}

.hint,
.help {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-note {
  margin: 10px 0 2px;
  padding: 10px 12px;
  border-left: 4px solid var(--blue);
  border-radius: 6px;
  background: #f1f7ff;
  color: #4b5563;
  font-size: 0.94rem;
}

.alert {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 7px;
  font-weight: 700;
}

.alert.error {
  color: var(--danger);
  background: #ffe8e2;
  border: 1px solid #efb9ad;
}

.alert.ok {
  color: var(--ok);
  background: #e8f5ec;
  border: 1px solid #badcc6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--blue-dark);
  padding: 5px 10px;
  font-size: 0.86rem;
  font-weight: 700;
}

.puestos {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #ffd6ad;
  border-radius: 7px;
  background: #fff7ef;
}

.puestos strong {
  display: block;
  color: var(--dark);
  margin-bottom: 6px;
}

.puestos ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.puestos li {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid #ffe0bf;
  font-size: 0.9rem;
  font-weight: 700;
}

.voice-note {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 7px;
  background: #eff6ff;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 700;
}

.voice-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.voice-tools > .voice-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: 3px;
  width: 58px !important;
  min-width: 58px;
  max-width: 58px;
  min-height: 22px !important;
  padding: 3px 5px !important;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #f5f6f7 !important;
  color: #6f7785 !important;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.voice-tools > .voice-btn svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  flex: 0 0 auto;
}

.voice-tools > .voice-btn:hover {
  background: #eceff2 !important;
  color: #4b5563 !important;
  transform: none;
}

.voice-tools > .voice-btn.is-listening {
  border-color: #9ca3af;
  background: #e5e7eb !important;
  color: #374151 !important;
}

.voice-tools > .voice-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.voice-status {
  justify-self: end;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: grid;
  gap: 8px;
  margin: 12px -12px 0;
  padding: 10px 12px 12px;
  background: rgba(248, 250, 252, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

@media (max-width: 420px) {
  .shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .topbar {
    flex-direction: column;
  }

  .logout {
    align-self: stretch;
    text-align: center;
  }

  .card {
    padding: 14px;
    border-radius: 7px;
  }

  input,
  select,
  textarea,
  button {
    min-height: 46px;
    font-size: 16px;
  }

  .voice-tools > .voice-btn {
    width: 58px !important;
    min-width: 58px;
    max-width: 58px;
    min-height: 22px !important;
    padding: 3px 5px !important;
    font-size: 0.68rem;
  }
}

@media (min-width: 720px) {
  .shell {
    padding: 28px 24px 100px;
  }

  .card {
    padding: 22px;
  }

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

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

  .sticky-actions {
    margin-left: 0;
    margin-right: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
  }
}
