/* Colours are the ones in ui_helpers.cpp applyThemeCss(); layout mirrors the GTK boxes/grids. */
*{box-sizing:border-box}
body{margin:0;background:#05070b;font:14px/1.3 Cantarell,"Segoe UI",system-ui,sans-serif;color:#fff}
.desk{padding:16px;display:flex;justify-content:center}
.window{width:920px;max-width:100%;height:660px;max-height:calc(100vh - 80px);min-height:560px;background:#0b0e14;border:1px solid #2e3646;border-radius:8px;box-shadow:0 12px 40px #000a;display:flex;flex-direction:column;overflow:hidden}
.titlebar{height:38px;background:#1a202c;display:flex;align-items:center;justify-content:center;position:relative;border-bottom:1px solid #2e3646;font-weight:700}
.titlebar .wm{position:absolute;right:12px;width:20px;height:20px;border-radius:50%;background:#2e3646;text-align:center;line-height:19px;font-weight:400}
.root{flex:1;display:flex;flex-direction:column;gap:8px;padding:12px;min-height:0}
.header{padding:4px 0;text-align:center}.header small{font-size:11px;font-weight:400}
.notebook{flex:1;display:flex;flex-direction:column;background:#141820;border:1px solid #2e3646;min-height:0}
.tabs{display:flex;background:#0b0e14;border-bottom:1px solid #2e3646}
.tab{background:#1a202c;color:#cbd5e1;padding:8px 16px;border:1px solid #2e3646;border-bottom:none;border-radius:0;font:inherit;cursor:pointer}
.tab.checked{background:#004e8c;color:#fff;font-weight:700;border-color:#004e8c}
.stack{flex:1;min-height:0;display:flex;flex-direction:column}
.page{flex:1;padding:12px;min-height:0}
.page[hidden]{display:none}
.grid{display:grid;grid-template-columns:max-content 1fr;grid-auto-rows:min-content;row-gap:8px;column-gap:12px;align-content:start}
.gl{grid-column:1}.c1{grid-column:2}.chk{grid-column:1 / span 2}
.col{display:flex;flex-direction:column;gap:8px}
.row{display:flex;gap:6px}.row.end{justify-content:flex-end}.actions{gap:8px}.grow{flex:1;min-height:0}
input[type=text],input:not([type]),input[type=number],select,textarea,.tv{background:#1e2430;color:#fff;border:1px solid #2e3646;border-radius:4px;padding:6px 8px;font:inherit}
input:focus,select:focus,textarea:focus{outline:none;border-color:#0063b1}
textarea.tv{resize:none;font-family:"DejaVu Sans Mono",ui-monospace,monospace;font-size:13px;width:100%}
select{padding:6px 28px 6px 8px}
button{background:#1e2430;color:#fff;border:1px solid #3a4559;border-radius:5px;padding:6px 14px;font:inherit;font-weight:600;cursor:pointer}
button:hover{background:#283040;border-color:#0063b1}
button.azure-primary{background:#004e8c;border-color:#004e8c}button.azure-primary:hover{background:#0063b1;border-color:#0078d4}
.chk{display:flex;align-items:center;gap:8px;cursor:pointer}.chk input{position:absolute;opacity:0}
.chk .box{width:16px;height:16px;background:#1e2430;border:1px solid #4a5568;border-radius:3px;display:inline-block;text-align:center;line-height:14px;font-size:12px}
.chk input:checked+.box{background:#004e8c;border-color:#004e8c}.chk input:checked+.box:after{content:"✓"}
.chk input:focus-visible+.box{outline:2px solid #0063b1}
.status{padding:2px 0;min-height:18px}
.dialogWrap{position:fixed;inset:0;background:#000a;display:flex;align-items:center;justify-content:center;z-index:9}
.dialogWrap[hidden]{display:none}.dialog{width:420px;max-width:92vw;background:#0b0e14;border:1px solid #2e3646;border-radius:8px;overflow:hidden}
.dlgBody{padding:14px;display:flex;flex-direction:column;gap:10px}.dlgBody label{display:flex;gap:8px;align-items:center}.dlgBody input{flex:1}.hint{margin:0;color:#cbd5e1;font-size:12px}
.foot{max-width:920px;margin:6px auto 20px;padding:0 16px;color:#94a3b8;font-size:12px;text-align:center}
@media(max-width:700px){.row{flex-wrap:wrap}.tabs{overflow:auto}}
.foot a{color:#d4a017}
