/* ClipFab — identidade visual
   Cores: tema escuro da OpenRouter (preto azulado + lima). Tipo: Archivo (eixo de largura: títulos
   largos, corpo normal). Elemento marcante: a esteira de produção no card da execução; o resto é quieto. */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..24,400..600,0..1,0&display=block');

:root {
  --bg: #03080A; --bg-side: #050A0C; --card: #080D0F; --raise: #0C1215; --text: #FCFCFE;
  --muted: #FCFCFEA0; --faint: #FCFCFE59; --line: #FCFCFE14; --line-2: #FCFCFE29; --field: #FCFCFE0A;
  --lime: #C8FF00; --lime-hover: #D4FF3D; --lime-soft: #C8FF0014; --lime-line: #C8FF0040; --lime-glow: #C8FF0066;
  --err: #FF2D55; --err-soft: #E11D4814; --err-line: #E11D4840;
  /* escala tipográfica (razão ~1,25 a partir de 15px) */
  --t-xs: .75rem; --t-sm: .8125rem; --t-base: .9375rem; --t-md: 1.0625rem; --t-lg: 1.375rem; --t-xl: 2.25rem;
  --r-panel: 14px; --r-ctl: 9px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--t-base)/1.55 'Archivo', system-ui, sans-serif; font-variation-settings: 'wdth' 100; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--lime); color: var(--bg); }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .85em; }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 10px 12px; font-size: var(--t-sm);
      color: var(--lime); white-space: pre-wrap; overflow-x: auto; }
.icon { font-family: 'Material Symbols Rounded'; font-size: 20px; line-height: 1; vertical-align: -4px; font-weight: normal;
        font-variation-settings: 'FILL' 0, 'wght' 400; user-select: none; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

/* ---------- layout ---------- */
.layout { display: flex; min-height: 100vh; }
.side { width: 236px; flex: none; background: var(--bg-side); border-right: 1px solid var(--line); padding: 24px 14px 18px;
        display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.main { flex: 1; min-width: 0; padding: 64px 40px 96px; }
.container { max-width: 760px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-weight: 800; font-size: 1.125rem;
         font-variation-settings: 'wdth' 118; letter-spacing: -0.01em; }
.brand small { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--faint); letter-spacing: 0;
               font-variation-settings: 'wdth' 100; margin-top: 1px; }
.mark { width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--lime); position: relative;
        box-shadow: 0 0 18px -2px var(--lime-glow); }
.mark::after { content: ''; position: absolute; inset: 6px 5px 6px 8px; background: var(--bg);
               clip-path: polygon(0 0, 100% 50%, 0 100%); }
.nav-title { font-size: var(--t-xs); color: var(--faint); padding: 0 10px; margin: 0 0 4px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; gap: 11px; align-items: center; color: var(--muted); padding: 8px 10px; border-radius: var(--r-ctl);
         font-size: .9rem; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: var(--field); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--lime-soft); color: var(--lime); }
.nav a.active .icon { font-variation-settings: 'FILL' 1, 'wght' 500; }
.side .spacer { flex: 1; }
.setup { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); color: var(--muted); padding: 10px 12px;
         border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); line-height: 1.4; }
.setup .icon { font-size: 18px; color: var(--lime); vertical-align: 0; }
.setup.todo .icon { color: var(--faint); }
.account { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 8px; font-size: var(--t-sm); color: var(--muted); }
.account b { color: var(--text); font-weight: 600; }
.account form { margin-left: auto; }

/* ---------- tipografia ---------- */
h1 { font-size: var(--t-xl); font-weight: 800; font-variation-settings: 'wdth' 116; letter-spacing: -0.025em; line-height: 1.05;
     margin: 0 0 .5rem; }
h2 { font-size: var(--t-md); font-weight: 700; font-variation-settings: 'wdth' 108; margin: 0 0 .25rem; letter-spacing: -0.005em; }
.sub { color: var(--muted); font-size: var(--t-md); margin: 0 0 2rem; max-width: 58ch; }
.muted { color: var(--muted); font-size: var(--t-sm); }
.faint { color: var(--faint); }
.title { font-weight: 600; font-size: var(--t-md); letter-spacing: -0.005em; line-height: 1.35; }
.section-label { color: var(--muted); font-size: var(--t-sm); font-weight: 600; margin: 2rem 0 .6rem; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* metadados em linha, sem "·": cada item é um span separado por espaço */
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: var(--t-sm); margin-top: 3px; }
.meta > span { display: inline-flex; align-items: center; gap: 5px; }
.meta .icon { font-size: 16px; vertical-align: 0; color: var(--faint); }

/* ---------- superfícies ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px 20px; margin-bottom: 14px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.item { padding: 16px 20px; }
.item + .item { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.row > .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
details { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
details > summary { cursor: pointer; font-size: .9rem; font-weight: 500; list-style: none; display: inline-flex; align-items: center;
                    gap: 4px; color: var(--muted); border-radius: 6px; }
details > summary:hover { color: var(--text); }
details > summary::before { content: 'chevron_right'; font-family: 'Material Symbols Rounded'; font-size: 20px;
                            transition: transform .18s var(--ease); }
details[open] > summary { color: var(--text); margin-bottom: 12px; }
details[open] > summary::before { transform: rotate(90deg); }
details > summary::-webkit-details-marker { display: none; }
details details { border-top: none; margin-top: 6px; padding-top: 0; }
.prose { font-size: .9rem; color: #FCFCFED0; max-width: 72ch; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--t-sm); margin: .6rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.prose h1 { font-size: 1.25rem; font-variation-settings: 'wdth' 108; } .prose h2 { font-size: 1.05rem; }

/* ---------- selos ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: var(--t-xs);
         font-weight: 600; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-live { background: var(--lime); color: var(--bg); }
.b-sched { background: var(--lime-soft); color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-line); }
.b-muted { background: var(--field); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.b-run { background: var(--field); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.b-run::before { background: var(--lime); animation: blink 1.4s ease-in-out infinite; }
.b-err { background: var(--err-soft); color: var(--err); box-shadow: inset 0 0 0 1px var(--err-line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 6px; background: var(--field);
        color: var(--muted); font-size: var(--t-xs); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip-lime { background: var(--lime-soft); color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-line); }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- esteira de produção (o elemento marcante) ---------- */
.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.belt { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; margin: 18px 0 6px; }
.belt .st { min-width: 0; }
.belt .st i { display: block; height: 10px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line); }
.belt .st:first-child i { border-radius: 5px 0 0 5px; }
.belt .st:last-child i { border-radius: 0 5px 5px 0; }
.belt .st b { display: block; margin-top: 8px; font-size: var(--t-xs); font-weight: 500; color: var(--faint);
              white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.belt .s-done i { background: var(--lime); box-shadow: none; }
.belt .s-done b { color: var(--muted); }
.belt .s-now i { box-shadow: inset 0 0 0 1px var(--lime-line), 0 0 14px -4px var(--lime-glow);
  background: repeating-linear-gradient(-45deg, var(--lime) 0 6px, #C8FF0055 6px 12px); background-size: 17px 17px;
  animation: belt 0.9s linear infinite; }
.belt .s-now b { color: var(--lime); font-weight: 700; }
@keyframes belt { to { background-position: 17px 0; } }
.now { display: flex; gap: 8px; align-items: baseline; margin-top: 14px; font-size: var(--t-sm); color: var(--muted); }
.now .icon { font-size: 16px; color: var(--lime); vertical-align: 0; }
.step { color: #FCFCFE80; font-size: var(--t-sm); line-height: 1.55; word-break: break-word; padding: 3px 0; }
.recent { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0;
          border-bottom: 1px solid var(--line); font-size: .9rem; }
.recent:last-child { border-bottom: none; }
.recent .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent .r { display: flex; gap: 12px; align-items: center; white-space: nowrap; }

/* ---------- formulários ---------- */
label, .label { display: block; font-size: var(--t-sm); font-weight: 500; color: var(--muted); margin-bottom: 7px; }
input[type=text], input[type=password], input[type=date], input[type=time], input[type=number], input:not([type]), select, textarea {
  width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  padding: 10px 12px; font: inherit; font-size: .9375rem; outline: none; color-scheme: dark;
  transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #FCFCFE40; }
input:focus, select:focus, textarea:focus { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23FCFCFE99' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
select option { background: var(--card); }
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .9375rem; font-weight: 400; cursor: pointer; margin: 0; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 5px; cursor: pointer;
               border: 1.5px solid #FCFCFE66; background: transparent; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check input:hover { border-color: var(--lime); }
.check input:checked { background: var(--lime); border-color: var(--lime); }
.check input:checked::after { content: ''; width: 9px; height: 5px; border: solid var(--bg); border-width: 0 0 2px 2px;
                              transform: translateY(-1px) rotate(-45deg); }
.hint { color: var(--faint); font-size: var(--t-sm); margin-top: 7px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: var(--r-ctl); padding: 9px 16px;
       font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; border: 1px solid var(--line-2);
       background: transparent; color: var(--text); white-space: nowrap; text-decoration: none;
       transition: border-color .15s, color .15s, background .15s, transform .1s; }
.btn:hover { border-color: var(--lime); color: var(--lime); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .icon { font-size: 18px; vertical-align: 0; }
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--bg); }
.btn-primary:hover { background: var(--lime-hover); border-color: var(--lime-hover); color: var(--bg); }
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-ghost:hover { border-color: transparent; background: var(--field); color: var(--text); }
.btn-danger:hover { border-color: var(--err); color: var(--err); }
.btn-ghost.btn-danger:hover { background: var(--err-soft); }
.btn:disabled, .btn:disabled:hover { background: var(--field); border-color: var(--line); color: var(--faint); cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 20px; font-size: 1rem; }
.btn-sm { padding: 6px 11px; font-size: var(--t-sm); gap: 5px; }
.btn-sm .icon { font-size: 17px; }
.btn-icon { padding: 7px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }

/* seletor em pílulas (nicho, filtros) */
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label, .pills a { margin: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  font-size: var(--t-sm); font-weight: 500; color: var(--muted); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color .15s, box-shadow .15s, background .15s; }
.pills label:hover, .pills a:hover { color: var(--text); box-shadow: inset 0 0 0 1px #FCFCFE55; text-decoration: none; }
.pills input:checked + label, .pills a.on { background: var(--lime-soft); color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.pills input:focus-visible + label { outline: 2px solid var(--lime); outline-offset: 2px; }
.pills .n { color: var(--faint); font-variant-numeric: tabular-nums; }
.pills a.on .n { color: var(--lime); opacity: .7; }

/* ---------- avisos (toasts de sucesso somem sozinhos) ---------- */
.msgs { position: fixed; top: 18px; right: 18px; z-index: 50; display: grid; gap: 8px; width: min(380px, calc(100vw - 36px)); }
.msg { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-ctl); padding: 11px 12px 11px 14px; font-size: .9rem;
       border: 1px solid; background: var(--raise); box-shadow: 0 10px 30px -10px #000; animation: toast-in .25s var(--ease); }
.msg > span { flex: 1; }
.msg button { background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0; line-height: 1; }
.msg button:hover { opacity: 1; }
.msg.out { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.msg-success { border-color: var(--lime-line); color: var(--lime); }
.msg-error { border-color: var(--err-line); color: #FF7A93; }
.msg-info, .msg-warning { border-color: var(--line-2); color: var(--text); }
.note { border-radius: var(--r-ctl); padding: 11px 14px; font-size: .9rem; margin: 0 0 16px; border: 1px solid var(--line-2);
        background: var(--field); }
.note-error { background: var(--err-soft); border-color: var(--err-line); color: #FF7A93; }
.note-ok { background: var(--lime-soft); border-color: var(--lime-line); color: var(--lime); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- filtros ---------- */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 11px; background: var(--card);
        box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 20px; }
.tabs a { display: inline-flex; gap: 7px; align-items: center; padding: 6px 13px; color: var(--muted); font-size: var(--t-sm);
          font-weight: 500; border-radius: 8px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { background: var(--lime-soft); color: var(--lime); }
.tabs .n { color: var(--faint); font-variant-numeric: tabular-nums; }
.tabs a.on .n { color: var(--lime); opacity: .7; }

/* ---------- criar ---------- */
.composer { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 6px; }
.composer textarea { border: 0; background: transparent; min-height: 150px; font-size: var(--t-md); padding: 14px 14px 8px; box-shadow: none; }
.composer textarea:focus { box-shadow: none; }
.composer:focus-within { border-color: var(--lime-line); box-shadow: 0 0 0 3px var(--lime-soft); }
.composer .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 8px;
                  border-top: 1px solid var(--line); flex-wrap: wrap; }
.field-group { margin-top: 22px; }

/* ---------- ideias e vídeos (linhas numa lista) ---------- */
.idea .hook { color: var(--muted); font-size: .9rem; margin-top: 3px; max-width: 64ch; }
.idea .acts { display: flex; gap: 4px; align-self: center; }
.video .thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.empty { text-align: center; padding: 42px 20px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-panel); }
.empty .icon { font-size: 32px; color: var(--faint); display: block; margin: 0 auto 10px; }

/* ---------- configurações: seções em duas colunas ---------- */
.sect { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.sect:first-of-type { border-top: 0; padding-top: 4px; }
.sect > header h2 { display: flex; align-items: center; gap: 8px; }
.sect > header p { color: var(--muted); font-size: var(--t-sm); margin: 4px 0 12px; }
.sect > .body { min-width: 0; }
.sect > .body > * + * { margin-top: 16px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; }
.inline-form > div { flex: 1; min-width: 0; }
.tool { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: .9rem; }
.tool .icon { font-size: 18px; vertical-align: -3px; }
.ok { color: var(--lime); } .bad { color: var(--err); }

/* vozes: lista estilo playlist, com player próprio */
.voices { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.voice { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(90px, 180px) 20px; gap: 14px;
         align-items: center; padding: 11px 14px; margin: 0; color: var(--text); font-size: var(--t-base); font-weight: 400;
         cursor: pointer; transition: background .15s; }
.voice + .voice { border-top: 1px solid var(--line); }
.voice:hover { background: var(--field); }
.voice input { position: absolute; opacity: 0; pointer-events: none; }
.voice:has(input:checked) { background: var(--lime-soft); }
.voice:has(input:checked)::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--lime); }
.voice:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: -2px; }
.voice .who { display: block; min-width: 0; }
.voice .name { display: block; font-weight: 700; font-size: .95rem; font-variation-settings: 'wdth' 108; }
.voice .about { display: block; font-size: var(--t-sm); color: var(--muted); line-height: 1.35; }
.voice .track { display: flex; align-items: center; gap: 10px; }
.voice .wave { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; cursor: pointer; }
.voice .wave span { display: block; height: 100%; width: 0; background: var(--lime); }
.voice .time { font-size: var(--t-xs); color: var(--faint); font-variant-numeric: tabular-nums; min-width: 2.4em; text-align: right; }
.voice.playing .time { color: var(--lime); }
.voice .tick { font-family: 'Material Symbols Rounded'; font-size: 20px; color: var(--lime); opacity: 0; transform: scale(.6);
               transition: opacity .15s, transform .2s var(--ease); font-variation-settings: 'FILL' 1; }
.voice:has(input:checked) .tick { opacity: 1; transform: none; }
.play { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; padding: 0;
        background: var(--text); color: var(--bg); transition: transform .12s, background .15s, box-shadow .15s; }
.play:hover { background: var(--lime); transform: scale(1.06); }
.play:active { transform: scale(.96); }
.play .icon { font-size: 22px; vertical-align: 0; font-variation-settings: 'FILL' 1; }
.voice.playing .play { background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
@media (max-width: 560px) {
  .voice { grid-template-columns: 38px minmax(0, 1fr) 20px; row-gap: 8px; }
  .voice .track { grid-column: 2 / 3; grid-row: 2; }
}
.quota { display: grid; gap: 8px; }
.meter { height: 6px; border-radius: 6px; background: var(--field); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--lime); border-radius: 6px; }
.meter.high span { background: var(--err); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--faint); }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.on { color: var(--lime); }
.status.on::before { box-shadow: 0 0 8px var(--lime-glow); }
.status.warn { color: var(--err); }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth .box { width: 100%; max-width: 380px; }
.auth .brand { font-size: 1.5rem; padding: 0; margin-bottom: 26px; }
.auth .mark { width: 30px; height: 30px; border-radius: 8px; }
.auth .mark::after { inset: 8px 7px 8px 11px; }

/* ---------- guia ---------- */
.stepcard { display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.stepcard:first-of-type { border-top: 0; }
.stepcard .n { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--lime-line); color: var(--lime);
               font-weight: 700; font-size: var(--t-sm); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.stepbody { color: #FCFCFEC0; font-size: .9rem; margin-top: 3px; max-width: 68ch; }
.flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--faint); margin: .8rem 0 1.2rem; font-size: var(--t-xs); }
.flow span { color: var(--lime); background: var(--lime-soft); box-shadow: inset 0 0 0 1px var(--lime-line); padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.checklist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tabbar { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 24px 0 8px; }
.tabbar a { padding: 9px 14px; color: var(--muted); font-size: .9rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabbar a:hover { color: var(--text); text-decoration: none; }
.tabbar a.on { color: var(--lime); border-bottom-color: var(--lime); }
.bar { height: 4px; background: var(--field); border-radius: 4px; overflow: hidden; margin: 12px 0 0; }
.bar > span { display: block; height: 100%; background: var(--lime); transition: width .4s var(--ease); }

.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }

/* ---------- celular ---------- */
@media (max-width: 860px) {
  .sect { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 820px) {
  .layout { flex-direction: column; }
  .side { width: auto; height: auto; position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; gap: 6px;
          padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .brand small, .side .spacer, .side .setup, .nav-title, .account span { display: none; }
  .brand { padding: 0 8px 0 2px; }
  .side > div { flex: none; }
  .nav { display: flex; gap: 2px; }
  .nav a { padding: 7px 9px; font-size: var(--t-sm); gap: 6px; }
  .nav a .icon { font-size: 18px; }
  .account { padding: 0; margin-left: auto; }
  .main { padding: 32px 16px 72px; }
  h1 { font-size: 1.75rem; }
  .sub { font-size: var(--t-base); }
  .grid2 { grid-template-columns: 1fr; }
  .item { padding: 14px 16px; }
  .belt { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); row-gap: 10px; }
  .belt .st i { border-radius: 5px !important; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .idea .row { align-items: flex-start; }
  .nav a:not(.active) .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav a:not(.active) { padding: 8px; }
  .composer .foot .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
