.d-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--ink); color: #fff; z-index: 700; }
.d-header .avatar { background: var(--brand); width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }
.d-earn { font-size: 12px; opacity: .75; }
.switch { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 6px 6px 6px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; background: rgba(255, 255, 255, .12); color: #fff; }
.switch .knob { width: 42px; height: 24px; border-radius: 12px; background: rgba(255, 255, 255, .25); position: relative; transition: background .2s; }
.switch .knob::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch.on .knob { background: var(--ok); }
.switch.on .knob::after { left: 21px; }
#app .map-wrap { flex: 1; }
.d-locate { right: 14px; bottom: 40px; background: #fff; box-shadow: var(--shadow); }
.d-sheet { background: #fff; border-radius: 26px 26px 0 0; margin-top: -26px; position: relative; z-index: 500; padding: 8px 16px 16px; box-shadow: 0 -8px 30px rgba(14, 27, 61, .12); max-height: 62%; overflow-y: auto; }
.d-sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.d-page { flex: 1; overflow-y: auto; padding: 16px; }
#app.page-mode .map-wrap, #app.page-mode .d-sheet { display: none; }
.idle { display: flex; align-items: center; gap: 14px; }
.radar { width: 48px; height: 48px; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; color: var(--ok); position: relative; flex-shrink: 0; }
.radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); animation: radar 1.8s infinite; }
@keyframes radar { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.step-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.step-tag.b { background: var(--brand); }
.place-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 2px; }
.nav-row { display: grid; grid-template-columns: 1fr 1fr 48px; gap: 8px; }
.cash-alert { display: flex; align-items: center; gap: 12px; background: var(--warn-soft); color: #8a5a00; padding: 12px 14px; border-radius: 14px; font-weight: 700; font-size: 14px; }
.pin-inputs { display: flex; gap: 8px; justify-content: center; }
.pin-inputs input { width: 54px; height: 60px; text-align: center; font-size: 26px; font-weight: 800; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); outline: none; }
.pin-inputs input:focus { border-color: var(--ink); background: #fff; }
.offer { text-align: left; }
.offer-top { display: flex; align-items: center; justify-content: space-between; }
.ring { width: 64px; height: 64px; position: relative; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; }
.offer-earn { font-size: 36px; font-weight: 800; letter-spacing: -.03em; color: var(--ok); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 140px; margin-top: 12px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar span { width: 100%; border-radius: 8px 8px 4px 4px; background: #dfe3ec; min-height: 4px; }
.bar.today span { background: var(--brand); }
.bar small { font-size: 11px; font-weight: 700; color: var(--muted); }
.payout { background: linear-gradient(135deg, var(--ink), #24366b); color: #fff; border-radius: 22px; padding: 18px; }
.payout .big-number { color: #fff; }
.ledger-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-switch { width: 46px; height: 28px; border-radius: 14px; background: var(--line); border: 0; position: relative; cursor: pointer; flex-shrink: 0; }
.mini-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.mini-switch.on { background: var(--ok); }
.mini-switch.on::after { left: 21px; }
