/* ==========================================================================
   HALAC ARTISTS — Mailing Directory (Clean, Content-First Design)
   Paleta oficial: Azul Petróleo #083948 | Creme Papel #F8F6F2 | Dourado #B8933F
   Pensado para leitura imediata, calma e sem ruído visual.
   ========================================================================== */

:root {
  --petrol: #083948;
  --petrol-dark: #052631;
  --petrol-soft: #104f63;
  --gold: #b8933f;
  --gold-light: #e7d5a8;
  --gold-bg: #faf5e8;
  --bg: #f8f6f2;
  --surface: #ffffff;
  --surface-alt: #f3f0e9;
  --border: #e2ddd2;
  --text: #1b2830;
  --text-muted: #56656f;
  --success: #1b6b46;
  --success-bg: #e7f4ee;
  --warn: #805206;
  --warn-bg: #fdf3dc;
  --danger: #a62626;
  --danger-bg: #fceaea;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(8, 57, 72, 0.05);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* Single compact sticky header (content-first-noise-reduction) */
.site-header {
  background: var(--petrol);
  color: #faf6ee;
  border-bottom: 2.5px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .header-inner {
    padding: 0.55rem 0.9rem 0.45rem;
    gap: 0.5rem;
  }
  .header-tabs {
    order: 3;
    width: 100%;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .header-tabs::-webkit-scrollbar { display: none; }
  .htab-btn {
    padding: 0.4rem 0.72rem;
    font-size: 0.88rem;
    min-height: 36px;
  }
  .brand-logo { height: 32px; }
  .brand-title { font-size: 1.08rem; }
}

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

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.brand-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: #faf6ee;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

/* Integrated Tabs right inside the single compact top bar */
.header-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
}

.htab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #d6e2e6;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.48rem 0.9rem;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.htab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.htab-btn[aria-selected="true"] {
  background: #ffffff;
  color: var(--petrol);
  font-weight: 700;
}

.htab-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #faf6ee;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
}

.htab-btn[aria-selected="true"] .htab-badge {
  background: var(--petrol);
  color: #ffffff;
}

.htab-dev {
  background: rgba(231, 213, 168, 0.22);
  color: #f3dfb0;
}

.htab-btn[aria-selected="true"] .htab-dev {
  background: #fdf3dc;
  color: #7c4f05;
}

/* 3-Language Switch: ES | EN | PT */
.lang-switch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(231, 213, 168, 0.35);
  border-radius: 999px;
  padding: 2px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #e4dfd4;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 32px;
}

.lang-btn[aria-pressed="true"] {
  background: var(--gold);
  color: #052631;
}

/* Main Container */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.15rem 1.25rem 2.5rem;
}

.tab-panel[hidden] { display: none; }

.panel-inner {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

/* Top Controls Bar (compact, clean, puts table immediately above the fold) */
.top-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.seg-btn {
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 0.48rem 0.9rem;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.seg-btn strong {
  font-size: 0.84rem;
  background: #ffffff;
  color: var(--petrol);
  padding: 0.08rem 0.48rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.seg-btn:hover {
  border-color: var(--petrol);
}

.seg-btn.active {
  background: var(--petrol);
  color: #ffffff;
  border-color: var(--petrol);
}

.seg-btn.active strong {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: transparent;
}

.seg-btn.seg-muted {
  color: var(--text-muted);
}

.search-row {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 270px) auto auto;
  gap: 0.6rem;
  align-items: center;
}

.search-row-macro {
  grid-template-columns: 1fr minmax(165px, 210px) minmax(185px, 240px) auto auto;
}

@media (max-width: 860px) {
  .search-row,
  .search-row-macro {
    grid-template-columns: 1fr 1fr;
  }
  .search-row .search-input,
  .search-row-macro .search-input {
    grid-column: 1 / -1;
  }
}

input[type="text"],
input[type="search"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 0.85rem;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: #ffffff;
  border: 1.5px solid #cbc4b6;
  border-radius: 8px;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(184, 147, 63, 0.35);
  border-color: var(--petrol);
}

/* Clean, Calm, Generously Spaced Directory Table */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: calc(100vh - 255px);
  min-block-size: 380px;
  container-type: inline-size;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.97rem;
}

table.data-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

table.data-table thead th {
  background: var(--surface-alt);
  color: var(--petrol);
  text-align: left;
  padding: 0.78rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.col-actions-head {
  text-align: right !important;
}

table.data-table tbody th,
table.data-table tbody td {
  padding: 0.85rem 1.05rem;
  border-bottom: 1px solid #efeae0;
  vertical-align: middle;
  text-align: left;
  overflow-wrap: anywhere;
}

table.data-table tbody tr:hover th,
table.data-table tbody tr:hover td {
  background: var(--gold-bg);
}

table.data-table tbody th {
  font-weight: 700;
  color: var(--petrol);
  font-size: 1rem;
}

.sub-line {
  display: block;
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.country-main {
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}

.email-btn-link {
  background: transparent;
  border: 0;
  padding: 0.2rem 0;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.92rem;
  color: var(--petrol-soft);
  text-align: left;
  cursor: pointer;
  word-break: break-all;
}

.email-btn-link:hover {
  color: var(--petrol-dark);
  text-decoration: underline;
}

.actions-btns {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

@container (width < 720px) {
  table.data-table, table.data-table thead, table.data-table tbody,
  table.data-table tr, table.data-table th, table.data-table td {
    display: block;
  }
  table.data-table thead { display: none; }
  table.data-table tbody tr {
    margin: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
  }
  table.data-table tbody th {
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
  }
  table.data-table tbody td {
    padding: 0.5rem 0.9rem;
    border-bottom: 1px solid #f2eee6;
  }
  table.data-table tbody td:last-child { border-bottom: 0; }
  .actions-btns { justify-content: flex-start; }
}

/* Bottom Bar */
.bottom-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.15rem 0.2rem;
}

.result-count {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--petrol);
}

.pager-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill-orch { background: #e6f0f3; color: #083948; }
.pill-cam { background: #f4ebd5; color: #6e4e0c; }
.pill-op { background: #efe6f5; color: #562878; }
.pill-fest { background: #e5f2ea; color: #195d3e; }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-ok { background: var(--success-bg); color: var(--success); }
.pill-dev { background: var(--warn-bg); color: var(--warn); border: 1px solid #e2be6c; }

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm {
  min-height: 36px;
  padding: 0.3rem 0.72rem;
  font-size: 0.84rem;
}

.btn-primary { background: var(--petrol); color: #ffffff; }
.btn-primary:hover { background: var(--petrol-soft); }

.btn-secondary { background: #ffffff; color: var(--petrol); border-color: var(--petrol); }
.btn-secondary:hover { background: var(--surface-alt); }

.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Artist Tab */
.dev-strip {
  background: #fdf6e6;
  border: 1px solid #e2be6c;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.93rem;
  color: #513708;
  font-weight: 600;
}

.artist-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--petrol);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.38rem 0.8rem;
  min-height: 36px;
  border-radius: 999px;
  cursor: pointer;
}

.chip:hover { border-color: var(--petrol); }
.chip.active { background: var(--petrol); color: #ffffff; border-color: var(--petrol); }

.artist-selects {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 0.6rem;
  align-items: center;
}

@media (max-width: 720px) {
  .artist-selects { grid-template-columns: 1fr; }
}

.rule-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--petrol);
  border-radius: 10px;
  padding: 0.85rem 1.05rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.rule-banner.has-block {
  border-left-color: var(--danger);
  background: #fffaf5;
}

.rule-banner h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--petrol);
}

.block-alert {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #f0b8b8;
  padding: 0.32rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Sending Tab (In Development) */
.sending-wrap { max-width: 960px; }

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

.card-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--petrol);
}

.card-desc {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.roadmap-hero { border-top: 4px solid var(--gold); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
}

.status-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.status-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--petrol);
}

.status-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Accessible <details> Disclosure */
.disclosure-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.disclosure-box > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--petrol);
  cursor: pointer;
}

.disclosure-box > summary::-webkit-details-marker { display: none; }

.disclosure-box > summary::before {
  content: "";
  inline-size: 0.55rem;
  block-size: 0.55rem;
  flex-shrink: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.disclosure-box[open] > summary::before { transform: rotate(45deg); }

@media (prefers-reduced-motion: no-preference) {
  .disclosure-box > summary::before { transition: transform 0.2s ease; }
  .disclosure-box::details-content {
    transition: block-size 0.25s ease-in-out, content-visibility 0.25s ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.disclosure-box::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.disclosure-box:not([open])::details-content { block-size: 0; }

.disclosure-body {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.65rem;
}

.batch-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Modal */
dialog.modal {
  width: min(600px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2.5rem);
  overflow: auto;
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 18px 50px rgba(5, 38, 49, 0.28);
  background: var(--surface);
}

dialog.modal::backdrop { background: rgba(5, 38, 49, 0.55); }

.modal-header {
  background: var(--petrol);
  color: #faf6ee;
  padding: 0.9rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.modal-close {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field label { font-size: 0.86rem; font-weight: 700; color: var(--petrol); }

.form-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

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

.error-msg {
  display: none;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 600;
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--danger);
  background: var(--danger-bg);
}

:is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) + .error-msg {
  display: block;
}

.modal-footer {
  padding: 0.9rem 1.15rem;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.history-meta { font-size: 0.84rem; color: var(--text-muted); }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 90;
  background: var(--petrol-dark);
  color: #faf6ee;
  border-left: 5px solid var(--gold);
  padding: 0.8rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(5, 38, 49, 0.25);
}

.toast[hidden] { display: none; }

/* ==========================================================================
   ARTWORKS VALIDATION GALLERY — Clean 2-Tier Intuitive Navigation
   ========================================================================== */
.art-header-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.art-campaign-bar {
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #ece7dc;
}

.art-campaign-field {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1 1 320px;
  max-width: 540px;
}

.art-field-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.art-campaign-select {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--petrol);
  background: var(--bg);
  border: 1.5px solid #d5cebf;
  border-radius: 9px;
  padding: 0.45rem 0.85rem;
  min-height: 42px;
  cursor: pointer;
}

.sync-dot {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.sync-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b79c5a;
}

.sync-dot.is-cloud { color: var(--success); }
.sync-dot.is-cloud::before { background: var(--success); }

/* Clean Classic Underlined Tabs (Zero Pill Soup!) */
.art-underline-tabs {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
  padding: 0 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fcfbf9;
}

.art-underline-tabs::-webkit-scrollbar { display: none; }

.utab-btn {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.8rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 3px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.utab-btn:hover { color: var(--petrol); }

.utab-btn[aria-selected="true"] {
  color: var(--petrol);
  font-weight: 700;
  border-bottom-color: var(--petrol);
}

.utab-cnt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #ece8de;
  padding: 0.08rem 0.46rem;
  border-radius: 999px;
}

.utab-btn[aria-selected="true"] .utab-cnt {
  background: rgba(8, 57, 72, 0.12);
  color: var(--petrol);
}

/* Quiet Lightweight Toolbar Below Card */
.art-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.1rem 0.15rem;
}

.art-stage-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.art-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-left: auto;
}

.art-ctrl-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.art-ctrl-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.seg-mini {
  display: inline-flex;
  background: #ece8de;
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}

.seg-mini-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  min-height: 32px;
  border-radius: 7px;
  cursor: pointer;
}

.seg-mini-btn.active {
  background: var(--surface);
  color: var(--petrol);
  box-shadow: 0 1px 3px rgba(8, 57, 72, 0.14);
}

.art-mini-select {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  padding: 0.32rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--petrol);
  background: var(--surface);
  border: 1.5px solid #d5cebf;
  border-radius: 8px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .art-campaign-bar { padding: 0.75rem 0.85rem; }
  .art-campaign-field { flex-direction: column; align-items: stretch; gap: 0.3rem; flex-basis: 100%; }
  .art-campaign-select { font-size: 0.98rem; }
  .utab-btn { padding: 0.72rem 0.75rem; font-size: 0.88rem; }
  .art-toolbar { flex-direction: column; align-items: stretch; }
  .art-toolbar-controls { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .art-ctrl-group { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .art-mini-select { width: 100%; min-width: 0; }
  .seg-mini { width: 100%; }
  .seg-mini-btn { flex: 1; text-align: center; }
}

.art-groups-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.art-option-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.art-option-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--border);
}

.art-option-heading h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--petrol);
}

.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 1rem;
}

.art-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.art-card.st-approved { border-color: var(--success); box-shadow: 0 0 0 2px rgba(27, 107, 70, 0.12); }
.art-card.st-adjust { border-color: #d4962a; box-shadow: 0 0 0 2px rgba(212, 150, 42, 0.14); }
.art-card.st-discarded { opacity: 0.62; }

.art-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0.65rem;
  background: #ece8df;
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.art-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.art-status-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.art-status-badge.pending { background: #ffffff; color: var(--petrol); }
.art-status-badge.approved { background: var(--success); color: #ffffff; }
.art-status-badge.adjust { background: #c47d0e; color: #ffffff; }
.art-status-badge.discarded { background: #5a6770; color: #ffffff; }

.art-card-body {
  padding: 0.8rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.art-card-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--petrol);
  line-height: 1.3;
}

.art-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.art-pdf-link {
  color: var(--petrol-soft);
  font-weight: 700;
  text-decoration: none;
}

.art-pdf-link:hover { text-decoration: underline; }

.art-note-box {
  background: var(--warn-bg);
  border-left: 3px solid #c47d0e;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  color: #4f3406;
  line-height: 1.4;
}

.art-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.4rem;
  padding-top: 0.25rem;
}

.btn-approve {
  background: var(--success-bg);
  color: var(--success);
  border-color: #9dd4b8;
}
.btn-approve:hover,
.btn-approve.is-on {
  background: var(--success);
  color: #ffffff;
  border-color: var(--success);
}

.btn-adjust {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: #e4c17a;
}
.btn-adjust:hover,
.btn-adjust.is-on {
  background: #c47d0e;
  color: #ffffff;
  border-color: #c47d0e;
}

.btn-discard {
  background: var(--surface-alt);
  color: var(--text-muted);
  border-color: var(--border);
  padding-inline: 0.65rem;
}
.btn-discard:hover,
.btn-discard.is-on {
  background: #5a6770;
  color: #ffffff;
  border-color: #5a6770;
}

/* Lightbox Modal */
dialog.modal-lightbox {
  width: min(920px, calc(100vw - 2rem));
}

.lb-sub {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-top: 0.15rem;
}

.lb-body {
  background: #17232a;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 70dvh;
  overflow: auto;
}

.lb-body img {
  max-width: 100%;
  max-height: 65dvh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
}

.lb-footer {
  justify-content: space-between;
}

.macro-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 0.35rem;
}

.art-groups-wrap.art-concepts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.15rem; align-items: start; }
.art-concepts .art-grid { display: block; }
.art-concepts .art-option-heading h3 { font-size: 1.05rem; }
.art-concepts .art-thumb-btn img { aspect-ratio: 4 / 5; object-fit: contain; width: 100%; height: auto; }
[hidden] { display: none !important; }
