/* ===== темы: приглушённые, «книжные» ===== */
body[data-theme="peach"]    { --bg:#f5ecdf; --card:#fffaf2; --ink:#4b3a2e; --muted:#9a8673; --accent:#d9824f; --accent2:#e8b957; --soft:#f3dfc8; --line:#eadbc8; --wall:#efe1cd; --floor:#d9c2a3; --shadow:110,70,35; --good:#7a9a5b; }
body[data-theme="mint"]     { --bg:#eef0e2; --card:#fbfcf4; --ink:#3d4430; --muted:#858c74; --accent:#7d9256; --accent2:#e2b45c; --soft:#dfe5cb; --line:#e1e5d2; --wall:#e5e9d3; --floor:#cdbb98; --shadow:60,75,40; --good:#6d9a5a; }
body[data-theme="lavender"] { --bg:#f1edf3; --card:#fdfbfd; --ink:#463c50; --muted:#8f8599; --accent:#9a7fb8; --accent2:#e7a9a0; --soft:#e6deec; --line:#e7e0ec; --wall:#e9e2ee; --floor:#cdbfd6; --shadow:70,55,110; --good:#6fa58a; }
body[data-theme="night"]    { --bg:#262330; --card:#302c3b; --ink:#f1e6d6; --muted:#a69db2; --accent:#e7a35f; --accent2:#b6a0e8; --soft:#3b3549; --line:#3f394d; --wall:#2f2b3d; --floor:#3c3448; --shadow:0,0,0; --good:#8cc79a; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: Nunito, system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; transition: background .6s, color .6s; overflow: hidden; }
/* бумажное зерно поверх всего фона */
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1, h2, h3 { margin: 0; }
h3 { font-size: 17px; font-weight: 800; }
.hand { font-family: Caveat, cursive; }

.app { position: relative; z-index: 1; display: grid; grid-template-columns: 252px 1fr; height: 100vh; height: 100dvh; }

/* ===== боковая панель ===== */
.side { padding: 22px 16px 16px; display: flex; flex-direction: column; gap: 16px; border-right: 1.5px dashed var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 34px/1 Caveat, cursive; padding: 0 8px; }
.brand-paw { width: 28px; height: 28px; fill: var(--accent); transform: rotate(-14deg); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav button { display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: 15.5px; color: var(--muted); transition: background .25s, color .25s, transform .25s; text-align: left; }
.nav button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav button:hover { color: var(--ink); transform: translateX(2px); }
.nav button.on { background: var(--card); color: var(--ink); box-shadow: 0 4px 14px rgba(var(--shadow), .08); }
.nav button.on svg { stroke: var(--accent); }

.home { margin-top: auto; background: var(--card); border-radius: 22px; padding: 12px 12px 10px; box-shadow: 0 8px 26px rgba(var(--shadow), .08); }
.home-top { display: flex; justify-content: space-between; align-items: center; font-size: 15px; padding: 0 2px; }
.lvl-pill { background: var(--soft); color: var(--accent); font-weight: 900; font-size: 12px; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.xpbar { height: 7px; background: var(--soft); border-radius: 99px; margin: 8px 2px 10px; overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 99px; transition: width .9s cubic-bezier(.2,.9,.3,1.1); }
.room { border-radius: 16px; overflow: hidden; aspect-ratio: 3/2; background: var(--wall); }
.room-svg { width: 100%; height: 100%; display: block; }
.home-hint { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 8px; min-height: 17px; font-weight: 700; }
.sway { transform-origin: 37px 182px; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 50% { transform: rotate(2deg); } }
.bulb { animation: twinkle 2.2s ease-in-out infinite; }
.twinkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .35; } }
.glow { animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .45; } }

/* ===== основная часть ===== */
.main { overflow-y: auto; padding: 26px 34px 150px; overscroll-behavior: contain; }
.top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; gap: 12px; }
.top h1 { font: 700 40px/1 Caveat, cursive; }
.top p { margin: 6px 0 0; font-weight: 700; }
.top-right { display: flex; gap: 10px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--card); padding: 8px 14px; border-radius: 99px; font-weight: 800; box-shadow: 0 4px 14px rgba(var(--shadow), .08); }
.chip svg { width: 22px; height: 22px; }
.chip.coin.pop { animation: pop .5s; }
@keyframes pop { 40% { transform: scale(1.18) rotate(-4deg); } }
.mini-timer { background: var(--accent); color: #fff; font-weight: 900; padding: 8px 14px; border-radius: 99px; cursor: pointer; font-variant-numeric: tabular-nums; }

#view.in { animation: viewIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

.grid { display: grid; gap: 22px; }
.grid > *, .kpis > *, .focus-wrap > * { min-width: 0; }
.g-today { grid-template-columns: 1.15fr 1fr; align-items: start; margin-top: 22px; }
.g-corner { grid-template-columns: 1fr 1.2fr; align-items: start; }
.card { background: var(--card); border-radius: 24px; padding: 22px 24px; box-shadow: 0 10px 30px rgba(var(--shadow), .07); position: relative; }
.card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.span2 { grid-column: span 2; }

/* плитки с цифрами — на них любит лежать кот */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpis.two { grid-template-columns: 1fr 1fr; }
.kpis.four { grid-template-columns: repeat(4, 1fr); }
.kpi { background: var(--card); border-radius: 22px; padding: 16px 18px 14px; box-shadow: 0 10px 30px rgba(var(--shadow), .07); min-height: 118px; position: relative; overflow: hidden; }
.kpi::after { content: ''; position: absolute; right: -20px; bottom: -26px; width: 110px; height: 60px; border-radius: 50%; background: var(--soft); opacity: .55; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 800; position: relative; z-index: 1; }
.kpi .v { font: 700 38px/1.05 Caveat, cursive; margin-top: 6px; position: relative; z-index: 1; white-space: nowrap; }
.kpi .d { font-size: 12.5px; font-weight: 800; color: var(--good); margin-top: 4px; position: relative; z-index: 1; }

/* дела */
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.task { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; transition: background .2s; }
.task:hover { background: var(--bg); }
.empty { padding: 8px 10px; }
.check { width: 26px; height: 26px; border-radius: 9px; border: 2.2px solid var(--accent); background: transparent; display: grid; place-items: center; flex: none; transition: background .25s, transform .25s; padding: 0; }
.check:active { transform: scale(.9); }
.check svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s .05s; }
.task.done .check { background: var(--accent); }
.task.done .check svg { stroke-dashoffset: 0; }
.task .txt { flex: 1; font-weight: 650; transition: color .3s; }
.task.done .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); }
.x { border: 0; background: transparent; color: var(--muted); opacity: 0; font-size: 20px; padding: 2px 8px; border-radius: 8px; transition: opacity .2s; }
.task:hover .x, tr:hover .x { opacity: .8; }
.add-row { display: flex; gap: 8px; margin-top: 12px; }
.inp { flex: 1; border: 1.8px solid var(--line); background: var(--bg); border-radius: 14px; padding: 10px 14px; outline: none; font-weight: 650; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.btn { border: 0; background: var(--accent); color: #fff; font-weight: 800; padding: 10px 18px; border-radius: 14px; box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .2s, box-shadow .2s, filter .2s, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .45; transform: none; cursor: default; }
.btn.ghost { background: var(--soft); color: var(--ink); box-shadow: none; }
.btn.small { padding: 7px 12px; font-size: 13.5px; border-radius: 12px; }
.btn.good { background: var(--good); box-shadow: 0 5px 14px color-mix(in srgb, var(--good) 30%, transparent); }
.big-btn { font-size: 17px; padding: 13px 28px; border-radius: 16px; }

/* записи */
.appts { display: flex; flex-direction: column; gap: 9px; }
.appt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; background: var(--bg); transition: transform .2s; }
.appt:hover { transform: translateX(3px); }
.time { background: var(--card); font-weight: 900; padding: 7px 9px; border-radius: 11px; font-variant-numeric: tabular-nums; min-width: 58px; text-align: center; }
.appt .who { flex: 1; min-width: 0; }
.appt .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt .who span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.price { font-weight: 900; white-space: nowrap; }
.done-badge { color: var(--good); font-weight: 800; font-size: 14px; white-space: nowrap; }

.goal-bar { height: 16px; background: var(--soft); border-radius: 99px; position: relative; margin: 16px 0 10px; }
.goal-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 99px; transition: width 1s cubic-bezier(.2,.9,.3,1); }
.goal-bar .paw { position: absolute; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); background: var(--card); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(var(--shadow), .18); }
.goal-bar .paw svg { width: 18px; fill: var(--accent); }
.focus-mini { display: flex; align-items: center; gap: 16px; justify-content: space-between; background: linear-gradient(120deg, var(--soft), var(--card)); }
.focus-mini p { margin: 6px 0 0; }

/* ===== клиенты ===== */
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { min-width: 220px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.fchip { border: 0; background: var(--bg); padding: 8px 13px; border-radius: 99px; font-weight: 750; font-size: 14px; color: var(--muted); transition: all .2s; }
.fchip.on { background: var(--accent); color: #fff; }
.tbl-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; padding: 6px 12px; white-space: nowrap; }
.tbl td { background: var(--bg); padding: 12px; font-weight: 650; height: 64px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .money { font: 700 22px/1 Caveat, cursive; white-space: nowrap; }
.tbl tr td:first-child { border-radius: 16px 0 0 16px; }
.tbl tr td:last-child { border-radius: 0 16px 16px 0; width: 44px; }
.tbl tbody tr:hover td { background: var(--soft); }
.who-cell { display: flex; align-items: center; gap: 11px; }
.ava { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; color: #fff; flex: none; }
.who-cell small { display: block; color: var(--muted); font-weight: 600; }
.pill { border: 0; border-radius: 99px; padding: 5px 12px; font-weight: 800; font-size: 13px; appearance: none; cursor: pointer; }
.st-vip { background: #f6e1a6; color: #8a6200; }
.st-regular { background: #dbe8cf; color: #476b2c; }
.st-new { background: #dce7f1; color: #3b628a; }
.st-lost { background: #f1dcd6; color: #9b4d40; }
tr.new-row td { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); height: auto; }
.new-form { display: flex; gap: 8px; flex-wrap: wrap; }
tr.flash td { animation: flash 1.6s; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--accent2) 55%, var(--bg)); } }

/* ===== расписание ===== */
.week { display: grid; grid-template-columns: 50px repeat(var(--cols, 7), 1fr); gap: 0 8px; }
.wk-h { text-align: center; padding: 4px 0 10px; font-weight: 800; }
.wk-h small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.wk-h.is-today b { background: var(--accent); color: #fff; border-radius: 10px; padding: 1px 8px; }
.hours { display: flex; flex-direction: column; }
.hours div { height: 46px; font-size: 12px; color: var(--muted); font-weight: 700; transform: translateY(-7px); }
.daycol { position: relative; background: var(--bg); border-radius: 16px; height: calc(46px * 12); cursor: copy; background-image: repeating-linear-gradient(to bottom, transparent 0 45px, var(--line) 45px 46px); }
.daycol.is-today { background-color: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.blk { position: absolute; left: 4px; right: 4px; border-radius: 12px; padding: 6px 8px; font-size: 12.5px; font-weight: 750; overflow: hidden; cursor: pointer; color: #4b3a2e; box-shadow: 0 3px 8px rgba(var(--shadow), .1); transition: transform .2s, box-shadow .2s; line-height: 1.25; }
.blk:hover { transform: scale(1.03); box-shadow: 0 8px 18px rgba(var(--shadow), .16); z-index: 2; }
.blk b, .blk span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk b { font-weight: 900; }
.blk span { font-weight: 650; opacity: .85; }
.blk.short { padding: 2px 7px; font-size: 11.5px; display: flex; align-items: center; gap: 5px; line-height: 1.1; }
.blk.short b { flex: none; max-width: 100%; }
.blk.short span { flex: 1; min-width: 0; }
@media (max-width: 1150px) { .blk { font-size: 11.5px; padding: 4px 6px; } }
.blk.done { opacity: .6; }
.now-line { position: absolute; left: -4px; right: -4px; height: 2px; background: var(--accent); z-index: 3; }
.now-line::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* ===== фокус ===== */
.focus-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.focus-card { display: flex; flex-direction: column; align-items: center; padding: 34px 24px 28px; }
.ring { width: min(290px, 70vw); aspect-ratio: 1; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { stroke: var(--soft); }
.ring .prg { stroke: url(#rg); transition: stroke-dashoffset .9s linear; }
.ring .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .val b { font: 700 72px/1 Caveat, cursive; font-variant-numeric: tabular-nums; display: block; }
.ring .val span { color: var(--muted); font-weight: 700; }
.presets { display: flex; gap: 8px; margin: 18px 0 14px; }
.focus-actions { display: flex; gap: 10px; margin-top: 16px; }
.sel { border: 1.8px solid var(--line); background: var(--bg); border-radius: 14px; padding: 10px 14px; font-weight: 700; outline: none; max-width: 100%; }

/* ===== итоги ===== */
.chart { width: 100%; height: 230px; display: block; }
.svc { display: flex; flex-direction: column; gap: 12px; }
.svc-row { display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto; align-items: center; gap: 12px; font-weight: 700; }
.svc-row b { font: 700 22px/1 Caveat, cursive; }
.svc-bar { height: 10px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.svc-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.tabs { display: inline-flex; background: var(--card); padding: 4px; border-radius: 14px; gap: 4px; box-shadow: 0 4px 14px rgba(var(--shadow), .06); }
.card .tabs { background: var(--bg); box-shadow: none; }
.tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 10px; font-weight: 800; color: var(--muted); }
.tabs button.on { background: var(--accent); color: #fff; }

/* ===== питомец ===== */
.room.big { aspect-ratio: 3/2; margin-bottom: 12px; }
.ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.badge { background: var(--bg); border-radius: 18px; padding: 14px 10px; text-align: center; font-weight: 800; font-size: 14px; }
.badge .ic { font-size: 28px; display: block; margin-bottom: 6px; filter: grayscale(1); opacity: .35; transition: all .4s; }
.badge small { display: block; color: var(--muted); font-weight: 650; font-size: 12px; margin-top: 3px; }
.badge.got { background: linear-gradient(140deg, var(--soft), var(--bg)); }
.badge.got .ic { filter: none; opacity: 1; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.item { background: var(--bg); border-radius: 20px; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; font-weight: 800; font-size: 14px; transition: transform .2s; border: 2px solid transparent; }
.item:hover { transform: translateY(-3px); }
.item.active { border-color: var(--accent); }
.item .prev { width: 100%; height: 84px; display: grid; place-items: center; background: var(--card); border-radius: 14px; }
.item .prev .shop-prev { height: 72px; width: 90%; }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.coat-dot { width: 54px; height: 44px; border-radius: 50% 50% 44% 44%; display: flex; justify-content: center; gap: 10px; align-items: center; position: relative; }
.coat-dot::before, .coat-dot::after { content: ''; position: absolute; top: -9px; width: 0; height: 0; border: 9px solid transparent; border-bottom: 16px solid; border-bottom-color: inherit; }
.coat-dot i { width: 9px; height: 11px; border-radius: 50%; display: block; }
.item .lock { color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* ===== кот поверх интерфейса ===== */
#petLayer { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; contain: strict; }
.pet-sprite { position: absolute; left: 0; top: 0; will-change: transform; }
#petBubble { position: absolute; left: 0; top: 0; background: #fffaf2; color: #4b3a2e; font-weight: 800; font-size: 15px; padding: 4px 11px; border-radius: 13px; white-space: nowrap; opacity: 0; transition: opacity .25s; box-shadow: 0 4px 12px rgba(var(--shadow), .12); }
.p-zzz { color: var(--muted); font-style: italic; animation: zzz 2.6s ease-out forwards; }
@keyframes zzz { 0% { opacity: 0; transform: translate(0,0) scale(.5); } 25% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2); } }
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.particle { position: absolute; font-weight: 900; animation: floatUp 2.2s cubic-bezier(.2,.7,.3,1) forwards; opacity: 0; }
.p-heart { color: #e98a8f; }
.p-star { color: var(--accent2); }
.p-coin { color: #e6b54a; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(0,0) scale(.4) rotate(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(var(--r)); } }

/* ===== модалки, тосты, онбординг ===== */
#modal { position: fixed; inset: 0; background: rgba(50, 35, 25, .25); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; animation: fade .25s; padding: 12px; }
@keyframes fade { from { opacity: 0; } }
.mbox { background: var(--card); border-radius: 26px; padding: 24px; width: min(460px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.18); animation: rise .4s cubic-bezier(.2,.9,.3,1.15); }
.mbox.wide { width: min(800px, 100%); }
.mbox.center { text-align: center; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.mbox h2 { font: 700 34px/1.1 Caveat, cursive; margin-bottom: 12px; }
.lvl-big { font: 700 90px/1 Caveat, cursive; color: var(--accent); }
.form { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.form > *, .form .row2 > *, .form label > * { min-width: 0; }
.mbox { overflow-x: hidden; position: relative; }
.mbox-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); color: var(--muted); font-size: 22px; font-weight: 800; line-height: 1; display: grid; place-items: center; z-index: 2; cursor: pointer; transition: background .2s, color .2s; }
.mbox-x:hover { background: var(--soft); color: var(--ink); }
.mbox-x.inhead { position: static; flex: none; }
.form label { font-size: 13px; font-weight: 800; color: var(--muted); display: grid; gap: 5px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.m-actions.center { justify-content: center; }
.m-actions.left { justify-content: flex-start; }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--ink); color: var(--card); padding: 11px 18px; border-radius: 99px; font-weight: 800; opacity: 0; transition: all .4s cubic-bezier(.2,.9,.3,1.2); z-index: 70; pointer-events: none; white-space: nowrap; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.share-prev { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
.sh-box { aspect-ratio: 4/5; display: grid; place-items: center; background: var(--bg); border-radius: 18px; overflow: hidden; }
.sh-box img, .sh-box video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tog { display: flex; gap: 8px; align-items: center; font-weight: 700; margin-top: 10px; }
.progress { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); }

#onboard { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: grid; place-items: center; animation: fade .4s; overflow: auto; padding: 20px; transition: opacity .5s, transform .5s; }
#onboard.out { opacity: 0; transform: scale(1.03); }
.ob { width: min(1000px, 100%); text-align: center; }
.ob h1 { font: 700 52px/1.05 Caveat, cursive; }
.ob p { color: var(--muted); font-weight: 650; font-size: 17px; margin: 10px auto 24px; max-width: 620px; }
.ob .soon { font-size: 14px; margin: 14px 0 0; }
.ob-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pick { border: 2.5px solid transparent; background: var(--card); border-radius: 22px; padding: 6px 6px 12px; text-align: center; font-weight: 800; font-size: 15px; transition: transform .25s, border-color .25s; box-shadow: 0 8px 22px rgba(var(--shadow), .07); }
.pick:hover { transform: translateY(-3px); }
.pick.on { border-color: var(--accent); }
.pick canvas { width: 100%; aspect-ratio: 22/17; display: block; }
.ob-form { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.ob-form .inp { flex: 0 1 230px; background: var(--card); }

/* ===== новое: гайд, напоминания, карточка клиента, настройки ===== */
.gear { border: 0; cursor: pointer; padding: 8px 10px; }
.gear svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; transition: transform .5s; }
.gear:hover svg { transform: rotate(60deg); stroke: var(--ink); }
.guide { margin-bottom: 22px; background: linear-gradient(120deg, var(--card), var(--soft)); }
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.step { display: flex; align-items: center; gap: 9px; border: 0; background: var(--card); padding: 9px 14px 9px 9px; border-radius: 14px; font-weight: 700; font-size: 14px; text-align: left; box-shadow: 0 3px 10px rgba(var(--shadow), .06); transition: transform .2s; }
.step:hover { transform: translateY(-2px); }
.step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--accent); font-weight: 900; flex: none; }
.step.ok { opacity: .55; cursor: default; }
.step.ok .n { background: var(--good); color: #fff; }
.x.show { opacity: .7; }
.sub-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; margin: 16px 0 8px; }
.appt.mini { padding: 7px 10px; }
.appt .ava { width: 36px; height: 36px; }
.who[data-open-client] { cursor: pointer; }
.empty-big { text-align: center; padding: 26px 10px; color: var(--muted); font-weight: 650; }
.hint-line { margin: 12px 0 0; }
.focus-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.mbox.wide2 { width: min(620px, 100%); }
.kpis.three-s { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi.s { min-height: 0; padding: 12px 14px; background: var(--bg); box-shadow: none; }
.kpi.s::after { display: none; }
.kpi .v.sm { font-size: 26px; }
.hist { background: var(--bg); border-radius: 16px; padding: 4px 14px 10px; }
.hist-row { display: grid; grid-template-columns: 90px 1fr auto 50px; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-weight: 650; font-size: 14px; }
.hist-row:last-child { border: 0; }
.hist-row .ok { color: var(--good); font-weight: 900; text-align: right; }
.hist-row .muted { text-align: right; }
.btn.danger { color: #b5574a; }
.grow { flex: 1; }
.area { width: 100%; resize: vertical; min-height: 64px; line-height: 1.4; font-family: inherit; }
.sec { font-weight: 900; margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--line); }
.sec:first-of-type { border: 0; margin-top: 0; padding-top: 0; }
.svc-edit { display: grid; grid-template-columns: minmax(0, 1fr) 84px 104px 108px 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.svc-edit .inp, .svc-edit .sel { min-width: 0; width: 100%; }
.svc-edit .sel { padding: 10px 8px; }
.num-in { text-align: right; }
input[type=range] { accent-color: var(--accent); width: 100%; }
.daytabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.daytabs button { border: 0; background: var(--bg); border-radius: 12px; padding: 6px 0; font-weight: 900; }
.daytabs small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.daytabs .on { background: var(--accent); color: #fff; }
.daytabs .on small { color: #fff; }
.daytabs .is-today:not(.on) { box-shadow: inset 0 0 0 2px var(--accent); }
.coat-prev { width: 100%; height: 100%; object-fit: contain; }

/* онбординг */
.ob-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.ob-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: all .3s; }
.ob-dots i.on { width: 28px; border-radius: 9px; background: var(--accent); }
.ob-dots i.done { background: var(--accent2); }
.ob-q { margin: 18px auto 0; max-width: 720px; text-align: left; }
.ob-q.narrow { max-width: 360px; }
.ob-q label { display: block; font-weight: 900; font-size: 17px; margin-bottom: 9px; }
.inp.big { width: 100%; padding: 14px 18px; font-size: 18px; background: var(--card); border-radius: 16px; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ochip { border: 2px solid var(--line); background: var(--card); padding: 10px 16px; border-radius: 99px; font-weight: 800; font-size: 15px; transition: all .2s; }
.ochip.on { border-color: var(--accent); background: var(--soft); }
.ob-nav { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.ob-start { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.start-card { border: 2px solid var(--line); background: var(--card); border-radius: 24px; padding: 24px; text-align: left; display: grid; gap: 8px; transition: transform .2s, border-color .2s; box-shadow: 0 10px 26px rgba(var(--shadow), .07); }
.start-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.start-card b { font-size: 20px; }
.start-card span { color: var(--muted); font-weight: 650; line-height: 1.4; }
.shake { animation: shake .45s; border-color: #d97a6a !important; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* режим «просто для себя»: без клиентов, расписания и денег */
body.personal .nav [data-view=clients], body.personal .nav [data-view=schedule], body.personal .nav [data-view=stats] { display: none; }

.snd svg { stroke-linecap: round; stroke-linejoin: round; }
.snd:hover svg { transform: none; }
.snd .m { display: none; } .snd.off .m { display: inline; } .snd.off .w { display: none; }
.p-pink { color: #f29bb5; font-size: 11px !important; }
.task .txt .tag { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 800; color: var(--accent); background: var(--soft); border-radius: 99px; padding: 1px 8px; vertical-align: 1px; }
.x.rep { font-size: 16px; } .x.rep.on { opacity: 1; color: var(--accent); }
.amb { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.fchip.sm { padding: 6px 11px; font-size: 13px; }
.wk7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 110px; align-items: end; }
.wk7c { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.wk7c i { width: 100%; max-width: 30px; background: var(--accent2); border-radius: 8px 8px 4px 4px; display: block; }
.wk7c small { font-size: 11px; color: var(--muted); font-weight: 800; }

/* тариф */
.planbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--soft); margin-bottom: 18px; font-weight: 650; font-size: 14.5px; }
.planbar.warn { background: color-mix(in srgb, var(--accent2) 35%, var(--card)); }
.planbar.off { background: color-mix(in srgb, #8c7fb0 22%, var(--card)); }
.card.online { margin-bottom: 22px; box-shadow: 0 0 0 2.5px var(--accent2), 0 10px 30px rgba(var(--shadow), .07); }
.mbox.pro { text-align: center; width: min(480px, 100%); }
.pro-cat { display: flex; justify-content: center; margin: -6px 0 -4px; }
.pro-cat canvas { width: 260px; height: auto; }
.perks { list-style: none; padding: 0; margin: 10px 0 16px; text-align: left; display: grid; gap: 8px; }
.perks li { padding-left: 26px; position: relative; font-weight: 600; line-height: 1.35; }
.perks li::before { content: '🐾'; position: absolute; left: 0; top: 0; font-size: 14px; }
.tabs.per { margin: 4px auto 10px; }
.tabs.per small { font-size: 11px; opacity: .85; }
.pro-price { font: 700 34px/1.1 Caveat, cursive; margin-bottom: 12px; }
.btn.wide { width: 100%; }
.reason { background: var(--soft); border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 14px; text-align: left; }
.center { text-align: center; }
.linkbox { display: flex; gap: 8px; margin: 10px 0; }
.linkbox .inp { font-size: 13px; }
.ochip.sm { padding: 7px 12px; font-size: 14px; cursor: pointer; }
.plan-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
/* каналы отправки сообщения */
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-top: 8px; }
.chan { border: 0; background: var(--bg); border-radius: 16px; padding: 12px 10px; display: grid; justify-items: center; gap: 3px; text-align: center; transition: transform .2s, background .2s; }
.chan:hover { transform: translateY(-2px); background: var(--soft); }
.chan svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chan b { font-size: 14px; }
.chan small { font-size: 11.5px; color: var(--muted); font-weight: 650; }

/* настройки: меню разделов */
.mbox.set { width: min(560px, 100%); }
.mbox.set.fwd { animation: stepIn .3s cubic-bezier(.2,.8,.2,1); }
.mbox.set.back { animation: stepBack .3s cubic-bezier(.2,.8,.2,1); }
@keyframes stepIn { from { opacity: 0; transform: translateX(22px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-22px); } }
.set-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.set-h h2 { margin: 0; flex: 1; font-size: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .set-h h2 { font-size: 25px; } .mbox.set { padding: 16px; } }
.set-back { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); font-size: 18px; font-weight: 900; flex: none; }
.set-list { display: grid; gap: 6px; }
.set-row { display: flex; align-items: center; gap: 14px; border: 0; background: var(--bg); border-radius: 18px; padding: 13px 16px; text-align: left; transition: transform .15s, background .2s; }
.set-row:hover { background: var(--soft); transform: translateX(2px); }
.set-row .ic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.set-row .tx { flex: 1; min-width: 0; }
.set-row .tx b { display: block; font-size: 15.5px; }
.set-row .tx small { display: block; color: var(--muted); font-weight: 650; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row .ar { font-size: 22px; color: var(--muted); }
.saved { font-size: 12.5px; font-weight: 800; color: var(--good); opacity: 0; }
.saved.on { animation: savedFlash 1.6s ease forwards; }
@keyframes savedFlash { 10%, 70% { opacity: 1; } 100% { opacity: 0; } }
.grp { background: var(--bg); border-radius: 18px; padding: 12px 14px 14px; display: grid; gap: 10px; }
.grp h4 { margin: 0; font-size: 14.5px; font-weight: 900; }
.grp.more summary { cursor: pointer; font-weight: 900; font-size: 14.5px; list-style: none; }
.grp.more summary::-webkit-details-marker { display: none; }
.grp.more[open] summary { margin-bottom: 4px; }
.tog.big { font-size: 15px; }
code { background: var(--soft); border-radius: 6px; padding: 1px 5px; font-size: 12.5px; }

/* строки таблицы повыше — коту есть где лечь */
.tbl td { height: 74px; }

/* ===== планшет ===== */
@media (max-width: 1150px) {
  .g-today, .focus-wrap, .g-corner { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .g-today .habits { order: 2; }
  .g-today [data-pid="card-later"] { order: 3; }
  .kpis.four { grid-template-columns: repeat(2, 1fr); }
  .hide-m { display: none; }
}

/* ===== телефон: меню снизу, комнатка — во вкладке «Питомец» ===== */
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .side { order: 2; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1.5px dashed var(--line); background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(8px); z-index: 45; }
  .brand, .home { display: none; }
  .nav { flex-direction: row; justify-content: space-around; gap: 0; }
  .nav button { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 11px; border-radius: 12px; flex: 1; align-items: center; }
  .nav button:hover { transform: none; }
  .nav button.on { box-shadow: none; background: var(--soft); }
  .main { padding: 16px 14px 120px; }
  .top h1 { font-size: 32px; }
  .top p { font-size: 14px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpis > :first-child:nth-last-child(3) { grid-column: span 2; }
  .kpis.four { grid-template-columns: 1fr 1fr; }
  .kpi { min-height: 100px; padding: 13px 14px; }
  .kpi .v { font-size: 32px; }
  .card { padding: 16px; border-radius: 20px; }
  .g-today { gap: 14px; margin-top: 14px; }
  .hide-m { display: none; }
  .search { min-width: 0; width: 100%; }
  .toolbar { width: 100%; }
  .toolbar .inp { flex: 1; }
  .tbl td { padding: 10px 8px; height: 60px; }
  .tbl th { padding: 6px 8px; }
  .ava { width: 32px; height: 32px; }
  .pill { font-size: 12px; padding: 4px 9px; }
  .tbl th:last-child, .tbl td:last-child { display: none; }
  .tbl tr td:nth-last-child(2) { border-radius: 0 16px 16px 0; }
  .tbl .money { font-size: 19px; }
  .focus-mini { flex-direction: column; align-items: flex-start; }
  .share-prev { grid-template-columns: 1fr; }
  .sh-box { max-width: 300px; margin: 0 auto; width: 100%; }
  .ob h1 { font-size: 38px; }
  .ob-pick { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .ob-pick .pick:nth-child(4) { grid-column: 1 / span 1; }
  .x { opacity: .6; }
  #toast { bottom: 90px; }
  .form .row2 { grid-template-columns: 1fr; }
  .ob-start { grid-template-columns: 1fr; }
  .svc-edit { grid-template-columns: minmax(0, 1fr) 58px 78px 26px; gap: 5px; }
  .svc-edit [data-n] { grid-column: 1 / 3; }
  .svc-edit [data-a] { grid-column: 3 / 4; grid-row: 1; }
  .svc-edit [data-svc-del] { grid-row: 1; grid-column: 4; }
  .svc-edit { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
  .hb-row { grid-template-columns: repeat(7, minmax(0, 1fr)) 22px !important; }
  .hb-row .hb-n { grid-column: 1 / -1; }
  .hb-head > span:first-child { display: none; }
  .svc-edit .inp { padding: 9px 8px; font-size: 14px; }
  .svc-edit .sel { padding: 9px 4px; font-size: 13px; }
  .kpis.three-s { grid-template-columns: 1fr 1fr 1fr; }
  .kpis.three-s > :first-child:nth-last-child(3) { grid-column: auto; }
  .hist-row { grid-template-columns: 70px 1fr auto 30px; font-size: 13px; }
  .tbl td { height: 66px; }
  .gear { padding: 8px; }
  /* окно Pro целиком в один экран телефона */
  .mbox.pro { padding: 14px 18px 16px; max-height: none; }
  .pro-cat canvas { width: 150px; }
  .mbox.pro h2 { font-size: 28px; margin: 0 0 6px; }
  .perks { gap: 4px; margin: 6px 0 10px; }
  .perks li { font-size: 13.5px; line-height: 1.3; padding-left: 22px; }
  .perks li .ex { display: none; }
  .tabs.per { margin: 2px auto 6px; }
  .pro-price { font-size: 25px; margin-bottom: 8px; white-space: nowrap; }
  .mbox.pro .muted.small { font-size: 11.5px; margin: 6px 0 0; }
  .mbox.pro .big-btn { padding: 12px; }
}

/* ---------- дела ко времени, «закрыть день», экскурсия ---------- */
.task .txt .tag.time { margin: 0 8px 0 0; background: var(--accent); color: #fff; }
.task.done .txt .tag.time { opacity: .5; }
.hint { margin: 8px 2px 0; line-height: 1.45; }
.dayclose h2 { margin: 0 44px 6px 0; }
.dayclose .sum { font-size: 16.5px; font-weight: 700; margin: 0 0 8px; }
.dayclose .done-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 3px; color: var(--muted); font-weight: 650; font-size: 14px; }
.dayclose .grp { margin-bottom: 10px; grid-template-columns: minmax(0, 1fr); }
.left-row { min-width: 0; } .left-row .btn { flex: none; white-space: nowrap; }
.left-row { display: flex; align-items: center; gap: 8px; }
.left-row span { flex: 1; min-width: 0; font-weight: 650; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moods { display: flex; justify-content: space-between; gap: 6px; }
.moods button { flex: 1; border: 0; background: var(--card); border-radius: 16px; font-size: 26px; padding: 8px 0; filter: grayscale(.35); opacity: .7; transition: transform .2s, filter .2s, opacity .2s; }
.moods button:hover { transform: translateY(-2px); opacity: 1; }
.moods button.on { filter: none; opacity: 1; transform: scale(1.12); box-shadow: 0 6px 16px rgba(var(--shadow), .12); }
.week-moods { display: flex; justify-content: center; gap: 8px; font-size: 16px; color: var(--muted); min-height: 22px; }
.mbox.tour { text-align: center; width: min(400px, 100%); }
.tour-ic { width: 76px; height: 76px; margin: 4px auto 10px; border-radius: 26px; background: var(--soft); color: var(--accent); display: grid; place-items: center; }
.tour-ic svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tour-ic .em { font-size: 36px; }
.mbox.tour h2 { margin: 0 0 8px; }
.mbox.tour p { margin: 0 0 14px; font-weight: 650; line-height: 1.5; color: var(--ink); min-height: 4.5em; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: all .25s; }
.tour-dots i.on { width: 20px; border-radius: 99px; background: var(--accent); }
.mbox.tour .m-actions { display: flex; justify-content: space-between; }

/* ===== привычки: недельная сетка ===== */

.hb { display: grid; gap: 8px; margin-bottom: 12px; }
.hb-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(7, 34px) 22px; gap: 6px; align-items: center; }
.hb-head small { text-align: center; color: var(--muted); font-weight: 800; font-size: 12px; }
.hb-head small.now { color: var(--accent); }
.hb-n { font-weight: 750; display: flex; align-items: center; gap: 6px; min-width: 0; }
.hb-n .x { opacity: 0; transition: opacity .2s; }
.hb-row:hover .hb-n .x, .hb-n .x.show { opacity: 1; }
.hb-n .x.show { width: auto; padding: 0 8px; font-size: 12px; }
.hb-d { justify-self: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); padding: 0; display: grid; place-items: center; transition: transform .15s, background .2s, border-color .2s; }
.hb-d svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.hb-d.now { border-color: var(--accent); }
.hb-d.on { background: var(--good); border-color: var(--good); }
.hb-d.on svg { opacity: 1; }
.hb-d:not(:disabled):active { transform: scale(.88); }
.hb-d:disabled { opacity: .35; border-style: dashed; }
.hb-c { text-align: right; color: var(--muted); font-weight: 800; }
@media (hover: none) { .hb-n .x { opacity: .55; } }
/* ===== запись: прошлый визит ===== */
.last-visit { margin: -4px 0 4px; padding: 9px 12px; border-radius: 12px; background: var(--soft); font-size: 13.5px; line-height: 1.45; font-weight: 650; }
/* ===== знакомство: выбор режима и заготовки ===== */
.start-card.pickable.on { border-color: var(--accent); background: var(--soft); }
.ob-q.wide { max-width: 760px; }
.ob-q.wide .ob-start { margin-top: 8px; }
.ob-start.shake { animation: shake .4s; }

/* ===== карточка клиента: история ===== */
.hist-list { max-height: 190px; overflow: auto; padding-right: 4px; }
.hist-row i { font-style: normal; font-size: 12.5px; }
/* ===== отзывы ===== */
.stars { color: #e3a93c; letter-spacing: 1px; font-size: 16px; }
.stars i { font-style: normal; color: var(--line); }
.rev { background: var(--bg); border-radius: 16px; padding: 12px 14px; margin-top: 10px; }
.rev-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rev p { margin: 6px 0 10px; line-height: 1.45; font-weight: 650; }
.rev-a { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ===== можно нажать — курсор-рука ===== */
button, .btn, summary, .tbl tbody tr, [data-open-client], .blk, .daycol, label.tog, .ochip { cursor: pointer; }
button:disabled { cursor: default; }
/* ===== знак вопроса с объяснением ===== */
.q { width: 19px; height: 19px; border-radius: 50%; border: 0; background: var(--soft); color: var(--accent); font-weight: 900; font-size: 12px; line-height: 19px; padding: 0; vertical-align: middle; margin-left: 4px; }
.q:hover { background: var(--accent); color: #fff; }
.q-text { margin: 2px 0 6px; padding: 9px 12px; border-radius: 12px; background: var(--soft); font-size: 13.5px; line-height: 1.45; font-weight: 650; color: var(--ink); }
/* ===== окно с видом в фокусе ===== */
.scene { width: min(340px, 100%); aspect-ratio: 8 / 3; border-radius: 16px; overflow: hidden; border: 5px solid var(--card); box-shadow: 0 0 0 2px var(--line), 0 8px 20px rgba(var(--shadow), .1); margin-bottom: 20px; animation: viewIn .5s; }
.scene svg { width: 100%; height: 100%; display: block; }
.sc-bars { stroke: var(--card); stroke-width: 4; fill: none; }
.sc-rain.far { animation: scRain 1.1s linear infinite; }
.sc-rain.near { animation: scRain .75s linear infinite; }
@keyframes scRain { to { transform: translateY(120px); } }
.sc-drop { opacity: 0; animation: scDrop 6s ease-in infinite; }
@keyframes scDrop { 0% { opacity: 0; transform: translateY(0); } 8% { opacity: .85; } 70% { opacity: .7; transform: translateY(3px); } 100% { opacity: 0; transform: translateY(26px); } }
.sc-wave.w1 { animation: scWave 14s linear infinite; }
.sc-wave.w2 { animation: scWave 9s linear infinite reverse; }
.sc-wave.w3 { animation: scWave 6.5s linear infinite; }
@keyframes scWave { to { transform: translateX(80px); } }
.sc-swash { animation: scSwash 7s ease-in-out infinite; }
@keyframes scSwash { 0%, 100% { transform: translateY(7px); } 45% { transform: translateY(-5px); } }
.sc-flow { stroke-dasharray: 7 13; animation: scFlow 1.3s linear infinite; }
@keyframes scFlow { to { stroke-dashoffset: -20; } }
.sc-ray { animation: scRay 9s ease-in-out infinite; }
@keyframes scRay { 50% { opacity: .28; } }
@media (prefers-reduced-motion: reduce) { .scene * { animation: none !important; } .sc-drop { opacity: .7; } }

/* ===== копилка и летящие монетки ===== */
.chip.coin { cursor: pointer; transition: transform .15s; }
.chip.coin:hover { transform: translateY(-1px); }
.fly-coin { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a6, #f2c45c 55%, #dba63a); border: 2px solid #d29a35; box-shadow: 0 2px 6px rgba(120, 80, 20, .25); will-change: transform; }
/* ===== фокус: ползунок времени ===== */
.dur { display: flex; align-items: center; gap: 10px; width: min(340px, 100%); margin-top: 18px; }
.dur.off { opacity: .45; pointer-events: none; }
.dur-b { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); font-size: 22px; font-weight: 800; line-height: 1; transition: transform .12s, background .2s; }
.dur-b:hover { background: var(--soft); }
.dur-b:active { transform: scale(.88); }
.dur input[type=range] { flex: 1; min-width: 0; -webkit-appearance: none; appearance: none; height: 12px; border-radius: 99px; outline: none; cursor: grab;
  background: linear-gradient(90deg, var(--accent2), var(--accent) var(--p, 20%), var(--bg) var(--p, 20%)); }
.dur input[type=range]:active { cursor: grabbing; }
.dur input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--card); border: 4px solid var(--accent); box-shadow: 0 4px 10px rgba(var(--shadow), .22); transition: transform .12s; }
.dur input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.dur input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 4px solid var(--accent); box-shadow: 0 4px 10px rgba(var(--shadow), .22); }
.dur + .presets { margin-top: 12px; }

.btn.danger:not(.ghost) { background: #c9584c; }

/* ===== выбор языка ===== */
.lang-sel { border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 7px 10px; font: 800 14px Nunito, sans-serif; cursor: pointer; }
.lang-sel.mini { padding: 4px 8px; font-size: 12.5px; border-width: 1.5px; }
.lang-sel.sel { width: 100%; padding: 11px 12px; }
.ob-lang { position: absolute; top: 14px; right: 16px; }
#onboard { position: fixed; }

/* ===== выбор языка: своя кнопка и список ===== */
.lang-dd { position: relative; display: inline-block; }
.lang-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 12px; padding: 7px 12px; font: 800 14px Nunito, sans-serif; cursor: pointer; white-space: nowrap; transition: border-color .2s; }
.lang-btn:hover { border-color: var(--accent); }
.lang-btn svg { width: 11px; height: 8px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 90; min-width: 160px; background: var(--card); border-radius: 16px; padding: 6px; box-shadow: 0 16px 40px rgba(var(--shadow), .22); display: grid; gap: 2px; animation: viewIn .2s; }
.lang-menu.up { top: auto; bottom: calc(100% + 6px); }
.lang-menu button { border: 0; background: none; text-align: left; padding: 9px 12px; border-radius: 10px; font: 750 14.5px Nunito, sans-serif; color: var(--ink); cursor: pointer; }
.lang-menu button:hover { background: var(--bg); }
.lang-menu button.on { background: var(--soft); color: var(--accent); }
.lang-dd.mini .lang-btn { padding: 4px 9px; font-size: 12.5px; border-width: 1.5px; }
.lang-dd.sel { display: block; }
.lang-dd.sel .lang-btn { width: 100%; justify-content: space-between; padding: 11px 14px; font-size: 15px; }
.lang-dd.sel .lang-menu { left: 0; right: 0; }

/* ===== кот тронул лапкой ===== */
.batted { animation: batted .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes batted { 30% { transform: translate(2px, 2px) rotate(2.5deg); } 65% { transform: translate(-1px, 0) rotate(-1.5deg); } }
span.batted, small.batted, b.batted { display: inline-block; }

/* ===== перерыв / выходной в расписании ===== */
.blk.off { background: repeating-linear-gradient(135deg, var(--soft), var(--soft) 8px, var(--bg) 8px, var(--bg) 16px) !important; color: var(--muted); border: 1.5px dashed var(--line); }
.blk.off b { font-weight: 800; }

.blk.brk { z-index: 0; padding: 0 6px; display: flex; align-items: center; font-size: 12px; opacity: .85; }

.blk.brk { cursor: pointer; }
.blk.brk.skip { opacity: .45; background: none !important; }
h2 .q { margin-left: 8px; }
