:root {
  --bg: #050505;
  --card: #111111;
  --card-2: #191919;
  --card-3: #222222;
  --text: #f4f1ea;
  --dim: #8e8a82;
  --line: rgba(255, 255, 255, .08);
  --accent: #ff4f1f;
  --accent-ink: #0a0a0a;
  --ok: #7dff9a;
  --display: 'Dela Gothic One', 'Arial Black', sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 24px;
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #000; }
body { color: var(--text); font: 400 16px/1.45 var(--body); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Приложение живёт в «телефонной» колонке; на компьютере — по центру, как макет */
.shell {
  position: relative; height: 100dvh; max-width: 480px; margin: 0 auto; overflow: hidden; overflow: clip;
  background: var(--bg);
  isolation: isolate;
}
/* На широком экране приложение по умолчанию на всю ширину; рамка телефона — по переключателю «Вид телефона» */
@media (min-width: 520px) {
  :root:not(.phone-preview) .shell { max-width: none; }
  html.phone-preview body { display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #1a1a1a, #000 70%); }
  html.phone-preview .shell { height: min(920px, 100dvh - 40px); width: 430px; border-radius: 44px; box-shadow: 0 0 0 10px #1b1b1b, 0 0 0 11px #333, 0 40px 120px rgba(0, 0, 0, .8); }
}

/* ---------- top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--top)) 18px 10px;
  background: linear-gradient(var(--bg) 55%, transparent);
}
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.brand.long { font-size: 12px; line-height: 1.15; max-width: 220px; }
.brand-mark { flex: none; width: 22px; height: 14px; border-radius: 3px; background: repeating-linear-gradient(-20deg, var(--text) 0 3px, transparent 3px 6px); transform: skewX(-15deg); }
.topbar-title { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 600; font-size: 15px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.topbar.titled .topbar-title { opacity: 1; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); transition: transform .2s var(--spring), background .2s; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(.9); }

/* ---------- screens ---------- */
.screens { position: absolute; inset: 0; overflow: clip; }
.screen {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: calc(64px + var(--top)) 16px calc(120px + var(--bottom));
  scrollbar-width: none;
  opacity: 0; visibility: hidden; transform: translateX(24px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.screen::-webkit-scrollbar { display: none; }
.screen.active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s; }
.screen.from-left { transform: translateX(-24px); }

/* элементы экрана выезжают лесенкой при каждом входе */
.screen .stagger { opacity: 0; transform: translateY(18px); }
.screen.active .stagger { animation: rise .6s var(--ease) forwards; }
.screen.active .stagger:nth-child(2) { animation-delay: .05s; }
.screen.active .stagger:nth-child(3) { animation-delay: .1s; }
.screen.active .stagger:nth-child(4) { animation-delay: .15s; }
.screen.active .stagger:nth-child(5) { animation-delay: .2s; }
.screen.active .stagger:nth-child(n+6) { animation-delay: .25s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.screen-h { margin: 6px 4px 16px; font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1; text-transform: uppercase; }
.screen-sub { margin: -8px 4px 18px; color: var(--dim); font-size: 14px; }
.muted { color: var(--dim); }

/* ---------- home ---------- */
.hero-card { position: relative; height: 300px; border-radius: 28px; overflow: hidden; background: var(--card); }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.hero-card img.loaded { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, .1) 30%, rgba(5, 5, 5, .85)); }
/* светящееся кольцо, как неоновая подсветка */
.hero-glow {
  position: absolute; z-index: 1; left: 50%; top: 16%; width: 120%; height: 46%; translate: -50% 0;
  border-radius: 50%; border: 5px solid color-mix(in srgb, var(--accent) 60%, #fff); filter: blur(1.2px); opacity: .95;
  box-shadow: 0 0 18px 4px var(--accent), 0 0 60px 10px color-mix(in srgb, var(--accent) 60%, transparent), inset 0 0 18px 4px var(--accent);
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { transform: rotate(-4deg) scaleX(1); opacity: .75; }
  50% { transform: rotate(4deg) scaleX(1.06); opacity: 1; }
}
.hero-card > * { z-index: 2; }
.hero-card img { z-index: 0; }
.hero-shade { z-index: 1; }
.hero-live {
  position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(10, 10, 10, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line);
}
.hero-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.hero-live.on i { background: var(--ok); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(125, 255, 154, .6); } 100% { box-shadow: 0 0 0 9px rgba(125, 255, 154, 0); } }

.glass-btn {
  position: absolute; left: 12px; right: 12px; bottom: 12px; height: 54px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 20px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); font-weight: 600; font-size: 16px;
  background: rgba(20, 20, 20, .45); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transition: transform .25s var(--spring);
}
.glass-btn svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); stroke-width: 2.4; transition: transform .3s var(--spring); }
.glass-btn:active { transform: scale(.97); }
.glass-btn:active svg { transform: rotate(45deg); }

.intro { padding: 20px 4px 4px; }
.intro h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.intro p { margin: 8px 0 0; color: var(--dim); font-size: 14.5px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tile { text-align: left; padding: 14px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: transform .2s var(--spring); }
.tile:active { transform: scale(.97); }
.tile b { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; }
.tile b svg { width: 18px; height: 18px; color: var(--accent); }
.tile span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.tile.wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.tile.wide span { margin: 0; }

.next-slot {
  display: flex; width: 100%; align-items: center; gap: 14px; margin-top: 10px; padding: 16px; text-align: left;
  border-radius: 20px; border: 0; background: var(--accent); color: var(--accent-ink);
  transition: transform .2s var(--spring);
}
.next-slot:active { transform: scale(.98); }
.next-slot .ns-time { font-family: var(--display); font-size: 28px; line-height: 1; }
.next-slot .ns-text { flex: 1; font-size: 13.5px; line-height: 1.3; }
.next-slot .ns-text b { display: block; font-size: 15px; }
.next-slot svg { width: 22px; height: 22px; stroke-width: 2.4; }

.block { margin-top: 26px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 12px; }
.block-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-size: 14px; font-weight: 600; }

.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

.pop-card { text-align: left; width: 190px; padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-align: left; transition: transform .2s var(--spring); }
.pop-card:active { transform: scale(.96); }
.pop-card small { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--card-3); color: var(--dim); font-size: 11.5px; }
.pop-card b { display: block; margin: 26px 0 4px; font-size: 16px; line-height: 1.2; }
.pop-card strong { font-family: var(--display); font-weight: 400; font-size: 22px; }
.pop-card.hot small { background: var(--accent); color: var(--accent-ink); font-weight: 700; }

.works img { width: 150px; height: 200px; object-fit: cover; border-radius: 20px; filter: grayscale(.6) contrast(1.05); transition: filter .4s; }
.works img:active { filter: none; }

.review-card { width: 270px; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.review-card .stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; }
.review-card p { margin: 8px 0 14px; font-size: 14.5px; }
.review-card footer { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); }
.review-card footer b { color: var(--text); font-weight: 600; }

.install-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding: 16px; border-radius: 22px; background: linear-gradient(120deg, var(--card-2), var(--card)); border: 1px solid var(--line); }
.install-card b { display: block; }
.install-card span { font-size: 13px; color: var(--dim); }
.pill-btn { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; }

.place-card { display: block; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.place-card b { display: block; font-size: 16px; }
.place-card span { display: block; margin-top: 4px; color: var(--dim); font-size: 13.5px; }
.place-card em { display: inline-flex; margin-top: 12px; font-style: normal; color: var(--accent); font-weight: 600; font-size: 14px; }
.contact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.contact-row a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.contact-row svg { width: 22px; height: 22px; color: var(--text); }
.app-foot { margin: 28px 0 0; text-align: center; color: #4a4741; font-size: 12px; }

/* ---------- services ---------- */
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; width: 100%;
  padding: 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); text-align: left;
  transition: transform .2s var(--spring), border-color .2s, background .2s;
  opacity: 0; animation: rise .5s var(--ease) forwards;
}
.svc:active { transform: scale(.98); }
.svc-name { font-size: 17px; font-weight: 600; }
.svc-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; vertical-align: 2px; }
.svc-desc { grid-column: 1; font-size: 13.5px; color: var(--dim); }
.svc-meta { grid-column: 1; display: flex; gap: 6px; margin-top: 6px; }
.svc-meta span { padding: 4px 10px; border-radius: 999px; background: var(--card-3); font-size: 12px; color: var(--dim); }
.svc-price { grid-row: 1 / 4; grid-column: 2; text-align: right; }
.svc-price b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; }
.svc-price i { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-top: 8px; border-radius: 50%; background: var(--card-3); font-style: normal; transition: background .2s, transform .3s var(--spring); }
.svc-price i svg { width: 16px; height: 16px; }
.svc[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.svc[aria-pressed="true"] .svc-price i { background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
.svc-list.compact .svc { padding: 14px 16px; }

/* ---------- my ---------- */
.booking-card { position: relative; margin-bottom: 10px; padding: 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; animation: rise .5s var(--ease) both; }
.booking-card.next { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.booking-card .bc-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.booking-card .bc-when { margin: 6px 0 2px; font-family: var(--display); font-size: 26px; line-height: 1.05; }
.booking-card .bc-what { font-size: 14.5px; opacity: .8; }
.booking-card .bc-actions { display: flex; gap: 8px; margin-top: 16px; }
.booking-card .bc-actions > * { flex: 1; height: 42px; display: grid; place-items: center; border-radius: 14px; border: 0; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .08); }
.booking-card.next .bc-actions > * { background: rgba(0, 0, 0, .12); }
.empty { padding: 40px 20px; text-align: center; border-radius: 24px; background: var(--card); border: 1px dashed var(--line); animation: rise .5s var(--ease) both; }
.empty-ico { width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 20px; background: var(--card-3); }
.empty-ico svg { width: 28px; height: 28px; color: var(--accent); }
.empty b { display: block; font-size: 17px; }
.empty p { margin: 6px 0 18px; color: var(--dim); font-size: 14px; }
.profile { margin-top: 18px; padding: 16px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.avatar { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--card-3); font-weight: 700; font-size: 18px; }
.profile b { display: block; }
.profile span { font-size: 13.5px; color: var(--dim); }

/* ---------- chat ---------- */
.screen-chat { display: flex; flex-direction: column; padding-bottom: calc(170px + var(--bottom)); }
.chat-hero { text-align: center; padding: 16px 20px 8px; transition: all .4s var(--ease); }
.chat-hero h1 { margin: 16px 0 6px; font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; }
.chat-hero p { margin: 0; color: var(--dim); font-size: 14px; }
.orb {
  width: 96px; height: 96px; margin: 8px auto 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 4%, transparent 30%), conic-gradient(from 0deg, var(--accent), #ffb36b, #ff2d55, var(--accent));
  filter: saturate(1.2); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 60%, transparent);
  animation: orb 8s linear infinite, breathe 3s ease-in-out infinite;
}
.orb.thinking { animation: orb 1.2s linear infinite, breathe .8s ease-in-out infinite; }
@keyframes orb { to { rotate: 360deg; } }
@keyframes breathe { 50% { scale: 1.08; } }
.screen-chat.has-msgs .chat-hero { padding-top: 0; }
.screen-chat.has-msgs .chat-hero h1, .screen-chat.has-msgs .chat-hero p { display: none; }
.screen-chat.has-msgs .orb { width: 44px; height: 44px; }

.chat-feed { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.msg { max-width: 84%; padding: 11px 15px; border-radius: 20px; font-size: 15px; white-space: pre-wrap; animation: pop .3s var(--spring); }
.msg.bot { align-self: flex-start; background: var(--card-2); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg .main-btn { margin-top: 10px; height: 42px; font-size: 14px; }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(6px); } }
.typing span { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: var(--dim); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

.chat-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 4px; animation: pop .35s var(--spring); }
.chat-slots button { min-width: 72px; height: 42px; padding: 0 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; transition: transform .2s var(--spring), background .2s, opacity .2s; }
.chat-slots button:active { transform: scale(.94); }
.chat-slots button:disabled { opacity: .35; }
.chat-slots button.picked { opacity: 1; background: var(--accent); color: var(--accent-ink); }

.chat-ticket { position: relative; align-self: stretch; margin: 4px 0; padding: 18px 18px 14px; border-radius: 24px; background: var(--accent); color: var(--accent-ink); overflow: hidden; animation: ticket .6s var(--spring); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
@keyframes ticket { from { opacity: 0; transform: translateY(24px) rotate(-2deg) scale(.95); } }
.ct-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ct-ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); }
.ct-ok svg { width: 14px; height: 14px; stroke-width: 3; }
.ct-when { margin: 14px 0 0; font-size: 15px; font-weight: 600; opacity: .75; }
.ct-time { margin: 2px 0 10px; font-family: var(--display); font-size: 44px; line-height: 1; }
.ct-time span { font-size: 22px; opacity: .6; }
.ct-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 600; }
.ct-cut { position: relative; margin: 14px -18px; border-top: 2px dashed rgba(0, 0, 0, .25); }
.ct-cut::before, .ct-cut::after { content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.ct-cut::before { left: -10px; } .ct-cut::after { right: -10px; }
.ct-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ct-actions button { height: 42px; border: 0; border-radius: 14px; background: rgba(0, 0, 0, .14); color: inherit; font-weight: 700; font-size: 14px; }
.ct-actions button:active { transform: scale(.97); }

.chat-suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.chat-suggest button { padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-align: left; font-size: 14.5px; transition: transform .2s var(--spring), border-color .2s; }
.chat-suggest button:active { transform: scale(.98); border-color: var(--accent); }
.chat-input {
  position: absolute; left: 12px; right: 12px; bottom: calc(92px + var(--bottom)); z-index: 5;
  display: flex; gap: 8px; padding: 6px; border-radius: 999px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s;
  background: rgba(25, 25, 25, .8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line);
}
.shell[data-current="chat"] .chat-input { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease) .1s, transform .4s var(--ease) .1s, visibility 0s; }
.chat-input input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 0; background: none; outline: none; }
.chat-input button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); }
.chat-input button svg { width: 20px; height: 20px; stroke-width: 2.4; }

/* ---------- tab bar ---------- */
.tabbar {
  position: absolute; left: 12px; right: 12px; bottom: calc(12px + var(--bottom)); z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 26px;
  background: rgba(22, 22, 22, .72); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  transition: transform .45s var(--ease), opacity .3s;
}
.tabbar.away { transform: translateY(140%); opacity: 0; }
.tab-pill {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 20px;
  background: var(--accent); box-shadow: 0 6px 24px -4px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .5s var(--spring);
}
.tab {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 0 7px; border: 0; background: none; color: var(--dim); font-size: 11px; font-weight: 600;
  transition: color .3s;
}
.tab svg { width: 22px; height: 22px; transition: transform .35s var(--spring); }
.tab.active { color: var(--accent-ink); }
.tab.active svg { transform: translateY(-1px) scale(1.08); stroke-width: 2.1; }
.tab:active svg { transform: scale(.85); }
.tab-badge { position: absolute; top: 5px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #161616; }

/* ---------- booking flow ---------- */
.flow {
  position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg); overflow: clip;
  animation: flow-in .5s var(--ease);
}
.flow.leaving { animation: flow-out .35s var(--ease) forwards; }
@keyframes flow-in { from { transform: translateY(100%); border-radius: 40px 40px 0 0; } }
@keyframes flow-out { to { transform: translateY(100%); } }
.flow-top { display: flex; align-items: center; gap: 14px; padding: calc(10px + var(--top)) 16px 10px; }
.flow-progress { flex: 1; height: 5px; border-radius: 99px; background: var(--card-3); overflow: hidden; }
.flow-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .5s var(--spring); }
.flow-body { position: relative; flex: 1; min-height: 0; overflow: hidden; overflow: clip; }
.flow-step {
  position: absolute; inset: 0; overflow-y: auto; padding: 8px 16px 24px; scrollbar-width: none;
  opacity: 0; visibility: hidden; transform: translateX(40px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.flow-step.active { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s; }
.flow-step.back { transform: translateX(-40px); }
.flow-kicker { margin: 4px 4px 2px; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.flow-h { margin: 0 4px 18px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.05; text-transform: uppercase; }

.picked { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; }
.picked b { display: block; font-size: 15.5px; }
.picked span { color: var(--dim); }
.picked button { border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 14px; }

.days { position: relative; display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 62px; scroll-snap-align: start; padding: 10px 0; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-align: center;
  transition: transform .2s var(--spring), background .2s, color .2s, border-color .2s;
}
.day small { display: block; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.day b { display: block; font-size: 22px; font-weight: 700; line-height: 1.3; }
.day em { display: block; width: 5px; height: 5px; margin: 2px auto 0; border-radius: 50%; background: var(--ok); }
.day[disabled] { opacity: .3; }
.day[disabled] em { background: transparent; }
.day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.day[aria-pressed="true"] small { color: inherit; opacity: .7; }
.day[aria-pressed="true"] em { background: var(--accent-ink); }

.slots-wrap { margin-top: 22px; }
.slots-label { margin: 0 4px 10px; font-size: 14px; color: var(--dim); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot {
  height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-variant-numeric: tabular-nums;
  opacity: 0; animation: rise .35s var(--ease) forwards;
  transition: transform .2s var(--spring), background .2s, color .2s;
}
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.05); }
.slot:active { transform: scale(.94); }

.summary { margin-bottom: 18px; padding: 4px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.summary div:last-child { border: 0; }
.summary dt, .summary span { color: var(--dim); }
.summary b { text-align: right; }
.summary .total b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--accent); }

.field { display: block; margin-bottom: 10px; }
.field span { display: block; margin: 0 4px 6px; font-size: 13px; color: var(--dim); }
.field input { width: 100%; height: 54px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); outline: none; font-size: 16px; transition: border-color .2s; }
.field input:focus { border-color: var(--accent); }
.field input::placeholder { color: #555; }
.form-error { min-height: 1.3em; margin: 4px 4px 0; color: #ff8f70; font-size: 14px; }
.fine { margin: 6px 4px 0; font-size: 12px; color: #5a5750; }

.flow-foot { padding: 10px 16px calc(14px + var(--bottom)); }
.main-btn {
  width: 100%; height: 56px; border-radius: 18px; border: 0; background: var(--accent); color: var(--accent-ink);
  font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s var(--spring), opacity .2s, filter .2s;
}
.main-btn:active { transform: scale(.97); }
.main-btn[disabled] { opacity: .35; filter: grayscale(1); }
.main-btn.ghost { background: var(--card-2); color: var(--text); }

.flow-done { text-align: center; padding-top: 30px; }
.flow-done .summary { text-align: left; }
.done-check { width: 110px; height: 110px; margin: 10px auto 22px; }
.done-check svg { width: 100%; height: 100%; stroke: var(--accent); stroke-width: 3; }
.done-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.done-check path { stroke-dasharray: 40; stroke-dashoffset: 40; stroke-width: 4; }
.flow-done.active circle { animation: draw .6s var(--ease) .1s forwards; }
.flow-done.active path { animation: draw .4s var(--ease) .6s forwards; }
.flow-done.active .done-check { animation: bounce .5s var(--spring) .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bounce { 50% { transform: scale(1.12); } }

/* ---------- sheet / toast ---------- */
.sheet { position: absolute; inset: 0; z-index: 60; display: flex; align-items: flex-end; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet-card { width: 100%; padding: 10px 20px calc(20px + var(--bottom)); border-radius: 28px 28px 0 0; background: var(--card); border-top: 1px solid var(--line); animation: flow-in .4s var(--ease); }
.sheet-grip { display: block; width: 40px; height: 5px; margin: 0 auto 18px; border-radius: 9px; background: var(--card-3); }
.sheet-card h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: uppercase; }
.sheet-card ol { margin: 0 0 20px; padding-left: 20px; line-height: 2; color: var(--dim); }
.sheet-card ol b { color: var(--text); }

.toast {
  position: absolute; left: 50%; top: calc(64px + var(--top)); z-index: 70; translate: -50% 0;
  padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: toast 2.6s var(--ease) forwards;
}
@keyframes toast { 0% { opacity: 0; transform: translateY(-12px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .stagger, .svc, .slot { opacity: 1 !important; transform: none !important; }
}

/* =================== аккаунт =================== */
.user-btn { position: relative; }
.user-initial { display: none; }
.user-btn.in { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.user-btn.in svg { display: none; }
.user-btn.in .user-initial { display: block; font-weight: 800; font-size: 16px; }

.auth { position: absolute; inset: 0; z-index: 45; display: flex; flex-direction: column; background: var(--bg); overflow: clip; animation: flow-in .5s var(--ease); }
.auth.leaving { animation: flow-out .35s var(--ease) forwards; }
.auth::before { content: ''; position: absolute; left: 50%; top: -120px; width: 420px; height: 320px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent); pointer-events: none; }
.auth-body { position: relative; flex: 1; overflow-y: auto; padding: 0 20px calc(24px + var(--bottom)); scrollbar-width: none; }
.auth-body.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.auth-orb { display: grid; place-items: center; width: 76px; height: 76px; margin: 4px auto 18px; border-radius: 24px; background: var(--accent); box-shadow: 0 16px 50px -10px var(--accent); animation: pop .6s var(--spring); }
.auth-orb .brand-mark { width: 34px; height: 22px; background: repeating-linear-gradient(-20deg, var(--accent-ink) 0 4px, transparent 4px 8px); }
.auth .flow-h { text-align: center; margin-bottom: 6px; }
.auth-sub { margin: 0 12px 22px; text-align: center; color: var(--dim); font-size: 14.5px; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; padding: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; height: 42px; border: 0; background: none; font-weight: 700; color: var(--dim); transition: color .3s; }
.seg button[aria-pressed="true"] { color: var(--text); }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: var(--card-3); transition: transform .45s var(--spring); }
.auth[data-mode="register"] .seg-pill { transform: translateX(100%); }
.only-register { display: none; }
.auth[data-mode="register"] .only-register { display: block; animation: rise .35s var(--ease); }

.pw { position: relative; display: block; }
.pw input { padding-right: 52px; }
.pw button { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--dim); }
.pw button svg { width: 20px; height: 20px; }

.account-card { margin-top: 18px; }
.acc-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.acc-row > div { flex: 1; min-width: 0; }
.acc-row b { display: block; }
.acc-row span:not(.avatar) { font-size: 13.5px; color: var(--dim); }
.avatar.accent { background: var(--accent); color: var(--accent-ink); }
.pill-btn.ghost { background: var(--card-3); color: var(--text); }
.acc-cta { padding: 20px; border-radius: 24px; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 18%, var(--card)), var(--card) 60%); border: 1px solid var(--line); }
.acc-cta b { display: block; font-size: 17px; }
.acc-cta > span { display: block; margin: 6px 0 16px; color: var(--dim); font-size: 14px; }
.acc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acc-btns .main-btn { height: 48px; font-size: 14.5px; }

.list-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 26px 4px 10px; font-size: 20px; font-weight: 700; }
.list-h small { font-size: 13px; font-weight: 500; color: var(--dim); }
.list-h.today { color: var(--accent); }
.list-h::first-letter { text-transform: uppercase; }
.list-note { margin: 16px 4px 8px; color: var(--dim); font-size: 13px; }
.history { border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.history-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.history-row:last-child { border: 0; }
.history-date { color: var(--dim); font-size: 13px; }
.history-again { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 13.5px; }

.save-acc { margin-top: 16px; padding: 16px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-align: left; animation: rise .5s var(--ease) .9s both; }
.save-acc b { display: block; }
.save-acc span { display: block; margin: 4px 0 12px; font-size: 13.5px; color: var(--dim); }
.save-acc-row { display: flex; gap: 8px; }
.save-acc-row input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); outline: none; }
.save-acc-row input:focus { border-color: var(--accent); }
.save-acc-row .pill-btn { height: 46px; border-radius: 14px; }
.save-acc-ok { display: none; align-items: center; gap: 10px; font-weight: 600; }
.save-acc-ok .ct-ok { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.save-acc-ok .ct-ok svg { width: 14px; height: 14px; stroke-width: 3; }
.save-acc.done .save-acc-form { display: none; }
.save-acc.done .save-acc-ok { display: flex; animation: pop .4s var(--spring); }

/* =================== кабинет мастера =================== */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); animation: rise .5s var(--ease) both; }
.kpi span { display: block; font-size: 12.5px; color: var(--dim); }
.kpi b { display: block; margin-top: 6px; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; white-space: nowrap; }
.kpi.accent { grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kpi.accent span { color: inherit; opacity: .7; }

.appt { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; margin-bottom: 8px; padding: 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); animation: rise .45s var(--ease) both; }
.appt-time { font-family: var(--display); font-size: 19px; line-height: 1.1; }
.appt-time small { display: block; font-family: var(--body); font-size: 11.5px; color: var(--dim); }
.appt-who { min-width: 0; }
.appt-who b { display: block; font-size: 16px; }
.appt-who span { display: block; font-size: 13.5px; color: var(--dim); }
.appt-who em { display: block; margin-top: 4px; font-style: normal; font-size: 13.5px; }
.appt-who .new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--ok); color: #000; font-size: 10.5px; font-weight: 800; vertical-align: 2px; }
.appt-actions { display: flex; gap: 6px; }
.appt-actions > * { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--card-3); color: var(--text); }
.appt-actions svg { width: 18px; height: 18px; }
.appt-actions button { color: #ff8f70; }

.search { display: flex; align-items: center; gap: 10px; height: 50px; margin-bottom: 4px; padding: 0 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.search svg { width: 18px; height: 18px; color: var(--dim); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; }
.client-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); animation: rise .4s var(--ease) both; }
.client-row > div:not(.client-stats) { flex: 1; min-width: 0; }
.client-row b { display: flex; align-items: center; gap: 6px; }
.client-row span:not(.avatar) { font-size: 13px; color: var(--dim); }
.client-stats { text-align: right; }
.client-stats b { justify-content: flex-end; font-size: 14px; }
.acc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.menu { margin-top: 12px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 15.5px; font-weight: 500; }
.menu button:last-child { border: 0; }
.menu button svg { width: 20px; height: 20px; color: var(--accent); }
.menu button.danger, .menu button.danger svg { color: #ff8f70; }
.menu button:active { background: var(--card-2); }
.tab-pill { transition: transform .5s var(--spring), opacity .3s; }

/* =================== правки после теста =================== */
/* буква в аватаре всегда по центру: аватар — это span, общие правила для span его ломали */
.avatar { display: grid !important; place-items: center; flex: none; line-height: 1; }

/* «Популярное» — ровные квадраты: метка сверху, название и цена прижаты к низу */
.pop-card { width: 158px; aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 14px; }
.pop-card small { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pop-bottom { display: block; width: 100%; }
.pop-card .pop-bottom b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 6px; font-size: 15px; line-height: 1.2; }
.pop-card strong { display: block; font-size: 21px; line-height: 1; }

/* «Команда» — тоже квадраты одного размера */
.team-card { width: 150px; aspect-ratio: .82; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.team-card b { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* работы: кнопка-обёртка для просмотра */
.work { flex: none; padding: 0; border: 0; background: none; border-radius: 20px; overflow: hidden; }
.works img { pointer-events: none; }

/* звёзды отзывов: серые — «недостающие» */
.review-card .stars i { font-style: normal; color: var(--card-3); }

/* листание мышью */
.hscroll.dragging, .days.dragging, .chips-row.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.hscroll { cursor: grab; }

/* ретрай при сбое связи */
.link-retry { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* клиенты: мастер */
.client-master { display: block; margin-top: 3px; font-size: 12px; color: var(--accent) !important; font-weight: 600; }

/* карточка мастера */
.master-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.master-head .avatar.big { margin: 0; }
.master-head h3 { margin: 0 0 2px; }
.master-head span:not(.avatar) { color: var(--dim); font-size: 14px; }
.master-photo { width: 84px; height: 84px; flex: none; border: 0; border-radius: 24px; background-size: cover; background-position: center; }
.master-bio { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.master-next { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--card-2); font-size: 14px; }
.master-svc { display: flex; flex-wrap: wrap; gap: 6px; }
.master-svc span { padding: 6px 10px; border-radius: 99px; background: var(--card-2); font-size: 12.5px; color: var(--dim); }

/* настройки: фото мастера, звёзды, галерея */
.photo-pick { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; }
.photo-pick .avatar.big { margin: 0; }
.photo-pick-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.file-btn { position: relative; overflow: hidden; display: inline-grid; place-items: center; cursor: pointer; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.star-pick { display: flex; gap: 4px; margin-bottom: 8px; }
.star-pick button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--bg); color: var(--card-3); font-size: 20px; line-height: 1; transition: color .15s, transform .2s var(--spring); }
.star-pick button.on { color: var(--accent); }
.star-pick button:active { transform: scale(.85); }
.check-row { display: flex; align-items: center; gap: 12px; margin: 0 4px 12px; font-size: 14.5px; }
.ed-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 10px; }
.ed-photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: var(--card-2); }
.ed-photo img { width: 100%; height: 100%; object-fit: cover; }
.ed-photo .ed-tools { position: absolute; left: 6px; right: 6px; bottom: 6px; justify-content: space-between; }
.ed-photo .ed-tools button { background: rgba(0, 0, 0, .6); backdrop-filter: blur(6px); color: #fff; }

.hero-preview { height: 220px; margin-bottom: 4px; border-radius: 24px; background: var(--card-2) center / cover no-repeat; }

/* =================== переключатель «Вид телефона» =================== */
.side-brand { display: none; }
.view-toggle { display: none; }
@media (min-width: 600px) {
  .view-toggle {
    position: fixed; z-index: 100; right: 20px; bottom: 96px; display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line);
    background: rgba(22, 22, 22, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s;
  }
  .view-toggle:hover { border-color: var(--accent); }
  .view-toggle svg { width: 18px; height: 18px; }
  .view-toggle .vt-desktop { display: none; }
  html.phone-preview .view-toggle { bottom: 20px; }
  html.phone-preview .view-toggle .vt-phone { display: none; }
  html.phone-preview .view-toggle .vt-desktop { display: inline-flex; align-items: center; gap: 8px; }
  .vt-phone { display: inline-flex; align-items: center; gap: 8px; }
}

/* =================== планшет: на всю ширину, контент по центру =================== */
@media (min-width: 600px) and (max-width: 1023px) {
  :root:not(.phone-preview) .screen,
  :root:not(.phone-preview) .topbar { padding-left: max(24px, calc((100% - 680px) / 2)); padding-right: max(24px, calc((100% - 680px) / 2)); }
  :root:not(.phone-preview) .tabbar,
  :root:not(.phone-preview) .chat-input { left: max(12px, calc((100% - 540px) / 2)); right: max(12px, calc((100% - 540px) / 2)); }
  :root:not(.phone-preview) .flow-top, :root:not(.phone-preview) .flow-step, :root:not(.phone-preview) .flow-foot,
  :root:not(.phone-preview) .auth-body, :root:not(.phone-preview) .editor-body, :root:not(.phone-preview) .editor-top {
    padding-left: max(16px, calc((100% - 640px) / 2)); padding-right: max(16px, calc((100% - 640px) / 2));
  }
  :root:not(.phone-preview) .sheet { justify-content: center; }
  :root:not(.phone-preview) .sheet-card { width: min(100%, 560px); }
}

/* =================== компьютер: меню слева, контент по центру, панели справа =================== */
@media (min-width: 1024px) {
  :root:not(.phone-preview) { --side: 248px; }

  /* боковое меню вместо нижних вкладок */
  :root:not(.phone-preview) .tabbar {
    left: 0; right: auto; top: 0; bottom: 0; width: var(--side);
    display: flex; flex-direction: column; gap: 4px; padding: 22px 14px 80px;
    border-radius: 0; border: 0; border-right: 1px solid var(--line);
    background: #0a0a0a; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  :root:not(.phone-preview) .tabbar.away { transform: none; opacity: 1; }
  :root:not(.phone-preview) .tab-pill { display: none; }
  :root:not(.phone-preview) .side-brand { display: flex; align-items: flex-start; gap: 10px; margin: 0 6px 22px; font-family: var(--display); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
  :root:not(.phone-preview) .side-brand b { font-weight: 400; white-space: normal; line-height: 1.25; }
  :root:not(.phone-preview) .side-brand .brand-logo { height: 30px; }
  :root:not(.phone-preview) .tab { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; font-size: 15px; color: var(--dim); transition: background .2s, color .2s; }
  :root:not(.phone-preview) .tab:hover { background: var(--card); color: var(--text); }
  :root:not(.phone-preview) .tab.active { background: var(--accent); color: var(--accent-ink); }
  :root:not(.phone-preview) .tab.active svg { transform: none; }
  :root:not(.phone-preview) .tab-badge { position: static; margin-left: auto; box-shadow: none; }
  :root:not(.phone-preview) .view-toggle { left: 14px; right: auto; bottom: 16px; width: calc(var(--side) - 28px); justify-content: center; }

  /* шапка и экраны правее меню, контент не шире 1080px */
  :root:not(.phone-preview) .topbar { left: var(--side); padding: 16px 40px 12px; }
  :root:not(.phone-preview) .topbar .brand { visibility: hidden; }
  :root:not(.phone-preview) .screens { left: var(--side); }
  :root:not(.phone-preview) .screen { padding: 76px max(40px, calc((100% - 1080px) / 2)) 60px; }
  :root:not(.phone-preview) .screen-h { font-size: 48px; }

  /* главная в две колонки: фото слева, описание справа */
  :root:not(.phone-preview) .screen[data-screen="home"] { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 32px; align-content: start; }
  :root:not(.phone-preview) .screen[data-screen="home"] > * { grid-column: 1 / -1; }
  :root:not(.phone-preview) .screen[data-screen="home"] > .hero-card { grid-column: 1; grid-row: 1 / span 4; height: 470px; }
  :root:not(.phone-preview) .screen[data-screen="home"] > .intro,
  :root:not(.phone-preview) .screen[data-screen="home"] > .tiles,
  :root:not(.phone-preview) .screen[data-screen="home"] > .next-slot { grid-column: 2; }
  :root:not(.phone-preview) .screen[data-screen="home"] > .intro { padding-top: 6px; }
  :root:not(.phone-preview) .intro h1 { font-size: 42px; }
  :root:not(.phone-preview) .intro p { font-size: 16px; }
  :root:not(.phone-preview) .works img { width: 230px; height: 290px; }
  :root:not(.phone-preview) .pop-card { width: 190px; }
  :root:not(.phone-preview) .review-card { width: 340px; }
  :root:not(.phone-preview) .team-card { width: 170px; }
  :root:not(.phone-preview) .place-card, :root:not(.phone-preview) .contact-row { max-width: 760px; }

  /* прайс в две колонки */
  :root:not(.phone-preview) [data-bind="services"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  :root:not(.phone-preview) [data-bind="addons-list"] { max-width: 760px; }

  /* «Мои записи» и чат — комфортной ширины */
  :root:not(.phone-preview) .screen[data-screen="my"] > * { max-width: 760px; }
  :root:not(.phone-preview) .screen-chat { padding-left: max(40px, calc((100% - 760px) / 2)); padding-right: max(40px, calc((100% - 760px) / 2)); padding-bottom: 130px; }
  :root:not(.phone-preview) .chat-input {
    left: calc(var(--side) + max(40px, calc((100vw - var(--side) - 760px) / 2)));
    right: max(40px, calc((100vw - var(--side) - 760px) / 2));
    bottom: 28px;
  }

  /* запись, вход и редакторы — боковой панелью справа, остальное затемнено */
  :root:not(.phone-preview) .flow,
  :root:not(.phone-preview) .auth,
  :root:not(.phone-preview) .editor {
    left: auto; width: 500px; border-left: 1px solid var(--line);
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .6); animation: panel-in .45s var(--ease);
  }
  :root:not(.phone-preview) .editor { width: 600px; }
  :root:not(.phone-preview) .flow.leaving,
  :root:not(.phone-preview) .auth.leaving,
  :root:not(.phone-preview) .editor.leaving { animation: panel-out .3s var(--ease) forwards; }
  @keyframes panel-in { from { transform: translateX(100%); } }
  @keyframes panel-out { to { transform: translateX(100%); } }

  /* окна подтверждения — по центру экрана */
  :root:not(.phone-preview) .sheet { align-items: center; justify-content: center; }
  :root:not(.phone-preview) .sheet-card { width: 500px; max-height: 86%; border-radius: 28px; border: 1px solid var(--line); padding-bottom: 20px; animation: pop .3s var(--spring); }
  :root:not(.phone-preview) .sheet-grip { display: none; }

  /* кабинет: показатели в строку, расписание и клиенты сеткой */
  :root:not(.phone-preview) .kpis { grid-template-columns: repeat(3, 1fr); }
  :root:not(.phone-preview) .kpi.accent { grid-column: auto; }
  :root:not(.phone-preview) [data-bind="m-agenda"],
  :root:not(.phone-preview) [data-bind="m-clients"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); column-gap: 12px; align-items: start; }
  :root:not(.phone-preview) [data-bind="m-agenda"] > .list-h,
  :root:not(.phone-preview) [data-bind="m-agenda"] > .empty,
  :root:not(.phone-preview) [data-bind="m-clients"] > .list-note,
  :root:not(.phone-preview) [data-bind="m-clients"] > .empty { grid-column: 1 / -1; }
  :root:not(.phone-preview) [data-bind="m-settings"],
  :root:not(.phone-preview) [data-bind="m-profile"],
  :root:not(.phone-preview) .screen[data-screen="m-clients"] .search { max-width: 760px; }
}

/* «Мои записи»: ближайший визит, повтор, перед визитом, сводка */
.hero-booking { padding: 20px; }
.bc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bc-countdown { padding: 5px 10px; border-radius: 99px; background: rgba(0, 0, 0, .16); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.hero-booking .bc-when { margin: 12px 0 0; font-family: var(--body); font-size: 16px; font-weight: 600; opacity: .8; }
.hero-booking .bc-when::first-letter { text-transform: uppercase; }
.bc-time { margin: 2px 0 8px; font-family: var(--display); font-size: 44px; line-height: 1; }
.bc-time span { font-size: 22px; opacity: .55; }
.hero-booking .bc-what { font-size: 15px; font-weight: 600; opacity: .9; }
.bc-master { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 16px; background: rgba(0, 0, 0, .12); }
.bc-master .avatar { width: 40px; height: 40px; font-size: 16px; background-color: rgba(0, 0, 0, .18); color: inherit; }
.bc-master div { flex: 1; min-width: 0; }
.bc-master b { display: block; font-size: 15px; }
.bc-master span:not(.avatar) { font-size: 12.5px; opacity: .7; }
.bc-master strong { font-family: var(--display); font-weight: 400; font-size: 20px; }
.bc-actions.three { display: grid; grid-template-columns: repeat(3, 1fr); }
.bc-actions.three > * { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 62px !important; font-size: 12.5px !important; }
.bc-actions.three svg { width: 20px; height: 20px; }
.history-row.upcoming { grid-template-columns: 64px 1fr auto; }
.history-date small, .history-what small { display: block; font-size: 12px; color: var(--dim); }
.history-lock { font-size: 12px; color: var(--dim); }
.visit-info { padding: 6px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.vi-row { display: flex; align-items: center; gap: 12px; padding: 10px; }
.vi-row b { display: block; font-size: 14.5px; font-weight: 600; }
.vi-row small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.vi-btns { display: flex; gap: 6px; padding: 4px; }
.vi-btns a { flex: 1; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--card-3); font-size: 13.5px; font-weight: 600; }
.repeat-card { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px; border-radius: 22px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--card)); text-align: left; animation: rise .5s var(--ease) .1s both; transition: transform .2s var(--spring); }
.repeat-card:active { transform: scale(.98); }
.repeat-text { flex: 1; min-width: 0; }
.repeat-text small { display: block; font-size: 12px; color: var(--dim); }
.repeat-text b { display: block; font-size: 14.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.repeat-go { flex: none; padding: 8px 12px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.my-stats { display: flex; gap: 8px; margin-top: 12px; }
.my-stats div { flex: 1; padding: 14px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: center; animation: rise .5s var(--ease) .15s both; }
.my-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; text-transform: capitalize; }
.my-stats span { font-size: 12px; color: var(--dim); }

/* согласие на обработку данных */
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 8px 4px 0; font-size: 13px; line-height: 1.4; color: var(--dim); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent.shake { animation: shake .4s; }
.auth .consent.only-register { display: none; }
.auth[data-mode="register"] .consent.only-register { display: flex; }
.chat-legal { margin-top: 10px !important; font-size: 12px !important; color: #5f5b54 !important; }
.chat-legal a { color: inherit; text-decoration: underline; }
.app-foot a { color: inherit; }
.temp-pass { margin: 6px 0 4px; font-family: var(--display); font-size: 40px; letter-spacing: .12em; text-align: center; color: var(--accent); }

/* доп. услуги */
.extras, .edit-list { display: flex; flex-direction: column; gap: 8px; }
.extra { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-align: left; opacity: 0; animation: rise .4s var(--ease) forwards; transition: border-color .2s, background .2s, transform .2s var(--spring); }
.edit-list .extra { opacity: 1; animation: none; padding: 12px 14px; }
.extra:active { transform: scale(.98); }
.extra-check { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; border: 1.5px solid var(--line); transition: background .2s, border-color .2s; }
.extra.radio .extra-check { border-radius: 50%; }
.extra-check svg { width: 16px; height: 16px; stroke-width: 3; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--spring); }
.extra[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.extra[aria-pressed="true"] .extra-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.extra[aria-pressed="true"] .extra-check svg { opacity: 1; transform: none; }
.extra-info { flex: 1; min-width: 0; }
.extra-info b { display: block; font-size: 15.5px; }
.extra-info span { font-size: 12.5px; color: var(--dim); }
.extra-price { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.extras-total { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: var(--card-2); }
.extras-total span { flex: 1; color: var(--dim); font-size: 14px; }
.extras-total b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--accent); }
.extras-total small { color: var(--dim); font-size: 13px; }
.addon-list { border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.addon-row:last-child { border: 0; }
.addon-row b { display: block; font-weight: 600; font-size: 15px; }
.addon-row small { color: var(--dim); font-size: 12.5px; }
.addon-row strong { flex: none; font-variant-numeric: tabular-nums; }
.sheet-sub { margin: 16px 2px 8px; font-size: 14px; color: var(--dim); font-weight: 600; }
.sheet-hint { margin: 12px 2px 0; font-size: 12.5px; color: var(--dim); text-align: center; }
.ed-sub { margin: 4px 2px 8px; font-size: 12.5px; color: var(--dim); }
.checks.small .check span { padding: 7px 11px; font-size: 13px; }
.bc-actions > * { text-decoration: none; }

/* просмотр фото */
.viewer { position: absolute; inset: 0; z-index: 80; background: rgba(0, 0, 0, .96); overflow: hidden; touch-action: none; animation: fade .2s; }
.viewer.leaving { animation: fade .25s reverse forwards; }
.vw-track { display: flex; height: 100%; will-change: transform; }
.vw-slide { flex: 0 0 100%; display: grid; place-items: center; overflow: hidden; }
.vw-slide img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transform-origin: center; }
.vw-btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(8px); }
.vw-btn svg { width: 22px; height: 22px; }
.vw-close { top: calc(12px + var(--top)); right: 12px; }
.vw-prev, .vw-next { top: 50%; translate: 0 -50%; }
.vw-prev { left: 10px; } .vw-next { right: 10px; }
@media (hover: none) { .vw-prev, .vw-next { display: none; } }
.vw-count { position: absolute; left: 50%; bottom: calc(18px + var(--bottom)); translate: -50% 0; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 600; }
.vw-count:empty { display: none; }
.auth .flow-top { justify-content: flex-end; }
.auth .flow-h { font-size: 26px; }

/* =================== шторка действий =================== */
.sheet.leaving { animation: fade .26s reverse forwards; }
.sheet.leaving .sheet-card { animation: flow-out .26s var(--ease) forwards; }
.action-card { max-height: 88%; overflow-y: auto; scrollbar-width: none; }
.action-card h3 { margin: 0 0 8px; }
.sheet-text { margin: 0 0 16px; color: var(--dim); font-size: 14.5px; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.sheet-actions .main-btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.main-btn.danger { background: #ff5a4d; color: #1a0503; }
.main-btn.danger-text { color: #ff8f70; }
a.main-btn { text-decoration: none; }
.appt-sheet-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ash-time { font-family: var(--display); font-size: 34px; line-height: 1; }
.ash-time small { font-size: 16px; color: var(--dim); }
.appt-sheet-head b { display: block; font-size: 17px; }
.appt-sheet-head span:not(.ash-time) { font-size: 13.5px; color: var(--dim); }
.action-card .days { margin: 0 -20px; padding: 0 20px 4px; scroll-padding-inline: 20px; }
.action-card .slots-label { margin-top: 16px; }
.appt { cursor: pointer; transition: transform .2s var(--spring), border-color .2s; }
.appt:active { transform: scale(.98); border-color: var(--accent); }
.appt-who .moved { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: var(--card-3); color: var(--dim); font-size: 10.5px; font-weight: 700; vertical-align: 2px; }
.appt-actions button { color: var(--text); }

.bc-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .14); font-size: 13px; font-weight: 600; }
.booking-card:not(.next) .bc-note { background: var(--card-3); color: var(--text); }
.booking-card.cancelled { opacity: .85; border-style: dashed; }
.booking-card.cancelled .bc-label { color: #ff8f70; opacity: 1; }
.booking-card.cancelled .bc-when { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .6; }

.next-slot.flash { animation: flash .8s var(--ease); }
@keyframes flash { 30% { transform: scale(1.03); filter: brightness(1.25); } }
.ash-time { flex: none; white-space: nowrap; font-size: 30px; } .ash-time small { font-family: var(--body); font-weight: 600; }

/* =================== несколько мастеров =================== */
.avatar { background-size: cover; background-position: center; }
.avatar.big { width: 72px; height: 72px; font-size: 26px; margin: 0 auto 10px; }
.avatar.any { background: var(--accent); color: var(--accent-ink); }
.avatar.any svg { width: 22px; height: 22px; }
.team-card { width: 150px; padding: 18px 12px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); text-align: center; transition: transform .2s var(--spring); }
.team-card:active { transform: scale(.96); }
.team-card b { display: block; font-size: 15.5px; }
.team-card .team-role { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.team-card em { display: inline-block; margin-top: 12px; padding: 6px 12px; border-radius: 99px; background: var(--card-3); font-style: normal; font-size: 12.5px; font-weight: 700; }

.staff-list { display: flex; flex-direction: column; gap: 10px; }
.staff-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); text-align: left; opacity: 0; animation: rise .45s var(--ease) forwards; transition: transform .2s var(--spring), border-color .2s, background .2s; }
.staff-card:active { transform: scale(.98); }
.staff-card[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.staff-info { flex: 1; min-width: 0; }
.staff-info b { display: block; font-size: 16.5px; }
.staff-info > span { font-size: 13px; color: var(--dim); }
.staff-next { flex: none; padding: 6px 10px; border-radius: 12px; background: var(--card-3); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }

.brand-logo { height: 26px; max-width: 40px; object-fit: contain; border-radius: 6px; }
.auth-orb.with-logo { background: #fff; padding: 10px; }
.auth-orb img { width: 100%; height: 100%; object-fit: contain; }

.chips-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chips-row.filter { margin-top: 16px; }
.chip-btn { flex: none; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.chip-btn i { margin-left: 4px; font-style: normal; opacity: .6; }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.action-card .chips-row { margin: 0 -20px 12px; padding: 2px 20px; }
.appt-who .who { font-style: normal; color: var(--text); opacity: .8; }

/* =================== настройки =================== */
.set-row { display: flex; align-items: center; gap: 14px; }
.set-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--card-3); }
.set-ico svg { width: 20px; height: 20px; color: var(--accent); }
.menu .set-row svg.set-arrow { width: 18px; height: 18px; color: var(--dim); flex: none; }
.set-text { flex: 1; min-width: 0; }
.set-text b { display: block; font-weight: 600; }
.set-text span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--dim); font-weight: 400; }
.set-row.add .set-text b { color: var(--accent); }
.set-row .avatar { width: 38px; height: 38px; font-size: 15px; }

.editor { position: absolute; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg); overflow: clip; animation: flow-in .45s var(--ease); }
.editor.leaving { animation: flow-out .35s var(--ease) forwards; }
.editor-top { display: flex; align-items: center; gap: 12px; padding: calc(10px + var(--top)) 16px 10px; border-bottom: 1px solid var(--line); }
.editor-top b { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16.5px; }
.editor-top .pill-btn { background: var(--accent); color: var(--accent-ink); }
.editor-top .pill-btn:disabled { opacity: .5; }
.editor-error { margin: 0; padding: 0 16px; }
.editor-error:empty { display: none; }
.editor-error:not(:empty) { padding: 10px 16px; background: rgba(255, 90, 77, .1); }
.editor-body { flex: 1; overflow-y: auto; padding: 16px 16px calc(40px + var(--bottom)); scrollbar-width: none; }
.editor-body .main-btn.ghost { margin-top: 4px; }
.ed-h { margin: 26px 4px 10px; font-size: 16px; font-weight: 700; }
.ed-note { margin: 0 4px 14px; font-size: 13.5px; color: var(--dim); }
.field textarea, .field select { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 16px; outline: none; resize: vertical; }
.field select { height: 54px; padding: 0 12px; appearance: none; }
.field textarea:focus, .field select:focus { border-color: var(--accent); }
.field input[type="time"], .field input[type="date"] { color-scheme: dark; }
.ed-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.ed-card { padding: 14px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--line); animation: rise .35s var(--ease) both; }
.ed-card .field { margin-bottom: 8px; }
.ed-card .field input, .ed-card .field textarea, .ed-card .field select { background: var(--bg); }
.ed-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ed-title { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; font-weight: 700; outline: none; }
.ed-title:focus { border-color: var(--accent); }
.ed-tools { display: flex; gap: 4px; }
.ed-tools button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--card-3); }
.ed-tools button svg { width: 18px; height: 18px; }
.ed-tools [data-del] { color: #ff8f70; }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.link-del { border: 0; background: none; padding: 4px 2px; color: #ff8f70; font-size: 13.5px; font-weight: 600; }
.del-staff { margin-top: 30px !important; }

.week { border-radius: 20px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.week-row { display: grid; grid-template-columns: 46px 30px 1fr 12px 1fr; align-items: center; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.week-row b { font-size: 14.5px; }
.week-row i { font-style: normal; color: var(--dim); text-align: center; }
.week-row input[type="time"] { width: 100%; height: 40px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color-scheme: dark; font-variant-numeric: tabular-nums; }
.week-row.off input[type="time"], .week-row.off i { opacity: .25; pointer-events: none; }
.week-tools { display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; }
.week-tools .chip-btn { height: 34px; font-size: 13px; background: var(--card-3); }

.switch { position: relative; display: inline-block; width: 42px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--card-3); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; }
.check input { position: absolute; opacity: 0; }
.check span { display: inline-block; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.check input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
