/* 3D KIDS CRM — палитра и типографика взяты из буклетов студии. */

/* ---------- шрифты ---------- */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/unbounded-500-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/unbounded-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/unbounded-600-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/unbounded-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/unbounded-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/unbounded-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/manrope-400-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/manrope-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/manrope-500-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/manrope-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-600-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/manrope-600-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-700-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}

/* ---------- токены ---------- */
:root {
  --blue: #6489ed;
  --blue-deep: #597ed8;
  --blue-ink: #33509b;
  --blue-wash: #eef2fd;
  --blue-line: #c9d6f8;
  --orange: #fd9e57;
  --orange-wash: #fff2e7;

  --ink: #1b1f24;
  --ink-2: #414952;
  --muted: #757e85;
  --line: #e9e9e9;
  --line-2: #cccccc;
  --head: #f1f1f1;
  --paper: #ffffff;
  --bg: #f6f7fb;

  --ok: #2e9e6b;
  --ok-wash: #e8f6ef;
  --warn: #d9822b;
  --danger: #d9534f;
  --danger-wash: #fdeceb;

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --shadow: 0 1px 2px rgba(27, 31, 36, .06), 0 8px 24px rgba(27, 31, 36, .05);
  --shadow-lift: 0 2px 6px rgba(27, 31, 36, .08), 0 18px 40px rgba(27, 31, 36, .1);

  --head-h: 64px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', var(--font);
}

/* ---------- сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 .7em; }
a { color: var(--blue-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; width: 100%; }

.boot { display: grid; place-items: center; min-height: 100vh; }
.boot-mark {
  font-family: var(--display); font-weight: 700; letter-spacing: .12em;
  color: var(--blue); opacity: .35; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: .6; } }

/* ---------- вход ---------- */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1100px 520px at 12% -10%, #eaf0ff 0%, rgba(234, 240, 255, 0) 62%),
    radial-gradient(900px 480px at 108% 108%, #fff1e5 0%, rgba(255, 241, 229, 0) 60%),
    var(--bg);
}
.login-card {
  width: min(420px, 100%); background: var(--paper); border-radius: var(--r-l);
  box-shadow: var(--shadow-lift); padding: 40px 32px 32px; text-align: center;
}
.login-logo {
  font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .04em;
  color: var(--blue-deep);
}
.login-logo span { color: var(--orange); }
.login-sub { color: var(--muted); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin-top: 6px; }
.login form { margin-top: 28px; display: grid; gap: 12px; text-align: left; }
.login .btn { margin-top: 6px; }
.login-foot { margin-top: 22px; font-size: 12px; color: var(--muted); }

/* ---------- поля ---------- */
.field { display: grid; gap: 6px; }
.field > label, .lbl {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.inp, select.inp, textarea.inp {
  width: 100%; background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-s); padding: 11px 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
textarea.inp { min-height: 96px; resize: vertical; }
select.inp {
  appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23757e85' d='M1 1.6 6 6.4l5-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 11px;
}
.inp:focus, select.inp:focus, textarea.inp:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(100, 137, 237, .18);
}
.inp:disabled, select.inp:disabled { background: #fafafa; color: var(--muted); cursor: not-allowed; }
.inp.slim { padding: 7px 9px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 17px; height: 17px; accent-color: var(--blue); cursor: pointer; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r-s); padding: 11px 18px;
  background: var(--blue); color: #fff; font-weight: 600; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .06s, color .15s, border-color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--blue-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: var(--paper); border-color: var(--line-2); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue-ink); background: var(--blue-wash); }
.btn.accent { background: var(--orange); }
.btn.accent:hover { background: #f08c40; }
.btn.danger { background: var(--paper); border-color: #eccbca; color: var(--danger); }
.btn.danger:hover { background: var(--danger-wash); }
.btn.slim { padding: 7px 12px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.icon { padding: 8px 10px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row.end { justify-content: flex-end; }

/* ---------- каркас ---------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--head-h);
  background: var(--blue-deep); color: #fff; display: flex; align-items: center;
  gap: 18px; padding: 0 20px;
}
.topbar .mark {
  font-family: var(--display); font-weight: 700; letter-spacing: .05em; font-size: 18px;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.topbar .mark span { color: var(--orange); }
.topnav { display: flex; gap: 4px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  color: rgba(255, 255, 255, .78); text-decoration: none; padding: 8px 13px;
  border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.topnav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.topnav a.on { background: #fff; color: var(--blue-ink); }
.whoami { display: flex; align-items: center; gap: 10px; }
.whoami .who-name { font-weight: 600; font-size: 14px; line-height: 1.15; }
.whoami .who-role { font-size: 11px; opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.whoami .who-txt { text-align: right; }
.iconbtn {
  background: rgba(255, 255, 255, .14); border: 0; color: #fff; border-radius: var(--r-s);
  padding: 8px 10px; cursor: pointer; display: inline-flex; transition: background .15s;
}
.iconbtn:hover { background: rgba(255, 255, 255, .26); }

.main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 20px 90px; }
.main.narrow { max-width: 780px; }

.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page-head .spacer { flex: 1; }

.back {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0;
  color: var(--muted); cursor: pointer; padding: 4px 0; font-weight: 600; font-size: 13px;
}
.back:hover { color: var(--blue-ink); }

/* ---------- карточки ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow); overflow: hidden;
}
.card + .card { margin-top: 16px; }
.card-head {
  padding: 13px 18px; background: var(--head); border-bottom: 1px solid var(--line);
  font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); display: flex; align-items: center; gap: 10px;
}
.card-head .spacer { flex: 1; }
.card-body { padding: 18px; }
.card-body.tight { padding: 12px; }
.card-foot {
  padding: 13px 18px; border-top: 1px solid var(--line); background: #fbfbfc;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1 1 180px; }

/* меню-кнопки главного экрана */
.menu { display: grid; gap: 12px; }
.menu-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-m);
  padding: 16px 18px; cursor: pointer; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .08s;
}
.menu-item:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); }
.menu-item .mi-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-wash); color: var(--blue-ink); flex: none;
}
.menu-item .mi-ico.warm { background: var(--orange-wash); color: #c9702f; }
.menu-item .mi-t { font-weight: 700; }
.menu-item .mi-d { color: var(--muted); font-size: 13px; }
.menu-item .mi-n {
  margin-left: auto; background: var(--blue); color: #fff; border-radius: 999px;
  min-width: 26px; height: 26px; padding: 0 8px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.menu-item .mi-n.zero { background: var(--line); color: var(--muted); }

/* ---------- таблицы ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { font-size: 14px; min-width: 100%; }
table.tbl th {
  background: var(--head); text-align: left; font-size: 11px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 700;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl tbody tr.clickable:hover { background: var(--blue-wash); }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl td.mid, table.tbl th.mid { text-align: center; }
table.tbl td.tight { padding: 6px 8px; }
table.tbl .idx { color: var(--muted); width: 34px; }
table.tbl tfoot td { font-weight: 700; background: #fbfbfc; border-top: 1px solid var(--line-2); }

/* ---------- мелочи ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--head); color: var(--ink-2); white-space: nowrap;
}
.tag.blue { background: var(--blue-wash); color: var(--blue-ink); }
.tag.orange { background: var(--orange-wash); color: #b5651d; }
.tag.ok { background: var(--ok-wash); color: var(--ok); }
.tag.grey { background: var(--head); color: var(--muted); }
.tag.red { background: var(--danger-wash); color: var(--danger); }

.money { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.stack { display: grid; gap: 4px; }
.sep { height: 1px; background: var(--line); margin: 16px 0; }

.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
.stat .s-l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stat .s-v { font-family: var(--display); font-weight: 600; font-size: 24px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .s-d { color: var(--muted); font-size: 12px; margin-top: 2px; }
.stat.blue { background: var(--blue-wash); border-color: var(--blue-line); }
.stat.blue .s-v { color: var(--blue-ink); }
.stat.warm { background: var(--orange-wash); border-color: #f6dcc5; }
.stat.warm .s-v { color: #b5651d; }
.stat.good .s-v { color: var(--ok); }
.stat.bad .s-v { color: var(--danger); }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty .e-t { font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }

/* подвал «ОБЩИЙ ДОХОД» */
.earnbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: var(--paper); border-top: 1px solid var(--line-2);
  box-shadow: 0 -6px 20px rgba(27, 31, 36, .06);
}
.earnbar .in {
  max-width: 1180px; margin: 0 auto; padding: 11px 20px calc(11px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.earnbar .lb { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.earnbar .vl { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--blue-ink); }
.earnbar .gap { flex: 1; }

/* дни расписания */
.day-head {
  background: var(--head); padding: 9px 14px; font-weight: 700; font-size: 13px;
  border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center;
}
.day-head.off { background: var(--danger-wash); color: var(--danger); }
.day-head .dh-d { color: var(--muted); font-weight: 600; }

/* фото */
.dropzone {
  border: 2px dashed var(--line-2); border-radius: var(--r-m); padding: 26px 16px;
  text-align: center; color: var(--muted); cursor: pointer; background: #fcfcfd;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.hot { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-ink); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); background: var(--head); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; cursor: pointer;
  border-radius: 50%; background: rgba(0, 0, 0, .58); color: #fff; display: grid; place-items: center;
  font-size: 15px; line-height: 1;
}
.thumb .x:hover { background: rgba(0, 0, 0, .8); }

/* модальное окно */
.modal-back {
  position: fixed; inset: 0; z-index: 60; background: rgba(27, 31, 36, .45);
  display: grid; place-items: center; padding: 20px; overflow: auto;
}
.modal {
  background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow-lift);
  width: min(640px, 100%); max-height: 92vh; overflow: auto;
}
.modal.wide { width: min(900px, 100%); }
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.modal-head h3 { font-size: 17px; }
.modal-head .spacer { flex: 1; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: #fbfbfc; }
.closex { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.closex:hover { color: var(--ink); }

.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(12, 14, 18, .92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; border-radius: var(--r-s); }
.lightbox .closex { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 30px; }

/* уведомления */
.toasts { position: fixed; right: 16px; bottom: 76px; z-index: 80; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.toast {
  background: var(--ink); color: #fff; padding: 11px 15px; border-radius: var(--r-s);
  box-shadow: var(--shadow-lift); font-size: 14px; animation: pop .18s ease-out;
}
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.err-line {
  background: var(--danger-wash); color: var(--danger); border: 1px solid #f2c7c5;
  border-radius: var(--r-s); padding: 9px 12px; font-size: 13px; font-weight: 600;
}

.spin { display: grid; place-items: center; padding: 60px 0; color: var(--muted); }
.spin::after {
  content: ''; width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line-2); border-top-color: var(--blue); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* график в кабинете директора */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; }
.bars .b i { display: block; border-radius: 3px 3px 0 0; min-height: 2px; }
.bars .b i.rev { background: var(--blue); }
.bars .b i.exp { background: var(--orange); }
.bars .b em { font-style: normal; text-align: center; font-size: 10px; color: var(--muted); padding-top: 4px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

@media (max-width: 860px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .whoami .who-txt { display: none; }
  .main { padding: 16px 12px 92px; }
  .page-head h1 { font-size: 20px; }
  .card-body { padding: 14px; }
  .modal-body { padding: 16px; }
}
@media (max-width: 620px) {
  .topbar .mark { font-size: 16px; }
  .earnbar .in { padding-left: 12px; padding-right: 12px; }
}

@media print {
  .topbar, .earnbar, .btn, .back, .toasts { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
  .main { max-width: none; padding: 0; }
}
