/* АЗС: Империя — clean mobile UI + side-view station */
:root {
  --bg: #12141a;
  --bg2: #1a1d26;
  --card: #22262f;
  --border: #323844;
  --text: #eef1f6;
  --muted: #8b93a3;
  --accent: #e8a838;
  --green: #5dce77;
  --danger: #e85d5d;
  --safe: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body {
  height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overflow: hidden; font-size: 15px;
}

/* auth */
.landing, .auth-page {
  min-height: 100%; overflow-y: auto; padding: 28px 18px 40px;
  background: linear-gradient(180deg, #0e1016, #1a1d26);
}
.landing { display: flex; flex-direction: column; align-items: center; text-align: center; }
.landing h1 {
  font-size: 2rem; font-weight: 800; margin: 10px 0 6px;
  background: linear-gradient(135deg, #e8a838, #f0c060);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.landing .sub { color: var(--muted); margin-bottom: 28px; }
.landing .feats { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.landing .feat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; text-align: left; }
.landing .feat b { display: block; margin-bottom: 3px; }
.landing .feat span { color: var(--muted); font-size: .88rem; }
.landing .btns { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; }
.landing .btns a { text-decoration: none; text-align: center; padding: 15px; border-radius: 14px; font-weight: 700; font-size: 1.05rem; }
.landing .btns .p { background: linear-gradient(135deg, #e8a838, #c4892a); color: #1a1410; }
.landing .btns .s { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.auth-box { width: 100%; max-width: 380px; margin: 40px auto; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px 20px; }
.auth-box .logo { display: block; text-align: center; color: var(--accent); font-weight: 700; text-decoration: none; }
.auth-box h2 { text-align: center; margin: 12px 0 18px; font-size: 1.3rem; }
.fg { margin-bottom: 12px; }
.fg label { display: block; margin-bottom: 4px; font-size: .82rem; color: var(--muted); }
.fg input { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-size: 1rem; }
.btn-auth { width: 100%; padding: 14px; border: none; border-radius: 14px; margin-top: 6px; background: linear-gradient(135deg, #e8a838, #c4892a); color: #1a1410; font-weight: 700; font-size: 1.05rem; }
.auth-foot { text-align: center; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.auth-foot a { color: var(--accent); }
.err { background: rgba(232,93,93,.12); border: 1px solid var(--danger); color: #f5a0a0; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .9rem; }

/* location select */
.location-screen { height: 100%; overflow-y: auto; padding: 24px 16px 40px; background: linear-gradient(180deg, #0e1016, #1a1d26); }
.loc-header { text-align: center; margin-bottom: 20px; }
.loc-header h1 { font-size: 1.4rem; margin: 8px 0 4px; }
.loc-list { display: flex; flex-direction: column; gap: 10px; }
.loc-card { display: block; cursor: pointer; }
.loc-card input { display: none; }
.loc-inner { background: var(--card); border: 2px solid var(--border); border-radius: 14px; padding: 14px; }
.loc-card input:checked + .loc-inner { border-color: var(--accent); background: rgba(232,168,56,.08); }
.loc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.loc-top h3 { font-size: 1rem; }
.badge { font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 20px; background: var(--bg2); color: var(--muted); }
.badge-green { background: rgba(93,206,119,.15); color: var(--green); }
.loc-inner p { color: var(--muted); font-size: .86rem; margin-bottom: 8px; }
.loc-meta { display: flex; gap: 12px; font-size: .82rem; }
.loc-meta .price { margin-left: auto; color: var(--accent); font-weight: 700; }
.btn-main { margin-top: 10px; width: 100%; padding: 15px; border: none; border-radius: 14px; background: linear-gradient(135deg, #e8a838, #c4892a); color: #1a1410; font-weight: 700; font-size: 1.05rem; }
.tip { margin-top: 14px; padding: 12px; background: rgba(232,168,56,.08); border-radius: 12px; font-size: .86rem; color: var(--muted); border: 1px solid rgba(232,168,56,.2); }

/* APP SHELL */
.app {
  height: 100dvh; height: 100%; max-width: 430px; margin: 0 auto;
  display: flex; flex-direction: column; background: var(--bg); position: relative;
}

.topbar { padding: 10px 12px 8px; background: var(--bg2); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.top-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.logo-pill { background: #24382c; color: #8fd4a0; font-weight: 800; font-size: .82rem; padding: 5px 11px; border-radius: 9px; }
.top-icons { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: none; background: var(--card); color: var(--accent); font-size: .95rem; }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 11px; padding: 8px 12px; }
.stat-card .lbl { font-size: .68rem; color: var(--muted); text-transform: uppercase; }
.stat-card .val { font-weight: 800; font-size: 1.05rem; margin-top: 1px; }
.stat-card .val.money { color: var(--green); }

/* ===== SCENE ===== */
.scene-wrap { flex: 1; min-height: 0; padding: 8px 10px 0; display: flex; flex-direction: column; }
.scene-card {
  position: relative; flex: 1; min-height: 220px; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(180deg, #070e1a 0%, #122030 38%, #1c2a20 72%, #141c14 100%);
}

.moon {
  position: absolute; top: 10%; right: 9%; width: 20px; height: 20px;
  background: #e8e0c0; border-radius: 50%; box-shadow: 0 0 18px rgba(232,224,192,.25); z-index: 1;
}
.moon:after {
  content: ''; position: absolute; top: 1px; left: 5px; width: 15px; height: 15px;
  background: #070e1a; border-radius: 50%;
}

.trees { position: absolute; top: 12%; left: 0; right: 0; height: 28%; z-index: 1; opacity: .5; pointer-events: none; }
.tree {
  position: absolute; bottom: 0; width: 0; height: 0;
  border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 26px solid #1a3a28;
}

.snow { position: absolute; inset: 0; pointer-events: none; z-index: 20; overflow: hidden; }
.snow i {
  position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; opacity: .65;
  animation: snowfall linear infinite;
}
@keyframes snowfall {
  0% { transform: translateY(-8px); opacity: 0; }
  15% { opacity: .75; }
  100% { transform: translateY(300px); opacity: .2; }
}

.scene-hud {
  position: absolute; top: 6px; left: 6px; right: 6px; z-index: 15;
  display: flex; gap: 5px; justify-content: center; flex-wrap: wrap;
}
.hud-pill {
  background: rgba(10,14,22,.88); border: 1px solid #2a3a50; border-radius: 7px;
  padding: 3px 9px; font-size: .65rem; font-weight: 700; color: #b8c4d8;
}
.hud-pill b { color: var(--green); }
.hud-pill.warn b { color: #e88a5d; }
.hud-pill.acc b { color: var(--accent); }

/* station buildings row */
.station-row {
  position: absolute; left: 3%; right: 3%; bottom: 40%; height: 38%;
  z-index: 6; display: flex; align-items: flex-end; gap: 8px;
}

.canopy-block { position: relative; flex: 0 0 auto; }
.canopy-top {
  width: 108px; height: 12px;
  background: linear-gradient(90deg, #ddd8c8, #f0ece0, #ddd8c8);
  border: 1px solid #b0a890; border-radius: 3px 3px 0 0; position: relative;
}
.canopy-top:before {
  content: ''; position: absolute; top: -3px; left: 0; right: 0; height: 4px;
  background: #c45c3a; border-radius: 2px 2px 0 0;
}
.canopy-pole { position: absolute; width: 3px; height: 34px; background: #8a8070; top: 12px; }
.canopy-pole.l { left: 6px; }
.canopy-pole.r { right: 6px; }

.pump-group { display: flex; gap: 8px; margin-top: 4px; padding-left: 6px; position: relative; z-index: 2; }
.pump { width: 24px; text-align: center; position: relative; }
.pump-screen {
  background: #111; color: #5dce77; font-size: .48rem; font-weight: 800;
  padding: 1px 0; border-radius: 2px; border: 1px solid #333;
}
.pump-body {
  height: 28px; margin-top: 1px; border-radius: 2px; border: 1px solid #1a3a5a;
  background: linear-gradient(180deg, #3a6a9a, #2a4a7a); position: relative;
}
.pump-body.p95 { background: linear-gradient(180deg, #6a3a9a, #4a2a7a); border-color: #3a1a5a; }
.pump-body.dt { background: linear-gradient(180deg, #2a6a3a, #1a4a2a); border-color: #0a3a1a; }
.pump-nozzle {
  position: absolute; right: -4px; top: 8px; width: 6px; height: 12px;
  border: 2px solid #777; border-left: none; border-radius: 0 4px 4px 0;
}
.pump.refueling .pump-body { animation: pumpGlow .45s ease infinite alternate; }
@keyframes pumpGlow {
  from { filter: brightness(1); }
  to { filter: brightness(1.45); box-shadow: 0 0 8px #e8a838; }
}

.bld { position: relative; flex: 0 0 auto; }
.bld-roof { height: 7px; background: #6a8aaa; border-radius: 2px 2px 0 0; }
.bld-roof.orange { background: #c45c3a; }
.bld-body {
  background: #e8e4d8; border: 1px solid #c0b8a8; border-radius: 0 0 2px 2px;
  min-width: 52px; padding: 5px 5px 3px; text-align: center;
  font-size: .52rem; font-weight: 800; color: #2a2418; line-height: 1.2;
}
.bld-body.shop { background: #eef2f6; }
.bld-body.cafe { background: #f0e0c8; }
.bld-sign {
  background: #2a5a3a; color: #8fd4a0; font-size: .48rem; font-weight: 800;
  padding: 1px 5px; border-radius: 2px; display: inline-block; margin-bottom: 1px;
}
.bld-sign.cafe-s { background: #8a4a20; color: #f0c080; }

.char { position: absolute; bottom: 0; width: 12px; height: 20px; z-index: 7; }
.char-head { width: 9px; height: 9px; background: #f0d0b0; border-radius: 50%; margin: 0 auto; border: 1px solid #c0a080; }
.char-body { width: 11px; height: 11px; border-radius: 2px 2px 0 0; margin: 0 auto; }
.char-body.orange { background: #e07030; }
.char-body.green { background: #3a8a4a; }
.char-body.blue { background: #3a6aaa; }

/* road surface */
.surface {
  position: absolute; left: 0; right: 0; bottom: 24%; height: 18%;
  background: #3e3e42; z-index: 4;
}
.surface-line {
  position: absolute; top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, #c4a020 0 16px, transparent 16px 32px); opacity: .45;
}
.vehicles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 8;
}

/* ground + tanks */
.ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(180deg, #3a3228 0%, #241e18 50%, #16120e 100%);
  border-top: 2px solid #5a4a38; z-index: 2;
}
.ug-tanks {
  position: absolute; bottom: 3%; left: 7%; display: flex; gap: 12px; z-index: 3;
}
.ug-tank {
  width: 40px; height: 24px; background: #2a3540; border: 2px solid #4a5a68;
  border-radius: 50% / 42%; position: relative;
}
.ug-tank:after {
  content: ''; position: absolute; top: 5px; left: 7px; right: 7px; height: 8px;
  background: #3a8a9a; border-radius: 40%; opacity: .7;
}
.ug-tank.dt:after { background: #c4a030; }
.ug-pipe {
  position: absolute; bottom: 24%; width: 3px; height: 16px; background: #6a7a88; z-index: 3;
}
.ug-pipe.p1 { left: 12%; }
.ug-pipe.p2 { left: 24%; }

/* vehicles */
.veh { position: absolute; will-change: transform; }
.veh.car { width: 46px; height: 20px; bottom: 18%; }
.veh.truck { width: 92px; height: 30px; bottom: 12%; }
.car-body {
  width: 46px; height: 13px; border-radius: 3px 7px 2px 2px; position: relative;
  box-shadow: 0 2px 3px rgba(0,0,0,.35);
}
.car-body:before {
  content: ''; position: absolute; top: -6px; left: 9px; width: 20px; height: 8px;
  background: inherit; filter: brightness(1.12); border-radius: 3px 5px 0 0;
}
.car-body:after {
  content: ''; position: absolute; bottom: -4px; left: 4px; width: 8px; height: 8px;
  background: #1a1a1a; border-radius: 50%; box-shadow: 26px 0 0 #1a1a1a; border: 1.5px solid #555;
}
.car-win {
  position: absolute; top: -5px; left: 11px; width: 16px; height: 5px;
  background: #7ec8e8; border-radius: 2px; opacity: .65; z-index: 1;
}
.trk-cab {
  width: 28px; height: 22px; border-radius: 2px 5px 2px 2px;
  position: absolute; left: 0; bottom: 5px; box-shadow: 0 2px 3px rgba(0,0,0,.3);
}
.trk-cab:before {
  content: ''; position: absolute; top: 2px; left: 3px; width: 16px; height: 8px;
  background: #7ec8e8; border-radius: 2px; opacity: .7;
}
.trk-trail {
  width: 58px; height: 18px; background: #d0d8e0; border: 2px solid #90a0b0;
  border-radius: 2px; position: absolute; left: 26px; bottom: 6px;
}
.trk-w {
  position: absolute; bottom: 0; width: 9px; height: 9px;
  background: #1a1a1a; border-radius: 50%; border: 1.5px solid #555;
}
.trk-w.a { left: 5px; } .trk-w.b { left: 38px; } .trk-w.c { left: 74px; }

@keyframes goR { from { transform: translateX(-110px); } to { transform: translateX(110vw); } }
@keyframes goL { from { transform: translateX(110vw); } to { transform: translateX(-120px); } }
.veh.go-r { animation: goR linear forwards; }
.veh.go-l { animation: goL linear forwards; }

.scene-status {
  position: absolute; top: 36px; left: 50%; transform: translateX(-50%);
  background: rgba(8,12,20,.8); padding: 4px 12px; border-radius: 20px;
  font-size: .7rem; z-index: 16; opacity: 0; transition: .3s; white-space: nowrap; color: #e0e8f0;
}
.scene-status.show { opacity: 1; }

/* day controls */
.day-controls { padding: 8px 12px; flex-shrink: 0; }
.btn-day {
  width: 100%; padding: 13px; border: none; border-radius: 13px;
  background: linear-gradient(135deg, #e8a838, #c4892a); color: #1a1410;
  font-weight: 800; font-size: 1.02rem; cursor: pointer;
}
.btn-day:disabled { opacity: .55; }
.day-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.spd {
  width: 40px; height: 36px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font-weight: 700; font-size: .82rem;
}
.spd.active { background: var(--accent); color: #1a1410; border-color: var(--accent); }
.loc-switch {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--card); border: 1px solid var(--border); border-radius: 9px;
  padding: 7px; font-size: .78rem; font-weight: 600; color: var(--muted);
}

/* bottom nav */
.bottom-nav {
  display: flex; background: var(--bg2); border-top: 1px solid var(--border);
  padding: 5px 0 calc(5px + var(--safe)); flex-shrink: 0; z-index: 30;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 5px 2px 3px; background: none; border: none; color: var(--muted);
  font-size: .6rem; font-weight: 600; cursor: pointer;
}
.nav-item .nav-icon { font-size: 1.15rem; line-height: 1; }
.nav-item.active { color: var(--accent); }

/* sheet */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg2); border-radius: 18px 18px 0 0; border-top: 1px solid var(--border);
  max-height: 72%; transform: translateY(110%); transition: transform .28s cubic-bezier(.32,.72,0,1);
  z-index: 40; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0,0,0,.45);
}
.sheet.open { transform: translateY(0); }
.sheet-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 10px auto 4px; }
.sheet-content { overflow-y: auto; padding: 8px 14px 28px; -webkit-overflow-scrolling: touch; }
.sheet-content h2 { font-size: 1.12rem; margin: 0 0 12px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 13px; padding: 13px; margin-bottom: 10px; }
.card-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 8px; }
.muted { color: var(--muted); font-size: .86rem; }

.up-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  width: 100%; padding: 12px 13px; margin-bottom: 7px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); text-align: left; cursor: pointer;
}
.up-item strong { display: block; font-size: .9rem; }
.up-item small { color: var(--muted); font-size: .76rem; }
.up-price { color: var(--accent); font-weight: 800; font-size: .86rem; white-space: nowrap; }

.price-row, .order-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.price-row label { min-width: 50px; font-weight: 600; font-size: .88rem; }
.price-row input, .order-row input, .order-row select {
  flex: 1; padding: 9px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); font-size: .95rem;
}
.btn-sm { padding: 9px 13px; background: var(--accent); color: #1a1410; border: none; border-radius: 9px; font-weight: 700; white-space: nowrap; }

.tank-line {
  display: grid; grid-template-columns: 40px 1fr 60px; align-items: center; gap: 7px;
  margin-bottom: 7px; font-size: .84rem;
}
.tank-line .bar { height: 7px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.tank-line .bar i { display: block; height: 100%; border-radius: 4px; }
.f92 { background: #3b82f6; } .f95 { background: #9b6dd4; } .fdt { background: var(--accent); }

.log-row {
  background: var(--card); border-radius: 9px; padding: 9px 11px; font-size: .83rem;
  border-left: 3px solid var(--border); margin-bottom: 6px;
}
.log-row.log-unlock { border-left-color: var(--green); }
.log-d { display: block; font-size: .66rem; color: var(--muted); margin-bottom: 2px; }

.tip-box {
  margin-top: 8px; padding: 10px 12px; background: rgba(232,168,56,.08);
  border: 1px solid rgba(232,168,56,.22); border-radius: 11px; font-size: .83rem; color: var(--muted);
}
.btn-logout {
  display: block; text-align: center; margin-top: 14px; padding: 12px;
  color: var(--danger); text-decoration: none; font-weight: 600;
  border: 1px solid rgba(232,93,93,.3); border-radius: 11px;
}

.toast {
  position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--card); border: 1px solid var(--border); padding: 11px 16px;
  border-radius: 13px; z-index: 100; opacity: 0; transition: .25s; pointer-events: none;
  max-width: 88%; text-align: center; box-shadow: 0 8px 28px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: #3d8b4f; }
.toast.err { border-color: var(--danger); }

/* map */
.map-screen {
  position: absolute; inset: 0; background: var(--bg); z-index: 50;
  display: none; flex-direction: column;
}
.map-screen.open { display: flex; }
.map-header {
  padding: 13px; background: var(--bg2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.map-header h2 { font-size: 1.12rem; }
.map-close { background: var(--card); border: 1px solid var(--border); color: var(--text); width: 34px; height: 34px; border-radius: 9px; font-size: 1rem; }
.map-body { flex: 1; overflow-y: auto; padding: 13px; }
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.map-cell {
  background: var(--card); border: 2px solid var(--border); border-radius: 13px;
  padding: 13px; text-align: center; min-height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.map-cell.owned { border-color: #3d8b4f; background: rgba(93,206,119,.06); }
.map-cell.available { border-color: var(--accent); }
.map-cell.locked { opacity: .42; }
.map-cell .mc-icon { font-size: 1.5rem; }
.map-cell .mc-name { font-weight: 700; font-size: .84rem; }
.map-cell .mc-meta { font-size: .7rem; color: var(--muted); }

.sheet-top { position: relative; flex-shrink: 0; }
.sheet-close {
  position: absolute; right: 12px; top: 8px;
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); font-size: 1rem; cursor: pointer; z-index: 2;
}
.money-pop {
  position: absolute; font-weight: 800; font-size: .75rem; color: #5dce77;
  z-index: 25; pointer-events: none; animation: moneyUp 1.1s ease forwards;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
@keyframes moneyUp {
  0% { opacity: 0; transform: translateY(0); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28px); }
}
.canopy-top { min-width: 108px; width: auto !important; padding: 0 8px; }
.canopy-block { max-width: 70%; }
.pump-group { flex-wrap: nowrap; }
.park-lot {
  position: absolute; right: 4%; bottom: 42%; z-index: 5;
  display: flex; flex-direction: column; gap: 2px; align-items: flex-end;
}
.park-lot span {
  background: #1e3a5f; color: #fff; font-size: .5rem; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
}
.park-spots-row { display: flex; gap: 3px; flex-wrap: wrap; max-width: 70px; justify-content: flex-end; }
.park-spot {
  width: 12px; height: 16px; border: 1px dashed #5a6a7a; border-radius: 2px;
  background: rgba(0,0,0,.2);
}

/* Day report modal */
.day-report {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 200;
  display: none; align-items: flex-end; justify-content: center;
}
.day-report.open { display: flex; }
.day-report-inner {
  width: 100%; max-width: 430px; max-height: 85%;
  background: var(--bg2); border-radius: 18px 18px 0 0;
  border: 1px solid var(--border); border-bottom: none;
  padding: 18px 16px 28px; overflow-y: auto;
}
.day-report-inner h2 { font-size: 1.2rem; margin-bottom: 12px; }
.dr-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .9rem;
}
.dr-row .neg { color: var(--danger); }
.dr-row .pos { color: var(--green); }
.dr-total {
  margin-top: 10px; padding: 12px; border-radius: 12px;
  background: var(--card); font-weight: 800; font-size: 1.05rem;
  display: flex; justify-content: space-between;
}
