/* Atlantis HR — визуальный язык типографии: CMYK, метка совмещения, оттиск.
   Циан — норма, маджента — нарушения, жёлтый — ждёт решения, чёрный (K) — текст и главные цифры. */
:root {
  --paper: #f3f4f6;
  --surface: #ffffff;
  --ink: #1b1f27;
  --ink-2: #3a404c;
  --muted: #6b7280;
  --line: #e2e5ea;
  --line-strong: #cfd4dc;

  --c: #0094cf;      /* cyan */
  --c-soft: #e3f3fa;
  --c-deep: #00648c;
  --m: #d1245f;      /* magenta */
  --m-soft: #fbe7ee;
  --m-deep: #9c1645;
  --y: #f2b200;      /* yellow */
  --y-soft: #fdf3d3;
  --y-deep: #7a5800;
  --slate: #66718a;  /* отпрашивания, больничный */
  --slate-soft: #eceef4;
  --off: #eef0f3;

  --r-lg: 18px; --r-md: 12px; --r-sm: 8px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Onest", -apple-system, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", "Onest", -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.45 var(--font); font-feature-settings: "tnum" 1; }
.hidden { display: none !important; }
h1 { font: 650 26px/1.15 var(--font); margin: 0; letter-spacing: -0.02em; }
h2 { font: 650 17px/1.3 var(--font); margin: 0 0 10px; letter-spacing: -0.01em; }
h3 { font: 600 14px/1.3 var(--font); margin: 0 0 10px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--m); min-height: 18px; margin-top: 8px; font-size: 14px; }
a { color: var(--c-deep); text-decoration: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--c) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- марка: метка совмещения + CMYK-полоса ---------- */
.reg { width: 34px; height: 34px; flex-shrink: 0; }
.cmyk { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.cmyk i { flex: 1; }
.cmyk i:nth-child(1) { background: var(--c); } .cmyk i:nth-child(2) { background: var(--m); }
.cmyk i:nth-child(3) { background: var(--y); } .cmyk i:nth-child(4) { background: var(--ink); }

/* ---------- вход ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: var(--surface); padding: 30px 26px 24px; border-radius: 22px; width: 100%; max-width: 380px; border: 1px solid var(--line); }
.login-card .reg { width: 48px; height: 48px; }
.login-card h1 { margin-top: 16px; font-size: 24px; }
.login-card .cmyk { margin: 18px 0 20px; width: 72px; }
.login-card input { margin-bottom: 12px; }

/* ---------- каркас ---------- */
.layout { min-height: 100vh; }
.sidebar { display: none; }
main { padding: 18px 16px calc(92px + var(--safe-b)); max-width: 1180px; margin: 0 auto; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #8b919c; font-size: 11px; font-weight: 600; padding: 4px 0; position: relative; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--ink); }
.tabbar a.active::before { content: ''; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.dot-badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--y); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

@media (min-width: 900px) {
  .layout { display: flex; }
  .tabbar { display: none; }
  .sidebar { display: flex; flex-direction: column; width: 244px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
  .brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 6px; }
  .brand b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
  .brand span { display: block; font-size: 12.5px; color: var(--muted); }
  .sidebar .cmyk { margin: 10px 8px 18px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav a { display: flex; align-items: center; gap: 12px; color: var(--ink-2); padding: 10px 12px; border-radius: var(--r-md); font-size: 14.5px; font-weight: 500; position: relative; }
  .sidebar nav a svg { width: 20px; height: 20px; color: #8b919c; }
  .sidebar nav a:hover { background: var(--paper); }
  .sidebar nav a.active { background: var(--ink); color: #fff; font-weight: 600; }
  .sidebar nav a.active svg { color: #fff; }
  .sidebar nav a .count { margin-left: auto; background: var(--y); color: var(--ink); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 10px; }
  .sidebar nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
  .logout { margin-top: auto; justify-content: flex-start !important; color: var(--muted) !important; }
  main { flex: 1; padding: 30px 36px 56px; min-width: 0; }
}

/* ---------- заголовки страниц ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 2px 0 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--c-deep); font: 600 15px var(--font); margin-bottom: 10px; padding: 4px 0; background: none; border: 0; cursor: pointer; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 2px 10px; }
.section-title h2 { margin: 0; }

.month-nav { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.month-nav button { border: 0; background: none; font-size: 22px; line-height: 1; width: 42px; height: 42px; cursor: pointer; color: var(--ink); }
.month-nav button:active { background: var(--off); }
.month-nav span { min-width: 132px; text-align: center; font-weight: 600; font-size: 15px; }

/* ---------- контролы ---------- */
input, select, textarea { font: 16px var(--font); padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; width: 100%; color: var(--ink); -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1f27' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--c-soft); border-color: var(--c); }
input[type=date], input[type=time] { display: block; min-height: 46px; }
input[type=checkbox] { width: 20px; height: 20px; padding: 0; -webkit-appearance: checkbox; appearance: auto; accent-color: var(--ink); flex-shrink: 0; }
textarea { resize: vertical; min-height: 70px; }
.btn { font: 600 15px var(--font); border: 1px solid var(--line-strong); background: var(--surface); padding: 10px 16px; border-radius: var(--r-md); cursor: pointer; color: var(--ink); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; text-decoration: none; }
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.approve { background: var(--c); border-color: var(--c); color: #fff; }
.btn.danger { color: var(--m); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { padding: 6px 12px; font-size: 14px; min-height: 36px; }
.btn.wide { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.fab { position: fixed; right: 16px; bottom: calc(84px + var(--safe-b)); z-index: 25; width: 58px; height: 58px; border-radius: 18px; background: var(--ink); color: #fff; border: 0; font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 10px 26px rgba(27,31,39,.28); }
@media (min-width: 900px) { .fab { display: none; } }
.only-desktop { display: none !important; }
@media (min-width: 900px) { .only-desktop { display: inline-flex !important; } .only-mobile { display: none !important; } }

/* ---------- поверхности ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; border: 1px solid var(--line); }
.card.flush { padding: 0; overflow: hidden; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 8px; }
.card-title h2 { margin: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li, .list > a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: inherit; }
.list > :first-child { border-top: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .sub { color: var(--muted); font-size: 13.5px; }
.list .right { text-align: right; flex-shrink: 0; }
.list a:hover { background: #fafbfc; }
.chev { color: #b9bec7; font-size: 20px; flex-shrink: 0; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0; color: #fff; background: var(--ink); letter-spacing: .02em; }
.avatar.lg { width: 58px; height: 58px; font-size: 20px; border-radius: 16px; }

/* сводка дня: полоса-оттиск вместо четырёх одинаковых карточек */
.press { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px; }
.press > div { padding: 14px 14px 12px; border-left: 1px solid var(--line); position: relative; }
.press > div:first-child { border-left: 0; }
.press > div::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--k, var(--ink)); }
.press .v { font: 650 30px/1 var(--font); letter-spacing: -0.02em; margin-top: 6px; }
.press .l { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) { .press { grid-template-columns: repeat(2, 1fr); } .press > div:nth-child(3) { border-left: 0; } .press > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border-radius: var(--r-md); padding: 12px 14px; border: 1px solid var(--line); }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font: 650 25px/1.15 var(--font); margin-top: 4px; letter-spacing: -0.02em; }
.stat.warn .value { color: var(--y-deep); } .stat.bad .value { color: var(--m); } .stat.ok .value { color: var(--c-deep); }

/* блок «ждут решения» */
.decide { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.decide a { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--y-soft); color: var(--ink); border: 1px solid #f3dc92; }
.decide a b { font-size: 24px; font-weight: 700; }
.decide a span { font-size: 14px; line-height: 1.3; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--off); border-radius: var(--r-sm); padding: 4px 9px; font-size: 13px; }
.chip b { font-weight: 650; }

.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.b-ok { background: var(--c-soft); color: var(--c-deep); }
.b-warn { background: var(--m-soft); color: var(--m-deep); }
.b-bad { background: var(--m); color: #fff; }
.b-info { background: var(--y-soft); color: var(--y-deep); }
.b-pending { background: var(--y); color: var(--ink); }
.b-off { background: var(--off); color: var(--muted); }
.b-accent { background: var(--ink); color: #fff; }
.b-slate { background: var(--slate-soft); color: var(--slate); }

.alert { padding: 12px 14px; border-radius: var(--r-md); margin-bottom: 10px; font-size: 14px; border: 1px solid; }
.alert.warn { background: var(--y-soft); border-color: #f3dc92; color: var(--y-deep); }
.alert.info { background: var(--c-soft); border-color: #bfe3f2; color: var(--c-deep); }
.alert a { font-weight: 650; text-decoration: underline; color: inherit; }
.search { margin-bottom: 12px; }
.empty { padding: 30px 16px; text-align: center; color: var(--muted); }

/* ---------- деньги: оттиск ведомости ---------- */
.proof { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; margin-bottom: 12px; overflow: hidden; position: relative; }
.proof .cmyk { border-radius: 0; height: 8px; }
.proof .body { padding: 18px 18px 16px; display: grid; gap: 4px; }
.proof .label { color: var(--muted); font-size: 14px; }
.proof .big { font: 700 clamp(30px, 8vw, 44px)/1.05 var(--display); letter-spacing: -0.03em; }
.proof .big small { font: 600 16px var(--font); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.proof .row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); margin-top: 8px; padding-right: 34px; }
.proof .row span b { font-weight: 650; }
.proof .reg { position: absolute; right: 16px; bottom: 16px; width: 28px; height: 28px; opacity: .35; }
.pay-net { font: 700 17px var(--font); }
.ledger { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; font-size: 15px; }
.ledger .v { text-align: right; white-space: nowrap; }
.ledger .minus { color: var(--m); } .ledger .plus { color: var(--c-deep); }
.ledger .total { font-weight: 700; font-size: 18px; border-top: 2px solid var(--ink); padding-top: 10px; }
.ledger .note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin-top: -4px; }

/* ---------- календарь ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .wd { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.cal .wd.sun { color: var(--m); }
.cal .d { aspect-ratio: 1 / 1; max-height: 54px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 650 14px/1.05 var(--font); cursor: pointer; background: var(--off); color: #a7adb7; border: 0; padding: 0; position: relative; }
.cal .d small { font-size: 10px; font-weight: 500; opacity: .95; }
.cal .d.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal .d.blank { background: transparent; cursor: default; }
.cal .d .ot { position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 1.5px #fff; }
.st-ok { background: var(--c-soft) !important; color: var(--c-deep) !important; }
.st-late, .st-early { background: var(--m-soft) !important; color: var(--m-deep) !important; }
.st-absent, .st-not_arrived { background: var(--m) !important; color: #fff !important; }
.st-no_out { background: var(--y-soft) !important; color: var(--y-deep) !important; }
.st-at_work { background: var(--ink) !important; color: #fff !important; }
.st-leave, .st-sick { background: var(--slate-soft) !important; color: var(--slate) !important; }
.st-future { background: #fff !important; color: #c3c8cf !important; box-shadow: inset 0 0 0 1px var(--line); }
.legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin: 0 2px 14px; }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.emp-cal-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: inherit; }
.emp-cal-card .chips { margin-top: 12px; }

/* табель на компьютере */
.ts-wrap { overflow-x: auto; }
.ts-grid { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.ts-grid th, .ts-grid td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; }
.ts-grid th.name, .ts-grid td.name { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; padding: 6px 12px; min-width: 190px; white-space: nowrap; }
.ts-grid td.name a { color: var(--ink); font-weight: 600; }
.ts-grid th { background: #fafbfc; color: var(--muted); font-weight: 600; }
.ts-grid th.day { padding: 6px 0; min-width: 46px; }
.ts-grid th.day small { display: block; font-weight: 400; }
.ts-grid th.sun { color: var(--m); }
.ts-grid td.cell { height: 46px; cursor: pointer; line-height: 1.25; background: var(--off); color: #b2b7c0; position: relative; }
.ts-grid td.cell:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.ts-grid td.cell .ot { position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--y); }
.ts-grid td.tot { padding: 6px 10px; text-align: right; white-space: nowrap; }
.ts-desktop { display: none; }
@media (min-width: 900px) { .ts-desktop { display: block; } .ts-mobile { display: none; } }

/* ---------- строки решений (переработки, отпрашивания) ---------- */
.req { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.req .who { font-weight: 650; }
.req .what { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.req .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.req .btns { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (min-width: 700px) { .req { grid-template-columns: auto 1fr auto; align-items: center; } .req .btns { grid-column: auto; } }
.next-shift { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: var(--r-sm); background: var(--c-soft); color: var(--c-deep); font-size: 13.5px; font-weight: 550; }
.next-shift::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.next-shift.off { background: var(--off); color: var(--muted); }
.next-shift.off::before { background: var(--muted); }
.timebar { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.timebar i { display: inline-block; width: 26px; height: 2px; background: var(--y); border-radius: 1px; }

/* ---------- формы ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.form-grid > *, label.field, .modal-card { min-width: 0; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 550; }
label.field .hint, .hint { font-size: 12.5px; font-weight: 400; color: var(--muted); }
label.check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.days-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.days-pick label { flex: 1; min-width: 40px; text-align: center; }
.days-pick input { display: none; }
.days-pick span { display: block; padding: 10px 0; border-radius: var(--r-sm); background: var(--off); color: var(--muted); font-weight: 650; cursor: pointer; font-size: 14px; }
.days-pick input:checked + span { background: var(--ink); color: #fff; }
.seg { display: flex; background: var(--off); border-radius: var(--r-md); padding: 3px; flex-wrap: wrap; }
.seg label { flex: 1; text-align: center; min-width: 90px; }
.seg input { display: none; }
.seg span { display: block; padding: 9px 6px; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.pick-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.pick-list label { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.pick-list label:first-child { border-top: 0; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.form-actions .btn { flex: 1; }
@media (min-width: 600px) { .form-actions .btn { flex: 0 0 auto; } }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
fieldset legend { font: 650 17px var(--font); margin-bottom: 4px; padding: 0; }
fieldset > p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--off); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.kv { display: grid; grid-template-columns: 1fr; gap: 4px; font-size: 14px; }
.kv dt { color: var(--muted); margin-top: 8px; font-size: 13px; }
.kv dd { margin: 0; }
@media (min-width: 700px) { .kv { grid-template-columns: 180px 1fr; gap: 10px 12px; } .kv dt { margin-top: 0; } }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.code-big { font: 700 28px var(--display); letter-spacing: .08em; background: var(--off); padding: 8px 14px; border-radius: var(--r-md); display: inline-block; }

/* ---------- модальные окна → шторка на телефоне ---------- */
.modal { position: fixed; inset: 0; background: rgba(27,31,39,.5); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.modal-card { background: #fff; border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + var(--safe-b)); width: 100%; max-height: 92vh; overflow-y: auto; position: relative; animation: up .22s ease-out; }
.sheet-handle { width: 40px; height: 5px; background: #d4d8de; border-radius: 3px; margin: 0 auto 12px; }
.modal-close { position: absolute; z-index: 3; top: 10px; right: 12px; border: 0; background: var(--off); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--ink-2); line-height: 1; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) {
  .modal { align-items: center; padding: 20px; }
  .modal-card { border-radius: 20px; max-width: 580px; padding: 26px; }
  .sheet-handle { display: none; }
}
.toast { position: fixed; bottom: calc(96px + var(--safe-b)); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-md); z-index: 60; font-size: 14px; max-width: 90vw; font-weight: 550; }
.toast.err { background: var(--m); }
@media (min-width: 900px) { .toast { bottom: 26px; } }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 16px; align-items: start; }
.grid2 > * { min-width: 0; }
@media (min-width: 1000px) { .grid2 { grid-template-columns: 1.45fr 1fr; } }
main { overflow-x: hidden; }

/* фото-отчёт в карточке дня */
.photo-rep { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.photo-rep img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line, #e5e5e5); display: block; }
.photo-rep .sub { font-size: 13px; line-height: 1.45; }

/* выплаты и долги */
.debt-box { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--y-soft, #fff6d6); border: 1px solid #f3dc92; font-size: 14px; }
.debt-card { background: var(--y-soft, #fff6d6); border-color: #f3dc92; }
.chip-pay { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px; background: var(--off, #f2f3f5); font-size: 13px; font-weight: 600; }
.chip-pay button { border: 0; background: transparent; color: var(--muted, #888); font-size: 16px; line-height: 1; padding: 0 6px; cursor: pointer; border-radius: 999px; }
.chip-pay button:hover { color: var(--m, #d1245f); }
.salary-from { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--off, #f2f3f5); }
