:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface-2: #243044;
  --border: #2d3a4f;
  --text: #e8eef7;
  --muted: #9aabbf;
  --accent: #3d9cf0;
  --accent-hover: #5aaff5;
  --success: #3ecf8e;
  --danger: #f07178;
  --warn: #e6a23c;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: linear-gradient(160deg, #152033 0%, #0f1419 100%);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 0;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge-beta {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  line-height: 1.3;
}

.tagline {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
}

.tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.container {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.view.hidden,
.hidden {
  display: none !important;
}

.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.view-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.status {
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.pill.category {
  color: var(--accent);
  border-color: rgba(61, 156, 240, 0.35);
}

.pill.condition {
  color: var(--success);
  border-color: rgba(62, 207, 142, 0.35);
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.card-price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-seller {
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.card-seller a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.card-seller a:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.empty-state h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
  margin-inline: auto;
}

.listing-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}

@media (min-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--danger);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(61, 156, 240, 0.45);
  border-color: var(--accent);
}

.form-row textarea {
  resize: vertical;
  min-height: 6rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.form-message {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.form-message.ok {
  color: var(--success);
}

.form-message.err {
  color: var(--danger);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  appearance: none;
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #061018;
  border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
  max-width: 960px;
  margin-inline: auto;
}

.site-footer a {
  color: inherit;
}

.legal h1 { margin-top: 0; }
.legal h2 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal a, .form-note a { color: var(--accent); }

.site-footer code {
  font-size: 0.85em;
  background: var(--surface);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* --- Multi-image picker --- */
.field-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.image-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.image-picker input[type="file"] {
  display: block;
  font-size: 1rem;
  padding: 0.6rem;
  border: 2px dashed #9aa4b2;
  border-radius: 8px;
  background: #f7f9fc;
  cursor: pointer;
  width: 100%;
  max-width: 420px;
}

.file-btn {
  display: inline-block;
  cursor: pointer;
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.preview-thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.preview-remove:hover {
  background: var(--danger);
}

/* --- Browse card media --- */
.card-media {
  margin: -1.1rem -1.15rem 0.65rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--bg);
}

.card-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  color: var(--muted);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.card-primary-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.card-primary {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.photo-badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.card-thumbs {
  display: flex;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

.card-thumb-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
}

.card-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-thumb-btn:hover {
  border-color: var(--accent);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 4rem;
}

.lightbox.hidden {
  display: none !important;
}

.lightbox img {
  max-width: min(920px, 100%);
  max-height: min(80vh, 100%);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.lightbox-nav.prev {
  left: 0.75rem;
}

.lightbox-nav.next {
  right: 0.75rem;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-caption {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  text-align: center;
  color: #ccc;
  margin: 0;
  font-size: 0.9rem;
}

/* --- Buttons: danger --- */
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(240, 113, 120, 0.55);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger);
  color: #1a0507;
  border-color: var(--danger);
}

a.btn {
  display: inline-block;
  text-decoration: none;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.err-text {
  color: var(--danger);
}

/* --- Private manage link box (after publish) --- */
.manage-link-box {
  background: var(--surface);
  border: 1px solid rgba(62, 207, 142, 0.5);
  border-left: 4px solid var(--success);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.manage-link-kicker {
  margin: 0 0 0.25rem;
  color: var(--success);
  font-weight: 700;
}

.manage-link-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.copy-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 0.35rem;
}

.copy-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

/* --- Edit form photo controls --- */
.preview-thumb.is-new {
  border-color: rgba(61, 156, 240, 0.6);
}

.preview-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.preview-badge.new {
  background: var(--accent);
  color: #061018;
}

.preview-move {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.55);
}

.preview-move button {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0;
  cursor: pointer;
}

.preview-move button:hover:not(:disabled) {
  background: rgba(61, 156, 240, 0.6);
}

.preview-move button:disabled {
  opacity: 0.3;
  cursor: default;
}

.delete-confirm {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(240, 113, 120, 0.55);
  border-radius: 8px;
  background: rgba(240, 113, 120, 0.08);
}

.delete-confirm p {
  margin: 0 0 0.75rem;
}

/* --- Card contact buttons (qty + email icon + phone reveal / WhatsApp) --- */
.card-seller .seller-contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.card-seller .seller-contact-actions .btn {
  text-align: center;
  text-decoration: none;
}
.card-seller .seller-contact-actions .btn-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.75rem;
  line-height: 1;
}
.card-seller .seller-contact-actions .btn-icon-labeled {
  padding-inline: 0.9rem;
}
.card-seller .seller-contact-actions .btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: block;
}
.card-seller .seller-contact-actions .btn-icon-label {
  font-size: 0.9rem;
  font-weight: 600;
}
.card-seller .seller-contact-actions .btn-wa {
  flex: 1 1 auto;
  min-width: 6.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.card-seller .seller-contact-actions a.btn:hover {
  text-decoration: none;
}
.card-seller .seller-contact-actions a.btn-whatsapp,
.card-seller .seller-contact-actions a.btn-whatsapp:hover {
  color: #fff;
}
.card-seller .seller-contact-actions a.btn-call,
.card-seller .seller-contact-actions button.btn-call {
  color: var(--muted);
}
.card-seller .seller-contact-actions a.btn-call:hover,
.card-seller .seller-contact-actions button.btn-call:hover {
  color: var(--text);
}
.card-seller .seller-contact-actions .buyer-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface, #fff);
}
.card-seller .seller-contact-actions .buyer-qty-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.card-seller .seller-contact-actions .buyer-qty-input {
  width: 3.6rem;
  min-height: 34px;
  padding: 0.2rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  text-align: center;
  background: var(--bg, #fff);
  color: var(--text);
}
.card-seller .seller-contact-actions .phone-reveal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 auto;
  max-width: 100%;
}
.card-seller .seller-contact-actions .phone-revealed {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.card-seller .seller-contact-actions .phone-revealed.hidden {
  display: none !important;
}
.card-seller .seller-contact-actions .phone-revealed-num {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.card-seller .seller-contact-actions .phone-revealed-num:hover {
  text-decoration: underline;
}
.card-seller .seller-contact-actions .btn-copy-phone {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  min-height: 28px;
}
.card-seller .seller-contact-actions .btn-copy-phone:hover {
  color: var(--text);
}
.btn-whatsapp {
  background: #128c7e;
  color: #fff;
  border: 1px solid #0e6f64;
}
.btn-whatsapp:hover:not(:disabled) {
  background: #0e6f64;
  color: #fff;
}

@media (max-width: 380px) {
  .card-seller .seller-contact-actions .btn-wa {
    flex: 1 1 100%;
  }
  .card-seller .seller-contact-actions .buyer-qty {
    flex: 1 1 auto;
  }
}

/* --- Contact modal --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal.hidden {
  display: none !important;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.contact-success .form-message {
  font-size: 1rem;
  font-weight: 600;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}


/* Seller sign in tab — clearly visible in header on desktop and mobile */
.tab-seller {
  color: var(--accent);
  border: 1px solid rgba(61, 156, 240, 0.45);
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
  background: rgba(61, 156, 240, 0.08);
  margin-left: auto;
}
.tab-seller:hover {
  color: var(--text);
  background: rgba(61, 156, 240, 0.16);
}
.tab-seller.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(61, 156, 240, 0.14);
}
@media (max-width: 520px) {
  .tabs {
    flex-wrap: wrap;
  }
  .tab-seller {
    margin-left: 0;
    flex: 1 1 auto;
    text-align: center;
    border-radius: 8px;
    border-bottom: 1px solid rgba(61, 156, 240, 0.45);
    margin-bottom: 0.35rem;
  }
  .tab-seller.active {
    border-bottom-color: var(--accent);
  }
}

/* --- Seller sign in / My listings --- */
.signin-form {
  max-width: 520px;
}

.signin-form #signin-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  max-width: 12rem;
}

.mine-list {
  display: grid;
  gap: 0.75rem;
}

.mine-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.mine-thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
}

.mine-info {
  flex: 1;
  min-width: 0;
}

.mine-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.mine-info .field-hint {
  margin: 0.35rem 0 0.6rem;
}

.mine-actions .btn {
  padding: 0.45rem 0.9rem;
}

.notice-warn {
  margin: 0.4rem 0 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  color: var(--warn);
  border: 1px solid rgba(230, 162, 60, 0.5);
  border-radius: 8px;
  background: rgba(230, 162, 60, 0.08);
}

#manage-link-mine-note a {
  color: var(--accent);
}

@media (max-width: 520px) {
  .mine-item {
    flex-direction: column;
  }
  .mine-thumb {
    width: 100%;
    height: 160px;
    flex-basis: auto;
  }
  .tab {
    padding: 0.75rem 0.6rem;
  }
}

.listing-form [aria-invalid="true"] {
  border-color: #e5484d;
}

/* ---- Worldwide: location, currency, browse filters (v20261026b) ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.price-with-currency { display: flex; gap: 8px; }
.price-with-currency select { flex: 0 0 auto; width: auto; max-width: 9.5rem; }
.price-with-currency input { flex: 1 1 auto; min-width: 0; }
.price-cur-label { font-weight: 600; opacity: 0.75; }
.browse-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.browse-filters select, .browse-filters input { flex: 1 1 200px; max-width: 360px; padding: 8px 10px; font: inherit; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
.card-location { margin: 2px 0 6px; font-size: 0.92em; opacity: 0.85; }

/* --- Buyer email alerts box --- */
.alert-box { position: relative; margin: 4px 0 14px; padding: 14px 16px 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.alert-box-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.alert-box-head .field-hint { margin: 0; font-size: 0.88rem; color: var(--muted); }
.alert-box-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.alert-box-fields input, .alert-box-fields select { flex: 1 1 170px; min-width: 0; padding: 8px 10px; font: inherit; border: 1px solid #ccc; border-radius: 8px; background: #fff; }
.alert-box-fields input[aria-invalid="true"] { border-color: var(--danger, #c0392b); }
.alert-box-fields .btn { flex: 0 0 auto; }
.alert-box .form-message { margin: 8px 0 6px; }
