:root {
  --gold: var(--brand, #ffd000);
  --gold-dark: var(--brand-dark, #e6bc00);
  --black: var(--brand-ink, #221f1f);
  --dark: #2d2d2d;
  --gray: #f8f9fa;
  --muted: #6c757d;
  --green: #28a745;
  --blue: #0066cc;
  --orange: #fd7e14;
  --red: #dc3545;
  --radius: 14px;
  --ease: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #F5F4F0;
  background-image:
    radial-gradient(ellipse at 15% 40%, rgba(255,208,0,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(0,0,0,0.03) 0%, transparent 45%),
    radial-gradient(circle, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
}

/* ── Header ── */
.header-section {
  background: #1a1818;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.header-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

.header-speed-lines {
  position: absolute;
  inset: 0; pointer-events: none; overflow: hidden;
}
.header-speed-lines span {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,208,0,0.18), transparent);
  animation: speedLine 3.5s linear infinite;
  opacity: 0;
}
.header-speed-lines span:nth-child(1) { top: 18%; width: 35%; animation-delay: 0s;    animation-duration: 3.2s; }
.header-speed-lines span:nth-child(2) { top: 38%; width: 22%; animation-delay: 1.1s;  animation-duration: 2.8s; }
.header-speed-lines span:nth-child(3) { top: 58%; width: 42%; animation-delay: 0.5s;  animation-duration: 3.8s; }
.header-speed-lines span:nth-child(4) { top: 72%; width: 18%; animation-delay: 1.8s;  animation-duration: 2.5s; }
.header-speed-lines span:nth-child(5) { top: 28%; width: 28%; animation-delay: 2.2s;  animation-duration: 3.0s; }
.header-speed-lines span:nth-child(6) { top: 85%; width: 30%; animation-delay: 0.9s;  animation-duration: 3.5s; }

@keyframes speedLine {
  0%   { right: -50%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { right: 110%; opacity: 0; }
}

.header-bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold) 20%,
    var(--gold) 80%,
    transparent 100%
  );
  opacity: 0.7;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  position: relative;
  z-index: 2;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-container {
  background: white;
  padding: 7px 11px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.logo { height: 36px; width: auto; display: block; }

.header-divider {
  width: 1px; height: 38px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
  margin: 0 20px;
  flex-shrink: 0;
}

.header-title-wrap { display: flex; flex-direction: column; gap: 1px; }

.header-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  line-height: 1;
}

.header-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: white;
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.15;
}

.header-title-accent {
  color: var(--gold);
  position: relative;
}
.header-title-accent::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  opacity: 0.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-header-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  font-size: 0.84rem;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--ease);
  letter-spacing: 0.1px;
  backdrop-filter: blur(4px);
}
.btn-header-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: white;
  transform: translateY(-1px);
}

.btn-header-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gold);
  border: none;
  color: var(--black);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--ease);
  letter-spacing: 0.1px;
  box-shadow: 0 3px 12px rgba(255,208,0,0.3);
}
.btn-header-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,208,0,0.45);
  color: var(--black);
}

@media (max-width: 768px) {
  .header-divider { display: none; }
  .header-label { display: none; }
  .header-title { font-size: 1.15rem; }
  .header-speed-lines { display: none; }
}

/* ── Main ── */
.main-content { padding: 2.5rem 0; position: relative; z-index: 1; }

/* ── Welcome Card ── */
.welcome-card {
  background: #fff;
  border: 1px solid #e5e2dc;
  border-radius: var(--radius);
  padding: 1rem 1.6rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  backdrop-filter: blur(8px);
}
.welcome-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.welcome-icon-wrap {
  width: 38px; height: 38px;
  background: rgba(255,208,0,0.18);
  border-radius: 9px;
  border: 1px solid rgba(255,208,0,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.welcome-title {
  font-size: 0.95rem; font-weight: 700;
  color: #1a1818; margin-bottom: 1px;
}
.welcome-text {
  font-size: 0.78rem; color: #6b7280;
  margin: 0; line-height: 1.4;
}
.welcome-card-badge {
  display: flex; align-items: center; gap: 6px;
  background: #f8f7f3;
  border: 1px solid #e5e2dc;
  border-radius: 20px; padding: 5px 13px;
  flex-shrink: 0;
}
.welcome-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,208,0,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(255,208,0,0); }
}
.welcome-badge-text {
  font-size: 0.7rem; font-weight: 700;
  color: #6b7280; letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Form Card ── */
.main-form-card {
  background: white;
  border-radius: var(--radius);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.10),
    0 24px 48px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid #ebebeb;
  /* Gold top accent bar */
  border-top: 3px solid var(--gold);
}

/* ── Form Sections ── */
.form-section {
  padding: 2rem 2.2rem 1.6rem;
  animation: sectionFadeIn 0.4s ease;
}
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid #f0f0f0;
}

.section-number {
  width: 32px; height: 32px;
  background: var(--black);
  color: var(--gold);
  border-radius: 8px;
  font-size: 0.82rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.3px;
}

.section-title {
  font-size: 1rem; font-weight: 700;
  color: var(--black); margin-bottom: 1px;
}

.section-description {
  color: var(--muted); font-size: 0.82rem; margin: 0;
}

.section-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0;
}

/* ── Form Actions ── */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1.4rem 2.2rem;
  background: #fafafa;
  border-top: 1.5px solid #f0f0f0;
}

.btn-action-clear {
  display: inline-flex; align-items: center;
  background: transparent; border: 1.5px solid #ddd;
  color: #888; font-weight: 600; font-size: 0.84rem;
  padding: 9px 20px; border-radius: 8px;
  cursor: pointer; transition: var(--ease);
  font-family: inherit; letter-spacing: 0.1px;
}
.btn-action-clear:hover {
  border-color: #aaa; color: var(--black);
  background: white;
}

.btn-action-submit {
  display: inline-flex; align-items: center;
  background: var(--black);
  border: none; color: var(--gold);
  font-weight: 700; font-size: 0.9rem;
  padding: 11px 28px; border-radius: 8px;
  cursor: pointer; transition: var(--ease);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  font-family: inherit; letter-spacing: 0.2px;
}
.btn-action-submit:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.btn-action-submit:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
}

/* ── Processing Card ── */
.processing-card {
  padding: 4rem 2rem;
  margin-top: 1.5rem;
}
.processing-inner {
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 14px;
}
.processing-spinner {
  width: 52px; height: 52px;
  border: 4px solid #f0f0f0;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Inputs ── */
.form-floating > .form-control,
.form-floating > .form-select,
.form-floating > select.form-control {
  border: 1.5px solid #e2e2e2;
  border-radius: 8px;
  font-size: 0.91rem;
  transition: var(--ease);
  background: #fafafa;
  color: var(--black);
}
.form-floating > .form-control:focus,
.form-floating > .form-select:focus,
.form-floating > select.form-control:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(34,31,31,0.08);
  background: #fff;
}
/* Override Bootstrap green valid state → use gold */
.form-floating > .form-control.is-valid,
.form-floating > select.form-control.is-valid,
.was-validated .form-floating > .form-control:valid,
.was-validated .form-floating > select.form-control:valid {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(255,208,0,0.15) !important;
  background-image: none !important;
}
.form-floating > .form-control.is-invalid,
.form-floating > select.form-control.is-invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,53,69,0.10);
  background-image: none;
}
/* Override Bootstrap's native valid/invalid background icons */
.form-control.is-valid, .form-control.is-invalid,
select.form-control.is-valid, select.form-control.is-invalid {
  background-image: none !important;
  padding-right: inherit !important;
}
.form-floating > label {
  color: #aaa; font-weight: 500; font-size: 0.86rem;
}
.required { color: var(--red); }


/* ── Additional Recipients ── */
.additional-recipients {
  background: #fafafa;
  padding: 1.4rem; border-radius: 10px;
  border: 2px solid #e8e8e8;
}
.additional-recipients h6 {
  font-size: 0.85rem; font-weight: 700;
  color: var(--black); text-transform: uppercase; letter-spacing: 0.5px;
}
.recipient-item {
  display: flex; gap: 8px;
  margin-bottom: 10px;
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── File Upload ── */
.attachment-section {
  background: #fafafa; padding: 1.4rem;
  border-radius: 10px; border: 2px solid #e8e8e8;
}
.attachment-section .form-label {
  font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: #555; margin-bottom: 12px;
}
.file-upload-area {
  border: 2px dashed #d0d0d0;
  border-radius: 10px; padding: 2rem;
  text-align: center; cursor: pointer;
  transition: var(--ease); position: relative;
  background: white;
}
.file-upload-area:hover, .file-upload-area.dragover {
  border-color: var(--gold);
  background: rgba(255,208,0,0.04);
}
.upload-icon { font-size: 2.8rem; color: var(--gold); margin-bottom: 10px; }
.file-upload-area h6 { font-weight: 600; color: #333; margin-bottom: 4px; }
.file-upload-area input[type="file"] {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; align-items: center;
  justify-content: space-between;
  background: white; padding: 10px 14px;
  border-radius: 8px; border: 1px solid #e8e8e8;
  animation: slideIn 0.3s ease-out;
}
.file-info-left { display: flex; align-items: center; gap: 10px; }
.file-icon {
  width: 34px; height: 34px;
  background: var(--gold); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--black); font-size: 0.7rem; font-weight: 800;
}
.file-details h6 { margin: 0; font-size: 0.88rem; font-weight: 600; }
.file-details small { color: var(--muted); }

/* ── Footer ── */
.footer-section {
  background: #eeede9;
  border-top: 1px solid #dddbd5;
  color: #9ca3af;
  padding: 1.4rem 0; margin-top: 3rem;
  font-size: 0.82rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .form-section { padding: 1.5rem 1rem; }
  .section-divider { margin: 0 1rem; }
  .form-actions { flex-direction: column-reverse; padding: 1.2rem 1rem; }
  .btn-action-clear,
  .btn-action-submit { width: 100%; justify-content: center; }
  .welcome-card { flex-direction: column; align-items: flex-start; }
  .welcome-card-badge { align-self: flex-start; }
}

@media (max-width: 576px) {
  .main-content { padding: 1.5rem 0; }
}

/* ══════════════════════════════════════════
   herA PUBLIC CHATBOT WIDGET
══════════════════════════════════════════ */
#hera-pub-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

#hera-pub-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd000 0%, #ffc200 60%, #e6ac00 100%);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(255,208,0,.55), 0 0 0 0 rgba(255,208,0,.4);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
  position: relative; outline: none;
  animation: hera-pub-pulse 3s ease-in-out infinite;
}
@keyframes hera-pub-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(255,208,0,.55), 0 0 0 0 rgba(255,208,0,.3); }
  50%       { box-shadow: 0 6px 28px rgba(255,208,0,.7), 0 0 0 9px rgba(255,208,0,.0); }
}
#hera-pub-toggle::before {
  content: ''; position: absolute; inset: -6px;
  border-radius: 50%; border: 2px solid rgba(255,208,0,.35);
  animation: hera-pub-ring 2.5s ease-in-out infinite;
}
#hera-pub-toggle::after {
  content: ''; position: absolute; inset: -13px;
  border-radius: 50%; border: 1.5px solid rgba(255,208,0,.15);
  animation: hera-pub-ring 2.5s ease-in-out infinite .4s;
}
#hera-pub-toggle.open::before, #hera-pub-toggle.open::after { display: none; }
#hera-pub-toggle.open { animation: none; }
#hera-pub-toggle:hover {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 8px 32px rgba(255,208,0,.8); animation: none;
}
@keyframes hera-pub-ring {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.28); opacity: 0; }
}
.hera-pub-btn-icon, .hera-pub-btn-close { pointer-events: none; }

#hera-pub-badge {
  position: absolute; top: -2px; right: -2px;
  width: 20px; height: 20px;
  background: #ef4444; border: 2.5px solid white;
  border-radius: 50%; font-size: .6rem; font-weight: 700;
  color: white; display: flex; align-items: center; justify-content: center;
  animation: hera-badge-pop .3s cubic-bezier(.34,1.56,.64,1);
}
#hera-pub-badge.hidden { display: none; }
@keyframes hera-badge-pop {
  from { transform: scale(0); } to { transform: scale(1); }
}

#hera-pub-panel {
  width: 360px; max-height: 500px;
  background: white; border-radius: 18px;
  box-shadow: 0 12px 48px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.08);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  transform: scale(.85) translateY(10px);
  opacity: 0; pointer-events: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
}
#hera-pub-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1; pointer-events: all;
}

.hera-pub-header {
  background: #1a1818;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.hera-pub-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd000, #ffb800);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 0 10px rgba(255,208,0,.4);
}
.hera-pub-info { flex: 1; }
.hera-pub-name { font-size: .9rem; font-weight: 800; color: #ffd000; line-height: 1.2; }
.hera-pub-sub  {
  font-size: .68rem; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 5px;
}
.hera-pub-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  animation: hera-pub-pulse-dot 2s infinite;
}
@keyframes hera-pub-pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.4); }
  50%      { box-shadow: 0 0 0 4px rgba(74,222,128,.0); }
}
.hera-pub-close {
  background: none; border: none; color: rgba(255,255,255,.5);
  cursor: pointer; padding: 4px 6px; border-radius: 6px;
  transition: color .15s, background .15s; font-size: .85rem;
}
.hera-pub-close:hover { color: white; background: rgba(255,255,255,.1); }

#hera-pub-msgs {
  flex: 1; overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 10px; min-height: 0;
}
#hera-pub-msgs::-webkit-scrollbar { width: 4px; }
#hera-pub-msgs::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

.hera-pub-welcome {
  text-align: center; padding: 16px 8px;
  color: #9ca3af; font-size: .82rem;
}
.hera-pub-welcome-icon {
  font-size: 2.2rem; color: #ffd000; margin-bottom: 10px;
}
.hera-pub-welcome strong { display: block; color: #374151; font-size: .95rem; margin-bottom: 6px; }
.hera-pub-welcome p { margin: 0 0 14px; line-height: 1.5; }
.hera-pub-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.hera-pub-chip {
  padding: 5px 12px; border-radius: 20px;
  border: 1.5px solid #e5e7eb; background: white;
  font-size: .73rem; color: #374151; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  font-family: inherit;
}
.hera-pub-chip:hover {
  border-color: #ffd000; background: #fffde7; color: #1a1818;
}

.hera-pub-msg { display: flex; gap: 8px; max-width: 100%; }
.hera-pub-msg.user { flex-direction: row-reverse; }
.hera-pub-msg-av {
  width: 28px; height: 28px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: .68rem; font-weight: 700;
  margin-top: 2px;
}
.hera-pub-msg.bot  .hera-pub-msg-av { background: #ffd000; color: #1a1818; }
.hera-pub-msg.user .hera-pub-msg-av { background: #e5e7eb; color: #374151; }
.hera-pub-bubble {
  padding: 9px 13px; border-radius: 14px;
  font-size: .82rem; line-height: 1.55;
  max-width: calc(100% - 40px); word-break: break-word;
}
.hera-pub-msg.bot  .hera-pub-bubble {
  background: #f3f4f6; color: #1f2937; border-bottom-left-radius: 4px;
}
.hera-pub-msg.user .hera-pub-bubble {
  background: #1a1818; color: #ffd000; border-bottom-right-radius: 4px;
}
.hera-pub-bubble strong { font-weight: 700; }
.hera-pub-bubble br { display: block; margin: 2px 0; }

.hera-pub-typing .hera-pub-bubble {
  padding: 11px 14px; display: flex; align-items: center; gap: 4px;
}
.hera-pub-dot-t {
  width: 7px; height: 7px; border-radius: 50%;
  background: #9ca3af;
  animation: hera-pub-bounce .9s infinite ease-in-out;
}
.hera-pub-dot-t:nth-child(2) { animation-delay: .18s; }
.hera-pub-dot-t:nth-child(3) { animation-delay: .36s; }
@keyframes hera-pub-bounce {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-6px); }
}

.hera-pub-input-row {
  border-top: 1px solid #f0f0f0; padding: 10px 12px;
  display: flex; gap: 8px; align-items: center; flex-shrink: 0;
}
#hera-pub-input {
  flex: 1; border: 1.5px solid #e5e7eb; border-radius: 10px;
  padding: 9px 13px; font-size: .82rem; outline: none;
  transition: border-color .15s; font-family: inherit;
}
#hera-pub-input:focus { border-color: #ffd000; box-shadow: 0 0 0 3px rgba(255,208,0,.15); }
#hera-pub-send {
  width: 38px; height: 38px; border-radius: 10px;
  background: #1a1818; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s, transform .15s; flex-shrink: 0;
}
#hera-pub-send i { color: #ffd000; font-size: .85rem; }
#hera-pub-send:hover { opacity: .88; transform: scale(1.05); }

@media (max-width: 576px) {
  #hera-pub-panel { width: calc(100vw - 32px); }
  #hera-pub-fab   { bottom: 20px; right: 16px; }
}

/* ── Priority bar (compact) ──────────────────────────── */
.priority-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
}
.priority-bar-label {
  font-size: .78rem;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.priority-bar-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.priority-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s;
  user-select: none;
  line-height: 1.4;
}
/* Low */
.priority-btn--low   { border-color: #d1fae5; background: #f0fdf4; color: #15803d; }
.btn-check:checked + .priority-btn--low   { background: #15803d; color: #fff; border-color: #15803d; }
/* Medium */
.priority-btn--medium { border-color: #fef9c3; background: #fefce8; color: #a16207; }
.btn-check:checked + .priority-btn--medium { background: #ca8a04; color: #fff; border-color: #ca8a04; }
/* High */
.priority-btn--high  { border-color: #fed7aa; background: #fff7ed; color: #c2410c; }
.btn-check:checked + .priority-btn--high  { background: #ea580c; color: #fff; border-color: #ea580c; }
/* Urgent */
.priority-btn--urgent { border-color: #fecaca; background: #fff5f5; color: #b91c1c; }
.btn-check:checked + .priority-btn--urgent { background: #dc2626; color: #fff; border-color: #dc2626; }

/* ── Confirmation card ────────────────────────────── */
.confirm-card { text-align: center; padding: 56px 32px; }
.confirm-inner { max-width: 480px; margin: 0 auto; }
.confirm-icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: #f0fdf4; border: 2px solid #bbf7d0;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.confirm-title { font-size: 1.6rem; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.confirm-subtitle { font-size: .95rem; color: #6b7280; margin-bottom: 28px; }
.confirm-ref-box {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #1a1818; border-radius: 14px; padding: 20px 32px; margin-bottom: 20px;
}
.confirm-ref-label { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; }
.confirm-ref-num { font-size: 2rem; font-weight: 800; color: #ffd000; letter-spacing: .05em; }
.confirm-email-note { font-size: .83rem; color: #6b7280; margin-bottom: 28px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Char counters ────────────────────────────────── */
.char-counter-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 3px; padding: 0 4px;
}
.char-counter {
  font-size: .67rem; font-weight: 500; color: #c4c9d4;
  letter-spacing: .02em;
  transition: color .2s;
}
.char-counter--ok   { color: #86efac; }
.char-counter--warn { color: #fca5a5; font-weight: 600; }
.char-counter-hint  {
  font-size: .65rem; color: #c4c9d4; font-style: italic;
  display: flex; align-items: center; gap: 3px;
}
.char-counter-hint::before {
  content: '·'; font-style: normal; opacity: .5;
}

/* ── Priority hint ────────────────────────────────── */
.priority-hint-row {
  min-height: 0;
  font-size: .67rem; color: #9ca3af; font-style: italic;
  padding: 5px 4px 0;
  letter-spacing: .01em;
  transition: opacity .2s;
}
