/* ═══════════════════════════════════════════════════════════════════════
   apps/portal/static/portal/css/portal_public.css
   PORTAL PÚBLICO — carregado SOMENTE nas páginas públicas
   ({tenant}.voxli.com.br, exceto /admin/)
   Contém: pub-*, portal-page, portal-section, portal-form,
           portal-hero, portal-attachment, portal-lookup, etc.
   ═══════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════
   1. PAGE LAYOUT
   ══════════════════════════════════════════════════════════════════════ */

.portal-page {
  max-width: var(--portal-page-max);
  margin: 0 auto;
  padding: 0 16px 72px;
  width: 100%;
}

/* ══════════════════════════════════════════════════════════════════════
   2. HERO (nova arquitetura pub-*)
   ══════════════════════════════════════════════════════════════════════ */

.pub-page {
  min-height: calc(100dvh - 90px);
  display: flex;
  flex-direction: column;
}

.pub-hero {
  position: relative;
  padding: 52px 16px 44px;
  text-align: center;
  overflow: hidden;
}

.pub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -10%,
      color-mix(in srgb, var(--portal-primary) 12%, transparent),
      transparent 65%),
    radial-gradient(ellipse 60% 40% at 80% 100%,
      color-mix(in srgb, var(--portal-accent) 6%, transparent),
      transparent 70%);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .pub-hero::before {
    background:
      radial-gradient(ellipse 100% 80% at 50% -10%,
        color-mix(in srgb, var(--portal-accent) 16%, transparent),
        transparent 65%);
  }
}

.pub-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--portal-accent);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.pub-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--portal-accent);
  animation: pub-pulse 2.4s ease-in-out infinite;
}

@keyframes pub-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}

.pub-hero-title {
  font-size: clamp(26px, 5.5vw, 42px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--portal-text);
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

.pub-hero-sub {
  font-size: 15px;
  color: var(--portal-text-soft);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════════
   3. CONTAINER WIDTHS
   ══════════════════════════════════════════════════════════════════════ */

.pub-container {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 16px 72px;
  flex: 1;
}

.pub-container--wide   { max-width: 920px; }
.pub-container--narrow { max-width: 560px; }

/* ══════════════════════════════════════════════════════════════════════
   4. TRUST BAR
   ══════════════════════════════════════════════════════════════════════ */

.pub-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 12px 16px 20px;
}

.pub-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--portal-text-muted);
  letter-spacing: 0.01em;
}

.pub-trust-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.65;
}

/* ══════════════════════════════════════════════════════════════════════
   5. CARDS (pub-card)
   ══════════════════════════════════════════════════════════════════════ */

.pub-card {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border-subtle);
  border-radius: var(--portal-radius-xl);
  box-shadow: var(--portal-shadow-soft);
  overflow: hidden;
  margin-bottom: 14px;
  transition: box-shadow var(--portal-duration-base) var(--portal-ease-out);
}

.pub-card:focus-within { box-shadow: var(--portal-shadow-card); }

.pub-card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--portal-border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pub-card-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--portal-primary);
  color: var(--portal-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.pub-card-header-text { flex: 1; min-width: 0; }

.pub-card-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--portal-text);
  letter-spacing: -0.01em;
  margin: 0 0 2px;
  line-height: 1.2;
}

.pub-card-sub {
  font-size: 13px;
  color: var(--portal-text-soft);
  margin: 0;
  line-height: 1.5;
}

.pub-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ══════════════════════════════════════════════════════════════════════
   6. SUBMIT BAR
   ══════════════════════════════════════════════════════════════════════ */

.pub-submit-bar {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border-subtle);
  border-radius: var(--portal-radius-xl);
  box-shadow: var(--portal-shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  flex-wrap: wrap;
}

.pub-submit-hint {
  font-size: 12px;
  color: var(--portal-text-muted);
  line-height: 1.5;
  max-width: 340px;
}

/* ══════════════════════════════════════════════════════════════════════
   7. OVERLAY (anti double-submit)
   ══════════════════════════════════════════════════════════════════════ */

.vx-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--portal-ease-out);
}

.vx-overlay.is-open { opacity: 1; pointer-events: auto; }

.vx-overlay__panel {
  background: var(--portal-surface);
  border-radius: var(--portal-radius-xl);
  box-shadow: var(--portal-shadow-float);
  padding: 32px 36px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  outline: none;
}

.vx-overlay__spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--portal-border-strong);
  border-top-color: var(--portal-accent);
  animation: pub-spin 0.7s linear infinite;
  margin: 0 auto 16px;
}

@keyframes pub-spin { to { transform: rotate(360deg); } }

.vx-overlay__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--portal-text);
  margin: 0 0 6px;
}

.vx-overlay__sub {
  font-size: 13px;
  color: var(--portal-text-soft);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   8. CONFIRM / SUCCESS
   ══════════════════════════════════════════════════════════════════════ */

.pub-success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 16px 28px;
}

.pub-success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--portal-accent) 18%, transparent),
    color-mix(in srgb, var(--portal-accent) 8%, transparent)
  );
  border: 2px solid color-mix(in srgb, var(--portal-accent) 35%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  animation: pub-scale-in 0.45s var(--portal-ease-out) both;
}

@keyframes pub-scale-in {
  from { transform: scale(0.75); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.pub-success-title {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--portal-text);
  margin: 0 0 8px;
}

.pub-success-sub {
  font-size: 15px;
  color: var(--portal-text-soft);
  max-width: 440px;
  line-height: 1.65;
  margin: 0 auto 28px;
}

/* ══════════════════════════════════════════════════════════════════════
   9. PROTOCOL BOX
   ══════════════════════════════════════════════════════════════════════ */

.pub-protocol-box {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 24px;
  background: var(--portal-surface);
  border: 1.5px solid var(--portal-border-strong);
  border-radius: var(--portal-radius-lg);
  box-shadow: var(--portal-shadow-card);
  overflow: hidden;
}

.pub-protocol-head {
  padding: 11px 16px;
  border-bottom: 1px solid var(--portal-border-subtle);
  background: var(--portal-surface-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-protocol-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--portal-text-muted);
  flex: 1;
}

.pub-protocol-status { font-size: 11px; font-weight: 800; color: var(--portal-accent); }

.pub-protocol-body {
  padding: 18px 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pub-protocol-value {
  flex: 1;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.07em;
  color: var(--portal-text);
  font-family: var(--portal-font-mono);
  background: transparent;
  border: 0;
  outline: none;
  cursor: text;
  width: 100%;
  user-select: all;
  -webkit-user-select: all;
}

.pub-protocol-hint {
  font-size: 12px;
  color: var(--portal-text-muted);
  padding: 0 16px 14px;
  text-align: left;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════
   10. NEXT STEPS / PILLS / CTA GROUP
   ══════════════════════════════════════════════════════════════════════ */

.pub-next-steps {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 24px;
  text-align: left;
}

.pub-next-steps-title {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--portal-text-muted);
  margin-bottom: 10px;
  padding: 0 4px;
}

.pub-next-steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-next-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--portal-text-soft);
  line-height: 1.5;
}

.pub-next-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--portal-border-strong);
  color: var(--portal-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.pub-pill-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.pub-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--portal-border-strong);
  background: var(--portal-surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--portal-text-soft);
}

.pub-pill strong { color: var(--portal-text); font-weight: 800; }

.pub-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════════
   11. CONSULTA — LOOKUP SEARCH
   ══════════════════════════════════════════════════════════════════════ */

.pub-lookup-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.pub-lookup-input {
  flex: 1;
  height: 56px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 16px;
  border: 1.5px solid var(--portal-border-strong);
  background: var(--portal-surface);
  color: var(--portal-text);
  padding: 0 16px;
  outline: none;
  transition:
    border-color var(--portal-duration-base) var(--portal-ease-out),
    box-shadow var(--portal-duration-base) var(--portal-ease-out);
}

.pub-lookup-input::placeholder {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-size: 14px;
  color: var(--portal-text-muted);
}

.pub-lookup-input:focus {
  border-color: var(--portal-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--portal-accent) 18%, transparent);
}

.pub-lookup-btn { height: 56px; padding: 0 24px; border-radius: 16px; font-weight: 800; font-size: 14px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════
   12. MANIFEST CARD (resultado da consulta)
   ══════════════════════════════════════════════════════════════════════ */

.pub-manifest-card {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border-subtle);
  border-radius: var(--portal-radius-xl);
  box-shadow: var(--portal-shadow-soft);
  overflow: hidden;
  margin-bottom: 16px;
}

.pub-manifest-banner {
  padding: 18px 24px;
  border-bottom: 1px solid var(--portal-border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pub-manifest-proto-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--portal-text-muted);
  margin-bottom: 3px;
}

.pub-manifest-proto-value {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--portal-text);
  font-family: var(--portal-font-mono);
}

.pub-manifest-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════
   13. STATUS BADGES
   ══════════════════════════════════════════════════════════════════════ */

.pub-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.pub-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pub-status-badge[data-status="new"],
.pub-status-badge[data-status="open"],
.pub-status-badge[data-status="in_review"] {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  color: #1e40af;
}
.pub-status-badge[data-status="new"]       .pub-status-dot,
.pub-status-badge[data-status="open"]      .pub-status-dot,
.pub-status-badge[data-status="in_review"] .pub-status-dot { background: #3b82f6; }

.pub-status-badge[data-status="waiting_user"] {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.22);
  color: #92400e;
}
.pub-status-badge[data-status="waiting_user"] .pub-status-dot { background: #f59e0b; }

.pub-status-badge[data-status="answered"],
.pub-status-badge[data-status="done"] {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.22);
  color: #065f46;
}
.pub-status-badge[data-status="answered"] .pub-status-dot,
.pub-status-badge[data-status="done"]     .pub-status-dot { background: #10b981; }

.pub-status-badge[data-status="closed"],
.pub-status-badge[data-status="archived"],
.pub-status-badge[data-status="closed_by_requester"] {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.6);
}
.pub-status-badge[data-status="closed"]             .pub-status-dot,
.pub-status-badge[data-status="archived"]           .pub-status-dot,
.pub-status-badge[data-status="closed_by_requester"] .pub-status-dot { background: rgba(15, 23, 42, 0.3); }

@media (prefers-color-scheme: dark) {
  .pub-status-badge[data-status="new"],
  .pub-status-badge[data-status="open"],
  .pub-status-badge[data-status="in_review"]    { color: #93c5fd; }
  .pub-status-badge[data-status="waiting_user"] { color: #fcd34d; }
  .pub-status-badge[data-status="answered"],
  .pub-status-badge[data-status="done"]         { color: #6ee7b7; }
}

[data-theme="dark"] .pub-status-badge[data-status="new"],
[data-theme="dark"] .pub-status-badge[data-status="open"],
[data-theme="dark"] .pub-status-badge[data-status="in_review"]    { color: #93c5fd; }
[data-theme="dark"] .pub-status-badge[data-status="waiting_user"] { color: #fcd34d; }
[data-theme="dark"] .pub-status-badge[data-status="answered"],
[data-theme="dark"] .pub-status-badge[data-status="done"]         { color: #6ee7b7; }

/* ══════════════════════════════════════════════════════════════════════
   14. TIMELINE / CHAT PÚBLICO
   ══════════════════════════════════════════════════════════════════════ */

.pub-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--portal-surface-soft);
  border-radius: var(--portal-radius-md);
  max-height: min(540px, 60vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.pub-timeline::-webkit-scrollbar { width: 4px; }
.pub-timeline::-webkit-scrollbar-track { background: transparent; }
.pub-timeline::-webkit-scrollbar-thumb { background: var(--portal-border-strong); border-radius: 999px; }

.pub-msg {
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: pub-msg-in 0.2s var(--portal-ease-out) both;
}

@keyframes pub-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pub-msg--citizen { align-items: flex-end; }
.pub-msg--channel { align-items: flex-start; }
.pub-msg--system  { align-items: center; }

.pub-msg-who {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--portal-text-muted);
  padding: 0 6px;
}

.pub-bubble {
  max-width: min(480px, 78%);
  padding: 11px 15px;
  font-size: 14px;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pub-msg--citizen .pub-bubble {
  background: var(--portal-primary);
  color: var(--portal-on-primary);
  border-radius: 18px 18px 4px 18px;
}

.pub-msg--channel .pub-bubble {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border-subtle);
  color: var(--portal-text);
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 2px 10px rgba(2,6,23,.06);
}

.pub-msg--system .pub-bubble {
  background: transparent;
  border: 1px dashed var(--portal-border-strong);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--portal-text-muted);
  font-weight: 700;
  padding: 5px 14px;
  max-width: 85%;
  text-align: center;
}

.pub-msg-time {
  font-size: 10.5px;
  color: var(--portal-text-muted);
  padding: 0 6px;
}

/* ══════════════════════════════════════════════════════════════════════
   15. ATTACHMENTS
   ══════════════════════════════════════════════════════════════════════ */

.pub-attach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.pub-attach-card {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border-strong);
  border-radius: var(--portal-radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pub-attach-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--portal-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pub-attach-meta { font-size: 11px; color: var(--portal-text-muted); }

.pub-attach-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

/* Form attachments (upload) */
.portal-attachment-list { display: flex; flex-direction: column; gap: 10px; }

.portal-attachment-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-file-input {
  flex: 1;
  border-radius: var(--portal-radius-md);
  border: 1px solid var(--portal-border-strong);
  background: var(--portal-surface);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--portal-text);
  outline: none;
}

.portal-file-input::file-selector-button {
  margin-right: 10px;
  border: 1px solid var(--portal-border-strong);
  background: var(--portal-surface);
  color: var(--portal-text);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--portal-duration-fast);
}

@media (hover: hover) {
  .portal-file-input::file-selector-button:hover { background: var(--portal-surface-soft); }
}

.portal-attachment-remove {
  border-radius: 999px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--portal-duration-fast);
}

@media (hover: hover) {
  .portal-attachment-remove:hover { background: rgba(254, 242, 242, 0.95); }
}

.portal-attachment-add {
  margin-top: 6px;
  border-radius: 999px;
  border: 1px solid var(--portal-border-strong);
  background: var(--portal-surface);
  color: var(--portal-text);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--portal-duration-fast), transform var(--portal-duration-fast);
}

@media (hover: hover) {
  .portal-attachment-add:hover { background: var(--portal-surface-soft); transform: translateY(-1px); }
}

/* ══════════════════════════════════════════════════════════════════════
   16. UNLOCK BOX
   ══════════════════════════════════════════════════════════════════════ */

.pub-unlock-box {
  background: var(--portal-surface-soft);
  border: 1px solid var(--portal-border-strong);
  border-radius: var(--portal-radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.pub-unlock-title { font-size: 14px; font-weight: 800; color: var(--portal-text); margin-bottom: 6px; }
.pub-unlock-hint { font-size: 13px; color: var(--portal-text-soft); margin-bottom: 14px; line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════════════
   17. EMPTY STATE
   ══════════════════════════════════════════════════════════════════════ */

.pub-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 40px 20px;
  color: var(--portal-text-muted);
}

.pub-empty-icon { width: 48px; height: 48px; opacity: 0.3; }
.pub-empty-title { font-size: 15px; font-weight: 800; color: var(--portal-text-soft); }
.pub-empty-sub { font-size: 13px; line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════════════
   18. ALERTS INLINE (pub context)
   ══════════════════════════════════════════════════════════════════════ */

.pub-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--portal-radius-md);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid;
}

.pub-alert--warn  { background: rgba(245, 158, 11, 0.07); border-color: rgba(245, 158, 11, 0.22); color: #92400e; }
.pub-alert--info  { background: rgba(37, 99, 235, 0.06); border-color: rgba(37, 99, 235, 0.18); color: #1e3a8a; }
.pub-alert--error { background: rgba(239, 68, 68, 0.07); border-color: rgba(239, 68, 68, 0.22); color: #991b1b; }

/* ══════════════════════════════════════════════════════════════════════
   19. DIVIDER WITHIN CARD
   ══════════════════════════════════════════════════════════════════════ */

.pub-divider { height: 1px; background: var(--portal-border-subtle); margin: 0 -24px; }

/* ══════════════════════════════════════════════════════════════════════
   20. RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {
  .pub-card-header { padding: 16px 16px 14px; }
  .pub-card-body   { padding: 18px 16px; }
  .pub-submit-bar  { padding: 16px; }
  .pub-hero        { padding: 36px 16px 30px; }
  .pub-lookup-form { flex-direction: column; }
  .pub-lookup-btn  { height: 48px; width: 100%; }
  .pub-manifest-banner { padding: 14px 16px; }
  .pub-divider     { margin: 0 -16px; }
}