.guide-editor-shell{min-height:calc(100vh - 5rem)}.guide-editor-shell>.authoring-limit-notice{width:min(100% - 2rem,1080px);margin:1rem auto 0}.guide-editor-toolbar{z-index:10;border-bottom:1px solid var(--border);background:color-mix(in srgb, var(--page-bg) 92%, transparent);backdrop-filter:blur(16px);justify-content:space-between;align-items:center;gap:1rem;width:100%;padding:.75rem max(1rem,50% - 540px);display:flex;position:sticky;top:4.15rem}.guide-editor-back{color:var(--text-muted);align-items:center;gap:.45rem;font-size:.88rem;font-weight:750;text-decoration:none;display:inline-flex}.guide-editor-back:hover{color:var(--text)}.guide-editor-actions,.guide-editor-actions .guide-editor-status{align-items:center;display:flex}.guide-editor-actions{gap:1rem}.guide-editor-actions .authoring-save-status{margin-right:.2rem}.guide-editor-actions .authoring-save-trigger{min-height:auto;color:var(--text-muted);font-size:inherit;font-weight:inherit;box-shadow:none;background:0 0;border:0;border-radius:0;padding:.25rem}.guide-editor-actions .authoring-save-trigger:hover{color:var(--text);background:0 0;border:0}.guide-editor-actions .guide-editor-status{width:1.75rem;min-height:2.35rem;color:var(--text-muted);font:inherit;cursor:help;white-space:nowrap;background:0 0;border:0;justify-content:center;padding:0;font-size:.82rem;position:relative}.guide-editor-status-label{clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.guide-editor-status:after{z-index:30;border:1px solid var(--border);background:var(--surface);width:max-content;color:var(--text);content:attr(data-label);border-radius:.5rem;padding:.4rem .55rem;font-size:.75rem;font-weight:700;display:none;position:absolute;top:calc(100% + .45rem);right:0;box-shadow:0 .5rem 1.25rem #0f172a24}.guide-editor-status:hover:after,.guide-editor-status:focus-visible:after{display:block}.guide-editor-status>span:first-child{background:var(--text-muted);border-radius:999px;width:.42rem;height:.42rem}.guide-editor-status-saved>span:first-child{background:#16a34a}.guide-editor-status-saving>span:first-child,.guide-editor-status-unsaved>span:first-child{background:var(--accent)}.guide-editor-status-local-only>span:first-child{background:#d97706}.guide-editor-status-error>span:first-child{background:#dc2626}.guide-editor-actions button{border:1px solid var(--accent);background:var(--accent);color:#fff;min-height:2.35rem;font:inherit;cursor:pointer;border-radius:.65rem;padding:.55rem .9rem;font-size:.84rem;font-weight:800}.guide-editor-actions .guide-editor-manual-save{border-color:var(--border);background:var(--surface);width:2.35rem;color:var(--text-muted);place-items:center;padding:0;display:grid}.guide-editor-actions .guide-editor-cancel{border-color:var(--border);color:var(--text-muted);background:0 0}.guide-editor-cancel:hover,.guide-editor-cancel:focus-visible{border-color:var(--text-muted);color:var(--text)}.guide-editor-manual-save:hover,.guide-editor-manual-save:focus-visible{border-color:var(--accent);color:var(--text)}.guide-editor-manual-save:disabled{cursor:not-allowed;opacity:.5}.guide-editor-manual-save svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:1.05rem;height:1.05rem}.guide-editor-mobile-content-actions{z-index:8;right:max(1.5rem, env(safe-area-inset-right));bottom:max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));width:fit-content;display:flex;position:fixed}.guide-writing-prompt{width:100%}.guide-writing-prompt.is-empty{border-left:3px solid color-mix(in srgb, var(--accent) 55%, var(--border));background:color-mix(in srgb, var(--accent-soft) 55%, transparent);border-radius:0 .65rem .65rem 0;margin-block:.35rem .65rem;padding:.8rem .9rem}.guide-writing-prompt__coach{color:var(--text-muted);gap:.25rem;font-size:.82rem;line-height:1.5;display:grid}.guide-writing-prompt__coach strong{color:var(--accent);letter-spacing:.1em;text-transform:uppercase;font-size:.68rem}.guide-writing-prompt__helper{color:color-mix(in srgb, var(--text-muted) 78%, transparent);margin-top:.15rem;font-size:.72rem;font-style:italic}.guide-writing-prompt__content:empty:before{color:color-mix(in srgb, var(--text-muted) 72%, transparent);content:attr(data-placeholder);pointer-events:none;margin-top:.55rem;font-style:italic;display:block}.guide-writing-prompt.is-resolved{margin-block:.25rem}.guide-editor-mobile-content-actions button{border:1px solid var(--border);background:var(--surface);width:4rem;height:4rem;color:var(--text);cursor:pointer;border-radius:999px;place-items:center;transition:transform .14s,border-color .14s,box-shadow .14s;display:grid;box-shadow:0 .8rem 2rem #0f172a38}.guide-editor-mobile-content-actions button:hover,.guide-editor-mobile-content-actions button:focus-visible{border-color:var(--accent);transform:translateY(-1px);box-shadow:0 1rem 2.2rem #0f172a47}.guide-editor-mobile-content-actions button:focus-visible{outline:3px solid color-mix(in srgb, var(--accent) 38%, transparent);outline-offset:3px}.guide-editor-mobile-content-actions button:disabled{cursor:not-allowed;opacity:.5}.guide-editor-mobile-content-actions svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:1.65rem;height:1.65rem}.guide-editor-document .bn-editor{padding-bottom:5rem}.guide-editor-actions .guide-editor-secondary{border-color:var(--border);background:var(--surface);color:var(--text)}.guide-editor-notice{border:1px solid color-mix(in srgb, var(--accent) 35%, var(--border));background:color-mix(in srgb, var(--accent) 8%, var(--surface));border-radius:.8rem;margin-bottom:1.5rem;padding:1rem}.guide-editor-notice p{margin:.4rem 0 0}.guide-editor-notice-warn{border-color:#d97766}.guide-editor-notice-error{background:color-mix(in srgb, #dc2626 8%, var(--surface));border-color:#dc2626}.guide-editor-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:1rem;display:grid}.guide-editor-race{align-items:start;gap:.75rem;margin-bottom:1.5rem;display:flex}.guide-editor-race>label{min-width:0;color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase;flex:1;gap:.35rem;font-size:.75rem;font-weight:800;display:grid}.guide-editor-race select{border:1px solid var(--border);background:var(--surface);width:100%;min-width:0;max-width:100%;color:var(--text);font:inherit;text-transform:none;border-radius:.65rem;padding:.7rem .75rem}.guide-editor-toast{border:1px solid var(--border);background:var(--surface-muted);width:fit-content;max-width:100%;color:var(--text-muted);border-radius:999px;align-items:center;gap:.75rem;margin:-.65rem 0 .85rem;padding:.45rem .65rem .45rem .8rem;font-size:.78rem;display:flex;box-shadow:0 .5rem 1.5rem #0f172a14}.guide-editor-toast button{font:inherit;cursor:pointer;background:0 0;border:0}.guide-editor-toast .guide-editor-toast-close{background:color-mix(in srgb, currentColor 8%, transparent);width:1.35rem;height:1.35rem;color:color-mix(in srgb, var(--text-muted) 72%, transparent);border-radius:999px;flex:none;place-items:center;padding:0;font-size:1rem;line-height:1;display:grid}.guide-editor-toast .guide-editor-toast-close:hover,.guide-editor-toast .guide-editor-toast-close:focus-visible{background:color-mix(in srgb, currentColor 14%, transparent);color:var(--text)}.guide-editor-toast .guide-editor-toast-undo{color:var(--link);padding:.15rem .25rem;font-weight:800}.guide-account-prompt{border:1px solid var(--border);background:var(--surface);width:min(30rem,100vw - 2rem);color:var(--text);border-radius:1rem;margin:auto;padding:1.4rem;box-shadow:0 1.5rem 5rem #00000047}.guide-account-prompt::backdrop{backdrop-filter:blur(5px);background:#07111f9e}.guide-account-prompt h2{letter-spacing:-.035em;margin:.45rem 2rem 0 0;font-size:clamp(1.45rem,5vw,1.85rem);line-height:1.15}.guide-account-prompt>p:not(.authoring-eyebrow){color:var(--text-muted);margin:.75rem 0 0;line-height:1.6}.guide-account-prompt-close{background:var(--surface-muted);width:2.15rem;height:2.15rem;color:var(--text-muted);font:inherit;cursor:pointer;border:0;border-radius:999px;place-items:center;font-size:1.25rem;display:grid;position:absolute;top:.8rem;right:.8rem}.guide-account-prompt-actions{justify-content:flex-end;gap:.65rem;margin-top:1.25rem;display:flex}.guide-account-prompt-actions button{border:1px solid var(--border);background:var(--surface);min-height:2.65rem;color:var(--text);font:inherit;cursor:pointer;border-radius:.7rem;padding:.6rem .9rem;font-size:.86rem;font-weight:800}.guide-account-prompt-actions .guide-account-prompt-primary{border-color:var(--accent);background:var(--accent);color:#fff}.guide-account-prompt button:focus-visible{outline:3px solid color-mix(in srgb, var(--accent) 30%, transparent);outline-offset:2px}.guide-account-prompt button:disabled{cursor:wait;opacity:.6}.guide-details{border-top:1px solid var(--border);margin-top:3rem;padding-top:1rem}.guide-details>summary{color:var(--text);cursor:pointer;align-items:baseline;gap:.7rem;font-weight:800;list-style-position:outside;display:flex}.guide-details>summary small{color:var(--text-muted);font-weight:550}.guide-editor-fields label{color:var(--text-muted);letter-spacing:.04em;text-transform:uppercase;gap:.35rem;font-size:.75rem;font-weight:800;display:grid;position:relative}.guide-field-label{justify-self:start;align-items:baseline;gap:.2rem;display:inline-flex}.guide-required-mark{color:#dc2626;font-size:.9em}.guide-editor-fields input,.guide-editor-fields select,.guide-editor-fields textarea{border:1px solid var(--border);background:var(--surface);min-width:0;color:var(--text);font:inherit;text-transform:none;border-radius:.65rem;padding:.7rem .75rem}.guide-editor-fields select{appearance:auto}.guide-editor-fields textarea{resize:vertical;line-height:1.5}.guide-field-wide{grid-column:1/-1}.guide-linked-race-summary{border-left:2px solid var(--accent);color:var(--text-muted);letter-spacing:0;text-transform:none;gap:.2rem;padding:.35rem 0 .35rem .65rem;font-size:.75rem;font-weight:600;line-height:1.5;display:grid}.guide-linked-race-summary strong{color:var(--text)}.guide-linked-race-summary button{color:var(--link);font:inherit;cursor:pointer;background:0 0;border:0;justify-self:start;padding:.2rem 0;font-weight:750}.guide-public-url{color:var(--text-muted);letter-spacing:0;text-transform:none;margin:0;font-size:.78rem;font-weight:650}.guide-public-url code{color:var(--text);overflow-wrap:anywhere}.guide-advanced{border:1px solid var(--border);background:var(--surface-muted);border-radius:.75rem;padding:.75rem}.guide-advanced>summary{color:var(--text);letter-spacing:0;text-transform:none;cursor:pointer;font-size:.82rem;font-weight:800}.guide-advanced-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:.9rem;display:grid}.guide-advanced-fields .guide-public-url{grid-column:1/-1}.guide-editor-fields input[aria-invalid=true],.guide-editor-title[aria-invalid=true]{border-color:#dc2626;box-shadow:0 0 0 2px #dc262624}.guide-field-help,.guide-field-error{letter-spacing:0;text-transform:none;font-size:.72rem;font-weight:600;line-height:1.4}.guide-field-help{color:var(--text-muted)}.guide-field-error{color:#dc2626}.guide-state-options{z-index:20;border:1px solid var(--border);background:var(--surface);border-radius:.7rem;width:100%;max-height:16rem;margin:0;padding:.35rem;list-style:none;position:absolute;top:calc(100% - 2.2rem);overflow-y:auto;box-shadow:0 16px 35px #0f172a29}.guide-state-options button{width:100%;color:var(--text);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:.45rem;justify-content:space-between;padding:.65rem;display:flex}.guide-state-options button:hover,.guide-state-options button:focus-visible{background:var(--surface-muted)}.guide-editor-actions button:hover:not(:disabled){filter:brightness(1.06)}.guide-editor-actions button:disabled{cursor:wait;opacity:.6}.guide-editor-document{width:min(100% - 2rem,760px);min-height:70vh;margin-inline:auto;padding:clamp(1.25rem,3vw,2rem) 0 5rem}.guide-editor-title{width:100%;color:var(--text);font:inherit;letter-spacing:-.055em;background:0 0;border:0;margin:0 0 .9rem;padding:0;font-size:clamp(2rem,5vw,3.2rem);font-weight:850;line-height:1.04}.guide-editor-title::placeholder{color:color-mix(in srgb, var(--text-muted) 52%, transparent)}.guide-editor-title:focus{outline:none}.guide-editor-document .bn-container{font-family:inherit}.guide-editor-document .bn-editor{min-height:48vh;color:var(--text);background:0 0;padding-inline:0}.guide-editor-footer{border-top:1px solid var(--border);width:min(100% - 2rem,760px);color:var(--text-muted);justify-content:space-between;gap:1rem;margin-inline:auto;padding:1rem 0 2rem;font-size:.8rem;display:flex}.guide-editor-footer-local-only{color:color-mix(in srgb, #d97706 75%, var(--text))}.guide-editor-footer-error{color:color-mix(in srgb, #dc2626 75%, var(--text))}.guide-editor-state{min-height:60vh;color:var(--text-muted);text-align:center;align-content:center;place-items:center;gap:.75rem;display:grid}.guide-editor-state p{margin:0}.guide-editor-state a{color:var(--link);font-weight:750}.guide-editor-state-mark{border:2px solid var(--border);border-top-color:var(--accent);border-radius:999px;width:1.15rem;height:1.15rem;animation:.7s linear infinite guide-editor-spin}.guide-editor-state-error{color:color-mix(in srgb, #dc2626 70%, var(--text))}@keyframes guide-editor-spin{to{transform:rotate(1turn)}}@media (width<=640px){.guide-editor-toolbar{gap:.5rem;padding-block:.55rem;top:3.75rem}.guide-editor-actions{flex:none;gap:.45rem}.guide-editor-actions .guide-editor-status{background:0 0;border:0;border-radius:0;place-items:center;width:1.75rem;height:2.5rem;padding:0;display:grid}.guide-editor-status>span:first-child{width:.62rem;height:.62rem}.guide-editor-actions .guide-editor-manual-save{width:2.5rem;height:2.5rem}.guide-editor-workflow{min-width:4.8rem}.guide-editor-back{font-size:.82rem}.guide-editor-document{padding-top:.85rem}.guide-editor-title{margin-bottom:.65rem;font-size:clamp(1.7rem,9vw,2.25rem);line-height:1.08}.guide-editor-race{margin-bottom:1rem}.guide-editor-mobile-content-actions{right:max(1rem, env(safe-area-inset-right));bottom:max(.75rem, calc(env(safe-area-inset-bottom) + .5rem));margin:0 0 .45rem auto}.guide-editor-mobile-content-actions button{border:1px solid var(--border);background:var(--surface);width:2.75rem;height:2.75rem;color:var(--text);border-radius:999px;place-items:center;display:grid;box-shadow:0 .5rem 1.3rem #0f172a24}.guide-editor-mobile-content-actions svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:1.25rem;height:1.25rem}.guide-editor-document .bn-editor{padding-bottom:4rem}.guide-editor-footer{flex-direction:column;gap:.3rem}.guide-editor-fields{grid-template-columns:1fr}.guide-editor-race{flex-direction:column;align-items:stretch}.guide-details>summary{flex-direction:column;align-items:start;gap:.2rem}.guide-field-wide{grid-column:auto}.guide-advanced-fields{grid-template-columns:1fr}.guide-advanced-fields .guide-public-url{grid-column:auto}}.guide-export-menu{position:relative}.guide-export-menu summary{cursor:pointer;width:44px;height:44px;color:var(--text);border-radius:8px;place-items:center;list-style:none;display:grid}.guide-export-menu summary::-webkit-details-marker{display:none}.guide-export-menu summary:focus-visible{outline:2px solid var(--accent)}.guide-export-menu>div{background:var(--surface);border:1px solid var(--border);border-radius:8px;min-width:180px;padding:.4rem;position:absolute;top:100%;right:0}.guide-export-menu button{width:100%;min-height:44px;color:var(--text);text-align:left;cursor:pointer;background:0 0;border:0;padding:.5rem .75rem}.guide-export-toast{z-index:50;bottom:calc(1rem + env(safe-area-inset-bottom));background:var(--surface);max-width:calc(100vw - 2rem);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:.65rem 1rem;font-size:.9rem;position:fixed;left:50%;transform:translate(-50%)}
