.halfway-shell { max-width: 1320px; }
.halfway-header .tool-header-copy { max-width: 760px; }
.halfway-form-card { padding: 24px; }
.halfway-travellers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.halfway-traveller-card { min-width: 0; margin: 0; padding: 17px; border: 1px solid var(--ui-border); border-radius: 15px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(150px, .65fr); gap: 12px; background: var(--ui-surface-soft); }
.halfway-traveller-card[hidden] { display: none; }
.halfway-traveller-card legend { width: calc(100% - 2px); padding: 0 8px; color: var(--ui-text); font: 800 10px/1 "Manrope", sans-serif; letter-spacing: .5px; text-transform: uppercase; }
.halfway-remove-traveller { float: right; padding: 0; border: 0; color: var(--ui-muted); background: transparent; font: 700 8px/1 "DM Sans", sans-serif; text-transform: none; cursor: pointer; }
.halfway-remove-traveller:hover { color: var(--ui-danger, #b44338); }
.halfway-group-controls { margin-top: 11px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.halfway-group-controls button { min-height: 36px; padding: 0 13px; border: 1px solid var(--ui-border); border-radius: 10px; color: var(--ui-brand); background: var(--ui-surface-soft); font: 800 9px "DM Sans", sans-serif; cursor: pointer; }
.halfway-group-controls button:disabled { opacity: .48; cursor: default; }
.halfway-group-controls span { color: var(--ui-muted); font-size: 8px; font-weight: 700; }
.halfway-place-control { position: relative; }
.halfway-place-control .goknowing-place-predictions { z-index: 30; }
.halfway-location-button { width: 34px; height: 34px; flex: 0 0 34px; margin-right: 6px; border: 0; border-radius: 9px; color: var(--ui-brand); background: color-mix(in srgb, var(--ui-brand) 10%, transparent); font: 800 18px/1 "Manrope", sans-serif; cursor: pointer; }
.halfway-options-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.halfway-submit-row { margin-top: 17px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.halfway-submit-row p { max-width: 650px; margin: 0; color: var(--ui-muted); font-size: 9px; line-height: 1.55; }
.halfway-submit-row p strong { color: var(--ui-text); }
.halfway-error { margin: 14px 0 0; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--ui-danger, #c44b3f) 28%, var(--ui-border)); border-radius: 10px; color: var(--ui-danger, #b44338); background: color-mix(in srgb, var(--ui-danger, #c44b3f) 6%, var(--ui-surface)); font-size: 10px; }
.halfway-loading { min-height: 126px; margin-top: 18px; display: flex; align-items: center; gap: 20px; }
.halfway-loading[hidden], .halfway-results[hidden] { display: none; }
.halfway-loader { width: 42px; height: 42px; flex: 0 0 42px; border: 3px solid color-mix(in srgb, var(--ui-brand) 18%, transparent); border-top-color: var(--ui-brand); border-radius: 50%; animation: halfway-spin .8s linear infinite; }
.halfway-loading h2 { margin: 6px 0 5px; color: var(--ui-text); font: 700 18px/1.2 "Manrope", sans-serif; }
.halfway-loading div > p:last-child { margin: 0; color: var(--ui-muted); font-size: 10px; }
@keyframes halfway-spin { to { transform: rotate(360deg); } }
.halfway-results { margin-top: 18px; }
.halfway-winner { min-height: 255px; padding: 31px; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 30px; color: #fff; border-color: transparent; background: radial-gradient(circle at 85% 15%, rgba(238,125,93,.28), transparent 34%), linear-gradient(135deg, var(--ui-nav), var(--ui-nav-soft)) !important; }
.halfway-winner::after { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -165px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02); }
.halfway-winner-copy { position: relative; z-index: 2; min-width: 0; }
.halfway-winner .tool-kicker { color: rgba(255,255,255,.58) !important; }
.halfway-winner h2 { margin: 8px 0 5px; color: #fff !important; font: 800 clamp(2rem, 5vw, 4.25rem)/1 "Manrope", sans-serif; letter-spacing: -2.5px; }
.halfway-winner-copy > p:not(.tool-kicker) { margin: 0; color: rgba(255,255,255,.65); font-size: 10px; }
.halfway-journeys { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.halfway-journeys span { min-width: 145px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.055); }
.halfway-journeys small, .halfway-journeys strong { display: block; }
.halfway-journeys small { color: rgba(255,255,255,.52); font-size: 7px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.halfway-journeys strong { margin-top: 5px; font: 700 12px/1.2 "Manrope", sans-serif; }
.halfway-winner-actions { margin-top: 18px; display: flex; gap: 9px; }
.halfway-winner-actions .tool-primary-button { min-height: 42px; text-decoration: none; background: var(--ui-brand); }
.halfway-winner-actions button { min-height: 42px; padding: 0 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 11px; color: #fff; background: rgba(255,255,255,.06); font: 700 9px "DM Sans", sans-serif; cursor: pointer; }
.halfway-score { position: relative; z-index: 2; width: 150px; height: 150px; flex: 0 0 150px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; display: grid; align-content: center; justify-items: center; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 9px rgba(255,255,255,.025); }
.halfway-score span { color: rgba(255,255,255,.55); font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.halfway-score strong { margin: 5px 0 2px; font: 800 47px/1 "Manrope", sans-serif; }
.halfway-score small { color: rgba(255,255,255,.55); font-size: 7px; }
.halfway-content-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .7fr); gap: 18px; align-items: start; }
.halfway-main-column, .halfway-side { display: grid; gap: 18px; }
.halfway-map-card .tool-map-canvas { height: 340px; border-radius: 12px; }
.halfway-route-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.halfway-route-actions a { padding: 8px 11px; border: 1px solid var(--ui-border); border-radius: 9px; color: var(--ui-brand); background: var(--ui-surface-soft); font-size: 8px; font-weight: 800; text-decoration: none; }
.halfway-options { display: grid; gap: 9px; }
.halfway-options-attribution { margin-top: 11px; }
.halfway-option { width: 100%; padding: 14px; border: 1px solid var(--ui-border); border-radius: 13px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(210px, .95fr) auto; gap: 14px; align-items: center; color: var(--ui-text); background: var(--ui-surface-soft); text-align: left; cursor: pointer; }
.halfway-option:hover, .halfway-option.is-selected { border-color: color-mix(in srgb, var(--ui-brand) 48%, var(--ui-border)); background: color-mix(in srgb, var(--ui-brand) 5%, var(--ui-surface)); }
.halfway-option-name strong, .halfway-option-name small { display: block; }
.halfway-option-name strong { font: 800 13px/1.2 "Manrope", sans-serif; }
.halfway-option-name small { margin-top: 5px; overflow: hidden; color: var(--ui-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.halfway-option-times { display: grid; grid-template-columns: repeat(2, minmax(86px, 1fr)); gap: 7px; }
.halfway-option-times span { padding: 8px; border-radius: 8px; background: var(--ui-surface); }
.halfway-option-times small, .halfway-option-times strong { display: block; }
.halfway-option-times small { color: var(--ui-muted); font-size: 7px; }
.halfway-option-times strong { margin-top: 3px; font: 700 10px "Manrope", sans-serif; }
.halfway-option-score { text-align: right; }
.halfway-option-score strong, .halfway-option-score small { display: block; }
.halfway-option-score strong { font: 800 23px/1 "Manrope", sans-serif; }
.halfway-option-score small { margin-top: 4px; color: var(--ui-muted); font-size: 7px; text-transform: uppercase; }
.halfway-explainer h2 { margin: 7px 0 10px; color: var(--ui-text); font: 700 18px/1.2 "Manrope", sans-serif; }
.halfway-explainer > p:not(.tool-kicker), .halfway-disclaimer { color: var(--ui-muted); font-size: 9px; line-height: 1.6; }
.halfway-weights { margin-top: 14px; display: grid; gap: 7px; }
.halfway-weight { display: grid; grid-template-columns: 82px 1fr 28px; gap: 7px; align-items: center; color: var(--ui-muted); font-size: 8px; }
.halfway-weight i { height: 5px; border-radius: 99px; display: block; background: var(--ui-brand); }
.halfway-fairness #halfwayFairnessMetrics { margin-top: 12px; display: grid; gap: 8px; }
.halfway-fairness span { padding: 11px; border: 1px solid var(--ui-border); border-radius: 10px; display: flex; justify-content: space-between; gap: 10px; background: var(--ui-surface-soft); }
.halfway-fairness small { color: var(--ui-muted); font-size: 8px; }
.halfway-fairness strong { color: var(--ui-text); font: 800 11px "Manrope", sans-serif; }
.halfway-disclaimer { max-width: 850px; margin: 13px auto 0; text-align: center; }
@media (max-width: 980px) { .halfway-travellers { grid-template-columns: 1fr; } .halfway-content-grid { grid-template-columns: 1fr; } .halfway-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .halfway-page input, .halfway-page select { font-size: 16px !important; } .halfway-form-card { padding: 18px; } .halfway-traveller-card, .halfway-options-grid, .halfway-side { grid-template-columns: 1fr; } .halfway-submit-row { align-items: stretch; flex-direction: column; } .halfway-submit-row .tool-primary-button { width: 100%; } .halfway-winner { min-height: 0; padding: 24px; align-items: flex-start; flex-direction: column; } .halfway-score { position: absolute; top: 20px; right: 20px; width: 100px; height: 100px; flex-basis: 100px; opacity: .24; } .halfway-winner-copy { max-width: calc(100% - 20px); } .halfway-option { grid-template-columns: 1fr auto; } .halfway-option-times { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 480px) { .halfway-group-controls, .halfway-winner-actions, .halfway-route-actions { align-items: stretch; flex-direction: column; } .halfway-winner-actions > *, .halfway-route-actions > * { width: 100%; justify-content: center; text-align: center; } .halfway-map-card .tool-map-canvas { height: 290px; } }
