/* =========================================================================
   Painel KAON — no idioma visual do site (Outfit, fino/normal, roxo #6230BD)
   ========================================================================= */
:root {
  --bg: #f2f2f2; --surface: #fff; --surface-2: #f7f7f7; --surface-3: #efefef;
  --line: #e5e5e5; --line-2: #d6d6d6;
  --text: #000; --text-2: rgba(0, 0, 0, .62); --muted: rgba(0, 0, 0, .42);
  --accent: #6230bd; --accent-2: #7443d6; --accent-soft: rgba(98, 48, 189, .1);
  --ok: #1f9d55; --warn: #c98a00; --danger: #d0342c;
  --r: 14px; --side: 250px; --top: 72px;
  --f: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0, 0, .3642, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 300 15px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -.01em; line-height: 1.15; }
p { margin: 0 0 10px; }
b, strong { font-weight: 500; }
.thin { font-weight: 100; }
.muted { color: var(--muted); }
.ic { flex-shrink: 0; display: block; }
.eyebrow, .crumb, .side_group, .field > span, .insp_section, .labels, .block_menu_title, .home_toc b {
  text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 500;
}
::selection { background: rgba(98, 48, 189, .25); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 40px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 11.5px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: all .2s var(--ease); }
.btn:hover { border-color: #000; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: default; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-primary:disabled { background: #e8e8e8; border-color: #e8e8e8; color: var(--muted); opacity: 1; }
.btn-primary:disabled .arr { background: #cfcfcf; }
.btn-arrow { padding-right: 5px; padding-left: 22px; gap: 14px; }
.btn-arrow .arr { width: 30px; height: 30px; border-radius: 50%; background: #000; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: normal; transition: transform .3s var(--ease); }
.btn-arrow:hover .arr { transform: translateX(3px); }
.btn-light { background: var(--surface); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; color: #000; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.danger { color: var(--danger) !important; }
.btn-glass { background: rgba(255, 255, 255, .88); border-color: transparent; color: #000; backdrop-filter: blur(6px); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 10.5px; }
.btn-xs { height: 26px; padding: 0 8px; font-size: 10px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 12px; }
.btn-lg.btn-arrow { padding-right: 6px; }
.btn-lg .arr { width: 38px; height: 38px; }
.btn-icon { padding: 0; width: 40px; }
.btn-icon.btn-sm { width: 32px; } .btn-icon.btn-xs { width: 26px; }
.btn-block { width: 100%; }
.btn.loading { color: transparent !important; position: relative; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(0,0,0,.2); border-top-color: #000; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link_more { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 500; text-decoration: none; color: #000; }
.link_more .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--surface-3); transition: transform .2s; }
.link_more:hover .ic { transform: translateX(3px); background: var(--accent); }

/* ---------- campos ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; min-width: 0; }
.field > span { color: var(--muted); }
.field > span:empty { display: none; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; color: #000;
  padding: 11px 14px; font: 300 15px/1.45 var(--f); outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { resize: vertical; min-height: 44px; }
input::placeholder, textarea::placeholder { color: rgba(0, 0, 0, .3); }
input:hover, textarea:hover { border-color: var(--line-2); }
input:focus, textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.hint { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.hint a, .muted a { color: var(--accent); }
.hint b { color: #000; font-weight: 500; }
.input_group { display: flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.input_group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.input_group em { font-style: normal; color: var(--muted); padding: 0 10px; display: flex; align-items: center; font-size: 13px; }
.input_group input { border: 0; border-radius: 0; box-shadow: none !important; background: transparent; padding-left: 0; padding-right: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: var(--surface-3); border-radius: 30px; align-self: flex-start; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--text-2); padding: 7px 13px; border-radius: 30px; cursor: pointer; font-size: 13px; font-weight: 400; transition: all .15s; }
.seg button:hover { color: #000; }
.seg button.on { background: #000; color: #fff; }
.seg-icons button { padding: 7px 10px; }
.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin: 0 0 20px; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle_ui { width: 40px; height: 22px; border-radius: 22px; background: #d6d6d6; position: relative; flex-shrink: 0; transition: background .2s; margin-top: 1px; }
.toggle_ui::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + .toggle_ui { background: var(--accent); }
.toggle input:checked + .toggle_ui::after { transform: translateX(18px); }
.toggle_text { display: flex; flex-direction: column; }
.toggle_text b { font-weight: 500; font-size: 14px; }
.toggle_text small { color: var(--muted); font-size: 13px; }
.toggle_text a { color: var(--accent); }

/* título fino/normal */
.hl_wrap { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); transition: border-color .15s, box-shadow .15s; position: relative; }
.hl_wrap:focus-within { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.hl_input { padding: 12px 14px 12px; min-height: 48px; outline: none; font-size: 26px; line-height: 1.15; font-weight: 400; letter-spacing: -.01em; }
.hl_wrap.xl .hl_input { font-size: 34px; }
.hl_wrap.sm .hl_input { font-size: 17px; line-height: 1.4; }
.hl_wrap.dark { background: #000; border-color: #000; }
.hl_wrap.dark .hl_input { color: #fff; }
.hl_input i, .hl_input em { font-style: normal; font-weight: 100; }
.hl_tools { display: flex; gap: 4px; padding: 0 8px 8px; }
.hl_tools button { border: 1px solid var(--line-2); background: #fff; border-radius: 20px; padding: 3px 11px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; color: #000; }
.hl_tools button:first-child { font-weight: 100; }
.hl_tools button:hover { border-color: var(--accent); color: var(--accent); }
.hl_wrap.dark .hl_tools button { background: #1a1a1a; border-color: #333; color: #fff; }
[data-ph]:empty::before { content: attr(data-ph); color: rgba(0, 0, 0, .25); pointer-events: none; }
.hl_wrap.dark [data-ph]:empty::before { color: rgba(255,255,255,.3); }
.form_rich { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: none; min-height: 140px; }
.form_rich:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.form_rich p { margin: 0 0 12px; }

/* mídia */
.media_field { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1.5px dashed var(--line-2); cursor: pointer; aspect-ratio: 16 / 10; transition: border-color .15s; }
.media_field.has { border-style: solid; border-color: var(--line); }
.media_field:hover, .media_field.drop { border-color: var(--accent); }
.media_field.r-thumb { aspect-ratio: 4 / 3; } .media_field.r-portrait { aspect-ratio: 3 / 4; } .media_field.r-wide { aspect-ratio: 21 / 9; }
.media_field.r-logo { aspect-ratio: 2 / 1; } .media_field.r-square { aspect-ratio: 1; max-width: 130px; } .media_field.r-card { aspect-ratio: 4 / 5; }
.media_prev, .media_prev img, .media_prev video { width: 100%; height: 100%; display: block; object-fit: cover; }
.media_field.contain .media_prev img { object-fit: contain; padding: 16px; }
.media_empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.media_actions { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; }
.media_field:hover .media_actions { opacity: 1; }
.media_field.uploading::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p, 0%); background: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 40px; border: 1px solid var(--line-2); background: #fff; color: #000; cursor: pointer; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 500; transition: all .15s; }
.chip em { font-style: normal; font-size: 11px; color: var(--muted); }
.chip:hover { border-color: #000; }
.chip.on { background: var(--accent); border-color: var(--accent); }
.chip.on em { color: rgba(0,0,0,.55); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; padding: 4px 9px; border-radius: 20px; background: #fff; color: #000; }
.badge-draft { background: #000; color: #fff; }
.badge-home { background: var(--accent); }
.labels { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.labels .accent { color: var(--accent); }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login_art { position: relative; background: #000; color: #fff; padding: 50px 60px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.login_shapes { position: absolute; inset: 0; pointer-events: none; }
.login_shapes span { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.login_shapes span:nth-child(1) { width: 700px; height: 700px; right: -260px; top: -200px; }
.login_shapes span:nth-child(2) { width: 420px; height: 420px; right: -120px; top: -60px; border-color: rgba(98,48,189,.5); }
.login_shapes span:nth-child(3) { width: 180px; height: 180px; left: 40%; bottom: 18%; background: var(--accent); border: 0; filter: blur(70px); opacity: .55; }
.login_logo { font-size: 26px; font-weight: 500; position: relative; }
.login_art_text { position: relative; }
.login_art .eyebrow { color: rgba(255,255,255,.5); display: block; margin-bottom: 24px; }
.login_art h1 { font-size: 64px; line-height: 1.05; margin-bottom: 26px; }
.login_art p { color: rgba(255,255,255,.55); font-size: 17px; max-width: 420px; }
.login_panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: #fff; }
.login_form { width: 100%; max-width: 400px; }
.login_crumbs { list-style: none; padding: 0; margin: 0 0 40px; display: flex; gap: 10px; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 500; }
.login_crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--muted); }
.login_crumbs a { text-decoration: none; }
.login_form h2 { font-size: 42px; margin-bottom: 40px; }
.lfield { display: block; position: relative; }
.lfield input { height: 64px; border: 0; border-bottom: 1px solid rgba(0,0,0,.2); border-radius: 0; background: transparent; padding: 0; font-size: 16px; letter-spacing: .2px; text-transform: none; font-weight: 400; margin-bottom: 14px; box-shadow: none !important; }
.lfield input:focus { border-color: var(--accent); background: transparent; }
.lfield input[type=password] { letter-spacing: 4px; text-transform: none; font-size: 16px; }
.lfield input::placeholder { letter-spacing: 2px; text-transform: uppercase; font-size: 12px; font-weight: 500; color: #000; }
.pass_toggle { position: absolute; right: 0; top: 20px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; }
.pass_toggle.on, .pass_toggle:hover { color: #000; }
.login_form .btn-primary { margin-top: 24px; }
.login_error { color: var(--danger); font-size: 14px; margin-top: 6px; }
.login_back { display: block; margin-top: 30px; color: var(--muted); text-decoration: none; font-size: 13px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- estrutura ---------- */
.boot { height: 100vh; display: flex; align-items: center; justify-content: center; }
.boot_spinner { width: 28px; height: 28px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.boot_spinner.small { width: 20px; height: 20px; }
.app { display: flex; min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #000; color: #fff; display: flex; flex-direction: column; z-index: 40; transition: width .3s var(--ease), transform .3s var(--ease); }
.side_head { display: flex; align-items: center; gap: 12px; height: var(--top); padding: 0 22px; flex-shrink: 0; }
.side_logo { text-decoration: none; font-size: 22px; font-weight: 500; }
.side_logo i { display: none; font-style: normal; }
.side_badge { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.2); padding: 3px 9px; border-radius: 20px; }
.side_close { display: none; margin-left: auto; color: #fff; }
.side_nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.side_nav::-webkit-scrollbar-thumb { background: #333; }
.side_group { color: rgba(255,255,255,.35); padding: 14px 12px 6px; }
.side_link { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-radius: 40px; color: rgba(255,255,255,.62); text-decoration: none; font-size: 15px; font-weight: 300; transition: all .2s; white-space: nowrap; }
.side_link:hover { color: #fff; background: rgba(255,255,255,.06); }
.side_link.on { color: #fff; background: rgba(255,255,255,.1); }
.side_link.on .ic { color: var(--accent-2); }
.side_link em { margin-left: auto; font-style: normal; font-size: 11px; color: rgba(255,255,255,.45); }
.side_link em.hot { background: var(--accent); color: #000; padding: 1px 8px; border-radius: 10px; font-weight: 500; }
.side_foot { border-top: 1px solid rgba(255,255,255,.1); padding: 10px 12px; }
.side_user { display: flex; align-items: center; gap: 10px; padding: 10px 6px 4px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 500; color: #000; flex-shrink: 0; }
.side_user_info { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.side_user_info b { font-weight: 400; }
.side_user_info span { font-size: 12px; color: rgba(255,255,255,.45); }
.side_user .btn { color: rgba(255,255,255,.6); }
.side_user .btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.side_scrim { display: none; }
.main { margin-left: var(--side); flex: 1; min-width: 0; height: 100vh; display: flex; flex-direction: column; transition: margin-left .3s var(--ease); }
.top { height: var(--top); flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: rgba(242,242,242,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 20; }
.top_menu { display: none; }
.top_title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.top_title > div { min-width: 0; }
.top_title h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb { color: var(--muted); font-size: 10px; margin-bottom: 2px; }
.top_actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.save_state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin: 0 6px; white-space: nowrap; }
.save_state .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.save_state.is-dirty { color: #000; }
.save_state.is-dirty .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.status_pill { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; padding: 6px 11px; border-radius: 20px; background: #000; color: #fff; }
.status_pill.on { background: #e3f5ea; color: var(--ok); }
.view { flex: 1; overflow-y: auto; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 40px 36px 90px; }
.wrap-narrow { max-width: 760px; } .wrap-mid { max-width: 980px; }
.page_head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.page_head h2 { font-size: 44px; margin-bottom: 12px; }
.page_head p { color: var(--text-2); margin: 0; max-width: 640px; }
.page_head p b { color: #000; }
.card { background: var(--surface); border-radius: 20px; margin-bottom: 22px; scroll-margin-top: 20px; }
.card_head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px 0; }
.card_head > div:first-child { display: flex; align-items: center; gap: 14px; }
.card_icon { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
.card_head h3 { font-size: 20px; }
.card_head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.card_body { padding: 22px 26px 26px; }
.card_body > :last-child { margin-bottom: 0; }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 80px 20px; color: var(--muted); text-align: center; }
.empty h3 { color: #000; }
.empty_small { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); padding: 34px 10px; }
.notice { display: flex; align-items: center; gap: 12px; background: #fff; border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; }
.grip { color: rgba(0,0,0,.3); cursor: grab; display: inline-flex; padding: 4px; border-radius: 6px; }
.grip:hover { color: #000; background: var(--surface-3); }
.sort_ghost { opacity: .35; }
.round { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; transition: transform .3s var(--ease); }

/* visão geral */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 44px 44px 40px; border-radius: 24px; background: #000; color: #fff; margin-bottom: 22px; position: relative; overflow: hidden; }
.hello::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.hello .eyebrow { color: rgba(255,255,255,.45); display: block; margin-bottom: 18px; }
.hello h2 { font-size: 52px; margin-bottom: 14px; }
.hello p { color: rgba(255,255,255,.6); margin: 0; max-width: 520px; }
.hello p b { color: #fff; }
.hello_actions { display: flex; gap: 10px; flex-shrink: 0; position: relative; z-index: 1; }
.hello .btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.hello .btn-light:hover { border-color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: 20px; background: #fff; text-decoration: none; transition: transform .3s var(--ease); }
.stat:hover { transform: translateY(-3px); }
.stat .ic { color: var(--accent); margin-bottom: 12px; }
.stat b { font-size: 42px; font-weight: 300; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }
.dash_cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mini_list { display: flex; flex-direction: column; }
.mini_item { display: flex; align-items: center; gap: 14px; padding: 10px; margin: 0 -10px; border-radius: 12px; text-decoration: none; transition: background .15s; }
.mini_item:hover { background: var(--surface-2); }
.mini_thumb { width: 58px; height: 44px; border-radius: 8px; background: var(--surface-3) center / cover; flex-shrink: 0; }
.mini_item > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mini_item b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini_item span { color: var(--muted); font-size: 13px; }
.mini_item > .ic { color: var(--muted); }

/* projetos */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.proj_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px 22px; align-items: start; }
.proj { position: relative; }
.proj_thumb { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-3); border-radius: 4px; text-decoration: none; }
.proj_thumb.vert { aspect-ratio: 4 / 5; }
.proj_img { position: absolute; inset: 0; background: center / cover; transition: transform .5s var(--ease); }
.proj:hover .proj_img { transform: scale(1.05); }
.proj_nothumb { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.proj_badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 5px; }
.proj_edit { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #000; text-transform: uppercase; letter-spacing: 1.6px; font-size: 10.5px; font-weight: 500; padding: 8px 8px 8px 14px; border-radius: 30px; opacity: 0; transform: translateY(8px); transition: all .3s var(--ease); }
.proj_edit .ic { background: #000; color: #fff; border-radius: 50%; width: 22px; height: 22px; padding: 4px; }
.proj:hover .proj_edit { opacity: 1; transform: none; }
.proj_body { padding: 16px 2px 0; cursor: grab; }
.proj_body h3 { font-size: 21px; margin-top: 8px; display: flex; align-items: flex-start; gap: 4px; }
.proj_body h3 .grip { margin: 2px 2px 0 -6px; }
.proj_menu { position: absolute; top: 10px; right: 10px; display: flex; gap: 2px; background: rgba(255,255,255,.92); border-radius: 30px; padding: 3px; opacity: 0; transition: opacity .2s; }
.proj:hover .proj_menu { opacity: 1; }
.proj_new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; aspect-ratio: 4 / 3; border: 1.5px dashed var(--line-2); background: transparent; border-radius: 4px; cursor: pointer; color: var(--muted); }
.proj_new b { color: #000; font-weight: 400; font-size: 18px; }
.proj_new:hover .round { transform: scale(1.1) rotate(90deg); }

/* destaques */
.dest_layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.dest_list { display: flex; flex-direction: column; gap: 8px; }
.dest_row { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 6px; background: var(--surface-2); border-radius: 14px; }
.dest_thumb { width: 64px; height: 48px; border-radius: 6px; background: var(--surface-3) center / cover; flex-shrink: 0; }
.dest_name { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dest_name b { font-weight: 400; }
.dest_name span { color: var(--muted); font-size: 13px; }
.draft { color: #000; font-style: normal; }
.side_pos { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.dest_preview { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; row-gap: 16px; }
.dp { width: 47%; }
.dp.vert { width: 40%; }
.dp_img { padding-bottom: 65%; background: var(--surface-3) center / cover; border-radius: 3px; }
.dp.vert .dp_img { padding-bottom: 130%; }
.dp.r { margin-top: 30px; }
.dp small { display: block; margin-top: 6px; font-size: 12px; }
.add_list { display: flex; flex-direction: column; gap: 6px; }
.add_row { display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; background: transparent; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; text-align: left; }
.add_row span { flex: 1; display: flex; flex-direction: column; }
.add_row b { font-weight: 400; }
.add_row small { color: var(--muted); }
.add_row:hover { border-color: var(--accent); }

/* blog */
.post_list { display: flex; flex-direction: column; }
.post_row { display: flex; align-items: center; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.post_cover { width: 220px; aspect-ratio: 16 / 10; border-radius: 4px; background: var(--surface-3) center / cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.post_info { flex: 1; min-width: 0; }
.post_info a { text-decoration: none; }
.post_info h3 { font-size: 24px; margin: 10px 0 8px; }
.post_info h3:hover { color: var(--accent); }
.post_info p { color: var(--text-2); font-size: 14px; margin: 0; }
.post_actions { display: flex; gap: 4px; align-items: center; }
.cat_list { display: flex; flex-direction: column; gap: 8px; }
.cat_row { display: flex; align-items: center; gap: 10px; }
.cat_count { color: var(--muted); font-size: 13px; width: 120px; text-align: right; }

/* serviços */
.svc_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.svc_card { display: flex; flex-direction: column; background: #000; color: #fff; border-radius: 20px; padding: 30px 28px; text-decoration: none; position: relative; min-height: 360px; transition: transform .3s var(--ease); }
.svc_card:hover { transform: translateY(-4px); }
.svc_card .grip { position: absolute; top: 14px; right: 14px; color: rgba(255,255,255,.4); }
.svc_card .badge { align-self: flex-start; margin-bottom: 12px; }
.svc_card h4 { font-size: 26px; margin-bottom: 18px; }
.svc_card p { color: rgba(255,255,255,.55); font-size: 14px; }
.svc_card ul { list-style: none; padding: 0; margin: 8px 0 24px; flex: 1; }
.svc_card li { font-size: 13px; color: rgba(255,255,255,.75); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.svc_card .link_more { color: var(--accent-2); }
.svc_card .link_more .ic { background: var(--accent); color: #000; }
.svc_new { background: transparent; border: 1.5px dashed var(--line-2); color: #000; align-items: center; justify-content: center; gap: 12px; cursor: pointer; }
.svc_new b { font-weight: 400; font-size: 18px; }
.acc_list { display: flex; flex-direction: column; margin-bottom: 14px; }
.acc_row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acc_plus { font-size: 26px; font-weight: 200; line-height: 40px; width: 20px; text-align: center; }
.acc_fields { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.acc_fields input { font-weight: 400; }
.page_list { display: flex; flex-direction: column; gap: 10px; }
.page_row { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 20px 24px; text-decoration: none; }
.page_row > div { flex: 1; display: flex; flex-direction: column; }
.page_row b { font-weight: 400; font-size: 18px; }
.page_row span { color: var(--muted); font-size: 13px; }

/* home e chamadas */
.home_wrap { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: start; }
.home_toc { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; }
.home_toc b { color: var(--muted); padding: 0 10px 10px; }
.home_toc a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 30px; text-decoration: none; font-size: 14px; }
.home_toc a:hover { background: #fff; }
.home_toc em { font-style: normal; font-size: 11px; width: 22px; height: 22px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.kc_prev { border-radius: 16px; padding: 44px 40px; margin-bottom: 22px; }
.kc_prev.dark { background: #000; color: #fff; }
.kc_prev.center { text-align: center; }
.kc_prev_h1 { font-size: 46px; line-height: 1.08; margin-bottom: 18px; }
.kc_prev_h2 { font-size: 36px; line-height: 1.12; }
.kc_prev p { color: rgba(255,255,255,.55); margin: 0; }
.kc_prev .mil-thin { font-weight: 100; }

/* depoimentos, logos, mensagens */
.dep_list { display: flex; flex-direction: column; gap: 14px; }
.dep { display: flex; gap: 12px; background: #fff; border-radius: 18px; padding: 20px 18px; align-items: flex-start; }
.dep_main { flex: 1; display: flex; flex-direction: column; gap: 10px; position: relative; }
.dep_q { position: absolute; left: -2px; top: -26px; font-size: 54px; font-weight: 200; color: var(--accent); }
.dep_main textarea { font-size: 17px; line-height: 1.6; }
.dep_main .grid2 { gap: 10px; }
.logo_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 14px; }
.logo_item { background: #fff; border-radius: 16px; padding: 10px; position: relative; display: flex; flex-direction: column; gap: 8px; }
.logo_item .field { margin: 0; }
.logo_item > .grip { position: absolute; top: 14px; left: 14px; z-index: 2; background: #fff; }
.logo_item input { font-size: 13px; padding: 8px 10px; }
.logo_del { position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff !important; }
.msg { background: #fff; border-radius: 18px; padding: 22px 26px; margin-bottom: 12px; border-left: 3px solid transparent; }
.msg.unread { border-left-color: var(--accent); }
.msg_head { display: flex; justify-content: space-between; gap: 10px; }
.msg_head b { font-size: 18px; font-weight: 400; }
.msg_head span { color: var(--muted); font-size: 13px; }
.msg_meta { color: var(--muted); font-size: 13.5px; margin: 4px 0 12px; }
.msg_meta a { color: var(--accent); text-decoration: none; }
.msg p { white-space: normal; }
.msg_actions { display: flex; gap: 6px; flex-wrap: wrap; }
.bk_list { display: flex; flex-direction: column; }
.bk_row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bk_row span { flex: 1; }
.bk_row small { color: var(--muted); }
.pub_box { background: #fff7e0; border-radius: 14px; padding: 16px 16px 0; margin-bottom: 22px; }
.pub_box.on { background: #e9f7ef; }
.pub_box .toggle { margin-bottom: 16px; }
.wrap .pub_box { background: #fff; border-left: 3px solid #000; }
.wrap .pub_box.on { border-left-color: var(--ok); }
.danger_zone { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }

/* ---------- modal / toasts ---------- */
body.modal_open { overflow: hidden; }
.modal_wrap { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .2s; }
.modal_wrap.in { opacity: 1; }
.modal { background: #fff; border-radius: 22px; width: 100%; max-width: 560px; max-height: calc(100vh - 48px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.3); transform: translateY(12px); transition: transform .3s var(--ease); }
.modal_wrap.in .modal { transform: none; }
.modal-sm { max-width: 460px; } .modal-lg { max-width: 1000px; height: min(780px, calc(100vh - 48px)); }
.modal_head { display: flex; align-items: center; gap: 22px; padding: 18px 20px 0 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.modal_head h3 { font-size: 22px; padding-bottom: 16px; }
.modal_x { margin-left: auto; margin-bottom: 14px; }
.modal_body { padding: 26px 28px; overflow-y: auto; flex: 1; }
.modal_body h3 { font-size: 24px; margin-bottom: 10px; }
.modal_foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--line); }
.modal_foot .sel_info { margin-right: auto; padding-left: 8px; font-size: 13px; }
.confirm { text-align: center; padding-top: 34px; }
.confirm_icon { width: 54px; height: 54px; border-radius: 50%; background: var(--surface-3); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.confirm_icon.danger { background: #fdecea; color: var(--danger); }
.tabs { display: flex; gap: 4px; align-self: flex-end; }
.tabs button { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; padding: 10px 14px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 500; }
.tabs button.on { color: #000; border-bottom-color: var(--accent); }
.dropzone { display: block; border: 1.5px dashed var(--line-2); border-radius: 20px; padding: 50px 20px; text-align: center; cursor: pointer; transition: all .2s; outline: none; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone_in { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dropzone_icon { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.dropzone b { font-size: 22px; font-weight: 300; }
.dropzone span { color: var(--text-2); }
.dropzone small { color: var(--muted); margin-top: 8px; }
.up_list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.up_row { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.up_thumb { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: var(--surface-3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.up_thumb img { width: 100%; height: 100%; object-fit: cover; }
.up_info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.up_info b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up_info span { font-size: 12px; color: var(--muted); }
.bar { height: 4px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.up_row.ok .up_state { color: var(--ok); } .up_row.err .up_state, .up_row.err .up_info span { color: var(--danger); }
.lib_bar { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 30px; padding: 0 14px; height: 40px; flex: 1; color: var(--muted); }
.search input { border: 0; background: transparent; padding: 0; box-shadow: none !important; }
.lib_grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.lib_loading { grid-column: 1 / -1; display: flex; justify-content: center; padding: 40px; }
.lib_item { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 3px solid transparent; background: var(--surface-3); padding: 0; cursor: pointer; }
.lib_item img, .lib_item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib_item.on { border-color: var(--accent); }
.lib_name { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font-size: 10.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; opacity: 0; }
.lib_item:hover .lib_name { opacity: 1; }
.lib_badge { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: #fff; border-radius: 6px; padding: 3px 5px; display: flex; }
.lib_num { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); font-size: 11.5px; font-weight: 500; display: none; align-items: center; justify-content: center; }
.lib_item.on .lib_num { display: flex; }
.lib_item.on .lib_num:empty::before { content: "✓"; }
.lib_more { grid-column: 1 / -1; text-align: center; }
.seg-sm button { padding: 5px 11px; font-size: 12px; }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: #000; color: #fff; padding: 12px 20px; border-radius: 40px; box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(10px); transition: all .3s var(--ease); max-width: 560px; }
.toast.in { opacity: 1; transform: none; }
.toast .ic { color: var(--accent-2); }
.toast-error { background: var(--danger); } .toast-error .ic { color: #fff; }
.up_panel { position: fixed; right: 24px; bottom: 24px; z-index: 150; width: 320px; background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 8px; }
.up_panel_txt { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================================================
   Editor visual
   ========================================================================= */
body.app-editor { --side: 70px; }
body.app-editor .side_link span, body.app-editor .side_link em, body.app-editor .side_badge, body.app-editor .side_user_info { display: none; }
body.app-editor .side_group { height: 12px; padding: 0; font-size: 0; }
body.app-editor .side_head { padding: 0; justify-content: center; }
body.app-editor .side_logo b { display: none; } body.app-editor .side_logo i { display: block; }
body.app-editor .side_link { justify-content: center; padding: 0; }
body.app-editor .side_user { flex-direction: column; padding: 6px 0 0; }
body.app-editor .side:hover { width: 250px; box-shadow: 20px 0 50px rgba(0,0,0,.25); }
body.app-editor .side:hover .side_link span, body.app-editor .side:hover .side_link em, body.app-editor .side:hover .side_badge, body.app-editor .side:hover .side_user_info { display: initial; }
body.app-editor .side:hover .side_group { height: auto; padding: 20px 12px 8px; font-size: 11px; }
body.app-editor .side:hover .side_link { justify-content: flex-start; padding: 0 12px; }
body.app-editor .side:hover .side_head { padding: 0 22px; justify-content: flex-start; }
body.app-editor .side:hover .side_logo b { display: block; } body.app-editor .side:hover .side_logo i { display: none; }
body.app-editor .side:hover .side_user { flex-direction: row; padding: 10px 6px 4px; }

.ed { flex: 1; display: grid; grid-template-columns: 1fr 380px; min-height: 0; }
.ed_canvas { position: relative; min-width: 0; display: flex; flex-direction: column; background: #e4e4e4; }
.ed_canvas_scroll { flex: 1; overflow-y: auto; padding: 30px 34px 120px; }
.page_canvas { max-width: 1000px; margin: 0 auto; background: #fff; padding: 64px 70px 50px; box-shadow: 0 20px 60px rgba(0,0,0,.08); color: rgba(0,0,0,.5); font-weight: 300; font-size: 16px; line-height: 1.5; }
.drop_overlay { position: absolute; inset: 64px 14px 14px; border: 2px dashed var(--accent); border-radius: 20px; background: rgba(98,48,189,.08); display: none; align-items: center; justify-content: center; pointer-events: none; z-index: 5; }
.drop_overlay div { background: var(--accent); color: #000; padding: 14px 24px; border-radius: 40px; display: flex; align-items: center; gap: 12px; }
.ed_canvas.is-drop .drop_overlay { display: flex; }

/* barra de formatação */
.fmt_bar { display: flex; align-items: center; gap: 2px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--line); flex-shrink: 0; flex-wrap: wrap; z-index: 6; }
.fmt_bar > button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #000; transition: background .15s, opacity .15s; }
.fmt_bar > button:hover { background: var(--surface-3); }
.fmt_bar > button.on { background: var(--accent-soft); color: var(--accent); }
.fmt_txt { width: auto !important; padding: 0 10px; font-size: 13px; }
.fmt_bar [data-cmd=thin] { font-weight: 100; font-size: 14px; }
.fmt_dot i { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); display: block; }
.fmt_sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 6px; }
.fmt_style { position: relative; margin-right: 4px; }
.fmt_style_btn { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px 0 14px; border: 1px solid var(--line-2); border-radius: 30px; background: #fff; cursor: pointer; min-width: 168px; justify-content: space-between; font-size: 13.5px; }
.fmt_menu { position: absolute; top: 40px; left: 0; z-index: 30; background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.18); padding: 6px; width: 280px; }
.fmt_menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; cursor: pointer; color: #000; }
.fmt_menu button:hover { background: var(--surface-2); }
.fmt_menu .st-p { font-size: 15px; color: rgba(0,0,0,.6); }
.fmt_menu .st-lg { font-size: 17px; color: rgba(0,0,0,.6); }
.fmt_menu .st-xl { font-size: 19px; }
.fmt_menu .st-sm { font-size: 13px; color: rgba(0,0,0,.6); }
.fmt_menu .st-h3 { font-size: 26px; }
.fmt_menu .st-h4 { font-size: 21px; }
.fmt_menu .st-h5 { font-size: 17px; font-weight: 500; }
.fmt_menu .st-blockquote { border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; font-size: 16px; }
.fmt_hint { margin-left: auto; font-size: 12px; color: var(--muted); padding-left: 10px; }
.fmt_bar[data-mode=off] > :not(.fmt_hint):not(.fmt_style) { opacity: .3; pointer-events: none; }
.fmt_bar[data-mode=off] .fmt_style { opacity: .3; }
.fmt_bar[data-mode=headline] > .r, .fmt_bar[data-mode=headline] .fmt_style { opacity: .25; pointer-events: none; }
.fmt_bar[data-mode=headline] > .h { opacity: 1; pointer-events: auto; }
.fmt_bar:not([data-mode=headline]) [data-cmd=normal] { display: none; }
.fmt_bar { flex-wrap: nowrap; overflow: hidden; }
.fmt_hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* blocos */
.bk { position: relative; outline: 1.5px dashed transparent; outline-offset: 14px; border-radius: 4px; transition: outline-color .15s; }
.bk:hover { outline-color: rgba(98,48,189,.3); }
.bk.is-sel { outline: 2px solid var(--accent); }
.bk.is-hidden .bk_body { opacity: .25; filter: grayscale(1); }
.bk_bar { position: absolute; left: -14px; right: -14px; top: -48px; height: 30px; display: flex; align-items: center; justify-content: space-between; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 4; }
.bk:hover .bk_bar, .bk.is-sel .bk_bar { opacity: 1; }
.bk_label { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 20px; background: #000; color: #fff; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 500; pointer-events: auto; }
.bk.is-sel .bk_label { background: var(--accent); color: #000; }
.bk_tools { display: flex; gap: 2px; background: #fff; border-radius: 30px; padding: 2px; box-shadow: 0 6px 20px rgba(0,0,0,.14); pointer-events: auto; }
.bk_tool { width: 30px; height: 26px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 20px; cursor: pointer; color: #000; }
.bk_tool:hover { background: var(--surface-3); }
.bk_tool:disabled { opacity: .25; }
.bk_grip { cursor: grab; }
.cv_blocks.is-dragging .ins { visibility: hidden; }
.ins { height: 70px; position: relative; display: flex; align-items: center; justify-content: center; }
.ins::before { content: ""; position: absolute; left: 40%; right: 40%; top: 50%; border-top: 1.5px dashed transparent; transition: all .2s; }
.ins button { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: scale(.7); transition: all .2s var(--ease); }
.ins:hover::before { border-color: var(--accent); left: 0; right: 0; }
.ins:hover button { opacity: 1; transform: none; }

/* conteúdo dos blocos (imita o site) */
[contenteditable] { outline: none; cursor: text; border-radius: 4px; transition: background .15s, box-shadow .15s; }
.page_canvas [contenteditable]:hover { background: rgba(98,48,189,.04); }
.page_canvas [contenteditable]:focus { background: rgba(98,48,189,.05); box-shadow: 0 0 0 8px rgba(98,48,189,.05); }
.cv_banner { padding: 10px 0 60px; }
.cv_banner.center { text-align: center; }
.cv_crumbs { display: flex; gap: 10px; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 500; color: #000; margin-bottom: 40px; }
.cv_crumbs.center { justify-content: center; }
.cv_crumbs span + span::before { content: "/"; margin-right: 10px; color: rgba(0,0,0,.3); }
.cv_h1 { font-size: 62px; line-height: 1.08; color: #000; font-weight: 400; margin-bottom: 40px; }
.cv_h2 { font-size: 48px; line-height: 1.12; color: #000; font-weight: 400; }
.cv_h3 { font-size: 34px; line-height: 1.2; color: #000; font-weight: 400; }
.cv_h3.center { text-align: center; }
.cv_h1 i, .cv_h2 i, .cv_h3 i, .cv_h1 em, .cv_h2 em, .cv_h3 em { font-style: normal; font-weight: 100; }
.cv_link { display: inline-flex; align-items: center; gap: 12px; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 500; color: #000; }
.cv_link i { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-style: normal; }
.cv_link.small i { width: 30px; height: 30px; }
.cv_button { display: inline-flex; align-items: center; gap: 14px; background: var(--accent); color: #000; border-radius: 40px; padding: 6px 6px 6px 28px; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 500; }
.cv_button i { width: 38px; height: 38px; border-radius: 50%; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; }
.cv_frame { position: relative; overflow: hidden; background: var(--surface-3); }
.cv_frame > img, .cv_frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cv_frame.natural > img, .cv_frame.natural > video { position: relative; height: auto; display: block; }
.cv_frame_tools { position: absolute; right: 14px; bottom: 14px; opacity: 0; transition: opacity .15s; }
.cv_frame:hover .cv_frame_tools { opacity: 1; }
.bk_empty { width: 100%; min-height: 230px; border: 1.5px dashed var(--line-2); background: var(--surface-2); color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-family: var(--f); padding: 20px; transition: all .15s; }
.bk_empty b { color: #000; font-weight: 400; font-size: 17px; }
.bk_empty:hover { border-color: var(--accent); background: var(--accent-soft); }
.bk_empty.is-static { cursor: default; }
.cv_caption { text-align: center; font-size: 14px; margin-top: 16px; }
.narrow { max-width: 66.6%; margin: 0 auto; }
.cv_info { display: flex; justify-content: space-between; align-items: center; min-height: 100px; border-bottom: 1px solid rgba(0,0,0,.1); text-transform: uppercase; letter-spacing: 2px; font-size: 11px; gap: 14px; flex-wrap: wrap; }
.cv_info span { color: #000; }
.cv_info.clickable { cursor: pointer; }
.cv_postcover { margin: 0 0 30px; }
.cv_grid { display: grid; gap: 30px; }
.cv_grid.cols-2 { grid-template-columns: 1fr 1fr; } .cv_grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.cv_gi, .cv_ci { position: relative; }
.cv_gi_del { position: absolute; top: 10px; left: 10px; opacity: 0; z-index: 2; }
.cv_gi:hover .cv_gi_del, .cv_ci:hover .cv_gi_del { opacity: 1; }
.cv_add { border: 1.5px dashed var(--line-2); background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; min-height: 200px; }
.cv_add:hover { border-color: var(--accent); color: #000; }
.cv_carousel { display: flex; gap: 30px; overflow-x: auto; padding-bottom: 10px; }
.cv_carousel .cv_ci { flex: 0 0 calc(50% - 15px); }
.cv_hint { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 12px; }
.cv_video { position: relative; height: 0; overflow: hidden; border-radius: 12px; background: #000; }
.cv_video iframe, .cv_video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.cv_shield { position: absolute; inset: 0; }
.cv_tag { position: absolute; left: 14px; top: 14px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 4px 9px; border-radius: 20px; display: flex; gap: 5px; align-items: center; }
.cv_split { display: grid; grid-template-columns: 5fr 7fr; gap: 9%; }
.cv_center { max-width: 66.6%; margin: 0 auto; text-align: center; }
.cv_center .cv_h3 { margin-bottom: 40px; }
.cv_divider { height: 1px; background: rgba(0,0,0,.1); }
.cv_spacer { border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.cv_spacer.s-small { height: 30px; } .cv_spacer.s-medium { height: 60px; } .cv_spacer.s-large { height: 110px; }
.cv_worksnav { display: flex; justify-content: space-between; margin-top: 70px; text-transform: uppercase; letter-spacing: 2px; font-size: 11px; font-weight: 500; color: rgba(0,0,0,.3); }
.cv_worksnav span { display: flex; align-items: center; gap: 8px; }

/* texto corrido */
.cv_rich { min-height: 40px; }
.cv_rich.narrow { max-width: 66.6%; }
.cv_rich p { margin: 0 0 44px; text-align: justify; }
.cv_rich.left p { text-align: left; }
.cv_rich.center p { text-align: center; }
.cv_rich.lg p { font-size: 18px; line-height: 170%; }
.cv_rich p.mil-text-xl { font-size: 22px; line-height: 180%; }
.cv_rich p.mil-text-lg { font-size: 18px; line-height: 170%; }
.cv_rich .mil-dark { color: #000; }
.cv_rich p.kc-small { font-size: 14px; }
.cv_rich h3 { font-size: 34px; color: #000; font-weight: 400; margin: 0 0 24px; }
.cv_rich h4 { font-size: 26px; color: #000; font-weight: 400; margin: 0 0 24px; }
.cv_rich h5 { font-size: 20px; color: #000; font-weight: 500; margin: 0 0 24px; }
.cv_rich blockquote { border-left: 2px solid var(--accent); margin: 0 0 44px; padding: 4px 0 4px 26px; font-size: 21px; line-height: 170%; color: #000; }
.cv_rich ul, .cv_rich ol { margin: 0 0 44px; padding-left: 22px; }
.cv_rich li { margin-bottom: 10px; }
.cv_rich li::marker { color: var(--accent); }
.cv_rich a { color: var(--accent); }
.cv_rich strong, .cv_rich b { color: #000; font-weight: 500; }
.cv_rich s, .cv_rich strike { text-decoration: none; font-weight: 100; }
.cv_rich .kc-left { text-align: left !important; } .cv_rich .kc-center { text-align: center !important; } .cv_rich .kc-right { text-align: right !important; }
.cv_rich > :last-child { margin-bottom: 0; }
.form_rich s { text-decoration: none; font-weight: 100; }

/* painel de adicionar */
.add_panel { margin-top: 80px; border-top: 1px solid var(--line); padding-top: 34px; }
.add_panel_head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.add_panel_head b { color: #000; font-size: 18px; font-weight: 400; }
.add_panel_head span { font-size: 13px; }
.add_types { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin-bottom: 12px; }
.add_type { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: all .2s var(--ease); }
.add_type .ic { margin-bottom: 8px; }
.add_type b { color: #000; font-weight: 400; font-size: 15px; }
.add_type small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.add_type:hover { border-color: var(--accent); transform: translateY(-2px); }
.add_type:hover .ic { color: var(--accent); }
.add_many { border-style: dashed; height: 48px; }
.block_menu { position: fixed; z-index: 120; width: 330px; background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.2); opacity: 0; transform: translateY(4px); transition: all .15s; }
.block_menu.in { opacity: 1; transform: none; }
.block_menu_title { color: var(--muted); padding: 10px 12px 6px; }
.block_menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; text-align: left; }
.block_menu button:hover { background: var(--surface-2); }
.block_menu button span { display: flex; flex-direction: column; }
.block_menu b { font-weight: 400; }
.block_menu small { color: var(--muted); font-size: 12.5px; }

/* inspetor */
.ed_insp { background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.ed_insp_tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 14px 0; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.ed_insp_tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; background: none; border: 0; padding: 12px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 11px; font-weight: 500; }
.ed_insp_tabs button.on { color: #000; border-bottom-color: var(--accent); }
.ed_insp_body { flex: 1; overflow-y: auto; }
.insp_fields { padding: 22px; }
.insp_section { color: var(--muted); padding: 12px 0 14px; border-top: 1px solid var(--line); margin-top: 4px; }
.insp_block_head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.insp_block_icon { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; }
.insp_block_head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.insp_block_head b { font-weight: 400; font-size: 17px; }
.insp_block_head small { color: var(--muted); font-size: 12px; }
.insp_empty { padding: 40px 26px; text-align: center; }
.insp_empty_icon { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.insp_empty h4 { font-size: 19px; margin-bottom: 8px; }
.insp_empty p { color: var(--muted); font-size: 14px; }
.tips { list-style: none; padding: 0; margin: 24px 0 0; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.tips li { display: flex; gap: 10px; font-size: 13px; color: var(--text-2); background: var(--surface-2); border-radius: 12px; padding: 11px 13px; }
.tips .ic { margin-top: 2px; color: var(--accent); }
.tips b { color: #000; }
.style_guide { background: var(--surface-2); border-radius: 14px; padding: 16px 18px; }
.style_guide > b { display: block; text-transform: uppercase; letter-spacing: 1.6px; font-size: 10.5px; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.sg { padding: 5px 0; color: #000; border-bottom: 1px solid var(--line); }
.sg.h3 { font-size: 24px; } .sg.h4 { font-size: 20px; } .sg.h5 { font-size: 16px; font-weight: 500; }
.sg.xl { font-size: 17px; } .sg.lg { font-size: 15.5px; color: rgba(0,0,0,.6); } .sg.p { font-size: 14px; color: rgba(0,0,0,.6); } .sg.sm { font-size: 12.5px; color: rgba(0,0,0,.6); }
.sg.q { border-left: 2px solid var(--accent); padding-left: 10px; margin-top: 4px; border-bottom: 0; }
.style_guide small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.g_list, .info_list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.g_row { display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 10px; background: var(--surface-2); }
.g_row img, .g_row video { width: 46px; height: 36px; object-fit: cover; border-radius: 6px; }
.g_name { flex: 1; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info_row { display: grid; grid-template-columns: auto 1fr 1.4fr auto; gap: 6px; align-items: center; }
.info_row input { padding: 9px 10px; font-size: 14px; }
.info_row input:first-of-type { text-transform: uppercase; letter-spacing: 1.4px; font-size: 11px; font-weight: 500; }

/* ---------- responsivo ---------- */
@media (max-width: 1200px) { .ed { grid-template-columns: 1fr 340px; } .page_canvas { padding: 50px 40px; } .cv_h1 { font-size: 48px; } .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) {
  .side { transform: translateX(-100%); width: 270px !important; }
  body.side_open .side { transform: none; }
  body.side_open .side_scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; }
  body.app-editor .side .side_link span, body.app-editor .side .side_user_info, body.app-editor .side .side_badge, body.app-editor .side .side_logo b { display: initial; }
  body.app-editor .side .side_link { justify-content: flex-start; padding: 0 12px; }
  .side_close { display: inline-flex; }
  .main { margin-left: 0 !important; }
  .top_menu { display: inline-flex; }
  .ed { grid-template-columns: 1fr; grid-template-rows: 1fr 45%; }
  .dash_cols, .dest_layout, .home_wrap, .login { grid-template-columns: 1fr; }
  .home_toc { display: none; }
  .save_state { display: none; }
  .top .btn span { display: none; }
  .top .btn-arrow { padding: 0 5px; } .top .btn-arrow .arr { margin: 0; }
  .login_art { min-height: 300px; }
  .login_art h1 { font-size: 42px; }
}
@media (max-width: 700px) {
  .wrap { padding: 24px 16px 70px; }
  .grid2 { grid-template-columns: 1fr; }
  .page_head { flex-direction: column; align-items: flex-start; }
  .page_head h2 { font-size: 34px; }
  .hello { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .hello h2 { font-size: 38px; }
  .post_row { flex-wrap: wrap; } .post_cover { width: 100%; }
  .ed_canvas_scroll { padding: 12px 8px 80px; }
  .page_canvas { padding: 30px 20px; }
  .cv_h1 { font-size: 36px; } .cv_h2 { font-size: 30px; }
  .cv_split, .cv_grid.cols-2, .cv_grid.cols-3 { grid-template-columns: 1fr; }
  .narrow, .cv_rich.narrow, .cv_center { max-width: 100%; }
  .top { padding: 0 12px; }
  .top_actions .status_pill, .top_actions [data-undo] { display: none; }
}
