/* Кабинет владельца (admin.html): отдельное приложение, телефон в первую очередь.
 * Те же токены, что у сайта (styles.css): графит, жемчужный текст, акцент — главная кнопка и выбранное. */
:root {
  --bg-1: #1E2023;
  --bg-2: #1E1F22;
  --text: #F1F0EC;
  --muted: #A3A5AA;
  --faint: #6F7277;
  --accent: #B9D6A6;
  --on-accent: #16201A;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .2);
  --surface: #26282C;
  --surface-on: #2F3236;
  --sheet: #232529;
  --danger: #E6A39A;
  --warn: #E8C77A;
  --hatch: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255, 255, 255, .06) 6px 7px);
  --f-text: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 10px;
  --r-card: 16px;
  --tap: 48px;
  --g: 16px;
  --tabs-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-1); color-scheme: dark; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg-1); color: var(--text); font: 400 15px/1.45 var(--f-text);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- каркас ---------- */
.app { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 88px); }
.app.is-login { padding-bottom: 0; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: calc(var(--safe-t) + 10px) var(--g) 10px; background: color-mix(in srgb, var(--bg-1) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); }
.top__brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.top__brand > div > b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__brand > div > span { display: block; font-size: 12px; color: var(--muted); }
.mark { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; overflow: hidden;
  background: var(--accent); color: var(--on-accent); font: 700 13px/1 var(--f-text); letter-spacing: .02em; }
.logo { flex: none; display: block; height: 40px; }
.logo img { height: 100%; width: auto; max-width: 140px; object-fit: contain; border-radius: 8px; }
/* знак-плашка уже содержит название — рядом остаётся только «Кабинет» */
.top__brand:has(.logo:not(.is-tall)) > div > b { display: none; }
.top__brand:has(.logo:not(.is-tall)) > div > span { font-size: 15px; font-weight: 600; color: var(--text); }
/* квадратный или высокий знак — крупнее, а название студии остаётся рядом */
.logo.is-tall { height: 44px; }
.login .logo { height: 84px; margin-bottom: 22px; align-self: flex-start; }
.login .logo img { max-width: 260px; border-radius: 14px; }
.mark img { width: 100%; height: 100%; object-fit: contain; }
.icon-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface); color: var(--text); }
.icon-btn:active { background: var(--surface-on); }
.icon-btn.is-spin .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.view { padding: 16px var(--g) 0; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: color-mix(in srgb, var(--bg-1) 96%, #000);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; background: none; color: var(--faint);
  font-size: 11px; font-weight: 500; letter-spacing: .01em; }
.tab .ic { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] .ic { color: var(--accent); }

.fab { position: fixed; right: var(--g); bottom: calc(var(--tabs-h) + var(--safe-b) + 14px); z-index: 25; display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 20px 0 16px; border: 0; border-radius: 16px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 15px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.fab .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.fab:active { transform: scale(.97); }

/* ---------- кнопки и поля ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border: 1px solid transparent;
  border-radius: 12px; background: var(--surface-on); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .45; cursor: default; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--line { background: none; border-color: var(--line-2); }
.btn--danger { background: none; border-color: rgba(230, 163, 154, .4); color: var(--danger); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn .ic { width: 18px; height: 18px; }
.link { border: 0; background: none; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { font-size: 13px; color: var(--muted); }
.label { display: flex; justify-content: space-between; gap: 8px; margin: 18px 0 8px; }
.label b { color: var(--text); font-weight: 500; }
.input { width: 100%; min-height: var(--tap); padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
  font-size: 16px; outline: none; transition: border-color .15s; }
textarea.input { min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 36px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A3A5AA' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--faint); }
.field.has-error .input { border-color: var(--danger); }
.field__err { min-height: 0; font-size: 13px; color: var(--danger); }
.field__err:empty { display: none; }
.field__hint { font-size: 12px; color: var(--faint); text-align: right; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pass { position: relative; }
.pass .input { padding-right: 52px; }
.pass .icon-btn { position: absolute; right: 2px; top: 2px; background: none; }
.form-err { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; background: rgba(230, 163, 154, .1); color: var(--danger); font-size: 14px; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); margin-bottom: 16px; }
.seg button { min-height: 40px; min-width: 0; padding: 4px 6px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 500; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.seg:has(> :nth-child(3)) button { font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--surface-on); color: var(--text); }

.switch { position: relative; flex: none; width: 46px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-on); transition: background .2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); background: var(--on-accent); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-bottom: 8px; font-size: 15px; }

/* ---------- вход ---------- */
.login { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100dvh; max-width: 400px; margin: 0 auto;
  padding: calc(var(--safe-t) + 32px) var(--g) calc(var(--safe-b) + 32px); }
.login .mark { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; margin-bottom: 20px; }
.login h1 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.login__sub { margin: 6px 0 28px; color: var(--muted); }
.login .btn { margin-top: 6px; }
.login__note { margin-top: 20px; font-size: 13px; color: var(--faint); text-align: center; }

/* ---------- записи: месяц, лента дней, сводка ---------- */
.month { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.month h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.month h2::first-letter, .sum h3::first-letter, .sheet h2::first-letter { text-transform: uppercase; }
.month__pick { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 0; white-space: nowrap; font-size: 20px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; }
.month__chev { width: 18px; height: 18px; color: var(--muted); transform: rotate(90deg); }
/* выбор даты — системный календарь телефона поверх надписи месяца */
.month__pick input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.month__pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.month__nav { display: flex; align-items: center; gap: 6px; }
.month__nav .icon-btn { width: 40px; height: 40px; }
.ic.flip { transform: scaleX(-1); }
/* неделя целиком: 7 дней по ширине экрана, без прокрутки */
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-bottom: 18px; touch-action: pan-y; }
.day { position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; min-width: 0; padding: 8px 0 12px; border: 0; border-radius: 14px;
  background: var(--surface); color: var(--text); scroll-snap-align: center; }
.day span { font-size: 11px; color: var(--muted); text-transform: lowercase; }
.day b { font: 600 18px/1.2 var(--f-mono); }
.day i { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.day i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.day[data-n="0"] i { display: none; }
.day.is-off { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.day.is-off b { color: var(--muted); }
.day.is-today b { color: var(--accent); }
.day[aria-pressed="true"] { background: var(--text); color: var(--bg-1); }
.day[aria-pressed="true"] span { color: rgba(30, 32, 35, .65); }
.day[aria-pressed="true"] b { color: var(--bg-1); }
.day[aria-pressed="true"] i::before { background: var(--bg-1); }

.sum { margin-bottom: 14px; }
.sum h3 { font-size: 18px; font-weight: 600; }
.sum p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.sum p b { color: var(--text); font-weight: 500; }

/* ---------- карточки записей ---------- */
.list { display: grid; gap: 10px; }
.card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: var(--r-card); background: var(--surface); cursor: pointer;
  border-left: 3px solid transparent; }
.card.st-new { border-left-color: var(--warn); }
.card.st-confirmed { border-left-color: var(--accent); }
.card.st-in_work { border-left-color: var(--text); }
.card.st-done { opacity: .62; }
.card.is-block { background: var(--hatch), var(--surface); }
.card__time { display: flex; flex-direction: column; font-family: var(--f-mono); }
.card__time b { font-size: 17px; font-weight: 600; }
.card__time span { font-size: 13px; color: var(--muted); }
.card__body { min-width: 0; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.card__sum { font: 500 14px/1 var(--f-mono); color: var(--muted); white-space: nowrap; }
.card__svc { font-size: 15px; font-weight: 600; line-height: 1.3; }
.card__who { margin-top: 3px; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__acts { display: flex; gap: 6px; margin-top: 12px; }
.card__acts .btn { flex: 1; min-height: 40px; padding: 0 10px; font-size: 13px; border-radius: 10px; }
.card__acts .btn--line { flex: 0 0 44px; padding: 0; }
.card__acts .btn--line .ic { width: 19px; height: 19px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--surface-on); color: var(--text); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--new { color: var(--warn); background: rgba(232, 199, 122, .12); }
.chip--confirmed { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.chip--in_work { color: var(--text); }
.chip--done { color: var(--muted); }
.chip--cancelled { color: var(--muted); background: none; text-decoration: line-through; }
.chip--block { color: var(--muted); }

.gap { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 1px dashed var(--line-2);
  border-radius: var(--r-card); background: none; color: var(--muted); font-size: 14px; text-align: left; }
.gap b { font: 500 14px var(--f-mono); color: var(--text); }
.gap span:last-child { color: var(--accent); font-weight: 500; white-space: nowrap; }
.more { width: 100%; min-height: 44px; margin-top: 4px; border: 0; border-radius: 12px; background: none; color: var(--muted); font-size: 14px; }
.empty { padding: 28px 18px; border-radius: var(--r-card); background: var(--surface); text-align: center; color: var(--muted); }
.empty b { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; font-weight: 600; }
.empty .btn { margin-top: 16px; }
.skel { height: 112px; border-radius: var(--r-card); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-on) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.err-box { padding: 18px; border-radius: var(--r-card); background: var(--surface); text-align: center; color: var(--muted); }
.err-box .btn { margin-top: 12px; }

/* ---------- лист ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0); transition: background .25s; }
.sheet.is-on { background: rgba(0, 0, 0, .55); }
.sheet__panel { position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - var(--safe-t) - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px var(--g) calc(var(--safe-b) + 20px); border-radius: 22px 22px 0 0; background: var(--sheet);
  transform: translateY(100%); transition: transform .3s var(--ease); }
.sheet.is-on .sheet__panel { transform: none; }
.sheet__grip { width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 4px; background: var(--line-2); }
.sheet__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface-on); color: var(--text); }
.sheet__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet h2 { padding-right: 48px; font-size: 21px; line-height: 1.25; font-weight: 700; }
.sheet__sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.sheet__foot { position: sticky; bottom: calc(var(--safe-b) * -1 - 20px); margin: 18px calc(var(--g) * -1) calc(var(--safe-b) * -1 - 20px); padding: 12px var(--g) calc(var(--safe-b) + 14px);
  background: linear-gradient(180deg, transparent, var(--sheet) 30%); }

/* карточка записи */
.who { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 14px; padding: 14px; border-radius: var(--r-card); background: var(--surface); }
.who b { display: block; font-size: 17px; font-weight: 600; }
.who a { font: 500 14px var(--f-mono); color: var(--muted); text-decoration: none; }
.who__acts { display: flex; gap: 6px; }
.who__acts .btn { width: 46px; padding: 0; }
.dl { display: grid; gap: 0; margin: 0 0 16px; }
.dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dl dt { color: var(--muted); flex: none; }
.dl dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.svc-lines { margin: 0 0 4px; padding: 0; list-style: none; }
.svc-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.svc-lines li .mono { color: var(--muted); }
.svc-lines li.total { border-top: 1px solid var(--line); font-weight: 600; }
.svc-lines li.total .mono { color: var(--text); }
.acts { display: grid; gap: 8px; }
.confirm { padding: 14px; border-radius: var(--r-card); background: rgba(230, 163, 154, .08); }
.confirm p { margin-bottom: 10px; font-size: 14px; }
.confirm .row2 .btn { min-height: 44px; }

/* форма записи */
.days { display: flex; gap: 6px; margin: 0 calc(var(--g) * -1); padding: 2px var(--g) 4px; overflow-x: auto; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.days .day { width: 46px; padding: 7px 0 9px; background: var(--surface); }
.days .day i { display: none; }
.days .day[aria-pressed="true"] { background: var(--text); }
.checks { display: grid; gap: 6px; }
.checks h4 { margin: 10px 0 2px; font-size: 12px; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 50px; padding: 8px 14px; border-radius: 12px;
  background: var(--surface); font-size: 15px; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.check__box svg { width: 14px; height: 14px; fill: none; stroke: var(--on-accent); stroke-width: 3; opacity: 0; }
.check input:checked ~ .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked ~ .check__box svg { opacity: 1; }
.check input:focus-visible ~ .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check small { display: block; font-size: 12px; color: var(--muted); }
.check .mono { font-size: 14px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.slot { min-height: 44px; border: 0; border-radius: 10px; background: var(--surface); font: 500 15px var(--f-mono); }
.slot:disabled { background: none; color: var(--faint); text-decoration: line-through; cursor: default; }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.note { padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 14px; }

/* ---------- услуги и часы ---------- */
.sec { margin: 6px 0 10px; font-size: 13px; font-weight: 500; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; }
.sec:not(:first-child) { margin-top: 26px; }
.group { border-radius: var(--r-card); background: var(--surface); overflow: hidden; }
.item { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.item:last-child { border-bottom: 0; }
.item__main { flex: 1; min-width: 0; }
.item__main b { display: block; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__main span { display: block; font-size: 13px; color: var(--muted); }
.item__val { font: 500 14px var(--f-mono); color: var(--text); white-space: nowrap; }
.item__go { color: var(--faint); }
.item.is-hidden .item__main b, .item.is-hidden .item__val { color: var(--faint); }
.item.is-hidden .item__main b { text-decoration: line-through; }
.badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--surface-on); color: var(--muted); font-size: 11px; font-weight: 500; vertical-align: 1px; }
.dur-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dur-chips button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface); font: 500 14px var(--f-mono); }
.dur-chips button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* ---------- сайт ---------- */
.savebar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + var(--safe-b)); z-index: 26; display: flex; align-items: center; gap: 10px;
  padding: 10px var(--g); background: color-mix(in srgb, var(--bg-1) 97%, #000); border-top: 1px solid var(--line); }
.savebar p { flex: 1; font-size: 14px; color: var(--muted); }
.logo-box { display: flex; align-items: center; gap: 14px; }
.logo-box .ph { width: 76px; height: 76px; flex: none; }
.ph { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--surface-on); color: var(--muted); font-size: 13px; text-align: center; cursor: pointer; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph input { position: absolute; opacity: 0; pointer-events: none; }
.ph.is-loading::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.work { padding: 14px; border-radius: var(--r-card); background: var(--surface); margin-bottom: 10px; }
.work__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.work__photos .ph { aspect-ratio: 4 / 3; }
.work__photos figcaption { margin-top: 4px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.work .field { margin-bottom: 10px; }
.work__acts { display: flex; justify-content: space-between; }

/* ---------- ещё ---------- */
.more-list .item { min-height: 56px; }
.more-list .item .ic { color: var(--muted); }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.steps li { margin-bottom: 6px; }
.foot { margin: 28px 0 0; font-size: 12px; color: var(--faint); text-align: center; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + var(--safe-b) + 80px); z-index: 60; transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg-1); font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  animation: toast .25s var(--ease); }
.toast.is-bad { background: var(--danger); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 8px); } }
html.has-sheet { overflow: hidden; }

@media (min-width: 720px) {
  .view, .top { padding-left: max(var(--g), calc((100% - 640px) / 2)); padding-right: max(var(--g), calc((100% - 640px) / 2)); }
  .tabs { grid-template-columns: repeat(4, 120px); justify-content: center; }
  .fab { right: max(var(--g), calc((100% - 640px) / 2)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
