/* Shared action treatment, including the server-rendered shell. */
html body .nestify-app :is(.n-btn,.n-main a,.n-modal a,.n-usage-links a){text-decoration:none;}
html body .nestify-app .n-text,
html body .nestify-app .n-main a:not(.n-btn):not(.n-nav):not(.n-job):not(.n-skip),
html body .nestify-app .n-modal a:not(.n-btn),
html body .nestify-app .n-usage-links a{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-height:38px;padding:8px 13px;border:1px solid var(--n-border);
 border-radius:12px;background:var(--n-card);color:var(--n-text);
 font:inherit;font-size:13px;line-height:1.35;font-weight:500;
 text-align:center;vertical-align:middle;max-width:100%;white-space:normal;
}
html body .nestify-app :is(.n-text,.n-main a,.n-usage-links a):hover{border-color:var(--n-control);}
html body .nestify-app :is(.n-footer a,.n-footer button){text-decoration:none;background:transparent;border:0;}
html body .nestify-app :is(.n-btn,a,summary):focus-visible{outline:3px solid var(--n-focus);outline-offset:3px;}
html body .nestify-app .n-heading h1[tabindex="-1"]:focus{outline:none;}
html body .nestify-app .n-skip:not(:focus){clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap;}
html body .nestify-app :is(.n-row,.n-result-actions,.n-template-tools,.n-usage-links,.n-brand-actions){display:flex;flex-wrap:wrap;align-items:center;gap:12px;}
html body .nestify-app .n-action-stack{display:grid;gap:12px;}
html body .nestify-app .n-action-stack>.n-btn{width:100%;margin:0;}
html body .nestify-app .n-action-stack>p{margin:0;}
html body .nestify-app .n-brand-actions{margin-bottom:20px;}
html body .nestify-app .n-template-tools{margin-bottom:12px;}
html body .nestify-app .n-usage-links{gap:8px;}
html body .nestify-app .n-usage-links a{flex:1 1 auto;font-size:12px;padding:8px 9px;min-height:40px;}
html body .nestify-app .n-usage-links .n-billing-shortcut{flex-basis:100%;margin-top:4px;}
html body .nestify-app .n-result-actions .n-watermark{flex-basis:100%;margin:4px 0;}
html body .nestify-app .n-result-actions small{flex:1 1 150px;}
html body .nestify-app .n-resume{display:flex;flex-wrap:wrap;gap:12px;}
html body .nestify-app .n-resume :is(h2,p){flex-basis:100%;margin:0;}
html body .nestify-app .n-photo-caption .n-btn{padding:8px 12px;}
html body .nestify-app .n-help p{white-space:pre-line;}
html body .nestify-app .n-account-form{display:grid;gap:16px;}
html body .nestify-app .n-account-form .n-field{margin:0;min-width:0;}
html body .nestify-app .n-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:end;}
html body .nestify-app .n-form-grid>.n-wide{grid-column:1/-1;}
html body .nestify-app .n-account-form :is(input,select){width:100%;min-width:0;}
html body .nestify-app .n-account-form input[readonly]{background:var(--n-page);color:var(--n-muted);}
html body .nestify-app .n-account-form .n-form-note{margin:0;color:var(--n-muted);font-size:13px;line-height:1.6;}
html body .nestify-app .n-account-grid{align-items:stretch;}
html body .nestify-app .n-account-section{margin-top:24px;scroll-margin-top:24px;}
html body .nestify-app .n-account-tabs{margin-bottom:24px;}
html body .nestify-app .n-payment-list{display:grid;gap:12px;margin:16px 0;}
html body .nestify-app .n-payment-item{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border:1px solid var(--n-border);border-radius:12px;padding:16px;}
html body .nestify-app .n-payment-item p{margin:0;}
html body .nestify-app .n-account-form .n-row{margin:0;}
html body .nestify-app .n-account-order td{vertical-align:middle;}
html body .nestify-app .n-account-order .n-row{min-width:140px;gap:8px;}
html body .nestify-app [hidden]{display:none!important;}
@media(max-width:650px){
 html body .nestify-app .n-form-grid{grid-template-columns:1fr;}
 html body .nestify-app .n-account-form .n-btn{width:100%;}
 html body .nestify-app .n-template-tools>.n-btn{flex:1 1 160px;}
 html body .nestify-app :is(.n-btn,.n-usage-links a){min-height:44px;}
 html body .nestify-app .n-brand-actions>.n-btn{flex:1 1 160px;}
 html body .nestify-app .n-account-tabs>.n-btn{flex:1 1 130px;}
}

/* Update 16.1: consistent media, centered equal-width plans and readable prompts. */
html body .nestify-app .n-job{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;margin:0;padding:0;min-width:0;}
html body .nestify-app .n-job-media{position:relative;aspect-ratio:16/9;flex:0 0 auto;overflow:hidden;width:100%;padding:0;background:var(--n-page);}
html body .nestify-app .n-job-media>img{display:block;width:100%;height:100%;max-height:none;object-fit:cover;object-position:center;margin:0;}
html body .nestify-app .n-job-media>.n-job-placeholder{width:100%;height:100%;min-height:0;margin:0;}
html body .nestify-app .n-job-details{flex:1;text-align:left;}
html body .nestify-app .n-pricing-layout{--n-plan-columns:5;--n-plan-gap:16px;}
html body .nestify-app .n-pricing-layout .n-product-plans{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:var(--n-plan-gap);width:100%;max-width:none;margin:24px 0;}
html body .nestify-app .n-pricing-layout .n-product-plan{flex:0 0 calc((100% - (var(--n-plan-columns) - 1)*var(--n-plan-gap))/var(--n-plan-columns));width:calc((100% - (var(--n-plan-columns) - 1)*var(--n-plan-gap))/var(--n-plan-columns));min-width:0;max-width:none;margin:0!important;}
html body .nestify-app .n-pricing-layout .n-credit-topup{text-align:left;}
html body .nestify-app .n-pricing-layout .n-credit-topup .n-field{max-width:none;width:100%;margin:0;}
html body .nestify-app .n-pricing-layout .n-credit-topup .n-small{order:1;}
html body .nestify-app .n-pricing-layout .n-credit-topup .n-btn{order:2;margin-top:auto;}
html body .nestify-app .n-picker-intro{color:var(--n-muted);max-width:70ch;margin:0 0 20px;line-height:1.65;}
html body .nestify-app .n-instruction-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch;}
html body .nestify-app :is(.n-instruction-card,.n-template-grid>.n-card){display:flex;flex-direction:column;gap:12px;min-width:0;padding:20px;}
html body .nestify-app :is(.n-instruction-card,.n-template-grid>.n-card) :is(h2,h3,p){margin:0;overflow-wrap:anywhere;}
html body .nestify-app .n-instruction-card h3{font-size:17px;line-height:1.45;}
html body .nestify-app .n-instruction-kind{font-size:12px;font-weight:600;color:var(--n-teal);}
html body .nestify-app .n-instruction-excerpt{white-space:pre-line;font-size:14px;line-height:1.7;color:var(--n-muted);}
html body .nestify-app .n-instruction-details{font-size:13px;}
html body .nestify-app .n-instruction-details summary{cursor:pointer;padding:8px 0;color:var(--n-text);}
html body .nestify-app .n-instruction-details>div{white-space:pre-wrap;line-height:1.7;border-top:1px solid var(--n-border);padding-top:12px;max-height:240px;overflow:auto;overscroll-behavior:contain;}
html body .nestify-app .n-instruction-details p+p{margin-top:12px;}
html body .nestify-app .n-instruction-card>.n-btn{margin-top:auto;align-self:flex-start;white-space:normal;}
html body .nestify-app .n-template-grid>.n-card>.n-row{margin-top:auto;padding-top:4px;}
html body .nestify-app .n-instruction-list{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0 24px;}
html body .nestify-app .n-instruction-empty{padding:20px;border:1px dashed var(--n-border);border-radius:12px;}
html body .nestify-app .n-remove-icon{color:#b44949!important;stroke:currentColor;flex:0 0 18px;width:18px;height:18px;vertical-align:middle;pointer-events:none;}
html[data-nestify-theme=dark] body .nestify-app .n-remove-icon{color:#ff9696!important;}
html body .nestify-app button:has(>.n-remove-icon){display:inline-flex;align-items:center;justify-content:center;gap:8px;}
@media(max-width:1200px){html body .nestify-app .n-pricing-layout{--n-plan-columns:2;}}
@media(max-width:650px){
 html body .nestify-app .n-pricing-layout{--n-plan-columns:1;}
 html body .nestify-app .n-instruction-cards{grid-template-columns:1fr;}
 html body .nestify-app .n-instruction-card>.n-btn{width:100%;}
}

/* Update 16.2: guest plan discovery and account navigation. */
html body .nestify-app .n-nav-plans{background:var(--n-primary);border:1px solid var(--n-primary);color:#17383d!important;font-weight:750;margin-top:8px;box-shadow:0 4px 12px #cfaa2320;}
html body .nestify-app .n-nav-plans:hover{filter:brightness(.97);background:var(--n-primary);}
html body .nestify-app .n-sidebar>nav,html body .nestify-app .n-sidebar-usage,html body .nestify-app .n-sidebar-bottom{flex-shrink:0;}
html body .nestify-app .n-sidebar-bottom{margin-top:auto;padding-top:24px;width:100%;}
html body .nestify-app .n-sidebar-logout{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;}
html body .nestify-app .n-guest-intro{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-bottom:32px;}
html body .nestify-app .n-guest-intro>div{flex:1 1 420px;}
html body .nestify-app .n-guest-intro h1{margin:0 0 10px;}
html body .nestify-app .n-guest-intro p{margin:8px 0 0;color:var(--n-muted);}
html body .nestify-app .n-guest-plans-heading h2{font-size:26px;}
html body .nestify-app .n-free-plan{border-color:var(--n-teal);}
html body .nestify-app .n-free-note{font-size:12px;line-height:1.6;color:var(--n-muted);margin:0;text-align:center;}
html body .nestify-app .n-auth-card:has(.n-signup-plans){width:100%;max-width:none;padding:0;border:0;background:transparent;box-shadow:none;}
html body .nestify-app .n-auth-card:has(.n-signup-plans)>.n-auth-tabs{max-width:420px;margin-bottom:24px;}
html body .nestify-app .n-signup-plans{width:100%;min-width:0;}
html body .nestify-app .n-signup-plans .n-product-plan p{margin:0;}
html body .nestify-app .n-signup-custom{margin-top:auto;gap:14px;}
html body .nestify-app .n-signup-choice{padding:20px;background:var(--n-soft);border:1px solid var(--n-border);border-radius:12px;margin-bottom:16px;}
html body .nestify-app .n-signup-choice h2{margin:8px 0;font-size:22px;}
html body .nestify-app .n-signup-choice p{margin:8px 0 0;}
html body .nestify-app .n-signup-choice>span{font-size:12px;font-weight:700;}
html body .nestify-app .n-change-plan{margin-bottom:24px;}
html body .nestify-app .n-signup-pending{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 28px;border-color:var(--n-teal);}
html body .nestify-app .n-signup-pending :is(h2,p){flex-basis:100%;margin:0;}
@media(max-width:650px){
 html body .nestify-app .n-guest-intro>.n-btn{width:100%;}
 html body .nestify-app .n-signup-choice{padding:16px;}
 html body .nestify-app .n-signup-pending>.n-btn{width:100%;}
}

/* Update 16.2.1: five equal plan columns, free first, centered final row. */
html body .nestify-app .n-pricing-layout .n-product-plan{padding:20px 16px;}
html body .nestify-app .n-pricing-layout .n-plan-price{font-size:clamp(23px,1.9vw,30px);}
html body .nestify-app .n-pricing-layout .n-plan-price small{display:block;margin-top:4px;}
html body .nestify-app .n-topup-strip{display:grid;grid-template-columns:minmax(180px,1fr) minmax(140px,220px) auto auto;gap:16px;align-items:center;width:100%;max-width:none;margin:28px 0!important;padding:24px 0;border-top:1px solid var(--n-border);text-align:left;}
html body .nestify-app .n-topup-strip :is(h2,p){margin:0;}
html body .nestify-app .n-topup-strip h2{font-size:20px;line-height:1.4;}
html body .nestify-app .n-topup-strip .n-field{width:100%;max-width:none;margin:0;}
html body .nestify-app .n-topup-strip .n-small{grid-column:1/-1;}
html body .nestify-app .n-topup-strip .n-btn{margin:0;}
@media(max-width:900px){html body .nestify-app .n-topup-strip{grid-template-columns:1fr 1fr;}html body .nestify-app .n-topup-strip h2{grid-column:1/-1;}}
@media(max-width:650px){html body .nestify-app .n-topup-strip{grid-template-columns:1fr;}html body .nestify-app .n-topup-strip .n-btn{width:100%;}}
