/* Shared, scoped layout for the preserved workspace and installation screens. */
.nsc-boot{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;margin:0;background:radial-gradient(ellipse at 50% 38%,#edf8f4,#f6f8fa 65%);color:#173e39;font:14px/1.9 Tahoma,system-ui,sans-serif;text-align:center;transition:opacity .18s ease}
.nsc-boot.is-leaving{opacity:0;pointer-events:none}.nsc-boot-content{padding:28px;animation:nsc-rise .65s ease both}.nsc-logo-orbit{position:relative;width:204px;height:204px;margin:0 auto 24px;display:grid;place-items:center}.nsc-logo-orbit:before{content:"";position:absolute;inset:0;border:1px solid #c9e3da;border-radius:50%;box-shadow:0 0 0 14px #d9efe54d;animation:nsc-breathe 2.4s ease-in-out infinite}.nsc-logo-orbit:after{content:"";position:absolute;inset:0;border:2px solid transparent;border-top-color:#168469;border-radius:50%;animation:nsc-orbit 2s linear infinite}.nsc-logo-orbit img{width:154px;height:auto;background:transparent;border-radius:0;padding:10px;filter:drop-shadow(0 14px 20px #165b3920)}.nsc-boot h1{font:600 19px/1.5 system-ui,sans-serif;letter-spacing:.3px;margin:0 0 8px}.nsc-boot p{color:#6a8179;margin:4px 0}.nsc-boot-track{width:130px;height:3px;border-radius:8px;background:#d8e9e1;overflow:hidden;margin:20px auto}.nsc-boot-track:after{content:"";display:block;width:42%;height:100%;background:#168469;border-radius:8px;animation:nsc-progress 1.6s ease-in-out infinite}.nsc-boot button{margin:16px 0;padding:10px 20px;border:1px solid #b9d7cd;border-radius:12px;background:white;color:#126950;cursor:pointer}
@keyframes nsc-orbit{to{transform:rotate(360deg)}}@keyframes nsc-breathe{50%{transform:scale(1.035);opacity:.65}}@keyframes nsc-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes nsc-progress{0%{transform:translateX(-130%)}100%{transform:translateX(340%)}}
.nsc-dialog{border-radius:24px!important;border:1px solid #dce8e4!important;background:#fff!important;color:#203c37;box-shadow:0 26px 90px #0d302c33!important;width:min(820px,calc(100vw - 32px))!important;max-height:92dvh;overflow:auto!important;font-family:Tahoma,system-ui,sans-serif;animation:nsc-rise .18s ease}
.nsc-dialog-header{background:#f4f9f7!important;color:#174d40!important;padding:20px 26px!important;border-bottom:1px solid #ddebe5!important}.nsc-dialog-header h2,.nsc-dialog-header h3{font-size:18px!important;line-height:1.6!important}.nsc-dialog-header p{color:#607c72!important;font-size:12px!important}
.nsc-dialog form{padding:24px!important;max-height:calc(92dvh - 130px)!important;overflow:auto;font-size:14px!important;line-height:1.8!important;background:#fff!important}.nsc-dialog form .grid{gap:18px!important}.nsc-dialog form label{font-size:13px!important;font-weight:600!important;margin-bottom:7px!important;color:#31584c!important}.nsc-dialog form input:not([type=checkbox]):not([type=radio]):not([type=file]),.nsc-dialog form select,.nsc-dialog form textarea{min-height:44px!important;border:1px solid #cbdcd4!important;border-radius:12px!important;background:#fbfdfc!important;color:#203c37!important;padding:10px 12px!important;font-size:14px!important;box-shadow:none!important;max-width:100%;min-width:0}.nsc-dialog form input:focus,.nsc-dialog form select:focus,.nsc-dialog form textarea:focus{outline:3px solid #15846826!important;border-color:#168469!important}.nsc-dialog form textarea{min-height:100px!important}.nsc-dialog form input[type=checkbox],.nsc-dialog form input[type=radio]{accent-color:#168469;min-width:18px;min-height:18px}.nsc-dialog form button{min-height:40px;font-size:13px!important;border-radius:11px!important}.nsc-dialog form [class*=space-y]>:not(:last-child){margin-bottom:16px!important}.nsc-dialog form :is(.bg-amber-600,.bg-amber-500,.bg-blue-600){background:#147c63!important;color:#fff!important}.nsc-dialog form [type=submit]{padding:11px 22px!important}.nsc-dialog :focus-visible{outline:3px solid #16846966;outline-offset:3px}
html.dark .nsc-dialog{background:#172a26!important;color:#e5f1eb;border-color:#375448!important}html.dark .nsc-dialog-header{background:#1d3830!important;color:#e5f1eb!important}html.dark .nsc-dialog form{background:#172a26!important}html.dark .nsc-dialog form label{color:#c5ddd1!important}html.dark .nsc-dialog form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#203c32!important;color:#e5f1eb!important;border-color:#486557!important}
@media(max-width:600px){.nsc-dialog{width:calc(100vw - 16px)!important;border-radius:18px!important;max-height:94dvh}.nsc-dialog-header{padding:16px!important}.nsc-dialog form{padding:18px!important;max-height:calc(94dvh - 110px)!important}.nsc-dialog form .grid{grid-template-columns:minmax(0,1fr)!important;gap:14px!important}.nsc-dialog form [class*=col-span]{grid-column:auto!important}.nsc-dialog form input:not([type=checkbox]):not([type=radio]):not([type=file]),.nsc-dialog form select,.nsc-dialog form textarea{font-size:16px!important}.nsc-dialog form button{min-height:44px}.nsc-logo-orbit{width:180px;height:180px}}
@media(prefers-reduced-motion:reduce){.nsc-boot *,.nsc-boot *:before,.nsc-boot *:after,.nsc-dialog{animation:none!important;transition:none!important}.nsc-boot-track:after{width:100%}}
@media print{.nsc-boot{display:none!important}.nsc-dialog{box-shadow:none!important;max-height:none!important;overflow:visible!important}.nsc-dialog form{max-height:none!important;overflow:visible!important}}

.nsc-dialog form>div:last-child:has(>button){position:sticky;bottom:-24px;padding:12px 0!important;background:inherit;border-top:1px solid #e4eee8;z-index:2}html.dark .nsc-dialog form>div:last-child:has(>button){background:#172a26}@media(max-width:600px){.nsc-dialog form>div:last-child:has(>button){bottom:-18px}}

.nsc-status-card{max-width:560px;margin:12dvh auto;padding:32px;border:1px solid #d5e5de;border-radius:24px;background:#fff;box-shadow:0 20px 70px #15463215;text-align:center;font:15px/1.9 Tahoma,system-ui;color:#214d40}.nsc-status-card button,.nsc-status-card a{display:inline-block;margin:8px;padding:12px 20px;border-radius:12px;background:#147c60;color:white;border:0;text-decoration:none;min-height:44px;font:inherit}.nsc-status-card h1{font-size:23px}

/* Consistent touch targets; keep each action's own permission-driven visibility. */
.nsc-app-header img[src="/assets/brand-full.webp"],.product-logo{background:transparent!important}
.nsc-install-link{display:none;color:inherit;text-decoration:none;font-size:12px;font-weight:600;border:1px solid #94b9ac;border-radius:10px;padding:8px 12px;white-space:nowrap;align-items:center;justify-content:center;min-height:44px}
@media(max-width:1023px){
 .nsc-app-header .nsc-header-row{height:auto!important;min-height:112px;flex-direction:column;align-items:stretch!important;gap:8px!important;padding:8px 0}
 .nsc-app-header .nsc-header-brand{width:100%;gap:10px!important;min-height:44px;justify-content:space-between}
 .nsc-app-header .nsc-header-brand>div{margin:0!important}
 .nsc-app-header .nsc-header-actions{width:100%;gap:4px!important;justify-content:space-between;padding-top:8px;border-top:1px solid #98a9a540}
 .nsc-header-actions>button,.nsc-header-actions>div>button,.nsc-header-brand>div>button{min-width:44px!important;min-height:44px!important;width:auto!important;height:44px!important;padding:10px!important;border-radius:12px!important;font-size:13px!important}
 .nsc-header-actions>button>svg,.nsc-header-actions>div>button>svg{width:20px!important;height:20px!important}
 .nsc-app-header img[src="/assets/brand-full.webp"]{height:40px!important;width:48px!important;max-width:48px!important}
 .nsc-header-brand>div:first-child{gap:6px!important;flex-shrink:1;min-width:0}
 .nsc-install-link{display:inline-flex;flex-shrink:0;padding:8px}
 .theme-nav-item{min-height:44px;font-size:13px!important}
 #root main{min-width:0;max-width:100%}
 #root main input:not([type=checkbox]):not([type=radio]),#root main select,#root main textarea{font-size:16px}
 .app-sync{max-width:calc(100vw - 24px);overflow-wrap:anywhere}
}
@media(max-width:370px){.nsc-header-brand>div:first-child>span{display:none!important}.nsc-header-actions{gap:2px!important}.nsc-header-actions>button,.nsc-header-actions>div>button{padding:8px!important}}
@media print{.nsc-install-link{display:none!important}}
