*{box-sizing:border-box}html{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#eef2f7;color:#111827}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}.nav{position:sticky;top:0;z-index:20;background:#091326;color:white;padding:18px max(20px,calc((100% - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #17233b}.brand{font-size:28px;font-weight:800;letter-spacing:-1px}.brand span{color:#60a5fa}.nav-actions{display:flex;gap:8px;flex-wrap:wrap}.btn{border:0;border-radius:10px;padding:12px 16px;font-weight:750;background:#2563eb;color:white}.btn.secondary{background:#17233b}.btn.light{background:white;color:#111827;border:1px solid #d8dee9}.btn.small{padding:8px 11px;font-size:13px}.hero{background:linear-gradient(135deg,#091326,#0f234a);color:white;padding:44px 20px 58px}.hero-inner{max-width:1180px;margin:auto;display:grid;grid-template-columns:1fr 1.05fr;gap:40px;align-items:center}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#93c5fd}.hero h1{font-size:clamp(38px,6vw,66px);line-height:.98;letter-spacing:-2.5px;margin:10px 0 18px;max-width:620px}.hero p{color:#cbd5e1;font-size:18px;line-height:1.6;max-width:580px}.pills{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.pill{font-size:13px;color:#dbeafe;background:#132744;border:1px solid #26436e;padding:7px 10px;border-radius:999px}.generator{background:#fff;color:#111827;border-radius:20px;padding:26px;box-shadow:0 24px 70px rgba(0,0,0,.25)}.generator h2{margin:0 0 16px;font-size:24px}.field{display:grid;gap:7px;margin-bottom:14px}.field label{font-weight:750;font-size:13px;color:#344054}.input,.textarea,.select{width:100%;border:1px solid #d6dce6;border-radius:11px;background:white;padding:12px 13px;color:#111827;outline:0}.input:focus,.textarea:focus,.select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #dbeafe}.textarea{min-height:150px;resize:vertical;line-height:1.5}.generate{width:100%;font-size:16px;padding:14px}.helper{font-size:13px;color:#667085;margin:10px 0 0;line-height:1.45}.summary{display:none;margin-top:14px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:12px 14px;color:#1e3a8a;font-size:13px;line-height:1.55}.summary strong{color:#172554}.workspace{max-width:1180px;margin:-20px auto 70px;padding:0 20px;display:none}.workspace.show{display:block}.grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:22px;align-items:start}.stack{display:grid;gap:16px}.card{background:#fff;border:1px solid #dfe5ee;border-radius:16px;padding:20px;box-shadow:0 6px 24px rgba(16,24,40,.05)}.card h3{margin:0 0 4px;font-size:18px}.card-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.card-sub{margin:0;color:#667085;font-size:12px;line-height:1.4}.rate-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.rate-status{margin:0 0 12px;padding:9px 11px;border:1px solid #dbe5f3;background:#f7faff;border-radius:9px;color:#475467;font-size:12px;line-height:1.4}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.three{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.line-head,.line-row{display:grid;grid-template-columns:minmax(170px,1fr) 84px 84px 100px 86px 34px;gap:7px;align-items:center}.line-head{font-size:11px;text-transform:uppercase;color:#667085;font-weight:800;padding:0 4px 7px}.line-row{margin-bottom:8px}.line-row input{min-width:0;padding:9px;border:1px solid #d8dee9;border-radius:8px}.line-row .amount{text-align:right;font-variant-numeric:tabular-nums;font-size:13px}.remove{border:0;background:#fff;color:#98a2b3;font-size:18px}.add-line{margin-top:6px}.totals-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.preview-wrap{position:sticky;top:90px}.preview{background:white;min-height:720px;border-radius:14px;border:1px solid #dfe5ee;padding:34px;box-shadow:0 16px 50px rgba(16,24,40,.1)}.doc-top{display:flex;justify-content:space-between;gap:22px;border-bottom:3px solid #111827;padding-bottom:20px}.doc-business{font-weight:800;font-size:22px}.doc-label{text-align:right}.doc-label h2{margin:0;font-size:28px;letter-spacing:.08em}.muted{color:#667085}.doc-section{margin-top:22px}.doc-section h4{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#667085;margin:0 0 8px}.preview table{width:100%;border-collapse:collapse;margin-top:22px;font-size:13px}.preview th{text-align:left;border-bottom:1px solid #cfd7e4;padding:9px 5px;color:#667085;font-size:10px;text-transform:uppercase}.preview td{padding:9px 5px;border-bottom:1px solid #edf0f5;vertical-align:top}.preview th:nth-child(n+2),.preview td:nth-child(n+2){text-align:right}.doc-totals{width:280px;margin:18px 0 0 auto;font-size:13px}.total-line{display:flex;justify-content:space-between;padding:5px 0}.grand{font-size:19px;font-weight:850;border-top:2px solid #111827;margin-top:5px;padding-top:10px}.scope-text{white-space:pre-wrap;line-height:1.55;font-size:13px}.footer-note{margin-top:26px;padding-top:14px;border-top:1px solid #dfe5ee;font-size:11px;color:#667085}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);background:#101828;color:white;padding:10px 15px;border-radius:999px;font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:50}.toast.show{opacity:1}.empty{color:#98a2b3;font-style:italic}
@media(max-width:900px){.hero-inner,.grid{grid-template-columns:1fr}.hero{padding-top:28px}.hero h1{font-size:44px}.workspace{margin-top:-25px}.preview-wrap{position:static}.preview{min-height:auto}.nav{padding:14px 18px}.brand{font-size:23px}.nav-actions .secondary{display:none}}
@media(max-width:620px){.hero{padding:26px 14px 48px}.generator{padding:20px;border-radius:16px}.workspace{padding:0 12px}.card{padding:16px}.card-title-row{display:block}.rate-actions{justify-content:flex-start;margin-top:10px}.two,.three,.totals-controls{grid-template-columns:1fr}.line-head{display:none}.line-row{grid-template-columns:1fr 70px 72px}.line-row input:nth-child(4){grid-column:1/2}.line-row .amount{grid-column:2/3;text-align:left}.remove{grid-column:3/4}.preview{padding:22px 18px}.doc-top{display:block}.doc-label{text-align:left;margin-top:16px}.doc-totals{width:100%}.nav-actions .light{display:none}}
@media print{body{background:white}.nav,.hero,.editor,.toast{display:none!important}.workspace{display:block!important;margin:0;padding:0;max-width:none}.grid{display:block}.preview-wrap{position:static}.preview{border:0;box-shadow:none;border-radius:0;padding:0;min-height:0}@page{margin:.55in}}
.history-shell{max-width:1180px;margin:0 auto 70px;padding:0 20px}.history-card{padding:20px}.history-list{display:grid;gap:9px}.history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 13px;border:1px solid #e1e7ef;border-radius:11px;background:#fbfcfe}.history-main{min-width:0}.history-name{font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-meta{margin-top:3px;color:#667085;font-size:12px}.history-total{font-weight:850;font-variant-numeric:tabular-nums}.history-actions{display:flex;gap:6px;align-items:center}.history-empty{padding:16px;border:1px dashed #cfd7e4;border-radius:11px;color:#667085;text-align:center;font-size:13px}.route-copy{max-width:1180px;margin:-26px auto 42px;padding:0 20px}.route-copy-inner{background:#fffdf9;border:1px solid #dfe5ee;border-radius:16px;padding:20px;box-shadow:0 6px 24px rgba(16,24,40,.04)}.route-copy h2{margin:0 0 8px;font-size:22px}.route-copy p{margin:0;color:#667085;line-height:1.55}.route-examples{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.route-example{font-size:12px;background:#f1f5fb;border:1px solid #dce5f2;border-radius:999px;padding:6px 9px;color:#344054}
@media(max-width:620px){.history-shell,.route-copy{padding:0 12px}.history-row{grid-template-columns:1fr}.history-actions{justify-content:flex-start}.history-total{margin-right:auto}}

.brand{display:inline-flex!important;align-items:center!important;gap:9px!important}
.qn-site-logo{width:36px!important;height:36px!important;display:block!important;object-fit:contain!important;flex:0 0 36px!important}
.qn-tagline{margin:12px 0 0!important;font-size:clamp(1rem,1.8vw,1.15rem)!important;font-weight:700!important;letter-spacing:-.01em!important;color:#93c5fd!important}
.generator-card p.microcopy,
.generator-card .microcopy,
p.microcopy,
.microcopy{
  color:#475569!important;
  opacity:1!important;
  font-weight:600!important;
  -webkit-text-fill-color:#475569!important;
}
.qn-share-btn{border:0;border-radius:10px;padding:10px 14px;background:#2563eb;color:white;font-weight:800;font:inherit;cursor:pointer}
.qn-share-note{font-size:.78rem;color:#64748b;margin-left:auto}
.qn-trade-nav{max-width:1180px;margin:28px auto 10px;padding:16px 20px;border-top:1px solid #e5e7eb;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;font-size:.86rem;color:#64748b}
.qn-trade-nav strong{color:#334155;margin-right:4px}.qn-trade-nav a{color:#475569;text-decoration:none}.qn-trade-nav a:hover{text-decoration:underline}
@media(max-width:640px){.qn-site-logo{width:32px!important;height:32px!important;flex-basis:32px!important}.qn-trade-nav{padding:14px 16px}.qn-share-note{display:none}.preview-toolbar{gap:8px;flex-wrap:wrap}}

.qn-preview-actions{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:0 2px}
.qn-share-btn{border:0;border-radius:10px;padding:11px 15px;background:#2563eb;color:#fff;font-weight:800;font:inherit;cursor:pointer;box-shadow:0 6px 16px rgba(37,99,235,.18)}
.qn-share-btn:disabled{opacity:.65;cursor:wait}
.qn-share-note{font-size:.78rem;color:#64748b}
.qn-share-modal{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:9999;display:grid;place-items:center;padding:18px}
.qn-share-dialog{position:relative;width:min(520px,100%);background:#fff;border-radius:18px;padding:24px;box-shadow:0 24px 70px rgba(15,23,42,.3);color:#0f172a}
.qn-share-dialog h3{margin:8px 0;font-size:1.35rem}.qn-share-dialog p{color:#475569;line-height:1.5}
.qn-share-x{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:1.8rem;color:#64748b}
.qn-share-check{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#166534;font-weight:900;font-size:1.3rem}
.qn-share-link{padding:11px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-size:.85rem;overflow-wrap:anywhere}
.qn-share-dialog-actions{display:flex;gap:10px;margin-top:16px}.qn-share-dialog-actions button{flex:1;padding:11px 14px;border-radius:10px;font-weight:800;font:inherit}
.qn-share-primary{border:0;background:#2563eb;color:#fff}.qn-share-secondary{background:#fff;border:1px solid #cbd5e1;color:#0f172a}
.qn-shared-panel{margin-top:18px}.qn-shared-row{display:flex;justify-content:space-between;gap:14px;padding:14px 0;border-top:1px solid #e2e8f0}
.qn-shared-main{display:flex;flex-direction:column;gap:3px;min-width:0}.qn-shared-main span,.qn-shared-main small{color:#64748b}
.qn-shared-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.qn-shared-actions a,.qn-shared-actions button{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:8px;padding:7px 9px;text-decoration:none;font:inherit;font-size:.8rem}
.qn-badge{padding:5px 8px;border-radius:999px;font-size:.75rem;font-weight:800}.qn-badge.pending{background:#fff7ed;color:#9a3412}.qn-badge.approved{background:#ecfdf5;color:#166534}
.qn-loading-share,.qn-share-error{min-height:100vh;display:grid;place-content:center;gap:12px;text-align:center;padding:24px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#0f172a;background:#eef2f7}
.qn-loading-share img{width:52px;height:52px;margin:auto;object-fit:contain}
.qn-customer-shell{padding:24px 12px;background:#eef2f7;min-height:100vh;color:#0f172a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.qn-customer-shell *{box-sizing:border-box}.qn-customer-card{max-width:860px;margin:auto;background:#fff;border-radius:20px;box-shadow:0 18px 50px rgba(15,23,42,.12);overflow:hidden}
.qn-customer-brand{background:#08152e;color:#fff;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.qn-customer-brand>div{display:flex;align-items:center;gap:10px;font-size:1.35rem;font-weight:800}.qn-customer-brand img{width:34px;height:34px;object-fit:contain}.qn-customer-brand>div span span{color:#60a5fa}
.qn-customer-brand button,.qn-approval-box button{border:0;border-radius:10px;background:#2563eb;color:#fff;font-weight:800;padding:11px 15px;font-size:1rem}
.qn-status{padding:12px 22px;background:#eff6ff;color:#1d4ed8;font-weight:800}.qn-status-approved{background:#ecfdf5;color:#166534}
.qn-est-head,.qn-two{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:24px 26px}.qn-customer-card h2,.qn-customer-card p{margin-top:0}
.qn-est-head h2{margin-bottom:6px;font-size:1.7rem}.qn-est-head p,.qn-two p{color:#64748b}.qn-est-meta{text-align:right;display:flex;flex-direction:column;gap:4px}.qn-est-meta strong{font-size:1.25rem}
.qn-two{border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}.qn-two small,.qn-customer-card section small{font-weight:800;color:#64748b;letter-spacing:.08em}.qn-two h2{font-size:1.05rem;margin:6px 0}
.qn-table-wrap{overflow-x:auto;padding:18px 26px 0}.qn-table-wrap table{width:100%;border-collapse:collapse;min-width:520px}.qn-table-wrap th,.qn-table-wrap td{padding:12px 8px;border-bottom:1px solid #e2e8f0;text-align:left}.qn-table-wrap th{font-size:.8rem;color:#64748b}
.qn-totals-block{margin-left:auto;width:min(400px,100%);padding:18px 26px;display:grid;gap:8px}.qn-totals-block>div{display:flex;justify-content:space-between;gap:20px}.qn-totals-block .qn-total{font-size:1.35rem;padding-top:9px;border-top:1px solid #cbd5e1}.qn-totals-block .qn-total strong{font-size:1.55rem}
.qn-customer-card>section{padding:0 26px 18px}.qn-customer-card>section p{white-space:pre-wrap;line-height:1.55}
.qn-approval-box{margin:10px 26px 24px;padding:20px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:14px}.qn-approval-box label{display:block;font-size:.8rem;font-weight:800;color:#475569;margin-bottom:6px}.qn-approval-box input{width:100%;padding:11px 12px;border:1px solid #cbd5e1;border-radius:9px;font:inherit;margin-bottom:10px}.qn-approval-box p{margin:10px 0 0;color:#475569;font-size:.9rem}.qn-approved{background:#ecfdf5;border-color:#86efac}.qn-approved strong{color:#166534}
.qn-customer-card footer{padding:16px 26px 22px;color:#64748b;font-size:.8rem;border-top:1px solid #e2e8f0}
@media(max-width:650px){.qn-preview-actions{flex-wrap:wrap}.qn-share-note{width:100%}.qn-shared-row{flex-direction:column}.qn-shared-actions{justify-content:flex-start}.qn-est-head,.qn-two{grid-template-columns:1fr}.qn-est-meta{text-align:left}.qn-customer-shell{padding:0}.qn-customer-card{border-radius:0;min-height:100vh}.qn-customer-brand{position:sticky;top:0;z-index:2}.qn-share-dialog-actions{flex-direction:column}}
@media print{.qn-preview-actions,.qn-shared-panel,.qn-customer-brand button,.qn-approval-box{display:none!important}.qn-customer-shell{padding:0;background:#fff}.qn-customer-card{box-shadow:none}}

.site-footer{background:#0b1427;color:#cbd5e1;margin-top:34px;border-top:1px solid #17233b}.site-footer-inner{max-width:1180px;margin:auto;padding:24px 20px;display:flex;justify-content:space-between;gap:20px;align-items:center}.site-footer-inner>div{display:flex;flex-direction:column;gap:4px}.site-footer strong{color:#fff}.site-footer span{font-size:.82rem;color:#94a3b8}.site-footer nav{display:flex;flex-wrap:wrap;gap:10px 18px}.site-footer a{color:#cbd5e1;text-decoration:none;font-size:.88rem}.site-footer a:hover{text-decoration:underline;color:#fff}
.legal-page{background:#eef2f7}.legal-nav .legal-brand{color:#fff;text-decoration:none}.legal-top-links{display:flex;gap:16px;align-items:center}.legal-top-links a{color:#dbeafe;text-decoration:none;font-size:.9rem;font-weight:700}.legal-top-links a:hover{text-decoration:underline}
.legal-shell{max-width:940px;margin:0 auto;padding:46px 20px 70px}.legal-hero{padding:0 4px 24px}.legal-hero h1{font-size:clamp(36px,6vw,58px);line-height:1;letter-spacing:-2px;margin:8px 0 14px}.legal-hero p{font-size:1.1rem;line-height:1.6;color:#475569;max-width:760px}
.legal-card{background:#fff;border:1px solid #dfe5ee;border-radius:18px;padding:clamp(22px,5vw,42px);box-shadow:0 10px 34px rgba(16,24,40,.06);line-height:1.7;color:#334155}.legal-card h2{color:#0f172a;margin:32px 0 8px;font-size:1.35rem;letter-spacing:-.02em}.legal-card h2:first-of-type{margin-top:18px}.legal-card p{margin:0 0 15px}.legal-card ul{padding-left:22px;margin:8px 0 18px}.legal-card li{margin:6px 0}.legal-card a{color:#1d4ed8}.legal-updated{display:inline-block;background:#eff6ff;color:#1e3a8a;border:1px solid #bfdbfe;border-radius:999px;padding:6px 10px;font-size:.82rem}
.about-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:22px}.about-note{background:#f8fafc;border:1px solid #dbe3ee;border-radius:14px;padding:18px;height:max-content}.about-note strong{color:#0f172a}.about-note p{margin:8px 0 0}
.contact-section{margin-top:40px;padding-top:30px;border-top:1px solid #e2e8f0}.contact-form{margin-top:18px}.contact-form label{display:grid;gap:7px;font-weight:750;color:#334155;margin-bottom:14px}.contact-form input,.contact-form select,.contact-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a;padding:12px 13px;font:inherit}.contact-form textarea{min-height:160px;resize:vertical}.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 3px #dbeafe}.contact-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.contact-honeypot{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(1px,1px,1px,1px)!important;white-space:nowrap!important}.contact-status{min-height:1.4em;margin:12px 0 0;font-weight:700}.contact-status.success{color:#166534}.contact-status.error{color:#b91c1c}.contact-privacy{font-size:.82rem;color:#64748b;margin-top:10px!important}.contact-form .btn:disabled{opacity:.65;cursor:wait}
@media(max-width:700px){.site-footer-inner{align-items:flex-start;flex-direction:column}.legal-top-links a:first-child{display:none}.legal-shell{padding:32px 12px 50px}.legal-card{border-radius:14px}.about-grid,.contact-two{grid-template-columns:1fr}}

/* Contractor account */
.auth-btn{background:#fff;color:#0f172a;border:1px solid #cbd5e1;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.auth-btn:hover{background:#f8fafc}.auth-btn.signed-in{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.qn-modal-open{overflow:hidden}.qn-auth-modal[hidden]{display:none!important}.qn-auth-modal{position:fixed;inset:0;z-index:10000;background:rgba(15,23,42,.62);display:grid;place-items:center;padding:18px}
.qn-auth-dialog{position:relative;width:min(460px,100%);max-height:min(760px,calc(100vh - 28px));overflow:auto;background:#fff;border-radius:20px;padding:26px;box-shadow:0 28px 90px rgba(15,23,42,.34);color:#0f172a}
.qn-auth-close{position:absolute;right:12px;top:10px;border:0;background:transparent;color:#64748b;font-size:1.8rem;line-height:1;cursor:pointer}
.qn-auth-brand{display:flex;align-items:center;gap:8px;font-weight:850;font-size:1.05rem}.qn-auth-brand img{width:30px;height:30px;object-fit:contain}.qn-auth-brand span{color:#2563eb}
.qn-auth-dialog h2{margin:16px 0 6px;font-size:1.65rem;letter-spacing:-.03em}.qn-auth-lead{margin:0 0 18px;color:#64748b;line-height:1.5}
.qn-auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f1f5f9;border-radius:11px;padding:4px;margin:0 0 18px}
.qn-auth-tabs button{border:0;background:transparent;border-radius:8px;padding:9px 10px;font:inherit;font-weight:800;color:#64748b;cursor:pointer}.qn-auth-tabs button.active{background:#fff;color:#0f172a;box-shadow:0 1px 4px rgba(15,23,42,.12)}
.qn-auth-form{display:grid;gap:13px}.qn-auth-form label{display:grid;gap:6px;font-size:.86rem;font-weight:800;color:#334155}.qn-auth-form input{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:12px 13px;font:inherit;color:#0f172a;background:#fff}.qn-auth-form input:focus{outline:0;border-color:#2563eb;box-shadow:0 0 0 3px #dbeafe}
.qn-auth-form .generate{margin-top:2px}.qn-auth-switch,.qn-auth-fine{margin:0;text-align:center;font-size:.82rem;color:#64748b;line-height:1.45}.qn-auth-switch button{border:0;background:transparent;padding:0;color:#1d4ed8;font:inherit;font-weight:800;cursor:pointer}.qn-auth-fine a{color:#1d4ed8}
.qn-auth-status{min-height:1.35em;margin-top:14px;text-align:center;font-size:.86rem;font-weight:750;color:#475569}.qn-auth-status.error{color:#b91c1c}.qn-auth-status.success{color:#166534}
.qn-auth-signed{text-align:center;padding:8px 0 2px;display:grid;justify-items:center;gap:7px}.qn-auth-avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#166534;font-size:1.25rem;font-weight:900}.qn-auth-signed strong{font-size:1.15rem}.qn-auth-signed>span{color:#64748b;font-size:.9rem}.qn-auth-signed p{color:#64748b;line-height:1.5;margin:8px 0 10px}
@media(max-width:620px){.auth-btn{padding:9px 11px;max-width:118px}.qn-auth-modal{padding:0;align-items:end}.qn-auth-dialog{width:100%;max-height:92vh;border-radius:20px 20px 0 0;padding:24px 18px calc(24px + env(safe-area-inset-bottom))}}
@media print{.qn-auth-modal{display:none!important}}

.qn-dashboard-link{display:inline-flex;justify-content:center;text-decoration:none;width:100%;margin-top:4px}
.qn-dashboard-page{background:#eef2f7;min-height:100vh}.qn-dashboard-page .brand{text-decoration:none;color:#fff}.qn-dashboard-page .nav{position:sticky;top:0;z-index:20}
.qn-dashboard-shell{max-width:1180px;margin:0 auto;padding:42px 20px 70px}.qn-dashboard-app[hidden],.qn-dashboard-gate[hidden]{display:none!important}
.qn-dashboard-gate{min-height:65vh;display:grid;place-items:center}.qn-dashboard-gate-card{width:min(520px,100%);background:#fff;border:1px solid #dfe5ee;border-radius:20px;padding:34px;text-align:center;box-shadow:0 18px 50px rgba(15,23,42,.09)}.qn-dashboard-gate-card img{width:56px;height:56px;object-fit:contain;margin-bottom:14px}.qn-dashboard-gate-card h1{margin:9px 0 12px;font-size:clamp(32px,6vw,48px);letter-spacing:-.04em}.qn-dashboard-gate-card p{color:#64748b;line-height:1.6;margin:0 0 22px}.qn-dashboard-gate-card .btn{display:flex;justify-content:center;text-decoration:none;margin-top:9px}
.qn-dashboard-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}.qn-dashboard-head h1{margin:8px 0 8px;font-size:clamp(34px,5vw,52px);letter-spacing:-.045em;line-height:1}.qn-dashboard-head p{margin:0;color:#64748b;font-size:1.02rem}.qn-dashboard-primary{text-decoration:none;white-space:nowrap}
.qn-dashboard-device-note{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:13px;padding:12px 14px;line-height:1.5;font-size:.88rem;margin-bottom:18px}.qn-dashboard-device-note strong{color:#7c2d12}
.qn-dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.qn-dashboard-stats article{background:#fff;border:1px solid #dfe5ee;border-radius:15px;padding:18px;box-shadow:0 5px 20px rgba(16,24,40,.04)}.qn-dashboard-stats span{display:block;color:#64748b;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.qn-dashboard-stats strong{display:block;margin:7px 0 3px;font-size:1.75rem;letter-spacing:-.04em;color:#0f172a}.qn-dashboard-stats small{color:#94a3b8}
.qn-dashboard-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.qn-dashboard-card{margin:0}.qn-dashboard-wide{grid-column:1/-1}.qn-dashboard-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px}.qn-dashboard-card-head h2{margin:0 0 4px;font-size:1.15rem}.qn-dashboard-card-head p{margin:0;color:#64748b;font-size:.82rem;line-height:1.45}.qn-dashboard-card-head>a{font-size:.82rem;color:#1d4ed8;text-decoration:none;font-weight:800}
.qn-dashboard-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:13px 0;border-top:1px solid #e5e7eb}.qn-dashboard-row:first-child{border-top:0}.qn-dashboard-row-main{min-width:0;display:grid;gap:3px}.qn-dashboard-row-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qn-dashboard-row-main span{color:#64748b;font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qn-dashboard-row-actions{display:flex;align-items:center;gap:8px}.qn-dashboard-row-actions>a{text-decoration:none}.qn-dashboard-empty{padding:18px;border:1px dashed #cbd5e1;border-radius:11px;color:#64748b;text-align:center;font-size:.86rem}
.qn-account-summary{display:grid;gap:12px;margin:12px 0 16px}.qn-account-summary div{display:grid;gap:3px}.qn-account-summary span{font-size:.75rem;color:#64748b;text-transform:uppercase;font-weight:800;letter-spacing:.06em}.qn-account-summary strong{overflow-wrap:anywhere}
.qn-rate-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:11px 0;border-top:1px solid #e5e7eb;align-items:center}.qn-rate-row:first-child{border-top:0}.qn-rate-row>div{display:grid;gap:3px;min-width:0}.qn-rate-row>div strong{text-transform:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qn-rate-row span{font-size:.78rem;color:#64748b}
@media(max-width:780px){.qn-dashboard-shell{padding:28px 12px 50px}.qn-dashboard-head{align-items:flex-start;flex-direction:column}.qn-dashboard-stats{grid-template-columns:1fr 1fr}.qn-dashboard-grid{grid-template-columns:1fr}.qn-dashboard-wide{grid-column:auto}.qn-dashboard-page .nav-actions .light{display:inline-flex}}
@media(max-width:520px){.qn-dashboard-stats{grid-template-columns:1fr}.qn-dashboard-row{grid-template-columns:1fr}.qn-dashboard-row-actions{justify-content:flex-start}.qn-dashboard-card-head{flex-direction:column}.qn-dashboard-gate-card{padding:28px 20px}}

.qn-dashboard-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.qn-cloud-status{font-size:.78rem;font-weight:800;color:#64748b}.qn-cloud-status.success{color:#166534}.qn-cloud-status.error{color:#b91c1c}.qn-cloud-status.syncing{color:#1d4ed8}.qn-danger-button{color:#b91c1c!important;border-color:#fecaca!important}.qn-dashboard-row-actions{flex-wrap:wrap;justify-content:flex-end}
@media(max-width:780px){.qn-dashboard-head-actions{justify-content:flex-start}.qn-dashboard-row-actions{justify-content:flex-start}}

.qn-customer-picker{margin-bottom:14px}.qn-customer-tools{margin:8px 0 12px}.qn-customer-editor[hidden]{display:none!important}.qn-customer-editor{background:#f8fafc;border:1px solid #dbe3ee;border-radius:13px;padding:15px;margin:10px 0 16px}.qn-customer-notes{min-height:80px}.qn-customer-editor-actions{display:flex;gap:8px;flex-wrap:wrap}.qn-customer-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(170px,.8fr) auto;gap:16px;align-items:center;padding:14px 0;border-top:1px solid #e5e7eb}.qn-customer-row:first-child{border-top:0}.qn-customer-main,.qn-customer-metrics{display:grid;gap:3px;min-width:0}.qn-customer-main strong{font-size:.96rem}.qn-customer-main span,.qn-customer-metrics span{font-size:.79rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qn-customer-metrics strong{font-size:.9rem}.qn-customer-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.qn-customer-actions a{text-decoration:none}
@media(max-width:780px){.qn-customer-row{grid-template-columns:1fr}.qn-customer-actions{justify-content:flex-start}}

.qn-row-title{display:flex;align-items:center;gap:8px;min-width:0}.qn-row-title strong{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qn-badge.draft{background:#f1f5f9;color:#475569;border:1px solid #cbd5e1}.qn-badge.sent{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.qn-badge.approved{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}.qn-send-btn{background:#0f766e;color:#fff;border-color:#0f766e}.qn-send-btn:hover{filter:brightness(.96)}
