/* ==========================================================================
   Imaginarium — aparência "Photopea"
   Medidas e cores tiradas de capturas de tela do Photopea (1:1):
   painéis #474747 · área de trabalho #252525 · texto #d5d5d5 · ícones #c7c7c7
   seleção #5d5d5d · destaque #3482f6 · fonte Open Sans 13 px.
   ========================================================================== */

/* elementos exclusivos de uma aparência */
#pp-extra, #pp-links, #pp-home, .pp-kbd-btn { display: none; }

html[data-skin="photopea"] {
  --bg-0: #252525; --bg-1: #474747; --bg-2: #474747; --bg-3: #5d5d5d; --bg-4: #5d5d5d; --bg-5: #6a6a6a;
  --line: #252525; --line-soft: #3a3a3a;
  --text: #d5d5d5; --text-dim: #a0a0a0; --text-faint: #8a8a8a;
  --accent: #3482f6; --accent-strong: #3482f6; --accent-soft: rgba(52, 130, 246, 0.22);
  --font: "Open Sans", "Noto Sans", "Segoe UI", Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --pp-bg: #474747; --pp-dark: #252525; --pp-sel: #5d5d5d; --pp-ico: #c7c7c7; --pp-hist: #353535;
}
html[data-skin="photopea"], html[data-skin="photopea"] body { background: #474747; }
html[data-skin="photopea"] body { font: 13px/1.25 var(--font); color: #d5d5d5; -webkit-font-smoothing: auto; }
html[data-skin="photopea"] * { scrollbar-color: #6a6a6a transparent; }
html[data-skin="photopea"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-skin="photopea"] ::-webkit-scrollbar-thumb { background: #6a6a6a; border: 2px solid #474747; border-radius: 6px; }
html[data-skin="photopea"] ::-webkit-scrollbar-track { background: transparent; }
html[data-skin="photopea"] ::selection { background: rgba(52, 130, 246, 0.5); }
html[data-skin="photopea"] .ico { color: #c7c7c7; }

/* ---------- estrutura ---------- */
html[data-skin="photopea"] #app { grid-template-rows: 32px 31px minmax(0, 1fr) 0; background: #474747; }
html[data-skin="photopea"] #statusbar { display: none; }
html[data-skin="photopea"] #main { background: #474747; }
html[data-skin="photopea"] #center { background: #252525; border-top-left-radius: 6px; overflow: hidden; }
html[data-skin="photopea"] #dock-resizer { display: none; }

/* ---------- barra de menus ---------- */
html[data-skin="photopea"] #menubar { background: #474747; border: 0; height: 32px; }
html[data-skin="photopea"] .brand, html[data-skin="photopea"] #menubar-right { display: none; }
html[data-skin="photopea"] #menus { padding-left: 0.5px; }
html[data-skin="photopea"] .menu-top { padding: 0 9.6px; font-size: 13px; color: #d5d5d5; border-radius: 0; }
html[data-skin="photopea"] .menu-top:hover { background: transparent; color: #fff; }
html[data-skin="photopea"] .menu-top.open { background: #5d5d5d; color: #fff; }
html[data-skin="photopea"] #pp-extra { display: flex; align-items: center; gap: 4px; padding-left: 8px; }
html[data-skin="photopea"] .pp-ico-btn { width: 30px; height: 26px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; border-radius: 3px; }
html[data-skin="photopea"] .pp-ico-btn .ico { color: #c7c7c7; }
html[data-skin="photopea"] .pp-ico-btn:hover { background: #5d5d5d; }
html[data-skin="photopea"] #pp-links { display: flex; align-items: center; margin-left: auto; padding-right: 8px; }
html[data-skin="photopea"] .pp-link { padding: 0 7px; height: 24px; border: 0; background: none; color: #d5d5d5; font-size: 13px; border-radius: 3px; }
html[data-skin="photopea"] .pp-link:hover { color: #fff; text-decoration: underline; }

/* ---------- menus suspensos (vidro claro, como no Photopea) ---------- */
html[data-skin="photopea"] .menu { min-width: 200px; padding: 4px 0; background: rgba(245, 245, 245, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(0, 0, 0, 0.28); border-radius: 6px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45); color: #1a1a1a; font-size: 13px; }
html[data-skin="photopea"] .menu-item { height: 24px; grid-template-columns: 24px minmax(0, 1fr) auto 18px; padding: 0 4px 0 0; color: #1a1a1a; }
html[data-skin="photopea"] .menu-item.hover, html[data-skin="photopea"] .menu-item:hover { background: rgba(0, 0, 0, 0.11); color: #000; }
html[data-skin="photopea"] .menu-item.disabled, html[data-skin="photopea"] .menu-item.disabled.hover, html[data-skin="photopea"] .menu-item.disabled:hover { color: #9a9a9a; background: none; }
html[data-skin="photopea"] .menu-item.checked { background: none; }
html[data-skin="photopea"] .mi-check, html[data-skin="photopea"] .mi-check .ico, html[data-skin="photopea"] .menu-item.hover .mi-check { color: #1a1a1a; }
html[data-skin="photopea"] .mi-hint { color: #6a6a6a; padding-left: 26px; }
html[data-skin="photopea"] .menu-item.hover .mi-hint, html[data-skin="photopea"] .menu-item:hover .mi-hint { color: #444; }
html[data-skin="photopea"] .menu-item.disabled .mi-hint { color: #b0b0b0; }
html[data-skin="photopea"] .mi-arrow, html[data-skin="photopea"] .mi-arrow .ico { color: #555; }
html[data-skin="photopea"] .menu-sep { height: 1px; margin: 4px 0; background: rgba(0, 0, 0, 0.16); }

/* ---------- barra de opções ---------- */
html[data-skin="photopea"] #optionsbar { background: #474747; border: 0; height: 31px; gap: 18px; padding: 0 10px 0 0; font-size: 13px; }
html[data-skin="photopea"] .opt-tool { min-width: 0; padding: 0 0 0 9px; margin-right: -5px; background: none; border: 0; font-weight: 400; }
html[data-skin="photopea"] .opt-tool > span:not(.ico-wrap) { display: none; }
html[data-skin="photopea"] .opt-tool .ico { color: #c7c7c7; width: 25px; height: 25px; }
html[data-skin="photopea"] .opt-hint { display: none; }
html[data-skin="photopea"] .opt-sep { width: 0; margin: 0 4px; background: none; }
html[data-skin="photopea"] .opt-label { color: #d5d5d5; }
html[data-skin="photopea"] .opt-field { gap: 4px; }
html[data-skin="photopea"] .opt-group { gap: 4px; }
html[data-skin="photopea"] #optionsbar .icon-btn { width: 26px; height: 26px; border: 0; border-radius: 3px; }
html[data-skin="photopea"] #optionsbar .icon-btn .ico { width: 20px; height: 20px; }

/* ---------- controles ---------- */
html[data-skin="photopea"] .inp, html[data-skin="photopea"] .num, html[data-skin="photopea"] .sel { height: 26px; background-color: #252525; border: 0; border-radius: 4px; color: #d5d5d5; font-size: 13px; }
html[data-skin="photopea"] .inp:focus, html[data-skin="photopea"] .num:focus-within, html[data-skin="photopea"] .sel:focus { box-shadow: inset 0 0 0 1px #3482f6; }
html[data-skin="photopea"] .sel { padding: 0 24px 0 8px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1.2 1.4L5 5.2l3.8-3.8' fill='none' stroke='%23d0d0d0' stroke-width='1.8'/%3E%3C/svg%3E"); background-position: right 8px center; }
html[data-skin="photopea"] .sel option { background: #474747; color: #d5d5d5; }
html[data-skin="photopea"] .num { padding: 0 6px; }
html[data-skin="photopea"] .num-input { text-align: left; }
html[data-skin="photopea"] .num-unit { color: #d5d5d5; }
html[data-skin="photopea"] .num-group .num { border-radius: 4px; }
html[data-skin="photopea"] .num-caret { width: 16px; height: 26px; margin-left: 2px; background: none; border: 0; color: #d5d5d5; }
html[data-skin="photopea"] .num-caret .ico { display: none; }
html[data-skin="photopea"] .num-caret::before { content: ""; border-style: solid; border-width: 7px 4.5px 0 4.5px; border-color: #d5d5d5 transparent transparent transparent; }
html[data-skin="photopea"] .num-caret:hover { background: none; }
html[data-skin="photopea"] .num-caret:hover::before { border-top-color: #fff; }

/* caixas de seleção nativas, como no Photopea */
html[data-skin="photopea"] .chk { gap: 4px; }
html[data-skin="photopea"] .chk input { position: static; opacity: 1; width: 13px; height: 13px; margin: 0 0 0 1px; color-scheme: light; accent-color: #0075ff; }
html[data-skin="photopea"] .chk-box { display: none; }
html[data-skin="photopea"] .chk-label { color: #d5d5d5; }
html[data-skin="photopea"] input[type="checkbox"], html[data-skin="photopea"] input[type="radio"] { color-scheme: light; accent-color: #0075ff; }

html[data-skin="photopea"] .btn { height: 26px; padding: 0 10px; background: #5d5d5d; border: 0; border-radius: 4px; color: #e6e6e6; font-size: 13px; }
html[data-skin="photopea"] .btn:hover { background: #6a6a6a; color: #fff; }
html[data-skin="photopea"] .btn:active { background: #525252; }
html[data-skin="photopea"] .btn.primary { background: #5d5d5d; color: #fff; box-shadow: inset 0 0 0 1px #8c8c8c; }
html[data-skin="photopea"] .btn.primary:hover { background: #6a6a6a; }
html[data-skin="photopea"] .btn.small { height: 25px; padding: 0 8px; }
html[data-skin="photopea"] .btn .ico { color: #c7c7c7; }
html[data-skin="photopea"] .icon-btn { border: 0; border-radius: 3px; color: #c7c7c7; }
html[data-skin="photopea"] .icon-btn:hover { background: #5d5d5d; color: #fff; }
html[data-skin="photopea"] .icon-btn.active { background: #252525; border: 0; color: #fff; }
html[data-skin="photopea"] .seg { border: 0; border-radius: 4px; background: none; gap: 2px; }
html[data-skin="photopea"] .seg-btn { height: 26px; min-width: 26px; border: 0; border-radius: 3px; color: #c7c7c7; background: none; }
html[data-skin="photopea"] .seg-btn:hover { background: #5d5d5d; color: #fff; }
html[data-skin="photopea"] .seg-btn.active { background: #252525; color: #fff; }
html[data-skin="photopea"] .color-btn { height: 26px; background: #252525; border: 0; border-radius: 4px; }
html[data-skin="photopea"] .range::-webkit-slider-runnable-track { background: linear-gradient(to right, #3482f6 var(--fill), #252525 var(--fill)); box-shadow: none; }
html[data-skin="photopea"] .range::-webkit-slider-thumb { background: #d5d5d5; border: 0; }
html[data-skin="photopea"] .form-title, html[data-skin="photopea"] .props-title, html[data-skin="photopea"] .props-head { color: #e6e6e6; border-bottom-color: #3a3a3a; font-weight: 400; }
html[data-skin="photopea"] .form-label, html[data-skin="photopea"] .slider-label { color: #d5d5d5; }
html[data-skin="photopea"] .panel-note, html[data-skin="photopea"] .dialog-note { color: #a8a8a8; }

/* ---------- barra de ferramentas ---------- */
html[data-skin="photopea"] #toolbar { width: 38px; padding: 4px 0 0; align-items: flex-start; background: #474747; border: 0; }
html[data-skin="photopea"] #toolbar.two { width: 70px; }
html[data-skin="photopea"] .tool-grid { grid-template-columns: 35px; gap: 0; justify-content: start; }
html[data-skin="photopea"] #toolbar.two .tool-grid { grid-template-columns: 35px 35px; }
html[data-skin="photopea"] .tool-sep { display: none; }
html[data-skin="photopea"] .tool-btn { width: 35px; height: 29px; margin-bottom: 2.33px; padding: 0 0 0 3px; border-radius: 0 4px 4px 0; color: #c7c7c7; background: none; }
html[data-skin="photopea"] .tool-btn .ico { width: 25px; height: 25px; color: #c7c7c7; }
html[data-skin="photopea"] .tool-btn:hover { background: rgba(255, 255, 255, 0.05); }
html[data-skin="photopea"] .tool-btn.active { background: linear-gradient(90deg, #3482f6 0 3px, #5d5d5d 3px); box-shadow: none; color: #fff; }
html[data-skin="photopea"] .tool-btn.multi::after { right: 1px; bottom: 1px; border-width: 0 0 4px 4px; border-color: transparent transparent #c7c7c7 transparent; opacity: 1; }
html[data-skin="photopea"] #toolbar .color-well { width: 35px; height: 34px; margin: 7px 0 0 0; }
html[data-skin="photopea"] .cw-fg, html[data-skin="photopea"] .cw-bg { width: 21px; height: 21px; border: 1px solid #000; border-radius: 6px; box-shadow: none; }
html[data-skin="photopea"] .cw-fg { left: 2px; top: 0; }
html[data-skin="photopea"] .cw-bg { left: 15px; top: 13px; right: auto; bottom: auto; }
html[data-skin="photopea"] .cw-swap { left: 2px; top: 20px; right: auto; width: 13px; height: 13px; color: #aaa; }
html[data-skin="photopea"] .cw-swap .ico { width: 11px; height: 11px; color: #aaa; }
html[data-skin="photopea"] .cw-reset { left: 21px; top: 0; bottom: auto; width: 14px; height: 13px; }
html[data-skin="photopea"] .cw-reset i { width: 9px; height: 9px; border: 1px solid #aaa; border-radius: 2px; }
html[data-skin="photopea"] .cw-reset i:first-child { left: 0; top: 0; }
html[data-skin="photopea"] .cw-reset i:last-child { right: 0; bottom: -2px; }
html[data-skin="photopea"] .qm-btn { margin-top: 2px; height: 25px; }
html[data-skin="photopea"] .qm-btn .ico, html[data-skin="photopea"] .pp-kbd-btn .ico { width: 21px; height: 21px; }
html[data-skin="photopea"] .pp-kbd-btn { display: flex; margin-top: 0; height: 25px; }

/* ---------- abas de documentos ---------- */
html[data-skin="photopea"] #doctabs { height: 30px; padding: 4px 4px 0; align-items: flex-start; gap: 4px; background: #252525; border: 0; }
html[data-skin="photopea"] .doc-tab { height: 26px; gap: 6px; padding: 0 6px 0 8px; max-width: 260px; border: 0; border-radius: 4px; background: #353535; color: #a0a0a0; font-size: 13px; }
html[data-skin="photopea"] .doc-tab:hover { background: #3d3d3d; color: #d5d5d5; }
html[data-skin="photopea"] .doc-tab.active { background: #474747; color: #d5d5d5; box-shadow: none; }
html[data-skin="photopea"] .doc-x { width: 18px; height: 18px; color: #c7c7c7; border-radius: 3px; }
html[data-skin="photopea"] .doc-x .ico { width: 13px; height: 13px; stroke-width: 2.2; color: #c7c7c7; }
html[data-skin="photopea"] .doc-x:hover { background: #5d5d5d; color: #fff; }

/* ---------- réguas e área de trabalho ---------- */
html[data-skin="photopea"] #stage { grid-template-columns: 17px minmax(0, 1fr); grid-template-rows: 17px minmax(0, 1fr); }
html[data-skin="photopea"] #stage.no-rulers { grid-template-columns: 0 minmax(0, 1fr); grid-template-rows: 0 minmax(0, 1fr); }
html[data-skin="photopea"] #ruler-corner { background: #474747; border: 0; }
html[data-skin="photopea"] #viewport { background: #252525; }
html[data-skin="photopea"] #ruler-mark-h, html[data-skin="photopea"] #ruler-mark-v { background: #e0e0e0; }

/* ---------- painéis: coluna estreita + coluna larga ---------- */
html[data-skin="photopea"] #dock { width: auto; flex-direction: row; gap: 4px; padding-left: 0; background: #252525; border: 0; }
html[data-skin="photopea"] .pp-ncol { width: 39px; flex: none; display: flex; flex-direction: column; }
html[data-skin="photopea"] .pp-ncol.wide { width: 128px; }
html[data-skin="photopea"] .pp-mcol { width: 268px; flex: none; display: flex; flex-direction: column; min-height: 0; }
html[data-skin="photopea"] #dock.pp-main-off .pp-mcol { width: 22px; }
html[data-skin="photopea"] #dock.pp-main-off .pp-mbody { display: none; }
html[data-skin="photopea"] .pp-dtop { height: 11px; flex: none; display: flex; align-items: center; justify-content: center; }
html[data-skin="photopea"] .pp-tog { height: 11px; padding: 0 6px; border: 0; background: none; color: #b6b6b6; font: 700 8px/11px var(--font); letter-spacing: -0.5px; }
html[data-skin="photopea"] .pp-tog:hover { color: #fff; }
html[data-skin="photopea"] .pp-nbody { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 4px; }
html[data-skin="photopea"] .pp-ngroup { flex: none; display: flex; flex-direction: column; background: #474747; border-radius: 4px; }
html[data-skin="photopea"] .pp-ngroup.pp-nfill { flex: 1; border-radius: 4px 4px 0 0; }
html[data-skin="photopea"] .pp-ngroup.pp-drop { box-shadow: inset 0 0 0 2px #3482f6; }
html[data-skin="photopea"] .pp-nbtn { height: 34px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; gap: 8px; color: #c7c7c7; border-radius: 4px; }
html[data-skin="photopea"] .pp-nbtn .ico { width: 25px; height: 25px; color: #c7c7c7; flex: none; }
html[data-skin="photopea"] .pp-nbtn:hover { background: #5d5d5d; }
html[data-skin="photopea"] .pp-nbtn.on { background: #5d5d5d; }
html[data-skin="photopea"] .pp-nlabel { display: none; font-size: 12px; color: #d5d5d5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-skin="photopea"] .pp-ncol.wide .pp-nbtn { justify-content: flex-start; padding: 0 8px; }
html[data-skin="photopea"] .pp-ncol.wide .pp-nlabel { display: block; }
html[data-skin="photopea"] .pp-nabbr { font: 600 12px var(--font); color: #d5d5d5; }
html[data-skin="photopea"] .pp-mbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
html[data-skin="photopea"] .pp-mgroup { flex: none; display: flex; flex-direction: column; min-height: 60px; background: #474747; overflow: hidden; }
html[data-skin="photopea"] .pp-mgroup.last { flex: 1 1 0; }
html[data-skin="photopea"] .pp-mgroup.pp-drop { box-shadow: inset 0 -3px 0 #3482f6; }
html[data-skin="photopea"] .pp-mhead { height: 26px; flex: none; display: flex; align-items: stretch; gap: 4px; background: #252525; }
html[data-skin="photopea"] .pp-mhead.pp-drop { box-shadow: inset 0 0 0 2px #3482f6; }
html[data-skin="photopea"] .pp-tab { padding: 0 7px 0 7px; border: 0; border-radius: 4px 4px 0 0; background: none; color: #a0a0a0; font-size: 13px; white-space: nowrap; flex: 0 1 auto; min-width: 24px; overflow: hidden; text-overflow: ellipsis; }
html[data-skin="photopea"] .pp-tab:hover { color: #d5d5d5; }
html[data-skin="photopea"] .pp-tab.active { background: #474747; color: #d5d5d5; }
html[data-skin="photopea"] .pp-hfill { flex: 1; }
html[data-skin="photopea"] .pp-menu { width: 18px; height: 21px; margin: 1px 4px 4px 0; padding: 0; border: 0; border-radius: 3px; background: #474747; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: none; }
html[data-skin="photopea"] .pp-menu i { display: block; width: 8px; height: 1px; background: #cecece; }
html[data-skin="photopea"] .pp-menu:hover { background: #5d5d5d; }
html[data-skin="photopea"] .pp-msplit { height: 4px; flex: none; background: #252525; cursor: row-resize; }
html[data-skin="photopea"] .pp-msplit:hover, html[data-skin="photopea"] .pp-msplit.pp-drop { background: #3482f6; }
html[data-skin="photopea"] .pp-gbody { flex: 1; min-height: 0; display: flex; background: #474747; }
html[data-skin="photopea"] .pp-fly { position: fixed; z-index: 60; width: 268px; display: flex; flex-direction: column; background: #474747; border-radius: 4px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5); overflow: hidden; }
html[data-skin="photopea"] .pp-fly .pp-gbody { flex: 0 1 auto; min-height: 90px; max-height: inherit; overflow: auto; }
html[data-skin="photopea"] .pp-fly .panel { flex: 1 1 auto; min-height: 90px; }
html[data-skin="photopea"] .pp-fly .panel-layers, html[data-skin="photopea"] .pp-fly .panel-history, html[data-skin="photopea"] .pp-fly .panel-navigator, html[data-skin="photopea"] .pp-fly .panel-swatches, html[data-skin="photopea"] .pp-fly .panel-channels, html[data-skin="photopea"] .pp-fly .panel-paths, html[data-skin="photopea"] .pp-fly .panel-library, html[data-skin="photopea"] .pp-fly .panel-brush { height: 380px; }
html[data-skin="photopea"] .pp-fly .pp-mhead { border-radius: 4px 4px 0 0; }

/* conteúdo dos painéis */
html[data-skin="photopea"] .panel { background: #474747; }
html[data-skin="photopea"] .panel-foot { height: 31px; padding: 0 6px; gap: 0; border-top: 1px solid #252525; background: #474747; }
html[data-skin="photopea"] .panel-foot .icon-btn { width: 25px; height: 25px; }
html[data-skin="photopea"] .panel-foot .icon-btn .ico { width: 18px; height: 18px; }
html[data-skin="photopea"] .panel-empty { color: #a0a0a0; }

/* Camadas */
html[data-skin="photopea"] .ltop { padding: 4px 2px 4px; border-bottom: 1px solid #252525; }
html[data-skin="photopea"] .ltop-row { gap: 6px; }
html[data-skin="photopea"] .ltop-row + .ltop-row { margin-top: 4px; }
html[data-skin="photopea"] .ltop .lblend { flex: 0 0 107px; width: 107px; }
html[data-skin="photopea"] .ltop .opt-label { font-size: 13px; color: #d5d5d5; }
html[data-skin="photopea"] .ltop .opt-field { gap: 4px; }
html[data-skin="photopea"] .ltop .num { width: 43px !important; padding: 0 5px 0 3px; gap: 0; }
html[data-skin="photopea"] .ltop .num-input { text-align: right; }
html[data-skin="photopea"] .sel:disabled { opacity: 1; }
html[data-skin="photopea"] .ltop .pgroup-fill { display: none; }
html[data-skin="photopea"] .ltop .icon-btn { width: 19px; height: 22px; }
html[data-skin="photopea"] .ltop .icon-btn .ico { width: 17px; height: 17px; }
html[data-skin="photopea"] .ltop-row:last-child { gap: 0; }
html[data-skin="photopea"] .ltop-row:last-child > .opt-label { margin-right: 4px; }
html[data-skin="photopea"] .ltop-row:last-child > .opt-field { margin-left: 8px; }
html[data-skin="photopea"] .llist { background: #474747; padding-right: 10px; }
html[data-skin="photopea"] .lrow { height: 28px; gap: 0; padding-right: 4px; border-bottom: 0; }
html[data-skin="photopea"] .lrow::before { left: 0; width: 3px; }
html[data-skin="photopea"] .lrow:hover { background: rgba(255, 255, 255, 0.04); }
html[data-skin="photopea"] .lrow.selected, html[data-skin="photopea"] .lrow.active, html[data-skin="photopea"] .llist.dragging .lrow.selected:hover { background: #5d5d5d; }
html[data-skin="photopea"] .leye { width: 28px; border: 0; color: #c7c7c7; }
html[data-skin="photopea"] .leye .ico { width: 19px; height: 19px; }
html[data-skin="photopea"] .lthumb { width: 38px; height: 24px; margin: 0 8px 0 2px; border: 0; background: transparent; }
html[data-skin="photopea"] .lthumb-cv { width: 38px; height: 24px; }
html[data-skin="photopea"] .lthumb.target { outline: 0; box-shadow: none; padding: 3px; background: repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0 0 / 6px 6px; }
html[data-skin="photopea"] .lthumb.target .lthumb-cv { width: 32px; height: 18px; }
html[data-skin="photopea"] .lthumb.folder { color: #c7c7c7; }
html[data-skin="photopea"] .lthumb.adj, html[data-skin="photopea"] .lthumb.fill, html[data-skin="photopea"] .lthumb.vmask { background: transparent; color: #c7c7c7; }
html[data-skin="photopea"] .lname { color: #d5d5d5; font-size: 13px; }
html[data-skin="photopea"] .llock { color: #929292; margin-left: 4px; }
html[data-skin="photopea"] .llock.full { color: #929292; }
html[data-skin="photopea"] .llock .ico { width: 16px; height: 16px; color: #929292; }
html[data-skin="photopea"] .lfx, html[data-skin="photopea"] .lmeta { color: #c7c7c7; }
html[data-skin="photopea"] .lfxrow { height: 22px; font-size: 12px; }
html[data-skin="photopea"] .lfoot { justify-content: flex-end; padding-right: 6px; }
html[data-skin="photopea"] .lfoot .pgroup-fill { display: none; }
html[data-skin="photopea"] .lfoot .icon-btn { width: 25px; }

/* Histórico */
html[data-skin="photopea"] .hlist { background: #474747; padding-right: 10px; }
html[data-skin="photopea"] .hrow { height: 26px; padding: 0 4px; gap: 6px; border-bottom: 1px solid #252525; color: #d5d5d5; font-size: 13px; }
html[data-skin="photopea"] .hrow:hover { background: rgba(255, 255, 255, 0.04); }
html[data-skin="photopea"] .hrow.current { background: #353535; color: #d5d5d5; }
html[data-skin="photopea"] .hrow.future { color: #8a8a8a; font-style: normal; }
html[data-skin="photopea"] .hrow .hsrc, html[data-skin="photopea"] .hrow .hthumb, html[data-skin="photopea"] .hrow .hnum, html[data-skin="photopea"] .hrow .hsaved { display: none; }
html[data-skin="photopea"] .panel-history > .panel-foot { display: none; }

/* outras listas */
html[data-skin="photopea"] .plist, html[data-skin="photopea"] .nav-box, html[data-skin="photopea"] .bp-nav { background: #474747; }
html[data-skin="photopea"] .prow, html[data-skin="photopea"] .chrow, html[data-skin="photopea"] .acrow { border-bottom: 1px solid #3a3a3a; }
html[data-skin="photopea"] .prow.on, html[data-skin="photopea"] .chrow.on, html[data-skin="photopea"] .acitem.on, html[data-skin="photopea"] .bp-sec.on { background: #5d5d5d; color: #fff; }
html[data-skin="photopea"] .prow:hover, html[data-skin="photopea"] .chrow:hover, html[data-skin="photopea"] .acrow:hover { background: rgba(255, 255, 255, 0.04); }

/* ---------- diálogos, popovers, avisos ---------- */
html[data-skin="photopea"] .modal-back { background: rgba(0, 0, 0, 0.25); }
html[data-skin="photopea"] .dialog { background: #474747; border: 0; border-radius: 6px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55); }
html[data-skin="photopea"] .dialog-head { height: 32px; padding: 0 4px 0 12px; background: #474747; border: 0; border-radius: 6px 6px 0 0; }
html[data-skin="photopea"] .dialog-title { font-weight: 400; font-size: 13px; color: #d5d5d5; }
html[data-skin="photopea"] .dialog-x { color: #c7c7c7; }
html[data-skin="photopea"] .dialog-x:hover { background: #5d5d5d; color: #fff; }
html[data-skin="photopea"] .dialog-body { padding: 6px 14px 4px; }
html[data-skin="photopea"] .dialog-foot { padding: 10px 14px 12px; }
html[data-skin="photopea"] .popover { background: #474747; border: 0; border-radius: 5px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55); }
html[data-skin="photopea"] .toast { background: #474747; border: 0; border-left: 3px solid #3482f6; border-radius: 4px; color: #e6e6e6; }
html[data-skin="photopea"] .busy-box { background: #474747; border: 0; }
html[data-skin="photopea"] .tab-ghost { background: #5d5d5d; color: #fff; }
html[data-skin="photopea"] .ls-nav { background: #474747; border-right-color: #252525; }
html[data-skin="photopea"] .ls-item.active, html[data-skin="photopea"] .fg-item.active { background: #5d5d5d; }
html[data-skin="photopea"] .xp-note, html[data-skin="photopea"] .css-code { background: #252525; border: 0; }
html[data-skin="photopea"] .histogram, html[data-skin="photopea"] .curve-editor, html[data-skin="photopea"] .hist-canvas { background: #252525; border-color: #252525; }

/* pesquisa e teclado virtual */
html[data-skin="photopea"] .pp-search-pop { padding: 6px; width: 420px; }
.pp-search { display: flex; flex-direction: column; gap: 6px; }
.pp-search-list { max-height: 360px; overflow: auto; }
.pp-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; padding: 4px 8px; border-radius: 3px; cursor: default; }
.pp-search-row.on, .pp-search-row:hover { background: #5d5d5d; }
.pp-sr-label { color: #e6e6e6; }
.pp-sr-path { grid-row: 2; color: #9a9a9a; font-size: 11px; }
.pp-sr-key { grid-row: 1 / 3; grid-column: 2; align-self: center; color: #a0a0a0; font-size: 12px; }
.pp-search-none { padding: 6px 8px; color: #9a9a9a; }
.pp-kbd { display: flex; flex-direction: column; gap: 6px; width: 300px; }
.pp-kbd-row { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---------- tela inicial (sem documento aberto) ---------- */
html[data-skin="photopea"] #welcome { display: none !important; }
html[data-skin="photopea"] body.no-doc #pp-home { display: flex; }
html[data-skin="photopea"] body.no-doc #app { grid-template-rows: 32px minmax(0, 1fr); }
html[data-skin="photopea"] body.no-doc #optionsbar, html[data-skin="photopea"] body.no-doc #toolbar, html[data-skin="photopea"] body.no-doc #dock, html[data-skin="photopea"] body.no-doc #pp-fly { display: none; }
html[data-skin="photopea"] body.no-doc #center { border-radius: 0; }
#pp-home { position: absolute; inset: 0; z-index: 20; background: #252525; overflow: auto; }
.pp-hside { width: 210px; flex: none; padding-top: 31px; display: flex; flex-direction: column; }
.pp-hnav { height: 36px; display: flex; align-items: center; gap: 13px; padding: 0 0 0 35px; border: 0; background: none; color: #a8a8a8; font-size: 13px; text-align: left; }
.pp-hnav .ico { color: #c7c7c7; }
.pp-hnav:hover { color: #e6e6e6; }
.pp-hnav.on { background: #1c1c1c; color: #c9c9c9; }
.pp-hmain { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 19px 20px 12px; }
.pp-hlogo { display: flex; align-items: center; gap: 28px; height: 117px; }
.pp-hlogo img { width: 116px; height: 116px; border-radius: 22px; }
.pp-hlogo span { font: 600 84px/1 var(--font); letter-spacing: -1.5px; color: #e6e6e6; }
.pp-hbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 44px; }
.pp-hbtn { height: 51px; display: inline-flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #aaaaaa; border-radius: 3px; background: none; color: #c7c7c7; font-size: 17px; }
.pp-hbtn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.pp-hbtn .ico { color: #c7c7c7; }
.pp-hdrop { width: min(602px, 90%); height: 144px; margin-top: 70px; display: flex; align-items: center; justify-content: center; border: 1px solid #4d4d4d; border-radius: 3px; color: #5a5a5a; font-size: 16px; }
.pp-hfmts { margin-top: auto; padding-top: 30px; display: flex; gap: 22px; align-items: flex-end; }
.pp-fmt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pp-fmt i { min-width: 38px; height: 38px; padding: 0 3px; display: flex; align-items: center; justify-content: center; border: 2.5px solid; border-radius: 4px; font: 700 11px var(--font); font-style: normal; }
.pp-fmt.any i { background: #111; color: #fff; border-color: #111; font: 700 8px/1.15 var(--font); text-align: center; }
.pp-fmt b { font: 400 19px var(--font); color: #e6e6e6; }

/* ---------- preferências com abas (todas as aparências) ---------- */
.prefs-dialog .dialog-body { padding: 0; }
.prefs-wrap { display: flex; min-height: 380px; max-height: min(72vh, 620px); }
.prefs-nav { flex: 0 0 150px; padding: 8px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.prefs-tab { height: 30px; padding: 0 14px; border: 0; background: none; color: var(--text); text-align: left; }
.prefs-tab:hover { background: var(--bg-3); }
.prefs-tab.on { background: var(--accent-strong); color: #fff; }
.prefs-pane { flex: 1; min-width: 0; padding: 12px 16px; overflow: auto; }
.skin-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.skin-card { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; border: 2px solid transparent; border-radius: 6px; background: var(--bg-0); color: var(--text); text-align: left; }
.skin-card:hover { border-color: var(--line-soft); }
.skin-card.on { border-color: var(--accent); }
.skin-card b { font-size: 13px; }
.skin-card span { color: var(--text-dim); font-size: 11.5px; line-height: 1.4; }
.skin-prev { position: relative; height: 112px; border-radius: 3px; overflow: hidden; }
.skin-prev i { position: absolute; display: block; }
html[data-skin="photopea"] .prefs-nav { border-right-color: #252525; }
html[data-skin="photopea"] .prefs-tab.on { background: #5d5d5d; }
html[data-skin="photopea"] #optionsbar .icon-btn.pp-boxbtn { width: 24px; height: 25px; background: #5d5d5d; }
html[data-skin="photopea"] #optionsbar .icon-btn.pp-boxbtn:hover { background: #6a6a6a; }
html[data-skin="photopea"] #optionsbar .opt-group { gap: 6px; }
html[data-skin="photopea"] body.hide-ui #app { grid-template-rows: 32px minmax(0, 1fr); }
