/* Final layout layer: keep content in flow across languages and zoom levels. */
#search-view .v2-hero-content>h1 {line-height:1.15!important;overflow-wrap:normal;letter-spacing:-.055em!important}
#search-view .v2-hero-content>h1 span+span {margin-inline-start:.17em}
#search-view #route-form {margin-bottom:16px!important}
#search-view [data-i18n="location_hint"] {margin:0 0 16px!important;line-height:1.65;position:relative;z-index:1}
#search-view .v9-preferences {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px!important;padding:24px!important;margin:20px 0 24px!important;max-width:none;z-index:1}
#search-view .v9-preferences>div {grid-column:1/-1;min-width:0}
#search-view .v9-preferences strong {font-size:18px;line-height:1.5}
#search-view .v9-preferences small {font-size:13px;line-height:1.65;margin-top:6px}
#search-view .v9-preferences label {min-width:0!important;font-size:12px;line-height:1.5;gap:8px}
#search-view .v9-preferences select {min-width:0;min-height:48px;font-size:14px;padding:12px 30px 12px 12px;text-overflow:ellipsis}
#search-view .v9-preferences label:last-child {grid-column:1/-1}
#brand-logo,#brand-logo-results {display:flex;align-items:center;gap:10px;line-height:1.3}
#brand-logo::before,#brand-logo-results::before {content:''!important;display:block;flex:0 0 42px;width:42px!important;height:42px!important;border-radius:12px!important;background:#060c18 url('assets/virawise-logo-128.webp') center / contain no-repeat!important;box-shadow:none!important}
#feedback-modal {z-index:10050!important;overflow-y:auto;padding:24px 16px;overscroll-behavior:contain}
#feedback-modal.hidden {display:none!important}
#feedback-content {max-height:calc(100dvh - 48px);overflow-y:auto;overscroll-behavior:contain;transform:none!important}
#feedback-content h2 {padding-inline-end:32px;line-height:1.5}
#feedback-content textarea {resize:vertical;min-height:110px;max-height:240px}
#feedback-content button:focus-visible,#feedback-content textarea:focus-visible,#feedback-content select:focus-visible {outline:3px solid #34d399;outline-offset:3px}
#feedback-status {font-size:13px;line-height:1.6;overflow-wrap:anywhere;color:#a7f3d0;margin-top:12px}
#feedback-status[data-error="true"] {color:#fda4af}
html[data-theme="light"] #feedback-status {color:#067665!important}
html[data-theme="light"] #feedback-status[data-error="true"] {color:#be123c!important}
#feedback-form[aria-busy="true"] button[type="submit"] {opacity:.65;cursor:wait}
.v2-proofline,.v2-presets {flex-wrap:wrap;row-gap:10px!important}
.v13-timeline-place a {white-space:normal!important}
@media(min-width:1280px){#search-view {grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)!important}#search-view>.v2-hero-content {max-width:760px!important}}
@media(max-width:540px){#search-view .v9-preferences {grid-template-columns:1fr;padding:18px!important;gap:15px!important}#search-view .v9-preferences label:last-child {grid-column:auto}#search-view .v9-preferences strong {font-size:17px}#feedback-content {max-height:calc(100dvh - 32px)}#feedback-modal {padding:16px}#brand-logo::before,#brand-logo-results::before {flex-basis:34px;width:34px!important;height:34px!important}}

@media(max-width:768px){#feedback-launcher,#contact-shortcuts{position:static!important;transform:none!important;opacity:1!important}#contact-shortcuts{flex-direction:row;gap:10px}#feedback-launcher{margin-inline-start:auto}.home-footer{gap:18px!important;align-items:center!important}.home-footer nav{flex-basis:100%}}

#contact-actions{display:contents}
@media(max-width:768px){#contact-actions{display:flex;justify-content:center;gap:14px;align-items:center;padding:16px 20px 28px;background:var(--page-soft,#0b202d)}#feedback-launcher{margin-inline-start:0}}

html[data-theme="dark"] #results-nav-actions button:first-child{background:#173747!important;color:#e3f4f1!important;border:1px solid #416574!important}
html[data-theme="dark"] #log-mode a{color:#7de9c5!important;font-size:clamp(14px,1.35vw,19px);line-height:1.5;overflow-wrap:anywhere}

/* Critical visibility must survive dynamic utility-style rebuilding. */
[hidden],body>.hidden{display:none!important}

/* Preferences form their own grid row, leaving no empty half beside them. */
#search-view>.v2-hero-content,#search-view>.v2-visual{align-self:start}
#search-view>.v9-preferences{grid-column:1/-1;width:100%;margin:28px 0 32px!important;box-sizing:border-box}
@media(min-width:1100px){#search-view>.v9-preferences{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px!important}#search-view>.v9-preferences label:last-child{grid-column:auto}}
@media(max-width:768px){#search-view>.v9-preferences{margin:20px 0 28px!important}}

#search-view>.v18-planner-extras{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:16px 24px;align-items:center;margin:-12px 0 28px}
.v18-planner-extras .v12-onboarding{flex:1 1 280px;margin:0!important}
.v18-planner-extras .v2-presets,.v18-planner-extras .v2-proofline{flex:1 1 300px;margin:0!important}
.v18-planner-extras #auth-status-text{flex:1 1 180px;width:auto!important;min-height:0!important;margin:0!important}
#auth-status-text:empty{display:none!important}
@media(max-width:768px){.v18-planner-extras>*{flex-basis:100%!important}}

@media(min-width:831px){#search-view>.v2-visual{grid-column:2;grid-row:1}#search-view>.v9-preferences{grid-row:2}#search-view>.v18-planner-extras{grid-row:3}}
#search-view>.mt-8.w-full.max-w-3xl{margin-top:32px!important}
#search-view>.v2-capabilities{margin-top:48px!important}
