/* Approved minimalist header; tropical artwork remains archived for marketing. */
.tqs-brand,.brandmark{display:block!important;position:relative!important;width:280px!important;max-width:72vw!important;height:44px!important;overflow:hidden!important;flex-shrink:0}.tqs-brand img,.brandmark img{position:absolute!important;left:0!important;top:50%!important;transform:translateY(-50%)!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important}
.nav,.topbar{background:#fff!important;color:#18384b!important;min-height:76px!important;padding:14px max(4vw,20px)!important;border-bottom:1px solid #dbe5e8!important;gap:20px!important}.topbar-actions{flex-wrap:wrap;gap:10px}.topnote{display:none!important}.topbar #accountIdentity{color:#526c78}.topbar .theme-toggle{background:#f1f6f8;color:#18384b;border:1px solid #dbe5e8}.legal-links{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin:18px 0 0}.legal-links a{font-size:14px;text-decoration:underline}
#accountPage .account-profile{padding:24px;margin:22px 0;background:var(--card,#fff);border:1px solid var(--line,#dbe5e8);border-radius:16px}#profileForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}#profileForm>h2,#profileForm>p,#profileForm>.saved-actions,#profileForm>.profile-logo-area{grid-column:1/-1}#profileForm h2{margin:0}#profileForm>p{margin:0;color:var(--muted,#526c78)}#profileForm label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:700;min-width:0}#profileForm input{width:100%;min-width:0;font:inherit;padding:11px 12px;border:1px solid #bdcdd3;border-radius:8px;background:var(--card,#fff);color:var(--ink,#18384b)}.profile-logo-area{display:flex;gap:24px;align-items:center;flex-wrap:wrap;padding:18px;background:var(--soft,#f5f9fa);border-radius:12px}.profile-logo-area label{flex:1;min-width:220px!important}.profile-logo-area img{display:block;max-width:220px;max-height:88px;object-fit:contain}.profile-logo-area [hidden]{display:none!important}#accountPage .account-panel{margin-bottom:20px}#accountPage summary{cursor:pointer;font-size:18px;font-weight:750}.public-page{max-width:850px;margin:auto;padding:40px 24px 64px;line-height:1.7}.public-page h1{font-size:clamp(30px,5vw,44px);line-height:1.15}.public-page h2{font-size:22px;margin-top:30px}.public-page .updated{color:#526c78}.signup-intro{max-width:700px}.registration-frame{background:#fff;border:1px solid #dbe5e8;border-radius:16px;padding:12px;margin-top:24px}.registration-frame iframe{display:block;width:100%;height:1046px;min-height:1046px;border:0;border-radius:8px}.public-page a{color:#245a91}@media(max-width:650px){#profileForm{grid-template-columns:1fr}.nav,.topbar{padding:12px 16px!important}.tqs-brand,.brandmark{width:245px!important;height:40px!important}.public-page{padding:28px 16px}.registration-frame{padding:0}.navlinks{gap:12px!important}#accountPage .account-profile{padding:18px}}
#accountPage .account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0}#accountPage .account-panel{padding:20px;background:var(--card,#fff);border:1px solid var(--line,#dbe5e8);border-radius:14px}#accountPage .account-stat{display:flex;flex-direction:column;gap:8px;margin:0}#accountPage .account-stat strong{font-size:28px;color:var(--ink,#18384b)}#accountPage .tracking-row{display:grid;grid-template-columns:1.2fr .8fr 1fr 1fr auto;gap:14px;align-items:end;padding:18px 0;border-top:1px solid var(--line,#dbe5e8)}#accountPage label{display:flex;flex-direction:column;gap:7px;margin:12px 0}#accountPage input,#accountPage select,#accountPage textarea{font:inherit;width:100%;padding:10px;border-radius:8px;border:1px solid #bdcdd3;min-width:0;background:var(--card,#fff);color:var(--ink,#18384b)}#accountPage .template-row{padding:12px 0;border-top:1px solid var(--line,#dbe5e8)}#profileForm input{font-weight:400}.nav>.tqs-brand{flex:0 0 280px!important}@media(max-width:750px){#accountPage .tracking-row{grid-template-columns:1fr 1fr}#accountPage .tracking-row>div{grid-column:1/-1}#accountPage .account-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar-actions{flex-shrink:1}}@media(max-width:420px){#accountPage .tracking-row{grid-template-columns:1fr}}
#profileForm label{margin:0}#profileForm input{font-weight:400}

/* Theme surfaces always carry matching foregrounds. */
body{--card:#fff;--surface-ink:#18384b;--surface-muted:#526577}body.dark{--card:#183448;--surface-ink:#edf5fa;--surface-muted:#bfd0df}
#accountPage .account-panel,.profile-dialog{background:var(--card);color:var(--surface-ink)}
#accountPage h2,#accountPage label,.profile-dialog h2,.profile-dialog label{color:var(--surface-ink)}
#profileForm>p,.profile-dialog p{color:var(--surface-muted)}
input::placeholder,textarea::placeholder{color:#617386;opacity:1}body.dark input::placeholder,body.dark textarea::placeholder{color:#bfccda}
.site-footer a,.site-footer a:visited,.foot a,.foot a:visited{color:#b9d8ff;text-decoration:underline;text-underline-offset:3px}.site-footer a:hover,.foot a:hover{color:#fff}
a:focus-visible,button:focus-visible{outline:3px solid #79b7fa;outline-offset:3px}
.template-row{display:grid;gap:10px;margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:10px}.template-row label{display:grid;gap:8px}.template-row select,.template-row textarea,#quoteCommission{display:block;width:100%;box-sizing:border-box;font:inherit;padding:11px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--surface-ink)}.template-row textarea{min-height:110px;resize:vertical}#quoteCommission{max-width:360px;margin:8px 0 20px}
.profile-dialog{width:min(640px,calc(100vw - 32px));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:26px;box-sizing:border-box;box-shadow:0 24px 80px #0006}.profile-dialog::backdrop{background:#071b2ab3}#feedbackForm{display:grid;gap:16px}#feedbackForm h2,#feedbackForm p{margin:0}#feedbackForm label{display:grid;gap:7px;font-weight:700}#feedbackForm input,#feedbackForm select,#feedbackForm textarea{box-sizing:border-box;width:100%;padding:12px;font:inherit;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--surface-ink)}#feedbackForm textarea{min-height:150px;resize:vertical}#feedbackForm .btn{justify-self:start}#feedbackForm a{color:#2464a5}body.dark #feedbackForm a{color:#b9d8ff}
.customer-document{background:#fff;color:#203445;padding:24px;border-radius:12px}.customer-document h2,.customer-document p,.customer-document-header{color:#203445}.customer-document h3{background:#233f56;color:#fff;padding:14px 16px;border-radius:8px}.customer-document-row{display:grid;grid-template-columns:minmax(150px,32%) minmax(0,1fr);gap:18px;padding:14px 16px;color:#203445;background:#fff;overflow-wrap:anywhere}.customer-document-row:nth-of-type(even){background:#eff5fa}.customer-document-row .document-amount{text-align:right}.customer-document a{color:#245b96}body.dark .customer-document{background:#142b3e;color:#edf5fa}body.dark .customer-document h2,body.dark .customer-document p,body.dark .customer-document-header{color:#edf5fa}body.dark .customer-document-row{background:#183448;color:#edf5fa}body.dark .customer-document-row:nth-of-type(even){background:#224459}body.dark .customer-document a{color:#b9d8ff}
@media(max-width:600px){.customer-document-row{grid-template-columns:1fr;gap:6px}.profile-dialog{padding:20px}.template-row{padding:12px}}

/* TravelQuote Studio brand system: blue primary, teal secondary, navy text. */
:root{--tqs-blue:#465d9c;--tqs-teal:#3b7e80;--tqs-navy:#20384a;--tqs-soft:#f2f6fb;--teal:#3b7e80;--navy:#20384a;--ink:#20384a;--muted:#526b7b}
body{color:var(--tqs-navy)}
button,.btn,.visual span{font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;font-weight:400!important}
.btn{background:#3b7e80;color:#fff;border:1px solid #3b7e80;border-radius:12px}
.btn-secondary,.btn.secondary,.btn-primary{background:#465d9c;color:#fff;border-color:#465d9c}
.topbar-actions .btn{background:#465d9c!important;border-color:#465d9c!important;color:#fff!important;text-decoration:none}
.btn-danger{background:#a64242!important;border-color:#a64242!important;color:white!important}
.btn:focus-visible,button:focus-visible{outline:3px solid #465d9c;outline-offset:3px}
.cardhead,.account-panel>h2{background:#eaf0f9;color:#20384a}
.cardhead h2,.cardhead p{color:#20384a}
.saved-item{background:#f2f6fb;border-color:#d6e0ef}
.status-pending{background:#fff2cf;color:#75520b}.status-ready{background:#dff3eb;color:#17573f}
.site-footer,.foot,footer{background:#20384a;color:#fff}.site-footer a,.foot a,footer a{color:#bfe8ec}
#feedbackDialog h2,#profileForm h2{color:#20384a}
.number,.visual span{background:#465d9c}.visual{background:#f2f6fb}
button:disabled{opacity:.5;cursor:default}

.saved-actions .btn:not(.btn-primary):not(.btn-danger),#advisorCloudRefresh{background:#3b7e80;color:#fff;border-color:#3b7e80}

.topbar #accountIdentity{display:inline-flex;align-items:center;white-space:nowrap;padding:6px 10px;border-radius:999px;background:#e2f2ed;color:#23624f;font-size:12px}
/* Minimum separation for all shared action groups, including wrapped rows. */
.saved-actions,.source-card-actions,.component-add-actions,.field-actions,.paste-controls,.review-actions,.topbar-actions,.quote-page-actions,.booking-arrows,.navlinks{gap:12px!important}.btn+.btn{margin-left:12px}.saved-actions>.btn,.review-actions>.btn,.component-add-actions>.btn,.quote-page-actions>.btn,.review-footer>.btn,.navlinks>.btn{margin-left:0}
/* Shared TravelQuote Studio form and surface definition. */
:root{--tqs-field-bg:#eef4f8;--tqs-field-border:#8ca8b7;--tqs-surface-border:#92bf90;--tqs-focus:#3f777b}
@media screen{
body input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=button]):not([type=submit]):not([type=range]):not([type=color]),body textarea,body select{box-sizing:border-box;background-color:var(--tqs-field-bg)!important;border:1px solid var(--tqs-field-border)!important;border-radius:9px;color:#253e50;padding:11px 12px;font:inherit;min-height:44px;max-width:100%}
body input::placeholder,body textarea::placeholder{color:#60778a;opacity:1}
body input:focus-visible,body textarea:focus-visible,body select:focus-visible{outline:3px solid var(--tqs-focus);outline-offset:2px;border-color:var(--tqs-focus)!important}
body input:disabled,body textarea:disabled,body select:disabled{background-color:#e4e9ed!important;color:#657782;cursor:not-allowed}
body input[readonly],body textarea[readonly]{background-color:#e5eeef!important}
body :is(.card,.account-panel,.component-nav,.component-editor,.saved-item,.library-row,.template-row,.profile-dialog,.tqs-notice,.extraction-complete-dialog,.step,.future-copy,.trial-cta,.faq details,.word-story article){border:2px solid var(--tqs-surface-border);border-radius:16px}
body :is(.profile-dialog,.tqs-notice,.extraction-complete-dialog){box-shadow:0 16px 54px #203d4b2b}
body .source-input-option{border-color:var(--tqs-surface-border);border-top-width:5px}
}
.template-manager{border-top:1px solid #c8dacf;margin-top:20px;padding-top:16px}.template-manager>.saved-actions{margin:16px 0}.saved-template-item{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:14px;margin:12px 0;border:1px solid #92bf90;border-radius:12px;background:#f2f7f5}.saved-template-item small{display:block;margin-top:4px;color:#607487}.template-edit-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 32px));padding:24px;max-height:calc(100dvh - 40px);overflow:auto}.template-edit-dialog label{display:grid;gap:8px;margin:16px 0}.template-edit-dialog :is(input,textarea){width:100%}.template-edit-dialog .saved-actions{margin-top:20px;justify-content:flex-end}

/* Shared typography and compact preview layout. */
@media screen {
 body{font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5}
 h1{font-size:28px;line-height:1.2;margin:0 0 16px}
 h2{font-size:22px;line-height:1.3;margin:0 0 12px;font-weight:600}
 h3{font-size:18px;line-height:1.35;margin:0 0 10px;font-weight:600}
 p{font-size:16px;margin:0 0 12px}
 label,.field-label{font-size:14px;font-weight:600}
 button,.btn,input,select,textarea{font-size:16px!important}
 small,.saved-note,.breadcrumb,.badge{font-size:14px}
 .btn,.btn:hover,.btn:focus{ text-decoration:none!important }
 #advisorCloudRefresh{margin-bottom:16px}
 .customer-document-header{display:flex;align-items:flex-start;gap:24px;padding-bottom:14px;margin-bottom:20px}
 .customer-document-header>img{max-width:220px;max-height:90px;object-fit:contain}
 .customer-document-header h2{font-size:24px;margin:0 0 4px}
 .customer-document-header p{margin:0 0 3px;line-height:1.3}
 .customer-document-header a{display:block;margin-top:3px}
 .quote-document-footer{display:flex;justify-content:center;align-items:center;gap:20px;flex-wrap:wrap;text-align:center;border-top:1px solid #d8e4e8;padding:14px 0;margin-top:20px}
 .document-brand-footer{width:auto;height:auto;font-size:14px}
 .quote-document-footer small{font-size:12px}
 #quotePreview{scroll-margin-top:16px}
 .advisor-review-notice{margin:16px 0 12px}
 .address-book form label{display:block;margin-bottom:12px}
 .address-book .saved-actions{display:flex;gap:12px;flex-wrap:wrap}
 .source-section #sourceTitle{font-size:18px}
 #sourceTitle{display:none}
}

@media screen{body :is(h1){font-size:28px!important;line-height:1.2!important}body :is(h2){font-size:22px!important;line-height:1.3!important}body :is(h3){font-size:18px!important;line-height:1.35!important}body :is(p){font-size:16px}body :is(label,.field-label){font-size:14px!important}body :is(.breadcrumb,.saved-note,small){font-size:14px}.customer-document-header h2{font-size:24px!important}.tqs-brand,.brandmark{height:64px!important;width:300px!important}.quote-document-footer .document-brand-footer{display:inline-block!important;max-width:none!important}.quote-document-footer small{font-size:12px!important}}

/* Keep the nested logo wrapper within its responsive header link. */
.nav>.tqs-brand,.topbar>.brand{flex:0 1 300px!important;width:300px!important;max-width:100%!important;min-width:0!important;overflow:visible!important}
.tqs-brand,.brandmark{box-sizing:border-box!important;overflow:visible!important}
.tqs-brand>.brandmark,.brand>.brandmark{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:1000/213}
.tqs-brand img,.brandmark img{position:static!important;display:block!important;transform:none!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important}
@media(max-width:650px){.nav>.tqs-brand,.topbar>.brand{flex-basis:245px!important;width:245px!important}.tqs-brand{width:245px!important;height:auto!important}.brandmark{height:auto!important}}
