:root {
  --ink: #15211d;
  --muted: #68766f;
  --paper: #f3f5f2;
  --white: #ffffff;
  --line: #dce3de;
  --green: #146a4a;
  --green-light: #d9f0df;
  --amber: #ffb000;
  --coral: #f0674f;
  --shadow: 0 12px 35px rgba(28, 47, 38, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: Manrope, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; padding: 18px; }
.topbar { height: 72px; display: flex; align-items: center; gap: 30px; padding: 0 18px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-family: Unbounded, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: -1px; line-height: .96; text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 38px; place-items: center; color: var(--white); background: var(--green); border-radius: 8px 8px 14px 8px; font-size: 16px; transform: skewY(-8deg); }
.city-button, .profile-button, .icon-button, .sort-button, .nearest-button, .filter { border: 0; background: transparent; color: var(--ink); }
.city-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; font-size: 13px; font-weight: 700; }
.city-dot { width: 8px; height: 8px; border: 2px solid var(--green); border-radius: 50%; }
.chevron { color: var(--muted); font-size: 17px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-button { font-size: 25px; line-height: 1; }
.profile-button { padding: 11px 16px; color: var(--white); background: var(--ink); border-radius: 10px; font-size: 13px; font-weight: 700; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 16px 3px; }
.search-field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 250px; max-width: 340px; padding: 0 13px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.search-field > span { color: var(--green); font-size: 24px; transform: rotate(-20deg); }
.search-field input { width: 100%; height: 42px; border: 0; outline: none; color: var(--ink); font-size: 13px; }
kbd { padding: 3px 5px; color: #8b9691; background: #edf0ed; border-radius: 4px; font: 10px Manrope, sans-serif; white-space: nowrap; }
.fuel-filters { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; }
.filter { padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; transition: .2s ease; }
.filter.active { color: var(--white); background: var(--green); }
.nearest-button { margin-left: auto; padding: 10px 13px; color: var(--green); background: var(--green-light); border-radius: 10px; font-size: 12px; font-weight: 800; }
.nearest-button span { font-size: 16px; vertical-align: -1px; }
.workspace { display: grid; grid-template-columns: minmax(320px, 410px) 1fr; grid-template-rows: minmax(0, 1fr); height: calc(100vh - 142px); min-height: 600px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.station-panel { position: relative; z-index: 2; display: flex; min-height: 0; flex-direction: column; gap: 16px; padding: 26px 20px 18px; overflow: hidden; background: var(--white); border-right: 1px solid var(--line); }
.panel-heading { display: flex; justify-content: space-between; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
h1 { margin: 0; font-family: Unbounded, sans-serif; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; letter-spacing: -1.5px; }
h1 em { color: var(--green); font-style: normal; }
.sort-button { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 10px; font-size: 18px; }
.market-pulse { display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 5px 9px; padding: 12px; background: #f7f8e8; border-radius: 13px; font-size: 11px; }
.pulse-icon { display: grid; grid-row: span 2; width: 29px; height: 29px; place-items: center; color: #657100; background: #e8efbf; border-radius: 8px; font-size: 17px; }
.market-pulse strong { font-size: 14px; }.market-pulse small { grid-column: 2 / span 2; color: #89914f; font-size: 10px; }
.station-list { display: grid; flex: 1; min-height: 0; gap: 9px; overflow-y: auto; padding-right: 2px; }
.station-card { position: relative; padding: 13px; border: 1px solid var(--line); border-radius: 13px; transition: .2s ease; animation: card-in .35s both; }
.station-card:hover, .station-card.selected { border-color: var(--green); box-shadow: 0 7px 20px rgba(20, 106, 74, .1); transform: translateY(-1px); }
.station-main { display: flex; align-items: center; gap: 10px; }.station-logo { width: 35px; height: 35px; border-radius: 10px; background: var(--brand, var(--green)); }
.station-main h2 { margin: 0 27px 3px 0; font-size: 13px; letter-spacing: -.3px; }.station-address { margin: 0; color: var(--muted); font-size: 10px; }
.favorite { position: absolute; top: 11px; right: 11px; border: 0; color: #92a099; background: transparent; font-size: 20px; }.favorite.saved { color: var(--coral); }
.station-bottom { display: flex; align-items: baseline; gap: 7px; margin-top: 11px; }.station-price { font-size: 15px; }.station-fuel, time { color: var(--muted); font-size: 10px; font-weight: 700; }time { margin-left: auto; font-weight: 500; }
.station-fuels { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }.fuel-chip { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; font-size: 9px; font-weight: 800; }.fuel-chip.available { color: #0e5539; border-color: #a7cfb4; background: #e8f6ec; }.fuel-chip.unavailable { color: #9aa59f; background: #f5f6f5; }.fuel-chip.unknown { color: #8b761c; border-color: #e7d591; background: #fff9dc; }
.city-chat { width: 100%; margin-top: 10px; padding: 8px 10px; color: var(--green); border: 1px solid #b8d7c5; border-radius: 8px; background: #f4fbf6; font-size: 10px; font-weight: 800; text-align: left; }
.external-search-card { display: grid; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf7; }.external-search-card strong { font-size: 13px; }.external-search-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }.external-search-card div { display: flex; flex-wrap: wrap; gap: 7px; }.external-search-card a { padding: 8px 9px; color: var(--green); border: 1px solid #b8d7c5; border-radius: 8px; background: var(--white); font-size: 10px; font-weight: 800; text-decoration: none; }
.add-price-button { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: auto; padding: 12px; color: var(--white); border: 0; background: var(--green); border-radius: 11px; font-size: 12px; font-weight: 800; }.add-price-button span { font-size: 18px; }
.map-area { position: relative; min-height: 0; overflow: hidden; background: #e3ece4; }.map-area #map { position: absolute; inset: 0; z-index: 1; }.leaflet-container { font-family: Manrope, sans-serif; }.leaflet-control-zoom { border: 1px solid var(--line) !important; border-radius: 10px !important; overflow: hidden; box-shadow: var(--shadow) !important; }.leaflet-control-zoom a { width: 38px !important; height: 37px !important; line-height: 35px !important; color: var(--ink) !important; border-bottom: 1px solid var(--line) !important; }.station-pin { display: grid; width: 29px; height: 29px; place-items: center; color: white; background: var(--pin, var(--green)); border: 2px solid white; border-radius: 50% 50% 50% 5px; box-shadow: 0 3px 10px rgba(18, 53, 35, .25); font-size: 10px; font-weight: 800; transform: rotate(-45deg); }.station-pin span { transform: rotate(45deg); }.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow); }.station-popup { min-width: 190px; }.station-popup b { display: block; font-size: 13px; }.station-popup p { margin: 3px 0 9px; color: var(--muted); font-size: 11px; }.station-popup button { padding: 7px 9px; color: var(--white); border: 0; background: var(--green); border-radius: 7px; font-size: 11px; font-weight: 700; }
.map-grain { position: absolute; inset: 0; opacity: .45; background-image: radial-gradient(#9ab3a0 1px, transparent 1px); background-size: 18px 18px; }.ring { position: absolute; top: 49%; left: 52%; border: 11px solid rgba(255,255,255,.9); border-radius: 50%; transform: translate(-50%, -50%); }.ring-one { width: 210px; height: 170px; }.ring-two { width: 420px; height: 330px; border-width: 8px; }.road { position: absolute; height: 8px; background: rgba(255,255,255,.95); border-radius: 9px; transform-origin: center; }.road-one { top: 47%; left: -5%; width: 110%; transform: rotate(-18deg); }.road-two { top: 50%; left: 5%; width: 95%; transform: rotate(49deg); }.road-three { top: 33%; left: 15%; width: 80%; transform: rotate(12deg); }
.map-label { position: absolute; z-index: 1; color: #6f8877; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.label-nw { top: 25%; left: 17%; }.label-ne { top: 19%; right: 14%; }.label-center { top: 46%; left: 46%; color: #52745c; font-family: Unbounded, sans-serif; font-size: 16px; letter-spacing: -.5px; text-transform: none; }.label-sw { bottom: 20%; left: 22%; }
.marker { position: absolute; z-index: 3; display: grid; width: 42px; height: 42px; place-items: center; color: var(--white); background: var(--marker, var(--green)); border: 3px solid var(--white); border-radius: 50% 50% 50% 7px; box-shadow: 0 6px 15px rgba(23, 50, 35, .23); font-size: 10px; font-weight: 800; transform: rotate(-45deg); transition: .2s ease; }.marker span { transform: rotate(45deg); }.marker:hover, .marker.active { transform: rotate(-45deg) scale(1.18); }.marker.fresh::after { position: absolute; width: 54px; height: 54px; border: 1px solid var(--marker, var(--green)); border-radius: 50%; content: ""; animation: ping 2s infinite; }
.map-legend { position: absolute; z-index: 4; bottom: 20px; left: 20px; padding: 9px 12px; background: rgba(255,255,255,.92); border-radius: 9px; box-shadow: 0 2px 12px rgba(20, 38, 29, .12); font-size: 10px; font-weight: 700; }.map-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; background: var(--green); border-radius: 50%; }
.price-dialog { width: min(420px, calc(100% - 32px)); padding: 0; color: var(--ink); border: 0; border-radius: 18px; box-shadow: 0 25px 80px rgba(0,0,0,.25); }.price-dialog::backdrop { background: rgba(21, 33, 29, .42); backdrop-filter: blur(3px); }.price-dialog form { position: relative; display: grid; gap: 12px; padding: 25px; }.price-dialog h2 { margin: -4px 0 0; font-family: Unbounded, sans-serif; font-size: 21px; letter-spacing: -1px; }.price-dialog p { margin: 0; color: var(--muted); font-size: 12px; }.price-dialog label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }.price-dialog input, .price-dialog select { width: 100%; padding: 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: var(--white); outline-color: var(--green); }.dialog-close { position: absolute; top: 14px; right: 15px; width: 30px; height: 30px; color: var(--muted); border: 0; border-radius: 50%; background: var(--paper); font-size: 19px; }.disclaimer { line-height: 1.45; }.submit-price { padding: 12px; color: var(--white); border: 0; border-radius: 10px; background: var(--green); font-weight: 800; }
.city-chat-dialog { width: min(460px, calc(100% - 32px)); padding: 0; color: var(--ink); border: 0; border-radius: 18px; box-shadow: 0 25px 80px rgba(0,0,0,.25); }.city-chat-dialog::backdrop { background: rgba(21, 33, 29, .42); backdrop-filter: blur(3px); }.city-chat-dialog form { position: relative; display: grid; gap: 12px; padding: 25px; }.city-chat-dialog h2 { margin: -4px 35px 0 0; font-family: Unbounded, sans-serif; font-size: 18px; letter-spacing: -1px; }.city-chat-dialog p { margin: 0; color: var(--muted); font-size: 12px; }.city-chat-messages { display: grid; max-height: 280px; gap: 8px; overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf7; }.chat-empty { padding: 15px; line-height: 1.45; text-align: center; }.chat-message { display: grid; grid-template-columns: 1fr auto; gap: 3px 9px; padding: 9px 10px; background: var(--white); border: 1px solid #e2e9e3; border-radius: 9px; }.chat-message strong { color: var(--green); font-size: 10px; }.chat-message span { grid-column: 1 / span 2; font-size: 12px; line-height: 1.4; word-break: break-word; }.chat-message time { font-size: 9px; }.city-chat-input { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }.city-chat-input input { width: 100%; padding: 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; outline-color: var(--green); }
@keyframes card-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } } @keyframes ping { 0%, 55% { opacity: .65; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.25); } }
.station-card.selected { border-color: var(--coral); box-shadow: 0 9px 24px rgba(240, 103, 79, .18); }.station-pin { width: 38px; height: 38px; background: var(--coral); border-width: 3px; font-size: 8px; }.station-pin:hover { background: #d9523c; }
.fuel-map-marker-wrap { background: transparent; border: 0; }.fuel-map-marker { position: relative; display: block; width: 38px; height: 48px; padding: 0; border: 3px solid #fff7ee; border-radius: 11px 11px 9px 9px; background: linear-gradient(145deg, #f67d50, #d9533f); box-shadow: 0 7px 18px rgba(148, 58, 38, .34); transform: translateY(-4px); transition: transform .16s ease, filter .16s ease; }.fuel-map-marker:hover { filter: brightness(1.06); transform: translateY(-8px) scale(1.08); }.pump-window { position: absolute; top: 7px; left: 7px; width: 18px; height: 12px; border: 2px solid #fff7ee; border-radius: 3px; }.pump-window::after { position: absolute; top: 3px; left: 3px; width: 8px; height: 3px; background: #fff7ee; border-radius: 2px; content: ""; }.pump-hose { position: absolute; top: 10px; right: -8px; width: 10px; height: 19px; border: 3px solid #fff7ee; border-left: 0; border-radius: 0 8px 8px 0; }.pump-hose::after { position: absolute; right: -3px; bottom: -5px; width: 7px; height: 7px; background: #fff7ee; border-radius: 50%; content: ""; }.pump-base { position: absolute; right: 7px; bottom: 8px; left: 7px; height: 5px; background: #fff7ee; border-radius: 4px; }.leaflet-tooltip { padding: 9px 11px; color: var(--ink); border: 0; border-radius: 9px; box-shadow: var(--shadow); font: 11px Manrope, sans-serif; }.leaflet-tooltip b { color: var(--green); }
@media (max-width: 760px) { .app-shell { padding: 9px; }.topbar { height: 58px; padding: 0 11px; gap: 8px; border-radius: 14px; }.brand { font-size: 10px; }.brand-mark { width: 26px; height: 30px; font-size: 13px; }.city-button { margin-left: auto; font-size: 11px; }.profile-button { padding: 9px 11px; font-size: 11px; }.icon-button { display: none; }.toolbar { overflow-x: auto; padding: 10px 0; }.search-field { min-width: 210px; }.nearest-button { display: none; }.workspace { display: flex; flex-direction: column-reverse; min-height: auto; border-radius: 14px; }.map-area { min-height: 360px; }.station-panel { min-height: 470px; padding: 20px 15px 15px; border-right: 0; }.fuel-filters { flex-shrink: 0; }.filter { padding: 8px 9px; }.map-controls { top: 13px; right: 13px; }.map-legend { bottom: 13px; left: 13px; } }
