/* VoltAy – mobil öncelikli arayüz
   Marka: lacivert #0A192F, turuncu #FF6B00 */

:root {
  --navy: #0A192F;
  --navy-2: #13294B;
  --orange: #FF6B00;
  --orange-press: #E05E00;
  --orange-soft: #FFF1E6;

  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --text: #0A192F;
  --text-2: #4A5568;
  --text-3: #6B7686;
  --border: #DFE3EA;
  --border-strong: #C5CCD8;

  --green: #12805C;   --green-soft: #E5F5EE;
  --red: #C62828;     --red-soft: #FDECEC;
  --amber: #A15C00;   --amber-soft: #FFF4DE;
  --blue: #1D5FBF;    --blue-soft: #E8F0FC;
  --wa: #128C7E;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(10, 25, 47, .06), 0 2px 8px rgba(10, 25, 47, .05);
  --shadow-lg: 0 6px 24px rgba(10, 25, 47, .18);

  --top-h: 56px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --fast: 120ms;
  --med: 200ms;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.45 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 4px;
  min-height: calc(var(--top-h) + var(--safe-t));
  padding: var(--safe-t) 8px 0;
  background: var(--navy); color: #fff;
}
.topbar h1 { flex: 1; font-size: 18px; font-weight: 650; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .brand { display: flex; align-items: center; gap: 8px; padding-left: 8px; flex: 1; font-weight: 700; font-size: 19px; letter-spacing: .2px; }
.topbar .brand svg { width: 24px; height: 24px; color: var(--orange); }
.topbar .brand b { color: var(--orange); font-weight: 700; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:active { background: rgba(255,255,255,.12); }
.icon-btn svg { width: 24px; height: 24px; }

/* ---------- Görünüm ---------- */
.view {
  max-width: 640px; margin: 0 auto;
  padding: 16px 16px calc(var(--tab-h) + var(--safe-b) + 96px);
  outline: none;
}
.view.no-tabs { padding-bottom: calc(var(--safe-b) + 112px); }
.boot { display: grid; place-items: center; min-height: 50vh; }
.stack > * + * { margin-top: 12px; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 24px 4px 8px; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .5px; color: var(--text-3);
}

/* ---------- Alt sekme çubuğu ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface); border-top: 1px solid var(--border);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--text-3); text-decoration: none; font-size: 11.5px; font-weight: 550;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--orange); }

/* ---------- Kartlar ve listeler ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card.pad { padding: 16px; }
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.list > * + * { border-top: 1px solid var(--border); }
.row {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 14px;
  color: inherit; text-decoration: none;
}
a.row:active { background: var(--bg); }
.row .main { flex: 1; min-width: 0; }
.row .title { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { color: var(--text-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .end { text-align: right; flex-shrink: 0; }
.row .amount { font-weight: 650; font-variant-numeric: tabular-nums; }

.avatar {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--navy-2); color: #fff; font-weight: 650; font-size: 15px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; font-size: 15px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- Rozetler ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--bg); color: var(--text-2); border: 1px solid var(--border);
}
.badge.orange { background: var(--orange-soft); color: #A34400; border-color: #FFD6B8; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: #BFE6D4; }
.badge.red { background: var(--red-soft); color: var(--red); border-color: #F5C6C6; }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: #F5DDB0; }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: #C9DBF6; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: var(--r);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 620; text-decoration: none; cursor: pointer;
  transition: background var(--fast), transform var(--fast);
}
.btn:active { transform: scale(.98); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:active { background: var(--orange-press); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.danger { color: var(--red); border-color: #F0C2C2; }
.btn.block { width: 100%; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn:not(.primary):not(.navy).busy::after { border-color: var(--border); border-top-color: var(--orange); }

.actions-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 68px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface); color: var(--navy); text-decoration: none; font-size: 13.5px; font-weight: 620;
}
.action svg { width: 24px; height: 24px; }
.action.wa svg { color: var(--wa); }
.action.go svg { color: var(--blue); }
.action.call svg { color: var(--green); }
.action:active { background: var(--bg); }
.action.disabled { opacity: .4; pointer-events: none; }

.fab {
  position: fixed; z-index: 15;
  right: max(16px, calc(50vw - 320px + 16px));
  bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  display: inline-flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 28px; border: 0;
  background: var(--orange); color: #fff; font-weight: 650; text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.fab svg { width: 24px; height: 24px; }
.fab:active { background: var(--orange-press); }

.savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: var(--surface); border-top: 1px solid var(--border);
}
.savebar .inner { max-width: 608px; margin: 0 auto; display: flex; gap: 8px; }
.savebar .btn { flex: 1; }

/* ---------- Formlar ---------- */
.field { display: block; }
.field + .field, .field + .fieldset, .fieldset + .field { margin-top: 16px; }
.field > span, .fieldset > legend { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.field .hint { margin-top: 4px; font-size: 13px; color: var(--text-3); }
.field .err, .form-error { margin-top: 4px; font-size: 13.5px; color: var(--red); font-weight: 550; }
.form-error { padding: 10px 12px; border-radius: var(--r-sm); background: var(--red-soft); margin: 0 0 12px; }
.input {
  width: 100%; min-height: 48px; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: #fff;
  font-size: 16px; /* 16px: Android/iOS odaklanınca yakınlaştırmasın */
}
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,0,.18); }
.field.invalid .input { border-color: var(--red); }
.fieldset { border: 0; padding: 0; margin: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 550; }
.check input { width: 22px; height: 22px; accent-color: var(--orange); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex-shrink: 0;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: #fff;
  font-size: 14.5px; font-weight: 580; color: var(--text-2); cursor: pointer; user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }

.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 42px; }

.geo {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: #fff; font-size: 14.5px;
}
.geo .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.geo.ok .dot { background: var(--green); }
.geo.wait .dot { background: var(--amber); animation: pulse 1s ease-in-out infinite; }
.geo.err .dot { background: var(--red); }
.geo .txt { flex: 1; }

.photo-pick {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border: 1px dashed var(--border-strong); border-radius: var(--r-sm); background: #fff;
}
.photo-pick img { width: 72px; height: 72px; border-radius: var(--r-sm); object-fit: cover; }
.photo-pick .ph { width: 72px; height: 72px; border-radius: var(--r-sm); background: var(--bg); display: grid; place-items: center; color: var(--text-3); }
.photo-pick .ph svg { width: 28px; height: 28px; }

/* ---------- Müşteri başlığı ---------- */
.hero { display: flex; gap: 14px; align-items: center; }
.hero .avatar { width: 72px; height: 72px; border-radius: 14px; font-size: 22px; }
.hero h2 { font-size: 20px; }
.hero .sub { color: var(--text-2); margin-top: 2px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.photo-full { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--r); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.stat .lbl { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.stat .val { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }

/* ---------- Boş durum ---------- */
.empty { text-align: center; padding: 40px 16px; color: var(--text-2); }
.empty svg { width: 48px; height: 48px; color: var(--border-strong); margin: 0 auto 12px; }
.empty h3 { color: var(--text); font-size: 17px; margin-bottom: 6px; }
.empty p { margin: 0 0 16px; }

/* ---------- Giriş ---------- */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--navy); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.login-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; font-size: 26px; font-weight: 750; color: var(--navy); }
.login-logo svg { width: 34px; height: 34px; color: var(--orange); }
.login-logo b { color: var(--orange); }

/* ---------- Bildirim (toast) ---------- */
.toasts {
  position: fixed; left: 16px; right: 16px; z-index: 50;
  bottom: calc(var(--tab-h) + var(--safe-b) + 84px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.toast {
  max-width: 480px; padding: 12px 16px; border-radius: var(--r);
  background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); font-weight: 550;
  animation: toast-in var(--med) ease-out;
}
.toast.error { background: var(--red); }

/* ---------- Diyalog ---------- */
dialog.sheet {
  width: min(100% - 32px, 440px); padding: 20px; border: 0; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); color: var(--text);
}
dialog.sheet::backdrop { background: rgba(10, 25, 47, .5); }
dialog.sheet h3 { font-size: 18px; margin-bottom: 8px; }
dialog.sheet p { margin: 0 0 16px; color: var(--text-2); }
dialog.sheet .btns { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--orange); animation: spin .7s linear infinite;
}
.skeleton { background: linear-gradient(90deg, #E9EDF2 25%, #F3F5F8 50%, #E9EDF2 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .spinner, .btn.busy::after { animation: spin 1.5s linear infinite !important; }
}

.muted { color: var(--text-3); }
.mt-0 { margin-top: 0 !important; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

/* ======================= 2.–9. adım bileşenleri ======================= */

/* Alttan açılan panel */
dialog.sheet.bottom {
  width: 100%; max-width: 560px; max-height: 92dvh; margin: auto auto 0; padding: 0;
  border-radius: 18px 18px 0 0; overflow: hidden;
}
@media (min-width: 600px) { dialog.sheet.bottom { margin: auto; border-radius: var(--r-lg); } }
dialog.sheet.bottom form { display: flex; flex-direction: column; max-height: 92dvh; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 12px 8px 4px 20px; }
.sheet-head h3 { flex: 1; margin: 0 !important; }
.sheet-body { padding: 8px 20px 16px; overflow-y: auto; }
.sheet-foot { padding: 12px 20px calc(12px + var(--safe-b)); border-top: 1px solid var(--border); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 > .field + .field { margin-top: 0; }

/* Sekmeler */
.tabs { display: flex; gap: 4px; padding: 4px; background: #E6EAF0; border-radius: var(--r); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a {
  flex: 1 0 auto; min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; display: grid; place-items: center; cursor: pointer;
}
.tabs [aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.tabs .n { font-size: 12px; color: var(--text-3); margin-left: 4px; }

/* Check-in kartı */
.work-card { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 16px; }
.work-card .timer { font-size: 34px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.work-card .muted { color: #A9B4C6; }
.work-card .btn { border: 0; }
.work-card .btn.stop { background: #fff; color: var(--red); }
.pending { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--amber); font-weight: 600; }
.pending svg { width: 16px; height: 16px; }

/* Para özeti */
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.money-grid .stat.wide { grid-column: span 2; }
.val.pos { color: var(--green); }
.val.neg { color: var(--red); }
.fin-rows { font-size: 15px; }
.fin-rows .r { display: flex; justify-content: space-between; padding: 6px 0; }
.fin-rows .r + .r { border-top: 1px dashed var(--border); }
.fin-rows .r.total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--border-strong); }
.fin-rows .r span:last-child { font-variant-numeric: tabular-nums; }

/* Büyük gösterge (kaç ay idare ederim) */
.gauge { padding: 18px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.gauge .big { font-size: 40px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.gauge .big small { font-size: 18px; font-weight: 600; color: #A9B4C6; margin-left: 4px; }
.gauge .lbl { color: #A9B4C6; font-size: 13.5px; font-weight: 600; }
.gauge .sub { color: #D5DCE7; font-size: 14px; margin-top: 6px; }
.bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 10px; }
.bar > i { display: block; height: 100%; background: var(--orange); border-radius: 6px; }
.card .bar { background: var(--bg); }

/* Basit sütun grafik */
.chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 140px; padding: 8px 4px 0; }
.chart .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; height: 100%; }
.chart .bars { display: flex; gap: 2px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.chart .b { width: 42%; border-radius: 3px 3px 0 0; min-height: 2px; }
.chart .b.in { background: var(--green); }
.chart .b.out { background: #F2A7A7; }
.chart .m { font-size: 11px; color: var(--text-3); }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.hbar { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; }
.hbar .track { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--orange); border-radius: 4px; }
.hbar .v { font-weight: 650; font-variant-numeric: tabular-nums; }

/* Fotoğraf ızgarası */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photo { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--bg); border: 0; padding: 0; cursor: pointer; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(10,25,47,.75); color: #fff; }
.photo .fav { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; color: #FFC53D; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.photo.add { display: grid; place-items: center; border: 1.5px dashed var(--border-strong); background: #fff; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.photo.add svg { width: 26px; height: 26px; margin: 0 auto 4px; display: block; }
.photo.queued { outline: 2px dashed var(--amber); outline-offset: -2px; }
.viewer img { width: 100%; max-height: 60dvh; object-fit: contain; border-radius: var(--r-sm); background: #000; }

/* Menü ızgarası */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.menu-grid a {
  display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); color: var(--navy); text-decoration: none; font-weight: 620;
}
.menu-grid a svg { width: 24px; height: 24px; color: var(--orange); flex-shrink: 0; }
.menu-grid .cnt { margin-left: auto; }

/* Harita */
.map { height: 58dvh; min-height: 320px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: #E6EAF0; }
.leaflet-popup-content { font: 14px/1.4 var(--font); }

/* Çevrimdışı şeridi */
.offline-bar {
  position: sticky; top: calc(var(--top-h) + var(--safe-t)); z-index: 19;
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px;
  background: var(--amber-soft); color: var(--amber); font-size: 13.5px; font-weight: 600; border-bottom: 1px solid #F5DDB0;
}
.offline-bar svg { width: 18px; height: 18px; }

/* Kalem düzenleyici (teklif) */
.item-row { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px; background: #fff; }
.item-row + .item-row { margin-top: 8px; }
.item-row .top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.item-row .grid-3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; }
.item-row .input { min-height: 44px; }
.item-row .line { text-align: right; font-weight: 650; font-size: 14px; margin-top: 6px; color: var(--text-2); }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 8px; overflow: hidden; }
.seg label { padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--navy); color: #fff; }

.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--orange); height: 32px; }
.eta-big { font-size: 44px; font-weight: 800; text-align: center; color: var(--navy); line-height: 1.1; }
.eta-big small { font-size: 18px; color: var(--text-3); font-weight: 600; }
.preview-msg { white-space: pre-wrap; background: #E7F8EE; border: 1px solid #C5EBD3; border-radius: var(--r-sm); padding: 10px 12px; font-size: 14.5px; }

.row .chev { color: var(--text-3); width: 18px; height: 18px; flex-shrink: 0; }
.row .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--navy); flex-shrink: 0; }
.row .ic svg { width: 22px; height: 22px; }
.row .ic.green { background: var(--green-soft); color: var(--green); }
.row .ic.red { background: var(--red-soft); color: var(--red); }
.row .ic.orange { background: var(--orange-soft); color: var(--orange); }
.row .ic.blue { background: var(--blue-soft); color: var(--blue); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-actions .btn { flex: 1 1 auto; }
.amount.neg { color: var(--red); }
.amount.pos { color: var(--green); }
.notice { padding: 12px 14px; border-radius: var(--r); background: var(--blue-soft); color: #173E7A; font-size: 14.5px; border: 1px solid #C9DBF6; }
.notice.warn { background: var(--amber-soft); color: #6E3F00; border-color: #F5DDB0; }
.notice.ok { background: var(--green-soft); color: #0C5A41; border-color: #BFE6D4; }
code.token { display: block; word-break: break-all; padding: 10px; background: var(--bg); border-radius: 8px; font-size: 13px; user-select: all; }
.row > svg, a.row > svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
