.maker { margin: 3rem 0; scroll-margin-top: 1rem; }
.maker h2 { margin-top: 0; }
.maker-toolbar { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin: 1rem 0; }
.maker button, .element-editor button { font: inherit; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: .35rem; color: var(--text); background: #23232b; }
.maker button:hover, .element-editor button:hover { border-color: #56d4a0; }
.maker button:disabled { opacity: .5; cursor: wait; }
.maker .maker-export { margin-left: auto; background: #56d4a0; color: #0f0f13; font-weight: bold; }
#maker-preview { display: block; width: 100%; height: 650px; border: 1px solid #5f6368; border-radius: 8px; background: #202124; }
.maker-help { font-size: .85rem !important; }
.maker-version { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .85rem; }
.maker-version input { width: 7rem; min-width: 0; padding: .65rem; font: inherit; color: var(--text); background: #101014; border: 1px solid #5f6368; border-radius: .35rem; }
.maker-version input[aria-invalid=true] { border-color: #ffb4b4; }
#assigned-count { color: var(--faint); font-size: .8rem; }
#maker-status { min-height: 2.5em; margin: .8rem 0; font-size: .85rem; }
.maker details { margin-top: 1rem; }
.maker summary { cursor: pointer; color: #f5cf8a; }
#all-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .5rem; margin-top: .8rem; }
#all-links button { text-align: left; overflow-wrap: anywhere; }
.element-editor { width: min(32rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); overflow-y: auto; padding: 1.5rem; border: 1px solid #5f6368; border-radius: .75rem; background: #1a1a22; color: var(--text); }
.element-editor::backdrop { background: rgb(0 0 0 / 65%); }
.element-editor h2 { margin: 0 0 1.25rem; font-family: var(--serif); font-size: 1.75rem; }
.element-editor label { display: block; margin: 1rem 0; }
.element-editor label[hidden], .element-editor button[hidden] { display: none; }
.element-editor label span { display: block; font-size: .85rem; margin-bottom: .45rem; }
.element-editor input { display: block; width: 100%; min-width: 0; padding: .75rem; border: 1px solid #5f6368; border-radius: .3rem; background: #101014; color: var(--text); font: inherit; }
.element-editor input[type=color] { width: 5rem; height: 3rem; padding: .2rem; }
.element-editor .editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; }
.element-editor .save-edit { background: #56d4a0; color: #0f0f13; }
#url-error { color: #ffb4b4; font-size: .85rem; }
.element-editor .editor-note { color: var(--muted); font-size: .8rem; line-height: 1.6; }
@media(max-width: 600px) {
  .maker .maker-export { margin-left: 0; }
  .maker-toolbar button { flex: 1 1 auto; font-size: .8rem; }
  #maker-preview { height: 660px; }
  .element-editor { padding: 1rem; }
}
