.custom-map-card{border:1px solid var(--site-line);background:var(--site-surface);border-radius:12px;padding:20px;margin:14px 0;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.custom-map-card h3,.custom-map-card p{width:100%;margin:0}.custom-map-card textarea{width:100%;min-height:70px}.custom-map-dialog{max-width:1000px;width:calc(100% - 40px);max-height:90dvh;overflow:auto;border:1px solid var(--site-line);border-radius:14px;padding:24px;background:var(--site-surface);color:var(--site-fg)}.custom-map-dialog::backdrop{background:#10281fac}.custom-map-dialog h2{margin:0 0 18px}.custom-map-dialog .button,.custom-map-dialog button{margin:8px}.custom-map-preview{height:60dvh;min-height:360px;margin:18px 0;border:1px solid var(--site-line);border-radius:10px}
.map-gallery{width:min(96vw,1600px);max-width:1600px;height:min(90dvh,940px);max-height:90dvh;padding:24px;display:flex;flex-direction:column;gap:16px;background:var(--site-surface,#fafaf4);color:var(--site-fg,#203a30);border:1px solid var(--site-line,#cad4cd);border-radius:18px}.map-gallery:not([open]){display:none}.map-gallery::backdrop{background:#071b14b3}.map-gallery>header{display:flex;align-items:center;justify-content:space-between;gap:20px}.map-gallery h2{margin:0}.map-gallery-world{display:flex;flex-direction:column;gap:6px;padding:18px 22px;border-radius:12px;background:var(--site-brand,#245b46);color:var(--site-on-brand,white);text-decoration:none;flex-shrink:0}.map-gallery-tools{display:flex;gap:12px;flex-shrink:0}.map-gallery-tools input{flex:1;min-width:0}.map-gallery-scroll{overflow:auto;min-height:0;flex:1}.map-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:14px;padding:3px}.map-gallery-card{padding:16px;border:1px solid var(--site-line,#cad4cd);background:var(--site-soft,#fff);border-radius:12px;text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:12px;transition:transform .15s,border-color .15s}.map-gallery-card:hover{transform:translateY(-2px);border-color:var(--site-brand,#245b46)}.map-gallery-card h3{font-size:1rem;margin:0;overflow-wrap:anywhere}.map-gallery-identity{display:flex;align-items:center;gap:8px;font-size:.85rem;overflow-wrap:anywhere}.map-gallery-identity img{width:28px;height:28px;object-fit:cover;border-radius:50%;flex-shrink:0}.map-gallery-card small{color:var(--site-muted,#66786d)}.custom-live-canvas{height:calc(100dvh - 260px);min-height:380px}.custom-bus-badge{background:#245b46;color:white;font-weight:700;border:2px solid white;border-radius:8px;padding:7px;text-align:center;box-shadow:0 2px 5px #0004}@media(max-width:600px){.map-gallery{padding:16px}.map-gallery-tools{flex-direction:column}.map-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.map-gallery-card{padding:12px}.custom-live-canvas{min-height:340px;height:65dvh}}

.map-gallery-avatar{display:grid;place-items:center;width:28px;height:28px;flex-shrink:0;border-radius:50%;background:var(--site-brand);color:var(--site-on-brand);font-size:10px;font-weight:700}

.custom-map-choice-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;max-height:48vh;max-height:48dvh;overflow:auto;margin:16px 0}
.custom-map-choice-list button{margin:0;padding:16px;text-align:left;white-space:normal;overflow-wrap:anywhere;border-radius:8px}
.custom-map-choice-list button[hidden]{display:none}
.custom-map-dialog input[type=search]{box-sizing:border-box;width:100%;padding:12px}
@media(max-width:600px){.custom-map-dialog{width:calc(100% - 24px);padding:18px}.custom-map-choice-list{grid-template-columns:1fr}.custom-map-preview{min-height:240px}}

.custom-live-guide{font-size:.9rem;line-height:1.6;color:var(--site-muted);margin:10px 0 18px}.rm-custom-source{border-left:3px solid var(--site-brand);padding:12px;background:var(--site-soft);line-height:1.6}

.custom-map-workflow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 30px;padding:20px 20px 20px 40px;border:1px solid var(--site-line);border-radius:10px;background:var(--site-surface);line-height:1.6;margin:20px 0}.custom-map-workflow li{padding:4px 8px}@media(max-width:650px){.custom-map-workflow{grid-template-columns:1fr;padding-right:12px}}
