/*
 * The Aldebert Intake · Modal styles
 * Namespaced with .alm- prefix to avoid collisions with any page-level styles.
 * All colors reference the site's existing brand tokens.
 */

/* ============ FLOATING CTA ============ */
.alm-float-wrap {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  opacity: 0;
  transform: translateY(80px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}
.alm-float-wrap.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.alm-float-btn {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0;
  background: var(--gold-metal, linear-gradient(180deg,#D4B36A 0%,#B08D45 50%,#8A6B24 100%));
  border: none;
  border-radius: 32px;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(176, 141, 69, 0.4);
  overflow: hidden;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, transform 0.15s ease;
  font-family: 'Inter', sans-serif;
}
.alm-float-btn::before {
  content: "";
  display: block;
  width: 56px;
  height: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%231a1206' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4.35-4.35'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
.alm-float-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1206;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}
.alm-float-btn:hover { padding-right: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--gold, #B08D45); }
.alm-float-btn:hover .alm-float-label { max-width: 200px; padding: 0 20px 0 4px; }
.alm-float-wrap.visible::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(176, 141, 69, 0.5);
  animation: alm-pulse-ring 2.6s ease-out infinite;
}
@keyframes alm-pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(176, 141, 69, 0.4); }
  70% { box-shadow: 0 0 0 22px rgba(176, 141, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 141, 69, 0); }
}
@media (max-width: 640px) {
  .alm-float-wrap { bottom: 20px; right: 20px; }
}

/* ============ OVERLAY ============ */
.alm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 2, 1, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'Inter', -apple-system, sans-serif;
}
.alm-overlay.active { display: flex; align-items: center; justify-content: center; opacity: 1; }

/* ============ MODAL ============ */
.alm-modal {
  width: 100%;
  max-width: 720px;
  margin: 24px;
  max-height: calc(100vh - 48px);
  background: linear-gradient(180deg, #1a1408 0%, #0d0a05 60%, #0a0803 100%);
  border: 1px solid rgba(176, 141, 69, 0.45);
  border-radius: 8px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(28px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #F5F1E8;
}
.alm-overlay.active .alm-modal { transform: translateY(0) scale(1); }

.alm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(176, 141, 69, 0.3);
  color: var(--gold, #B08D45);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.alm-close:hover { background: rgba(176, 141, 69, 0.15); border-color: var(--gold, #B08D45); transform: rotate(90deg); }

/* ============ HEAD ============ */
.alm-head {
  padding: 26px 34px 20px;
  border-bottom: 1px solid rgba(176, 141, 69, 0.18);
}
.alm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold, #B08D45);
  margin-bottom: 4px;
}
.alm-brand::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-bright, #D4B36A);
  box-shadow: 0 0 8px var(--gold-bright, #D4B36A);
  animation: alm-pulse-dot 1.8s ease-in-out infinite;
}
@keyframes alm-pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--gold-bright, #D4B36A); }
  50% { opacity: 0.4; box-shadow: 0 0 4px var(--gold-bright, #D4B36A); }
}
.alm-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.65rem;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: #F5F1E8;
}
.alm-question {
  font-size: 0.94rem;
  color: rgba(240, 232, 214, 0.65);
  line-height: 1.45;
  margin: 0;
}

/* ============ CHIPS (running summary) ============ */
.alm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 34px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin 0.3s ease, padding 0.3s ease;
}
.alm-chips.has-chips { max-height: 200px; margin-top: 14px; padding-bottom: 6px; }
.alm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  background: rgba(176, 141, 69, 0.09);
  border: 1px solid rgba(176, 141, 69, 0.28);
  border-radius: 100px;
  font-size: 0.72rem;
  color: rgba(240, 232, 214, 0.85);
  opacity: 0;
  transform: translateY(8px);
  animation: alm-chip-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes alm-chip-in { to { opacity: 1; transform: translateY(0); } }
.alm-chip-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright, #D4B36A);
  font-weight: 500;
}

/* ============ PROGRESS ============ */
.alm-progress { padding: 16px 34px 0; }
.alm-progress-track { display: flex; gap: 6px; }
.alm-progress-seg {
  flex: 1;
  height: 3px;
  background: rgba(176, 141, 69, 0.12);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.alm-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--gold-metal, linear-gradient(180deg,#D4B36A 0%,#B08D45 50%,#8A6B24 100%));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.alm-progress-seg.done .alm-progress-fill,
.alm-progress-seg.active .alm-progress-fill { transform: scaleX(1); }
.alm-progress-seg.active .alm-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, 0.5), transparent);
  animation: alm-shimmer 1.8s linear infinite;
}
@keyframes alm-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ============ BODY + STEPS ============ */
.alm-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 34px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(176, 141, 69, 0.3) transparent;
}
.alm-body::-webkit-scrollbar { width: 6px; }
.alm-body::-webkit-scrollbar-thumb { background: rgba(176, 141, 69, 0.3); border-radius: 3px; }
.alm-step { display: none; }
.alm-step.active { display: block; animation: alm-step-in 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes alm-step-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============ FIELDS ============ */
.alm-field { margin-bottom: 14px; }
.alm-field label {
  display: block;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 232, 214, 0.55);
  font-weight: 500;
  margin-bottom: 8px;
}
.alm-field input,
.alm-field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(176, 141, 69, 0.22);
  border-radius: 4px;
  color: #F5F1E8;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.alm-field input:focus,
.alm-field textarea:focus {
  outline: none;
  border-color: var(--gold, #B08D45);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(176, 141, 69, 0.12);
}
.alm-field textarea { resize: vertical; min-height: 100px; }

/* ============ TIER SCALE ============ */
.alm-tier-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 640px) { .alm-tier-scale { grid-template-columns: repeat(2, 1fr); } }
.alm-tier {
  padding: 14px 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(176, 141, 69, 0.16);
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  outline: none;
}
.alm-tier:hover,
.alm-tier:focus-visible {
  border-color: rgba(176, 141, 69, 0.4);
  background: rgba(20, 15, 8, 0.6);
  transform: translateY(-2px);
}
.alm-tier.active {
  border-color: var(--gold, #B08D45);
  background: rgba(30, 22, 10, 0.7);
  box-shadow: 0 0 0 1px var(--gold, #B08D45), 0 6px 20px rgba(176, 141, 69, 0.15);
}
.alm-tier.active::before {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 8px;
  color: var(--gold-bright, #D4B36A);
  font-size: 0.85rem;
  font-weight: 700;
}
.alm-tier-range {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.05rem;
  color: #F5F1E8;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.1;
}
.alm-tier-context {
  font-size: 0.68rem;
  color: rgba(240, 232, 214, 0.5);
  line-height: 1.3;
}
.alm-tier.active .alm-tier-range { color: var(--gold-bright, #D4B36A); }

/* ============ SYMPTOMS ============ */
.alm-symptoms { display: flex; flex-direction: column; gap: 8px; }
.alm-symptom {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(176, 141, 69, 0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.alm-symptom:hover { border-color: rgba(176, 141, 69, 0.35); background: rgba(20, 15, 8, 0.6); }
.alm-symptom.checked {
  border-color: rgba(176, 141, 69, 0.55);
  background: rgba(30, 22, 10, 0.7);
}
.alm-symptom.checked::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold-metal, linear-gradient(180deg,#D4B36A 0%,#B08D45 50%,#8A6B24 100%));
}
.alm-symptom input { display: none; }
.alm-symptom-check {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid rgba(176, 141, 69, 0.4);
  background: rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.alm-symptom.checked .alm-symptom-check {
  background: var(--gold-metal, linear-gradient(180deg,#D4B36A 0%,#B08D45 50%,#8A6B24 100%));
  border-color: var(--gold-bright, #D4B36A);
}
.alm-symptom-check::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #1a1206;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s ease;
}
.alm-symptom.checked .alm-symptom-check::after { transform: rotate(45deg) scale(1); }
.alm-symptom-body { flex: 1; }
.alm-symptom-text {
  font-size: 0.94rem;
  color: #F5F1E8;
  line-height: 1.4;
  margin-bottom: 6px;
}
.alm-symptom-doctrine {
  display: flex;
  align-items: center;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  flex-wrap: wrap;
}
.alm-symptom.checked .alm-symptom-doctrine { max-height: 60px; margin-top: 4px; }
.alm-doctrine-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 7px;
  background: rgba(176, 141, 69, 0.13);
  border: 1px solid rgba(176, 141, 69, 0.3);
  border-radius: 100px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright, #D4B36A);
  font-weight: 500;
}
.alm-doctrine-tag::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright, #D4B36A);
}
.alm-symptom-caveat {
  font-size: 0.75rem;
  color: rgba(240, 232, 214, 0.5);
  font-style: italic;
}

/* ============ URGENCY ============ */
.alm-urgency-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.alm-urgency-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(176, 141, 69, 0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}
.alm-urgency-opt:hover,
.alm-urgency-opt:focus-visible { border-color: rgba(176, 141, 69, 0.4); background: rgba(20, 15, 8, 0.6); }
.alm-urgency-opt.active {
  border-color: var(--gold, #B08D45);
  background: rgba(30, 22, 10, 0.7);
  box-shadow: 0 0 0 1px var(--gold, #B08D45);
}
.alm-urgency-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(176, 141, 69, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--gold, #B08D45);
  font-weight: 700;
}
.alm-urgency-opt.active .alm-urgency-icon {
  background: var(--gold-metal, linear-gradient(180deg,#D4B36A 0%,#B08D45 50%,#8A6B24 100%));
  color: #1a1206;
  border-color: var(--gold-bright, #D4B36A);
}
.alm-urgency-body { flex: 1; }
.alm-urgency-label { font-size: 0.94rem; color: #F5F1E8; font-weight: 500; margin-bottom: 2px; }
.alm-urgency-sub { font-size: 0.75rem; color: rgba(240, 232, 214, 0.55); }

/* ============ HANDOFF ============ */
.alm-handoff-lead {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.1rem;
  color: #F5F1E8;
  line-height: 1.45;
  margin: 0 0 20px;
  font-weight: 400;
}
.alm-handoff-lead em { color: var(--gold-bright, #D4B36A); font-style: normal; }
.alm-handoff-summary {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(176, 141, 69, 0.18);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.alm-handoff-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(176, 141, 69, 0.14);
}
.alm-handoff-row:first-child { padding-top: 0; }
.alm-handoff-row:last-child { padding-bottom: 0; border-bottom: none; }
.alm-handoff-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 232, 214, 0.5);
  font-weight: 500;
  flex-shrink: 0;
  padding-top: 3px;
}
.alm-handoff-value { font-size: 0.92rem; color: #F5F1E8; text-align: right; line-height: 1.4; }
.alm-handoff-value .alm-doctrine-tag { margin: 2px; }
.alm-handoff-notes {
  font-size: 0.85rem;
  color: rgba(240, 232, 214, 0.72);
  padding: 12px 16px;
  background: rgba(176, 141, 69, 0.06);
  border-left: 2px solid var(--gold, #B08D45);
  border-radius: 3px;
  line-height: 1.55;
}
.alm-handoff-notes strong { color: var(--gold-bright, #D4B36A); font-weight: 600; }

/* ============ FOOTER ============ */
.alm-footer {
  padding: 16px 34px 20px;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(176, 141, 69, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.alm-btn-back {
  padding: 11px 22px;
  background: transparent;
  border: 1px solid rgba(176, 141, 69, 0.35);
  color: var(--gold, #B08D45);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.alm-btn-back:hover { background: rgba(176, 141, 69, 0.1); border-color: var(--gold, #B08D45); }
.alm-btn-back:disabled { opacity: 0.25; cursor: not-allowed; }
.alm-btn-next {
  padding: 13px 28px;
  background: var(--gold-metal, linear-gradient(180deg,#D4B36A 0%,#B08D45 50%,#8A6B24 100%));
  color: #1a1206;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(176, 141, 69, 0.3), inset 0 1px 0 rgba(255, 240, 200, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.alm-btn-next:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(176, 141, 69, 0.4), inset 0 1px 0 rgba(255, 240, 200, 0.5); }
.alm-btn-next:disabled { opacity: 0.7; cursor: wait; }
.alm-btn-next::after { content: " →"; transition: transform 0.2s ease; display: inline-block; }
.alm-btn-next:hover:not(:disabled)::after { transform: translateX(3px); }
.alm-btn-submit::after { content: ""; }

/* ============ SUCCESS ============ */
.alm-success {
  display: none;
  padding: 40px 34px 32px;
  overflow-y: auto;
  max-height: calc(100vh - 48px);
}
.alm-success.active { display: block; animation: alm-success-in 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes alm-success-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.alm-success-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold, #B08D45);
  margin-bottom: 12px;
}
.alm-success-brand::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}
.alm-success-h {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.8rem;
  line-height: 1.1;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: #F5F1E8;
}
.alm-success-sub {
  font-size: 1rem;
  color: rgba(240, 232, 214, 0.72);
  margin: 0 0 24px;
  line-height: 1.5;
}
.alm-success-sub em { color: var(--gold-bright, #D4B36A); font-style: normal; font-weight: 500; }
.alm-success-echo {
  background: rgba(176, 141, 69, 0.06);
  border-left: 2px solid var(--gold, #B08D45);
  padding: 14px 18px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.alm-echo-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold, #B08D45);
  margin-bottom: 8px;
}
.alm-echo-content { font-size: 0.88rem; color: rgba(240, 232, 214, 0.85); line-height: 1.5; }
.alm-echo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.alm-success-timeline {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(176, 141, 69, 0.18);
  border-radius: 6px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.alm-timeline-title {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #B08D45);
  margin-bottom: 14px;
}
.alm-timeline-item {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(176, 141, 69, 0.12);
}
.alm-timeline-item:last-child { border-bottom: none; padding-bottom: 0; }
.alm-timeline-when {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--gold-bright, #D4B36A);
  flex-shrink: 0;
  width: 78px;
  padding-top: 2px;
  letter-spacing: 0.08em;
}
.alm-timeline-what {
  font-size: 0.9rem;
  color: rgba(240, 232, 214, 0.85);
  line-height: 1.5;
}
.alm-success-urgent,
.alm-success-error {
  background: rgba(217, 119, 87, 0.08);
  border: 1px solid rgba(217, 119, 87, 0.3);
  border-radius: 6px;
  padding: 16px 18px;
  display: none;
  margin-top: 12px;
}
.alm-success-urgent.visible,
.alm-success-error.visible { display: block; }
.alm-urgent-label {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d97757;
  margin-bottom: 6px;
}
.alm-urgent-msg { font-size: 0.9rem; color: #F5F1E8; margin-bottom: 12px; line-height: 1.5; }
.alm-btn-text-jay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #d97757;
  color: #d97757;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.alm-btn-text-jay:hover { background: rgba(217, 119, 87, 0.15); }

/* ============ MOBILE FULL-SCREEN ============ */
@media (max-width: 640px) {
  .alm-overlay { padding: 0; }
  .alm-modal {
    margin: 0;
    max-height: 100vh;
    max-width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
  }
  .alm-head, .alm-body, .alm-footer, .alm-success, .alm-chips, .alm-progress { padding-left: 20px; padding-right: 20px; }
  .alm-title { font-size: 1.4rem; }
  .alm-success-h { font-size: 1.5rem; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .alm-overlay, .alm-modal, .alm-step, .alm-chip, .alm-close, .alm-progress-fill, .alm-progress-seg.active .alm-progress-fill::after,
  .alm-float-wrap, .alm-brand::before, .alm-success, .alm-float-btn, .alm-float-label {
    transition: none !important;
    animation: none !important;
  }
}
