:root {
  --ink: #152b26;
  --ink-soft: #52645e;
  --green: #123a30;
  --green-deep: #082b25;
  --green-mid: #246454;
  --lime: #c8e975;
  --lime-soft: #eaf4d4;
  --sand: #f4f0e7;
  --paper: #ffffff;
  --canvas: #f5f7f4;
  --line: #e4e9e4;
  --line-dark: #d5ddd6;
  --orange: #db8c4e;
  --blue: #dce9ec;
  --red: #b85c4b;
  --shadow: 0 14px 44px rgba(14, 43, 35, .07);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--green-mid); }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 8px; color: #82918a; font-size: 10px; font-weight: 800; letter-spacing: .15em; line-height: 1.4; }
.muted { color: var(--ink-soft); line-height: 1.65; }
.field-hint { margin: -2px 0 4px; color: #79857f; font-size: 12px; line-height: 1.55; }
.field-hint code { color: #445850; }

/* Authentication */
.auth-page { min-height: 100vh; background: #eff3ed; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, .95fr) 1.05fr; }
.auth-brand { position: relative; overflow: hidden; display: flex; min-height: 100vh; flex-direction: column; padding: 42px 7.1vw 32px; color: #fff; background: var(--green-deep); }
.brand-lockup { display: flex; align-items: center; gap: 12px; color: #f2f5ed; font-size: 11px; font-weight: 700; letter-spacing: .17em; line-height: 1.35; }
.brand-lockup b { color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .21em; }
.brand-ball { position: relative; display: inline-block; width: 31px; height: 31px; border-radius: 50%; background: var(--lime); box-shadow: inset -4px -3px 0 rgba(38, 71, 41, .16); }
.brand-ball::before, .brand-ball::after { position: absolute; content: ""; width: 17px; height: 27px; top: 2px; border: 1px solid rgba(17, 58, 42, .68); border-radius: 50%; }
.brand-ball::before { left: -3px; border-right-color: transparent; transform: rotate(27deg); }
.brand-ball::after { right: -3px; border-left-color: transparent; transform: rotate(27deg); }
.auth-brand-copy { z-index: 1; max-width: 490px; margin: auto 0 2vh; }
.auth-brand-copy .eyebrow { color: #b6cf90; }
.auth-brand-copy h1 { max-width: 510px; margin: 14px 0 22px; font-size: clamp(38px, 5vw, 68px); font-weight: 540; letter-spacing: -.055em; line-height: .99; }
.auth-brand-copy p:not(.eyebrow) { max-width: 385px; color: #c5d1c8; font-size: 16px; line-height: 1.6; }
.auth-court { position: absolute; right: -95px; bottom: 60px; width: min(44vw, 470px); height: min(54vw, 540px); border: 1px solid rgba(216, 241, 199, .28); border-radius: 45%; transform: rotate(-30deg); }
.auth-court::before, .auth-court::after { position: absolute; content: ""; inset: 38px 64px; border: 1px solid rgba(216, 241, 199, .24); border-radius: 46%; }
.auth-court::after { inset: 52% -10px auto -10px; border-width: 1px 0 0; border-radius: 0; }
.court-ball { position: absolute; top: 27%; left: 16%; width: 22px; height: 22px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 45px 8px rgba(200, 233, 117, .22); }
.auth-private { z-index: 1; display: flex; align-items: center; gap: 8px; margin: 52px 0 0; color: #a5b4a9; font-size: 11px; letter-spacing: .02em; }
.lock-mark { color: var(--lime); font-size: 14px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px; background: linear-gradient(145deg, #f8faf7, #eef3ed); }
.auth-card { width: min(100%, 430px); padding: 12px 0; }
.auth-card h2 { margin: 0 0 12px; font-size: 29px; font-weight: 650; letter-spacing: -.035em; }
.auth-card > .auth-view > .muted { margin: 0 0 28px; font-size: 14px; }
.auth-card .eyebrow { margin-bottom: 10px; color: #6f8c76; }
.form-stack { display: flex; flex-direction: column; gap: 10px; }
.form-stack label, .template-form label, .modal-content label, .password-form label { margin-top: 6px; color: #506058; font-size: 12px; font-weight: 700; }
.form-stack input, .template-form input, .template-form textarea, .modal-content input, .modal-content textarea, .modal-content select, .password-form input, .search-input {
  width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink); border: 1px solid #dce4dc; border-radius: 9px; outline: none; background: #fff; transition: border-color .16s, box-shadow .16s;
}
.form-stack input.secret-entry { -webkit-text-security: disc; }
.form-stack input:focus, .template-form input:focus, .template-form textarea:focus, .modal-content input:focus, .modal-content textarea:focus, .modal-content select:focus, .password-form input:focus, .search-input:focus { border-color: #82a27d; box-shadow: 0 0 0 3px rgba(105, 153, 107, .13); }
.form-stack .button { margin-top: 8px; }
.auth-help { margin: 20px 0 0; font-size: 13px; }
.auth-help a, .back-link { color: #426b55; font-weight: 700; text-decoration: none; }
.auth-help a:hover, .back-link:hover { text-decoration: underline; }
.back-link { display: inline-block; margin: 0 0 28px; font-size: 12px; }
.auth-footer { position: absolute; right: 40px; bottom: 22px; color: #9aa79e; font-size: 11px; }
.auth-footer span { margin: 0 5px; color: #bcc5bd; }
.brand-mobile { display: none; }
.notice { padding: 14px 17px; border: 1px solid #e9d3ad; border-radius: 10px; color: #715a31; background: #fff9ed; font-size: 13px; line-height: 1.55; }
.auth-card .notice { margin-top: 18px; }
.form-message { min-height: 20px; margin: 12px 0 0; color: #3d704b; font-size: 13px; line-height: 1.5; }
.form-message.error { color: var(--red); }

/* App shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; display: flex; width: 248px; flex-direction: column; padding: 25px 16px 17px; color: #eaf0e8; background: var(--green-deep); }
.sidebar-brand { padding: 0 11px 22px; text-decoration: none; }
.sidebar .brand-ball { width: 29px; height: 29px; }
.trip-chip { display: flex; align-items: center; gap: 10px; margin: 0 4px 22px; padding: 12px 12px; border: 1px solid rgba(208, 232, 185, .15); border-radius: 10px; color: #aebdb0; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.trip-chip b { color: #eff5eb; font-size: 11px; letter-spacing: .09em; }
.trip-chip-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,233,117,.11); }
.main-nav { display: flex; flex: 1; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-label { margin: 0; padding: 6px 12px 4px; color: #7e9687; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.nav-spaced { margin-top: 16px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 9px 11px; border: 0; border-radius: 8px; color: #c1cec2; background: transparent; text-align: left; font-size: 12px; font-weight: 570; transition: background .15s, color .15s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #f7fbf3; background: rgba(200,233,117,.14); box-shadow: inset 2px 0 0 var(--lime); }
.nav-icon { width: 18px; color: #a9c2ac; font-size: 17px; line-height: 1; text-align: center; }
.nav-item.active .nav-icon { color: var(--lime); }
.nav-count { min-width: 20px; margin-left: auto; padding: 2px 6px; border-radius: 10px; color: var(--green-deep); background: var(--lime); text-align: center; font-size: 10px; font-weight: 800; }
.sidebar-bottom { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-note { display: flex; gap: 9px; padding: 9px 10px 14px; color: #97aa9c; font-size: 10px; line-height: 1.55; }
.sidebar-note b { color: #d5e3d5; font-weight: 600; }
.note-icon { font-size: 13px; }
.nav-logout { color: #98a99d; }
.main-area { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; z-index: 8; top: 0; display: flex; height: 66px; align-items: center; justify-content: space-between; padding: 0 36px; border-bottom: 1px solid #e8ece7; background: rgba(255,255,255,.93); backdrop-filter: blur(12px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #839089; font-size: 11px; }
.breadcrumb b { color: #30443b; font-weight: 700; }
.crumb-separator { color: #c3cbc4; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.local-status { display: flex; align-items: center; gap: 7px; color: #6c8174; font-size: 10px; font-weight: 650; }
.local-status i { width: 7px; height: 7px; border-radius: 50%; background: #68a579; box-shadow: 0 0 0 3px #e5f1e7; }
.user-badge { display: flex; max-width: 200px; min-height: 31px; align-items: center; overflow: hidden; padding: 0 11px; border: 1px solid #e5eae4; border-radius: 20px; color: #405449; background: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mobile-menu { display: none; border: 0; color: var(--green); background: transparent; font-size: 22px; }
.content-wrap { max-width: 1500px; margin: 0 auto; padding: 34px 36px 22px; }
.view { display: none; animation: fade-in .2s ease-out; }
.view.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.welcome-row, .page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.welcome-row h1, .page-heading-row h1 { margin: 0; font-size: clamp(28px, 3vw, 39px); font-weight: 650; letter-spacing: -.05em; line-height: 1.1; }
.title-year { color: #aab6a8; font-weight: 450; }
.page-lede { margin: 10px 0 0; color: #75837b; font-size: 13px; line-height: 1.55; }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-size: 11px; font-weight: 750; letter-spacing: .005em; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #173827; background: var(--lime); box-shadow: 0 5px 15px rgba(149,186,82,.15); }
.button-primary:hover { background: #d4ee8f; box-shadow: 0 8px 18px rgba(149,186,82,.22); }
.button-secondary { border-color: #dce5dc; color: #355c49; background: #fff; }
.button-secondary:hover { background: #f6faf4; }
.button-quiet { border-color: #e4e9e4; color: #4b6355; background: #f8faf7; }
.button-small { min-height: 32px; padding: 0 10px; font-size: 10px; }
.button-wide { width: 100%; min-height: 48px; }
.text-button, .icon-button { border: 0; color: #4c755d; background: none; font-size: 11px; font-weight: 700; }
.text-button span { margin-left: 6px; }
.icon-button { width: 32px; height: 32px; border: 1px solid #e5eae4; border-radius: 50%; background: #fff; font-size: 16px; }

/* Dashboard */
.hero-panel { position: relative; display: flex; min-height: 255px; overflow: hidden; align-items: center; justify-content: space-between; padding: 30px 4.5%; border-radius: 18px; color: #eef4eb; background: radial-gradient(circle at 82% 15%, rgba(81,127,92,.32), transparent 34%), linear-gradient(115deg, #123b30 0%, #092c26 70%, #153b2e 100%); box-shadow: 0 15px 40px rgba(12,48,37,.12); }
.hero-content { position: relative; z-index: 1; }
.hero-kicker { display: flex; align-items: center; gap: 8px; color: #9cb7a0; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.hero-kicker b { color: var(--lime); font-size: 9px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200,233,117,.1); }
.hero-content h2 { margin: 19px 0 11px; font-size: clamp(29px, 3.3vw, 46px); font-weight: 550; letter-spacing: -.055em; line-height: 1.03; }
.hero-content h2 em { color: var(--lime); font-style: normal; }
.hero-content > p { margin: 0; color: #bbccc0; font-size: 12px; }
.route-line { margin: 0 7px; color: #789a83; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.hero-tags span { padding: 6px 9px; border: 1px solid rgba(227,240,222,.18); border-radius: 20px; color: #d4e1d5; background: rgba(255,255,255,.05); font-size: 9px; }
.hero-graphic { position: relative; width: 270px; height: 210px; flex: 0 0 270px; margin-right: 1%; }
.court-outline { position: absolute; top: 8px; right: 0; width: 192px; height: 220px; border: 1px solid rgba(199,233,196,.47); border-radius: 47%; transform: rotate(26deg); }
.court-outline::before { position: absolute; content: ""; inset: 19px 34px; border: 1px solid rgba(199,233,196,.34); border-radius: 46%; }
.court-net { position: absolute; top: 50%; right: -5px; left: -5px; border-top: 1px solid rgba(199,233,196,.5); }
.court-service { position: absolute; top: 20%; bottom: 20%; left: 50%; border-left: 1px solid rgba(199,233,196,.35); }
.hero-ball { position: absolute; top: 22%; right: 25%; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 22px 5px rgba(201,235,123,.25); }
.hero-stamp { position: absolute; right: 25px; bottom: -2px; display: grid; width: 72px; height: 72px; align-content: center; border: 1px solid rgba(200,233,117,.55); border-radius: 50%; color: var(--lime); text-align: center; font-size: 10px; font-weight: 850; letter-spacing: .16em; line-height: 1.3; transform: rotate(13deg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 17px 0; }
.stat-card { min-height: 126px; padding: 16px 17px 14px; border: 1px solid #e7ece7; border-radius: 13px; background: #fff; box-shadow: 0 2px 10px rgba(19,49,39,.025); }
.stat-head { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: #8a9790; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.stat-icon { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; font-size: 13px; }
.stat-icon-green { color: #317156; background: #e6f1e5; }
.stat-icon-sand { color: #a66c3f; background: #f8eddf; }
.stat-icon-blue { color: #527b83; background: #e6f0f1; }
.stat-icon-lime { color: #607c2f; background: #eef5df; }
.stat-card > strong { display: block; margin-top: 10px; color: #18382d; font-size: 24px; font-weight: 700; letter-spacing: -.045em; }
.stat-card strong small { color: #6e7d74; font-size: 12px; font-weight: 560; letter-spacing: 0; }
.stat-card > p { margin: 5px 0 0; color: #849089; font-size: 10px; line-height: 1.5; }
.dashboard-columns { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.panel { border: 1px solid #e7ece7; border-radius: var(--radius); background: #fff; box-shadow: 0 2px 12px rgba(18,47,38,.025); }
.next-steps-panel, .trip-panel, .shortlist-panel { padding: 20px 21px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.panel-heading h2 { margin: 0; font-size: 17px; font-weight: 660; letter-spacing: -.03em; }
.step-progress { color: #96a39a; font-size: 10px; font-weight: 700; }
.step-progress i { padding: 0 2px; color: #c9d2ca; font-style: normal; }
.step-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; margin-top: 20px; }
.step-item { display: flex; align-items: flex-start; gap: 10px; }
.step-button { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.full-empty { grid-column: 1 / -1; }
.step-number { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border: 1px solid #e4e9e3; border-radius: 50%; color: #729178; font-size: 9px; font-weight: 800; }
.step-item.done .step-number { border-color: #cee2c4; color: #476e4c; background: #eff7e6; }
.step-item b { display: block; color: #3b5145; font-size: 11px; font-weight: 700; }
.step-item small { display: block; margin-top: 4px; color: #89958d; font-size: 9px; line-height: 1.45; }
.trip-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 12px; margin-top: 20px; }
.trip-facts > div { display: flex; align-items: flex-start; gap: 10px; }
.fact-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: #4f7b62; background: #eef4ec; font-size: 12px; }
.trip-facts b { display: block; color: #44564b; font-size: 10px; }
.trip-facts small { display: block; margin-top: 4px; color: #8b9690; font-size: 9px; line-height: 1.4; }
.shortlist-panel { margin-top: 16px; }
.hotel-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.hotel-mini { min-height: 86px; padding: 12px; border: 1px solid #edf0ea; border-radius: 11px; background: #fafbf8; }
.hotel-mini .hotel-destination { color: #8ba090; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hotel-mini b { display: block; margin-top: 7px; color: #34493c; font-size: 11px; line-height: 1.35; }

/* Lists, tables and badges */
.page-heading-row { align-items: center; margin-bottom: 21px; }
.page-heading-row > div { max-width: 780px; }
.notice { margin-bottom: 16px; }
.notice-soft { border-color: #e2e9df; color: #53665a; background: #f8fbf6; }
.notice-warning { border-color: #e9d6b3; color: #755b32; background: #fffaf1; }
.table-panel { overflow: hidden; }
.table-toolbar { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 17px; border-bottom: 1px solid #edf0ec; }
.table-caption { display: flex; align-items: center; gap: 7px; color: #87938b; font-size: 10px; }
.table-caption b { color: #43574a; font-size: 11px; }
.search-input { width: min(230px, 42vw); min-height: 34px; padding: 7px 10px; border-radius: 7px; font-size: 10px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 13px; color: #99a39c; background: #fbfcfa; font-size: 8px; font-weight: 800; letter-spacing: .11em; white-space: nowrap; }
td { padding: 13px; border-top: 1px solid #edf0ed; color: #526359; font-size: 10px; vertical-align: middle; }
tbody tr:hover { background: #fcfdfb; }
td:first-child, th:first-child { padding-left: 18px; }
.provider-name { display: flex; align-items: center; gap: 9px; min-width: 165px; color: #2d483a; font-size: 11px; font-weight: 700; }
.provider-initial { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #41664f; background: #edf4e8; font-size: 10px; font-weight: 800; }
.provider-sub, .cell-sub { display: block; margin-top: 4px; color: #8a968e; font-size: 9px; font-weight: 450; }
.table-email { color: #52745d; text-decoration: none; }
.table-email:hover { text-decoration: underline; }
.status-pill, .fit-pill { display: inline-flex; min-height: 22px; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 20px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.status-success { color: #416c4b; background: #e9f4e5; }
.status-info { color: #487278; background: #e8f2f2; }
.status-warning { color: #8a6333; background: #fff1dc; }
.status-muted { color: #65746a; background: #edf1ed; }
.status-danger { color: #9d5949; background: #fbede9; }
.fit-pill { color: #47734f; background: #edf5e7; }
.fit-pill.conditional { color: #8b6936; background: #fff4e0; }
.fit-pill.no-fit { color: #8f6354; background: #f8eeeb; }
.fit-pill.neutral { color: #64746a; background: #edf1ed; }
.table-actions { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.table-actions .button { min-height: 29px; padding: 0 8px; font-size: 9px; }
.info-line { display: flex; gap: 8px; margin-top: 12px; color: #88958d; font-size: 10px; line-height: 1.5; }
.info-line > span { color: #71947b; }
.draft-summary-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 14px; }
.draft-summary { padding: 14px 16px; border: 1px solid #e6ebe6; border-radius: 12px; background: #fff; }
.draft-summary b { display: block; color: #365541; font-size: 18px; }
.draft-summary span { display: block; margin-top: 4px; color: #86938a; font-size: 10px; }
.draft-list { display: grid; gap: 11px; }
.draft-card { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.8fr) auto; gap: 17px; align-items: center; padding: 16px 18px; border: 1px solid #e6ebe6; border-radius: 13px; background: #fff; }
.draft-card h3 { margin: 0; color: #334c3d; font-size: 13px; }
.draft-card p { margin: 6px 0 0; color: #849087; font-size: 9px; line-height: 1.5; }
.draft-snippet { max-height: 42px; overflow: hidden; color: #65746a !important; }
.draft-actions { display: flex; flex-direction: column; gap: 6px; }
.empty-state { padding: 28px; border: 1px dashed #dbe4db; border-radius: 12px; color: #7c8c81; background: #fbfcfa; text-align: center; font-size: 12px; line-height: 1.6; }

/* Offers and comparison */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.offer-card { overflow: hidden; border: 1px solid #e6ebe6; border-radius: 14px; background: #fff; }
.offer-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 18px 14px; }
.offer-card h3 { margin: 7px 0 0; color: #263f33; font-size: 16px; letter-spacing: -.025em; }
.offer-destination { margin-top: 5px; color: #849188; font-size: 10px; }
.offer-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.offer-tags span { padding: 4px 7px; border-radius: 6px; color: #718076; background: #f2f5f0; font-size: 8px; }
.offer-price { flex: 0 0 auto; color: #254d39; text-align: right; }
.offer-price strong { display: block; font-size: 19px; letter-spacing: -.04em; }
.offer-price small { display: block; margin-top: 4px; color: #87948b; font-size: 9px; }
.offer-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 18px 15px; }
.offer-fact { min-height: 43px; padding: 9px; border-radius: 8px; background: #f7f9f6; }
.offer-fact span { display: block; color: #94a097; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.offer-fact b { display: block; margin-top: 5px; color: #45584b; font-size: 10px; font-weight: 650; line-height: 1.4; }
.offer-warnings { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 18px 12px; }
.offer-warning { padding: 5px 7px; border-radius: 6px; color: #8e6433; background: #fff4e2; font-size: 8px; }
.offer-card-bottom { display: flex; justify-content: space-between; gap: 8px; padding: 11px 18px; border-top: 1px solid #edf0ec; }
.offer-card-bottom .button { min-height: 30px; padding: 0 9px; font-size: 9px; }
.favorite-button { border: 1px solid #e7ebe6; border-radius: 8px; color: #78867d; background: white; }
.favorite-button.is-favorite { color: #856128; border-color: #f0dfb9; background: #fff7e8; }
.comparison-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 13px; color: #7c8a81; font-size: 9px; }
.comparison-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #65a573; }
.legend-dot.estimated { background: #d7a249; }
.legend-dot.missing { background: #b87867; }
.legend-dot.historic { background: #8c9c91; }
.comparison-table { min-width: 1120px; }
.comparison-table td { max-width: 170px; line-height: 1.45; }
.comparison-table .amount { color: #365e43; font-size: 11px; font-weight: 750; white-space: nowrap; }
.comparison-table .historic-row { background: #fbfcfa; }
.comparison-note { margin-top: 13px; color: #839087; font-size: 10px; line-height: 1.55; }

/* Hotels, documents, voting, settings */
.destination-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.filter-chip { padding: 7px 11px; border: 1px solid #dfe7de; border-radius: 20px; color: #65766a; background: #fff; font-size: 10px; font-weight: 650; }
.filter-chip.active { border-color: #c8e1ae; color: #335b40; background: #edf6e3; }
.hotel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hotel-card { display: flex; min-height: 176px; flex-direction: column; padding: 16px; border: 1px solid #e6ebe6; border-radius: 13px; background: #fff; }
.hotel-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hotel-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; color: #517662; background: #edf4eb; font-size: 15px; }
.hotel-card h3 { margin: 0; color: #314b3c; font-size: 12px; line-height: 1.45; }
.hotel-card .hotel-destination { margin-top: 4px; color: #8c9990; font-size: 9px; }
.hotel-card p { flex: 1; margin: 13px 0; color: #748178; font-size: 9px; line-height: 1.55; }
.hotel-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 9px; border-top: 1px solid #eff1ee; }
.hotel-card-bottom span { color: #91a096; font-size: 8px; }
.hotel-card-bottom .button { min-height: 27px; padding: 0 8px; font-size: 8px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-overview { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 22px; align-items: center; margin: 0 0 12px; padding: 20px 22px; }
.atlas-overview h2 { margin: 0 0 7px; color: #264637; font-size: 19px; letter-spacing: -.035em; }
.atlas-overview p:not(.eyebrow) { max-width: 720px; margin: 0; color: #728077; font-size: 11px; line-height: 1.65; }
.atlas-overview .eyebrow { margin-bottom: 6px; }
.atlas-quickfacts { display: flex; gap: 8px; }
.atlas-quickfacts span { display: grid; min-width: 72px; padding: 10px 11px; border: 1px solid #e8eee3; border-radius: 10px; color: #839087; background: #fbfcf9; text-align: center; font-size: 8px; }
.atlas-quickfacts b { color: #436b4d; font-size: 15px; }
.atlas-note { margin: 0 0 14px; padding: 11px 14px; border-color: #e1e9de; color: #66776a; background: #f7faf5; font-size: 10px; }
.document-list { display: grid; gap: 9px; }
.document-row { display: grid; grid-template-columns: 42px minmax(0,1.3fr) minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 13px 16px; border: 1px solid #e6ebe6; border-radius: 12px; background: #fff; }
.pdf-icon { display: grid; width: 38px; height: 42px; place-items: center; border-radius: 7px; color: #a35b49; background: #f9efeb; font-size: 9px; font-weight: 850; }
.document-name b { display: block; color: #3a5144; font-size: 11px; line-height: 1.45; }
.document-name small, .document-meta { display: block; margin-top: 4px; color: #86928a; font-size: 9px; }
.document-meta { line-height: 1.55; }
.upload-button { cursor: pointer; }
.vote-intro { display: grid; grid-template-columns: 170px 1fr; gap: 25px; align-items: center; padding: 25px; }
.vote-intro h2 { max-width: 580px; margin: 0 0 10px; font-size: 22px; letter-spacing: -.035em; }
.vote-intro p:not(.eyebrow) { max-width: 670px; color: #728077; font-size: 11px; line-height: 1.7; }
.vote-illustration { position: relative; display: grid; width: 145px; height: 145px; place-items: center; border-radius: 50%; color: #3f6c50; background: radial-gradient(circle, #fff 38%, #eef5e8 39%, #e3efda 61%, transparent 62%); }
.vote-illustration::before { position: absolute; inset: 18px; content: ""; border: 1px dashed #a9c79a; border-radius: 50%; }
.vote-illustration span { position: absolute; display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #dce8d4; border-radius: 50%; background: #fff; font-size: 13px; }
.vote-illustration span:nth-child(1) { top: 18px; left: 56px; }
.vote-illustration span:nth-child(2) { right: 16px; bottom: 34px; }
.vote-illustration span:nth-child(3) { bottom: 25px; left: 23px; }
.favorite-panel { margin-top: 14px; padding: 18px; }
.favorite-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 13px; }
.favorite-item { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 1px solid #edf0ec; border-radius: 9px; color: #455c4b; background: #fbfcfa; font-size: 10px; }
.check-list { display: grid; gap: 12px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 20px; color: #66766b; font-size: 10px; line-height: 1.5; }
.check-list li::before { position: absolute; left: 0; color: #71956d; content: "✓"; font-weight: 800; }
.template-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(240px,.6fr); gap: 14px; align-items: start; }
.template-form { display: flex; flex-direction: column; gap: 8px; padding: 19px; }
.template-form .panel-heading { margin-bottom: 5px; }
.template-form textarea { resize: vertical; line-height: 1.65; font-size: 11px; }
.template-form input { font-size: 11px; }
.template-side { padding: 19px; }
.template-side h2 { margin: 0 0 15px; color: #2f4938; font-size: 17px; }
.template-callout { margin-top: 18px; padding: 12px; border: 1px solid #e5ebdd; border-radius: 9px; background: #f8fbf4; }
.template-callout b { color: #4b6d49; font-size: 10px; }
.template-callout p { margin: 6px 0 0; color: #778579; font-size: 9px; line-height: 1.55; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.account-grid > .panel { padding: 20px; }
.account-grid .muted { font-size: 11px; }
.password-form { display: flex; flex-direction: column; gap: 8px; }
.password-form .panel-heading { margin-bottom: 6px; }
.password-form input { min-height: 40px; font-size: 11px; }
.password-form .button { align-self: flex-start; margin-top: 4px; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 13px; border-top: 1px solid #e7ebe6; color: #9aa59d; font-size: 8px; letter-spacing: .08em; }
.app-footer i { padding: 0 4px; color: #c4ccc4; font-style: normal; }

/* Dialogs and feedback */
.modal { width: min(760px, calc(100vw - 28px)); max-height: min(90vh, 900px); padding: 0; overflow: auto; border: 0; border-radius: 16px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px rgba(4,26,18,.25); }
.modal.hotel-detail { width: min(1040px, calc(100vw - 28px)); }
.modal::backdrop { background: rgba(5, 29, 23, .54); backdrop-filter: blur(3px); }
.modal-content { padding: 22px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-heading h2 { margin: 0; color: #1f4030; font-size: 20px; letter-spacing: -.035em; }
.modal-close { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #e4e9e4; border-radius: 50%; color: #617168; background: #fff; font-size: 17px; }
.modal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.modal-form .full { grid-column: 1 / -1; }
.modal-form label { display: block; margin: 3px 0 5px; }
.modal-form input, .modal-form select { min-height: 38px; padding: 8px 10px; font-size: 10px; }
.modal-form textarea { min-height: 68px; padding: 9px 10px; font-size: 10px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf0ec; }
.hotel-card { min-height: 0; padding: 0; overflow: hidden; border-color: #e6ebe6; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.hotel-card:hover { transform: translateY(-2px); border-color: #d4dfd4; box-shadow: 0 12px 30px rgba(22, 55, 40, .08); }
.hotel-card-open { display: block; width: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.hotel-card-photo { position: relative; height: 174px; overflow: hidden; background: linear-gradient(135deg, #d9e7d8, #9fb9a8); }
.hotel-card-photo::after { position: absolute; inset: 38% 0 0; content: ""; background: linear-gradient(transparent, rgba(8, 34, 26, .34)); pointer-events: none; }
.hotel-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hotel-card:hover .hotel-card-photo img { transform: scale(1.035); }
.hotel-badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.62); border-radius: 18px; color: #254536; background: rgba(255,255,255,.91); font-size: 9px; font-weight: 760; }
.hotel-card-content { padding: 15px 16px 13px; }
.hotel-card .hotel-destination { display: block; margin: 0 0 5px; color: #87958b; font-size: 9px; }
.hotel-card h3 { margin: 0; color: #2e4b3a; font-size: 13px; line-height: 1.4; }
.hotel-card-highlights { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9px; margin-top: 12px; }
.hotel-card-highlights span { min-width: 0; padding: 8px 9px; border-radius: 8px; color: #5f7065; background: #f6f8f5; font-size: 9px; line-height: 1.4; }
.hotel-card-highlights b { display: block; margin-bottom: 3px; color: #8b988f; font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.hotel-card-climate { margin-top: 9px; color: #66794e; font-size: 9px; }
.hotel-card-cta { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; padding-top: 10px; border-top: 1px solid #edf0ec; color: #486e53; font-size: 9px; font-weight: 750; }
.hotel-card-cta span { font-size: 13px; }
.hotel-card-admin { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 8px 14px 10px; border-top: 1px solid #eff1ee; color: #98a39b; background: #fcfdfb; font-size: 8px; }
.hotel-card-admin .button { min-height: 26px; padding: 0 8px; font-size: 8px; }
.hotel-detail-hero { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; overflow: hidden; border-radius: 12px; }
.hotel-detail-hero img { display: block; width: 100%; height: clamp(150px, 23vw, 250px); object-fit: cover; background: #edf2eb; }
.hotel-detail-place { margin: 13px 0 4px; color: #718176; font-size: 10px; font-weight: 700; }
.hotel-detail-summary { margin: 0 0 15px; color: #46584c; font-size: 12px; line-height: 1.6; }
.hotel-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.hotel-detail-block { padding: 13px 14px; border: 1px solid #e9eee8; border-radius: 10px; background: #fbfcfa; }
.hotel-detail-block > span, .hotel-detail-sources > span { display: block; margin-bottom: 6px; color: #8b988f; font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hotel-detail-block b { display: block; color: #345440; font-size: 11px; line-height: 1.5; }
.hotel-detail-block p { margin: 6px 0 0; color: #78857c; font-size: 9px; line-height: 1.55; }
.hotel-detail-wide { grid-column: 1 / -1; }
.hotel-detail-sources { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 13px; }
.hotel-detail-sources > span { width: 100%; margin: 0; }
.hotel-detail-sources a { padding: 7px 9px; border: 1px solid #e4ebe2; border-radius: 7px; color: #507357; background: #f9fbf7; font-size: 8px; font-weight: 700; text-decoration: none; }
.hotel-detail-sources a:hover { background: #edf5e8; }
.modal-intro { margin: -4px 0 14px; color: #7b8980; font-size: 11px; line-height: 1.5; }
.toast { position: fixed; z-index: 20; right: 22px; bottom: 20px; max-width: min(420px, calc(100vw - 34px)); padding: 12px 16px; border: 1px solid #d8e4d5; border-radius: 10px; color: #31543b; background: #f5fbf0; box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: none; }
.toast.error { border-color: #efd1c9; color: #965341; background: #fff5f2; }

@media (max-width: 1180px) {
  .content-wrap { padding-right: 24px; padding-left: 24px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hotel-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hotel-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .draft-card { grid-template-columns: minmax(150px,.8fr) minmax(0,1.5fr) auto; }
}
@media (max-width: 900px) {
  .sidebar { width: 224px; transform: translateX(-100%); transition: transform .2s; box-shadow: 10px 0 35px rgba(4,26,18,.15); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .mobile-menu { display: inline-grid; width: 34px; height: 34px; place-items: center; }
  .topbar { justify-content: flex-start; gap: 14px; }
  .topbar-actions { margin-left: auto; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .hero-graphic { width: 190px; flex-basis: 190px; transform: scale(.86); transform-origin: center right; }
  .offer-grid { grid-template-columns: 1fr; }
  .atlas-overview { grid-template-columns: 1fr; gap: 14px; }
  .atlas-quickfacts { justify-content: flex-start; }
  .draft-card { grid-template-columns: minmax(150px,.7fr) minmax(0,1.4fr) auto; }
  .template-layout, .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .auth-layout { display: block; min-height: 100vh; }
  .auth-brand { display: none; }
  .auth-panel { min-height: 100vh; align-items: flex-start; padding: 28px 22px 70px; }
  .auth-card { margin-top: 8vh; }
  .brand-mobile { display: flex; align-items: center; gap: 9px; margin-bottom: 45px; color: #264534; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-decoration: none; }
  .brand-mobile b { color: #778c6d; }
  .brand-mobile .brand-ball { width: 26px; height: 26px; }
  .auth-footer { right: 22px; bottom: 17px; left: 22px; text-align: center; }
  .topbar { height: 58px; padding: 0 13px; gap: 7px; }
  .breadcrumb { gap: 6px; font-size: 9px; }
  .local-status { display: none; }
  .user-badge { max-width: 125px; min-height: 27px; padding: 0 8px; font-size: 8px; }
  .content-wrap { padding: 22px 13px 18px; }
  .welcome-row, .page-heading-row { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 17px; }
  .welcome-row > .button, .page-heading-row > .button { align-self: flex-start; }
  .heading-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .heading-actions .button { width: 100%; }
  .welcome-row h1, .page-heading-row h1 { font-size: 29px; }
  .page-lede { font-size: 11px; }
  .hero-panel { min-height: 228px; padding: 23px 20px; }
  .hero-content h2 { font-size: 31px; }
  .hero-content > p { max-width: 250px; font-size: 10px; line-height: 1.6; }
  .route-line { margin: 0 3px; letter-spacing: -2px; }
  .hero-tags { max-width: 260px; margin-top: 14px; }
  .hero-tags span { padding: 5px 7px; font-size: 8px; }
  .hero-graphic { position: absolute; right: -83px; bottom: -10px; width: 170px; opacity: .34; transform: scale(.82); }
  .hero-stamp { display: none; }
  .stats-grid { gap: 8px; margin: 10px 0; }
  .stat-card { min-height: 112px; padding: 12px; }
  .stat-label { font-size: 8px; }
  .stat-icon { width: 23px; height: 23px; }
  .stat-card > strong { font-size: 20px; }
  .stat-card > p { font-size: 8px; }
  .next-steps-panel, .trip-panel, .shortlist-panel { padding: 15px; }
  .step-list { gap: 12px 9px; }
  .step-item { gap: 7px; }
  .step-number { width: 20px; height: 20px; font-size: 8px; }
  .step-item b { font-size: 9px; }
  .step-item small { font-size: 8px; }
  .trip-facts { grid-template-columns: 1fr; gap: 12px; }
  .hotel-strip { grid-template-columns: 1fr 1fr; gap: 7px; }
  .hotel-mini { min-height: 76px; padding: 9px; }
  .hotel-mini b { font-size: 9px; }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
  .table-caption { display: block; line-height: 1.6; }
  .table-caption b { margin-right: 5px; }
  .search-input { width: 100%; }
  .table-scroll { overflow-x: auto; }
  table { min-width: 760px; }
  .table-actions { justify-content: flex-start; }
  .draft-summary-row { gap: 7px; }
  .draft-summary { padding: 11px; }
  .draft-summary b { font-size: 15px; }
  .draft-summary span { font-size: 8px; line-height: 1.45; }
  .draft-card { grid-template-columns: 1fr auto; gap: 10px; padding: 13px; }
  .draft-card > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .draft-actions { grid-column: 2; grid-row: 1; }
  .draft-card h3 { font-size: 11px; }
  .draft-snippet { max-height: 34px; }
  .offer-card-top { padding: 14px; }
  .offer-facts { padding: 0 14px 12px; }
  .offer-warnings { padding: 0 14px 10px; }
  .offer-card-bottom { padding: 10px 14px; }
  .hotel-grid { grid-template-columns: 1fr; }
  .atlas-overview { padding: 16px; }
  .atlas-overview h2 { font-size: 17px; }
  .atlas-quickfacts { gap: 6px; }
  .atlas-quickfacts span { min-width: 0; flex: 1; padding: 8px 5px; }
  .hotel-card-photo { height: 185px; }
  .hotel-detail-hero { gap: 5px; }
  .hotel-detail-hero img { height: 125px; }
  .hotel-detail-grid { grid-template-columns: 1fr; }
  .hotel-detail-wide { grid-column: auto; }
  .modal.hotel-detail { width: calc(100vw - 16px); }
  .hotel-detail-summary { font-size: 11px; }
  .hotel-detail-block { padding: 11px; }
  .document-row { grid-template-columns: 36px minmax(0,1fr) auto; gap: 9px; padding: 11px; }
  .document-meta { grid-column: 2 / 3; grid-row: 2; margin-top: -6px; }
  .document-row > .button { grid-column: 3; grid-row: 1 / span 2; }
  .pdf-icon { width: 33px; height: 37px; }
  .vote-intro { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .vote-illustration { width: 100px; height: 100px; margin: 0 auto; }
  .vote-illustration span:nth-child(1) { top: 11px; left: 37px; }
  .vote-illustration span:nth-child(2) { right: 4px; bottom: 22px; }
  .vote-illustration span:nth-child(3) { bottom: 13px; left: 13px; }
  .favorite-list { grid-template-columns: 1fr; }
  .app-footer { flex-direction: column; gap: 5px; line-height: 1.5; }
  .modal { width: calc(100vw - 16px); max-height: 94vh; border-radius: 13px; }
  .modal-content { padding: 15px; }
  .modal-form { grid-template-columns: 1fr; }
  .modal-form .full { grid-column: auto; }
  .modal-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
