/* Shared display and connection controls for every Tuzzie page. */
.tuzzie-ui-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tuzzie-ui-controls{display:inline-flex;align-items:center;justify-content:flex-end;gap:7px;margin-left:auto;flex:0 0 auto}
.tuzzie-network-status{display:inline;padding:0;border:0;border-radius:0;background:none;font:600 11px/1.2 system-ui,sans-serif;white-space:nowrap;cursor:default}
.tuzzie-network-status[data-state="offline"]{border-color:#ce8b42}
.tuzzie-theme-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:6px 10px;border:1px solid currentColor;border-radius:10px;background:transparent;color:inherit;font:600 15px/1 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.tuzzie-theme-toggle:hover{background:rgba(127,159,197,.16)}
.tuzzie-theme-toggle:focus-visible{outline:3px solid #4f8cff;outline-offset:3px}
html[data-theme="light"] body.tuzzie-construction{background:#f5f8fd;color:#122039}
html[data-theme="light"] body.tuzzie-construction p{color:#607087}
html[data-theme="light"] body.tuzzie-construction header,html[data-theme="light"] body.tuzzie-construction footer{color:#607087}
html[data-theme="light"] body.tuzzie-construction .status{border-color:#c8d6e7}
html[data-theme="light"] body.tuzzie-construction .status::before{background:#245ac7}
html[data-theme="light"] body.tuzzie-construction h1 span{color:#245ac7}
html[data-theme="light"] body.tuzzie-construction .stripe{background:repeating-linear-gradient(135deg,#245ac7 0 14px,#dfe8f4 14px 28px)}
html[data-theme="dark"]{color-scheme:dark;background:#0b1220;color:#e7edf7}
html[data-theme="dark"] body.tuzzie-project-hub{background:#0b1220;color:#e7edf7}
html[data-theme="dark"] body.tuzzie-project-hub .tuzzie-project-nav{background:#101b2e;color:#d9e5f4;border-color:#2b3b52}
html[data-theme="dark"] body.tuzzie-project-hub .tuzzie-project-nav a{color:#a9c8ff}
html[data-theme="dark"] body.tuzzie-project-hub .tuzzie-project-nav a[aria-current="page"]{background:#245ac7;color:#fff}
html[data-theme="dark"] body.tuzzie-project-hub .badge{background:#1a2c48;color:#a9c8ff}
html[data-theme="dark"] body.tuzzie-project-hub .intro p,html[data-theme="dark"] body.tuzzie-project-hub .card p,html[data-theme="dark"] body.tuzzie-project-hub footer{color:#a8b6c9}
html[data-theme="dark"] body.tuzzie-project-hub header,html[data-theme="dark"] body.tuzzie-project-hub footer{border-color:#29384c}
html[data-theme="dark"] body.tuzzie-project-hub .card{background:#111d30;border-color:#2b3c53}
html[data-theme="dark"] body.tuzzie-project-hub .card:hover{background:#172844;border-color:#7aa5ef}
html[data-theme="dark"] body.tuzzie-project-hub .card .path{color:#a9c8ff}
html[data-theme="dark"] body.tuzzie-project-hub .card h2{color:#edf3fb}
html[data-theme="dark"] body.tuzzie-project-template{background:#0b1220;color:#e7edf7}
html[data-theme="dark"] body.tuzzie-project-template main p{color:#a8b6c9}
html[data-theme="dark"] body.tuzzie-project-template .tuzzie-project-nav{background:#101b2e;color:#d9e5f4;border-color:#2b3b52}
html[data-theme="dark"] body.tuzzie-project-template .tuzzie-project-nav a{color:#a9c8ff}
html[data-theme="dark"] body.tuzzie-project-template .tuzzie-project-nav a[aria-current="page"]{color:#fff}
body.tuzzie-project-template{background:#f5f8fd;color:#122039}
body.tuzzie-project-template main p{color:#607087}
html[data-theme="light"] body.tuzzie-explorer{--bg:#edf3f9;--panel:#fffffff2;--line:#cbd7e4;--text:#183047;--muted:#52677b;--cyan:#246a9c;--gold:#8d6a16;color-scheme:light}
html[data-theme="light"] body.tuzzie-explorer header{background:linear-gradient(#edf3f9ee,transparent)}
html[data-theme="light"] body.tuzzie-explorer #panel,html[data-theme="light"] body.tuzzie-explorer #tools{background:#fffffff2;border-color:#cbd7e4;color:#183047;box-shadow:0 18px 50px #193b7018}
html[data-theme="light"] body.tuzzie-explorer #panel p{color:#52677b}
html[data-theme="light"] body.tuzzie-explorer button,html[data-theme="light"] body.tuzzie-explorer select{background:#f5f8fc;color:#183047;border-color:#c5d2e0}
html[data-theme="light"] body.tuzzie-explorer button:hover,html[data-theme="light"] body.tuzzie-explorer button:focus-visible{background:#e7f0fb;border-color:#6798d8}
html[data-theme="light"] body.tuzzie-explorer #legend,html[data-theme="light"] body.tuzzie-explorer .gesture{background:#ffffffdd;border-color:#cbd7e4;color:#26435c}
html[data-theme="light"] body.tuzzie-explorer #legend span{color:#26435c}
html[data-theme="light"] body.tuzzie-explorer .label{background:#fffffff2;border-color:#9bb2c7;color:#183047}
html[data-theme="light"] body.tuzzie-explorer .label.inferred{color:#765c19}
html[data-theme="light"] body.tuzzie-explorer table,html[data-theme="light"] body.tuzzie-explorer td{color:#26435c}
html[data-theme="light"] body.tuzzie-explorer th{background:#eaf1f8;color:#245a7d}
html[data-theme="light"] body.tuzzie-explorer dialog{background:#fff;color:#183047;border-color:#cbd7e4}
html[data-theme="light"] body.tuzzie-explorer dialog p{color:#52677b}
@media(max-width:620px){.tuzzie-ui-controls{gap:5px}.tuzzie-network-status{font-size:10px;padding:4px 7px}.tuzzie-theme-toggle{min-width:34px;min-height:34px}}



/* Offline readiness shares the existing compact network indicator. */
body .tuzzie-network-status .tuzzie-offline-retry{display:inline;min-height:0;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;line-height:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}body .tuzzie-network-status .tuzzie-offline-retry:focus-visible{outline:2px solid #3983ff;outline-offset:4px}
