/* ==========================================================================
   Gestão Marketing: estilos base.
   Todas as cores, raios e sombras ficam nas variáveis abaixo, para que o
   redesenho visual (próxima etapa) seja só trocar esses valores e refinar.
   ========================================================================== */

:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --text: #1c2230;
  --muted: #667085;
  --border: #e2e5ec;
  --accent: #1b2a9c;
  --hdr: #001b89;
  --gold: #ba8542;
  --hdr-2: #00126b;
  --accent-soft: #e8ebfa;
  --accent-text: #ffffff;
  --danger: #c4311f;
  --danger-soft: #fdecea;
  --warn: #a16207;
  --warn-soft: #fef3c7;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.18);
  --topbar-h: 56px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
#app { height: 100%; display: flex; flex-direction: column; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- controles ---------- */
input, select, textarea, button { font: inherit; color: inherit; }
input:not([type='checkbox']), select, textarea {
  width: 100%;
  padding: 9px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
textarea { resize: vertical; min-height: 44px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.select-sm { padding: 5px 8px; font-size: 13px; width: auto; max-width: 100%; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); border-color: var(--danger-soft); background: var(--danger-soft); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; text-align: left; }
.link:hover { color: var(--accent); text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 4px; }
.field > label { display: flex; flex-direction: column; gap: 4px; }
.field-label { font-size: 13px; font-weight: 600; }
.field-hint { font-size: 12px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.form-error { color: var(--danger); font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }
.notice { padding: 10px 12px; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: 13px; }

/* ---------- etiquetas ---------- */
.pill, .tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  white-space: nowrap;
}
.pill.st-novo { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.pill.st-em_andamento { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.pill.st-aguardando { background: #cffafe; border-color: transparent; color: #0e7490; }
.pill.st-concluido { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.tag.prio-alta { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.tag.prio-urgente { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.tag.team { background: var(--accent-soft); border-color: transparent; color: var(--accent); margin-left: 6px; }
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 700;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px;
}
.avatar.xs { width: 24px; height: 24px; font-size: 10.5px; }

/* ---------- login ---------- */
.auth { flex: 1; display: grid; place-items: center; padding: 20px; }
.auth-card {
  width: 100%; max-width: 460px; padding: 28px;
  background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px;
}
.auth-sub { color: var(--muted); margin-top: -8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-lg { font-size: 20px; }
.logo {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800;
}
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.tab { flex: 1; padding: 8px 10px; background: none; border: 0; border-radius: 5px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tabs.small .tab { padding: 6px 8px; font-size: 13px; }

/* ---------- barra superior ---------- */
.topbar {
  flex: none; height: var(--topbar-h); display: flex; align-items: center; gap: 14px;
  padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.nav { display: flex; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px;
  border-radius: var(--radius-sm); font-weight: 600; color: var(--muted);
}
.nav-link:hover { background: var(--surface-2); }
.nav-link.active { background: var(--accent-soft); color: var(--accent); }
.user { display: flex; align-items: center; gap: 10px; }
.user-info { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; }
.user-info span { color: var(--muted); font-size: 12px; }
.banner { flex: none; padding: 9px 16px; background: var(--warn-soft); color: var(--warn); font-size: 13px; text-align: center; }

.main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.main-quadro, .main-equipe { overflow: auto; }

/* ---------- chat ---------- */
.split { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr; }
.split-list { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-right: 1px solid var(--border); }
.list-head { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-bottom: 1px solid var(--border); }
.list { flex: 1; overflow-y: auto; }
.item { display: block; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.item:hover { background: var(--surface-2); }
.item.active { background: var(--accent-soft); }
.item-top { display: flex; justify-content: space-between; gap: 8px; }
.item-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-top time { color: var(--muted); font-size: 12px; flex: none; }
.item-meta { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.item-preview { margin-top: 4px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-bottom { display: flex; align-items: center; gap: 6px; margin-top: 7px; }

.chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.chat-head {
  display: flex; align-items: flex-start; gap: 14px; padding: 12px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.back { display: none; font-size: 22px; line-height: 1; padding: 4px 6px; }
.head-main { flex: 1; min-width: 220px; }
.head-main h2 { font-size: 17px; }
.head-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.head-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.assignee { font-size: 13px; color: var(--muted); }

.messages { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.day, .sys { display: flex; justify-content: center; }
.day span { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; text-transform: capitalize; }
.sys span { font-size: 12.5px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 4px 12px; text-align: center; max-width: 80%; }
.msg { display: flex; flex-direction: column; max-width: min(620px, 82%); }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; }
.msg-author { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 4px 2px; }
.bubble { padding: 9px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--border); }
.msg.mine .bubble { background: var(--accent); border-color: var(--accent); color: var(--accent-text); border-bottom-right-radius: 4px; }
.msg.theirs .bubble { border-bottom-left-radius: 4px; }
.msg time { font-size: 11px; color: var(--muted); margin: 2px 4px 0; }

.chat-foot { flex: none; background: var(--surface); border-top: 1px solid var(--border); }
.composer { display: flex; gap: 10px; padding: 12px 16px; align-items: flex-end; }
.composer textarea { flex: 1; }
.readonly { padding: 14px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px; color: var(--muted); text-align: center; }
.empty.small { flex: none; padding: 20px; font-size: 13px; }
.empty-icon { font-size: 36px; }

/* ---------- páginas (quadro / equipe) ---------- */
.page { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-height: 0; flex: 1; }
.page.narrow { max-width: 1000px; width: 100%; margin: 0 auto; flex: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[type='search'] { width: 200px; padding: 5px 9px; font-size: 13px; }

.board { flex: 1; min-height: 360px; display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.column { background: #eceef3; border-radius: var(--radius); padding: 10px; border-top: 3px solid var(--border); min-height: 200px; }
.column.st-novo { border-top-color: var(--accent); }
.column.st-em_andamento { border-top-color: #d97706; }
.column.st-aguardando { border-top-color: #0891b2; }
.column.st-concluido { border-top-color: var(--ok); }
.column.drop { outline: 2px dashed var(--accent); background: var(--accent-soft); }
.column-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.count { background: var(--surface); border-radius: 999px; padding: 1px 9px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cards { display: flex; flex-direction: column; gap: 8px; }
.card { background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; box-shadow: var(--shadow); border-left: 4px solid transparent; display: flex; flex-direction: column; gap: 4px; }
.card[draggable='true'] { cursor: grab; }
.card.dragging { opacity: 0.45; }
.card.prio-bar-alta { border-left-color: #d97706; }
.card.prio-bar-urgente { border-left-color: var(--danger); }
.card-title { font-weight: 600; }
.card-title:hover { color: var(--accent); }
.card-meta { font-size: 12.5px; color: var(--muted); }
.card-foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.card-move { margin-top: 6px; width: 100%; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.panel.highlight { border-color: var(--warn); background: #fffdf5; }
.row-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr.inactive td { opacity: 0.55; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { max-width: 320px; }

/* ---------- janelas e avisos ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 14px; box-shadow: var(--shadow-lg); width: min(520px, calc(100vw - 24px)); color: var(--text); }
dialog.modal::backdrop { background: rgba(16, 24, 40, 0.45); }
.modal-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { padding: 10px 14px; background: var(--text); color: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); max-width: 340px; font-size: 14px; }
.toast.error { background: var(--danger); }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .brand-name, .user-info { display: none; }
  .topbar { gap: 8px; padding: 0 10px; }
  .split { grid-template-columns: 1fr; }
  .split .chat { display: none; }
  .split.has-selection .split-list { display: none; }
  .split.has-selection .chat { display: flex; }
  .back { display: inline-block; }
  .msg { max-width: 92%; }
  .row2 { grid-template-columns: 1fr; }
  .page { padding: 12px; }
  .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .column { scroll-snap-align: start; }
  .filters input[type='search'] { width: 100%; }
}


/* ==========================================================================
   Etapa 2: cabeçalho em duas linhas e telas novas
   ========================================================================== */

.site-header { flex: none; background: var(--hdr); color: #fff; }
.hdr-top { display: flex; align-items: center; gap: 18px; padding: 10px 24px; }
.site-header .brand { color: #fff; font-size: 20px; letter-spacing: -0.01em; }
.site-header .brand-name { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); }
.site-header .check { color: #fff; }
.hdr-nav { display: flex; align-items: stretch; gap: 18px; padding: 0 24px; background: var(--hdr-2); }
.whoami { display: flex; align-items: center; gap: 10px; padding: 9px 0; flex: none; }
.whoami small { display: block; font-size: 12px; opacity: 0.85; line-height: 1.1; }
.whoami strong { display: block; font-size: 14px; line-height: 1.25; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr { width: 1px; background: rgba(255, 255, 255, 0.28); margin: 9px 0; flex: none; }
.hdr-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.hdr-tabs::-webkit-scrollbar { display: none; }
.hdr-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 16px;
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase;
  white-space: nowrap; border-bottom: 3px solid transparent; opacity: 0.9;
}
.hdr-tab:hover { background: rgba(255, 255, 255, 0.1); opacity: 1; }
.hdr-tab.active { border-bottom-color: #ba8542; opacity: 1; }
.hdr-tab .badge { background: #d6f23a; color: #1c2230; }

.access { position: relative; }
.access-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px;
  background: none; border: 0; border-radius: var(--radius-sm); color: #fff; cursor: pointer; font-weight: 700;
}
.access-btn:hover { background: rgba(255, 255, 255, 0.12); }
.access-btn:focus-visible { outline-color: #fff; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; padding: 6px;
  background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.menu[hidden] { display: none; }
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; width: 100%;
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; text-align: left; font-weight: 500;
}
.menu a:hover, .menu button:hover { background: var(--accent-soft); }
.icon { flex: none; }

/* ---------- peças gerais novas ---------- */
.btn.lg { padding: 12px 20px; font-size: 16px; }
.btn.primary .icon { margin-right: 2px; }
.gap-lg { gap: 22px; }
.text-danger { color: var(--danger); font-weight: 600; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sr, .chip input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.page.narrow.wide { max-width: 1200px; }
.main-solicitar, .main-minhas, .main-organizacao, .main-metricas, .main-equipe, .main-meu-acesso { overflow: auto; }

/* ---------- Solicitar ---------- */
.solicitar-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; max-width: 1180px; width: 100%; margin: 0 auto; align-items: start; flex: none; }
.solicitar-card { padding: 26px; gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 999px;
  background: var(--surface); font-weight: 600; font-size: 14px;
}
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.segmented { display: inline-flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.seg { position: relative; cursor: pointer; }
.seg span { display: block; padding: 8px 16px; font-weight: 600; font-size: 14px; border-right: 1px solid var(--border); }
.seg:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg-urgente input:checked + span { background: var(--danger); }
.assign-banner { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm); font-size: 14px; }
.assign-banner.warn { background: var(--warn-soft); color: var(--warn); }
.recent h2 { margin-bottom: 2px; }
.recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.recent-list li { padding: 12px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.recent-top { display: flex; justify-content: space-between; gap: 8px; width: 100%; align-items: flex-start; }
.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 10px; }
.success-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.success .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- Minhas Solicitações ---------- */
.table-requests td { vertical-align: top; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; border-bottom: 0; }
.actions-cell .btn { gap: 5px; }
.actions-cell .badge { margin-left: 2px; }

/* ---------- detalhes do pedido ---------- */
dialog.modal.wide { width: min(760px, calc(100vw - 24px)); }
.drawer { padding: 22px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 40px); overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.drawer-head h2 { font-size: 19px; }
.drawer-title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.info dt { font-size: 12px; color: var(--muted); }
.info dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.history summary { cursor: pointer; font-weight: 600; }
.history ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.history time { font-weight: 600; }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.card-title { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font: inherit; font-weight: 600; }

/* ---------- Métricas ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.kpi-value { font-size: 28px; font-weight: 800; line-height: 1.1; }
.kpi-label { color: var(--muted); font-size: 13px; margin-top: 4px; }
.kpi-hint { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.kpi.danger .kpi-value { color: var(--danger); }
.insights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.insight { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 4px solid var(--border); }
.insight.danger { background: var(--danger-soft); border-left-color: var(--danger); }
.insight.warn { background: var(--warn-soft); border-left-color: #d97706; }
.insight.info { background: var(--accent-soft); border-left-color: var(--accent); }
.insight.ok { background: var(--ok-soft); border-left-color: var(--ok); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.bar-created { fill: var(--accent); }
.bar-closed { fill: #16a34a; }
.legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot.created { background: var(--accent); }
.dot.closed { background: #16a34a; margin-left: 8px; }
.status-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.status-box { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--radius-sm); border-top: 3px solid var(--border); background: var(--surface-2); }
.status-box strong { font-size: 24px; }
.status-box span { color: var(--muted); font-size: 13px; }
.status-box.st-novo { border-top-color: var(--accent); }
.status-box.st-em_andamento { border-top-color: #d97706; }
.status-box.st-aguardando { border-top-color: #0891b2; }
.status-box.st-concluido { border-top-color: var(--ok); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.table-metrics th:not(:first-child), .table-metrics td:not(:first-child) { text-align: right; white-space: nowrap; }
.bar-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bar { width: 90px; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.bar span { display: block; height: 100%; width: var(--w, 0); background: var(--accent); }

/* ---------- Equipe: abas extras ---------- */
.perms { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }

@media (max-width: 960px) {
  .solicitar-grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hdr-top { padding: 8px 12px; gap: 10px; }
  .hdr-nav { padding: 0 12px; gap: 10px; }
  .whoami strong { max-width: 130px; font-size: 13px; }
  .hdr-tab { padding: 0 11px; font-size: 13px; }
  .access-btn span { display: none; }
  .brand-name { display: inline; font-size: 16px; }
  .availability { font-size: 12px; }
  .solicitar-card { padding: 16px; }
  .drawer { padding: 16px; }
  /* tabela de pedidos vira lista de cartões no celular */
  .table-requests thead { display: none; }
  .table-requests, .table-requests tbody, .table-requests tr, .table-requests td { display: block; width: 100%; }
  .table-requests tr { padding: 12px; border-bottom: 1px solid var(--border); }
  .table-requests td { border: 0; padding: 3px 0; }
  .table-requests td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: 12px; }
  .table-requests td[data-label='Pedido']::before { content: ''; }
  .actions-cell { justify-content: flex-start; padding-top: 8px !important; }
}

/* logo do Grupo Real: versão clara no cabeçalho escuro, colorida nas telas claras */
.logo-img { display: block; height: 34px; width: auto; flex: none; }
.brand-lg .logo-img { height: 56px; }
.auth-card .brand-lg { justify-content: center; }
@media (max-width: 760px) { .site-header .logo-img { height: 28px; } }
.auth-title { text-align: center; font-size: 20px; margin-top: -4px; }

/* ---------- Minhas Tarefas: cartões ---------- */
.card-step { margin-top: 6px; align-self: stretch; justify-content: center; text-align: center; }
.card-flag { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; padding: 6px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); margin-top: 2px; }
.card-flag .icon { flex: none; margin-top: 1px; }
.card-flag.ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.card-flag.warn { background: var(--warn-soft); color: var(--warn); font-weight: 600; }

/* ---------- Minhas Solicitações: pedido com andamento ---------- */
.req-list { display: flex; flex-direction: column; gap: 14px; }
.req-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.req-card.needs-you { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.req-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.req-title .link { font-size: 16px; font-weight: 700; text-align: left; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.stepper li::before { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper .dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: grid; place-items: center; color: #fff; }
.stepper li.done::before, .stepper li.now::before { background: var(--accent); }
.stepper li.done .dot { background: var(--accent); border-color: var(--accent); }
.stepper li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stepper li.now .lbl { color: var(--text); font-weight: 700; }
.req-status { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.req-status.tone-em_andamento { background: var(--warn-soft); color: var(--warn); }
.req-status.tone-aguardando { background: #cffafe; color: #0e7490; }
.req-status.tone-concluido { background: var(--ok-soft); color: var(--ok); }
.approval { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.approval-q { margin: 0; font-weight: 600; }
.approval-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.approval-btns .btn { padding: 10px 18px; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; font-weight: 600; }
.btn.ok:hover { filter: brightness(0.93); }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 12px; }

/* ---------- Chat: aviso do designer e status ---------- */
.ack-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; background: var(--warn-soft); color: var(--text); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ack-banner .ack-text { min-width: 0; flex: 1 1 240px; }
.status-ctl { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .stepper li { font-size: 11px; } .approval-btns .btn { flex: 1 1 140px; justify-content: center; } }

/* ---------- abas por designer (administrador) ---------- */
.tabs.scroll { overflow-x: auto; scrollbar-width: thin; }
.tabs.scroll .tab { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tab .count { font-size: 11px; background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 1px 7px; }
.tab.active .count { background: var(--accent); color: #fff; }
.scope-tabs { align-self: flex-start; }

/* ==========================================================================
   Etapa 4: foto de perfil, anexos de inspiração, avisos, recuperação de senha
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.label-file:focus-within, label.btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.center { align-self: center; text-align: center; }
.stack.tight { gap: 6px; }
.who { display: flex; align-items: center; gap: 10px; }

/* círculo com foto (ou iniciais) */
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }
.avatar.md { width: 40px; height: 40px; font-size: 15px; }
.avatar.xl { width: 96px; height: 96px; font-size: 32px; }
.whoami-avatar .avatar { background: rgba(255, 255, 255, 0.16); color: #fff; border: 2px solid var(--gold, #ba8542); }
.msg-author { display: flex; align-items: center; gap: 6px; }
.msg.mine .msg-author { justify-content: flex-end; }
.photo-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* botão só com ícone */
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; flex: none; }
.icon-btn:hover { background: rgba(127, 127, 127, 0.18); }
.site-header .icon-btn { color: #fff; }
.icon-btn.muted { opacity: 0.45; }
.icon-btn:focus-visible { outline: 2px solid var(--gold, #ba8542); outline-offset: 2px; }

/* inspiração */
.inspo { display: flex; flex-direction: column; gap: 8px; }
.inspo-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inspo-actions .inline-form { min-width: 240px; }
.inspo-actions .inline-form input { max-width: none; flex: 1; min-width: 0; }
.inspo-list, .inspo-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.inspo-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.inspo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.inspo-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.inspo-item.media { flex-direction: column; align-items: stretch; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px; }
.inspo-media { display: block; width: 100%; max-height: 180px; object-fit: cover; border-radius: 4px; background: #000; }
.inspo-cap { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.inspo-box { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.inspo-box .inspo-grid li:not(.media) { grid-column: 1 / -1; }

/* avisos */
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.auth-h2 { margin: 0; font-size: 18px; }
.temp-pass { display: block; padding: 12px; font-size: 18px; letter-spacing: 0.04em; background: var(--surface-2); border: 1px dashed var(--border); border-radius: var(--radius-sm); user-select: all; word-break: break-all; }
.team-audit td { font-size: 12px; }

/* ==========================================================================
   Etapa 5: sino de notificações, mídia e áudio no chat, Configurações
   ========================================================================== */
.bell-wrap { position: relative; }
.bell { position: relative; }
.bell-badge { position: absolute; top: 0; right: 0; min-width: 17px; height: 17px; font-size: 11px; padding: 0 4px; }
.bell-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(380px, calc(100vw - 24px));
  max-height: min(70vh, 560px); overflow-y: auto; padding: 14px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 14px;
}
.bell-panel[hidden] { display: none; }
.bell-section h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.bell-item { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.bell-who .tag { margin-left: 6px; }
.bell-actions { display: flex; gap: 8px; }
.bell-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bell-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.bell-list time { flex: none; }
.bell-sound { padding-top: 4px; border-top: 1px solid var(--border); color: var(--text, #1f2937); }
.site-header .bell-panel .check { color: var(--text, #1f2937); }

/* composer do chat: anexar, escrever, gravar, enviar */
.composer-wrap { display: flex; flex-direction: column; gap: 8px; }
.composer { align-items: flex-end; }
.composer[hidden], .rec-bar[hidden] { display: none; }
.btn.icon-only { padding: 0; width: 40px; height: 40px; justify-content: center; flex: none; }
.rec-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); font-weight: 600; }
.rec-bar .btn { color: var(--text); }
.rec-bar .btn.primary { color: #fff; background: var(--accent); }
.rec-bar .btn.primary svg { color: #fff; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: rec-pulse 1s ease-in-out infinite; }
@keyframes rec-pulse { 50% { opacity: 0.25; } }
.rec-time { font-variant-numeric: tabular-nums; }
.bubble.media { padding: 6px; background: transparent; border-color: transparent; }
.msg.mine .bubble.media { background: transparent; border-color: transparent; }
.chat-media { display: block; max-width: min(320px, 100%); max-height: 300px; border-radius: 10px; background: #000; object-fit: cover; }
.chat-audio { width: min(300px, 100%); height: 40px; }

/* Configurações */
.perm-table th, .perm-table td { white-space: nowrap; }
.perm-table td:first-child { white-space: normal; min-width: 220px; }
.perm-table .center-cell { text-align: center; }
.perm-table tr.group-row th { text-align: left; background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.perm-actions { margin-top: 12px; }
.tab .count { margin-left: 6px; }

/* ---- etapa 6: Minha Agenda ---- */
.head-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.head-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.agenda .tabs { align-self: flex-start; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.cal-card, .cal-side, .note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cal-nav h2 { flex: 1; margin: 0; font-size: 18px; text-align: center; }
.cal-nav h2::first-letter { text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week { margin-bottom: 4px; text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cal-empty { min-height: 64px; }
.cal-day { position: relative; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.cal-day:hover { border-color: var(--accent); background: var(--accent-soft); }
.cal-day.past .n { color: var(--muted); }
.cal-day.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); font-weight: 700; }
.cal-day.has { background: var(--accent-soft); }
.cal-day .dot { align-self: flex-end; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-text); font-size: 12px; line-height: 20px; text-align: center; }
.cal-day .dot.done { background: var(--ok); }
.cal-side h2 { margin: 0 0 8px; font-size: 16px; }
.rem-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rem-list li { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; font-size: 14px; overflow-wrap: anywhere; }
.rem-list li.done span { text-decoration: line-through; color: var(--muted); }
.rem-list .link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; flex: none; }
.rem-list.edit li { padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); align-items: center; }
.agenda-modal { display: flex; flex-direction: column; gap: 10px; min-width: min(420px, 80vw); }
.agenda-modal textarea, .agenda-modal input[type=text] { width: 100%; box-sizing: border-box; }
.notes { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.notes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.note { display: flex; flex-direction: column; gap: 8px; }
.note h3 { margin: 0; font-size: 16px; }
.note-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.note-actions { display: flex; gap: 8px; margin-top: auto; }
.bell-go { margin-left: 8px; }
@media (max-width: 760px) {
  .cal-layout { grid-template-columns: minmax(0, 1fr); }
  .cal-day, .cal-empty { min-height: 48px; padding: 4px; }
}
@media (max-width: 520px) {
  .site-header .brand-name { display: none; }
  .hdr-top { gap: 8px; }
  .availability { font-size: 11px; max-width: 92px; line-height: 1.15; }
}

/* ---- etapa 7 ---- */
.chart .line { stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .pt { stroke: var(--surface); stroke-width: 1.5; }
.ser-0 { stroke: #1b2a9c; fill: #1b2a9c; background: #1b2a9c; }
.ser-1 { stroke: #ba8542; fill: #ba8542; background: #ba8542; }
.ser-2 { stroke: #0f9d6e; fill: #0f9d6e; background: #0f9d6e; }
.ser-3 { stroke: #c4311f; fill: #c4311f; background: #c4311f; }
.ser-4 { stroke: #7c3aed; fill: #7c3aed; background: #7c3aed; }
.ser-5 { stroke: #0891b2; fill: #0891b2; background: #0891b2; }
.chart polyline.line { fill: none; }
.legend-agents { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.legend-agents li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.report-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.report-row select { min-width: 220px; }
.item .who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.head-direct { display: flex; align-items: center; gap: 12px; }
.head-direct h2 { margin: 0; }
.list-head .btn.small { align-self: flex-start; }
.deadline-table input[type=number] { width: 76px; }
.tag.late { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.bell-lines { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.bell-list li { flex-wrap: wrap; }
.bell-list li > span { flex: 1 1 200px; min-width: 0; }
.due-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bell-lines li { display: block; }

/* prazo de cada prioridade dentro do botão */
.seg span { text-align: center; }
.seg-days { display: block; font-weight: 500; font-size: 12px; opacity: .8; margin-top: 2px; min-height: 1em; }
.seg-days:empty { display: none; }
@media (max-width: 520px) { .segmented { width: 100%; } .seg { flex: 1; } .seg span { padding: 8px 6px; } }

/* arte pronta para aprovação */
.art-block { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.art-block h4 { margin: 0; font-size: 14px; }
.art-img { max-height: 320px; object-fit: contain; background: var(--surface-2); }
.art-box { border-top: 3px solid var(--accent); padding-top: 10px; }

/* anexar arte logo abaixo do cartão em "Aguardando aprovação" */
.card-wrap { display: flex; flex-direction: column; }
.card-wrap > .card { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.art-panel { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--accent); border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-size: 13px; min-width: 0; }
.art-zone { border: 1.5px dashed var(--border-strong, var(--border)); border-radius: var(--radius-sm); padding: 12px 8px; text-align: center; color: var(--muted); background: var(--surface-2); cursor: text; font-size: 12.5px; }
.art-zone:focus, .art-zone.over { outline: none; border-color: var(--accent); background: var(--accent-soft, var(--surface-2)); color: var(--fg, inherit); }
.art-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.art-row .inline-form { min-width: 140px; }
.art-row .inline-form input { min-width: 0; flex: 1; }
.art-done { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.art-done li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.art-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; background: var(--surface-2); }

.art-panel { gap: 0; padding: 0; }
.art-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.art-toggle svg { transition: transform .15s; }
.art-toggle.open svg { transform: rotate(180deg); }
.art-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.art-body { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }

/* painel de arte: aba menor "atrás" do cartão, sem linha divisória */
.card-wrap > .card { border-radius: var(--radius); position: relative; z-index: 1; }
.card-wrap > .art-panel {
  margin: -8px 14px 0; padding-top: 8px; position: relative; z-index: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
.card-wrap > .art-panel .art-toggle { padding: 6px 12px; font-size: 12.5px; color: var(--muted); }
.card-wrap > .art-panel .art-toggle strong { font-weight: 600; }
.card-wrap > .art-panel .art-toggle:hover { color: var(--fg, inherit); }
.card-wrap > .art-panel .art-zone { background: var(--surface); }
.card-wrap { margin-bottom: 2px; }

/* arte pronta: mostra no formato real (vertical de story, quadrado ou horizontal), sem cortar */
.art-block .inspo-grid, .art-box .inspo-grid { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.art-block .inspo-item.media, .art-box .inspo-item.media { flex: 0 1 auto; max-width: 100%; align-items: center; }
.art-block .inspo-item.media a, .art-box .inspo-item.media a { display: block; max-width: 100%; }
.art-block .inspo-media, .art-box .inspo-media { width: auto; height: auto; max-width: 100%; max-height: min(560px, 70vh); object-fit: contain; }
.art-block .inspo-item:not(.media), .art-box .inspo-item:not(.media) { flex: 1 1 100%; }

/* Nova solicitação (popup do Social Media) */
dialog.modal .new-request { max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h3 { margin: 0; }
.new-request .stack.gap-lg { gap: 18px; }

/* Datas comemorativas */
.dates-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.date-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.date-row.add { background: var(--accent-soft); }
.date-row.deny { opacity: .65; }
.date-when { font-weight: 700; color: var(--accent); font-size: 15px; }
.date-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dates-add { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--border); }
.dates-add h4 { margin: 0; font-size: 14px; }
.dates-add .inline-form { flex-wrap: wrap; }
.dates-add .inline-form input[type=text] { flex: 1; min-width: 160px; }
@media (max-width: 520px) { .date-row { grid-template-columns: 1fr; } .date-actions { justify-content: flex-start; } }

/* legenda da postagem */
.art-caption { width: 100%; resize: vertical; min-height: 84px; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: inherit; box-sizing: border-box; }
.art-caption:focus { outline: none; border-color: var(--accent); }
.art-caption-box { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.art-caption-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.art-caption-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.45; }

/* ==========================================================================
   Laboratório visual do Grupo Real: mesmas cores, cartões e botões do Painel ADM
   ========================================================================== */
:root {
  --bg: #f3f5f9; --text: #0f1b33; --muted: #59667a; --border: #e3e8f0;
  --accent: #0647c6; --accent-soft: #e6eeff; --hdr: #0b1c39; --hdr-2: #0e1a33; --gold: #6f9bff;
  --danger: #a11212; --danger-soft: #fde2e1; --ok: #17602d; --ok-soft: #dff3e4; --warn: #6b4e00; --warn-soft: #fff2cc;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 4px 14px rgb(15 27 51 / 7%);
}
h1 { color: #0b1c39; }
.btn, .btn.small, .select-sm, input:not([type='checkbox']):not([type='radio']), select { min-height: 44px; }
.btn { font-weight: 600; }
.btn:active, .link:active, .fab:active { transform: scale(.97); }
.hdr-tab.active { border-bottom-color: var(--gold); }
.card { border: 1px solid var(--border); border-radius: 12px; }
.card.prio-bar-alta, .card.prio-bar-urgente { border-left-width: 4px; }
.card.prio-bar-alta { border-left-color: #d97706; }
.card.prio-bar-urgente { border-left-color: var(--danger); }

/* cartão: ícone + título, informação, ações no rodapé */
.req-head { justify-content: flex-start; }
.req-head .marca { flex: none; display: inline-flex; padding: 11px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.req-head .req-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.req-actions { flex-wrap: nowrap; gap: 0; padding-top: 8px; margin-top: auto; }
.req-actions > .btn { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--accent); font-size: 13.5px; padding: 8px 4px; white-space: normal; text-align: center; }
.req-actions > .btn:hover { background: #f0f3f9; }
.req-actions > .btn + .btn { border-left: 1px solid var(--border); border-radius: 0; }

/* botão "Novo" flutuante */
.fab { position: fixed; right: 18px; bottom: 22px; margin-bottom: env(safe-area-inset-bottom); z-index: 20; display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px; border-radius: 28px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 8px 22px rgb(6 71 198 / 40%); }
.fab-space { height: 84px; flex: none; }

@media (max-width: 860px) {
  input:not([type='checkbox']):not([type='radio']), select, textarea { font-size: 16px; }
}
