.legendPage{padding-top:40px;padding-bottom:60px}.legendHeader{display:flex;gap:32px;justify-content:space-between;align-items:center;margin-bottom:24px}.legendHeader h1{font-size:clamp(28px,4vw,42px);margin:8px 0}.legendHeader p{color:var(--soft);max-width:650px}.legendHeader>label{min-width:220px}.legendEditor{display:grid;grid-template-columns:minmax(290px,390px) minmax(320px,1fr);gap:28px;align-items:start}.legendEditor[hidden]{display:none}.legendInspector .accountCard{padding:24px;margin-bottom:16px}.legendInspector h2{font-size:20px;margin:10px 0 14px}.legendInspector h3{font-size:18px}.legendInspector p{font-size:14px;color:var(--soft)}.legendStep{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#b69dfb}.legendInspector label,#legendSourceBox label,.legendHeader label{display:flex;flex-direction:column;gap:7px;font-size:13px;margin-bottom:14px}.legendInspector .checkLabel{flex-direction:row;align-items:center}.legendPair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.legendInspector input:not([type=checkbox]),.legendInspector select,.legendHeader select,#legendSource{width:100%;min-width:0;color:#fff;background:#0d0b13;border:1px solid #373142;border-radius:10px;padding:10px;box-sizing:border-box}.legendInspector input[type=color]{height:42px;padding:4px}.legendInspector input[type=range]{padding:0;accent-color:#ac81ff}.legendInspector details{margin-top:16px}.legendInspector summary{font-size:13px;cursor:pointer}.legendLinked{padding:10px;background:#251d34;border-radius:10px}.legendLinked b{color:#42ecaa}.legendNote{font-size:12px!important;color:#a59db1!important}.legendEntryList{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:180px;overflow:auto}.legendEntryList button{font:inherit;font-size:12px;color:#ddd;background:#221b2c;border:1px solid #383041;padding:10px;border-radius:9px;text-align:left;cursor:pointer}.legendPreviewColumn{position:sticky;top:84px;border:1px solid #32283e;background:#15111d;border-radius:18px;padding:20px}.legendPreviewToolbar{display:flex;justify-content:space-between;font-size:10px;color:#a89db7;letter-spacing:1px;gap:10px;margin-bottom:16px}.legendPreviewToolbar b{color:#d4b5ff}.legendPreview{display:flex;justify-content:center;overflow:hidden;background:repeating-conic-gradient(#18151e 0% 25%,#211c29 0% 50%) 0/22px 22px;border-radius:10px;padding:10px;min-height:260px}.legendPreview #legendScale{flex:none;position:relative}.legendPreview .actionLegend{transform-origin:0 0}.legendPublish{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:18px}.legendPublish>div{margin-right:auto}.legendPublish p{font-size:12px;margin:6px 0;color:#b4a9bf}.legendPublish .btn,.legendPublish .smallButton{font-size:12px}#legendSourceBox{margin-top:18px}#legendSource{font-size:12px}.legendArtDialog{max-width:850px;width:90vw;max-height:85vh;color:white;background:#171120;border:1px solid #49325c;border-radius:18px;padding:28px}.legendArtDialog::backdrop{background:#000b}.legendArtDialog>button{float:right;color:#fff;background:transparent;border:0;font-size:30px;cursor:pointer}#legendArtList{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}#legendArtList button{background:#251b30;color:white;border:1px solid #41304e;border-radius:12px;padding:12px;cursor:pointer;font:inherit;font-size:12px}#legendArtList button:hover{border-color:#b58cff}#legendArtList img{display:block;width:100%;height:110px;object-fit:contain;margin-bottom:8px}#legendMessage.error{color:#ff9eae}.legendInspector button:hover,.legendEntryList button:focus-visible{border-color:#b58cff}@media(max-width:800px){.legendHeader{flex-direction:column;align-items:stretch;gap:10px}.legendEditor{display:flex;flex-direction:column}.legendPreviewColumn{position:relative;top:0;order:-1;width:100%;box-sizing:border-box}.legendInspector{width:100%}.legendPreview{max-height:52vh}.legendPublish>div{width:100%}.legendPreviewToolbar{font-size:9px}}

.legendEntryList button img{width:34px;height:34px;object-fit:contain;float:left;margin-right:8px}.legendEntryList button{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.legendEntryList{max-height:240px}

.legendPreview{background:#0b0911;overflow:auto;box-sizing:border-box}.legendPreview #legendScale{background:repeating-conic-gradient(#18151e 0% 25%,#211c29 0% 50%) 0/18px 18px;outline:1px solid #7c5c9d66}.legendPreviewToolbar{align-items:center}.legendPreviewToolbar .smallButton{font-size:10px;padding:7px 10px;letter-spacing:0;white-space:nowrap}

#legendPartControls,#legendTextControls{margin-block:14px;padding:14px;border:1px solid #61dfba33;border-radius:12px;background:#61dfba06}#legendPartControls[hidden],#legendTextControls[hidden],#legendBlockControls[hidden]{display:none}#legendPart{border-color:#9b77d2}html[data-kandre-embedded=true] .legendPreviewColumn{top:16px}html[data-kandre-embedded=true] .legendPage{padding-top:16px}html[data-kandre-embedded=true] .legendHeader h1{font-size:30px}
html[data-kandre-embedded=true] .legendEditor{display:grid;grid-template-columns:minmax(235px,300px) minmax(240px,1fr);gap:16px}html[data-kandre-embedded=true] .legendPreviewColumn{position:sticky;top:12px;order:0;width:auto;padding:12px}html[data-kandre-embedded=true] .legendInspector .accountCard{padding:16px}html[data-kandre-embedded=true] .legendHeader{flex-direction:row;align-items:center;gap:16px}html[data-kandre-embedded=true] .legendHeader>label{min-width:180px}html[data-kandre-embedded=true] .legendPublish>div{width:auto}html[data-kandre-embedded=true] .legendPreview{max-height:none}

html[data-kandre-embedded=true] header.nav{display:none!important}
