/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[3].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[3].use[2]!./node_modules/next/font/local/target.css?{"path":"app/layout.tsx","import":"","arguments":[{"src":[{"path":"./fonts/Inter-latin.woff2","weight":"400 600"}],"variable":"--font-inter","display":"swap"}],"variableName":"inter"} ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: 'inter';
src: url(/_next/static/media/6c596dfcddeca1e9-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 400 600;
}@font-face {font-family: 'inter Fallback';src: local("Arial");ascent-override: 89.79%;descent-override: 22.36%;line-gap-override: 0.00%;size-adjust: 107.89%
}.__className_80ae1b {font-family: 'inter', 'inter Fallback'
}.__variable_80ae1b {--font-inter: 'inter', 'inter Fallback'
}

/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[3].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[3].use[2]!./node_modules/next/font/local/target.css?{"path":"app/layout.tsx","import":"","arguments":[{"src":[{"path":"./fonts/PlayfairDisplay-400.woff2","weight":"400 500"}],"variable":"--font-playfair","display":"swap"}],"variableName":"playfair"} ***!
  \***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: 'playfair';
src: url(/_next/static/media/e399f3e068a97f0c-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 400 500;
}@font-face {font-family: 'playfair Fallback';src: local("Arial");ascent-override: 106.51%;descent-override: 24.71%;line-gap-override: 0.00%;size-adjust: 101.58%
}.__className_8ed03e {font-family: 'playfair', 'playfair Fallback'
}.__variable_8ed03e {--font-playfair: 'playfair', 'playfair Fallback'
}

/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[3].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[3].use[2]!./node_modules/next/font/local/target.css?{"path":"app/layout.tsx","import":"","arguments":[{"src":[{"path":"./fonts/GeistMono-latin.woff2","weight":"400 500"}],"variable":"--font-geist-mono","display":"swap"}],"variableName":"geistMono"} ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@font-face {
font-family: 'geistMono';
src: url(/_next/static/media/125b055e8623e92e-s.p.woff2) format('woff2');
font-display: swap;
font-weight: 400 500;
}@font-face {font-family: 'geistMono Fallback';src: local("Arial");ascent-override: 76.43%;descent-override: 22.43%;line-gap-override: 0.00%;size-adjust: 131.49%
}.__className_a60929 {font-family: 'geistMono', 'geistMono Fallback'
}.__variable_a60929 {--font-geist-mono: 'geistMono', 'geistMono Fallback'
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #a1a4a5;
  --dim: #6f7274;
  --line: rgba(176, 199, 217, 0.145);
  --line-strong: rgba(176, 199, 217, 0.26);
  --surface: rgba(255, 255, 255, 0.02);
  --green: #5bd68f;
  --blue: #52a9ff;
  --orange: #ff9f5a;
  --amber: #f5c04a;
  --violet: #b39dff;
  --serif: var(--font-playfair), "Playfair Display", "Times New Roman", serif;
  --sans: var(--font-inter), "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: var(--font-geist-mono), "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 0 28px rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  background: #e4e4e4;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 15px;
}

/* ---------- Tipografia ---------- */
.h-serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, 0.68));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1.h-serif {
  font-size: clamp(46px, 8vw, 88px);
}

h2.h-serif {
  font-size: clamp(34px, 5vw, 54px);
}

.mono {
  font-family: var(--mono);
}

/* ---------- Seções ---------- */
.section {
  padding: 140px 0 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head p {
  color: var(--muted);
  margin-top: 20px;
  font-size: 17px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .duo {
    grid-template-columns: 1fr;
  }
  .duo > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .grid3 {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
  .cell {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .cell:last-child {
    border-bottom: 0 !important;
  }
  .section {
    padding-top: 100px;
  }
}

/* ---------- Painel Admin (global, não-modular) ---------- */

/* Container de panel: estética cockpit/terminal (Sally design) */
.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  border-radius: 16px;
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
}

.panel-bar .title-mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.panel-body {
  padding: 24px;
}

/* Live dot (status: locked/session) */
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.live::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
}

.live.ok::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(91, 214, 143, 0.18);
}

.live.warn::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 192, 74, 0.2);
}

.live.err::before {
  background: #ff5c6e;
  box-shadow: 0 0 0 3px rgba(255, 92, 110, 0.22);
}

/* Status badges (st) */
.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.st::before {
  content: "";
  display: inline-block;
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.st-draft {
  background: rgba(245, 192, 74, 0.12);
  color: var(--amber);
}

.st-published {
  background: rgba(91, 214, 143, 0.12);
  color: var(--green);
}

.st-archived {
  background: rgba(176, 199, 217, 0.10);
  color: var(--muted);
}

.st-ok {
  background: rgba(82, 169, 255, 0.12);
  color: var(--blue);
}

.st-warn {
  background: rgba(255, 159, 90, 0.14);
  color: var(--orange);
}

.st-err {
  background: rgba(255, 92, 110, 0.14);
  color: #ff5c6e;
}

/* Tags clicáveis (filtros) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.01);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.tag:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.tag.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.42);
}

/* Form fields — estética terminal cockpit */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field .label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.field .label .counter {
  font-size: 11px;
  color: var(--dim);
}

.field input,
.field textarea,
.field select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  border-radius: 10px;
  padding: 11px 14px;
  font: 400 14.5px/1.5 var(--sans);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(82, 169, 255, 0.14);
}

.field textarea.monofont {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
}

.field .hint {
  font-size: 12px;
  color: var(--dim);
}

.field .error {
  font-size: 12px;
  color: #ff5c6e;
  font-family: var(--mono);
}

/* Input com ícone prefix */
.input-with-icon {
  position: relative;
}

.input-with-icon .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 13px;
  color: var(--dim);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 38px;
}

/* Grupo de botões no fim de formulário */
.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

.action-row .group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Tabela estilo terminal */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}

table.admin {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table.admin thead th {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--dim);
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.012);
}

table.admin tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--fg);
}

table.admin tbody tr:last-child td {
  border-bottom: none;
}

table.admin tbody tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

table.admin .title-cell {
  font-weight: 500;
}

table.admin .mono {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* Paginação mono */
.pag {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 0 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.pag button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.1s, color 0.1s;
}

.pag button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}

.pag button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Switch visual (destaque / publish) */
.switch {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--dim);
  transition: transform 0.18s ease-out, background 0.18s;
}

.switch.on {
  background: rgba(91, 214, 143, 0.2);
  border-color: rgba(91, 214, 143, 0.4);
}

.switch.on::after {
  transform: translateX(20px);
  background: var(--green);
}

/* Barra lateral do admin (shell) */
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.shell aside {
  border-right: 1px solid var(--line);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  gap: 28px;
  background: rgba(255, 255, 255, 0.008);
}

.shell aside .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}

.shell aside .brand .logo {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.shell aside .brand .name {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--fg);
  letter-spacing: 0.02em;
}

.shell aside nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shell aside nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  position: relative;
  transition: background 0.1s, color 0.1s;
}

.shell aside nav a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
}

.shell aside nav a.active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.045);
}

.shell aside nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 3px;
  background: var(--blue);
}

.shell aside .foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 8px;
}

.shell aside .foot .user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.shell aside .foot .user .av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(82, 169, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--blue);
}

.shell aside .foot .user .who {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell main {
  min-width: 0;
  padding: 28px 32px 56px;
}

.shell main .page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.shell main .page-head .copy h1 {
  margin: 0;
}

.shell main .page-head .copy p {
  color: var(--muted);
  margin-top: 8px;
  max-width: 640px;
}

/* 2 colunas em formulários (editor) */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-gap: 24px;
  gap: 24px;
  align-items: start;
}

/* Preview panel: garante renderização markdown igual ao site */
.preview-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 24px;
}

.preview-panel .heroArt {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.01);
}

/* Barra de ações top dashboard (filtros + busca + CTA criar) */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.toolbar .filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar .actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar .search {
  position: relative;
  width: 260px;
  max-width: 100%;
}

.toolbar .search input {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--fg);
  border-radius: 999px;
  padding: 9px 14px 9px 36px;
  font: 400 13.5px/1.4 var(--sans);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.toolbar .search input::placeholder {
  color: var(--dim);
}

.toolbar .search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(82, 169, 255, 0.14);
}

.toolbar .search .icon {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: var(--dim);
  width: 15px;
  height: 15px;
  pointer-events: none;
}

/* Login screen shake no auth fail */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake {
  animation: shake 260ms ease-in-out 1;
}

/* Categoria tag com accent no painel */
.cattag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  background: rgba(82, 169, 255, 0.1);
  color: var(--blue);
}

.cattag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

/* Ações célula tabela (editar / arquivar) */
.cell-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.cell-actions button,
.cell-actions a {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  transition: background 0.1s, color 0.1s;
}

.cell-actions button:hover,
.cell-actions a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.cell-actions .ghost-primary:hover {
  border-color: rgba(82, 169, 255, 0.5);
  color: var(--blue);
  background: rgba(82, 169, 255, 0.08);
}

/* ---------- Responsivo painel ---------- */
@media (max-width: 980px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .preview-panel {
    position: relative;
    top: 0;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .shell aside {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 14px 16px;
    gap: 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .shell aside nav {
    flex-direction: row;
    flex: 1 1;
    overflow-x: auto;
  }
  .shell aside nav a.active::before {
    left: auto;
    right: 7px;
    top: auto;
    bottom: 2px;
    width: 18px;
    height: 3px;
  }
  .shell aside .foot {
    margin-top: 0;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .shell aside .foot .user {
    padding: 4px 8px;
  }
  .shell main {
    padding: 22px 18px 40px;
  }
}

/* ==========================================================================
   NOVOS ESTILOS — Design System das páginas HTML de referência
   ========================================================================== */

/* ---------- Wrap com largura maior (editor) ---------- */
.wrap-lg {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav (header sticky no topo) ---------- */
.nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--fg);
  font-family: var(--sans);
}
.nav .brand .logo {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}
.nav .tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 10px;
  letter-spacing: 0;
  cursor: default;
  background: transparent;
}
.nav .nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav .who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.nav .av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  background: #0b0c0d;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  color: var(--fg);
}

/* ---------- Novo shell (sem sidebar) ---------- */
.shell-nav {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.shell-nav main {
  flex: 1 1;
  min-width: 0;
}

/* ---------- Stage (fundo do login com gradiente radial superior) ---------- */
.stage {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -160px;
  height: 620px;
  background: radial-gradient(48% 60% at 50% 0%, rgba(92, 140, 255, 0.30), transparent 74%);
  pointer-events: none;
}

/* ---------- Panel (login) — design limpo, sem panel-bar ---------- */
.panel-clean {
  position: relative;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  padding: 36px 32px 32px;
}
.panel-clean h1 {
  font-size: clamp(28px, 4vw, 34px);
}
.panel-clean .sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
}

/* ---------- Row between (login) ---------- */
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: 15px;
  height: 15px;
  accent-color: #fff;
}
.forgot {
  color: var(--muted);
}
.forgot:hover {
  color: #fff;
}

/* ---------- Note / msg de status (login) ---------- */
.note {
  min-height: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  text-align: center;
}
.note.err {
  color: var(--amber);
}

/* ---------- Security (login) ---------- */
.security {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.5;
}
.security svg {
  flex: none;
  width: 15px;
  height: 15px;
  stroke: var(--dim);
  fill: none;
  stroke-width: 1.6;
  margin-top: 1px;
}

/* ---------- Back (login) ---------- */
.back {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.back a:hover {
  color: #fff;
}

/* ---------- Head do editor (título + ações) ---------- */
.head {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.head h1 {
  font-size: clamp(26px, 3.4vw, 36px);
}
.head .sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---------- Layout do editor (2 colunas) ---------- */
.editor {
  padding: 36px 0 120px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-gap: 28px;
  gap: 28px;
  align-items: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---------- Card-box (cards numerados) ---------- */
.card-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  padding: 26px;
}
.card-box h2 {
  font-size: 14px;
  font-weight: 500;
  color: #e6e7e8;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
}
.card-box h2 .n {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
}
.card-box h2 .opt {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--dim);
}

/* ---------- Labels, helpers e counters (estilo referência) ---------- */
.ref-label {
  font-size: 13px;
  font-weight: 500;
  color: #e6e7e8;
  display: block;
  margin-bottom: 7px;
}
.ref-label .opt {
  color: var(--dim);
  font-weight: 400;
}
.help {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
.counter {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  text-align: right;
}

/* ---------- Slug row (URL exibida) ---------- */
.slug-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.slug-row code {
  color: #c9cbcc;
}

/* ---------- Chips (categorias coloridas) ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  --c: var(--blue);
}
.chip.ia { --c: var(--blue); }
.chip.automacao { --c: var(--green); }
.chip.ferramentas { --c: var(--orange); }
.chip.seguranca { --c: var(--amber); }
.chip.mercado { --c: var(--violet); }
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip label {
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: var(--sans);
}
.chip label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
}
.chip input:checked + label {
  background: #fff;
  color: #000;
  border-color: #fff;
}
.chip input:checked + label::before {
  background: #000;
}

/* ---------- Status select (Rascunho/Publicado) ---------- */
.status-select {
  display: flex;
  gap: 10px;
}
.status-opt {
  flex: 1 1;
  position: relative;
}
.status-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.status-opt label {
  margin: 0;
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  font-family: var(--sans);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.status-opt input:checked + label {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Toolbar (Markdown) ---------- */
.toolbar-md {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.tbtn {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-weight: 500;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s;
  font-family: var(--sans);
}
.tbtn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.tbtn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.btn-sm {
  height: 32px !important;
  padding: 0 13px !important;
  font-size: 12.5px !important;
}

/* ---------- Dropzone (upload de imagens) ---------- */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--blue);
  background: rgba(82, 169, 255, 0.05);
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone svg {
  width: 26px;
  height: 26px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 10px;
}
.dropzone .t {
  font-weight: 500;
  font-size: 13.5px;
  color: #e6e7e8;
}
.dropzone .d {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  margin-top: 5px;
}

/* ---------- Cover preview (capa) ---------- */
.cover-preview {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  height: 180px;
  background: #0b0c0d;
}
.cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-preview .rm {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--line-strong);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.cover-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
}
.cover-meta .ok {
  color: var(--green);
}

/* ---------- Galeria de imagens inline ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
  gap: 10px;
}
.gitem {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0b0c0d;
}
.gitem .thumb {
  height: 80px;
  position: relative;
}
.gitem .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gitem .thumb .rm {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--line-strong);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.gitem .info {
  padding: 7px 8px;
}
.gitem input {
  width: 100%;
  padding: 5px 7px;
  font-size: 11px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  outline: none;
}
.gitem .copy {
  width: 100%;
  margin-top: 6px;
  justify-content: center;
}
.gempty {
  grid-column: 1/-1;
  padding: 22px;
  text-align: center;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12.5px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

/* ---------- Limits (nota de segurança laranja) ---------- */
.limits {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 159, 90, 0.06);
  border: 1px solid rgba(255, 159, 90, 0.18);
  font-family: var(--mono);
  font-size: 12px;
  color: #e0b98d;
  display: flex;
  gap: 9px;
  line-height: 1.6;
}
.limits svg {
  flex: none;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  margin-top: 1px;
}

/* ---------- Preview sticky (coluna direita) ---------- */
.preview-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 88px;
}
.preview-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Card de preview (como aparece em /news) ---------- */
.pcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
}
.pthumb {
  height: 200px;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  overflow: hidden;
}
.pthumb.has-img {
  background-image: none;
}
.pthumb.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pthumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 80% at 50% 100%, var(--glow, transparent), transparent 72%);
}
.pthumb.has-img::before {
  display: none;
}
.pthumb svg {
  position: relative;
  width: 70%;
  height: 70%;
  stroke: rgba(255, 255, 255, 0.55);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pbody {
  padding: 24px;
}
.pcat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--c, #fff);
}
.pcat::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, #fff);
}
.pcard h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 16px 0 8px;
}
.pcard p {
  color: var(--muted);
  font-size: 15px;
}
.pmeta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
}
.placeholder {
  color: var(--dim);
  font-style: normal;
}

/* ---------- Security note (editor) ---------- */
.security-note {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.7;
}
.security-note b {
  color: #c9cbcc;
  font-weight: 500;
}

/* ---------- Ajustes responsivos novos ---------- */
@media (max-width: 980px) {
  .editor {
    grid-template-columns: 1fr;
  }
  .preview-sticky {
    position: static;
  }
}
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .head-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .panel-clean {
    padding: 30px 22px 26px;
  }
}

/* ---------- Inputs no estilo referência (label separada) ---------- */
.ref-field {
  margin-bottom: 18px;
}
.ref-field:last-child {
  margin-bottom: 0;
}
.ref-field input[type=text],
.ref-field input[type=email],
.ref-field input[type=password],
.ref-field textarea,
.ref-field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 14.5px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.ref-field textarea {
  resize: vertical;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
}
.ref-field input::placeholder,
.ref-field textarea::placeholder {
  color: var(--dim);
}
.ref-field input:focus,
.ref-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(82, 169, 255, 0.2);
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .shake { animation: none; }
}
