body { background: #edf1ee; }
.preview-workspace { width: calc(100% - 64px); max-width: 1400px; margin: 0 auto; padding: 40px 0 24px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.preview-head h1 { margin: 0 0 8px; font: 700 clamp(28px, 3vw, 40px)/1.1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.preview-head p { margin: 0; color: var(--muted); font-size: 16px; }
.preview-head > div { max-width: 760px; }
.preview-links { display: flex; flex-wrap: wrap; gap: 14px 22px; flex: none; }
.demo-notice { margin: -4px 0 22px; padding: 14px 18px; border-left: 3px solid #3e7868; background: #e0e9e4; color: #344e43; font-size: 14px; line-height: 1.6; border-radius: 0 12px 12px 0; }
.preview-next { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px 0 12px; }
@media (max-width: 700px) {
  .preview-controls { align-items: flex-end; }
  .preview-controls .scenario-label { display: grid; flex: 1 1 180px; gap: 6px; }
  .preview-controls .scenario-label select { width: 100%; font-size: 13px; }
}
.back-link { flex: none; font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.preview-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.platform-tabs { display: flex; gap: 4px; padding: 5px; border: 1px solid #cdd7d2; border-radius: 16px; background: #fff; }
.platform-tabs button { min-height: 44px; padding: 0 24px; border: 0; border-radius: 11px; background: transparent; color: #57665f; font-weight: 650; cursor: pointer; }
.platform-tabs button[aria-selected=true] { background: #172321; color: #fff; }
.scenario-label { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; font-size: 14px; color: #57665f; }
.scenario-label select { min-height: 44px; max-width: 100%; border: 1px solid #cdd7d2; border-radius: 12px; padding: 0 34px 0 14px; background: #fff; color: #172321; font: 500 14px/1.4 var(--body); }
.refresh-button { min-height: 44px; padding: 0 18px; border: 1px solid #cdd7d2; border-radius: 12px; background: #fff; color: #172321; font-weight: 600; cursor: pointer; }
.refresh-button:hover { background: #e2eae5; }
.device { --selected: #a8caff; --selected-bg: #253e5a; --car-text: #f1f4f5; --car-muted: #a5b2b9; display: grid; grid-template-columns: 76px minmax(0, 1fr); height: 622px; border: 8px solid #0a0e10; border-radius: 30px; background: #11191d; color: var(--car-text); box-shadow: 0 26px 65px -35px #192b2666; overflow: hidden; isolation: isolate; }
.device button:focus-visible { outline-color: var(--selected); outline-offset: -4px; }
.car-dock { display: flex; align-items: center; flex-direction: column; gap: 16px; padding: 20px 10px; border-right: 1px solid #2b373d; background: #0d1418; }
.car-clock { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: #d4dcdf; margin-bottom: 5px; }
.dock-app { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #253239; }
.dock-app.active { box-shadow: 0 0 0 2px #72d8ca inset; background: #102626; }
.dock-app img { width: 31px; height: 31px; border-radius: 7px; }
.dock-app svg { width: 25px; height: 25px; fill: none; stroke: #d2dce1; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock-spacer { flex: 1; }
.app-grid { width: 24px; height: 24px; fill: #c5d1d7; }
.car-app { min-width: 0; display: grid; grid-template-rows: 84px 54px minmax(0, 1fr) 38px; overflow: hidden; }
.preview-controls [hidden] { display: none !important; }
.car-app-header { grid-row: 1; }
.fuel-types { grid-row: 2; }
.car-content, .car-home { grid-row: 3; }
.car-app-footer { grid-row: 4; }
.car-app[data-view=home], .car-app[data-view=places] { grid-template-rows: 84px 0 minmax(0, 1fr) 38px; }
.header-actions { display: flex; gap: 8px; flex: none; }
.header-actions button { min-height: 40px; border: 1px solid #496475; border-radius: 12px; padding: 8px 16px; color: var(--selected); background: #20333f; cursor: pointer; }
.car-home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 24px; overflow: auto; background: radial-gradient(ellipse at top right, #254a45, transparent 75%), #152026; }
.feature-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; padding: 22px; min-height: 130px; text-align: left; border: 1px solid #56736c66; border-radius: 20px; background: #223731aa; color: #e9f4ef; cursor: pointer; }
.feature-card:hover { background: #34534a; }
.feature-card strong { font-size: 21px; letter-spacing: -.025em; }
.feature-card > span:last-child { color: #a3bbb1; font-size: 13px; line-height: 1.5; }
.feature-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #a8d8c4; color: #15382b; font: 700 23px var(--body); }
.parking-panel { padding: 24px; overflow-y: auto; }
.parking-panel h3 { color: #f1f4f5; font-size: 25px; letter-spacing: -.035em; }
.parking-panel p { color: #b6c6ca; line-height: 1.6; font-size: 15px; }
.parking-symbol { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: #102b20; background: #a8d8c4; font-size: 32px; font-weight: 700; }
.parking-panel .detail-back { display: block; margin-top: 12px; }
#parking-confirm { border-top: 1px solid #4a5c62; margin-top: 20px; }
.car-app[data-view=places] .station-copy strong { font-size: 20px; line-height: 1.3; }
.car-app-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; border-bottom: 1px solid #2c383f; background: #11191d; }
.app-name { display: block; font-size: 12px; color: #9baeb7; line-height: 1.3; margin-bottom: 4px; }
.car-app-header h2 { font: 600 clamp(20px, 2.3vw, 29px)/1.15 var(--body); letter-spacing: -.025em; margin: 0; color: var(--car-text); }
.car-app-header > button { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid #4b626f; border-radius: 999px; background: #24353f; font: 600 15px/1.3 var(--body); color: var(--selected); cursor: pointer; }
.fuel-types { display: flex; gap: 8px; align-items: center; padding: 5px 26px; border-bottom: 1px solid #2b373d; background: #172127; }
.fuel-types button { min-width: 66px; min-height: 36px; border: 0; border-radius: 999px; padding: 6px 18px; background: transparent; color: var(--car-muted); font-weight: 600; font-size: 15px; cursor: pointer; }
.fuel-types button[aria-pressed=true] { background: var(--selected); color: #102034; }
.car-content { display: grid; grid-template-columns: minmax(320px, .86fr) minmax(0, 1.14fr); min-height: 0; position: relative; }
.station-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #172127; border-right: 1px solid #35454e; }
.list-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; min-height: 36px; padding: 7px 22px; font-size: 12px; color: #a3b2ba; border-bottom: 1px solid #2e3b42; }
.station-list { overflow-y: auto; min-height: 0; scrollbar-color: #526673 transparent; scrollbar-width: thin; }
.station-row { display: flex; align-items: center; gap: 15px; width: 100%; min-height: 96px; padding: 14px 18px; text-align: left; border: 0; border-bottom: 1px solid #2d3a42; background: transparent; color: var(--car-text); cursor: pointer; }
.station-row:hover, .station-row:focus-visible { background: #283b47; }
.station-rank { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #33434d; color: #d8e5eb; font-size: 14px; font-weight: 600; }
.station-row:first-child .station-rank { background: var(--selected); color: #152636; }
.station-copy { display: grid; gap: 4px; min-width: 0; }
.station-copy strong { font: 650 25px/1.1 var(--body); color: #f5f7f8; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.station-brand { font-size: 15px; line-height: 1.3; }
.station-address { display: block; font-size: 12px; line-height: 1.45; color: #a7b9c3; }
.station-arrow { margin-left: auto; font-size: 28px; color: #8fa7b5; }
.map-panel { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #1d282d; }
.street-map { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; max-width: none; }
.map-pins { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.map-pin { position: absolute; min-height: 38px; min-width: 75px; padding: 7px 11px; border: 1px solid #7c939c; border-radius: 14px; background: #e6edf0; color: #132b37; font: 700 15px/1 var(--body); letter-spacing: -.025em; transform: translate(-50%, -100%); box-shadow: 0 5px 14px #0004; cursor: pointer; z-index: 1; }
.map-pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: inherit; border-right: 1px solid #7c939c; border-bottom: 1px solid #7c939c; transform: rotate(45deg); margin-left: -4px; }
.map-pin.cheapest { background: var(--selected); border-color: #b5d5f7; }
.map-pin.selected { background: #75baff; color: #0b2335; box-shadow: 0 0 0 4px #81bfff66, 0 8px 22px #0005; z-index: 2; }
.map-caption { position: absolute; right: 10px; bottom: 10px; padding: 5px 9px; border-radius: 6px; background: #152127db; color: #aab8bf; font-size: 10px; pointer-events: none; }
.station-detail { padding: 20px 24px; overflow-y: auto; }
.station-detail h3 { color: var(--car-text); font: 650 29px/1.2 var(--body); letter-spacing: -.03em; margin: 24px 0 16px; }
.station-detail p { margin: 0 0 10px; font-size: 15px; color: #b3c2c9; line-height: 1.55; }
.station-detail .detail-price { font: 650 32px/1.2 var(--body); letter-spacing: -.04em; color: var(--selected); margin-bottom: 16px; }
.detail-back { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--selected); font: 600 15px/1.4 var(--body); cursor: pointer; }
.go-button { margin-top: 20px; min-height: 52px; width: 100%; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--selected); color: #102438; font-weight: 700; cursor: pointer; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; flex: 1; padding: 32px; text-align: center; }
.empty-state > svg { width: 40px; height: 40px; fill: none; stroke: #8ea4af; stroke-width: 1.5; }
.empty-state p { font-size: 18px; line-height: 1.6; margin: 0; }
.empty-state button { min-height: 48px; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--selected); color: #102438; font-weight: 700; cursor: pointer; }
.device [hidden] { display: none !important; }
.route-card { position: absolute; left: 18px; right: 18px; bottom: 34px; display: grid; gap: 5px; padding: 16px 20px; border: 1px solid #5f85a8; border-radius: 16px; background: #152637ee; color: #f0f6ff; box-shadow: 0 12px 30px #0004; }
.route-card strong { font-size: 18px; }
.route-card span { font-size: 13px; color: #afc5dc; }
.car-app-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; background: #11191d; color: #a2b3bd; font-size: 11px; border-top: 1px solid #30404a; }
.car-app-footer i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #86b6c3; margin-right: 6px; }
.preview-notes { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 32px; padding-top: 20px; font-size: 13px; line-height: 1.7; color: #60716b; }
.preview-notes p { margin: 0; max-width: 68ch; }
.preview-notes p:first-child { font-weight: 600; color: #344e43; }
/* CarPlay uses a floating point-of-interest list over the map. */
.carplay { --selected: #b5d9ff; --selected-bg: #244c78; background: #0a0d11; }
.carplay .car-dock { background: #0a0d11; border: 0; }
.carplay .dock-app { border-radius: 12px; }
.carplay .car-app-header { background: #0e141a; border-color: #27333d; }
.carplay .car-app-header > button { background: #14283f; border-color: #375573; border-radius: 12px; }
.carplay .fuel-types { background: #111b25; }
.carplay .car-home { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; }
.carplay .feature-card { width: 100%; max-width: 340px; min-height: 180px; }
.carplay .car-content { display: block; }
.carplay .map-panel { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.carplay .station-panel { position: absolute; top: 16px; bottom: 16px; left: 16px; width: 340px; z-index: 3; border: 1px solid #4c596366; border-radius: 18px; background: #101b27f5; overflow: hidden; box-shadow: 0 15px 35px #0004; }
.carplay .station-row { padding-block: 16px; }
.carplay .station-rank { border-radius: 9px; }
.carplay .station-row:hover { background: #24405a; }
.carplay .map-pin { border-radius: 10px; }
.carplay .route-card { left: 380px; }
.carplay .map-pins { left: 370px; }
.carplay .street-map { left: 370px; width: calc(100% - 370px); }
@media(min-width:1500px) { .device { height: 680px; } .car-app { grid-template-rows: 90px 56px minmax(0,1fr) 40px; } .station-row { min-height: 104px; } }
@media(max-width:1000px) { .preview-workspace { width: calc(100% - 40px); padding-top: 28px; } .scenario-label { margin-left: 0; } .car-content { grid-template-columns: minmax(300px, 1fr) minmax(0, 1fr); } .carplay .station-panel { width: 310px; } .carplay .map-pins { left: 330px; } .carplay .route-card { left: 345px; } }
@media(max-width:700px) { .preview-workspace { width: calc(100% - 24px); padding-top: 22px; } .preview-head { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 22px; } .preview-head p { font-size: 14px; } .preview-controls { gap: 12px; } .platform-tabs { width: 100%; } .platform-tabs button { flex: 1; padding-inline: 12px; font-size: 14px; } .scenario-label { gap: 7px; font-size: 12px; flex: 1; } .scenario-label select { flex: 1; min-width: 0; padding-right: 15px; font-size: 12px; } .refresh-button { padding-inline: 12px; font-size: 12px; } .device { height: 540px; grid-template-columns: 42px minmax(0, 1fr); border-width: 4px; border-radius: 20px; } .car-dock { padding: 15px 4px; gap: 17px; } .car-clock { font-size: 9px; } .dock-app { width: 29px; height: 29px; border-radius: 9px; } .dock-app img { width: 23px; height: 23px; } .dock-app svg { width: 18px; height: 18px; } .app-grid { width: 19px; height: 19px; } .car-app { grid-template-rows: 94px 50px minmax(0,1fr) 44px; } .car-app-header { padding: 12px; gap: 8px; align-items: flex-start; flex-direction: column; } .app-name { font-size: 9px; } .car-app-header h2 { font-size: 17px; } .car-app-header > button { font-size: 10px; min-height: 28px; padding: 4px 12px; } .fuel-types { padding: 5px 8px; gap: 1px; } .fuel-types button { flex: 1; min-width: 0; padding: 6px 8px; font-size: 12px; } .car-content { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } .list-summary { min-height: 34px; padding: 6px 9px; font-size: 9px; } .list-summary span + span { display:none; } .station-row { gap: 7px; padding: 13px 8px; min-height: 88px; } .station-rank { width: 18px; height: 18px; font-size: 10px; } .station-copy strong { font-size: 17px; } .station-brand { font-size: 10px; } .station-address { font-size: 9px; } .station-arrow { display: none; } .map-pin { min-width: 48px; min-height: 30px; padding: 5px; font-size: 10px; } .car-app-footer { padding: 6px 8px; font-size: 9px; } .car-app-footer > span:first-child { max-width: 18ch; } .map-caption { font-size: 8px; right: 4px; bottom: 5px; padding: 4px; max-width: 14ch; } .station-detail { padding: 14px 10px; } .station-detail h3 { font-size: 20px; margin-block: 14px; } .station-detail p { font-size: 11px; } .station-detail .detail-price { font-size: 22px; } .detail-back { font-size: 11px; } .go-button { font-size: 11px; min-height: 44px; padding: 10px 9px; } .empty-state { padding: 16px 10px; gap: 12px; } .empty-state p { font-size: 12px; } .empty-state button { min-height: 40px; padding: 8px 16px; font-size: 11px; } .route-card { left: 6px; right: 6px; padding: 10px; bottom: 34px; } .route-card strong { font-size: 12px; } .route-card span { font-size: 10px; } .carplay .station-panel { left: 6px; top: 8px; bottom: 8px; width: 55%; border-radius: 12px; } .carplay .station-row { padding-block: 12px; } .carplay .map-pins { left: 55%; } .carplay .route-card { left: 59%; } .preview-notes { font-size: 11px; padding-top: 16px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
@media(min-width:701px) and (max-width:1499px) { .device { height: clamp(400px, calc(100vh - 300px), 622px); } }
@media(max-width:1000px) { .carplay .street-map { left: 330px; width: calc(100% - 330px); } }
@media(max-width:700px) { .carplay .street-map { left: 55%; width: 45%; } }
@media(max-width:1000px) { .car-home { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 10px; } .feature-card { min-height: 110px; padding: 16px; } }
@media(max-width:700px) {
  .car-home { padding: 12px; gap: 8px; }
  .feature-card { min-height: 126px; padding: 12px; border-radius: 14px; gap: 8px; }
  .feature-card strong { font-size: 15px; overflow-wrap: anywhere; }
  .feature-card > span:last-child { font-size: 10px; }
  .feature-icon { width: 30px; height: 30px; font-size: 20px; border-radius: 9px; }
  .car-app[data-view=home], .car-app[data-view=places] { grid-template-rows: 80px 0 minmax(0, 1fr) 44px; }
  .header-actions button { min-height: 30px; font-size: 10px; padding: 5px 10px; }
  .car-app[data-view=places] .station-copy strong { font-size: 14px; }
  .parking-panel { padding: 15px 10px; }
  .parking-panel h3 { font-size: 19px; }
  .parking-panel p { font-size: 12px; }
  .parking-symbol { width: 40px; height: 40px; font-size: 25px; border-radius: 12px; }
}
