/* Quote.Noble professional visual system. Presentation only; existing workflows retained. */
@media screen {
html:root:root body.qn-authenticated::before { content:none!important; }
:root { --text:#20252d; --muted:#667085; --gray:#f5f6f8; --gray-border:#dce1e7; --radius:16px; }
html:root:root body { background:#f5f6f8!important; color:#20252d; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.55; }
html:root:root body h1,html:root:root body h2,html:root:root body h3 { letter-spacing:-.025em; }
html:root:root body main { max-width:1080px; padding-top:30px; }
html:root:root body .app-header { background:#fff!important; border-bottom:1px solid #e8ebef!important; box-shadow:0 2px 12px #18223004!important; }
html:root:root body .app-header .brand { max-width:1080px; margin:auto; }
html:root:root body .app-header .qn-brand-copy h1 { color:#20252d!important; letter-spacing:-.8px; }
html:root:root body .app-header .qn-brand-copy p { color:#667085!important; }
html:root:root body #qn-create-toggle { background:#e66a12!important; color:#fff!important; border:1px solid #e66a12!important; border-radius:12px!important; min-height:46px; box-shadow:0 3px 8px #e66a121c!important; }
html:root:root body #qn-create-menu { border:1px solid #e7eaf0; border-radius:16px; box-shadow:0 14px 45px #1822301a; padding:8px; }
html:root:root body #qn-create-menu button { border-radius:9px; min-height:46px; color:#344054; }
html:root:root body #qn-create-menu button:hover { background:#fff4eb; }
html:root:root body .card,html:root:root body .list-item { background:#fff!important; border:1px solid #e6e9ef!important; border-radius:16px!important; box-shadow:0 3px 12px #18223003!important; }
html:root:root body .card { padding:24px; margin-bottom:20px; }
html:root:root body .list-item { padding:20px; margin-bottom:12px; transition:border-color .15s,box-shadow .15s; }
html:root:root body .list-item:hover { border-color:#d6bca7!important; box-shadow:0 5px 18px #18223009!important; }
html:root:root body .list-item .title { color:#20252d!important; font-size:16px; font-weight:700; }
html:root:root body .list-item .sub { color:#667085!important; font-size:14px; line-height:1.55; margin-top:6px; }
html:root:root body .list-item .amt { font-size:19px; letter-spacing:-.4px; font-variant-numeric:tabular-nums; }
html:root:root body .badge { text-transform:none; letter-spacing:0; font-size:12px; padding:4px 10px; font-weight:650; }
html:root:root body .qn-page-intro { margin-bottom:24px; }
html:root:root body .qn-page-intro h2,html:root:root body .qn-more-header h1 { font-size:32px; line-height:1.2; color:#20252d!important; font-weight:750; margin-bottom:8px; }
html:root:root body .qn-page-intro p { color:#667085!important; font-size:15px; }
html:root:root body .btn { min-height:48px; border-radius:12px!important; font-weight:650; line-height:1.4; transition:background .15s,box-shadow .15s; }
html:root:root body .btn-primary,html:root:root body .btn-blue { background:#e66a12!important; color:#fff!important; border:1px solid #e66a12!important; box-shadow:0 2px 4px #e66a1212!important; }
html:root:root body .btn-primary:hover,html:root:root body .btn-blue:hover { background:#c95409!important; border-color:#c95409!important; }
html:root:root body .btn-outline { color:#344054!important; border:1px solid #d7dde5!important; background:#fff!important; box-shadow:0 1px 2px #10182805!important; }
html:root:root body .btn-outline:hover { background:#f9fafb!important; border-color:#b8c1ce!important; }
html:root:root body .btn-danger { border:1px solid #f1c9c5!important; color:#b42318!important; }
html:root:root body .field label { color:#344054!important; font-weight:650; font-size:14px; margin-bottom:7px; }
html:root:root body .field input,html:root:root body .field select,html:root:root body .field textarea { background:#fff!important; color:#20252d!important; border:1px solid #d7dde5!important; border-radius:11px!important; min-height:49px; box-shadow:0 1px 2px #10182803; line-height:1.5; }
html:root:root body .field input::placeholder,html:root:root body .field textarea::placeholder { color:#8a94a4; }
html:root:root body :is(button,input,select,textarea,a,summary):focus-visible { outline:3px solid #e66a1259!important; outline-offset:3px; }
html:root:root body .field :is(input,select,textarea):focus { border-color:#dc741e!important; box-shadow:0 0 0 3px #e66a1214!important; }
html:root:root body .qn-list-toolbar { gap:12px; margin-bottom:16px; }
html:root:root body .qn-simple-filter { color:#667085; margin-bottom:22px; }
html:root:root body .qn-simple-filter select { background:#fff; border:1px solid #dce1e7; border-radius:10px; min-height:44px; color:#344054; padding:8px 12px; font:inherit; }
html:root:root body .empty { color:#667085; padding:42px 20px; font-size:15px; line-height:1.7; }
html:root:root body .qn-home-greeting { color:#20252d!important; font-size:32px; margin-bottom:26px; line-height:1.25; }
html:root:root body .qn-home-company { color:#667085!important; font-weight:450; font-size:16px; margin-top:8px; }
html:root:root body .qn-home-actions { gap:14px; margin-bottom:16px; }
html:root:root body .qn-home-actions .btn { min-height:56px; font-size:16px; }
html:root:root body .qn-find-launch { border:1px solid #dce1e7!important; background:#fff!important; border-radius:12px!important; min-height:52px; color:#667085!important; margin-bottom:26px; }
html:root:root body .qn-recent-documents > h2 { color:#20252d!important; font-size:19px; font-weight:700; }
html:root:root body .qn-home-allowance { background:#fff!important; border:1px solid #e6e9ef!important; border-radius:14px!important; color:#667085!important; padding:16px!important; }
html:root:root body .qn-home-allowance strong { color:#344054; }
html:root:root body .qn-more-business-banner { background:#fff!important; border:1px solid #e6e9ef!important; border-radius:16px!important; padding:22px!important; }
html:root:root body .qn-more-section-label { color:#7b8494!important; font-size:11px; letter-spacing:.1em; margin-top:26px; }
html:root:root body .qn-more-menu { background:#fff!important; border:1px solid #e6e9ef!important; border-radius:16px!important; overflow:hidden; }
html:root:root body .qn-more-item { min-height:80px; padding:18px 20px; }
html:root:root body .qn-more-item strong { color:#20252d!important; font-size:15px; }
html:root:root body .qn-more-item small { color:#667085!important; font-size:13px; }
html:root:root body .qn-more-item-icon { color:#c45d14!important; background:#fff1e6!important; border-radius:12px; }
html:root:root body .modal { background:#fff; border-radius:22px 22px 0 0; padding:26px 22px calc(26px + env(safe-area-inset-bottom)); }
html:root:root body .modal-back { background:#18223070; backdrop-filter:blur(3px); }
html:root:root body .modal h2 { color:#20252d!important; font-size:24px; margin-bottom:20px; }
html:root:root body #tabbar { background:#fff!important; border-top:1px solid #e6e9ef!important; box-shadow:0 -3px 18px #18223004!important; }
html:root:root body #tabbar button { color:#667085!important; font-size:12px; font-weight:550; }
html:root:root body #tabbar button.active { background:#fff1e6!important; color:#b74b08!important; font-weight:700; border-radius:12px; }
html:root:root body #qn-auth-screen { background:#f5f6f8!important; background-image:none!important; }
html:root:root body #qn-auth-screen .qn-welcome-story { color:#20252d!important; }
html:root:root body #qn-auth-screen .qn-welcome-description { color:#667085!important; }
html:root:root body #qn-auth-screen .qn-welcome-eyebrow { color:#b74b08!important; letter-spacing:.13em; }
html:root:root body #qn-auth-screen #qn-welcome-heading { letter-spacing:-2.2px; line-height:1.1; }
html:root:root body #qn-auth-screen .qn-auth-card { background:#fff!important; border:1px solid #e3e7ed!important; box-shadow:0 14px 50px #18223008!important; border-radius:24px!important; }
html:root:root body #qn-auth-screen .qn-auth-tagline { color:#667085!important; }
html:root:root body #qn-auth-screen .qn-auth-card input { border:1px solid #d7dde5!important; background:#fff!important; border-radius:12px!important; }
html:root:root body #qn-auth-screen #qn-auth-submit { background:#e66a12!important; color:#fff!important; border-radius:12px!important; }
@media(min-width:900px) {
 html:root:root body main { padding-left:36px; padding-right:36px; }
 html:root:root body #view-home { max-width:850px; margin:auto; }
 html:root:root body .modal { border-radius:22px; margin:auto; }
}
@media(max-width:899px) {
 html:root:root body main { padding:24px 16px calc(110px + env(safe-area-inset-bottom)); }
 html:root:root body .card { padding:20px; }
 html:root:root body .qn-page-intro h2,html:root:root body .qn-more-header h1,html:root:root body .qn-home-greeting { font-size:28px; }
 html:root:root body #tabbar { padding:7px 8px calc(7px + env(safe-area-inset-bottom)); gap:4px; }
 html:root:root body #tabbar button { min-height:60px; font-size:12px; gap:5px; }
 html:root:root body .list-item { padding:18px 16px; }
 html:root:root body #qn-auth-screen .qn-auth-card { border-radius:20px!important; }
}
@media(max-width:380px) {
 html:root:root body .qn-list-toolbar { grid-template-columns:1fr; }
 html:root:root body .qn-list-toolbar .btn { width:100%; }
 html:root:root body .qn-home-actions { gap:9px; }
 html:root:root body .qn-home-actions .btn { font-size:14px; padding:12px; }
}
@media(prefers-reduced-motion:reduce) { html:root:root body .btn,html:root:root body .list-item { transition:none; } }
}

/* Wider mobile layout: document details get their own full-width lines. */
@media screen and (max-width:899px) {
 html:root:root body main {padding:22px 12px calc(105px + env(safe-area-inset-bottom));width:100%;max-width:none;}
 html:root:root body .card {padding:20px 18px;border-radius:16px!important;}
 html:root:root body .qn-home-greeting {font-size:27px;line-height:1.3;margin:4px 0 22px;}
 html:root:root body .qn-home-company {font-size:18px;font-weight:500;margin-top:8px;}
 html:root:root body .qn-home-actions {display:grid;grid-template-columns:1fr;gap:10px;}
 html:root:root body .qn-home-actions .btn {width:100%;font-size:18px;min-height:56px;}
 html:root:root body .qn-find-launch {font-size:16px;text-align:left;line-height:1.4;padding:14px 16px;white-space:normal;}
 html:root:root body .qn-recent-documents > h2 {font-size:21px;margin-bottom:18px;}
 html:root:root body .qn-review-row {display:block;padding:19px 0;}
 html:root:root body .qn-review-row strong {font-size:18px;}
 html:root:root body .qn-review-row .sub {font-size:16px;line-height:1.5;margin:5px 0 12px;}
 html:root:root body .qn-review-row .right {display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;}
 html:root:root body .qn-review-row .amount {font-size:23px;white-space:nowrap;}
 html:root:root body .qn-review-row .badge {font-size:13px;white-space:nowrap;margin:0;}
 html:root:root body #dash-recent .list-item .top,html:root:root body #quote-list .list-item .top,html:root:root body #invoice-list .list-item .top {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px;}
 html:root:root body #dash-recent .list-item .top>div:last-child,html:root:root body #quote-list .list-item .top>div:last-child,html:root:root body #invoice-list .list-item .top>div:last-child {justify-self:stretch;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;}
 html:root:root body .list-item .title {font-size:18px;}
 html:root:root body .list-item .sub {font-size:16px;}
 html:root:root body .list-item .amt {font-size:23px;}
 html:root:root body .qn-list-toolbar {grid-template-columns:1fr;gap:10px;}
 html:root:root body .qn-list-toolbar .btn {width:100%;font-size:17px;}
 html:root:root body #tabbar button {font-size:13px;min-height:64px;}
}

/* Flat document lists: rows and dividers instead of separate rounded cards. */
@media screen {
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item {
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid #dce1e7!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:20px 4px!important;
  margin:0!important;
 }
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item:hover {
  background:#eef1f5!important;
  border-color:#dce1e7!important;
  box-shadow:none!important;
 }
 html:root:root body .card.qn-recent-documents {
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:10px 0!important;
 }
 html:root:root body .qn-recent-documents>h2 {margin-bottom:12px;}
 html:root:root body .qn-review-row {border-color:#dce1e7;}
}

/* A consistent type and spacing scale across the working app. */
@media screen {
 html:root:root body.qn-authenticated .qn-home-greeting {background:none!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:0!important;}
 html:root:root body.qn-authenticated .qn-home-greeting .qn-day-line,html:root:root body.qn-authenticated #qn-home-greeting-text {font-size:24px!important;line-height:1.3!important;letter-spacing:-.5px!important;}

 html:root:root body.qn-authenticated {font-size:16px;line-height:1.5;}
 html:root:root body.qn-authenticated :is(.qn-page-intro h2,.qn-page-heading h2,.qn-more-header h1,.qn-home-greeting) {font-size:24px!important;font-weight:700;line-height:1.3;letter-spacing:-.5px;margin-bottom:20px;}
 html:root:root body.qn-authenticated .qn-home-company {font-size:16px!important;font-weight:500!important;line-height:1.5;margin-top:6px;color:#667085!important;}
 html:root:root body.qn-authenticated .qn-day-icon {font-size:20px;}
 html:root:root body.qn-authenticated .card>h2,html:root:root body.qn-authenticated .qn-recent-documents>h2 {font-size:18px!important;line-height:1.4;font-weight:650;margin-bottom:16px;}
 html:root:root body.qn-authenticated :is(.qn-page-intro p,.qn-page-heading p,.qn-more-item small,.list-item .sub,.qn-review-row .sub) {font-size:14px!important;line-height:1.5;}
 html:root:root body.qn-authenticated :is(.list-item .title,.qn-review-row strong) {font-size:16px!important;line-height:1.5;font-weight:650;}
 html:root:root body.qn-authenticated :is(.list-item .amt,.qn-review-row .amount) {font-size:20px!important;line-height:1.4;font-weight:700;letter-spacing:-.3px;}
 html:root:root body.qn-authenticated .badge {font-size:12px!important;line-height:1.4;font-weight:600;padding:4px 9px!important;}
 html:root:root body.qn-authenticated :is(.btn,.qn-home-actions .btn,.qn-list-toolbar .btn) {font-size:16px!important;line-height:1.4;font-weight:600;min-height:48px!important;padding:12px 16px!important;}
 html:root:root body.qn-authenticated .btn-small {font-size:14px!important;min-height:42px!important;padding:9px 12px!important;}
 html:root:root body.qn-authenticated :is(.field label,.qn-simple-filter label,.qn-simple-filter,.qn-home-allowance,.qn-free-inline) {font-size:14px!important;line-height:1.5;}
 html:root:root body.qn-authenticated .field :is(input,select,textarea) {font-size:16px!important;line-height:1.5;min-height:48px!important;}
 html:root:root body.qn-authenticated .qn-find-launch {font-size:15px!important;line-height:1.5;min-height:48px!important;padding:12px 16px!important;margin-bottom:24px;}
 html:root:root body.qn-authenticated .qn-home-actions {gap:12px;margin-bottom:12px;}
 html:root:root body.qn-authenticated .qn-review-row {padding:18px 0!important;}
 html:root:root body.qn-authenticated .qn-review-row .sub {margin:4px 0 12px!important;}
 html:root:root body.qn-authenticated .app-header .brand>.qn-brand-copy h1 {font-size:20px!important;line-height:1.3;letter-spacing:-.5px;}
 html:root:root body.qn-authenticated .app-header .brand>.qn-brand-copy p {font-size:12px!important;line-height:1.4;}
 html:root:root body.qn-authenticated .app-header #qn-create-toggle {font-size:15px!important;font-weight:600;min-height:44px;padding:10px 14px!important;}
 @media(max-width:899px) {
  html:root:root body.qn-authenticated main {padding:24px 16px calc(104px + env(safe-area-inset-bottom));}
  html:root:root body.qn-authenticated .app-header .brand {grid-template-columns:40px minmax(0,1fr) auto!important;gap:10px!important;}
  html:root:root body.qn-authenticated .app-header .brand>.logo {width:40px!important;height:40px!important;min-width:40px!important;}
  html:root:root body.qn-authenticated .app-header .brand>.logo img {width:40px!important;height:40px!important;}
  html:root:root body.qn-authenticated .card {padding:20px!important;}
  html:root:root body.qn-authenticated .card.qn-recent-documents {padding:8px 0!important;}
  html:root:root body.qn-authenticated #tabbar button {font-size:12px!important;min-height:58px;gap:5px;}
 }
}

@media screen {
 html:root:root body .qn-document-options {border:0;border-top:1px solid #dce1e7;border-radius:0;background:transparent;box-shadow:none;margin:20px 0 0;padding:0;}
 html:root:root body .qn-document-options>summary {font-size:15px;font-weight:600;min-height:48px;padding:14px 0;cursor:pointer;color:#344054;}
 html:root:root body .qn-document-options-body {padding:8px 0 20px;}
 html:root:root body .qn-document-options-body>.btn {width:100%;margin:8px 0;}
 html:root:root body .qn-document-options-body>.qn-simple-section {margin:12px 0;}
 html:root:root body #doc-root .qn-document-first {padding-bottom:110px;}
 html:root:root body #doc-root .qn-document-first>.doc {border-radius:0;box-shadow:none;border:0;}
 html:root:root body #doc-root .qn-document-first>.qn-document-options {max-width:850px;margin:20px auto;padding:0 20px;}
 html:root:root body #doc-root .doc-actions {display:flex;gap:10px;}
 html:root:root body #doc-root .doc-actions>#doc-share {flex:1 1 auto;font-size:16px;}
 html:root:root body #doc-root .doc-actions>#doc-edit {flex:0 0 auto;width:auto;min-width:68px;font-size:16px;}
 html:root:root body #doc-root .doc-actions>.qn-doc-more {flex:0 0 78px;}
 html:root:root body #doc-root .qn-document-nav {padding:12px 16px;}
 html:root:root body #doc-root .doc-header:empty {display:none;}
 html:root:root body #modal-body .qn-simple-main-actions:empty {display:none;}
 @media(max-width:600px){
  html:root:root body #doc-root .doc-back {padding-left:0;padding-right:0;}
  html:root:root body #doc-root .doc-body {padding:20px 16px;}
  html:root:root body #doc-root .doc-title-row h2 {font-size:22px;line-height:1.3;}
  html:root:root body #doc-root .qn-document-first .doc-actions {padding-left:12px;padding-right:12px;gap:8px;}
  html:root:root body #doc-root .doc-actions .btn,html:root:root body #doc-root .qn-doc-more>summary {font-size:14px;min-height:48px;padding:12px;}
  html:root:root body #doc-root .qn-doc-more {flex-basis:70px;}
 }
}
@media screen {
 html:root:root body #doc-root .qn-document-nav {background:#fff!important;}
 html:root:root body #doc-root .doc-title-row h2:focus {outline:none;}
 html:root:root body #doc-root .doc-table tbody tr {background:transparent!important;border:0!important;border-bottom:1px solid #dce1e7!important;border-radius:0!important;box-shadow:none!important;}
 html:root:root body #doc-root .doc-table td {background:transparent!important;}
 html:root:root body #doc-root .doc-totals .totals-box {background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:12px 0!important;}
 html:root:root body #doc-root .doc-totals .row.grand {color:#20252d!important;border-top:1px solid #dce1e7!important;}
 html:root:root body #doc-root .doc-actions {display:grid!important;grid-template-columns:minmax(0,1fr) 64px 78px!important;align-items:center!important;}
 html:root:root body #doc-root .doc-actions>.btn {width:100%!important;min-width:0!important;margin:0!important;}
 html:root:root body #doc-root .doc-actions>.qn-doc-more {width:100%!important;margin:0!important;}
}
@media screen {
 html:root:root body #doc-root .doc-actions {grid-template-columns:minmax(0,1fr) 76px 90px!important;}
 html:root:root body #doc-root .doc-actions>.btn {padding:10px!important;white-space:nowrap!important;overflow-wrap:normal!important;}
 html:root:root body #doc-root .doc-actions>#doc-edit {font-size:14px!important;}
 html:root:root body #doc-root .qn-doc-more>summary {font-size:14px!important;padding:10px!important;white-space:nowrap!important;}
 html:root:root body #doc-root .doc-body>.note {background:transparent!important;border:0!important;border-radius:0!important;padding:16px 0!important;}
}

/* One scroll area for the complete document, between navigation and actions. */
@media screen {
 html:root:root body #doc-root .doc-back.qn-document-first {
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  height:100vh!important;height:100dvh!important;
  padding:0!important;overflow:hidden!important;gap:0!important;
 }
 html:root:root body #doc-root .qn-document-first>.qn-document-nav {position:relative!important;top:auto!important;grid-row:1;min-width:0;}
 html:root:root body #doc-root .qn-document-content {grid-row:2;min-width:0;min-height:0;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:20px;}
 html:root:root body #doc-root .qn-document-content>.doc {display:block!important;flex:none!important;overflow:visible!important;min-height:0!important;height:auto!important;max-height:none!important;width:100%;max-width:850px;margin:0 auto;padding-bottom:0!important;border:0!important;box-shadow:none!important;border-radius:0!important;}
 html:root:root body #doc-root .qn-document-first>.doc-actions {grid-row:3;position:relative!important;inset:auto!important;min-width:0;max-width:100%;margin:0!important;box-shadow:none!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;}
 html:root:root body #doc-root .qn-document-content>.qn-document-options {max-width:850px;margin:16px auto 0;padding:0 16px;}
 html:root:root body #doc-root .qn-business-logo-top {min-height:0!important;border:0!important;padding:12px 16px 0!important;}
 html:root:root body #doc-root .qn-business-logo-top img {width:auto!important;height:auto!important;max-width:130px!important;max-height:52px!important;object-fit:contain;}
 html:root:root body #doc-root .qn-business-logo-top:empty {display:none!important;}
 @media(max-width:700px) {
  html:root:root body #doc-root .qn-document-parties {display:flex!important;flex-direction:column!important;gap:18px!important;direction:inherit!important;margin:16px 0 24px!important;}
  html:root:root body #doc-root .qn-document-parties .doc-meta {width:100%!important;max-width:100%!important;min-width:0!important;text-align:start!important;font-size:14px!important;line-height:1.55!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;margin:0!important;}
  html:root:root body #doc-root .qn-document-business {order:0;}
  html:root:root body #doc-root .qn-document-customer {order:1;}
  html:root:root body #doc-root .qn-business-logo-top {justify-content:flex-start!important;}
  html:root:root body #doc-root .qn-document-nav {padding:10px 14px!important;gap:10px;}
  html:root:root body #doc-root .qn-document-nav span {font-size:13px;}
  html:root:root body #doc-root .qn-document-nav #doc-close {font-size:14px!important;padding:9px 12px!important;min-height:42px!important;width:auto!important;}
  html:root:root body #doc-root .doc-body {padding:16px!important;}
  html:root:root body #doc-root .doc-title-row h2 {font-size:22px!important;}
 }
}

/* Compact, readable lists and document metadata. */
@media screen {
 html:root:root body.qn-authenticated #qn-home-backdrop {display:none!important;}
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item {padding:12px 2px!important;margin:0!important;}
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item .top {display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;column-gap:12px!important;row-gap:5px!important;align-items:start!important;}
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item .top>div:first-child,
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item .top>div:last-child {display:contents!important;}
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item .title {grid-column:1;grid-row:1;font-size:16px!important;line-height:1.4!important;}
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item .amt {grid-column:2;grid-row:1;justify-self:end;font-size:18px!important;line-height:1.4!important;}
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item .top>div:first-child>.sub {grid-column:1;grid-row:2;margin:0!important;font-size:14px!important;line-height:1.4!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item .badge {grid-column:2;grid-row:2;justify-self:end;align-self:start;margin:0!important;}
 html:root:root body :is(#quote-list,#invoice-list,#dash-recent) .list-item .top>div:last-child>.sub {grid-column:2;grid-row:3;margin:0!important;justify-self:end;font-size:12px!important;line-height:1.3!important;}
 html:root:root body #doc-root .qn-document-nav {padding:7px 12px!important;}
 html:root:root body #doc-root .qn-business-logo-top {padding:8px 16px 0!important;}
 html:root:root body #doc-root .qn-business-logo-top img {max-width:110px!important;max-height:40px!important;}
 html:root:root body #doc-root .doc-body {padding-top:10px!important;}
 html:root:root body #doc-root .doc-title-row {margin-bottom:8px!important;}
 html:root:root body #doc-root .qn-document-parties {gap:10px!important;margin:8px 0 12px!important;}
 html:root:root body #doc-root .qn-document-parties .doc-meta {line-height:1.4!important;}
 html:root:root body #doc-root .doc-table {margin-top:8px!important;}
 html:root:root body #doc-root .doc-body>.note {margin:8px 0!important;padding:8px 0!important;}
 html:root:root body .qn-document-options {margin-top:12px!important;}
}


/* Restore original November 9 design; mobile viewport safety without changing app data. */
html,body{max-width:100%;overflow-x:clip}
*,*::before,*::after{box-sizing:border-box}
img,video,canvas,svg{max-width:100%}
@media screen and (max-width:767px){
  html:root:root body #doc-root,
  html:root:root body #doc-root .doc-back,
  html:root:root body #doc-root .qn-document-first{max-width:100%;min-width:0}
  html:root:root body #doc-root .doc-actions{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px!important;width:100%;max-width:100%;min-width:0;
    padding:12px 16px calc(16px + env(safe-area-inset-bottom))!important;
    box-sizing:border-box;overflow:visible
  }
  html:root:root body #doc-root .doc-actions > #doc-share{
    grid-column:1/-1;width:100%!important;min-width:0!important
  }
  html:root:root body #doc-root .doc-actions > #doc-edit{
    grid-column:2;grid-row:2;width:100%!important;min-width:0!important
  }
  html:root:root body #doc-root .doc-actions > .qn-doc-more{
    grid-column:1/-1;grid-row:3;width:100%!important;
    min-width:0!important;position:relative
  }
  html:root:root body #doc-root .doc-actions > .qn-doc-more > summary{
    width:100%;box-sizing:border-box;text-align:center
  }
  html:root:root body #doc-root .qn-doc-action-list{
    position:absolute!important;left:0!important;right:0!important;
    bottom:calc(100% + 8px)!important;top:auto!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    max-height:min(65dvh,420px);overflow-y:auto;
    box-sizing:border-box;z-index:1000
  }
  html:root:root body #doc-root .qn-doc-action-list > *{
    max-width:100%;box-sizing:border-box
  }
  #doc-root table,#doc-root .doc-table{max-width:100%}
  #doc-root input,#doc-root select,#doc-root textarea{max-width:100%;min-width:0}
  #doc-root .doc-body{max-width:100%;min-width:0}
}
@media screen and (min-width:768px) and (max-width:1024px){
  #doc-root,#doc-root .doc-body{max-width:100%;min-width:0}
  #doc-root .doc-actions{flex-wrap:wrap}
}


/* Balanced saved-document action bar: primary Send + two equal secondary actions. */
@media screen and (max-width:767px){
 html:root:root body #doc-root .doc-actions{
   display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
   gap:10px!important;align-items:stretch!important
 }
 html:root:root body #doc-root .doc-actions > #doc-share{
   grid-column:1/-1!important;grid-row:1!important;
   width:100%!important;min-width:0!important;margin:0!important
 }
 html:root:root body #doc-root .doc-actions > #doc-edit{
   grid-column:1!important;grid-row:2!important;
   width:100%!important;min-width:0!important;margin:0!important;
   justify-self:stretch!important
 }
 html:root:root body #doc-root .doc-actions > .qn-doc-more{
   grid-column:2!important;grid-row:2!important;
   width:100%!important;min-width:0!important;margin:0!important;
   justify-self:stretch!important;position:relative!important
 }
 html:root:root body #doc-root .doc-actions > .qn-doc-more > summary{
   display:flex!important;align-items:center;justify-content:center;
   width:100%!important;min-width:0!important;height:100%!important;
   min-height:48px!important;margin:0!important
 }
 html:root:root body #doc-root .qn-doc-action-list{
   left:auto!important;right:0!important;bottom:calc(100% + 8px)!important;
   width:min(320px,calc(100vw - 32px))!important;
   max-width:calc(100vw - 32px)!important
 }
}
