/* ==================================================================
   Єсклад — дизайн-система (градієнт + півкола, у дусі Дії)
   ================================================================== */

:root {
  --ink:        #1A1B2E;
  --ink-soft:   #54566E;
  --ink-faint:  #8E90A8;
  --line:       rgba(26,27,46,.08);
  --card:       rgba(255,255,255,.72);
  --card-solid: #FFFFFF;

  --brand:      #4B5BD6;
  --brand-dk:   #3A47B0;
  --working:    #18A558;
  --break:      #E08A1E;
  --finished:   #6B7185;
  --danger:     #E0556B;
  --gold:       #C99211;

  --radius:     28px;
  --radius-sm:  18px;
  --shadow:     0 18px 50px -22px rgba(40,40,90,.35);
  --shadow-sm:  0 6px 22px -10px rgba(40,40,90,.25);

  --ff-display: 'Unbounded', system-ui, sans-serif;
  --ff-body:    'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background: #DDE6F2;
}
/* м'який пастельний меш-градієнт, як на заставці Дії */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 12% 8%,  #C9D7FF 0%, transparent 60%),
    radial-gradient(55% 45% at 92% 12%, #BFE3FF 0%, transparent 60%),
    radial-gradient(60% 55% at 88% 92%, #D6C7FB 0%, transparent 62%),
    radial-gradient(65% 60% at 8% 95%,  #C7F0DC 0%, transparent 60%),
    radial-gradient(50% 40% at 50% 50%, #FBE7D2 0%, transparent 70%),
    linear-gradient(160deg, #E7EEFC, #EAF3F1);
}
/* декоративні півкола */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 100% 0,  rgba(75,91,214,.10) 0 120px, transparent 121px),
    radial-gradient(circle at 0 100%, rgba(24,165,88,.08) 0 90px, transparent 91px);
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 18px calc(40px + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: flex; flex-direction: column;
}

/* ----------------------------- Шапка ----------------------------- */

.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 700; font-size: 22px;
  letter-spacing: -.5px; color: var(--ink);
}
.brand .mark {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(150deg, #5B6BE6, var(--brand-dk));
  display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 700;
  box-shadow: 0 10px 24px -8px rgba(75,91,214,.6);
}
.who { text-align: right; line-height: 1.15; }
.who .name { font-weight: 700; font-size: 14px; }
.who .role { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .6px; }

.icon-btn {
  border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(10px);
  width: 42px; height: 42px; border-radius: 13px; font-size: 18px; cursor: pointer;
  color: var(--ink-soft); display: grid; place-items: center; transition: .15s;
}
.icon-btn:hover { color: var(--brand); border-color: rgba(75,91,214,.4); }

/* ----------------------------- Карти ----------------------------- */

.card {
  background: var(--card); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ------------------- Півколовий датчик зміни ---------------------- */

.dial-card { padding: 26px 24px 24px; text-align: center; position: relative; overflow: hidden; }

.gauge { position: relative; width: 270px; max-width: 100%; margin: 4px auto 0; }
.gauge svg { width: 100%; display: block; }
.gauge .track { fill: none; stroke: rgba(26,27,46,.08); stroke-width: 16; stroke-linecap: round; }
.gauge .prog  { fill: none; stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset .6s ease, stroke .4s ease; }

.gauge-center { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.gauge-time {
  font-family: var(--ff-display); font-weight: 600; font-size: 44px;
  letter-spacing: -1.5px; font-variant-numeric: tabular-nums; line-height: 1;
}
.gauge-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--ink-faint); font-weight: 700; }

.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-pill.idle { background: rgba(26,27,46,.06); color: var(--ink-soft); }
.status-pill.working { background: rgba(24,165,88,.14); color: var(--working); }
.status-pill.break { background: rgba(224,138,30,.16); color: var(--break); }
.status-pill.finished { background: rgba(107,113,133,.16); color: var(--finished); }
.status-pill.calculated { background: rgba(75,91,214,.14); color: var(--brand); }
.working .dot { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* --------------------------- Метрики ----------------------------- */

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.metric { background: rgba(255,255,255,.55); border-radius: var(--radius-sm); padding: 13px 8px; }
.metric .v { font-family: var(--ff-display); font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; }
.metric .k { font-size: 11px; color: var(--ink-faint); margin-top: 3px; }
.metric.accent .v { color: var(--brand); }

/* ---------------------------- Кнопки ----------------------------- */

.actions { display: grid; gap: 11px; margin-top: 20px; }
.btn {
  border: none; border-radius: 18px; padding: 18px;
  font-family: var(--ff-body); font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform .08s, box-shadow .2s, filter .2s;
  display: flex; align-items: center; justify-content: center; gap: 9px; color: #fff;
}
.btn:active { transform: translateY(1px) scale(.997); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-brand   { background: linear-gradient(140deg, #5B6BE6, var(--brand-dk)); box-shadow: 0 16px 38px -16px rgba(75,91,214,.6); }
.btn-working { background: linear-gradient(140deg, #21BE66, #128A45); box-shadow: 0 16px 38px -16px rgba(24,165,88,.55); }
.btn-break   { background: linear-gradient(140deg, #F1A53A, #D27E0A); }
.btn-finish  { background: linear-gradient(140deg, #757B90, #565C70); }
.btn-danger  { background: linear-gradient(140deg, #EA6076, #C73E55); }
.btn-ghost   { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--brand); border-color: rgba(75,91,214,.4); }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.btn-sm { padding: 11px 14px; font-size: 14px; border-radius: 13px; }

/* ----------------------------- Вхід ------------------------------ */

.login-hero { text-align: center; margin: 24px 0 26px; }
.login-hero .logo {
  width: 72px; height: 72px; border-radius: 22px;
  background: linear-gradient(150deg, #5B6BE6, var(--brand-dk));
  display: grid; place-items: center; margin: 0 auto 18px; color: #fff;
  font-family: var(--ff-display); font-weight: 700; font-size: 34px;
  box-shadow: 0 18px 40px -14px rgba(75,91,214,.6);
}
.login-hero h1 { font-family: var(--ff-display); font-weight: 700; font-size: 32px; letter-spacing: -1px; }
.login-hero p { color: var(--ink-soft); margin-top: 6px; font-size: 14px; }

.account-list { display: grid; gap: 9px; }
.account {
  display: flex; align-items: center; gap: 13px; padding: 14px 16px;
  background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6); border-radius: var(--radius-sm);
  cursor: pointer; text-align: left; width: 100%; font-family: inherit; font-size: 15px;
  color: var(--ink); transition: .15s; box-shadow: var(--shadow-sm);
}
.account:hover { transform: translateX(2px); }
.account.is-admin { border-style: dashed; }
.avatar { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 16px; color: #fff; flex-shrink: 0; }
.account .meta { flex: 1; } .account .meta b { display: block; font-weight: 700; } .account .meta span { font-size: 12px; color: var(--ink-faint); }
.account .chev { color: var(--ink-faint); font-size: 18px; }

.pin-wrap { text-align: center; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 24px 0; }
.pin-dots .pd { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(26,27,46,.18); transition: .15s; }
.pin-dots .pd.on { background: var(--brand); border-color: var(--brand); transform: scale(1.1); }
.pin-dots.err .pd { border-color: var(--danger); animation: shake .35s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-7px)} 75%{transform:translateX(7px)} }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 300px; margin: 0 auto; }
.key {
  aspect-ratio: 1.6; border: 1px solid rgba(255,255,255,.6); background: var(--card); backdrop-filter: blur(10px);
  border-radius: 18px; font-family: var(--ff-display); font-weight: 500; font-size: 24px; color: var(--ink); cursor: pointer; transition: .1s;
}
.key:active { background: var(--brand); color: #fff; transform: scale(.96); }
.key.fn { font-family: var(--ff-body); font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* ----------------------------- Табы ------------------------------ */

.tabs {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 18px;
  background: var(--card); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.6); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.tab {
  flex: 1; text-align: center; padding: 11px 6px; border-radius: 12px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft); cursor: pointer; border: none; background: transparent; transition: .15s;
}
.tab.active { background: linear-gradient(140deg, #5B6BE6, var(--brand-dk)); color: #fff; box-shadow: 0 8px 20px -8px rgba(75,91,214,.5); }

.section-title { font-family: var(--ff-display); font-weight: 600; font-size: 15px; letter-spacing: -.3px; margin: 22px 4px 11px; display: flex; align-items: center; justify-content: space-between; }
.section-title small { font-family: var(--ff-body); font-weight: 600; color: var(--ink-faint); font-size: 12px; }

/* --------------------------- Рядки ------------------------------- */

.emp-card { display: flex; align-items: center; gap: 13px; padding: 14px 16px; margin-bottom: 9px; cursor: default; }
.emp-card.clickable { cursor: pointer; transition: .15s; } .emp-card.clickable:active { transform: scale(.99); }
.emp-card .meta { flex: 1; min-width: 0; }
.emp-card .meta b { font-size: 14.5px; }
.emp-card .meta .sub { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.emp-card .hrs { text-align: right; flex-shrink: 0; }
.emp-card .hrs .big { font-family: var(--ff-display); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.emp-card .hrs .money { font-size: 12px; color: var(--brand); font-weight: 700; margin-top: 2px; }

.mini-pill { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px; display: inline-block; }
.mini-pill.idle{background:rgba(26,27,46,.06);color:var(--ink-soft)} .mini-pill.working{background:rgba(24,165,88,.14);color:var(--working)}
.mini-pill.break{background:rgba(224,138,30,.16);color:var(--break)} .mini-pill.finished{background:rgba(107,113,133,.16);color:var(--finished)}
.mini-pill.calculated{background:rgba(75,91,214,.14);color:var(--brand)}

.log-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.log-row:last-child { border-bottom: none; } .log-row:active { background: rgba(255,255,255,.4); }
.log-row .d { font-weight: 700; font-size: 14px; }
.log-row .t { font-size: 12px; color: var(--ink-faint); margin-top: 2px; }
.log-row .w { font-family: var(--ff-display); font-weight: 600; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.log-row .m { font-size: 11.5px; text-align: right; margin-top: 2px; color: var(--brand); font-weight: 700; }

.filterbar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; margin-bottom: 4px; }
.filterbar::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; border: 1px solid var(--line); background: var(--card); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: .15s; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --------------------- Великі цифри статистики -------------------- */
.stat-big { padding: 22px; text-align: center; }
.stat-big .v { font-family: var(--ff-display); font-weight: 600; font-size: 32px; letter-spacing: -1px; }
.stat-big .v .cur { font-size: 16px; color: var(--ink-faint); font-weight: 500; }
.stat-big .k { font-size: 12px; color: var(--ink-faint); margin-top: 4px; text-transform: uppercase; letter-spacing: .8px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

/* ------------------------ Поля / форми --------------------------- */
.field-group { margin-bottom: 14px; }
.field-group label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.field { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; font-family: inherit; font-size: 16px; background: rgba(255,255,255,.85); }
.field:focus { outline: none; border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 5px; }

/* --------------------------- Утиліти ----------------------------- */
.muted { color: var(--ink-faint); }
.empty { text-align: center; color: var(--ink-faint); padding: 34px 16px; font-size: 14px; }
.spacer { flex: 1; }
.foot { text-align: center; font-size: 11px; color: var(--ink-faint); margin-top: 18px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 60; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: var(--danger); }

.modal-back { position: fixed; inset: 0; background: rgba(26,27,46,.4); backdrop-filter: blur(4px);
  display: none; align-items: flex-end; justify-content: center; z-index: 50; padding: 14px; }
.modal-back.show { display: flex; }
.modal { background: var(--card-solid); border-radius: 26px; padding: 24px 22px; width: 100%; max-width: 440px; box-shadow: var(--shadow); animation: rise .25s ease; max-height: 90vh; overflow-y: auto; }
@keyframes rise { from { transform: translateY(30px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
.modal h3 { font-family: var(--ff-display); font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.modal p { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* --------------------- Анімація старту зміни ---------------------- */
.start-anim {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center;
  background: linear-gradient(150deg, #5B6BE6, #3A47B0);
}
.start-anim.show { display: flex; animation: startFade 1.4s ease forwards; }
.start-e {
  font-family: var(--ff-display); font-weight: 700; color: #fff; font-size: 96px;
  letter-spacing: -2px; opacity: 0; transform: scale(.4);
  animation: startPop 1.2s cubic-bezier(.2,.9,.25,1.2) forwards;
}
.start-ring {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.6); opacity: 0; transform: scale(.5);
  animation: startRing 1.2s ease-out forwards;
}
@keyframes startPop { 0%{opacity:0;transform:scale(.4)} 35%{opacity:1;transform:scale(1.08)} 70%{transform:scale(1)} 100%{opacity:1;transform:scale(1)} }
@keyframes startRing { 0%{opacity:.8;transform:scale(.5)} 80%{opacity:0;transform:scale(2.6)} 100%{opacity:0;transform:scale(2.8)} }
@keyframes startFade { 0%,75%{opacity:1} 100%{opacity:0} }

/* --------------------- Прогрес до підвищеної ставки -------------- */
.progress-card { padding: 16px 18px; margin-top: 14px; }
.ot-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.ot-head #otLabel { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.ot-value { font-family: var(--ff-display); font-weight: 600; font-size: 17px; color: var(--brand); font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 999px; background: rgba(26,27,46,.08); overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #5B6BE6, #18A558); transition: width .6s ease; }
.ot-sub { font-size: 11.5px; color: var(--ink-faint); margin-top: 8px; }
.progress-card.done .bar-fill { background: linear-gradient(90deg, #18A558, #12B886); }
.progress-card.done .ot-value { color: var(--working); }

/* ------------------------------ Камера --------------------------- */
.cam-overlay {
  position: fixed; inset: 0; z-index: 90; background: #0B0D14;
  display: none; flex-direction: column;
}
.cam-overlay.show { display: flex; }
.cam-head { color: #fff; text-align: center; padding: 18px 16px 10px; font-family: var(--ff-display); font-weight: 600; font-size: 17px; }
.cam-stage { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cam-stage video { width: 100%; height: 100%; object-fit: cover; }
.cam-controls { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px calc(26px + env(safe-area-inset-bottom)); gap: 12px; }
.cam-controls .btn { width: 90px; }
.cam-shutter {
  width: 74px; height: 74px; border-radius: 50%; border: 5px solid #fff; background: #fff;
  cursor: pointer; box-shadow: 0 0 0 4px rgba(255,255,255,.25); transition: transform .1s;
}
.cam-shutter:active { transform: scale(.92); }
.cam-hint { color: rgba(255,255,255,.7); text-align: center; font-size: 12px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

/* --------------------- Прокручувані таби ------------------------- */
.tabs.scroll { overflow-x: auto; flex-wrap: nowrap; }
.tabs.scroll::-webkit-scrollbar { display: none; }
.tabs.scroll .tab { flex: 0 0 auto; padding: 11px 16px; }

/* ------------------------------ Фото ----------------------------- */
.photo-card { padding: 14px 16px; margin-bottom: 9px; }
.photo-card .ph-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.photo-card .ph-head b { font-size: 14px; }
.photo-card .ph-head .t { font-size: 12px; color: var(--ink-faint); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-slot { position: relative; }
.photo-slot img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; cursor: pointer; background: #EEF1F4; display: block; }
.photo-slot .cap { position: absolute; left: 8px; bottom: 8px; background: rgba(11,13,20,.7); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.photo-slot.empty { display: grid; place-items: center; aspect-ratio: 3/4; border-radius: 14px; background: rgba(26,27,46,.05); color: var(--ink-faint); font-size: 12px; }

.img-modal { position: fixed; inset: 0; z-index: 95; background: rgba(11,13,20,.92); display: none; align-items: center; justify-content: center; padding: 16px; }
.img-modal.show { display: flex; }
.img-modal img { max-width: 100%; max-height: 92vh; border-radius: 14px; }
.img-modal .x { position: absolute; top: 16px; right: 18px; color: #fff; font-size: 30px; cursor: pointer; background: none; border: none; }

/* перемикач */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { position: relative; width: 50px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl { position: absolute; inset: 0; background: rgba(26,27,46,.18); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .sl:before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .sl { background: var(--working); }
.switch input:checked + .sl:before { transform: translateX(22px); }

/* ----------------------------- Медалі ---------------------------- */
.medals-card { padding: 8px; }
.medal { display: flex; align-items: center; gap: 13px; padding: 12px 12px; border-radius: 16px; }
.medal + .medal { border-top: 1px solid var(--line); }
.medal .m-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; background: rgba(26,27,46,.05); filter: grayscale(1); opacity: .5; }
.medal.earned .m-ic { filter: none; opacity: 1; background: linear-gradient(140deg, rgba(75,91,214,.18), rgba(24,165,88,.18)); }
.medal .m-body { flex: 1; min-width: 0; }
.medal .m-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.medal:not(.earned) .m-name { color: var(--ink-soft); }
.m-bonus { background: rgba(24,165,88,.14); color: var(--working); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.medal .m-desc { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.m-bar { height: 6px; border-radius: 999px; background: rgba(26,27,46,.08); overflow: hidden; margin-top: 7px; }
.m-fill { height: 100%; background: linear-gradient(90deg, #5B6BE6, #18A558); border-radius: 999px; }
.m-prog { font-size: 10.5px; color: var(--ink-faint); margin-top: 4px; font-weight: 600; }

/* --------------------------- Тиждень ----------------------------- */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px;
  background: var(--card); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.6); border-radius: 16px; padding: 8px 10px; box-shadow: var(--shadow-sm); }
.week-nav button { border: none; background: rgba(26,27,46,.05); width: 40px; height: 40px; border-radius: 12px; font-size: 18px; cursor: pointer; color: var(--ink); transition: .15s; }
.week-nav button:hover:not(:disabled) { background: var(--brand); color: #fff; }
.week-nav button:disabled { opacity: .35; cursor: not-allowed; }
.week-nav .wk { text-align: center; flex: 1; }
.week-nav .wk b { font-family: var(--ff-display); font-weight: 600; font-size: 15px; }
.week-nav .wk small { display: block; font-size: 11px; color: var(--ink-faint); }

.day-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.day-row:last-child { border-bottom: none; }
.day-row .d { font-weight: 700; font-size: 13.5px; }
.day-row .t { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.day-row .w { font-family: var(--ff-display); font-weight: 600; font-size: 14px; text-align: right; }
.day-row .m { font-size: 11px; text-align: right; color: var(--brand); font-weight: 700; margin-top: 2px; }
.ach-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 4px; }
.ach-chip { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(75,91,214,.1); color: var(--brand); }

/* --------------------- День народження --------------------------- */
.bday-banner {
  background: linear-gradient(135deg, #FFE29A, #FFB6C1, #C9A7FF);
  color: #4A2B5C; font-weight: 700; text-align: center; padding: 13px 16px;
  border-radius: 18px; margin-bottom: 14px; font-size: 14px; box-shadow: var(--shadow-sm);
}

/* ------------------------------ Рейтинг -------------------------- */
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: none; }
.rank-row.me { background: rgba(75,91,214,.07); border-radius: 14px; }
.rank-pos { width: 30px; text-align: center; font-family: var(--ff-display); font-weight: 600; font-size: 17px; color: var(--ink-soft); flex-shrink: 0; }
.rank-meta { flex: 1; min-width: 0; }
.rank-meta b { font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.rank-you { font-size: 10px; background: var(--brand); color: #fff; padding: 1px 7px; border-radius: 999px; font-weight: 700; }
.rank-sub { font-size: 13px; margin-top: 2px; letter-spacing: 1px; }
.rank-hrs { font-family: var(--ff-display); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ------------------------------ Чек-лист ------------------------- */
.chk-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; font-size: 14.5px; transition: .15s; }
.chk-item:has(input:checked) { border-color: var(--working); background: rgba(24,165,88,.06); }
.chk-item input { width: 22px; height: 22px; accent-color: var(--working); flex-shrink: 0; margin-top: 1px; cursor: pointer; }

/* активний у рейтингу (зміна триває) */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--working); animation: pulse 1.4s infinite; vertical-align: middle; }
.rank-hrs.live { color: var(--working); }

/* кнопки порядку в «Команда» */
.order-btns { display: flex; flex-direction: column; flex-shrink: 0; margin-left: 8px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); }
.ord-btn { width: 34px; height: 25px; border: none; background: transparent; color: var(--ink-faint); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .12s, color .12s, transform .08s; }
.ord-btn + .ord-btn { border-top: 1px solid var(--line); }
.ord-btn svg { width: 15px; height: 15px; display: block; }
.ord-btn:hover:not(:disabled) { background: linear-gradient(140deg, #5B6BE6, var(--brand-dk)); color: #fff; }
.ord-btn:active:not(:disabled) { transform: scale(.88); }
.ord-btn:disabled { opacity: .22; cursor: default; }
