/* ==========================================================================
   UNIMAX BOT MANAGER — sistema de design (Etapa 1.2: compacto e proporcional)
   Regras globais (evitam a recorrência dos erros de dimensionamento):
   1) TODO <svg> tem tamanho padrão definido aqui E nos atributos width/height (icon()).
      Escala: 16 (sm) · 20 (padrão) · 24 (lg) · 40 (xl, categorias) · 48 (hero). Nunca 100%.
   2) Tipografia, espaçamento e controles usam rem/tokens, então escalam com resolução e zoom.
   3) Conteúdo é fluido: ocupa a largura útil (limite --page-max) e se centraliza em telas ultralargas.
   ========================================================================== */
:root {
  /* Marca UNIMAX (oficial): âmbar #FFC247 → #FFB000 → #F59E0B sobre grafite #121316 */
  --bg: #0c0d0f; --bg2: #121316; --panel: #17181c; --panel2: #1e1f25; --panel3: #26272f;
  --line: #2a2c34; --line2: #3b3e49;
  --gold: #FFB000; --gold2: #FFC247; --gold3: #F59E0B; --gold-deep: #8a5d06;
  --text: #ffffff; --muted: #b4b7c3; --dim: #8b8e9b;
  --ok: #3ecf8e; --warn: #f0a93a; --err: #ef5b5b; --info: #5aa9f0;
  --grad: linear-gradient(135deg, #FFC247 0%, #FFB000 50%, #F59E0B 100%);
  /* escala */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem;
  --r: .75rem; --r-sm: .5rem; --ctl: 2.35rem; --ctl-sm: 1.95rem;
  --fs-xs: .78rem; --fs-sm: .86rem; --fs: .95rem; --fs-lg: 1.05rem; --fs-xl: 1.3rem; --fs-stat: 1.9rem;
  --ic-sm: 1rem; --ic: 1.25rem; --ic-lg: 1.5rem; --ic-xl: 2.5rem; --ic-hero: 3rem;
  --side-w: 240px; --page-max: 1360px;
  --shadow: 0 .5rem 1.75rem rgba(0, 0, 0, .5);
  /* tipos de publicação (apenas acento; o tema continua preto/grafite/âmbar) */
  --c-comunicado: #FFB000; --c-novidade: #3ecf8e; --c-atualizacao: #5aa9f0; --c-manutencao: #f08a3a; --c-normalizacao: #2fc4b2;
  --c-tutorial: #a78bfa; --c-divulgacao: #f472b6; --c-boas_vindas: #e6d36a; --c-outro: #8b8f9c;
}
* { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
@media (min-width: 2400px) { html { font-size: 16px; } }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 var(--fs)/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: .1px; line-height: 1.25; }
h2 { font-size: var(--fs-xl); }
p { margin: 0; }
a { color: var(--gold2); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(255, 176, 0, .3); }
::-webkit-scrollbar { width: .65rem; height: .65rem; } ::-webkit-scrollbar-thumb { background: #34363f; border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- ÍCONES: regra global de dimensionamento (causa raiz dos ícones gigantes) ---- */
svg { width: var(--ic); height: var(--ic); flex: none; display: inline-block; vertical-align: middle; }
svg.ic-sm { width: var(--ic-sm); height: var(--ic-sm); } svg.ic-lg { width: var(--ic-lg); height: var(--ic-lg); }
svg.ic-xl { width: var(--ic-xl); height: var(--ic-xl); } svg.ic-hero { width: var(--ic-hero); height: var(--ic-hero); }
img { max-width: 100%; }

/* ---- Layout ---- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { background: linear-gradient(180deg, #111215, #0c0d0f); border-right: 1px solid var(--line); padding: var(--sp-4) var(--sp-3); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--sp-1); overflow-y: auto; }
.brand { display: grid; justify-items: center; gap: .5rem; padding: .9rem .5rem 1.2rem; text-align: center; }
.brand img { display: block; height: 2.75rem; width: auto; max-width: 100%; }
.brand small { display: block; color: var(--muted); font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; text-align: center; padding-left: .22em; }
.nav { display: grid; gap: .15rem; }
.nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: .6rem; color: var(--muted); text-decoration: none; position: relative; transition: .15s; font-size: .95rem; }
.nav a svg { width: var(--ic); height: var(--ic); }
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(255, 176, 0, .18), rgba(255, 176, 0, .03)); color: var(--gold2); font-weight: 600; }
.nav a.active::before { content: ""; position: absolute; left: -.75rem; top: .5rem; bottom: .5rem; width: 3px; border-radius: 3px; background: var(--grad); }
.side .foot { margin-top: auto; padding: var(--sp-3) var(--sp-2) var(--sp-1); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); display: grid; gap: var(--sp-2); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: var(--sp-4); padding: .6rem clamp(1rem, 2vw, 2rem); border-bottom: 1px solid var(--line); background: rgba(12, 13, 15, .88); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.top h1 { font-size: var(--fs-xl); flex: 1; min-width: 0; }
.top .menu-btn { display: none; }
.content { padding: var(--sp-4) clamp(1rem, 2vw, 2rem) 3rem; width: 100%; }
.page { width: 100%; max-width: var(--page-max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-content: start; }
.page.w-narrow { max-width: 860px; } .page.w-mid { max-width: 1120px; } .page.w-wide { max-width: 1560px; }
.simbar { background: repeating-linear-gradient(45deg, #2a2108, #2a2108 12px, #231b06 12px, #231b06 24px); color: var(--gold2); text-align: center; font-size: var(--fs-xs); letter-spacing: .06em; padding: .3rem .6rem; border-bottom: 1px solid var(--gold-deep); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-4); flex-wrap: wrap; }
.page-head .sub { color: var(--muted); max-width: 60rem; }

/* ---- Cards e grades ---- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--sp-4) 1.15rem; min-width: 0; }
.card.tight { padding: var(--sp-4); }
.card > h3, .card-head h3 { font-size: var(--fs-lg); display: flex; align-items: center; gap: var(--sp-2); }
.card > h3 { margin-bottom: var(--sp-4); }
.card h3 svg { color: var(--gold); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.card-head h3 { margin: 0; }
.grid { display: grid; gap: var(--sp-4); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.g-auto-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.g-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.g-3cols { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
/* minmax(0,1fr): a coluna nunca cresce além do contêiner por causa de conteúdo largo (tabelas, listas) — evita overflow horizontal. */
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); align-content: start; }
.stack-sm { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); align-content: start; }
.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.nowrap { flex-wrap: nowrap; } .row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: var(--fs-sm); } .xs { font-size: var(--fs-xs); } .mt { margin-top: var(--sp-3); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .35rem; padding: var(--sp-4) var(--sp-5); }
.stat .v { margin-top: auto; }
.stat .l { color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .09em; padding-right: 2.2rem; }
.stat .v { font-size: var(--fs-stat); font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .ic { position: absolute; right: var(--sp-4); top: var(--sp-4); color: var(--gold-deep); }
.stat .ic svg { width: var(--ic-lg); height: var(--ic-lg); }
a.stat { text-decoration: none; color: inherit; transition: .15s; } a.stat:hover { border-color: var(--gold-deep); }
.empty { text-align: center; padding: var(--sp-5) var(--sp-4); color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); display: grid; gap: var(--sp-2); justify-items: center; }
.empty svg { width: var(--ic-xl); height: var(--ic-xl); color: var(--gold-deep); }

/* ---- Botões e campos (altura padrão --ctl) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: var(--ctl); padding: 0 1rem; border-radius: .55rem; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none; color: var(--text); font-size: .9rem; }
.btn:hover { border-color: var(--gold-deep); background: var(--panel3); }
.btn svg { width: var(--ic-sm); height: var(--ic-sm); }
.btn.primary { background: var(--grad); color: #1a1203; border: 0; font-weight: 600; } .btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--err); border-color: rgba(239, 91, 91, .4); } .btn.danger:hover { background: rgba(239, 91, 91, .1); border-color: var(--err); }
.btn.ghost { background: transparent; } .btn.sm { min-height: var(--ctl-sm); padding: 0 .75rem; font-size: var(--fs-sm); border-radius: .5rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.icon-btn { width: var(--ctl-sm); height: var(--ctl-sm); display: inline-grid; place-items: center; border-radius: .5rem; background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; text-decoration: none; padding: 0; }
.icon-btn:hover:not([disabled]) { color: var(--gold2); background: var(--panel2); } .icon-btn[disabled] { opacity: .35; cursor: not-allowed; }
.icon-btn svg { width: var(--ic); height: var(--ic); }

label.f { display: grid; gap: .35rem; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .07em; align-content: start; }
label.f > span.hint { text-transform: none; letter-spacing: 0; color: var(--dim); font-size: var(--fs-xs); }
input[type=text], input[type=url], input[type=password], input[type=number], input[type=datetime-local], input[type=date], input[type=search], input[type=time], select, textarea {
  width: 100%; min-height: var(--ctl); background: var(--bg2); border: 1px solid var(--line2); border-radius: .6rem; padding: 0 .85rem; outline: none; text-transform: none; letter-spacing: 0; color: var(--text); font-size: .95rem; }
textarea { padding: .6rem .8rem; min-height: 7rem; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 176, 0, .15); }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.05rem) 50%, calc(100% - .75rem) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
input[type=checkbox] { accent-color: var(--gold); width: 1.05rem; height: 1.05rem; flex: none; }
.check { display: inline-flex; gap: .55rem; align-items: center; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); }
.switch { position: relative; width: 2.6rem; height: 1.45rem; flex: none; display: inline-block; } .switch input { display: none; }
.switch i { position: absolute; inset: 0; background: #34353f; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; width: 1.05rem; height: 1.05rem; left: .2rem; top: .2rem; background: #aaa; border-radius: 50%; transition: .2s; }
.switch input:checked + i { background: var(--gold-deep); } .switch input:checked + i::after { left: 1.35rem; background: var(--gold2); }
.switch input:disabled + i { opacity: .5; cursor: not-allowed; }
.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .08rem .6rem; border-radius: 99px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; border: 1px solid; white-space: nowrap; line-height: 1.6; }
.badge svg { width: .85rem; height: .85rem; }
.b-ok { color: var(--ok); border-color: rgba(62, 207, 142, .4); background: rgba(62, 207, 142, .08); }
.b-warn { color: var(--warn); border-color: rgba(240, 169, 58, .4); background: rgba(240, 169, 58, .08); }
.b-err { color: var(--err); border-color: rgba(239, 91, 91, .4); background: rgba(239, 91, 91, .08); }
.b-info { color: var(--info); border-color: rgba(90, 169, 240, .4); background: rgba(90, 169, 240, .08); }
.b-gold { color: var(--gold2); border-color: rgba(255, 176, 0, .5); background: rgba(255, 176, 0, .1); }
.b-mute { color: var(--muted); border-color: var(--line2); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; } .dot.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); }

/* ---- Tabelas ---- */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); font-weight: 600; padding: .55rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: rgba(255, 255, 255, .02); } tr.click { cursor: pointer; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: .7rem 1rem; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--gold2); border-color: var(--gold); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: var(--ctl-sm); padding: 0 .9rem; border-radius: 99px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; color: var(--muted); font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: .4rem; }
.chip.on { background: rgba(255, 176, 0, .14); border-color: var(--gold); color: var(--gold2); }
.toolbar { display: flex; gap: var(--sp-3); flex-wrap: wrap; align-items: center; }
.toolbar .search { flex: 1 1 14rem; max-width: 26rem; }
.toolbar select, .toolbar input[type=date] { width: auto; min-width: 9rem; }

.list-item { display: flex; gap: var(--sp-3); align-items: center; padding: .8rem 1rem; background: var(--bg2); border: 1px solid var(--line); border-radius: .65rem; min-width: 0; }
.list-item.click { cursor: pointer; } .list-item.click:hover { border-color: var(--gold-deep); } .list-item.sel { border-color: var(--gold); }
.list-item > svg { color: var(--gold); }
.grip { cursor: grab; color: var(--dim); display: inline-flex; }
.callout { padding: .8rem 1rem; border-radius: .65rem; border: 1px solid var(--line2); background: var(--bg2); display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.callout svg { margin-top: .15rem; }
.callout.warn { border-color: rgba(240, 169, 58, .4); background: rgba(240, 169, 58, .06); } .callout.warn svg { color: var(--warn); }
.callout.info { border-color: rgba(255, 176, 0, .35); background: rgba(255, 176, 0, .05); } .callout.info svg { color: var(--gold); }
.callout.err { border-color: rgba(239, 91, 91, .4); background: rgba(239, 91, 91, .06); } .callout.err svg { color: var(--err); }
.callout.ok { border-color: rgba(62, 207, 142, .4); background: rgba(62, 207, 142, .06); } .callout.ok svg { color: var(--ok); }
.callout ul { margin: .25rem 0 0; padding-left: 1.1rem; }
/* pares rótulo/valor empilhados: nunca espremem o valor em cartões estreitos */
.kv { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem 0; margin: 0; }
.kv dt { color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; }
.kv dd { margin: 0 0 .6rem; overflow-wrap: anywhere; }
code, .mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: .85em; background: #0b0b0d; padding: .1rem .4rem; border-radius: .35rem; border: 1px solid var(--line); overflow-wrap: anywhere; word-break: break-all; }

/* ---- Modal / toast ---- */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .68); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: var(--sp-4); }
.modal { background: var(--panel); border: 1px solid var(--line2); border-radius: 1rem; width: min(42rem, 100%); max-height: 92vh; overflow: auto; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.modal.wide { width: min(60rem, 100%); } .modal.xl { width: min(78rem, 100%); }
.modal header { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.modal header h3 { font-size: var(--fs-lg); }
.modal .body { padding: var(--sp-5); display: grid; gap: var(--sp-4); align-content: start; }
.modal footer { padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); display: flex; gap: var(--sp-3); justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--panel); }
.toasts { position: fixed; right: 1.2rem; bottom: 1.2rem; display: grid; gap: .6rem; z-index: 200; max-width: calc(100vw - 2rem); }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 4px solid var(--gold); padding: .75rem 1rem; border-radius: .65rem; box-shadow: var(--shadow); max-width: 26rem; animation: up .2s; } .toast.err { border-left-color: var(--err); } .toast.ok { border-left-color: var(--ok); }
@keyframes up { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- Pré-visualização estilo Telegram ---- */
.tg { background: #0e1621; border-radius: var(--r); padding: var(--sp-4); border: 1px solid var(--line); }
.tg .hdr { display: flex; gap: .7rem; align-items: center; margin-bottom: var(--sp-3); padding-bottom: .7rem; border-bottom: 1px solid #ffffff12; }
.tg .hdr img, .avatar { width: 2.3rem; height: 2.3rem; border-radius: 50%; flex: none; background: #14161c; border: 1px solid var(--line2); object-fit: contain; padding: .22rem; }
.tg .hdr b { font-size: .95rem; } .tg .hdr small { color: #7d8fa3; display: block; font-size: var(--fs-xs); }
.tg .thread { display: grid; gap: .5rem; }
.bubble { background: #182533; border-radius: 1rem 1rem 1rem .25rem; padding: .55rem .8rem; max-width: 26rem; color: #fff; overflow-wrap: anywhere; white-space: pre-wrap; box-shadow: 0 1px 2px #0006; font-size: .95rem; }
.bubble.out { margin-left: auto; background: #2b5278; border-radius: 1rem 1rem .25rem 1rem; }
.bubble a { color: #6ab3f3; } .bubble code { background: #0006; border: 0; padding: .05rem .3rem; border-radius: .25rem; }
.bubble tg-spoiler { background: #5b6b7c; color: transparent; border-radius: .25rem; cursor: pointer; } .bubble tg-spoiler:hover { color: inherit; }
.bubble .time { text-align: right; color: #6d7f90; font-size: var(--fs-xs); margin-top: .25rem; white-space: normal; display: flex; justify-content: flex-end; gap: .5rem; }
.bubble .name { color: var(--gold2); font-weight: 600; font-size: .85rem; margin-bottom: .2rem; white-space: normal; }
.bubble .att { margin: -.1rem -.4rem .5rem; border-radius: .6rem; overflow: hidden; background: #0a121b; white-space: normal; }
.bubble .att img, .bubble .att video { display: block; width: 100%; max-height: 16rem; object-fit: cover; }
.bubble .att.album { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; } .bubble .att.album img { height: 7rem; max-height: none; }
.bubble .att .file { padding: .8rem; display: flex; gap: .7rem; align-items: center; color: #9db2c7; font-size: .85rem; } .bubble .att .file svg { color: var(--gold); width: var(--ic-lg); height: var(--ic-lg); }
.kbd { max-width: 26rem; display: grid; gap: 4px; margin-top: 4px; }
.kbd .kr { display: flex; gap: 4px; } .kbd .kb { flex: 1; min-width: 0; text-align: center; background: #2b5278; color: #fff; padding: .5rem .4rem; border-radius: .5rem; font-size: .85rem; border: 0; overflow-wrap: anywhere; }
.kbd button.kb { cursor: pointer; } .kbd button.kb:hover { background: #356a9a; }
.counter { font-size: var(--fs-xs); color: var(--muted); } .counter.over { color: var(--err); font-weight: 600; }
.sticky { position: sticky; top: 4rem; align-self: start; }

/* ---- Editor ---- */
.editor-bar { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.editor-bar .btn.sm { min-width: var(--ctl-sm); padding: 0 .6rem; }
.popover { position: absolute; z-index: 50; background: var(--panel2); border: 1px solid var(--line2); border-radius: .75rem; box-shadow: var(--shadow); padding: .6rem; width: min(22rem, 90vw); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-height: 13rem; overflow: auto; margin-top: .5rem; }
.emoji-grid button { background: none; border: 0; font-size: 1.3rem; line-height: 1; padding: .3rem; border-radius: .4rem; cursor: pointer; } .emoji-grid button:hover { background: var(--panel3); }
.dest-group { display: grid; gap: .4rem; }
.dest-opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--bg2); cursor: pointer; min-width: 0; }
.dest-opt:hover { border-color: var(--gold-deep); } .dest-opt.on { border-color: var(--gold); background: rgba(255, 176, 0, .07); } .dest-opt.off { opacity: .5; cursor: not-allowed; }
.dest-opt .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-editor { display: grid; gap: .6rem; }
.btn-row { display: grid; gap: .6rem; padding: .7rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--bg2); }
.btn-row .bts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .6rem; }
.btn-row .bt { display: grid; gap: .45rem; padding: .6rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); min-width: 0; align-content: start; }
.action-bar { position: sticky; bottom: 0; z-index: 15; background: rgba(12, 13, 15, .92); backdrop-filter: blur(8px); border: 1px solid var(--line2); border-radius: var(--r); padding: .75rem 1rem; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.validation li { margin: .15rem 0; }

/* ---- Calendário ---- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.cal .dow { text-align: center; font-size: var(--fs-xs); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; padding: .25rem; }
.cal .day { min-height: 4.6rem; background: var(--bg2); border: 1px solid var(--line); border-radius: .65rem; padding: .4rem; display: flex; flex-direction: column; gap: .2rem; cursor: pointer; overflow: hidden; }
.cal .day:hover { border-color: var(--gold-deep); } .cal .day.out { opacity: .38; } .cal .day.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold-deep); }
.cal .day.week { min-height: 11rem; }
.cal .day .n { font-size: var(--fs-sm); color: var(--muted); display: flex; justify-content: space-between; } .cal .day.today .n { color: var(--gold2); font-weight: 700; }
.ev { font-size: var(--fs-xs); padding: .15rem .4rem; border-radius: .35rem; background: rgba(255, 255, 255, .05); border-left: 3px solid var(--cat, var(--c-outro)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; display: block; width: 100%; text-align: left; color: var(--text); border-top: 0; border-right: 0; border-bottom: 0; }
.ev:hover { background: rgba(255, 255, 255, .1); }
.ev.sent { opacity: .75; } .ev.cancel { opacity: .5; text-decoration: line-through; } .ev.paused { opacity: .7; font-style: italic; }
.ev.big { white-space: normal; padding: .4rem .5rem; font-size: var(--fs-sm); }
.cat-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--cat, var(--c-outro)); display: inline-block; flex: none; }
.legend { display: flex; gap: .9rem; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---- Biblioteca ---- */
.drop { border: 2px dashed var(--line2); border-radius: var(--r); height: 6.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; padding: var(--sp-3); }
.drop svg { width: var(--ic-xl); height: var(--ic-xl); color: var(--gold); }
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(255, 176, 0, .05); color: var(--gold2); }
.drop.mini { height: 5.5rem; flex-direction: row; gap: .8rem; } .drop.mini svg { width: var(--ic-lg); height: var(--ic-lg); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); gap: var(--sp-4); }
.media { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.media .th { aspect-ratio: 4 / 3; background: #0b0b0d; display: grid; place-items: center; color: var(--gold-deep); position: relative; overflow: hidden; }
.media .th img, .media .th video { width: 100%; height: 100%; object-fit: cover; display: block; } .media .th svg { width: var(--ic-xl); height: var(--ic-xl); }
.media .th .kind { position: absolute; left: .4rem; top: .4rem; }
.media .info { padding: .7rem .85rem; display: grid; gap: .2rem; } .media .info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.media .acts { display: flex; gap: .1rem; margin-top: .2rem; flex-wrap: wrap; }
.media.pick { cursor: pointer; } .media.pick.sel { outline: 2px solid var(--gold); }

/* ---- Tutoriais ---- */
.cat-group + .cat-group { margin-top: var(--sp-2); }
.group-title { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--gold2); margin-bottom: var(--sp-3); display: flex; align-items: center; gap: .6rem; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cat-card { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; min-height: 4.6rem; cursor: pointer; text-decoration: none; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: .15s; min-width: 0; }
.cat-card:hover { border-color: var(--gold-deep); transform: translateY(-1px); }
.cat-card .ico { width: 2.9rem; height: 2.9rem; border-radius: .7rem; background: rgba(255, 176, 0, .1); border: 1px solid rgba(255, 176, 0, .25); display: grid; place-items: center; color: var(--gold2); flex: none; }
.cat-card .ico svg { width: var(--ic-lg); height: var(--ic-lg); }
.cat-card .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-card .go { color: var(--dim); } .cat-card .go svg { width: var(--ic-sm); height: var(--ic-sm); }

/* ---- Destinos ---- */
.steps { display: flex; gap: .35rem; flex-wrap: wrap; }
.dest-kind { width: 2.2rem; height: 2.2rem; border-radius: .55rem; display: grid; place-items: center; background: rgba(255, 176, 0, .1); color: var(--gold2); flex: none; }
.dest-kind.topico { background: rgba(255, 255, 255, .05); color: var(--muted); }

/* ---- Login ---- */
.login { min-height: 100vh; display: grid; place-items: center; padding: var(--sp-5); background: radial-gradient(900px 500px at 50% -10%, rgba(255, 176, 0, .16), transparent), var(--bg); }
.login .box { width: min(24rem, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 1.1rem; padding: 2.2rem; box-shadow: var(--shadow); display: grid; gap: var(--sp-4); }
.login .logo { display: grid; justify-items: center; gap: .7rem; text-align: center; } .login .logo img { height: 3rem; width: auto; max-width: 100%; }
.login h1 { font-size: 1.05rem; letter-spacing: .22em; color: var(--gold2); font-weight: 600; }

/* ---- Responsivo ---- */
@media (max-width: 1280px) { .g-main { grid-template-columns: minmax(0, 1fr); } .g-3cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sticky { position: static; } }
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; width: min(18rem, 86vw); z-index: 60; transform: translateX(-102%); transition: .25s; box-shadow: var(--shadow); }
  .side.open { transform: none; } .top .menu-btn { display: inline-grid; }
  .g2, .g3, .g-3cols { grid-template-columns: minmax(0, 1fr); } .kv { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .content { padding-top: var(--sp-4); } .card { padding: var(--sp-4); } .stat .v { font-size: 2rem; }
  .cal { gap: .2rem; } .cal .day { min-height: 4rem; padding: .25rem; } .ev { font-size: .68rem; padding: .05rem .2rem; }
  .cal.weekgrid { grid-template-columns: minmax(0, 1fr); } .cal.weekgrid .dow { display: none; } .cal.weekgrid .day.week { min-height: 3.5rem; } .ev.big { font-size: var(--fs-sm); }
  .list-item { flex-wrap: wrap; }
  .modal .body, .modal header, .modal footer { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .action-bar .btn { flex: 1 1 8rem; } .toolbar .search { max-width: none; }
  .toasts { left: 1rem; right: 1rem; } .toast { max-width: none; }
}

.g-replies { grid-template-columns: minmax(12rem, 16rem) minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1280px) { .g-replies { grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr); } .g-replies > :nth-child(3) { grid-column: 1 / -1; position: static; } }
@media (max-width: 760px) { .g-replies { grid-template-columns: minmax(0, 1fr); } }


/* =========================== ETAPA 1.2 =========================== */
.simbar { font-size: .72rem; padding: .22rem .6rem; }
.top h1 { font-size: 1.2rem; }
.subtabs { display: flex; gap: .3rem; flex-wrap: wrap; padding: .25rem; background: var(--panel); border: 1px solid var(--line); border-radius: .75rem; width: fit-content; max-width: 100%; }
.subtabs a { padding: .4rem .95rem; border-radius: .55rem; color: var(--muted); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.subtabs a:hover { color: var(--text); background: var(--panel2); }
.subtabs a.on { background: rgba(255, 176, 0, .16); color: var(--gold2); font-weight: 600; }
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: .2rem; padding: .2rem; background: var(--bg2); border: 1px solid var(--line); border-radius: .65rem; }
.seg button { border: 0; background: none; padding: 0 .85rem; min-height: calc(var(--ctl-sm) - .1rem); border-radius: .5rem; color: var(--muted); cursor: pointer; font-size: .88rem; }
.seg button.on { background: rgba(255, 176, 0, .16); color: var(--gold2); font-weight: 600; }
.section-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.page-head h2 { font-size: 1.15rem; } .page-head .sub { font-size: var(--fs-sm); }
.card-head h3, .card > h3 { font-size: 1rem; }
.hint-line { font-size: var(--fs-xs); color: var(--dim); }

/* ---- Visão geral ---- */
.status-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: var(--sp-3); }
.status-box { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.status-box .av { width: 2.6rem; height: 2.6rem; border-radius: 50%; flex: none; background: #14161c; border: 1px solid var(--line2); object-fit: contain; padding: .25rem; }
.status-box b { display: block; } .status-box small { color: var(--muted); display: block; font-size: var(--fs-xs); overflow-wrap: anywhere; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: var(--sp-3); }
.qa { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: .15s; min-height: 6.2rem; }
.qa:hover { border-color: var(--gold-deep); transform: translateY(-1px); }
.qa .ico { width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: rgba(255, 176, 0, .12); border: 1px solid rgba(255, 176, 0, .28); display: grid; place-items: center; color: var(--gold2); }
.qa b { font-size: .98rem; } .qa span.d { color: var(--muted); font-size: var(--fs-xs); }
.qa.primary { background: linear-gradient(135deg, rgba(255, 194, 71, .22), rgba(245, 158, 11, .08)); border-color: rgba(255, 176, 0, .5); }
.counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: var(--sp-3); }
.counter-box { padding: .75rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; display: grid; gap: .1rem; }
.counter-box:hover { border-color: var(--gold-deep); }
.counter-box .n { font-size: 1.7rem; font-weight: 700; color: var(--gold2); line-height: 1.15; } .counter-box .l { font-size: var(--fs-xs); color: var(--muted); }
.mini-stats { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: var(--fs-sm); color: var(--muted); } .mini-stats b { color: var(--text); }

/* ---- Nova publicação ---- */
.compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem); gap: var(--sp-4); align-items: start; }
.step { display: grid; gap: .6rem; }
.step-h { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; } .step-h .pill { min-width: 0; flex: 0 1 auto; }
.step-n { width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--grad); color: #1a1203; font-weight: 700; font-size: .8rem; display: grid; place-items: center; flex: none; }
.step-h h3 { font-size: 1rem; } .step-h .grow { min-width: 0; }
.dp { position: relative; }
.dp-field { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; min-height: var(--ctl); padding: .3rem .5rem; background: var(--bg2); border: 1px solid var(--line2); border-radius: .6rem; cursor: text; }
.dp-field:focus-within, .dp.open .dp-field { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 176, 0, .15); }
.dp-field input { flex: 1; min-width: 8rem; border: 0; background: none; min-height: 1.7rem; padding: 0 .3rem; outline: none; box-shadow: none; width: auto; }
.dp-field input:focus { box-shadow: none; }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .3rem .15rem .6rem; background: rgba(255, 176, 0, .13); border: 1px solid rgba(255, 176, 0, .4); color: var(--gold2); border-radius: 99px; font-size: .82rem; max-width: 100%; }
.tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; width: 1.2rem; height: 1.2rem; display: grid; place-items: center; border-radius: 50%; } .tag button:hover { background: rgba(255, 255, 255, .12); }
.tag button svg { width: .8rem; height: .8rem; }
.dp-menu { position: absolute; left: 0; right: 0; top: calc(100% + .3rem); z-index: 40; background: var(--panel2); border: 1px solid var(--line2); border-radius: .75rem; box-shadow: var(--shadow); max-height: 22rem; overflow: auto; padding: .4rem; display: none; }
.dp.open .dp-menu { display: block; }
.dp-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); padding: .5rem .6rem .2rem; }
.dp-opt { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: .5rem; cursor: pointer; font-size: .92rem; }
.dp-opt:hover { background: var(--panel3); } .dp-opt.on { background: rgba(255, 176, 0, .1); } .dp-opt.off { opacity: .45; cursor: not-allowed; }
.dp-opt .box { width: 1.05rem; height: 1.05rem; border: 1.5px solid var(--line2); border-radius: .3rem; display: grid; place-items: center; flex: none; } .dp-opt.on .box { background: var(--gold); border-color: var(--gold); color: #1a1203; }
.dp-opt .box svg { width: .8rem; height: .8rem; } .dp-opt .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dp-opt small { color: var(--dim); font-size: .72rem; white-space: nowrap; }
.editor { border: 1px solid var(--line2); border-radius: .7rem; background: var(--bg2); overflow: hidden; }
.editor:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 176, 0, .12); }
.editor .editor-bar { padding: .35rem .5rem; border-bottom: 1px solid var(--line); background: var(--panel); gap: .15rem; }
.editor textarea { border: 0; border-radius: 0; background: none; min-height: 9rem; box-shadow: none; }
.editor textarea:focus { box-shadow: none; }
.editor .foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .35rem .7rem; border-top: 1px solid var(--line); background: var(--panel); flex-wrap: wrap; }
.tool { min-width: 2rem; height: 2rem; padding: 0 .5rem; display: inline-grid; place-items: center; border: 0; background: none; color: var(--text); border-radius: .45rem; cursor: pointer; font-size: .9rem; } .tool:hover:not([disabled]) { background: var(--panel3); color: var(--gold2); } .tool[disabled] { opacity: .4; cursor: not-allowed; }
.tool-sep { width: 1px; height: 1.2rem; background: var(--line2); margin: 0 .25rem; }
.attach-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.att-chip { display: flex; align-items: center; gap: .55rem; padding: .3rem .3rem .3rem .3rem; background: var(--bg2); border: 1px solid var(--line); border-radius: .6rem; max-width: 17rem; min-width: 0; }
.att-chip .th { width: 2.2rem; height: 2.2rem; border-radius: .4rem; overflow: hidden; background: #0b0b0d; display: grid; place-items: center; flex: none; color: var(--gold-deep); } .att-chip .th img, .att-chip .th video { width: 100%; height: 100%; object-fit: cover; }
.att-chip b { font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; font-weight: 500; }
details.adv { border: 1px solid var(--line); border-radius: .7rem; background: var(--panel); }
details.adv > summary { cursor: pointer; list-style: none; padding: .7rem 1rem; display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .92rem; user-select: none; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::after { content: ""; margin-left: auto; width: .45rem; height: .45rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: .15s; }
details.adv[open] > summary::after { transform: rotate(-135deg); } details.adv[open] > summary { color: var(--text); border-bottom: 1px solid var(--line); }
details.adv > .adv-body { padding: 1rem; display: grid; gap: var(--sp-4); }
.compose-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; position: sticky; bottom: .6rem; z-index: 15; padding: .65rem .8rem; background: rgba(18, 19, 22, .95); backdrop-filter: blur(8px); border: 1px solid var(--line2); border-radius: var(--r); box-shadow: var(--shadow); }
.compose-actions .sp { flex: 1; }
.preview-card { background: #0e1621; border: 1px solid var(--line); border-radius: var(--r); padding: .8rem; display: grid; gap: .6rem; }
.preview-card .hdr { display: flex; gap: .6rem; align-items: center; padding-bottom: .55rem; border-bottom: 1px solid #ffffff12; }
.preview-card .hdr b { font-size: .9rem; } .preview-card .hdr small { color: #7d8fa3; display: block; font-size: .72rem; }
.preview-card .chat { border-radius: .6rem; padding: .3rem 0; min-height: 6rem; display: grid; align-content: start; }

/* ---- Listas, divisões e componentes comuns ---- */
.row-item { display: flex; gap: .8rem; align-items: center; padding: .6rem .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; min-width: 0; }
.row-item:hover { border-color: var(--line2); }
.row-item .ttl { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.row-item .sub { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.split { display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.split.s3 { grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr) minmax(17rem, 22rem); }
.side-list { display: grid; gap: .3rem; }
.side-list button { display: flex; align-items: center; gap: .6rem; text-align: left; padding: .5rem .75rem; border-radius: .6rem; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; min-width: 0; width: 100%; }
.side-list button:hover { background: var(--panel); color: var(--text); }
.side-list button.on { background: rgba(255, 176, 0, .12); border-color: rgba(255, 176, 0, .35); color: var(--gold2); }
.side-list .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.pill { max-width: 100%; white-space: normal; text-align: left; display: inline-flex; align-items: center; gap: .35rem; padding: .12rem .65rem; border-radius: 99px; font-size: var(--fs-xs); font-weight: 600; border: 1px solid; }
.pill::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.pill.pend { color: var(--warn); border-color: rgba(240, 169, 58, .4); background: rgba(240, 169, 58, .08); }
.pill.ver { color: var(--info); border-color: rgba(90, 169, 240, .4); background: rgba(90, 169, 240, .08); }
.pill.con { color: var(--ok); border-color: rgba(62, 207, 142, .4); background: rgba(62, 207, 142, .08); }
.pill.real { color: #1a1204; background: var(--warn); border-color: var(--warn); font-weight: 700; } .pill.real::before { background: #1a1204; }
.pill.off { color: var(--muted); border-color: var(--line2); } .pill.err { color: var(--err); border-color: rgba(239, 91, 91, .4); background: rgba(239, 91, 91, .08); }
.fgrid { display: grid; gap: var(--sp-3) var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fgrid .full { grid-column: 1 / -1; }
.btn-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: .5rem; align-items: center; }
.btn-edit .btn-row-h { grid-column: 1 / -1; }
.wiz { display: grid; gap: .6rem; margin: 0; padding: 0; }
.wiz li { list-style: none; display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--bg2); }
.wiz .n { width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: .82rem; color: var(--muted); }
.mrow { display: grid; grid-template-columns: 3.6rem minmax(6rem, 1fr) 11rem minmax(8rem, 1.2fr) 3.6rem 3.6rem 8rem 2.7rem 2rem; gap: .45rem; align-items: center; padding: .4rem .5rem; background: var(--panel); border: 1px solid var(--line); border-radius: .6rem; }
.mrow input[type=text], .mrow input[type=url], .mrow input[type=number], .mrow select { min-height: var(--ctl-sm); font-size: .86rem; padding-left: .5rem; }
.mrow input[type=number] { padding-right: 0; text-align: center; }
.mhead { background: none; border: 0; padding-top: 0; padding-bottom: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.mrow.off { opacity: .6; }
@media (max-width: 1100px) { .mrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mhead { display: none; } }
.tbl-wrap table td, .tbl-wrap table th { padding: .55rem .7rem; }
.hide { display: none !important; }
.nullfree:empty::after { content: "—"; color: var(--dim); }
.cal-wrap { max-width: 62rem; }
.cal .day .n { font-size: .8rem; }
.lvl-note { font-size: var(--fs-xs); color: var(--dim); }

.split.wide-r { grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem); }
@media (max-width: 1100px) { .compose, .split, .split.s3, .split.wide-r { grid-template-columns: minmax(0, 1fr); } .compose .sticky { position: static; } }
@media (max-width: 700px) {
  .row-item { flex-wrap: wrap; } .row-item .grow { flex-basis: 12rem; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .btn-edit { grid-template-columns: minmax(0, 1fr); }
  .compose-actions .btn { flex: 1 1 7rem; } .subtabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .wiz li { grid-template-columns: auto 1fr; } .wiz li > :last-child { grid-column: 1 / -1; }
}

/* ---- Sem texto cortado: nomes longos quebram em várias linhas ---- */
.side-list .nm, .row-item .ttl, .row-item .sub, .media .info b, .att-chip b, .cat-card .nm, .dp-opt .nm, .tag span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.ev { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; }
.cal .day { min-height: 5rem; overflow: visible; }
.nav a { line-height: 1.25; }

.seg.fill { display: flex; flex-wrap: wrap; width: 100%; } .seg.fill button { flex: 1; padding: 0 .3rem; }

.media-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr)); }
.media .acts { gap: 0; justify-content: space-between; } .media .acts .icon-btn { width: 1.75rem; }

.nav a { font-size: .92rem; }

.login .logo img { height: 3.4rem; }
.login .logo h1 { text-align: center; padding-left: .22em; }

.simbar.real { background: repeating-linear-gradient(45deg, #5a3b05, #5a3b05 12px, #4b3004 12px, #4b3004 24px); color: #ffe2a6; border-bottom-color: var(--warn); font-weight: 700; } /* aviso (âmbar), não erro */
