/* ИЗМЕНЯТЬ ЗДЕСЬ: цвета, размеры кнопок, фоны и закругления Mini App. */
:root {
  --bg:#f5f7fb; --card:#ffffff; --text:#161b29; --muted:#667186;
  --accent:#256bfa; --border:#e0e5ef; --good:#138353;
  --kaspi:#e32128; --warn:#9c6613; --radius:18px;
}
* {box-sizing:border-box}
body {margin:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,sans-serif}
main {max-width:560px;margin:auto;padding:20px 16px 120px}
.top {display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
h1 {font-size:25px;margin:3px 0}h2 {font-size:20px;margin:0 0 12px}h3 {font-size:17px;margin:0 0 10px}
p {margin:7px 0}b {font-weight:740}
.muted {color:var(--muted)}.tiny {font-size:13px}.small {font-size:14px}
.eyebrow {letter-spacing:.12em;font-size:11px;color:var(--muted);font-weight:800}
.card {background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:17px;margin:14px 0;box-shadow:0 2px 12px #00000008}
.grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.row {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.stack {display:grid;gap:10px}
.profile {display:flex;align-items:center;gap:12px}
.avatar {width:48px;height:48px;border-radius:50%;background:#e6efff;display:grid;place-items:center;font-size:24px}
.divider {border-top:1px solid var(--border);margin:16px 0}
button, .file-button {font:inherit;cursor:pointer;border:0;border-radius:13px;padding:14px 13px;background:var(--accent);color:white;font-weight:730;text-align:center;transition:filter .1s}
button:active,.file-button:active {filter:brightness(.93)}
button:disabled {opacity:.48;cursor:not-allowed}
button.secondary {background:#eaf0fa;color:#263b5f}
button.ghost {background:transparent;color:var(--accent)}
button.kaspi {background:var(--kaspi);color:white;font-size:17px;min-height:54px}
.full {width:100%;margin-top:10px}
.tariff {background:white;border:1px solid var(--border);color:var(--text);font-size:17px;min-height:70px}
.tariff.selected {border:3px solid var(--accent);padding:12px 11px}
.car {display:flex;flex-direction:column;align-items:stretch;gap:5px;cursor:pointer;text-align:left;color:var(--text);width:100%;padding:12px;font-weight:400}
.car.selected {outline:3px solid var(--accent);outline-offset:0}
.car-image {height:114px;background:linear-gradient(140deg,#f4f6fa,#e7ecf3);border-radius:12px;display:grid;place-items:center;overflow:hidden;margin-bottom:8px}
.car-image img {width:95%;height:100%;object-fit:contain}
.pill {display:inline-block;align-self:flex-start;background:#f9e7cb;color:var(--warn);border-radius:100px;padding:5px 10px;font-size:13px;font-weight:730}
.pill.good {background:#e3f5e9;color:#086740}
.big-number {font-weight:850;font-size:48px;text-align:center;margin:10px}
.copyfield {display:flex;align-items:center;gap:8px;background:#f0f3f8;padding:8px;border-radius:12px;min-width:0}
.ellipsis {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;padding-left:8px;font-size:15px}
.copy {flex-shrink:0;background:#dce3ed;color:#193455;opacity:.72;font-size:20px;padding:8px 14px;min-width:50px}
.result {margin-top:17px}
.file-button {display:block;width:100%;background:#e9f0fe;color:#244674;border:1px solid #cbd8ef;margin:14px 0 4px;font-size:16px}
.file-name {color:var(--muted);font-size:15px;word-break:break-word;padding:5px 2px}
.visually-hidden {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.error {color:#b42a2f;overflow-wrap:anywhere}
details {border:1px solid var(--border);border-radius:12px;padding:10px 13px;margin:12px 0;background:#f8faff}
summary {cursor:pointer;font-size:16px;font-weight:710}
details p {margin:11px 0;font-size:14px;overflow-wrap:anywhere}
.metric {display:flex;flex-direction:column;gap:5px;background:#f7f9fd;padding:11px;border-radius:13px}
.metric b {font-size:19px}.metric span {font-size:14px;color:var(--muted)}.metric small {font-size:11px;color:var(--muted)}
.bottom-nav {position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--border);display:flex;justify-content:space-around;align-items:center;gap:5px;padding:9px 8px calc(10px + env(safe-area-inset-bottom))}
.bottom-nav button {background:transparent;color:var(--muted);font-size:15px;font-weight:700;padding:6px 4px;flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;box-shadow:none}
.bottom-nav .nav-icon {font-size:22px;line-height:1}
.bottom-nav .nav-label {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bottom-nav button.active {color:var(--accent);background:rgba(0,0,0,.04);border-radius:12px}
.bottom-nav.five button {font-size:13px}
/* Счёт DeKaCoin */
.wallet .balance, .balance {font-size:34px;font-weight:800;line-height:1.15;margin:4px 0}
.wallet .coin {font-size:40px}
.attention {border-left:5px solid #f2a100}
.attention.good-line {border-left-color:#1f9d55}
.grid.three {grid-template-columns:repeat(3,1fr)}
.plus {color:#1f9d55;white-space:nowrap}
.minus {color:#c0392b;white-space:nowrap}
.mail-status {background:#fff6e0;border-radius:10px;padding:8px}
.center {text-align:center}
@media(max-width:390px) { .card{padding:13px}.car-image{height:95px}.tariff{font-size:15px}.bottom-nav button{font-size:14px}.bottom-nav.five button{font-size:13px}.bottom-nav .nav-icon{font-size:20px}.big-number{font-size:42px} }
/* Поле, куда сотрудник вставляет ссылку/код вручную. */
.input {width:100%;box-sizing:border-box;font-size:16px;padding:12px;border:1px solid var(--border);border-radius:12px;margin-top:8px}

/* ===== Профиль и отзывы (версия 2.6) ===== */
.notice {background:#e3f5e9;border-color:#b9e3c8;color:#0b5a37;font-weight:600}
.pill.bad {background:#fde4e4;color:#a3262b}
.review-line {display:flex;flex-direction:column;gap:3px;padding:10px 0;border-bottom:1px solid var(--border)}
.review-line:last-of-type {border-bottom:0}
.review-line .row {flex-wrap:nowrap}
.bad-line b {color:#a3262b}
.history-line {padding:7px 0;border-bottom:1px solid var(--border);flex-wrap:nowrap}
.thumbs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}
.thumbs img {width:100%;height:120px;object-fit:cover;border-radius:10px;background:#eef1f6;cursor:zoom-in}
.thumbs img.broken {object-fit:contain;font-size:11px;color:var(--muted)}
.shots {display:grid;gap:12px;margin:12px 0}
.shot {border:1px solid var(--border);border-radius:13px;padding:8px;display:grid;gap:6px}
.shot img {width:100%;max-height:260px;object-fit:contain;background:#f0f3f8;border-radius:9px}
.small-btn {font-size:14px;padding:10px 8px;margin:0}
.lightbox {position:fixed;inset:0;background:#000000dd;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;z-index:50;padding:16px;color:#fff}
.lightbox img {max-width:100%;max-height:88vh;object-fit:contain;border-radius:8px}
.seg {display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#eaf0fa;padding:5px;border-radius:14px;margin-bottom:6px}
.seg button {background:transparent;color:#263b5f;padding:10px}
.seg button.active {background:#fff;color:var(--accent);box-shadow:0 1px 6px #00000014}
.card.inner {margin:10px 0;box-shadow:none;background:#f8faff}
.selected-driver {border:2px solid var(--accent)}
.check {display:flex;gap:10px;align-items:flex-start;font-size:14px;margin:10px 0}
.check input {width:20px;height:20px;flex-shrink:0;margin-top:2px}
label.small {display:block;margin-top:10px}
textarea.input {font:inherit;resize:vertical}
.row.nowrap {flex-wrap:nowrap}.row.nowrap .input {margin-top:0}
/* 3.0.2: компактные карточки главной — профиль, счёт и аренда помещаются в один экран */
.card.compact {padding:13px 15px;margin:10px 0}
.card.compact .divider {margin:10px 0}
.card.compact .balance {font-size:28px;margin:0}
.card.compact .coin {font-size:32px}
.card.compact .avatar {width:40px;height:40px;font-size:20px}
.card.compact button.full {margin-top:8px}
.card.compact p {margin:4px 0}
.grow {flex:1;min-width:0}
.steps {margin:8px 0 4px;padding-left:20px}
.steps li {margin:3px 0}
.file-button.picked {background:#e8f7ee;color:#17603a;border-color:#b8e2c8}
.file-name {font-weight:600}
/* 3.2: главная — больше воздуха между «Мой счёт», суммой и кнопкой; крупная круглая аватарка */
.wallet-label {display:block;margin-bottom:6px}
.card.compact .balance {margin:2px 0 4px}
.card.compact button.pay-gap {margin-top:16px}
.avatar {overflow:hidden;flex-shrink:0}
.avatar img {width:100%;height:100%;object-fit:cover;display:block}
.avatar.big {width:64px;height:64px;font-size:30px}
.card.compact .avatar.big {width:64px;height:64px;font-size:30px}
.avatar.huge {width:96px;height:96px;font-size:44px;box-shadow:0 0 0 4px #fff,0 0 0 6px #d6e2fb}
h3.name {margin:0;font-size:19px}
/* Профиль: шапка, специальность, «О себе», счётчики */
.profile-head {display:flex;align-items:center;gap:16px}
.profile-head h2 {margin:0 0 2px}
.profile-head p {margin:0 0 6px}
.chip {display:inline-block;background:linear-gradient(120deg,#256bfa,#6a4dff);color:#fff;border-radius:100px;padding:4px 12px;font-size:13px;font-weight:700}
.about {position:relative;background:#f5f8ff;border:1px solid #dfe7f7;border-radius:14px;padding:14px 16px 12px;margin:14px 0 4px;
  white-space:pre-line;line-height:1.55;font-size:15px}
.about-label {display:block;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:4px}
.counts {text-align:center}
.counts div {background:#f7f9fd;border-radius:12px;padding:10px 6px;display:flex;flex-direction:column;gap:2px}
.counts b {font-size:24px}.counts span {font-size:12px;color:var(--muted)}
.avatar-edit {display:flex;align-items:center;gap:16px;margin:6px 0 4px}
.avatar-edit .stack {flex:1}
.hidden {display:none}
select.input {background:#fff;appearance:auto}
.quote {margin:8px 0 4px;padding:10px 14px;border-left:4px solid var(--accent);background:#f5f8ff;border-radius:0 12px 12px 0;
  font-style:italic;white-space:pre-line;font-size:15px}
.seg.three {grid-template-columns:1fr 1fr 1fr}
.seg.three button {padding:10px 4px;font-size:14px}
/* 3.3: монета DeKaCoin картинкой, карточка канала */
.coin-img {width:52px;height:52px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 3px 6px #00000033)}
.coin-img.small {width:26px;height:26px;margin-left:6px}
.channel-card {border:1px solid #cdddfc;background:linear-gradient(140deg,#f2f6ff,#ffffff)}
/* Кадрирование аватарки */
.cropper {position:fixed;inset:0;z-index:60;background:#0b1020cc;display:flex;align-items:center;justify-content:center;padding:16px}
.crop-panel {background:#fff;border-radius:20px;padding:18px;max-width:360px;width:100%;display:flex;flex-direction:column;align-items:center}
.crop-panel h3 {margin-bottom:12px}
.crop-panel .grid {width:100%}
.crop-box {position:relative;overflow:hidden;border-radius:16px;background:#111;touch-action:none;user-select:none;cursor:grab}
.crop-box img {position:absolute;left:0;top:0;max-width:none;transform-origin:0 0;pointer-events:none}
.crop-ring {position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 999px #000000a0;outline:2px solid #fff;pointer-events:none}
.crop-zoom {width:100%;margin:14px 0 2px;accent-color:var(--accent)}
