:root{font-family:Inter,ui-sans-serif,system-ui,Arial;background:#0b111b;color:#e6eefc;font-size:14px}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:35px;padding:22px 34px;border-bottom:1px solid #263246;background:#0e1622}.brand{font-size:25px;font-weight:900;letter-spacing:-1.5px}.brand span{color:#6d9bff}.tag,.sub{color:#94a7c1}.pill{margin-left:auto;border:1px solid #31506d;color:#78c2ff;padding:7px 11px;border-radius:20px;font-size:11px;letter-spacing:1.2px}body:not(.workspace) > main{display:grid;grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:18px;padding:18px;max-width:1900px;margin:auto}.left,.right{border:1px solid #263246;background:#101b29;border-radius:12px;padding:20px;min-width:0}.section-title{display:flex;justify-content:space-between;align-items:center;color:#85adff;font-size:11px;letter-spacing:2px;font-weight:800;margin-bottom:22px}.second{margin-top:26px;margin-bottom:8px}label{display:block;color:#b3c1d7;font-size:12px;margin:13px 0 8px}input,select,textarea{width:100%;border:1px solid #324157;background:#09111c;color:#e4ebf8;border-radius:8px;padding:12px;font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:#73a1ff}#source{height:365px;resize:vertical;font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;color:#c8dbfa}.grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}button{width:100%;margin-top:12px;padding:13px;border-radius:8px;border:1px solid #355275;background:#1b2a3e;color:#dbe8ff;cursor:pointer;font-weight:800}button:hover{background:#283c55}.primary{background:#4678f3;border-color:#4678f3;color:white;margin-top:22px}.primary:hover{background:#5689ff}.status,.result{margin-top:16px;color:#9cb1cd;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.result{max-height:230px;overflow:auto}.error{color:#ff929c}.success{color:#80dfbc}#chart{height:min(70vh,720px);min-height:440px;background:#0b1420;border-radius:8px}.bottom{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#92a6c1;padding:15px 3px}.bottom a{color:#92b5ff}#publishBox{margin-top:15px;border:1px solid #2c5e57;background:#0d2528;padding:18px;border-radius:10px}#embedCode{height:100px;font:12px/1.5 monospace}.warning{color:#e7b77e;font-size:12px}footer{text-align:center;color:#647d9d;padding:20px}.embed{padding:10px;background:#0b111b}.embedhead{display:flex;justify-content:space-between;padding:8px 12px;color:#94baff}.embed #chart{height:calc(100vh - 95px);min-height:280px}@media(max-width:850px){body:not(.workspace) > main{grid-template-columns:1fr}header{flex-wrap:wrap;gap:8px}.pill{margin-left:0}#chart{height:500px}}
/* Pine drawing layer follows chart viewport and does not intercept interactions. */
.pine-drawing-overlay{position:absolute;inset:0;z-index:4;pointer-events:none;display:block}

/* Creator studio navigation */
.editor-nav{display:flex;gap:8px;align-items:center;margin-left:18px}.editor-nav a{color:#9cb1cd;text-decoration:none;padding:10px 15px;border-radius:8px;font-weight:800}.editor-nav a.active,.editor-nav a:hover{background:#223750;color:#f1f6ff}header .brand{white-space:nowrap}button:disabled{opacity:.48;cursor:not-allowed}@media(max-width:850px){.editor-nav{order:3;width:100%;margin-left:0;justify-content:space-between}.editor-nav a{padding:10px}}

/* Editor is for creation; account and destructive management live on dashboard. */
.editor-saved-panel{border:1px solid #30435a;background:#111e2e;border-radius:10px;padding:15px;margin-bottom:22px}
.editor-saved-panel .section-title{margin-bottom:12px;gap:12px;flex-wrap:wrap}
.editor-manage-link{color:#9fbeff;text-decoration:none;font-size:12px;font-weight:750;letter-spacing:normal}
.editor-manage-link:hover{text-decoration:underline}
.editor-save-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.editor-save-actions button{min-width:0;padding:11px 8px}
.editor-publish-link{display:block;text-align:center;margin-top:14px;padding:12px;border:1px solid #355275;border-radius:8px}
.editor-auth-notice{border:1px solid #30435a;border-radius:9px;padding:14px;margin-bottom:20px;color:#b5c5de;line-height:1.6}
.editor-auth-notice a{color:#9fbeff}
@media(max-width:450px){.editor-save-actions{grid-template-columns:1fr}}

/* Public homepage playground: real editor, anonymous preview-only mode. */
.demo-editor>header,.demo-editor>footer,.demo-editor #savePanel,.demo-editor #accountStatus,.demo-editor .editor-publish-link,.demo-editor #publish,.demo-editor #publicationControls,.demo-editor #publishBox{display:none!important}
.demo-editor>main{padding:14px!important;max-width:none!important;grid-template-columns:minmax(280px,36%) minmax(0,1fr)!important;gap:14px!important}
.demo-editor .left,.demo-editor .right{padding:17px}
.demo-editor #source{height:330px}
.demo-editor #chart{height:570px;min-height:350px}
@media(max-width:850px){.demo-editor>main{grid-template-columns:1fr!important}.demo-editor #chart{height:440px}}

.timezone-note{color:#8fa7c8;font-size:11px;line-height:1.5;margin:7px 0 13px}

/* Shared Northporte image + wordmark branding */
a.brand{display:inline-flex;align-items:center;gap:9px;text-decoration:none;white-space:nowrap}
.northporte-brand-icon{display:block;width:34px;height:34px;object-fit:contain;border-radius:5px;flex:none}
@media(max-width:550px){.northporte-brand-icon{width:29px;height:29px}}
