/* Painel de gestão */
body.adm { font-size: 14px; line-height: 1.45; }
.adm-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.adm-side { position: sticky; top: 0; height: 100vh; background: #0D1220; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px; }
.adm-side .wordmark { margin: 2px 10px 0; }
.adm-side .sub { padding: 6px 10px 0 10px; font-size: 12px; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 26px; }
.adm-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--mut); text-decoration: none; font-weight: 500; position: relative; }
.adm-nav a:hover { background: var(--panel); color: var(--fg); }
.adm-nav a.on { background: var(--panel); color: var(--fg); }
.adm-nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; background: var(--brand-grad); border-radius: 0 3px 3px 0; }
.adm-nav svg { width: 17px; height: 17px; }
.adm-nav .grp { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 18px 10px 6px; }
.adm-nav .fitem { font-size: 13px; }
.adm-nav .fitem span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-nav .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--dim); }
.adm-nav .dot.active { background: var(--up); }
.adm-nav .dot.closed { background: var(--mid); }
.adm-user { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 10px 0; font-size: 13px; color: var(--mut); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.adm-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-main { min-width: 0; }
.adm-page { padding: 30px 36px 60px; max-width: 1320px; }
.adm-page.wide { max-width: none; }

h1.adm-h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 34px; line-height: 1; margin: 0; letter-spacing: .01em; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.adm-head p { margin: 6px 0 0; color: var(--mut); }
.crumb { font-size: 13px; color: var(--mut); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.crumb:hover { color: var(--fg); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--panel-2); border-color: #4a4f57; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--brand-grad); color: var(--brand-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.primary[disabled] { background: var(--panel); color: var(--dim); border-color: var(--line); cursor: default; filter: none; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--mut); }
.btn.ghost:hover { background: var(--panel); color: var(--fg); }
.btn.danger { color: var(--down); }
.btn.danger:hover { background: rgba(255,91,77,.08); border-color: rgba(255,91,77,.4); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 34px; padding: 0; }
.btn.sm.icon { width: 30px; }

/* cartões e números */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.card-pad { padding: 18px 20px; }
.card h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 16px 18px; }
.kpi .lb { font-size: 12px; color: var(--mut); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.kpi .v { font-family: var(--font-display); font-size: 38px; font-weight: 700; line-height: 1.05; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12px; color: var(--dim); margin-top: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.06); color: var(--mut); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.active, .pill.aprovado { background: rgba(47,210,122,.12); color: var(--up); }
.pill.closed, .pill.em_analise { background: rgba(255,170,43,.12); color: var(--mid); }
.pill.recusado { background: rgba(255,91,77,.12); color: var(--down); }
.pill.novo { background: rgba(127,162,255,.12); color: var(--info); }
.pill.partial { background: rgba(255,255,255,.06); color: var(--mut); }
.pill.plain::before { display: none; }

/* tabela */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: var(--panel-2); }
.tbl tbody tr.on { background: rgba(var(--brand-rgb), .05); box-shadow: inset 3px 0 0 var(--brand); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .ttl { font-weight: 600; font-size: 15px; }
.tbl .sub { font-size: 12px; color: var(--dim); }
.tbl .acts { text-align: right; white-space: nowrap; }
.tbl .clip { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.empty { padding: 56px 20px; text-align: center; color: var(--mut); }
.empty b { display: block; color: var(--fg); font-size: 17px; margin-bottom: 6px; }

/* abas e segmentos */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { padding: 11px 14px; color: var(--mut); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--fg); }
.tabs a.on { color: var(--fg); border-image: var(--brand-grad) 1; border-bottom-width: 2px; border-bottom-style: solid; }
.tabs .cnt { font-size: 11px; background: var(--panel-2); border-radius: 999px; padding: 1px 7px; color: var(--mut); }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { height: 28px; padding: 0 11px; border-radius: 6px; border: 0; background: transparent; color: var(--mut); font-weight: 600; font-size: 13px; white-space: nowrap; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--panel-2); color: var(--fg); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.seg.status button.on[data-v="active"] { color: var(--up); }
.seg.status button.on[data-v="closed"] { color: var(--mid); }

/* formulários do painel */
.fld { margin-bottom: 16px; }
.fld > label, .lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); margin-bottom: 7px; }
.fld .hint { font-size: 12px; color: var(--dim); margin-top: 6px; }
.fld .hint code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; color: var(--fg); }
.inp, .sel, .ta { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; color: var(--fg); font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.inp:focus, .sel:focus, .ta:focus { border-color: #5a5f67; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.ta { resize: vertical; min-height: 70px; line-height: 1.45; }
.ta.title { font-size: 17px; font-weight: 500; min-height: 54px; }
.sel { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23A7ABB3' stroke-width='2'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; padding-right: 30px; }
.inp-prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.inp-prefix span { padding: 0 4px 0 11px; color: var(--dim); white-space: nowrap; font-size: 14px; }
.inp-prefix .inp { border: 0; padding-left: 0; box-shadow: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; cursor: pointer; }
.tgl .t { font-weight: 600; }
.tgl .s { font-size: 12px; color: var(--dim); }
.sw { position: relative; width: 38px; height: 22px; flex: none; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw i { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); transition: transform .2s var(--ease); }
.sw input:checked + i { background: var(--brand-grad); }
.sw input:checked + i::after { transform: translateX(16px); background: var(--brand-ink); }
.sw input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }

/* workspace */
.ws-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.ws-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ws-title input { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 30px; background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 0 6px; margin-left: -7px; color: var(--fg); min-width: 120px; max-width: 560px; outline: none; }
.ws-title input:hover { border-color: var(--line); }
.ws-title input:focus { border-color: var(--line-2); background: var(--bg); }
.ws-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dirty-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: none; }
.is-dirty .dirty-dot { display: inline-block; }

/* editor */
.ed { display: grid; grid-template-columns: 290px minmax(360px, 1fr) minmax(380px, 470px); gap: 18px; align-items: start; }
.ed-col { min-width: 0; }
.outline { padding: 8px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.ol-sec { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding: 12px 10px 6px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.ol-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; position: relative; user-select: none; }
.ol-item:hover { background: var(--panel-2); }
.ol-item.on { background: var(--bg); border-color: var(--line-2); }
.ol-item.on::before { content: ""; position: absolute; left: -9px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.ol-item .ic { flex: none; width: 28px; height: 22px; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--panel-2); color: var(--mut); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ol-item.on .ic { background: var(--brand-grad); color: var(--brand-ink); border-color: transparent; }
.ol-item .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.ol-item .bd { font-size: 10px; color: var(--info); border: 1px solid rgba(127,162,255,.35); padding: 0 5px; border-radius: 4px; }
.ol-item .rq { color: var(--brand); font-size: 12px; }
.ol-item.drag-over { box-shadow: 0 -2px 0 var(--brand); }
.ol-item.dragging { opacity: .4; }
.ol-add { margin: 6px 4px 4px; width: calc(100% - 8px); justify-content: flex-start; color: var(--mut); border-style: dashed; background: transparent; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 4px; }
.types button { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); text-align: left; font-size: 13px; }
.types button:hover { border-color: var(--brand); }
.types .ic { width: 24px; height: 20px; border-radius: 4px; display: grid; place-items: center; font-size: 10px; font-weight: 700; background: var(--panel-2); color: var(--mut); }

.props { padding: 20px 22px; }
.props-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.props-head h2 { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.opt-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.opt-row .k { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--mut); flex: none; }
.opt-row .inp { padding: 7px 10px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.logic-rule { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin-bottom: 8px; }
.logic-rule .full { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; }
.logic-rule .full > span { font-size: 12px; color: var(--mut); white-space: nowrap; }
.logic-rule .sel, .logic-rule .inp { padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
.logic-else { font-size: 12px; color: var(--dim); margin-bottom: 10px; }

.pv { position: sticky; top: 16px; }
.pv-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pv-bar .lbl { margin: 0; }
.pv-frame { position: relative; border-radius: 14px; border: 1px solid var(--line-2); overflow: hidden; background: var(--bg); box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); margin: 0 auto; }
.pv-frame iframe { border: 0; display: block; transform-origin: 0 0; }
.pv-note { font-size: 12px; color: var(--dim); margin-top: 10px; text-align: center; }

/* respostas */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--dim); }
.search .inp { padding-left: 32px; width: 240px; height: 36px; }
.star-btn { background: none; border: 0; color: var(--line-2); padding: 2px; display: inline-flex; }
.star-btn svg { width: 17px; height: 17px; }
.star-btn.on { color: var(--brand); }
.mini-prog { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); }
.mini-prog i { width: 46px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; display: inline-block; }
.mini-prog i b { display: block; height: 100%; background: var(--mut); }

.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; opacity: 0; transition: opacity .25s; }
.drawer-bg.on { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 100vw); background: #0F1524; border-left: 1px solid var(--line-2); z-index: 41; transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.drawer-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.drawer-head .sub { font-size: 12px; color: var(--mut); margin-top: 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 30px; }
.review { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 20px; }
.review button { height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--mut); font-weight: 600; font-size: 13px; }
.review button:hover { color: var(--fg); border-color: var(--line-2); }
.review button.on[data-v="novo"] { border-color: var(--info); color: var(--info); background: rgba(127,162,255,.08); }
.review button.on[data-v="em_analise"] { border-color: var(--mid); color: var(--mid); background: rgba(255,170,43,.08); }
.review button.on[data-v="aprovado"] { border-color: var(--up); color: var(--up); background: rgba(47,210,122,.08); }
.review button.on[data-v="recusado"] { border-color: var(--down); color: var(--down); background: rgba(255,91,77,.08); }
.qa { padding: 12px 0; border-bottom: 1px solid var(--line); }
.qa .q { font-size: 12px; color: var(--mut); margin-bottom: 4px; display: flex; gap: 8px; }
.qa .q b { color: var(--dim); font-weight: 600; }
.qa .a { font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.qa .a.none { color: var(--dim); font-style: italic; }
.meta-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.meta-grid span:nth-child(odd) { color: var(--mut); }
.meta-grid span:nth-child(even) { overflow-wrap: anywhere; }

/* análises */
.an-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 14px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr auto; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 13px; }
.hbar .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .t { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.hbar .t i { display: block; height: 100%; background: var(--fg); border-radius: 5px; transition: width .7s var(--ease); }
.hbar .t i.brand { background: linear-gradient(90deg, #574FDB, #4C81E6 55%, #3DCBF3); }
.hbar .v { font-variant-numeric: tabular-nums; color: var(--mut); font-size: 12px; text-align: right; min-width: 84px; }
.hbar .v b { color: var(--fg); }
.funnel .hbar { grid-template-columns: 30px minmax(120px, 1.6fr) 2fr auto; }
.funnel .drop { color: var(--down); font-size: 11px; }
.qcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.qcard h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.qcard .sub { font-size: 12px; color: var(--dim); margin-bottom: 14px; }
.big-n { font-family: var(--font-display); font-size: 46px; font-weight: 700; line-height: 1; }
.nps-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin: 12px 0 8px; background: var(--bg); }
.nps-bar i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--mut); flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--c); }
.txt-list { list-style: none; margin: 0; padding: 0; }
.txt-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--fg); }
.txt-list li:last-child { border: 0; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .ax { fill: var(--dim); font-size: 10px; font-family: var(--font); }

/* configurações */
.cfg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.cfg .card { padding: 20px 22px; }
.cfg h3 { margin-bottom: 16px; }
.deliv { font-size: 12px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.deliv div { display: flex; gap: 8px; padding: 4px 0; color: var(--mut); }
.deliv .ok { color: var(--up); }
.deliv .bad { color: var(--down); }

/* modal e toast */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; display: grid; place-items: center; padding: 20px; animation: fadeIn .2s; }
.modal { width: min(680px, 100%); max-height: 90vh; overflow-y: auto; background: #111727; border: 1px solid var(--line-2); border-radius: 14px; padding: 24px; animation: popIn .3s var(--ease); }
.modal h2 { margin: 0 0 6px; font-family: var(--font-display); text-transform: uppercase; font-size: 26px; }
.modal .lead { color: var(--mut); margin: 0 0 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tpl { text-align: left; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); transition: border-color .15s; }
.tpl:hover { border-color: var(--line-2); }
.tpl.on { border-color: var(--brand); background: rgba(var(--brand-rgb), .05); }
.tpl b { display: block; margin-bottom: 4px; font-size: 15px; }
.tpl span { font-size: 13px; color: var(--mut); }
.copy-row { display: flex; gap: 8px; }
.copy-row .inp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: popIn .3s var(--ease); }
.toast.err { background: var(--down); color: #fff; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 500px at 80% -10%, rgba(var(--brand-rgb), .07), transparent 60%); }
.login form { width: min(380px, 100%); }
.login h1 { font-family: var(--font-display); text-transform: uppercase; font-size: 40px; margin: 22px 0 6px; line-height: 1; }
.login p { color: var(--mut); margin: 0 0 24px; }
.login .btn { width: 100%; height: 42px; margin-top: 6px; }
.login .err { color: var(--down); font-size: 13px; min-height: 18px; margin-top: 10px; }

.spin { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 80px; }

@media (max-width: 1280px) { .ed { grid-template-columns: 250px 1fr; } .ed .pv { display: none; } .pv-toggle { display: inline-flex !important; } }
@media (max-width: 980px) {
  .adm-shell { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; align-items: center; padding: 12px 16px; gap: 16px; }
  .adm-side .sub, .adm-nav .grp, .adm-nav .fitem { display: none; }
  .adm-nav { display: flex; }
  .adm-user { margin: 0 0 0 auto; border: 0; padding: 0; }
  .adm-page { padding: 22px 16px 50px; }
  .ed, .an-grid, .cfg { grid-template-columns: 1fr; }
  .outline { position: static; max-height: none; }
  .qcards { grid-template-columns: 1fr; }
}
@media (min-width: 981px) { .adm-shell { background: linear-gradient(90deg, #0D1220 231px, var(--line) 231px, var(--line) 232px, transparent 232px); } }

/* temas */
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.th-card { display: block; text-decoration: none; overflow: hidden; transition: border-color .15s, transform .15s var(--ease); }
.th-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.th-meta { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.th-meta .sub { font-size: 12px; color: var(--dim); }
.th-sw { position: relative; height: 170px; background: var(--bg); color: var(--fg); font-family: var(--font); overflow: hidden; border-bottom: 1px solid var(--line); }
.th-sw-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.th-sw-img::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--bg-overlay); }
.th-sw-in { position: relative; padding: 18px 20px; }
.th-sw-in img { height: 16px; display: block; margin-bottom: 18px; }
.th-sw-name { display: block; font-family: var(--font-display); font-size: 14px; margin-bottom: 18px; }
.th-sw-t { font-family: var(--font-display); font-weight: var(--title-weight); text-transform: var(--title-transform); font-size: 22px; line-height: 1.05; }
.th-sw-p { color: var(--mut); font-size: 13px; margin: 6px 0 14px; }
.th-sw-row { display: flex; gap: 8px; align-items: center; }
.th-sw-btn { background: var(--brand-grad); color: var(--brand-ink); padding: 6px 12px; border-radius: var(--btn-radius); font-size: 12px; font-weight: 700; }
.th-sw-opt { border: 1px solid var(--brand); background: var(--panel); padding: 5px 12px; border-radius: var(--radius); font-size: 12px; }
.th-ed { display: grid; grid-template-columns: minmax(380px, 520px) 1fr; gap: 18px; align-items: start; }
.th-ed .props h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.th-ed .pv-bar { flex-wrap: wrap; gap: 8px; }
.clr { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.clr input[type="color"] { width: 40px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 3px; cursor: pointer; }
.clr .inp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; text-transform: uppercase; }
.acc-bar { height: 10px; border-radius: 5px; margin: 10px 0 4px; }
.img-up { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; min-height: 64px; border: 1px dashed var(--line-2); border-radius: 10px; background: var(--bg); }
.img-up img { max-height: 44px; max-width: 60%; object-fit: contain; }
.img-up.logo { background: repeating-conic-gradient(#1b2335 0 25%, #141b2b 0 50%) 0 0 / 16px 16px; }
.img-acts { display: flex; gap: 6px; }
.th-warn { margin: 6px 0 4px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,170,43,.35); background: rgba(255,170,43,.08); color: var(--mid); font-size: 13px; display: grid; gap: 4px; }
.th-ok { margin: 6px 0 4px; font-size: 13px; color: var(--up); }
input[type="range"] { width: 100%; accent-color: var(--brand); }
@media (max-width: 1100px) { .th-ed { grid-template-columns: 1fr; } }
