.myth-editor{min-width:0}.myth-editor h3{color:var(--gold)}.myth-map-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:12px;background:radial-gradient(ellipse at center,#252a30,#0c1018);margin:18px 0}.myth-map{display:block;width:100%;min-width:650px;max-height:580px}.myth-edge{stroke:#6d634b;stroke-width:1.5}.myth-node{cursor:pointer}.myth-node circle{fill:#182534;stroke:#7a8594;stroke-width:1.5}.myth-node text{fill:#e6e8ee;font-size:12px;font-family:inherit;pointer-events:none}.myth-node[aria-pressed=true] circle,.myth-node:focus circle{fill:#514125;stroke:#e8bc61;stroke-width:3}.myth-node.myth-changed circle{stroke:#68d2b1;fill:#1a4339}.myth-editor select[size]{min-height:190px;font-size:13px}.myth-editor .button-row{margin-top:16px}.myth-editor .button-row button{font-size:12px}.myth-editor .check{margin-top:24px}.myth-editor .calculation{overflow-wrap:anywhere}

.myth-node.myth-locked circle{fill:#15191f;stroke:#41464e;stroke-dasharray:3 3}.myth-node.myth-locked text{fill:#727a86}

.myth-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:end;margin-top:16px}.myth-toolbar label{margin:0}.myth-toolbar button{min-height:48px}.myth-pending{color:var(--gold);font-size:13px;padding-bottom:12px;margin:0;white-space:nowrap}.myth-node circle.myth-hit{fill:transparent;stroke:none;pointer-events:all}.myth-node[aria-disabled=true]{cursor:default;opacity:.55}.myth-node:focus-visible{outline:none}.myth-node:focus-visible circle:not(.myth-hit){stroke:var(--gold);stroke-width:4}
html:has(.myth-editor){scrollbar-gutter:stable}html:has(.myth-dialog[open]){overflow:hidden}
.myth-dialog{color:var(--ink);background:#141b27;border:1px solid #566175;border-radius:18px;padding:0;width:min(720px,calc(100vw - 32px));height:min(760px,calc(100dvh - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);box-shadow:0 24px 100px #0009;overflow:hidden}
.myth-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}.myth-dialog::backdrop{background:rgb(3 7 13 / 78%)}.myth-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line)}.myth-dialog .myth-dialog-header h2{font-size:21px;margin:0;color:var(--gold)}.myth-dialog button{min-height:44px}.myth-dialog-close{flex-shrink:0}.myth-dialog-body{padding:16px 24px;display:grid;grid-template-rows:auto auto auto auto minmax(64px,1fr);min-height:0;gap:12px}.myth-dialog-body>.hint{margin:0;font-size:13px}.myth-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px}.myth-comparison>div{border:1px solid var(--line);border-radius:10px;padding:12px;min-width:0;background:#0c131e}.myth-comparison span{display:block;color:var(--muted);font-size:12px;margin-bottom:6px}.myth-comparison strong{display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.myth-comparison>div:last-child{border-color:#53755f}.myth-comparison>div:last-child strong{color:var(--green)}.myth-dialog label{margin:0;font-size:14px}.myth-dialog input{font-size:16px;margin-top:6px;width:100%;min-height:46px}.myth-option-count{font-size:12px;color:var(--muted);margin:0}.myth-option-list{min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px;padding:3px}.myth-option{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;border:1px solid #3d495c;padding:12px 14px;font-size:14px;line-height:1.6;background:#0c131e}.myth-option small{font-size:11px;color:var(--muted);flex-shrink:0}.myth-option[aria-selected=true]{border-color:var(--gold);background:#302919;color:var(--gold)}.myth-option[aria-selected=true] span::before{content:'✓ ';font-weight:bold}.myth-option:hover{background:#253143}.myth-dialog :is(button,input):focus-visible{outline:2px solid var(--gold);outline-offset:2px}.myth-empty{font-size:14px;padding:16px;margin:0;color:var(--muted)}.myth-dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--line);background:#101722}.myth-dialog-footer button:first-child{margin-right:auto}.myth-dialog-footer button{font-size:14px}
@media(max-width:600px){.myth-toolbar{grid-template-columns:1fr 1fr;gap:8px}.myth-toolbar label{grid-column:1/-1}.myth-pending{padding-bottom:12px}.myth-toolbar button{font-size:12px}.myth-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.myth-dialog-header{padding:14px 16px}.myth-dialog .myth-dialog-header h2{font-size:18px}.myth-dialog-body{padding:12px 16px;gap:10px}.myth-comparison{gap:8px}.myth-comparison>div{padding:8px}.myth-comparison strong{font-size:13px}.myth-dialog-footer{padding:12px 16px;gap:8px;flex-wrap:wrap;padding-bottom:max(12px,env(safe-area-inset-bottom))}.myth-dialog-footer button{padding:10px 12px;font-size:12px}.myth-option{font-size:14px;padding:12px}.myth-dialog-body>.hint{font-size:12px}}
@media(max-height:540px){.myth-dialog-body{grid-template-columns:1fr 1fr;grid-template-rows:auto auto minmax(64px,1fr);gap:8px}.myth-dialog-body>.hint{grid-column:1/-1}.myth-comparison{grid-column:1;grid-row:2/4;display:flex;flex-direction:column}.myth-dialog-body>label{grid-column:2;grid-row:2}.myth-option-count{display:none}.myth-option-list{grid-column:2;grid-row:3}.myth-dialog-header{padding:10px 16px}.myth-dialog-footer{padding:10px 16px}}

.myth-editor{--ink:var(--text);margin-top:20px}.myth-set-picker{display:flex;flex-wrap:wrap;gap:12px;border:1px solid var(--line);border-radius:10px;padding:16px;margin:0 0 16px}.myth-set-picker legend{color:var(--gold);padding:0 8px}.myth-set-choice{display:flex;align-items:center;gap:10px;margin:0;min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:8px;cursor:pointer;flex:1}.myth-set-choice:has(:checked){background:#302919;border-color:var(--gold)}.myth-set-choice input{width:20px;height:20px;accent-color:var(--gold);margin:0}.myth-node.myth-unselected-set{opacity:.3}.myth-dialog button:not(.primary):not(.myth-option){color:var(--ink);background:#18202c;border:1px solid var(--line);border-radius:8px;padding:10px 14px}.myth-service-summary{padding:16px;border:1px solid var(--line);border-radius:10px;margin:16px 0;color:var(--gold)}.myth-payment-preview li{margin:8px 0}.myth-service h2{margin-top:0}
