/* The author page has its own viewport layout; it never inherits the login grid. */
body.author-document{background:#14151f!important;color:#e8e7ed;overflow:hidden;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
#standalone-author-page{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;height:100dvh!important;min-height:0!important;width:100%;padding:0!important;margin:0!important;overflow:hidden;font-size:14px;background:#14151f}
#standalone-author-page .standalone-author-header{flex:0 0 74px;height:74px;padding:12px 26px;background:linear-gradient(100deg,#0d2b53,#09244a);gap:14px;border-bottom:1px solid #b39afc33;flex-wrap:nowrap}
#standalone-author-page .author-logo-icon{display:grid;place-items:center;background:#b39afc;width:42px;height:42px;border-radius:9px;flex-shrink:0}
#standalone-author-page .standalone-brand{font-size:29px;letter-spacing:-1.2px;white-space:nowrap;color:#ff751f}
#standalone-author-page .standalone-brand span{font-size:10px;letter-spacing:3.5px;color:#e8e7ed;margin-left:9px}
#standalone-author-page .standalone-ledger{display:block;font-size:10px;letter-spacing:3px;margin-left:55px;color:#d9dbe7}
#standalone-author-page .standalone-author-header nav{gap:24px;margin-left:auto}
#standalone-author-page .author-header-save{color:#49f5b2;font-size:13px;white-space:nowrap}
#standalone-author-page #author-page-save{background:#b39afc;color:#082449;font-weight:700;border-radius:8px;padding:14px 22px;font-size:14px}
#standalone-author-page #author-page-export{font-weight:400;font-size:14px;color:#b8baca;text-decoration:none}
#standalone-author-page #author-workbench{display:block;flex:1;min-height:0;overflow:hidden}
#standalone-author-page .author-shell,#standalone-author-page .author-shell:has(#build-node-form:not([hidden])){display:grid;grid-template-columns:clamp(225px,17vw,345px) minmax(300px,1fr) clamp(325px,25vw,500px);gap:0;height:100%;min-height:0;border:0;border-radius:0;overflow:hidden;align-items:stretch}
#standalone-author-page .author-passage-panel{height:100%;min-height:0;overflow:auto;border:0;border-right:1px solid #343443;border-radius:0;padding:24px 18px;background:#181922;display:flex;flex-direction:column}
#standalone-author-page .author-sidebar-project{margin-bottom:28px}
#standalone-author-page .author-sidebar-project .page-kicker{font-size:10px;letter-spacing:2.6px;color:#888a9e;margin:0 0 32px}
#standalone-author-page .author-sidebar-project strong{display:block;font-size:16px;line-height:1.5;color:#f4ebe3;margin-left:0}
#standalone-author-page .author-sidebar-project p:not(.page-kicker){font-size:12px;color:#9294a7;margin:7px 0 18px;line-height:1.4}
#standalone-author-page #author-page-back{display:block;border:1px solid #363644;border-radius:6px;padding:10px 12px;color:#aaaabd;text-decoration:none;font-size:12px}
#standalone-author-page .author-passage-panel>.page-kicker{font-size:10px;letter-spacing:2.5px;color:#87899c;margin:0 10px 12px}
#standalone-author-page #author-storylines{flex:none;max-height:26vh;margin:0 0 24px;overflow-y:auto}
#standalone-author-page .author-storyline-button{padding:13px 12px;border-radius:7px;margin:2px 0;font-size:13px;gap:8px}
#standalone-author-page .author-storyline-button.selected{background:#292638;color:#b39afc}
#standalone-author-page .author-panel-heading{margin-top:5px;margin-bottom:15px}
#standalone-author-page .author-panel-heading h4{font-size:10px;letter-spacing:2.3px;font-weight:600;color:#87899d}
#standalone-author-page .author-panel-heading>span{background:transparent;color:#aaaac0;padding:0;font-size:11px}
#standalone-author-page .author-passage-panel input,#standalone-author-page .author-passage-panel select{min-height:0;padding:11px 12px;border:1px solid #363747;background:#11121b;border-radius:7px;font-size:12px;color:#e2e1e9;margin-bottom:8px}
#standalone-author-page .author-passage-panel label{font-size:10px;color:#888b9e;margin:5px 0 6px}
#standalone-author-page #author-passages{flex:1;min-height:65px;max-height:none;overflow-y:auto;display:flex;flex-direction:column;gap:5px}
#standalone-author-page .author-passage{padding:10px 12px;border-radius:6px;background:transparent;flex-shrink:0;border:1px solid transparent}
#standalone-author-page .author-passage.selected{background:#282738;border-color:#b39afc33}
#standalone-author-page .author-passage strong{font-weight:400;font-size:12px}
#standalone-author-page .author-passage small{font-size:10px;color:#9496aa}
#standalone-author-page #author-health{font-size:10px;margin:9px 0;color:#7e879a}
#standalone-author-page #author-checks{border-top:1px solid #343443;padding-top:18px;margin:17px 0 0;text-align:left;font-size:13px;color:#b8b7ca;text-decoration:none}
#standalone-author-page .author-center-column{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden;background:#11121c}
#standalone-author-page .author-project-header{padding:26px 28px;min-height:144px;flex:none;background:linear-gradient(120deg,#0b1b31,#0b1627);border-bottom:1px solid #333542;gap:18px;align-items:center;flex-direction:row}
#standalone-author-page .author-project-header .page-kicker{font-size:11px!important;letter-spacing:0!important;color:#8c98ae!important;line-height:1.4;margin:0 0 21px!important}
#standalone-author-page #author-project-title{display:inline;font-size:25px!important;font-weight:650;letter-spacing:-.6px;line-height:1.4;margin:0!important}
#standalone-author-page .author-project-draft{display:inline-block;font-size:9px;letter-spacing:2px;border:1px solid #486081;color:#d6dce9;border-radius:3px;padding:5px 7px;margin-left:12px;vertical-align:middle}
#standalone-author-page .author-project-header div>p:last-child{font-size:12px!important;color:#8994aa!important;margin:11px 0 0!important;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:530px}
#standalone-author-page #author-play-header{flex-shrink:0;background:#49f5b2;color:#07244d;padding:13px 18px;border-radius:7px;font-size:13px;white-space:nowrap}
#standalone-author-page .author-center-toolbar{flex:none;display:flex;justify-content:space-between;align-items:center;min-height:54px;border-bottom:1px solid #343442;background:#181923;padding:0 22px;gap:10px}
#standalone-author-page .author-view-tabs{border:0;padding:0;min-height:54px;gap:23px;flex-shrink:0}
#standalone-author-page .author-view-tabs button{font-size:12px;padding:15px 0;color:#8b8ca1}
#standalone-author-page .author-view-tabs button[aria-pressed=true]{color:#b39afc;border-bottom:2px solid #b39afc}
#standalone-author-page .author-center-actions{display:flex;align-items:center;gap:13px}
#standalone-author-page .author-center-actions button{background:none;border:0;color:#b7b5c9;font-size:12px;white-space:nowrap;padding:0;text-decoration:none}
#standalone-author-page #author-undo,#standalone-author-page #author-redo{font-size:21px;color:#7d7c92;line-height:1}
#standalone-author-page .author-canvas-panel{flex:1;min-height:0;position:relative;overflow:hidden;display:block;background:#11121c}
#standalone-author-page #build-branch-map{position:absolute;inset:0;width:100%;height:100%!important;min-height:0!important;margin:0;border:0;border-radius:0;background-color:#11121c;background-image:radial-gradient(#78759155 1px,transparent 1px);background-size:24px 24px;overflow:auto}
#standalone-author-page #author-library{position:absolute;inset:0;min-height:0!important;height:100%!important;padding:20px;overflow:auto}
#standalone-author-page .author-canvas-badge{position:absolute;top:20px;left:24px;z-index:2;background:#12131e;border:1px solid #343341;color:#a3a2b8;border-radius:5px;font-size:11px;padding:11px 14px;pointer-events:none}
#standalone-author-page .author-floating-zoom{position:absolute;z-index:4;right:20px;bottom:20px;display:flex;gap:16px;align-items:center;border:1px solid #454156;background:#222130e8;backdrop-filter:blur(8px);border-radius:8px;padding:10px 15px;color:#b4b0ca}
#standalone-author-page .author-floating-zoom button{background:transparent;border:0;padding:0;color:#b5b0cb;font-size:18px;text-decoration:none;line-height:1}
#standalone-author-page .author-floating-zoom span{font-size:11px;min-width:36px;text-align:center}
#standalone-author-page .author-canvas-hint{position:absolute;z-index:2;bottom:22px;left:23px;pointer-events:none;color:#727387;font-size:10px;max-width:55%;margin:0;line-height:1.5}
#standalone-author-page .author-canvas-footer{flex:none;min-height:32px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 22px;border-top:1px solid #353441;background:#181922;color:#838698;font-size:10px}
#standalone-author-page .author-canvas-panel:has(#author-library:not([hidden])) .author-canvas-badge,#standalone-author-page .author-canvas-panel:has(#author-library:not([hidden])) .author-canvas-hint,#standalone-author-page .author-canvas-panel:has(#author-library:not([hidden])) .author-floating-zoom{display:none}
#standalone-author-page .author-shell #build-node-form:not([hidden]){display:flex;flex-direction:column;grid-column:auto;height:100%;min-height:0;max-height:none!important;overflow:hidden!important;padding:0!important;margin:0!important;border:0;border-left:1px solid #353442;border-radius:0;background:#1a1b25;position:static;box-shadow:none;width:auto}
#standalone-author-page .build-editor-heading{flex:none;height:61px;display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #333440}
#standalone-author-page .build-editor-heading h4{font-size:14px!important;color:#c4c0d6;letter-spacing:0;font-weight:500;margin:0!important}
#standalone-author-page #author-test-passage{font-size:24px;color:#8d8aab;padding:0;text-decoration:none;font-weight:400}
#standalone-author-page .author-editor-tabs{padding:0 22px;margin:0;gap:22px;min-height:55px;height:55px;flex:none}
#standalone-author-page .author-editor-tabs button{font-size:12px;padding:16px 0}
#standalone-author-page .author-editor-scroll{flex:1;min-height:0;overflow:auto;padding:22px 24px}
#standalone-author-page .author-editor-scroll label{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:#9692ab;margin:12px 0 10px;font-weight:500;line-height:1.6}
#standalone-author-page .author-editor-scroll input,#standalone-author-page .author-editor-scroll textarea,#standalone-author-page .author-editor-scroll select{min-height:0;font:inherit;font-size:13px;color:#eee8e7;background:#101119;border:1px solid #373544;border-radius:6px;padding:11px 12px;margin:0 0 17px;line-height:1.6;width:100%}
#standalone-author-page #build-node-title{font-size:17px;min-height:48px}
#standalone-author-page #build-node-text{font-family:inherit;font-size:14px;line-height:1.9;min-height:215px}
#standalone-author-page #author-node-notes{min-height:230px;font-size:13px;line-height:1.7}
#standalone-author-page .author-metadata{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#standalone-author-page .author-word-label label{margin:16px 0 10px}
#standalone-author-page .author-word-label span{font-size:10px;color:#878296}
#standalone-author-page .author-editor-scroll h4{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:500;color:#9790ad;margin:23px 0 15px}
#standalone-author-page .author-editor-scroll .form-note{color:#878098!important;font-size:12px!important;line-height:1.8;letter-spacing:0}
#standalone-author-page .build-choice-row{padding:13px;gap:9px;background:#b39afc05;border-color:#3d344b}
#standalone-author-page .build-choice-row input,#standalone-author-page .build-choice-row select{margin:0}
#standalone-author-page .author-choice-heading{font-size:10px;letter-spacing:1.8px}
#standalone-author-page #author-mark-story,#standalone-author-page #author-unmark-story{font-size:10px;letter-spacing:0;line-height:1.6;padding:0 0 12px;text-align:left;text-decoration:none}
#standalone-author-page #author-create-connected{font-size:12px;padding:0;margin-bottom:18px;text-decoration:none}
#standalone-author-page .author-passage-bottom-actions{display:flex;gap:15px;flex-wrap:wrap;border-top:1px solid #393542;padding:17px 0;margin-top:20px}
#standalone-author-page .author-passage-bottom-actions button{font-size:11px;color:#aaa5bb;text-decoration:none;padding:0}
#standalone-author-page #build-delete-passage{color:#d48791}
#standalone-author-page .author-editor-footer{flex:none;padding:15px 22px 11px;background:#1a1b25;border-top:1px solid #383344}
#standalone-author-page .author-apply{position:static!important;width:100%;padding:13px;margin:0!important;background:#b39afc;color:#092044;font-size:13px;font-weight:700;border-radius:7px;border:0}
#standalone-author-page #author-save-state{display:block;font-size:10px;color:#817e95;text-align:center;margin-top:9px}
#standalone-author-page #author-discard{font-size:10px;text-align:center;color:#a399bc;padding:0;margin-top:7px;display:block;text-decoration:none}
#standalone-author-page #build-node-status{font-size:11px;margin:8px 0 0;line-height:1.5}
#standalone-author-page #build-node-status:empty{display:none}
#standalone-author-page #build-add-passage,#standalone-author-page #build-map-start,#standalone-author-page label[for=build-map-start],#standalone-author-page #build-set-start,#standalone-author-page .author-editor-actions:empty{display:none!important}
@media(min-width:1700px){#standalone-author-page .standalone-author-header{height:90px;flex-basis:90px;padding:16px 32px}#standalone-author-page .author-logo-icon{width:48px;height:48px}#standalone-author-page .standalone-brand{font-size:33px}#standalone-author-page .author-project-header{padding:32px 38px;min-height:195px}#standalone-author-page #author-project-title{font-size:31px!important}#standalone-author-page .author-view-tabs button{font-size:15px}#standalone-author-page .author-center-toolbar{min-height:68px;padding:0 32px}#standalone-author-page .author-passage-panel{padding:32px 24px}#standalone-author-page .author-sidebar-project strong{font-size:20px}#standalone-author-page .author-storyline-button{font-size:16px;padding:16px}#standalone-author-page .author-editor-scroll{padding:25px 30px}#standalone-author-page .build-editor-heading{height:75px;padding:25px 30px}#standalone-author-page .author-editor-tabs{height:66px;min-height:66px;padding:0 30px}#standalone-author-page .author-editor-tabs button{font-size:15px}#standalone-author-page .author-editor-scroll input,#standalone-author-page .author-editor-scroll select{font-size:16px;padding:14px 16px}#standalone-author-page .author-editor-scroll label{font-size:12px}#standalone-author-page #build-node-text{font-size:17px;min-height:280px}#standalone-author-page #author-node-notes{min-height:300px}#standalone-author-page .author-apply{padding:18px;font-size:16px}}
@media(max-width:1100px){#standalone-author-page .author-shell,#standalone-author-page .author-shell:has(#build-node-form:not([hidden])){grid-template-columns:190px minmax(245px,1fr) 315px}#standalone-author-page .standalone-ledger{display:none}#standalone-author-page .author-project-header{padding:20px;min-height:145px;flex-wrap:wrap;gap:12px}#standalone-author-page #author-project-title{font-size:22px!important}#standalone-author-page .author-center-toolbar{padding:0 13px;gap:5px;flex-wrap:wrap}#standalone-author-page .author-view-tabs{gap:15px}#standalone-author-page .author-center-actions{gap:10px;padding:8px 0}#standalone-author-page .author-editor-scroll{padding:18px}#standalone-author-page .author-floating-zoom{right:12px;bottom:15px;gap:12px}#standalone-author-page .author-canvas-hint{display:none}#standalone-author-page .author-project-draft{display:none}}
@media(max-width:820px){body.author-document{overflow:auto}#standalone-author-page{height:auto!important;min-height:100dvh!important;overflow:visible}#standalone-author-page #author-workbench{overflow:visible}#standalone-author-page .author-shell,#standalone-author-page .author-shell:has(#build-node-form:not([hidden])){grid-template-columns:180px minmax(0,1fr);height:auto;overflow:visible}#standalone-author-page .author-passage-panel{height:680px}#standalone-author-page .author-center-column{height:680px}#standalone-author-page .author-shell #build-node-form:not([hidden]){grid-column:1/-1;height:auto;max-height:none!important}#standalone-author-page .author-editor-scroll{overflow:visible}#standalone-author-page .author-editor-footer{position:sticky;bottom:0}#standalone-author-page .standalone-author-header{flex-wrap:wrap;height:auto;min-height:74px;flex-basis:auto}#standalone-author-page .author-header-save{display:none}}
@media(max-width:550px){#standalone-author-page .author-shell,#standalone-author-page .author-shell:has(#build-node-form:not([hidden])){grid-template-columns:1fr}#standalone-author-page .author-passage-panel{height:360px;border-bottom:1px solid #383344}#standalone-author-page .author-sidebar-project .page-kicker{margin-bottom:12px}#standalone-author-page .author-sidebar-project{margin-bottom:16px}#standalone-author-page .author-center-column{height:660px}#standalone-author-page .standalone-author-header nav{gap:14px;margin-left:0}#standalone-author-page .standalone-brand{font-size:25px}#standalone-author-page .author-center-toolbar{flex-wrap:nowrap}#standalone-author-page .author-project-header{flex-direction:row}#standalone-author-page .author-canvas-footer{padding:8px 12px;font-size:9px}}
#standalone-author-page .author-build-tracking{padding:12px 0 15px;border-top:1px solid #343443;margin-top:12px}#standalone-author-page .author-build-tracking small{display:block;font-size:9px;color:#9994aa;margin:8px 0 4px}#standalone-author-page .author-build-tracking span{display:block;color:#b39afc;font:9px/1.65 monospace;overflow-wrap:anywhere}
