/* Plataforma de e-mail (editor e modelos) — 01/12/2026. Classes ke-*. Usa as variáveis de cor do app (claro e escuro). */
html.ke-open, html.ke-open body { overflow: hidden; }
.ki { width: 18px; height: 18px; flex: none; }
.ke-root { position: fixed; inset: 0; z-index: 55; background: var(--bg); color: var(--text); display: grid; grid-template-rows: auto auto 1fr; font-family: var(--font); }
.ke-root button { font-family: inherit; }

/* barra de cima */
.ke-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg2); min-width: 0; }
.ke-back span { display: inline; }
.ke-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.ke-kind { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand2); background: var(--brand-bg); border-radius: 6px; padding: 3px 7px; flex: none; }
.ke-name { border: 1px solid transparent; background: transparent; font: 600 16px var(--display); color: var(--text); padding: 6px 8px; border-radius: 8px; min-width: 120px; width: 100%; max-width: 360px; }
.ke-name:hover { border-color: var(--line); } .ke-name:focus { border-color: var(--brand-line); background: var(--panel); outline: none; box-shadow: 0 0 0 3px var(--brand-ring); }
.ke-status { font-size: 12px; color: var(--faint); white-space: nowrap; } .ke-status.err { color: var(--red2); cursor: pointer; }
.ke-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.ke-actions .ib { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--text2); cursor: pointer; }
.ke-actions .ib:hover { background: var(--hover); } .ke-actions .ib:disabled { opacity: .35; cursor: default; background: transparent; }
.ke-actions .ib.on { background: var(--brand-bg); color: var(--brand2); border-color: var(--brand-line); }
.ke-seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 9px; overflow: hidden; background: var(--panel); }
.ke-seg button { border: 0; background: transparent; padding: 0 10px; height: 34px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; font-size: 13px; }
.ke-seg button + button { border-left: 1px solid var(--line); }
.ke-seg button.on { background: var(--brand-bg); color: var(--brand2); }
.ke-score b { font-weight: 800; min-width: 24px; text-align: center; border-radius: 6px; padding: 1px 6px; font-size: 13px; }
.ke-score.good b { background: var(--green-bg); color: var(--green); } .ke-score.mid b { background: var(--amber-bg); color: var(--amber); } .ke-score.bad b { background: var(--red-bg); color: var(--red2); }

/* assunto */
.ke-subj { display: flex; gap: 10px; align-items: center; padding: 8px 14px; background: var(--bg2); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ke-f { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; min-width: 0; margin: 0; }
.ke-f > span { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.ke-f input { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; background: var(--panel); color: var(--text); font-size: 14px; }
.ke-f input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.ke-root .btn.sm, .ke-gal .btn.sm { gap: 5px; }
.ke-ai .ki, .btn.sm .ki { width: 15px; height: 15px; }

/* três colunas */
.ke-main { display: grid; grid-template-columns: 252px minmax(0, 1fr) 312px; min-height: 0; }
.ke-lib, .ke-props { background: var(--bg2); overflow-y: auto; min-height: 0; }
.ke-lib { border-right: 1px solid var(--line); } .ke-props { border-left: 1px solid var(--line); }
.ke-ltabs { display: flex; gap: 2px; padding: 10px 10px 0; position: sticky; top: 0; background: var(--bg2); z-index: 2; border-bottom: 1px solid var(--line); }
.ke-ltabs button { flex: 1; border: 0; background: transparent; padding: 9px 4px 10px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.ke-ltabs button.on { color: var(--brand2); border-bottom-color: var(--brand); }
.ke-lbody { padding: 12px; }
.ke-cap { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 6px 2px 8px; }
.ke-lgroup + .ke-lgroup { margin-top: 10px; }
.ke-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ke-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 76px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; cursor: grab; color: var(--text2); font-size: 12px; font-weight: 600; padding: 8px 6px; text-align: center; transition: border-color .12s, transform .12s, box-shadow .12s; }
.ke-tile .ki { width: 22px; height: 22px; color: var(--brand2); }
.ke-tile:hover { border-color: var(--brand-line); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ke-tile:active { cursor: grabbing; }
.ke-lay-p { display: flex; gap: 3px; width: 64px; height: 26px; } .ke-lay-p i { display: block; border-radius: 4px; background: var(--brand-bg); border: 1px solid var(--brand-line); }
.ke-secs { display: grid; gap: 6px; }
.ke-sec { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 10px 12px; cursor: grab; color: var(--text2); font-size: 13px; font-weight: 600; text-align: left; }
.ke-sec:hover { border-color: var(--brand-line); }
.ke-sec .ki { color: var(--brand2); }
.ke-tip { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 10px 2px 0; }
.ke-tip a { color: var(--brand2); }

/* folha do e-mail */
.ke-stage { overflow: auto; min-height: 0; background: var(--col); outline: none; }
.ke-paper { min-height: 100%; padding: 28px 20px 80px; display: flex; justify-content: center; transition: background .2s; }
.ke-card { box-shadow: 0 1px 3px rgba(14, 20, 48, .08), 0 12px 32px rgba(14, 20, 48, .08); position: relative; transition: width .25s; height: max-content; max-width: 100%; }
.ke-card table { border-collapse: collapse; }
.ke-card a { color: var(--ke-link); cursor: default; }
.ke-card .k-rich p, .ke-card .ke-edit p { margin: 0 0 12px; } .ke-card .ke-edit p:last-child { margin-bottom: 0; }
.ke-card ul, .ke-card ol { margin: 0 0 12px; padding-left: 22px; }
.ke-row { position: relative; outline: 1px dashed transparent; outline-offset: -1px; transition: outline-color .12s; }
.ke-row:hover { outline-color: var(--brand-line); }
.ke-row.sel { outline: 2px solid var(--brand); }
.ke-row.hidem { opacity: .55; }
.ke-rbar { position: absolute; left: -1px; top: 0; transform: translateY(-100%); display: none; align-items: center; gap: 2px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 4px 2px 2px; border-radius: 6px 6px 0 0; z-index: 4; white-space: nowrap; }
.ke-row:hover > .ke-rbar, .ke-row.sel > .ke-rbar { display: flex; }
.ke-rbar span { padding: 0 4px; }
.ke-rbar button, .ke-bar button { border: 0; background: transparent; color: inherit; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; cursor: pointer; padding: 0; }
.ke-rbar button:hover, .ke-bar button:hover { background: rgba(255, 255, 255, .22); }
.ke-rbar .ki, .ke-bar .ki { width: 14px; height: 14px; }
.ke-cols { display: flex; gap: 20px; } .ke-cols:not(.multi) { gap: 0; }
.ke-col { min-width: 0; min-height: 40px; position: relative; }
.ke-cols.multi > .ke-col { outline: 1px dashed transparent; } .ke-row:hover .ke-cols.multi > .ke-col { outline-color: var(--line2); }
.ke-emptycol { border: 2px dashed var(--line2); border-radius: 10px; color: var(--faint); font-size: 13px; display: grid; place-items: center; min-height: 72px; padding: 10px; text-align: center; }
.ke-blk { position: relative; border-radius: 4px; outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .1s; }
.ke-blk:hover { outline-color: var(--brand-line); }
.ke-blk.sel { outline: 2px solid var(--brand); }
.ke-bar { position: absolute; right: -4px; top: -4px; transform: translateY(-100%); display: none; align-items: center; gap: 1px; background: var(--brand); color: #fff; border-radius: 6px; padding: 2px; z-index: 5; font-size: 11px; font-weight: 700; box-shadow: 0 4px 12px rgba(59, 99, 255, .3); }
.ke-blk:hover > .ke-bar, .ke-blk.sel > .ke-bar { display: flex; }
.ke-bname { padding: 0 6px 0 2px; }
.ke-grip { cursor: grab; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px; }
.ke-grip:active { cursor: grabbing; }
.ke-bc { position: relative; }
.ke-edit { outline: none; min-height: 1.4em; cursor: text; border-radius: 3px; }
.ke-edit:focus { box-shadow: 0 0 0 3px var(--brand-ring); }
.ke-edit.ke-empty::before { content: attr(data-ph); color: var(--faint); }
.ke-edit:not([data-ph]).ke-empty::before { content: 'Escreva aqui…'; color: var(--faint); }
.ke-tag { display: inline-block; padding: 0 6px; margin: 0 1px; border-radius: 5px; background: var(--brand-bg); color: var(--brand2); border: 1px solid var(--brand-line); font-size: .86em; font-weight: 600; line-height: 1.45; vertical-align: baseline; white-space: nowrap; cursor: default; font-style: normal; text-transform: none; letter-spacing: 0; }
.ke-ph { border: 2px dashed var(--line2); border-radius: 10px; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; background: var(--panel2); cursor: pointer; margin-bottom: 12px; text-align: center; padding: 12px; }
.ke-ph.sm { min-height: 110px; }
.ke-ph:hover { border-color: var(--brand); color: var(--brand2); }
.ke-addrow { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 40px); margin: 6px 20px 18px; border: 2px dashed var(--line2); border-radius: 10px; background: transparent; color: var(--muted); height: 42px; cursor: pointer; font-weight: 600; font-size: 13px; }
.ke-addrow:hover { border-color: var(--brand); color: var(--brand2); }
.ke-autofoot { padding: 0 32px 22px; opacity: .8; } .ke-autofoot small { display: block; text-align: center; font-size: 11px; color: var(--faint); margin-top: 4px; }
.ke-dragging .ke-blk:hover { outline-color: transparent; }
.ke-ind { position: fixed; height: 4px; background: var(--brand); border-radius: 4px; pointer-events: none; z-index: 20; box-shadow: 0 0 0 3px var(--brand-ring); }
.ke-ind.row { height: 6px; }
.ke-paper[data-mode="mobile"] .ke-cols { flex-direction: column; gap: 14px; }
.ke-paper[data-mode="mobile"] .ke-cols > .ke-col { flex: none !important; width: 100%; }
.ke-paper[data-mode="mobile"] .ke-card { border-radius: 0 !important; }
.ke-paper[data-mode="mobile"] .ke-card .k-col { display: block !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
.ke-paper[data-mode="mobile"] .ke-card img { max-width: 100% !important; height: auto !important; }

/* propriedades */
.ke-phead { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg2); z-index: 2; }
.ke-phead > .ki { color: var(--brand2); } .ke-phead b { font-size: 14px; }
.ke-phead .ib { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--text2); }
.ke-phead .ib.danger:hover { color: var(--red2); border-color: var(--red-line); background: var(--red-bg); }
.ke-form { padding: 12px 14px 24px; display: flex; flex-direction: column; gap: 12px; }
.ke-lbody .ke-form { padding: 0; }
.ke-f1 { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ke-f1 > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.ke-f1 input, .ke-f1 select, .ke-f1 textarea, .ke-li input, .ke-li select, .ke-prod input, .ke-row2 select { height: 34px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; background: var(--panel); color: var(--text); font-size: 13.5px; width: 100%; min-width: 0; }
.ke-f1 textarea { height: auto; padding: 8px 10px; resize: vertical; }
.ke-f1 input:focus, .ke-f1 textarea:focus, .ke-li input:focus, .ke-prod input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
input.bad { border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-bg) !important; }
.ke-urlerr { font-size: 12px; color: var(--red2); font-style: normal; }
.ke-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px !important; line-height: 1.5; }
.ke-sub > span { font-weight: 500 !important; }
.ke-segw { display: flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; background: var(--panel); }
.ke-segw button { flex: 1; border: 0; background: transparent; height: 32px; display: grid; place-items: center; color: var(--muted); cursor: pointer; font-size: 12.5px; font-weight: 600; padding: 0 6px; }
.ke-segw button + button { border-left: 1px solid var(--line); }
.ke-segw button.on { background: var(--brand-bg); color: var(--brand2); }
.ke-swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ke-sw { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line2); cursor: pointer; padding: 0; }
.ke-sw.on { box-shadow: 0 0 0 2px var(--bg2), 0 0 0 4px var(--brand); }
.ke-swtxt { height: 26px; border: 1px solid var(--line2); background: var(--panel); border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--text2); padding: 0 8px; cursor: pointer; }
.ke-swtxt.on { background: var(--brand-bg); color: var(--brand2); border-color: var(--brand-line); }
.ke-swatches input[type=color] { width: 30px; height: 26px; padding: 0 2px; border: 1px solid var(--line2); border-radius: 7px; background: var(--panel); cursor: pointer; }
.ke-rng { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.ke-rng b { color: var(--text); font-weight: 700; }
.ke-rng input { accent-color: var(--brand); width: 100%; }
.ke-row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text2); margin: 0; }
.ke-row2 select { width: auto; min-width: 140px; }
.ke-color { display: inline-flex; align-items: center; gap: 6px; }
.ke-color input[type=color] { width: 34px; height: 30px; border: 1px solid var(--line2); border-radius: 8px; padding: 1px 3px; background: var(--panel); cursor: pointer; }
.ke-hex { width: 84px; height: 30px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 8px; background: var(--panel); color: var(--text); font: 12.5px ui-monospace, Menlo, monospace; }
.ke-aibar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px; border-radius: 10px; background: var(--brand-bg); border: 1px solid var(--brand-line); }
.ke-aibar > span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--brand2); margin-right: 2px; }
.ke-aibar .ki { width: 15px; height: 15px; }
.ke-imgpick { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.ke-imgpick img, .ke-noimg { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--panel2); }
.ke-noimg { display: grid; place-items: center; color: var(--faint); }
.ke-imgpick .col { display: flex; flex-direction: column; gap: 6px; }
.ke-imgpick.sm img, .ke-imgpick.sm .ke-noimg { width: 56px; height: 42px; }
.ke-list { display: flex; flex-direction: column; gap: 8px; }
.ke-li { display: grid; grid-template-columns: 110px 1fr 30px; gap: 6px; align-items: center; }
.ke-li .ib, .ke-prod .ib { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); cursor: pointer; color: var(--muted); }
.ke-prod { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--panel); }
.ke-prod-h { display: flex; align-items: center; gap: 6px; font-size: 13px; } .ke-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ke-lays { display: flex; gap: 6px; flex-wrap: wrap; }
.ke-lay2 { border: 1px solid var(--line2); background: var(--panel); border-radius: 8px; padding: 6px; cursor: pointer; }
.ke-lay2.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-ring); }
.ke-lay2 .ke-lay-p { width: 52px; height: 22px; }
.ke-ph-props { padding: 40px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ke-ph-props > .ki { width: 34px; height: 34px; color: var(--brand2); background: var(--brand-bg); border-radius: 10px; padding: 7px; }
.ke-ph-props b { color: var(--text); font-size: 14px; }
.ke-keys { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 12px; }
.ke-root kbd { font: 11px ui-monospace, Menlo, monospace; background: var(--panel); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--text2); }
.ke-root .chk { color: var(--text2); }

/* barra de formatação e janelinhas */
.ke-tb { position: fixed; z-index: 30; display: flex; align-items: center; gap: 1px; padding: 4px; background: #0e1430; color: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.ke-tb button { width: 30px; height: 30px; border: 0; background: transparent; color: #e5e9fb; border-radius: 7px; display: grid; place-items: center; cursor: pointer; }
.ke-tb button:hover { background: rgba(255, 255, 255, .12); } .ke-tb button.on { background: rgba(142, 168, 255, .3); color: #fff; }
.ke-tb .ki { width: 16px; height: 16px; } .ke-tb .sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .2); margin: 0 3px; }
.ke-pop { position: fixed; z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; max-height: min(70vh, 520px); overflow: auto; }
.ke-menu { display: flex; flex-direction: column; min-width: 200px; z-index: 70; }
.ke-menu button { border: 0; background: transparent; text-align: left; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--text); }
.ke-menu button:hover { background: var(--hover); } .ke-menu button.danger { color: var(--red2); }
.ke-pop-colors { display: grid; grid-template-columns: repeat(6, 26px); gap: 6px; align-items: center; }
.ke-pop-colors button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line2); cursor: pointer; }
.ke-pop-colors .ke-swtxt { width: auto; grid-column: span 2; }
.ke-pop-tags { display: flex; flex-direction: column; gap: 2px; width: 300px; }
.ke-pop-tags button { border: 0; background: transparent; text-align: left; padding: 7px 9px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--text); font-size: 13px; }
.ke-pop-tags button:hover { background: var(--hover); }
.ke-pop-tags code { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ke-check { width: 360px; display: flex; flex-direction: column; gap: 4px; }
.ke-check-h { display: flex; gap: 12px; align-items: center; padding: 6px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ke-check-h > b { font: 800 26px var(--display); width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.ke-check-h > b.good { background: var(--green-bg); color: var(--green); } .ke-check-h > b.mid { background: var(--amber-bg); color: var(--amber); } .ke-check-h > b.bad { background: var(--red-bg); color: var(--red2); }
.ke-check-h div { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); } .ke-check-h div b { color: var(--text); font-size: 14px; }
.ke-ci { display: flex; gap: 10px; align-items: flex-start; border: 0; background: transparent; text-align: left; padding: 7px 8px; border-radius: 8px; color: var(--text); font-size: 13px; cursor: default; }
.ke-ci[data-goto] { cursor: pointer; } .ke-ci[data-goto]:hover { background: var(--hover); }
.ke-ci > .ki { width: 18px; height: 18px; border-radius: 50%; padding: 2px; flex: none; margin-top: 1px; }
.ke-ci.ok > .ki { background: var(--green-bg); color: var(--green); } .ke-ci.erro > .ki { background: var(--red-bg); color: var(--red2); }
.ke-ci.aviso > .ki { background: var(--amber-bg); color: var(--amber); } .ke-ci.dica > .ki { background: var(--blue-bg); color: var(--blue); }
.ke-ci span { display: flex; flex-direction: column; gap: 2px; } .ke-ci em { font-style: normal; color: var(--muted); font-size: 12px; line-height: 1.45; }

/* prévia */
.modal.ke-prevmodal { width: min(1080px, 96vw); max-width: 96vw; }
.ke-prevbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; position: relative; }
.ke-prevbar .btn.on { background: var(--brand-bg); color: var(--brand2); border-color: var(--brand-line); }
.ke-pvq { height: 32px; border: 1px solid var(--line2); border-radius: 8px; padding: 0 10px; background: var(--panel); color: var(--text); width: 260px; max-width: 100%; }
.ke-pvres { position: absolute; right: 0; top: 40px; z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 260px; }
.ke-pvres:empty { display: none; }
.ke-pvres button { border: 0; background: transparent; text-align: left; padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; font-size: 13px; color: var(--text); }
.ke-pvres button:hover { background: var(--hover); } .ke-pvres span { font-size: 11.5px; color: var(--muted); } .ke-pvres em { padding: 8px 12px; color: var(--muted); font-size: 13px; }
.ke-inbox { display: flex; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px 10px 0 0; background: var(--panel2); font-size: 13.5px; white-space: nowrap; overflow: hidden; }
.ke-ib-subj { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; } .ke-ib-pre { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.ke-prevwrap { height: min(66vh, 720px); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; background: var(--col); display: flex; justify-content: center; overflow: hidden; }
.ke-prevwrap[data-dev="mobile"] { padding: 16px 0; }
.ke-prevframe { width: 100%; height: 100%; border: 0; background: #fff; }
.ke-prevwrap[data-dev="mobile"] .ke-prevframe { width: 390px; border-radius: 24px; border: 8px solid #0e1430; }
.ke-subjs { display: flex; flex-direction: column; gap: 6px; }
.ke-subjs button { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 10px 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.ke-subjs button:hover { border-color: var(--brand); background: var(--brand-bg); } .ke-subjs span { font-size: 11.5px; color: var(--muted); }
.ke-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.ke-imgs button { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.ke-imgs button:hover { border-color: var(--brand); }
.ke-imgs img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; background: var(--panel2); }
.ke-imgs span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ke-catlist { display: flex; flex-direction: column; gap: 8px; max-height: 55vh; overflow: auto; }

/* abas do celular */
.ke-mtabs { display: none; }
@media (max-width: 1180px) {
  .ke-main { grid-template-columns: 220px minmax(0, 1fr) 280px; }
  .ke-actions .btn span { display: none; } .ke-actions .btn { padding: 0 10px; } .ke-actions .ke-score span { display: none; }
}
@media (max-width: 920px) { .ke-hide-s { display: none !important; } .ke-seg button span { display: none; } }
@media (max-width: 760px) {
  .ke-root { grid-template-rows: auto auto 1fr auto; }
  .ke-top { padding: 8px 10px; gap: 6px; flex-wrap: wrap; }
  .ke-back span, .ke-kind, .ke-status { display: none; }
  .ke-title { flex: 1 1 0; } .ke-name { font-size: 15px; }
  .ke-actions { width: 100%; justify-content: space-between; overflow-x: auto; }
  .ke-actions .ke-seg, .ke-actions [data-act=undo], .ke-actions [data-act=redo] { display: none; }
  .ke-subj { padding: 8px 10px; gap: 6px; } .ke-f { flex-basis: 100%; } .ke-f > span { min-width: 82px; } .ke-tagbtn { display: none; }
  .ke-main { grid-template-columns: 1fr; position: relative; }
  .ke-lib, .ke-props { position: absolute; inset: 0; z-index: 6; border: 0; display: none; }
  .ke-root[data-pane="lib"] .ke-lib, .ke-root[data-pane="props"] .ke-props { display: block; }
  .ke-paper { padding: 14px 0 40px; }
  .ke-card { width: 100% !important; border-radius: 0 !important; }
  .ke-cols { flex-direction: column; gap: 14px; }
  .ke-cols > .ke-col { flex: none !important; width: 100%; }
  .ke-card .k-col { display: block !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
  .ke-row { padding-left: 18px !important; padding-right: 18px !important; }
  .ke-bar { right: 0; }
  .ke-mtabs { display: flex; border-top: 1px solid var(--line); background: var(--bg2); }
  .ke-mtabs button { flex: 1; border: 0; background: transparent; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); position: relative; }
  .ke-mtabs button.on { color: var(--brand2); }
  .ke-mtabs button.dot::after { content: ''; position: absolute; top: 9px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
  .ke-tiles { grid-template-columns: repeat(3, 1fr); }
  .ke-check { width: min(340px, 90vw); }
  .ke-prevwrap[data-dev="mobile"] .ke-prevframe { width: 100%; border-width: 0; border-radius: 0; }
}

/* galeria de modelos */
.ke-gal-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ke-gal-h > div { display: flex; flex-direction: column; gap: 2px; }
.ke-gal-t { font: 700 18px var(--display); }
.ke-gal .ke-gal-q { flex: 0 1 240px; min-width: 160px; width: 240px; height: 36px; border: 1px solid var(--line2); border-radius: 9px; padding: 0 12px; background: var(--panel); color: var(--text); width: 220px; }
.ke-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.ke-chips button { border: 1px solid var(--line2); background: var(--panel); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; }
.ke-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.ke-chips button span { opacity: .75; font-weight: 700; margin-left: 2px; }
.ke-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.ke-tcard { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s, border-color .15s; }
.ke-tcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-line); }
.ke-thumb { position: relative; height: 270px; overflow: hidden; background: var(--col); border-bottom: 1px solid var(--line); }
.ke-thumb iframe { position: absolute; left: 50%; top: 0; width: 640px; height: 860px; border: 0; transform: translateX(-50%) scale(.38); transform-origin: top center; pointer-events: none; background: #fff; }
.ke-thumb-hover { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 20, 48, .0); opacity: 0; transition: opacity .15s, background .15s; }
.ke-tcard:hover .ke-thumb-hover { opacity: 1; background: rgba(14, 20, 48, .28); }
.ke-tbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ke-tname { display: flex; align-items: center; gap: 8px; } .ke-tname b { font-size: 14.5px; }
.ke-tdesc { font-size: 12.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.ke-tacts { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.ke-tacts .ib { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--text2); }
.ke-gal-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--muted); border: 2px dashed var(--line2); border-radius: 14px; }
@media (max-width: 760px) { .ke-gal .ke-gal-q { width: 100%; flex: 1 1 100%; } .ke-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .ke-thumb { height: 200px; } .ke-thumb iframe { transform: translateX(-50%) scale(.28); } }
@media (max-width: 420px) { .ke-grid { grid-template-columns: 1fr; } .ke-thumb { height: 260px; } .ke-thumb iframe { transform: translateX(-50%) scale(.5); } }
.ke-tb[hidden], .ke-ind[hidden], .ke-urlerr[hidden] { display: none !important; }
