/* The product-page design, adapted to a working travel desk. */
:root {
  --primary: #29262a; --primary-hover: #423d42; --primary-light: #f3efeb;
  --bg-main: #f5f3f0; --text-main: #29262a; --text-muted: #716b70;
  --text-subtle: #8b8286; --border-color: #ded8d5; --border-subtle: #ebe6e2;
  --border-focus: #bc4431; --radius-xs: 5px; --radius-sm: 7px; --radius-md: 12px; --radius-lg: 16px;
  --font-base: 'IBM Plex Sans', sans-serif; --font-display: 'IBM Plex Sans', sans-serif;
  --accent: #c64532; --font-mono: 'IBM Plex Mono', monospace; --card-shadow: 0 6px 24px #29262a05;
}
body { font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid #a13b2d; outline-offset: 3px; }
.app-header { height: auto; min-height: 82px; padding: 18px max(28px, calc((100vw - 1400px) / 2)); background: var(--bg-main); position: relative; gap: 20px; }
.brand-logo { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; }
.brand-logo svg { width: 21px; height: 21px; }
.brand-titles { display: block; }
.brand-titles h1 { font: 600 18px/1.3 var(--font-display); letter-spacing: -.6px; color: var(--primary); }
.brand-titles p { font-size: 11px; margin-top: 3px; }
.header-actions { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.lang-switch-group { height: 34px; border: 0; background: #f3efeb; padding: 3px; gap: 1px; }
.lang-btn { height: 28px; min-width: 31px; border-radius: 5px; color: var(--text-muted); }
.lang-btn.active { background: var(--primary); color: #fff; box-shadow: none; }
.btn-primary, .btn-secondary, .btn-outline, .btn-whatsapp { min-height: 36px; height: auto; border-radius: 7px; padding: 8px 13px; font-size: 12px; font-weight: 600; gap: 7px; }
.btn-primary, .auth-submit-btn { background: var(--primary); color: white; box-shadow: none; border-color: var(--primary); }
.btn-primary:hover, .auth-submit-btn:hover { background: var(--primary-hover); }
.btn-outline, .btn-secondary { background: transparent; border-color: var(--border-color); color: var(--primary); }
.btn-outline:hover, .btn-secondary:hover { background: #f3efeb; border-color: #ded7d2; }
.btn-whatsapp { background: #f8e9e2; color: #a13b2d; border-color: #ded7d2; }
.btn-whatsapp:hover { background: #f8e9e2; color: #a13b2d; }
.workspace-intro { max-width: 1400px; margin: 0 auto; padding: 28px 28px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.workspace-eyebrow { font-size: 10px; letter-spacing: 2px; font-weight: 700; color: #a13b2d; margin-bottom: 11px; }
.workspace-intro h2 { font: 400 34px/1.15 Georgia, serif; letter-spacing: -1px; }
.title-accent { color: #a13b2d; }
.workspace-description { color: var(--text-muted); font-size: 13px; margin-top: 11px; }
.extension-promo { display: flex; align-items: center; gap: 14px; max-width: 640px; padding: 15px 18px; border: 1px solid #dfd0c5; border-radius: 12px; background: #f4eae1; }
.extension-promo-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; color: #a13b2d; background: #fffaf5; border-radius: 50%; font-size: 22px; }
.extension-promo-copy { min-width: 0; }
.extension-promo h3 { font-size: 14px; font-weight: 600; margin: 0 0 3px; }
.extension-promo p { font-size: 12px; margin: 0; color: #5b5058; }
.extension-promo .extension-promo-note { font-size: 10px; margin-top: 5px; }
.extension-promo-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 6px; }
.extension-promo-actions .btn-primary { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.extension-promo-guide { font-size: 10px; color: #5b5058; text-underline-offset: 3px; }
@media (max-width: 1150px) { .workspace-intro { align-items: flex-start; flex-direction: column; gap: 18px; } .extension-promo { max-width: none; width: 100%; } }
@media (max-width: 520px) { .extension-promo { flex-wrap: wrap; padding: 13px; gap: 10px; } .extension-promo-icon { display: none; } .extension-promo-actions { flex-direction: row; gap: 14px; } }
.workspace-workflow { display: flex; gap: 14px; align-items: center; padding-bottom: 4px; color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.workspace-workflow > span { display: flex; align-items: center; gap: 6px; }
.workspace-workflow b { font: 500 10px var(--font-display); border: 1px solid #ded7d2; padding: 5px; border-radius: 50%; color: #a13b2d; }
.workspace-workflow i { color: #a5959a; font-style: normal; }
.main-layout { max-width: 1400px; margin: 0 auto; padding: 0 28px; grid-template-columns: 355px minmax(0, 1fr); gap: 25px; align-items: start; }
.panel { min-width: 0; overflow: hidden; }
.panel-input-side { border-color: #ded7d2; }
.panel-header { padding: 19px 20px; background: #fff; gap: 10px; }
.panel-header h2 { font: 500 16px var(--font-display); color: var(--primary); }
.panel-header .btn-sm { font-size: 10px; padding: 6px 8px; min-height: 29px; }
.panel-body { padding: 20px; gap: 16px; }
.form-group { gap: 7px; }
.form-group label { color: #5b5058; font-size: 11px; font-weight: 600; gap: 8px; flex-wrap: wrap; }
.input-hint { font-size: 10px; font-weight: 400; }
.pnr-textarea { scrollbar-color: #a5959a #2e292e; }
textarea.pnr-textarea { background: #2e292e; color: #eee5df; min-height: 153px; line-height: 1.9; font-size: 11px; padding: 16px; border-color: #2e292e; border-radius: 8px; }
textarea.pnr-textarea::placeholder { color: #baa9b0; }
.pnr-privacy-note { font-size: 10px; line-height: 1.5; color: var(--text-muted); }
input[type='text'], input[type='number'], select { color: var(--primary); border-color: #ded7d2; border-radius: 7px; min-height: 37px; font-size: 12px; background: #fff; }
input:focus, select:focus, textarea:focus, .modal-body input:focus, .profile-textarea:focus, .input-currency-group:focus-within { border-color: #bc4431; box-shadow: 0 0 0 3px #bc443126; }
.input-currency-group { border-color: #ded7d2; border-radius: 7px; }
.input-currency-group input, .input-currency-group select { height: 37px !important; }
.input-currency-group select { background: #f3efeb !important; color: var(--primary) !important; border-left-color: var(--border-color) !important; }
.commission-type-toggle { background: #f3efeb; border-color: var(--border-color); }
.commission-input-row input { height: 37px; border-color: #ded7d2; }
.commission-header { margin-bottom: 7px; }
.comm-type-btn { color: var(--text-muted); padding: 4px 10px; }
.comm-type-btn.active { background: #f8e9e2; color: var(--primary); box-shadow: none; }
.price-client-preview, .inline-calc-preview { background: #f8e9e2; border-color: #ded7d2; color: #a13b2d; }
#btn-add-option { min-height: 45px; background: var(--accent); color: #fff; border-color: #c64532; font-size: 13px; margin-top: 1px; }
#btn-add-option:hover { background: #a63224; }
.panel-output-side { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.tabs-nav { background: transparent; height: 49px; padding: 0; gap: 25px; border-bottom-color: #ded7d2; margin-bottom: 19px; }
.tab-btn { height: 49px; padding: 0 0 14px; font-size: 12px; }
.tab-btn.active { border-bottom: 2px solid #a13b2d; color: var(--primary); }
.tab-content { padding: 0; min-width: 0; }
.itinerary-cards-container { gap: 12px; }
.option-accordion-item { border: 1px solid #ded7d2; border-radius: 12px; box-shadow: 0 8px 30px #29262a05; overflow: hidden; background: white; }
.option-accordion-header, .option-accordion-item.is-open .option-accordion-header { background: #fff; padding: 12px 16px; gap: 8px; flex-wrap: wrap; border-bottom-color: #ded7d2; }
.option-accordion-header:hover { background: #fcfaf8; }
.header-left { gap: 12px; flex-basis: 280px; }
.header-right { flex-wrap: wrap; gap: 7px; }
.option-number-badge { background: #f8e9e2; color: #a13b2d; border: 0; padding: 6px 8px; font-size: 9px; letter-spacing: .6px; }
.summary-route { font: 500 15px/1.4 var(--font-display); gap: 9px; flex-wrap: wrap; }
.summary-route strong { white-space: normal; font-weight: 500; }
.summary-trip-tag { background: #f3efeb; border-color: #ded7d2; color: #a13b2d; font: 500 9px var(--font-base); padding: 4px 6px; }
.summary-meta { font-size: 10px; color: var(--text-muted); margin-top: 4px; white-space: normal; }
.summary-price-pill { background: var(--primary); color: white; border: 0; font: 500 17px var(--font-display); padding: 5px 10px; }
.summary-luggage-pill { background: transparent; color: var(--text-muted); border: 0; font-size: 10px; }
.header-right .btn-copy-single, .header-right .btn-delete-offer { width: 29px; height: 29px; min-height: 29px; border-color: var(--border-color); }
.option-accordion-item.is-open .option-accordion-body { padding: 12px 16px; gap: 12px; }
.journey-group { background: white; border: 0; border-radius: 0; }
.journey-group-header { background: transparent; padding: 0 0 8px; border-bottom: 1px dashed #ded7d2; gap: 8px; flex-wrap: wrap; }
.journey-title { gap: 9px; flex-wrap: wrap; }
.journey-title h3 { color: #a13b2d; font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }
.journey-date-pill { background: #f3efeb; border: 0; color: #a13b2d; padding: 4px 8px; font-size: 10px; }
.journey-vector-icon { color: #a13b2d; }
.journey-duration { font-size: 10px; color: var(--text-muted); }
.flight-card { padding: 10px 2px; background: white; }
.flight-card-top { margin-bottom: 9px; gap: 8px; }
.airline-code-badge { background: #f3efeb; border-color: #ded7d2; color: #a13b2d; border-radius: 5px; display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; font: 600 11px var(--font-display); }
.airline-name { font-size: 12px; color: var(--primary); font-weight: 500; }
.flight-meta { font-size: 10px; color: var(--text-muted); }
.flight-equip { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.equip-badge, .duration-badge { background: #f3efeb; border-color: #ded7d2; color: var(--text-muted); font-size: 10px; }
.time-val { font: 500 22px/1.1 var(--font-mono); letter-spacing: -.8px; color: var(--primary); }
.airport-code { font: 500 11px var(--font-mono); color: #5b5058; margin-top: 3px; }
.city-name { font-size: 10px; color: var(--text-muted); max-width: 185px; white-space: normal; line-height: 1.5; }
.flight-timeline-row { grid-template-columns: minmax(80px, 1fr) minmax(45px, .8fr) minmax(80px, 1fr); margin: 0; }
.time-col { min-width: 0; max-width: none; }
.timeline-visual { margin: 0 16px; }
.line-path { background: transparent; border-top: 1px dashed #a5959a; }
.line-dot { background: #f3efeb; border-color: #a5959a; }
.flight-vector-marker { color: #a13b2d; background: white; padding: 0 9px; }
.nonstop-label { font-size: 9px; color: var(--text-muted); }
.layover-card { margin: 0; padding: 5px 10px; border-radius: 5px; background: #f3efeb; border-color: #ded7d2; color: #a13b2d; }
.layover-info strong { font-weight: 500; font-size: 10px; }
.option-inline-edit-card { background: #f3efeb; border-color: #ded7d2; padding: 10px 12px; border-radius: 7px; }
.inline-edit-header { gap: 8px; align-items: center; flex-direction: row; flex-wrap: wrap; margin-bottom: 0; cursor: pointer; }
.inline-edit-header::after { content: '+'; margin-left: auto; font-size: 16px; color: #a13b2d; }
.option-inline-edit-card[open] > .inline-edit-header { margin-bottom: 12px; }
.option-inline-edit-card[open] > .inline-edit-header::after { content: '−'; }
.inline-edit-title { color: #5b5058; font-size: 11px; }
.inline-edit-hint { display: none; font-size: 10px; color: var(--text-muted); }
.option-inline-edit-card[open] .inline-edit-hint { display: inline; }
.inline-edit-grid { gap: 12px; }
.inline-edit-grid input[type='text'] { height: 37px; padding: 8px 10px; border-color: #ded7d2; }
.copy-box { min-height: 480px; padding: 24px; background: #fff; border-color: var(--border-color); font-size: 12px; line-height: 1.9; border-radius: 12px; color: var(--primary); }
.text-tab-actions { gap: 15px; flex-wrap: wrap; margin-bottom: 17px; }
.empty-state { padding: 100px 25px; border: 1px dashed #ded7d2; border-radius: 12px; background: #ffffff60; }
.empty-state-icon { color: #a5959a; margin-bottom: 19px; }
.empty-state h3 { font: 500 22px var(--font-display); color: var(--primary); }
.empty-state p { margin-top: 12px; max-width: 380px; margin-inline: auto; line-height: 1.8; }
.workspace-footer { max-width: 1344px; margin: 45px auto 0; padding: 20px 0; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--border-color); font-size: 10px; color: var(--text-muted); }
.workspace-footer > span:first-child { font-family: var(--font-display); font-weight: 500; color: #5b5058; }
.modal-overlay { background: #29262a80; backdrop-filter: blur(7px); overflow-y: auto; }
.modal-card { border-color: #ded7d2; box-shadow: 0 30px 90px #29262a30; max-height: calc(100dvh - 40px); overflow-y: auto; }
.auth-card { position: relative; }
.auth-close { position: absolute; top: 12px; right: 12px; font-size: 20px; }
.auth-brand { padding-right: 15px; }
.modal-header { background: #f3efeb; border-bottom-color: #ded7d2; padding: 24px; }
.modal-header h3, .auth-brand h3 { font: 500 21px var(--font-display); color: var(--primary); letter-spacing: -.6px; }
.modal-subtext, .auth-brand p { color: var(--text-muted); line-height: 1.6; font-size: 12px; }
.auth-tabs { background: #f3efeb; border-color: #ded7d2; }
.auth-tab-btn.active { color: var(--primary); background: #fff; }
.auth-trial-tag, .plan-badge-save { background: #f8e9e2; border-color: #ded7d2; color: #a13b2d; }
.gumroad-plan-item.plan-yearly { background: #f8e9e2; border-color: #ded7d2; box-shadow: none; }
.billing-note { font-size: 11px; line-height: 1.7; color: var(--text-muted); margin-bottom: 17px; }
.user-dropdown-trigger { background: transparent; height: 34px; border-color: var(--border-color); }
.subscription-pill { height: 31px; }
.btn-close-modal { background: #f3efeb; border-color: #ded7d2; color: var(--primary); }
.toast-notification { background: var(--primary); border: 1px solid #5b5058; padding: 12px 18px; font-size: 12px; }
.print-offer-details { display: none; }
@media (max-width: 1150px) {
  .brand-titles p, .workspace-workflow { display: none; }
  .main-layout { grid-template-columns: 325px minmax(0, 1fr); gap: 20px; }
  .workspace-intro h2 { max-width: 700px; }
  .summary-luggage-pill { display: none; }
  .workspace-footer { margin-inline: 28px; }
}
@media (max-width: 860px) {
  .app-header { padding: 18px 22px; flex-wrap: wrap; gap: 15px; }
  .header-actions { justify-content: flex-start; }
  .workspace-intro { padding: 30px 22px 25px; }
  .main-layout { grid-template-columns: 1fr; padding: 0 22px; gap: 28px; }
  .panel-body { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
  .panel-body > .form-group:first-child, .panel-body > .form-group:nth-last-child(2), #btn-add-option { grid-column: 1 / -1; }
  #custom-luggage-group:has(input[style*='none']) { display: none; }
  .workspace-footer { margin-inline: 22px; }
}
@media (max-width: 520px) {
  .app-header { padding: 18px; }
  .brand-titles h1 { font-size: 18px; }
  .header-actions { width: 100%; gap: 7px; }
  .header-actions .btn-sm { font-size: 10px; padding: 7px 9px; }
  .lang-btn { min-width: 28px; }
  .workspace-intro { padding: 28px 18px 23px; }
  .workspace-intro h2 { font-size: 31px; letter-spacing: -1.4px; }
  .title-accent { display: block; margin-top: 4px; }
  .workspace-description { font-size: 12px; max-width: 300px; line-height: 1.8; }
  .main-layout { padding: 0 14px; }
  .panel-header, .panel-body { padding: 17px; }
  .panel-body { display: flex; }
  .panel-header h2 { font-size: 15px; }
  .tabs-nav { gap: 19px; justify-content: space-between; }
  .tab-btn { font-size: 11px; }
  .option-accordion-header, .option-accordion-item.is-open .option-accordion-header { padding: 12px; }
  .option-accordion-item.is-open .option-accordion-body { padding: 12px; }
  .header-right { margin-left: 0; width: 100%; }
  .header-right .btn-copy-single { margin-left: auto; }
  .flight-card-top { flex-wrap: wrap; margin-bottom: 9px; }
  .flight-equip { justify-content: flex-start; }
  .time-val { font-size: 23px; }
  .time-col { min-width: 80px; }
  .timeline-visual { margin: 0 7px; }
  .city-name { font-size: 9px; }
  .journey-group-header { gap: 7px; }
  .inline-edit-grid { grid-template-columns: 1fr; }
  .workspace-footer { flex-direction: column; margin-inline: 18px; gap: 6px; }
  .modal-overlay { padding: 12px; }
  .modal-card { max-height: calc(100dvh - 24px); }
  .modal-header, .modal-body { padding: 20px; }
  .auth-tabs { margin-inline: 20px; }
  .auth-tab-btn { flex-wrap: wrap; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .print-offer-details { display: block; border-top: 1px solid #ded8d5; padding-top: 12px; white-space: pre-wrap; }
  .print-offer-details p { margin: 4px 0; }
  .print-agency-signature { font-weight: 600; padding-top: 8px; }
  .workspace-intro, .workspace-footer, .pnr-privacy-note, .accordion-global-toolbar, .header-right button, .chevron-toggle, .modal-overlay, .toast-notification { display: none !important; }
  .option-accordion-item.is-closed .option-accordion-body { display: flex !important; flex-direction: column; padding: 20px; }
  .option-accordion-item { box-shadow: none; margin-bottom: 20px; }
  .flight-card, .journey-group-header, .layover-card { break-inside: avoid; }
  .summary-luggage-pill { display: inline-flex; }
  .summary-price-pill { background: white; color: #29262a; border: 1px solid #ded8d5; }
}
/* Billing shares the compact workspace rhythm. */
[hidden] { display: none !important; }
.billing-management { border: 1px solid var(--border-color); border-radius: 10px; padding: 18px; margin: 16px 0; background: #f5f3f0; }
.billing-management > p:first-child { margin: 0 0 14px; font-weight: 600; }
.billing-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.license-activation-box > .btn-primary { margin-bottom: 8px; }
.extension-install-link { text-decoration: none; white-space: nowrap; }
#btn-add-option[aria-busy="true"] { cursor: progress; opacity: .75; }
.extension-import-status { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 28px 20px; padding: 14px 18px; border: 1px solid #d8d2cc; border-left: 3px solid #c64532; border-radius: 8px; background: #fffdf9; }
.extension-import-status p { flex: 1; min-width: 220px; margin: 0; font-size: 13px; }
@media(max-width:680px){.extension-install-link{order:3}.extension-import-status{margin-inline:18px}}
@media print{.extension-install-link,.extension-import-status{display:none!important}}
