@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:ital,opsz,wght@1,9..144,600&display=swap');

:root {
    --ink: #173b3b;
    --muted: #637879;
    --teal: #116466;
    --teal-dark: #0b4d4f;
    --teal-soft: #dcefee;
    --coral: #f06d5b;
    --coral-dark: #dc5948;
    --yellow: #f3b63a;
    --cream: #fffaf2;
    --paper: #ffffff;
    --line: #dfe8e5;
    --soft: #f2f7f5;
    --danger: #bc3d3d;
    --shadow: 0 18px 60px rgba(23, 59, 59, .11);
    --shadow-small: 0 8px 30px rgba(23, 59, 59, .09);
    --radius: 24px;
    --font-sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 em, h2 em { color: var(--coral); font-family: var(--font-serif); font-weight: 600; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 840px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 9999; left: 16px; top: -80px; background: var(--paper); padding: 10px 18px; border-radius: 10px; box-shadow: var(--shadow-small); }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 1000; height: 82px; background: rgba(255, 250, 242, .93); border-bottom: 1px solid rgba(17, 100, 102, .08); backdrop-filter: blur(14px); }
.site-header.scrolled { position: sticky; top: 0; box-shadow: 0 8px 30px rgba(23, 59, 59, .07); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: 21px; text-decoration: none; letter-spacing: -.04em; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand > span > span { color: var(--coral); }
.main-nav { display: flex; align-items: center; gap: 29px; font-size: 14px; font-weight: 600; }
.main-nav > a { text-decoration: none; transition: color .2s; }
.main-nav > a:hover { color: var(--coral); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 13px; padding: 13px 22px; background: var(--coral); color: #fff !important; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px rgba(240, 109, 91, .22); transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 11px 24px rgba(240, 109, 91, .3); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(243, 182, 58, .75); outline-offset: 2px; }
.button-small { padding: 10px 17px; border-radius: 10px; }
.button-large { padding: 15px 25px; min-height: 54px; }
.button-secondary { background: var(--teal); box-shadow: 0 8px 20px rgba(17, 100, 102, .2); }
.button-secondary:hover { background: var(--teal-dark); }
.button-light { background: #fff; color: var(--teal) !important; box-shadow: none; }
.button-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--teal); font-weight: 700; text-decoration: none; }
.text-link:hover { color: var(--coral); }
.play-dot { display: grid; place-items: center; width: 35px; height: 35px; padding-left: 2px; border: 1px solid rgba(17, 100, 102, .25); border-radius: 50%; font-size: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 9px; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; }
.nav-profile { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.nav-profile img, .avatar-fallback { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.logout-form { margin: 0; }
.link-button { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13px; color: var(--muted); }

.flash-stack { position: fixed; z-index: 3000; right: 24px; top: 96px; width: min(410px, calc(100% - 32px)); }
.flash { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 10px; background: white; border-radius: 14px; box-shadow: var(--shadow); border-left: 5px solid var(--teal); font-weight: 600; }
.flash-warning { border-color: var(--yellow); }
.flash button { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }

.hero { position: relative; overflow: hidden; padding: 66px 0 74px; min-height: 680px; background: linear-gradient(115deg, #fffaf2 0%, #fffaf2 48%, #f4efe3 100%); }
.hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 54px; position: relative; z-index: 2; }
.hero-copy { padding: 22px 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--coral); font-size: 12px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; margin-bottom: 15px; }
.eyebrow.light { color: #ffe0a1; }
.hero h1 { max-width: 630px; margin-bottom: 22px; font-size: clamp(46px, 5vw, 75px); }
.hero-lead { max-width: 585px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin: 30px 0 34px; }
.hero-proof { display: flex; align-items: center; gap: 15px; }
.hero-proof strong { display: block; font-size: 12px; color: var(--muted); }
.stars { color: var(--yellow); letter-spacing: 2px; font-size: 13px; }
.avatar-stack { display: flex; }
.avatar-stack span { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -8px; border: 3px solid var(--cream); border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 10px; font-weight: 800; }
.avatar-stack span:first-child { margin-left: 0; background: #f3cfb7; }
.avatar-stack span:nth-child(2) { background: #c5e3db; }.avatar-stack span:nth-child(3) { background: #f7d8ab; }.avatar-stack span:last-child { background: var(--teal); color: white; }
.hero-visual { position: relative; padding: 22px 0; }
.hero-image-wrap { overflow: hidden; border: 11px solid white; border-radius: 46% 46% 22px 22px; box-shadow: 0 30px 80px rgba(19, 72, 71, .19); transform: rotate(1deg); }
.hero-image-wrap img { width: 100%; height: 570px; object-fit: cover; object-position: 55% center; }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; min-width: 240px; padding: 12px 14px; background: rgba(255, 255, 255, .95); border: 1px solid rgba(255,255,255,.7); border-radius: 15px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.floating-card-top { top: 68px; left: -39px; }.floating-card-bottom { bottom: 65px; right: -14px; }
.float-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; background: var(--teal-soft); font-size: 20px; }.float-icon.coral { background: #ffebe7; }
.floating-card strong, .floating-card small { display: block; }.floating-card strong { font-size: 13px; }.floating-card small { color: var(--muted); font-size: 11px; }
.match-pill { margin-left: auto; padding: 4px 7px; border-radius: 20px; background: #e2f4e8; color: #39724d; font-size: 11px; font-weight: 800; }
.hero-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(17,100,102,.1); }.hero-orbit-one { width: 520px; height: 520px; right: -300px; top: -180px; }.hero-orbit-two { width: 300px; height: 300px; left: -200px; bottom: -180px; }

.trust-bar { background: var(--teal); color: white; }
.trust-items { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; font-weight: 600; }
.trust-items span { display: flex; align-items: center; gap: 8px; }.trust-items b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); color: #ffe0a1; }
.section { padding: 104px 0; }
.centered-heading { max-width: 760px; text-align: center; }.centered-heading .eyebrow { justify-content: center; }.centered-heading h2, .split-heading h2, .steps-copy h2 { font-size: clamp(38px, 4.2vw, 60px); margin-bottom: 20px; }.centered-heading p { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.intro-section { background: white; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 57px; }
.benefit-card { position: relative; overflow: hidden; min-height: 350px; padding: 31px; border-radius: var(--radius); }
.benefit-card::after { content: ''; position: absolute; width: 130px; height: 130px; right: -55px; bottom: -60px; border-radius: 50%; background: rgba(255,255,255,.32); }
.benefit-card > span { position: absolute; top: 25px; right: 27px; font-size: 12px; font-weight: 800; opacity: .55; }.benefit-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 34px; border-radius: 18px; background: rgba(255,255,255,.65); font-size: 29px; }.benefit-card h3 { font-size: 23px; }.benefit-card p { min-height: 94px; line-height: 1.65; opacity: .83; }.benefit-card a { font-size: 13px; font-weight: 800; text-decoration: none; }.benefit-teal { background: #d9efec; }.benefit-coral { background: #ffe4df; }.benefit-yellow { background: #fff0c7; }

.steps-section { background: var(--cream); }
.steps-grid { display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 90px; }
.steps-visual { position: relative; min-height: 570px; }
.map-paper { position: absolute; inset: 15px 20px 15px 0; overflow: hidden; border: 9px solid white; border-radius: 28px; background-color: #ddecdf; background-image: linear-gradient(30deg, rgba(17,100,102,.08) 12%, transparent 12.5%, transparent 87%, rgba(17,100,102,.08) 87.5%), linear-gradient(150deg, rgba(17,100,102,.08) 12%, transparent 12.5%, transparent 87%, rgba(17,100,102,.08) 87.5%); background-size: 80px 140px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.map-paper::before, .map-paper::after { content: ''; position: absolute; border: 3px solid rgba(255,255,255,.85); border-radius: 50%; }.map-paper::before { width: 260px; height: 180px; left: -50px; top: 10px; }.map-paper::after { width: 340px; height: 220px; right: -100px; bottom: -50px; }
.map-route { position: absolute; left: 120px; top: 190px; width: 300px; height: 150px; border: 4px dashed rgba(240,109,91,.65); border-color: transparent transparent var(--coral) var(--coral); border-radius: 50%; transform: rotate(-10deg); }
.map-pin { position: absolute; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; border: 5px solid white; border-radius: 50% 50% 50% 8px; background: var(--teal); box-shadow: var(--shadow-small); font-size: 23px; transform: rotate(-45deg); }.map-pin::first-letter { transform: rotate(45deg); }.pin-a { left: 80px; top: 100px; }.pin-b { right: 70px; top: 190px; background: var(--coral); }.pin-c { left: 190px; bottom: 75px; background: #688b55; }
.map-family-card { position: absolute; z-index: 4; right: -1px; bottom: 42px; display: flex; align-items: center; gap: 11px; padding: 14px 17px; background: white; border-radius: 15px 0 0 15px; box-shadow: var(--shadow-small); }.mini-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f7d7c1; color: var(--coral); font-weight: 800; }.map-family-card strong, .map-family-card small { display: block; }.map-family-card strong { font-size: 13px; }.map-family-card small { color: var(--muted); font-size: 10px; }
.scribble-note { position: absolute; z-index: 5; left: -15px; bottom: -5px; padding: 12px 15px; color: var(--coral); font-family: var(--font-serif); font-style: italic; transform: rotate(-5deg); }.scribble-note span { font-size: 25px; }
.steps-list { list-style: none; padding: 0; margin: 31px 0 38px; }.steps-list li { display: flex; gap: 18px; padding: 0 0 24px; position: relative; }.steps-list li > span { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 13px; font-weight: 800; }.steps-list li:not(:last-child)::after { content: ''; position: absolute; left: 18px; top: 42px; bottom: 3px; border-left: 1px dashed #aac9c7; }.steps-list h3 { margin: 2px 0 5px; font-size: 18px; }.steps-list p { margin: 0; color: var(--muted); font-size: 14px; }

.ideas-section { background: #f0f7f5; overflow: hidden; }.split-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }.split-heading > p { max-width: 440px; margin-bottom: 20px; color: var(--muted); }.idea-scroller { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 46px; }.idea-card { min-height: 205px; display: flex; flex-direction: column; justify-content: flex-end; padding: 25px; border-radius: 22px; background: white; box-shadow: 0 8px 24px rgba(23,59,59,.06); transition: transform .25s; }.idea-card:hover { transform: translateY(-7px) rotate(-1deg); }.idea-card > span { margin-bottom: auto; font-size: 41px; }.idea-card strong { font-size: 18px; }.idea-card small { margin-top: 4px; color: var(--muted); }
.safety-section { background: white; }.safety-panel { display: grid; grid-template-columns: .55fr 1.25fr .85fr; align-items: center; gap: 55px; padding: 58px; border-radius: 32px; background: var(--teal); color: white; box-shadow: 0 25px 70px rgba(17,100,102,.2); }.safety-panel h2 { font-size: 42px; }.safety-panel p { color: rgba(255,255,255,.78); }.safety-stamp { width: 180px; height: 180px; display: grid; place-content: center; text-align: center; border: 2px dashed rgba(255,255,255,.45); border-radius: 50%; transform: rotate(-8deg); }.safety-stamp span { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; background: var(--yellow); color: var(--teal); font-size: 24px; }.safety-stamp strong { line-height: 1.2; }.safety-points p { display: flex; gap: 11px; margin: 11px 0; font-size: 14px; font-weight: 600; }.safety-points span { color: var(--yellow); }
.final-cta { padding-top: 40px; }.cta-card { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 58px 65px; border: 1px solid #f0dfc7; border-radius: 30px; background: #fff4dc; overflow: hidden; }.cta-card h2 { font-size: 38px; margin-bottom: 10px; }.cta-card p { margin: 0; color: var(--muted); }.cta-doodle { position: absolute; right: 34%; top: -18px; color: rgba(243,182,58,.35); font-size: 90px; }

.site-footer { padding: 70px 0 25px; background: #102f30; color: rgba(255,255,255,.72); }.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 70px; }.brand-footer { color: white; }.footer-grid > div:first-child p { max-width: 390px; margin-top: 20px; }.footer-grid h2 { color: white; font-size: 14px; letter-spacing: .03em; }.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; }.footer-grid a { text-decoration: none; font-size: 14px; }.footer-grid a:hover { color: white; }.footer-bottom { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

/* Auth */
.auth-page { background: white; }.auth-page .site-footer { display: none; }.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 43% 57%; background: white; }.auth-aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 42px clamp(35px, 5vw, 82px) 55px; background: var(--teal); color: white; }.auth-aside::before { content: ''; position: absolute; width: 520px; height: 520px; left: -250px; bottom: -240px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }.brand-light { color: white; position: relative; z-index: 2; }.auth-aside > div { position: relative; z-index: 2; }.auth-aside h1 { font-size: clamp(47px, 5vw, 70px); color: white; }.auth-aside p { max-width: 510px; color: rgba(255,255,255,.76); font-size: 17px; }.auth-quote { max-width: 480px; padding: 22px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.07); }.auth-quote p { margin: 7px 0; color: white; font-family: var(--font-serif); font-style: italic; }.auth-quote span { font-size: 12px; color: rgba(255,255,255,.6); }.auth-card-wrap { display: grid; place-items: center; padding: 60px 30px; }.auth-card { width: min(540px, 100%); }.auth-card-compact { max-width: 470px; }.auth-card-head { margin-bottom: 29px; }.auth-card-head h2 { margin-bottom: 8px; font-size: 36px; }.auth-card-head p { color: var(--muted); }.auth-switch { text-align: center; margin: 25px 0 0; color: var(--muted); }.auth-switch a, .subtle-link { color: var(--teal); font-weight: 700; }.subtle-link { display: block; margin-top: 20px; text-align: center; font-size: 13px; }.auth-mini-map { position: relative; height: 170px; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; background: rgba(255,255,255,.05); }.auth-mini-map span { position: absolute; display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50% 50% 50% 8px; background: white; transform: rotate(-45deg); }.auth-mini-map span:nth-child(1) { left: 18%; top: 25%; }.auth-mini-map span:nth-child(2) { right: 20%; top: 17%; }.auth-mini-map span:nth-child(3) { left: 49%; bottom: 14%; }.auth-mini-map i { position: absolute; left: 24%; top: 52%; width: 55%; border-top: 2px dashed rgba(255,255,255,.45); transform: rotate(7deg); }

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 20px; }.form-grid { display: grid; gap: 18px; }.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }.field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 700; }.field > span { color: var(--ink); }.field span i, .field > small:not(.field-error), .char-hint { font-style: normal; font-weight: 500; color: #93a1a1; font-size: 11px; }.field input, .field select, .field textarea { width: 100%; border: 1px solid #d5e1df; border-radius: 11px; background: #fff; padding: 13px 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }.field input, .field select { min-height: 49px; }.field textarea { resize: vertical; line-height: 1.55; }.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(17,100,102,.08); }.field-error { color: var(--danger) !important; font-weight: 600 !important; font-size: 12px !important; }.password-wrap { position: relative; }.password-wrap button { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer; color: var(--muted); }.password-wrap input { padding-right: 45px; }.check-row { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; cursor: pointer; }.check-row input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--teal); }.check-row a { color: var(--teal); font-weight: 700; }.inline-alert { padding: 12px 15px; border-radius: 10px; font-size: 13px; }.inline-alert.error { background: #fff0ee; border: 1px solid #f5c7c0; color: #9d3930; }
.upload-field { min-height: 70px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px dashed #bad0cc; border-radius: 11px; background: #f8fbfa; cursor: pointer; }.upload-field input { position: absolute; opacity: 0; width: 1px; height: 1px; }.upload-field > span { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 9px; background: var(--teal-soft); color: var(--teal); font-size: 19px; }.upload-field strong, .upload-field small { display: block; }.upload-field small { color: var(--muted); font-size: 10px; font-weight: 500; }.upload-field.compact { min-height: 49px; padding-block: 5px; }.upload-field.compact > span { width: 34px; height: 34px; }
.choice-fieldset { padding: 0; margin: 0; border: 0; }.choice-fieldset legend { margin-bottom: 10px; font-size: 14px; font-weight: 700; }.segmented-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.segmented-options label { position: relative; cursor: pointer; }.segmented-options input { position: absolute; opacity: 0; }.segmented-options label > span { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; min-height: 85px; padding: 14px; border: 1px solid #d5e1df; border-radius: 12px; }.segmented-options b { grid-row: 1/3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--soft); color: var(--teal); }.segmented-options strong { font-size: 13px; }.segmented-options small { color: var(--muted); font-size: 11px; }.segmented-options input:checked + span { border-color: var(--teal); background: #f1f9f7; box-shadow: 0 0 0 2px rgba(17,100,102,.08); }
.center-page { min-height: 72vh; display: grid; place-items: center; padding: 80px 20px; }.status-card { width: min(560px, 100%); padding: 52px; border-radius: 26px; background: white; text-align: center; box-shadow: var(--shadow); }.status-card .eyebrow { justify-content: center; }.status-card h1 { font-size: 42px; }.status-card p { color: var(--muted); }.status-icon { display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 24px; border-radius: 50%; font-size: 30px; font-weight: 800; }.status-icon.success { background: #e2f2e6; color: #38704a; }.status-icon.warning { background: #fff1cf; color: #9a6c0c; }.form-status-card { text-align: left; }.form-status-card .eyebrow { justify-content: flex-start; }.error-code { color: #d9e3df; font-size: 85px; line-height: 1; font-weight: 800; }

/* Wizard */
.wizard-page { background: #f6f8f5; }.wizard-progress-wrap { border-bottom: 1px solid var(--line); background: white; }.wizard-progress { min-height: 94px; display: flex; align-items: center; }.wizard-progress-item { display: flex; align-items: center; gap: 10px; min-width: 155px; opacity: .48; }.wizard-progress-item > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #b7c8c5; font-size: 12px; font-weight: 800; }.wizard-progress-item strong, .wizard-progress-item small { display: block; line-height: 1.3; }.wizard-progress-item strong { font-size: 13px; }.wizard-progress-item small { color: var(--muted); font-size: 10px; }.wizard-progress-item.active, .wizard-progress-item.done { opacity: 1; }.wizard-progress-item.active > span { background: var(--coral); color: white; border-color: var(--coral); }.wizard-progress-item.done > span { background: var(--teal); color: white; border-color: var(--teal); }.wizard-progress > i { flex: 1; height: 1px; margin: 0 16px; background: var(--line); }
.wizard-section { padding: 62px 0 95px; }.wizard-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: start; gap: 60px; }.wizard-intro { position: sticky; top: 115px; padding-top: 15px; }.step-kicker { display: inline-flex; margin-bottom: 17px; padding: 6px 11px; border-radius: 20px; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.wizard-intro h1 { font-size: 44px; }.wizard-intro > p { color: var(--muted); }.privacy-note, .tip-note { display: flex; gap: 12px; margin-top: 30px; padding: 17px; border: 1px solid #dce7e4; border-radius: 15px; background: rgba(255,255,255,.66); }.privacy-note > span, .tip-note > span { font-size: 21px; }.privacy-note strong { font-size: 12px; }.privacy-note p, .tip-note p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }.wizard-card { padding: 38px; border: 1px solid rgba(17,100,102,.1); border-radius: 24px; background: white; box-shadow: 0 12px 45px rgba(23,59,59,.07); }.form-section-head { display: flex; align-items: center; gap: 14px; }.form-section-head h2 { margin: 0 0 3px; font-size: 22px; }.form-section-head p { margin: 0; color: var(--muted); font-size: 12px; }.section-number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--teal-soft); color: var(--teal); font-size: 12px; font-weight: 800; }.form-divider { height: 1px; margin: 12px 0; background: var(--line); }.wizard-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; padding-top: 23px; border-top: 1px solid var(--line); }.wizard-actions > span { color: var(--muted); font-size: 12px; }.wizard-actions > span b { color: var(--teal); }.back-link { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }.back-link:hover { color: var(--teal); }
.language-grid { display: grid; gap: 9px; max-height: 620px; padding-right: 5px; overflow-y: auto; }.language-row { display: grid; grid-template-columns: 1fr 210px; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }.language-row.selected { border-color: #9bc4bf; background: #f2faf8; }.language-row label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; cursor: pointer; }.language-row label input { position: absolute; opacity: 0; }.custom-check { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #b6c9c6; border-radius: 7px; color: transparent; }.language-row.selected .custom-check { background: var(--teal); border-color: var(--teal); color: white; }.language-row strong { font-size: 13px; }.language-row label small { color: #9aabaa; font-size: 10px; }.language-row select { min-height: 40px; border: 1px solid #d5e1df; border-radius: 9px; padding: 5px 9px; background: white; color: var(--ink); font-size: 12px; }
.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.interest-option { position: relative; min-height: 130px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }.interest-option:hover { transform: translateY(-2px); }.interest-option input { position: absolute; opacity: 0; }.interest-option b { font-size: 31px; }.interest-option strong { font-size: 12px; text-align: center; }.interest-check { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #cbd9d6; border-radius: 50%; color: transparent; font-size: 10px; }.interest-option:has(input:checked) { border-color: var(--interest); background: color-mix(in srgb, var(--interest) 9%, white); box-shadow: 0 0 0 2px color-mix(in srgb, var(--interest) 12%, transparent); }.interest-option input:checked ~ .interest-check { background: var(--interest); border-color: var(--interest); color: white; }
.child-card { margin-bottom: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fbfdfc; }.child-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }.child-card-head h3 { margin: 4px 0 0; font-size: 19px; }.child-index { color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.remove-child { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f5e5e2; color: var(--coral-dark); cursor: pointer; font-size: 20px; }.add-child-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 18px; border: 1px dashed #9ebdb8; border-radius: 15px; background: #f4faf8; color: var(--teal); cursor: pointer; }.add-child-button > span { font-size: 24px; }.add-child-button strong, .add-child-button small { display: block; text-align: left; }.add-child-button small { color: var(--muted); font-size: 10px; font-weight: 500; }

/* Portal */
.portal-page { background: #eef4f2; }.portal-page .site-header { background: white; }.portal-hero { padding: 42px 0 20px; background: white; }.portal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }.portal-heading h1 { margin-bottom: 8px; font-size: clamp(37px, 4vw, 56px); }.portal-heading p { margin: 0; color: var(--muted); }.filter-bar { display: flex; gap: 8px; margin-top: 28px; padding-bottom: 3px; overflow-x: auto; scrollbar-width: thin; }.filter-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 30px; background: white; cursor: pointer; font-size: 12px; font-weight: 700; }.filter-chip.active { border-color: var(--teal); background: var(--teal); color: white; }.explore-shell { height: 690px; min-height: 70vh; display: grid; grid-template-columns: 390px 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }.result-panel { position: relative; z-index: 3; overflow: hidden; display: flex; flex-direction: column; border-right: 1px solid var(--line); }.result-panel-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--line); }.result-panel-head strong, .result-panel-head small { display: block; }.result-panel-head small { color: var(--muted); font-size: 11px; }.result-list { flex: 1; overflow-y: auto; padding: 13px; background: #f6f8f7; }.trip-card { width: 100%; display: block; margin-bottom: 10px; padding: 17px; border: 1px solid transparent; border-radius: 15px; background: white; text-align: left; cursor: pointer; box-shadow: 0 4px 15px rgba(23,59,59,.055); transition: border-color .2s, transform .2s; }.trip-card:hover, .trip-card.active { border-color: var(--coral); transform: translateY(-1px); }.trip-card-top { display: flex; gap: 11px; }.trip-icon { flex: 0 0 auto; display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; font-size: 21px; }.trip-card h3 { margin: 1px 0 4px; font-size: 16px; }.trip-destination { color: var(--muted); font-size: 12px; }.trip-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 12px; color: var(--muted); font-size: 11px; }.trip-card-meta span { display: flex; align-items: center; gap: 5px; }.trip-person { display: flex; align-items: center; gap: 9px; padding-top: 12px; border-top: 1px solid #edf1f0; }.trip-person img, .trip-person-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }.trip-person-avatar { display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 800; }.trip-person strong, .trip-person small { display: block; }.trip-person strong { font-size: 11px; }.trip-person small { color: var(--muted); font-size: 9px; }.map-panel { position: relative; }.map-panel #travel-map { width: 100%; height: 100%; background: #dce9e4; }.map-legend { position: absolute; z-index: 500; left: 18px; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.93); box-shadow: var(--shadow-small); font-size: 10px; }.map-legend span { display: flex; align-items: center; gap: 5px; }.legend-dot { width: 9px; height: 9px; border-radius: 50%; }.legend-dot.teal { background: var(--teal); }.legend-dot.coral { background: var(--coral); }.map-mobile-toggle { display: none; }
.travel-marker { background: transparent; border: 0; }.marker-pin { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border: 4px solid white; border-radius: 50% 50% 50% 8px; background: var(--marker); box-shadow: 0 6px 17px rgba(23,59,59,.26); font-size: 21px; transform: rotate(-45deg); transition: transform .2s; }.marker-pin span { transform: rotate(45deg); }.travel-marker.selected .marker-pin { background: var(--coral); transform: rotate(-45deg) scale(1.15); }.leaflet-popup-content-wrapper { border-radius: 15px; box-shadow: var(--shadow); }.leaflet-popup-content { margin: 16px; font-family: var(--font-sans); }.popup-card { min-width: 210px; }.popup-card small { color: var(--coral); font-weight: 800; }.popup-card strong { display: block; margin: 3px 0 4px; font-size: 15px; }.popup-card p { margin: 0; color: var(--muted); font-size: 11px; }.loading-state, .empty-state { display: grid; place-items: center; min-height: 280px; padding: 30px; color: var(--muted); text-align: center; }.loading-state span { width: 35px; height: 35px; border: 3px solid var(--teal-soft); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }.loading-state p { margin-top: 10px; font-size: 12px; }.empty-state b { font-size: 40px; }.empty-state strong { margin-top: 8px; }.empty-state p { font-size: 12px; }.empty-state .button { margin-top: 10px; }
.map-close { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.own-trips { padding: 70px 0 95px; }.split-heading.compact h2 { font-size: 37px; margin-bottom: 0; }.own-trip-grid { display: grid; gap: 10px; margin-top: 23px; }.own-trip-grid article { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: white; }.own-trip-grid article > span { font-size: 26px; }.own-trip-grid article div { flex: 1; }.own-trip-grid strong, .own-trip-grid small { display: block; }.own-trip-grid small { color: var(--muted); font-size: 12px; }.status-pill { padding: 5px 9px; border-radius: 20px; background: #e3f3e8; color: #347249; font-size: 10px; }

.trip-create-section { padding: 62px 0 100px; background: #f5f8f6; }.trip-create-heading { margin-bottom: 35px; text-align: center; }.trip-create-heading .eyebrow { justify-content: center; margin-top: 24px; }.trip-create-heading h1 { margin-bottom: 12px; font-size: 48px; }.trip-create-heading p { color: var(--muted); }.trip-form-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr); align-items: start; gap: 24px; }.destination-picker { position: sticky; top: 100px; overflow: hidden; padding: 24px; border: 1px solid rgba(17,100,102,.1); border-radius: 24px; background: white; box-shadow: 0 12px 45px rgba(23,59,59,.07); }.destination-picker-head { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }.destination-picker-head > span { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 12px; background: #ffe9e5; color: var(--coral); font-weight: 800; }.destination-picker-head h2 { margin: 0 0 2px; font-size: 19px; }.destination-picker-head p { margin: 0; color: var(--muted); font-size: 11px; }.destination-picker #destination-map { height: 460px; margin-top: 12px; border-radius: 15px; background: #dce9e4; }.coordinate-status { display: flex; align-items: center; gap: 9px; padding: 12px 4px 4px; color: var(--muted); font-size: 12px; }.coordinate-status p { margin: 0; }.coordinate-status.active { color: var(--teal); font-weight: 700; }.map-privacy { display: flex; gap: 8px; margin-top: 12px; padding: 11px; border-radius: 10px; background: #f1f7f5; }.map-privacy p { margin: 0; color: var(--muted); font-size: 10px; }

/* Static pages */
.static-hero { padding: 100px 0 80px; background: var(--teal); color: white; text-align: center; }.static-hero .eyebrow { justify-content: center; color: #ffe0a1; }.static-hero h1 { font-size: 58px; }.static-hero p { max-width: 700px; margin: 0 auto; color: rgba(255,255,255,.74); font-size: 18px; }.static-content { padding: 80px 0 110px; background: white; }.principle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.principle-grid article { padding: 27px; border-radius: 18px; background: var(--soft); }.principle-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); font-weight: 800; }.principle-grid h2 { margin: 18px 0 8px; font-size: 20px; }.principle-grid p, .prose p { color: var(--muted); }.content-callout { margin-top: 35px; padding: 30px; border-radius: 20px; background: #fff3d8; }.content-callout h2 { font-size: 25px; }.content-callout li { margin: 8px 0; }.prose h2 { margin-top: 35px; }

@media (max-width: 1050px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }.hero-image-wrap img { height: 500px; }.floating-card-top { left: -12px; }.floating-card-bottom { right: -5px; }
    .benefit-card { padding: 25px; }.steps-grid { gap: 45px; }.idea-scroller { grid-template-columns: repeat(5, 210px); overflow-x: auto; padding-bottom: 15px; }.safety-panel { grid-template-columns: .5fr 1.4fr; }.safety-points { grid-column: 2; }.cta-card { padding: 45px; }
    .wizard-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 30px; }.wizard-intro h1 { font-size: 38px; }
}

@media (max-width: 820px) {
    .container { width: min(100% - 28px, 680px); }.site-header { height: 70px; }.nav-toggle { display: block; }.main-nav { position: absolute; left: 14px; right: 14px; top: 64px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 13px; border-radius: 15px; background: white; box-shadow: var(--shadow); }.main-nav.open { display: flex; }.main-nav > a, .link-button { padding: 12px; text-align: left; }.nav-profile { padding: 10px; }.logout-form { padding: 0 10px; }
    .hero { padding: 40px 0 60px; }.hero-grid { grid-template-columns: 1fr; }.hero-copy { text-align: center; }.hero-copy .eyebrow, .hero-actions, .hero-proof { justify-content: center; }.hero-lead { margin-inline: auto; }.hero-visual { max-width: 620px; margin: 0 auto; }.hero-image-wrap img { height: 480px; }.floating-card-top { top: 45px; }.trust-items { flex-wrap: wrap; padding: 18px 0; justify-content: center; }.trust-items span { flex: 1 1 220px; justify-content: center; }
    .section { padding: 78px 0; }.benefit-grid { grid-template-columns: 1fr; }.benefit-card { min-height: 300px; }.benefit-card p { min-height: auto; }.steps-grid { grid-template-columns: 1fr; }.steps-visual { min-height: 500px; }.split-heading { display: block; }.safety-panel { grid-template-columns: 1fr; text-align: center; }.safety-stamp { margin: auto; }.safety-panel .eyebrow { justify-content: center; }.safety-points { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; text-align: left; }.cta-card { display: block; text-align: center; }.cta-card .eyebrow { justify-content: center; }.cta-card .button { margin-top: 25px; }.footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 25px; }
    .auth-shell { grid-template-columns: 1fr; }.auth-aside { min-height: 530px; padding: 30px; }.auth-aside h1 { font-size: 52px; }.auth-mini-map { display: none; }.auth-card-wrap { padding: 55px 24px; }
    .wizard-progress { overflow-x: auto; padding-block: 13px; }.wizard-progress-item { min-width: 130px; }.wizard-progress-item small { display: none; }.wizard-progress > i { min-width: 25px; margin-inline: 8px; }.wizard-section { padding-top: 35px; }.wizard-layout { grid-template-columns: 1fr; }.wizard-intro { position: static; }.wizard-intro h1 { font-size: 40px; }.wizard-card { padding: 27px; }
    .portal-heading { align-items: flex-start; flex-direction: column; }.explore-shell { height: auto; min-height: calc(100vh - 260px); grid-template-columns: 1fr; }.result-panel { min-height: 580px; border-right: 0; }.map-panel { position: fixed; z-index: 1001; inset: 0; display: none; padding-top: 55px; background: white; }.map-panel.open { display: block; }.map-close { position: absolute; z-index: 1002; right: 12px; top: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border: 0; border-radius: 9px; background: white; box-shadow: var(--shadow-small); font-size: 12px; font-weight: 800; }.map-mobile-toggle { display: block; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; background: white; }.trip-form-layout { grid-template-columns: 1fr; }.destination-picker { position: static; }.destination-picker #destination-map { height: 380px; }
}

@media (max-width: 560px) {
    .hero h1 { font-size: 47px; }.hero-actions { flex-direction: column; gap: 16px; }.hero-image-wrap { border-width: 7px; }.hero-image-wrap img { height: 400px; object-position: 61% center; }.floating-card { min-width: 205px; }.floating-card-top { left: -3px; }.floating-card-bottom { right: -3px; bottom: 35px; }
    .centered-heading h2, .split-heading h2, .steps-copy h2 { font-size: 39px; }.section { padding: 65px 0; }.steps-visual { min-height: 400px; }.map-paper { inset: 10px 0; }.map-family-card { bottom: 25px; }.safety-panel { padding: 35px 24px; }.safety-panel h2 { font-size: 35px; }.safety-points { grid-template-columns: 1fr; }.cta-card { padding: 39px 20px; }.cta-card h2 { font-size: 32px; }.footer-grid { grid-template-columns: 1fr 1fr; }.footer-grid > div:first-child { grid-column: 1 / -1; }.footer-bottom { flex-direction: column; gap: 5px; }
    .form-grid.two, .segmented-options, .interest-grid { grid-template-columns: 1fr; }.auth-aside { min-height: 470px; }.auth-aside h1 { font-size: 45px; }.auth-quote { display: none; }.auth-card-wrap { padding: 45px 18px; }.auth-card-head h2 { font-size: 32px; }.status-card { padding: 36px 23px; }
    .wizard-card { padding: 20px; }.language-row { grid-template-columns: 1fr; }.language-row select { margin-left: 36px; }.wizard-actions { align-items: stretch; flex-direction: column-reverse; gap: 17px; }.wizard-actions .button { width: 100%; }.wizard-actions .back-link { text-align: center; }.child-card { padding: 18px; }.portal-hero { padding-top: 30px; }.portal-heading .button { width: 100%; }.filter-bar { width: calc(100% - 14px); margin-left: 14px; }.result-panel { min-height: 650px; }.trip-create-heading h1 { font-size: 40px; }.trip-create-section { padding-top: 40px; }.destination-picker { padding: 17px; }.destination-picker #destination-map { height: 330px; }.principle-grid { grid-template-columns: 1fr; }.static-hero { padding: 70px 0 60px; }.static-hero h1 { font-size: 44px; }
}

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

/* Profile management */
.nav-profile { color: var(--ink); text-decoration: none; padding: 4px 8px 4px 4px; border-radius: 24px; transition: background .2s; }
.nav-profile:hover { background: var(--soft); }
.profile-page { background: #f3f7f5; }
.profile-hero { padding: 52px 0; background: var(--teal); color: white; }
.profile-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.profile-identity { display: flex; align-items: center; gap: 24px; }
.profile-identity > img, .profile-avatar-large { width: 118px; height: 118px; flex: 0 0 auto; border: 6px solid rgba(255,255,255,.22); border-radius: 32px; object-fit: cover; box-shadow: 0 15px 35px rgba(4,38,39,.2); }
.profile-avatar-large { display: grid; place-items: center; background: #d9efec; color: var(--teal); font-size: 42px; font-weight: 800; }
.profile-identity .eyebrow { margin-bottom: 8px; color: #ffe0a1; }
.profile-identity h1 { margin: 0 0 6px; color: white; font-size: clamp(34px, 5vw, 52px); }
.profile-identity p { margin: 0; color: rgba(255,255,255,.7); }
.profile-content { padding: 52px 0 95px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); align-items: start; gap: 22px; }
.profile-main, .profile-side { display: grid; gap: 22px; }
.profile-panel { padding: 28px; border: 1px solid rgba(17,100,102,.1); border-radius: 21px; background: white; box-shadow: 0 8px 30px rgba(23,59,59,.055); }
.profile-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.profile-panel-head span { color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.profile-panel-head h2 { margin: 3px 0 0; font-size: 24px; }
.profile-panel-head a { flex: 0 0 auto; color: var(--teal); font-size: 12px; font-weight: 800; text-decoration: none; }
.profile-about > p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 25px 0 0; }
.profile-facts div { padding: 13px 15px; border-radius: 12px; background: var(--soft); }
.profile-facts dt { color: var(--muted); font-size: 10px; }
.profile-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; }
.profile-children-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-child { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.profile-child > img, .profile-child > span { width: 57px; height: 57px; flex: 0 0 auto; border-radius: 15px; object-fit: cover; }
.profile-child > span { display: grid; place-items: center; background: #fff0d2; color: #9b6a0d; font-weight: 800; }
.profile-child h3 { margin: 0 0 3px; font-size: 16px; }
.profile-child p { margin: 0; color: var(--muted); font-size: 11px; }
.profile-child small { color: var(--teal); font-size: 10px; }
.profile-tag-list { display: grid; gap: 8px; }
.profile-tag-list > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--soft); }
.profile-tag-list b { font-size: 12px; }.profile-tag-list small { color: var(--muted); font-size: 10px; }
.profile-interest-list { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-interest-list span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--tag-color) 30%, white); border-radius: 10px; background: color-mix(in srgb, var(--tag-color) 9%, white); font-size: 11px; font-weight: 700; }
.profile-interest-list b { font-size: 16px; }
.profile-privacy-card { display: flex; gap: 12px; padding: 20px; border-radius: 17px; background: #e3f1ee; }
.profile-privacy-card > span { font-size: 22px; }.profile-privacy-card strong { font-size: 12px; }.profile-privacy-card p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.profile-edit-nav-wrap { border-bottom: 1px solid var(--line); background: white; }
.profile-edit-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.profile-edit-back { color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.profile-edit-nav nav { display: flex; align-items: center; gap: 6px; }
.profile-edit-nav nav a { padding: 8px 12px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }
.profile-edit-nav nav a.active { background: var(--teal-soft); color: var(--teal); }
.current-upload { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; padding: 8px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 10px; }
.current-upload img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; }
.current-upload.compact { margin-bottom: 6px; padding: 5px; }.current-upload.compact img { width: 34px; height: 34px; }

/* Stable map layout */
.portal-hero { position: relative; z-index: 4; box-shadow: 0 5px 22px rgba(23,59,59,.045); }
.explore-shell { height: clamp(590px, calc(100vh - 245px), 760px); grid-template-columns: minmax(350px, 410px) minmax(0, 1fr); }
.result-panel { background: #f6f8f7; }
.result-panel-head { background: white; }
.result-search { position: relative; display: flex; align-items: center; margin: 12px 13px 3px; }
.result-search b { position: absolute; left: 13px; z-index: 1; color: var(--muted); font-size: 18px; font-weight: 500; }
.result-search input { width: 100%; height: 43px; padding: 9px 40px 9px 39px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-size: 12px; outline: 0; }
.result-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(17,100,102,.08); }
.result-search button { position: absolute; right: 7px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); cursor: pointer; }
.result-list { padding-top: 9px; }
.trip-card { padding: 15px; }
.trip-card-top { align-items: flex-start; }
.trip-card-title { min-width: 0; display: block; padding-top: 1px; }
.trip-card-title > strong { display: block; overflow: hidden; margin-bottom: 4px; color: var(--ink); font-size: 15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.trip-person > i { margin-left: auto; color: var(--coral); font-style: normal; font-weight: 800; }
.map-panel { min-width: 0; overflow: hidden; background: #dbe8e3; }
.map-panel #travel-map { position: absolute; inset: 0; z-index: 1; }
.map-toolbar { position: absolute; z-index: 500; left: 18px; top: 18px; }
.map-toolbar button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 0; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-small); color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 800; }
.map-status { position: absolute; z-index: 600; top: 18px; left: 50%; width: min(440px, calc(100% - 190px)); padding: 10px 13px; border-radius: 10px; background: #fff1d4; box-shadow: var(--shadow-small); color: #78560e; font-size: 11px; text-align: center; transform: translateX(-50%); }
.map-fallback { height: 100%; display: grid; place-items: center; color: var(--muted); }
.map-legend { z-index: 500; left: 18px; bottom: 28px; }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow-small) !important; }
.leaflet-control-zoom a { color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { padding: 3px 7px !important; background: rgba(255,255,255,.82) !important; font-family: var(--font-sans); font-size: 9px !important; }
.leaflet-popup-content-wrapper { border: 0; }
.popup-card > span { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.marker-pin { will-change: transform; }
body.map-open { overflow: hidden; }

@media (max-width: 900px) {
    .profile-layout { grid-template-columns: 1fr; }
    .profile-side { grid-template-columns: 1fr 1fr; }
    .profile-privacy-card { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .profile-hero-inner { align-items: flex-start; flex-direction: column; }
    .profile-edit-nav { align-items: stretch; flex-direction: column; gap: 7px; padding-block: 12px; }
    .profile-edit-nav nav { width: 100%; overflow-x: auto; }
    .profile-edit-nav nav a { flex: 0 0 auto; }
    .explore-shell { height: auto; grid-template-columns: 1fr; }
    .result-panel { min-height: calc(100vh - 300px); }
    .map-panel { padding-top: 0; }
    .map-panel #travel-map { top: 55px; height: auto; }
    .map-toolbar { top: 69px; }
    .map-status { top: 69px; width: calc(100% - 150px); }
    .map-close { height: 38px; }
}

@media (max-width: 560px) {
    .profile-hero { padding: 38px 0; }
    .profile-identity { align-items: flex-start; gap: 16px; }
    .profile-identity > img, .profile-avatar-large { width: 82px; height: 82px; border-radius: 23px; }
    .profile-avatar-large { font-size: 30px; }
    .profile-identity h1 { font-size: 31px; }
    .profile-hero .button { width: 100%; }
    .profile-content { padding-top: 30px; }
    .profile-panel { padding: 21px; }
    .profile-facts, .profile-children-grid, .profile-side { grid-template-columns: 1fr; }
    .profile-privacy-card { grid-column: auto; }
    .map-toolbar button span, .map-legend strong { display: none; }
    .map-legend { right: 12px; left: auto; bottom: 18px; }
}

/* Own trip management */
.own-trip-actions { flex: 0 0 auto !important; display: flex; align-items: center; gap: 9px; }
.own-trip-edit { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 11px; border: 1px solid #c9dbd7; border-radius: 9px; background: white; color: var(--teal); font-size: 11px; font-weight: 800; text-decoration: none; transition: border-color .2s, background .2s; }
.own-trip-edit:hover { border-color: var(--teal); background: var(--teal-soft); }

@media (max-width: 650px) {
    .own-trip-grid article { align-items: flex-start; flex-wrap: wrap; }
    .own-trip-grid article > div:not(.own-trip-actions) { min-width: calc(100% - 50px); }
    .own-trip-actions { width: 100%; justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--line); }
}

/* Public family profiles and profile links on the map */
.trip-card { padding: 0; overflow: hidden; cursor: default; }
.trip-card-select { width: 100%; display: block; padding: 15px 15px 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.trip-card .trip-person { margin: 0; padding: 12px 15px 14px; border-top: 1px solid #edf1f0; color: inherit; text-decoration: none; transition: background .2s, color .2s; }
.trip-card .trip-person:hover, .trip-card .trip-person:focus-visible { background: var(--soft); color: var(--teal); outline: 0; }
.trip-card .trip-person > i { font-size: 10px; white-space: nowrap; }
.popup-profile-link { display: inline-flex; margin-top: 8px; color: var(--teal); font-size: 10px; font-weight: 800; text-decoration: none; }
.popup-profile-link:hover { text-decoration: underline; }

.public-profile-hero { position: relative; overflow: hidden; }
.public-profile-hero::after { content: ''; position: absolute; right: -90px; bottom: -145px; width: 340px; height: 340px; border: 55px solid rgba(255,255,255,.045); border-radius: 50%; pointer-events: none; }
.public-profile-hero .profile-hero-inner { position: relative; z-index: 1; }
.public-profile-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.public-profile-badge { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 20px; background: #e2f2e6; color: #39714b !important; font-size: 10px !important; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap; }
.public-children-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.public-child-card { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fbfdfc; }
.public-child-card .profile-child { padding: 0; border: 0; }
.public-child-bio { margin: 13px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.public-trip-list { display: grid; gap: 12px; }
.public-trip-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 17px; border: 1px solid color-mix(in srgb, var(--trip-color) 25%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--trip-color) 5%, white); }
.public-trip-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--trip-color) 14%, white); font-size: 24px; }
.public-trip-card small { color: var(--trip-color); font-size: 10px; font-weight: 800; }
.public-trip-card h3 { margin: 2px 0 7px; font-size: 18px; }
.public-trip-card p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.public-trip-card .public-trip-meta { margin-top: 0; color: var(--ink); font-size: 10px; font-weight: 700; line-height: 1.7; }

@media (max-width: 650px) {
    .public-children-list { grid-template-columns: 1fr; }
    .public-trip-card { grid-template-columns: 42px minmax(0, 1fr); padding: 14px; }
    .public-trip-icon { width: 42px; height: 42px; border-radius: 11px; font-size: 20px; }
}

/* Member contact and messaging */
.nav-messages { display: inline-flex; align-items: center; gap: 6px; }
.nav-messages > span { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 12px; background: var(--coral); color: white; font-size: 9px; line-height: 1; }
.contact-panel { position: relative; overflow: hidden; }
.contact-panel::after { content: ''; position: absolute; right: -48px; top: -48px; width: 130px; height: 130px; border-radius: 50%; background: var(--teal-soft); opacity: .55; pointer-events: none; }
.contact-panel > * { position: relative; z-index: 1; }
.contact-panel-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 14px; background: var(--teal-soft); font-size: 23px; }
.contact-panel .eyebrow { margin-bottom: 7px; font-size: 9px; }
.contact-panel h2 { margin-bottom: 9px; font-size: 25px; }
.contact-panel > p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact-panel-active { background: #f0faf7; }
.contact-panel-locked { background: #fafbf9; }
.common-interest-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.common-interest-list span { padding: 7px 9px; border: 1px solid color-mix(in srgb, var(--tag-color) 30%, white); border-radius: 20px; background: color-mix(in srgb, var(--tag-color) 8%, white); font-size: 10px; font-weight: 800; }
.contact-form { display: grid; gap: 14px; margin-top: 17px; }
.contact-safety-note { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; text-align: center; }

.messages-page { min-height: 100vh; background: #f3f7f5; }
.messages-hero { padding: 48px 0 42px; background: white; border-bottom: 1px solid var(--line); }
.messages-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.messages-heading h1 { margin-bottom: 8px; font-size: clamp(38px, 5vw, 58px); }
.messages-heading p { margin: 0; color: var(--muted); }
.messages-content { padding: 38px 0 90px; }
.messages-container { max-width: 900px; }
.messages-empty { padding: 65px 30px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow-small); text-align: center; }
.messages-empty > span { width: 74px; height: 74px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 23px; background: var(--teal-soft); font-size: 33px; }
.messages-empty h2 { margin-bottom: 9px; font-size: 28px; }
.messages-empty p { max-width: 570px; margin: 0 auto 24px; color: var(--muted); }
.conversation-list { overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow-small); }
.conversation-list-item { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 17px; min-height: 112px; padding: 20px 22px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s; }
.conversation-list-item:last-child { border-bottom: 0; }
.conversation-list-item:hover, .conversation-list-item:focus-visible { background: var(--soft); outline: 0; }
.conversation-list-item.unread { background: #f4fbf9; }
.conversation-list-item.unread::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--coral); }
.conversation-list-item > img, .conversation-list-item > .message-avatar { width: 62px; height: 62px; border-radius: 18px; object-fit: cover; }
.message-avatar { display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-size: 22px; font-weight: 800; }
.conversation-preview { min-width: 0; display: block; }
.conversation-preview-top { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.conversation-preview-top strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-preview-top time { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.conversation-interest { display: block; margin: 3px 0 5px; color: var(--interest-color); font-size: 9px; font-weight: 800; }
.conversation-excerpt { display: block; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-list-item > i { color: var(--coral); font-style: normal; font-weight: 800; }
.unread-count { min-width: 26px; height: 26px; display: grid; place-items: center; padding: 0 6px; border-radius: 14px; background: var(--coral); color: white; font-size: 10px; }

.conversation-header { padding: 22px 0; border-bottom: 1px solid var(--line); background: white; }
.conversation-header-inner { max-width: 900px; display: grid; grid-template-columns: 42px 58px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.conversation-back { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--teal); text-decoration: none; }
.conversation-header-inner > img, .conversation-header-inner > .message-avatar { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; }
.conversation-person { min-width: 0; }
.conversation-person > small { color: var(--muted); font-size: 9px; }
.conversation-person h1 { overflow: hidden; margin: 0 0 4px; font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-person > span { display: block; color: var(--interest-color); font-size: 9px; font-weight: 800; }
.conversation-profile-link { font-size: 11px; white-space: nowrap; }
.conversation-content { padding: 27px 0 75px; }
.conversation-container { max-width: 900px; }
.message-safety-note { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 25px; color: var(--muted); text-align: center; }
.message-safety-note p { margin: 0; font-size: 9px; line-height: 1.45; }
.message-safety-note strong { color: var(--ink); }
.message-thread { display: flex; flex-direction: column; gap: 9px; padding: 6px 0 24px; }
.message-row { display: flex; scroll-margin-bottom: 180px; }
.message-row.mine { justify-content: flex-end; }
.message-bubble { max-width: min(72%, 620px); padding: 12px 15px 9px; border-radius: 17px 17px 17px 5px; background: white; box-shadow: 0 4px 18px rgba(23,59,59,.06); }
.message-row.mine .message-bubble { border-radius: 17px 17px 5px 17px; background: var(--teal); color: white; }
.message-bubble p { margin: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.message-bubble time { display: block; margin-top: 5px; color: var(--muted); font-size: 8px; text-align: right; }
.message-row.mine .message-bubble time { color: rgba(255,255,255,.65); }
.message-composer { position: sticky; bottom: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.message-composer > label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; }
.message-compose-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.message-compose-row textarea { width: 100%; min-height: 74px; resize: vertical; padding: 11px 13px; border: 1px solid #d5e1df; border-radius: 12px; color: var(--ink); line-height: 1.5; }
.message-compose-row .button { min-height: 48px; }
.message-compose-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 8px; }

@media (max-width: 820px) {
    .main-nav { gap: 0; }
    .nav-messages { justify-content: flex-start; }
    .messages-heading { align-items: flex-start; flex-direction: column; }
    .conversation-profile-link { display: none; }
    .conversation-header-inner { grid-template-columns: 42px 50px minmax(0, 1fr); }
    .conversation-header-inner > img, .conversation-header-inner > .message-avatar { width: 50px; height: 50px; }
}

@media (max-width: 560px) {
    .public-profile-actions { width: 100%; justify-content: stretch; }
    .public-profile-actions .button { width: 100%; }
    .messages-hero { padding: 34px 0 30px; }
    .messages-heading .button { width: 100%; }
    .messages-content { padding-top: 22px; }
    .conversation-list-item { grid-template-columns: 50px minmax(0, 1fr) auto; gap: 11px; min-height: 96px; padding: 15px 13px; }
    .conversation-list-item > img, .conversation-list-item > .message-avatar { width: 50px; height: 50px; border-radius: 14px; }
    .conversation-preview-top time { display: none; }
    .message-bubble { max-width: 88%; }
    .message-compose-row { grid-template-columns: 1fr; }
    .message-compose-row .button { width: 100%; }
    .message-compose-meta { align-items: flex-start; flex-direction: column; }
}

/* Message notification settings */
.notification-status { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 13px; background: var(--soft); }
.notification-status > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #dfe7e4; color: var(--muted); font-size: 13px; font-weight: 800; }
.notification-status.enabled { background: #edf8f2; }
.notification-status.enabled > span { background: #d5eedf; color: #34734a; }
.notification-status strong { display: block; font-size: 12px; }
.notification-status p { margin: 2px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.notification-settings-card { align-self: start; }
.notification-choice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fbfdfc; cursor: pointer; }
.notification-choice > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.notification-switch { position: relative; width: 54px; height: 30px; padding: 3px; border-radius: 18px; background: #b7c4c1; transition: background .2s; }
.notification-switch i { width: 24px; height: 24px; display: block; border-radius: 50%; background: white; box-shadow: 0 2px 7px rgba(23,59,59,.22); transition: transform .2s; }
.notification-choice > input:checked + .notification-switch { background: var(--teal); }
.notification-choice > input:checked + .notification-switch i { transform: translateX(24px); }
.notification-choice > input:focus-visible + .notification-switch { outline: 3px solid rgba(243,182,58,.75); outline-offset: 3px; }
.notification-choice-copy strong, .notification-choice-copy small { display: block; }
.notification-choice-copy strong { font-size: 14px; }
.notification-choice-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.notification-example { display: flex; gap: 13px; padding: 18px; border-radius: 15px; background: #fff7e4; }
.notification-example > span { font-size: 25px; }
.notification-example strong { font-size: 12px; }
.notification-example p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

@media (max-width: 560px) {
    .notification-choice { align-items: flex-start; padding: 17px; }
    .notification-settings-section .wizard-card { padding: 20px; }
}

/* Shared trip agreements */
.travel-agreement-card { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 17px; margin-bottom: 24px; padding: 21px; border: 1px solid color-mix(in srgb, var(--trip-color) 30%, var(--line)); border-radius: 20px; background: color-mix(in srgb, var(--trip-color) 6%, white); box-shadow: var(--shadow-small); scroll-margin-top: 100px; }
.travel-agreement-card.accepted { border-color: #9ccbb0; background: #edf8f2; }
.travel-agreement-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: color-mix(in srgb, var(--trip-color) 16%, white); font-size: 27px; }
.travel-agreement-card.accepted .travel-agreement-icon { background: #d5eedf; }
.travel-agreement-actions { display: grid; gap: 8px; min-width: 178px; }
.travel-agreement-actions .button { width: 100%; }
.travel-agreement-copy { min-width: 0; }
.travel-agreement-copy .eyebrow { margin-bottom: 2px; font-size: 9px; }
.travel-agreement-copy h2 { margin: 0 0 5px; font-size: 22px; }
.travel-agreement-copy > p:not(.travel-agreement-meta) { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.travel-agreement-copy > small { display: block; margin-top: 8px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.travel-agreement-meta { margin: 0; color: var(--ink); font-size: 10px; font-weight: 700; }
.travel-proposal-decision { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--trip-color) 22%, var(--line)); }
.travel-proposal-decision > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.travel-proposal-decision > div { display: flex; align-items: center; gap: 8px; }
.travel-proposal-decision form { margin: 0; }
.button-decline { min-height: 43px; padding: 9px 15px; border: 1px solid #d8b9b4; border-radius: 11px; background: white; color: var(--danger); cursor: pointer; font-size: 11px; font-weight: 800; }
.travel-proposal-waiting { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.travel-proposal-waiting > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--teal); }
.travel-proposal-waiting p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.travel-proposal-waiting strong { color: var(--ink); }
.travel-proposal-create { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 5px 20px rgba(23,59,59,.05); }
.travel-proposal-create > summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 17px 19px; cursor: pointer; list-style: none; }
.travel-proposal-create > summary::-webkit-details-marker { display: none; }
.travel-proposal-create > summary > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff2d5; color: #986b12; font-size: 20px; }
.travel-proposal-create > summary strong, .travel-proposal-create > summary small { display: block; }
.travel-proposal-create > summary strong { font-size: 13px; }
.travel-proposal-create > summary small { color: var(--muted); font-size: 9px; }
.travel-proposal-create > summary > i { color: var(--coral); font-size: 22px; font-style: normal; transition: transform .2s; }
.travel-proposal-create[open] > summary > i { transform: rotate(45deg); }
.travel-proposal-create-body { padding: 20px; border-top: 1px solid var(--line); }
.travel-proposal-create-body > p { color: var(--muted); font-size: 11px; }
.travel-proposal-empty { display: flex; gap: 13px; padding: 10px; }
.travel-proposal-empty > span { font-size: 30px; }
.travel-proposal-empty strong { font-size: 13px; }
.travel-proposal-empty p { margin: 3px 0 6px; color: var(--muted); font-size: 10px; }

.shared-trips-section { padding: 68px 0; background: #e5f2ef; border-bottom: 1px solid #d4e6e1; }
.shared-trips-section .split-heading > p { margin-bottom: 8px; }
.shared-trip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.shared-trip-dashboard-card { padding: 24px; border: 1px solid color-mix(in srgb, var(--trip-color) 27%, white); border-radius: 22px; background: white; box-shadow: var(--shadow-small); }
.shared-trip-dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.shared-trip-dashboard-top > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--trip-color) 13%, white); font-size: 24px; }
.shared-trip-dashboard-top > b { padding: 6px 9px; border-radius: 20px; background: #dff1e6; color: #34724a; font-size: 9px; }
.shared-trip-dashboard-top > b.completed { background: #e8eeec; color: #536b68; }
.shared-trip-dashboard-card h3 { margin: 18px 0 7px; font-size: 22px; }
.shared-trip-dashboard-meta { color: var(--muted); font-size: 11px; line-height: 1.7; }
.shared-trip-partner { display: flex; align-items: center; gap: 10px; margin: 18px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shared-trip-partner > img, .shared-trip-partner > span { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; object-fit: cover; }
.shared-trip-partner > span { display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); font-weight: 800; }
.shared-trip-partner small, .shared-trip-partner strong { display: block; }
.shared-trip-partner small { color: var(--muted); font-size: 8px; }
.shared-trip-partner strong { font-size: 12px; }
.status-pill.matched { background: #dff1e6; color: #34724a; }

@media (max-width: 760px) {
    .travel-agreement-card { grid-template-columns: 48px minmax(0, 1fr); }
    .travel-agreement-icon { width: 48px; height: 48px; border-radius: 14px; font-size: 23px; }
    .travel-agreement-card > .button { grid-column: 1 / -1; width: 100%; }
    .travel-agreement-actions { grid-column: 1 / -1; width: 100%; }
    .travel-proposal-decision { align-items: stretch; flex-direction: column; }
    .travel-proposal-decision > div { align-items: stretch; flex-direction: column; }
    .travel-proposal-decision .button, .travel-proposal-decision .button-decline { width: 100%; }
    .shared-trip-grid { grid-template-columns: 1fr; }
}

/* Travel reports */
.inline-alert.warning { border: 1px solid #efd79c; background: #fff7df; color: #78560e; }
.shared-trip-report-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.shared-trip-report-actions .button { grid-column: 1 / -1; width: 100%; }
.shared-trip-report-actions .own-trip-edit { text-align: center; }
.shared-trip-report-actions .needs-review { border-color: var(--coral); background: #fff0ed; color: var(--coral-dark); }
.report-form-page { background: #f4f7f5; }
.report-form-hero { padding: 48px 0 42px; background: var(--teal); color: white; }
.report-form-hero .back-link { display: inline-flex; margin-bottom: 24px; color: rgba(255,255,255,.72); }
.report-form-hero .eyebrow { color: #ffe0a1; }
.report-form-hero h1 { margin-bottom: 12px; color: white; font-size: clamp(40px, 5vw, 60px); }
.report-form-hero p { margin: 0; color: rgba(255,255,255,.72); }
.report-editor-section { padding-top: 45px; }
.report-editor-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); align-items: start; gap: 25px; }
.report-editor-aside { position: sticky; top: 105px; display: grid; gap: 16px; }
.report-editor-aside .profile-panel h2 { font-size: 24px; }
.report-editor-aside .profile-panel > p { color: var(--muted); font-size: 12px; }
.report-rating-field { padding: 0; border: 0; }
.report-rating-field legend { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.report-rating-field > div { display: flex; flex-wrap: wrap; gap: 8px; }
.report-rating-field label { cursor: pointer; }
.report-rating-field input { position: absolute; opacity: 0; }
.report-rating-field label > span { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: #d4ad55; font-size: 12px; letter-spacing: 1px; }
.report-rating-field label small { color: var(--muted); font-size: 9px; letter-spacing: 0; }
.report-rating-field input:checked + span { border-color: var(--yellow); background: #fff7df; box-shadow: 0 0 0 2px rgba(243,182,58,.15); }
.report-rating-field input:focus-visible + span { outline: 3px solid rgba(243,182,58,.75); outline-offset: 2px; }
.report-experience-form { margin-bottom: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fbfdfc; }
.current-report-image { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 8px; border-radius: 11px; background: var(--soft); }
.current-report-image img { width: 80px; height: 62px; border-radius: 9px; object-fit: cover; }
.current-report-image.cover img { width: 130px; height: 80px; }
.current-report-image label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; cursor: pointer; }
.current-report-image input { accent-color: var(--coral); }
.report-public-choice { display: grid; grid-template-columns: auto 48px minmax(0, 1fr); align-items: center; gap: 14px; padding: 20px; border: 1px solid #b8d6d0; border-radius: 17px; background: #eef8f6; cursor: pointer; }
.report-public-choice > input { width: 20px; height: 20px; accent-color: var(--teal); }
.report-public-choice > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: white; font-size: 23px; }
.report-public-choice strong { font-size: 14px; }
.report-public-choice p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.reports-page { background: #f3f7f5; }
.reports-index-hero { padding: 75px 0 68px; background: var(--teal); color: white; }
.reports-index-hero h1 { margin-bottom: 18px; color: white; font-size: clamp(44px, 6vw, 70px); }
.reports-index-hero .eyebrow { color: #ffe0a1; }
.reports-index-hero p { max-width: 670px; margin: 0; color: rgba(255,255,255,.75); font-size: 17px; }
.reports-index-content { padding: 58px 0 100px; }
.report-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.report-card { overflow: hidden; display: flex; flex-direction: column; min-height: 440px; border: 1px solid var(--line); border-radius: 23px; background: white; box-shadow: var(--shadow-small); color: inherit; text-decoration: none; transition: transform .22s, box-shadow .22s; }
.report-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.report-card > img, .report-card-placeholder { width: 100%; height: 210px; object-fit: cover; }
.report-card-placeholder { display: grid; place-items: center; background: color-mix(in srgb, var(--report-color) 18%, var(--soft)); font-size: 58px; }
.report-card-body { flex: 1; display: flex; flex-direction: column; padding: 22px; }
.report-card-body > span { color: var(--coral); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.report-card-body h2 { margin: 8px 0; font-size: 23px; }
.report-card-body > p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.report-card-body > div { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 15px; border-top: 1px solid var(--line); }
.report-card-body > div strong { color: var(--yellow); font-size: 12px; letter-spacing: 1px; }
.report-card-body > div small { color: var(--muted); font-size: 8px; text-align: right; }

.report-detail-hero { position: relative; min-height: 500px; display: flex; align-items: flex-end; overflow: hidden; background: var(--teal); color: white; }
.report-detail-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.report-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,42,43,.1), rgba(9,42,43,.88)); }
.report-detail-hero:not(.with-image) .report-hero-overlay { background: radial-gradient(circle at 80% 15%, rgba(255,255,255,.1), transparent 35%), linear-gradient(135deg, var(--teal), #0b494b); }
.report-detail-heading { position: relative; z-index: 1; padding: 65px 0 52px; }
.report-detail-heading .back-link { display: inline-flex; margin-bottom: 32px; color: rgba(255,255,255,.75); }
.report-detail-heading .eyebrow { margin: 15px 0 7px; color: #ffe0a1; }
.report-detail-heading h1 { max-width: 760px; margin-bottom: 13px; color: white; font-size: clamp(42px, 6vw, 68px); }
.report-detail-heading > p { max-width: 720px; color: rgba(255,255,255,.84); font-size: 17px; line-height: 1.65; }
.report-visibility { display: inline-flex; padding: 7px 10px; border-radius: 20px; background: rgba(255,255,255,.16); font-size: 9px; font-weight: 800; }
.report-visibility.public { background: #dff1e6; color: #28613d; }
.report-visibility.pending { background: #fff0c7; color: #76530c; }
.report-visibility.rejected { background: #ffe0dc; color: #8c3c32; }
.report-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 22px; }
.report-byline > span { color: #ffd36f; letter-spacing: 2px; }
.report-byline strong { font-size: 11px; }
.report-byline small { color: rgba(255,255,255,.7); font-size: 9px; }
.report-approval-bar { padding: 20px 0; border-bottom: 1px solid #ecd89f; background: #fff7df; }
.report-approval-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.report-approval-bar .container > div { display: flex; align-items: center; gap: 12px; }
.report-approval-bar p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.report-approval-bar p strong { color: var(--ink); font-size: 12px; }
.report-approval-bar form { margin: 0; }
.report-detail-content { padding: 55px 0 100px; }
.report-author-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 35px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.report-author-actions strong, .report-author-actions small { display: block; }
.report-author-actions small { color: var(--muted); font-size: 9px; }
.report-private-note { margin-bottom: 35px; padding: 13px 16px; border-radius: 12px; background: #e8f2f0; color: var(--muted); font-size: 10px; }
.report-prose { color: #324e4e; font-size: 17px; line-height: 1.95; }
.report-experience-heading { margin: 75px 0 25px; }
.report-experience-heading h2 { font-size: 38px; }
.report-experience-list { display: grid; gap: 25px; }
.report-experience { overflow: hidden; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 6px 25px rgba(23,59,59,.05); }
.report-experience.with-image { grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); }
.report-experience > img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.report-experience > div { padding: 30px; }
.report-experience > div > span { color: var(--coral); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.report-experience h3 { margin: 8px 0 13px; font-size: 27px; }
.report-experience p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.report-detail-footer { display: flex; align-items: center; gap: 14px; margin-top: 55px; padding: 24px; border-radius: 18px; background: #e6f2ef; }
.report-detail-footer > span { font-size: 30px; }
.report-detail-footer strong { font-size: 13px; }
.report-detail-footer p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }

@media (max-width: 1050px) {
    .main-nav { gap: 14px; font-size: 13px; }
    .report-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .report-editor-layout { grid-template-columns: 1fr; }
    .report-editor-aside { position: static; }
    .report-approval-bar .container { align-items: stretch; flex-direction: column; }
    .report-approval-bar .container > div:last-child { align-items: stretch; flex-direction: column; width: 100%; }
    .report-approval-bar button { width: 100%; }
    .report-experience.with-image { grid-template-columns: 1fr; }
    .report-experience > img { height: 330px; min-height: 0; }
}
@media (max-width: 560px) {
    .report-card-grid { grid-template-columns: 1fr; }
    .report-public-choice { grid-template-columns: auto 1fr; align-items: start; }
    .report-public-choice > span { display: none; }
    .report-author-actions { align-items: stretch; flex-direction: column; }
    .report-author-actions .button { width: 100%; }
    .report-detail-heading { padding-bottom: 38px; }
    .report-detail-heading > p { font-size: 14px; }
    .report-prose { font-size: 15px; }
    .report-experience > img { height: 240px; }
    .report-experience > div { padding: 22px; }
    .shared-trip-report-actions { grid-template-columns: 1fr; }
    .shared-trip-report-actions .button { grid-column: auto; }
}
