#telaEstetica{max-width:1224px}
.characters-style-heading{margin:0 0 22px}.characters-eyebrow{display:block;color:#a6b475;font-size:10px;font-weight:700;letter-spacing:1.8px;margin-bottom:10px}.characters-style-heading h2,.characters-heading h2{font-size:24px;line-height:1.2;margin:0 0 10px;letter-spacing:-.6px}.characters-style-heading p,.characters-heading p{font-size:14px;line-height:1.65;color:var(--apagado,#a4aab2);margin:0}
#personagensConteudo{margin-top:56px;padding-top:36px;border-top:1px solid var(--borda,#343940)}#personagensConteudo[hidden]{display:none}.characters-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px;flex-wrap:wrap}.characters-heading>div:first-child{flex:1 1 340px;min-width:0}.characters-heading-meta{display:flex;align-items:center;gap:12px;flex-shrink:0}.characters-premium{padding:5px 8px;font-size:9px;letter-spacing:1.4px;color:#c8ff55;border:1px solid #a4bd5555;border-radius:5px;background:#c8ff5508}.characters-count{font-size:12px;color:var(--apagado,#a4aab2);font-variant-numeric:tabular-nums}
.characters-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:24px;align-items:stretch}.character-empty{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;min-height:350px;padding:28px 20px;text-align:center;box-sizing:border-box;border:1px dashed #545e4866;border-radius:16px;background:linear-gradient(140deg,#b7d55206,transparent),#171a1d;color:var(--texto,#edeff2);cursor:pointer;transition:border-color .2s,background .2s}.character-empty:hover{border-color:#b9e459;background:#1e2421}.character-slot{position:absolute;top:17px;left:19px;color:#66705d;font-size:11px;letter-spacing:1px}.character-add{display:grid;place-items:center;width:42px;height:42px;border:1px solid #74865355;border-radius:50%;font-size:25px;line-height:1;color:#c8eb78}.character-empty strong{font-size:15px;font-weight:600}.character-empty>span:last-child{font-size:12px;color:var(--apagado,#a4aab2)}
.character-card{border:1px solid var(--borda,#343940);border-radius:16px;overflow:hidden;background:#191d21;min-width:0;display:flex;flex-direction:column}.character-cover{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center 28%;display:block}.character-card-body{padding:22px;display:flex;flex-direction:column;gap:22px;flex:1;min-width:0}.character-card-title{display:flex;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap}.character-card-title h3{margin:0;font-size:20px;line-height:1.35;overflow-wrap:anywhere}.character-handle{font-size:12px;color:#bfdb8c;overflow-wrap:anywhere}.character-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:auto}.character-card-actions .character-button{width:100%;min-width:0;min-height:46px;padding:12px 8px;font-size:13px;line-height:1.35;white-space:normal;box-sizing:border-box}.character-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:1px solid var(--borda,#42484f);border-radius:9px;padding:10px 14px;color:var(--texto,#eff1f5);background:#262d33;font:inherit;font-size:12px;font-weight:600;text-decoration:none;cursor:pointer}.character-button:hover{background:#333e45}.character-primary{background:#cdff55;color:#192305;border-color:#cdff55}.character-primary:hover{background:#dbff82;color:#192305}.character-button:disabled{opacity:.45;cursor:default}.character-secondary{background:transparent}.character-danger{background:transparent;color:#efa3a0;border-color:#9c535355}.characters-footnote{display:flex;justify-content:space-between;gap:24px;padding:24px 0 0;flex-wrap:wrap}.characters-footnote p,.characters-footnote small{margin:0;font-size:12px;line-height:1.7;color:var(--apagado,#a4aab2)}.characters-footnote p{max-width:620px;flex:1 1 320px}.characters-footnote small{max-width:250px}
.characters-locked{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:245px;padding:28px;border:1px solid var(--borda,#343940);border-radius:16px;background:#191d21;text-align:center}.characters-lock-icon{font-size:32px;color:#b7c891}.characters-locked h3{margin:12px 0 6px;font-size:18px}.characters-locked p{color:var(--apagado,#a4aab2);max-width:490px;line-height:1.7;font-size:13px}.character-pending{aspect-ratio:4/3;display:grid;place-items:center;color:var(--apagado,#a4aab2);font-size:13px}
.character-dialog{box-sizing:border-box;width:min(710px,calc(100% - 28px));max-height:88dvh;margin:auto;padding:28px;border:1px solid var(--borda,#3b4249);border-radius:20px;background:#191d21;color:var(--texto,#eff1f5);overflow-y:auto;box-shadow:0 24px 90px #0006}.character-dialog::backdrop{background:#050709bd;backdrop-filter:blur(7px)}.character-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.character-dialog-head h2{font-size:23px;line-height:1.3;letter-spacing:-.4px;margin:0;overflow-wrap:anywhere}.character-close{width:36px;height:36px;border:0;border-radius:50%;background:#ffffff0a;color:inherit;font-size:23px;cursor:pointer;flex-shrink:0}.character-muted{font-size:13px;line-height:1.65;color:var(--apagado,#a4aab2)}.character-name-label{display:block;font-size:13px;margin-top:22px;font-weight:600}.character-name{box-sizing:border-box;display:block;width:100%;margin-top:9px;padding:13px 14px;border:1px solid var(--borda,#41484f);border-radius:10px;background:#111518;color:var(--texto,#eff1f5);font:inherit}.character-name-help{font-size:11px;color:#b8d393;margin:7px 0 22px;overflow-wrap:anywhere}.character-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:150px;padding:18px;border:1px dashed #69795888;border-radius:12px;background:#bada7c05;cursor:pointer}.character-drop>span:last-of-type{font-size:11px;color:var(--apagado,#a4aab2)}.character-drop input{position:absolute;width:1px;height:1px;opacity:0}.character-drop:focus-within{outline:2px solid #b4df51;outline-offset:3px}.character-ref-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:18px}.character-ref{position:relative;min-width:0}.character-ref img,.character-sheet img{width:100%;height:110px;object-fit:cover;border-radius:8px;display:block}.character-remove{position:absolute;top:4px;right:4px;min-width:28px;height:28px;border:1px solid #ffffff35;border-radius:50%;background:#15191ecc;color:white;font-size:18px;cursor:pointer}.character-error{color:#efaaa3;font-size:13px;line-height:1.6}.character-error:empty{display:none}.character-submit{width:100%;margin:6px 0 10px;min-height:46px}.character-progress{height:4px;background:#ffffff16;border-radius:5px;overflow:hidden;margin:6px 0}.character-progress>span{display:block;height:100%;background:#cdff55;transition:width .2s}.character-private{display:block;margin-top:15px;font-size:11px;color:var(--apagado,#a4aab2);line-height:1.5}.character-dialog-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:24px}.character-sheet-details dt{font-size:11px;font-weight:700;letter-spacing:.5px;margin-top:16px}.character-sheet-details dd{margin:5px 0 0;color:var(--apagado,#a4aab2);font-size:12px;line-height:1.7}
.character-prompt-anchor{position:relative}.character-mention-list{position:absolute;left:16px;top:74px;z-index:50;width:min(330px,calc(100% - 32px));padding:6px;border:1px solid var(--borda,#434d44);border-radius:12px;background:#23292d;box-shadow:0 12px 35px #0005;box-sizing:border-box}.character-mention-list[hidden]{display:none}.character-mention-list>p{padding:5px 10px}.character-mention-option{display:flex;align-items:center;gap:10px;width:100%;padding:9px;border:0;border-radius:7px;background:transparent;color:var(--texto,#eff1f5);cursor:pointer;text-align:left}.character-mention-option[aria-selected="true"]{background:#c9ff5520}.character-mention-option small{margin-left:auto;font-size:11px;color:#bad489}.character-mention-avatar{width:33px;height:33px;object-fit:cover;border-radius:50%}
.character-button:focus-visible,.character-empty:focus-visible,.character-name:focus-visible,.character-close:focus-visible,.character-remove:focus-visible{outline:2px solid #aed758;outline-offset:3px}
[data-theme="light"] .characters-eyebrow{color:#637342}[data-theme="light"] .characters-premium{color:#4b6519;background:#eff5df;border-color:#b7c597}[data-theme="light"] .character-empty{background:#f8faf5;border-color:#c1ccb2;color:#263124}[data-theme="light"] .character-empty:hover{background:#eff4e8;border-color:#8ca765}[data-theme="light"] .character-add{color:#536f28;border-color:#c4d5aa}[data-theme="light"] .character-card,[data-theme="light"] .characters-locked,[data-theme="light"] .character-dialog{background:#fff;color:#212b34;border-color:#d8dfe4}[data-theme="light"] .character-handle,[data-theme="light"] .character-name-help{color:#5b722d}[data-theme="light"] .character-button{background:#f0f3f5;border-color:#cdd5dc;color:#303d49}[data-theme="light"] .character-primary{background:#ccf666;color:#243500;border-color:#a6ce48}[data-theme="light"] .character-primary:hover{background:#bce84d}[data-theme="light"] .character-danger{color:#a4312d;background:#fff7f6;border-color:#e8c3c0}[data-theme="light"] .character-name{background:#f8fafb;color:#253443;border-color:#ccd5dc}[data-theme="light"] .character-close{background:#f1f3f4}[data-theme="light"] .character-error{color:#a4312d}[data-theme="light"] .character-drop{background:#f8fbf3;border-color:#b4c69c}[data-theme="light"] .character-progress{background:#e4e9de}[data-theme="light"] .character-progress>span{background:#699727}[data-theme="light"] .character-mention-list{background:#fff;border-color:#c7d3ba;box-shadow:0 12px 28px #24310e18}[data-theme="light"] .character-mention-option{color:#253443}[data-theme="light"] .character-mention-option[aria-selected="true"]{background:#ecf5dc}[data-theme="light"] .character-mention-option small{color:#537226}
@media(max-width:700px){.characters-heading{align-items:flex-start}.characters-heading h2,.characters-style-heading h2{font-size:21px}.characters-heading>div:first-child{flex:1 1 340px;min-width:0}.characters-heading-meta{flex-direction:row;align-items:center;gap:12px}.characters-heading{gap:16px;margin-bottom:24px}.characters-heading p{font-size:12px}.characters-grid{grid-template-columns:1fr;gap:12px}.character-empty{min-height:220px}.character-cover{height:auto;aspect-ratio:4/3}.character-card-body{padding:20px;gap:20px}.characters-footnote{flex-direction:column;gap:8px}.characters-footnote small{max-width:none}.characters-footnote p{flex:initial}#personagensConteudo{margin-top:36px;padding-top:28px}.character-dialog{padding:20px;max-height:90dvh}.character-ref-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.character-ref img,.character-sheet img{height:100px}.character-name{font-size:16px}.character-card-actions .character-button{flex:1}.character-mention-list{top:90px}.character-dialog-head h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.character-empty,.character-progress>span{transition:none}}

.characters-heading h2,.characters-style-heading h2,.character-dialog-head h2{text-transform:none;color:var(--texto,#eef1f4)}
[data-theme="light"] .characters-heading h2,[data-theme="light"] .characters-style-heading h2,[data-theme="light"] .character-dialog-head h2{color:#25303a}

.character-empty.character-slot-locked,.character-empty.character-slot-locked:hover{opacity:1;cursor:default;background:#141719;border-color:#343b3b;color:#87908e;box-shadow:none}.character-slot-locked strong{color:#a4adaa}.character-slot-locked>span:last-child{color:#858d8a}.character-lock{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;margin-bottom:4px}[data-theme="light"] .character-empty.character-slot-locked,[data-theme="light"] .character-empty.character-slot-locked:hover{background:#f1f3f2;border-color:#d6dcda;color:#78847c}[data-theme="light"] .character-slot-locked strong{color:#617066}[data-theme="light"] .character-slot-locked>span:last-child{color:#738078}

/* Faixa única de miniaturas, sem alterar a coluna do upload ou a largura do texto. */
#telaCriar .campo-composer.com-refs > .composer-media{grid-column:1 / -1;grid-row:2;min-width:0;display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px;padding:0 78px 12px 14px}
#telaCriar .composer-media > .refs-previews,#telaCriar .composer-media > .character-selection{display:contents;padding:0}
#telaCriar .composer-media > .refs-previews:empty,#telaCriar .composer-media > .character-selection[hidden]{display:none}
#telaCriar .campo-composer.com-refs > #btnIdeiaSeguir{grid-column:2;grid-row:2;align-self:end;justify-self:end;margin:0 14px 12px}
#telaCriar .campo-composer.com-refs.character-has-selection textarea,#telaCriar .campo-composer.com-refs:has(.refs-previews:not(:empty)) textarea{min-height:92px}
#telaCriar .composer-media .ref-item,.character-selection-photo{display:block;flex:0 0 56px;width:56px;height:56px;box-sizing:border-box;border:1px solid var(--caixa-borda,#a7c27566);border-radius:10px;background:var(--painel,#191d21)}
.character-selection-photo{object-fit:cover;object-position:center 28%;border-color:#a7c27566}
.character-selection-item{margin:0;display:flex;flex:0 0 56px;flex-direction:column;align-items:center;gap:5px;width:56px;min-width:0}
.character-selection-item figcaption{width:100%;font-size:11px;font-weight:600;line-height:1.35;text-align:center;color:#c1ec7a;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
[data-theme="light"] .character-selection-photo{border-color:#b4c398}
[data-theme="light"] .character-selection-item figcaption{color:#4c6d24}
