/*
 * ДаДаОн — вёрстка. Язык тот же, что у СВССА4Т: спокойный серый фон, белые карточки с мягкой тенью,
 * системный шрифт, цветной край карточки по оттенку (--h) списка.
 * Шкурка (skins/ИМЯ/skin.css или «своя») меняет только переменные ниже — вёрстку не трогает.
 */

/* ───────────── токены ───────────── */
:root {
    --bg: #eceff3;
    --panel: #ffffff;
    --panel-2: #f6f7f9;
    --ink: #1c2028;
    --ink-2: #3c4350;
    --muted: #7b8392;
    --line: #d5dae2;
    --accent: #3b6fd8;
    --accent-ink: #ffffff;
    --ok: #2f9e55;
    --danger: #c9433a;
    --shadow: 0 1px 2px rgb(20 30 50 / .06), 0 2px 8px rgb(20 30 50 / .04);
    --radius: 12px;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    /* оттенок списка: светлая подложка и насыщенный край */
    --tint-l: 96%; --edge-l: 52%; --chip-bg-l: 93%; --chip-fg-l: 32%;
    color-scheme: light;
}

/* ───────────── база ───────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--bg); color: var(--ink);
    font: 15px/1.55 var(--sans);
}
a { color: var(--accent); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.ttl { margin: 0; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
h1.ttl { font-size: 24px; margin-bottom: 6px; }
h2.ttl { font-size: 17px; }
h3.ttl { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--danger); margin: 2px 0; font-size: 14px; }
.ok { color: var(--ok); }

/* ───────────── шапка, подвал ───────────── */
.topbar {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--panel) 86%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.logo {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--ink); text-decoration: none;
    font-weight: 700; font-size: 17px; letter-spacing: -.02em;
}
.logo__mark { position: relative; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--accent); }
.logo__mark::after {
    content: ''; position: absolute; inset: 3px; background: var(--accent-ink);
    -webkit-mask: url("mark.svg") center / contain no-repeat;
            mask: url("mark.svg") center / contain no-repeat;
}
.avatar {
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    border: 0; background: var(--accent); color: var(--accent-ink);
    font-weight: 650; font-size: 15px;
}
.menu {
    position: absolute; right: 16px; top: 52px; min-width: 250px; padding: 6px;
    background: var(--panel); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 32px rgb(20 30 50 / .14);
}
.menu__who { padding: 8px 10px 10px; font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu__who small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.menu button:hover { background: var(--panel-2); }
.menu form { margin: 0; }

.foot {
    margin-top: auto; text-align: center;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}
.foot__brand { font-weight: 600; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* контакты */
.socials { list-style: none; margin: 8px 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ───────────── кнопки ───────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 34px; padding: 6px 14px;
    border: 1px solid var(--line); border-radius: 8px;
    background: var(--panel); color: var(--ink);
    font-weight: 500; font-size: 14px; text-decoration: none; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--muted); }
.btn--main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--main:hover { background: color-mix(in srgb, var(--accent) 88%, black); border-color: transparent; }
.btn--quiet { background: transparent; }
.btn.btn--danger { background: transparent; border-color: transparent; color: var(--danger); }
.btn.btn--danger:hover { background: color-mix(in srgb, var(--danger) 8%, transparent); }
.btn--small { min-height: 28px; padding: 3px 10px; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Главное действие сервиса — заметное, но в общем ключе. */
.dadaon {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 34px; padding: 6px 16px;
    border: 0; border-radius: 999px;
    background: var(--accent); color: var(--accent-ink);
    font-weight: 700; font-size: 13px; letter-spacing: .04em;
    text-decoration: none; white-space: nowrap; cursor: pointer;
    box-shadow: 0 1px 2px rgb(20 30 50 / .12), 0 4px 12px color-mix(in srgb, var(--accent) 28%, transparent);
    transition: transform .12s, box-shadow .12s, background .15s;
}
.dadaon:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgb(20 30 50 / .12), 0 8px 18px color-mix(in srgb, var(--accent) 34%, transparent); }
.dadaon:active, .dadaon--pressed { transform: scale(.96); box-shadow: none; }
.dadaon--big { min-height: 48px; padding: 10px 26px; font-size: 16px; margin: 14px 0 18px; width: 100%; }

/* ───────────── доска ───────────── */
.board {
    width: 100%; max-width: 1320px; margin: 0 auto; padding: 20px;
    /* приоритеты: мои желания — шире всех, списки — средне, друзья — узкой колонкой */
    display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.15fr) 272px;
    gap: 18px; align-items: start;
}
.loading { grid-column: 1 / -1; color: var(--muted); }
.col {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 16px 18px; min-width: 0;
}
.col--lists { background: transparent; border: 0; box-shadow: none; padding: 0; }
.col--lists > .col__head { padding: 16px 4px 0; }
.col__head { margin-bottom: 12px; }
.col__hint { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.col__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.col__sub { margin: 22px 0 6px; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 2px; }
.empty--page { grid-column: 1 / -1; text-align: center; padding: 60px 16px; }

.wishes, .friends, .gifts, .mini, .items { list-style: none; margin: 0; padding: 0; }

/* желания */
.wish {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer;
    transition: background .12s;
}
.wish:hover { background: var(--panel-2); }
.wish__main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.wish__title { font-weight: 500; overflow-wrap: anywhere; }
.wish__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; }
.price { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price:empty { display: none; }
.wish__link { font-size: 13px; }

/* короткий список — крупные карточки с большим фото */
.wishes--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 12px; }
.wishes--cards .wish {
    flex-direction: column; gap: 8px; margin: 0; padding: 8px 8px 10px;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.wishes--cards .wish:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--panel); }
.wishes--cards .thumb--card { width: 100%; height: auto; aspect-ratio: 1; border-radius: 9px; font-size: 34px; }
.wishes--cards .wish__title { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.chip {
    --h: 220;
    font-size: 12px; font-weight: 500; padding: 1px 9px; border-radius: 999px;
    background: hsl(var(--h) 65% var(--chip-bg-l)); color: hsl(var(--h) 55% var(--chip-fg-l));
}

.thumb {
    flex: none; width: 46px; height: 46px; border-radius: 9px; overflow: hidden;
    background: var(--panel-2); border: 1px solid var(--line);
    display: grid; place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb--letter {
    background: hsl(var(--h, 220) 60% var(--chip-bg-l)); color: hsl(var(--h, 220) 50% var(--chip-fg-l));
    border-color: transparent; font-weight: 650; font-size: 17px;
}
.thumb--s { width: 30px; height: 30px; border-radius: 7px; font-size: 13px; }
.thumb--l { width: 64px; height: 64px; border-radius: 11px; font-size: 22px; }

/* списки — как карточки СВССА4Т: подложка оттенка и цветной край */
.listcard {
    --h: 220;
    position: relative; margin-bottom: 12px; padding: 13px 16px 14px;
    background: linear-gradient(100deg, hsl(var(--h) 60% var(--tint-l)) 0%, var(--panel) 55%);
    border: 1px solid var(--line); border-left: 4px solid hsl(var(--h) 55% var(--edge-l));
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.listcard__head { cursor: pointer; }
.listcard__meta { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.listcard__reveal { font-size: 13px; color: var(--ok); margin: 6px 0 0; }
.listcard__empty { margin: 10px 0 0; }
.listcard__foot { display: flex; gap: 8px; margin-top: 12px; }
.mini { margin-top: 10px; }
.mini li { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; }
.mini__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__p { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* друзья */
.friend { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; cursor: pointer; }
.friend:hover { background: var(--panel-2); }
.friend__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.friend__name, .friend__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.friend__name { font-weight: 500; }
.friend__meta { font-size: 12.5px; color: var(--muted); }
.friend__meta b { font-weight: 500; color: var(--accent); }
.ava {
    flex: none; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 650; font-size: 14px;
    background: hsl(var(--h) 60% var(--chip-bg-l)); color: hsl(var(--h) 50% var(--chip-fg-l));
}
.badge {
    font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.badge--zero { background: var(--panel-2); color: var(--muted); }

.gift { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.gift:first-child { border-top: 0; }
.gift__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gift__t { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.gift__m { color: var(--muted); font-size: 12.5px; }
.gift__acts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.gift--done .gift__t { color: var(--muted); text-decoration: line-through; }
.gift--gone .gift__t { color: var(--muted); }

.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

/* ───────────── окно ───────────── */
.sheet {
    width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 48px);
    padding: 0; border: 0; border-radius: 14px; overflow: hidden;
    background: var(--panel); color: var(--ink);
    box-shadow: 0 20px 60px rgb(0 0 0 / .25);
}
.sheet--wide { width: min(760px, calc(100vw - 24px)); }
.sheet::backdrop { background: rgb(15 20 30 / .45); backdrop-filter: blur(2px); }
.sheet__body { position: relative; padding: 20px 22px 24px; max-height: calc(100dvh - 48px); overflow: auto; }
.sheet__body:focus { outline: none; }
.sheet__x {
    position: sticky; top: 0; float: right; z-index: 2;
    width: 32px; height: 32px; margin: -6px -8px 0 8px;
    border: 0; border-radius: 8px; background: var(--panel-2); color: var(--muted);
    font-size: 20px; line-height: 1; cursor: pointer;
}
.sheet__x:hover { color: var(--ink); }

.form { display: flex; flex-direction: column; gap: 14px; }
.form + .form, .form + p { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.form__acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 5px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend, .field--row label > span { font-size: 13px; color: var(--muted); padding: 0; }
.field legend { margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field textarea, .field select, .copyrow input {
    width: 100%; padding: 8px 11px;
    border: 1px solid var(--line); border-radius: 8px;
    background: var(--panel-2); color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus, .copyrow input:focus { border-color: var(--accent); background: var(--panel); }
.field textarea { resize: vertical; }
.field__hint { color: var(--muted); font-size: 12.5px; }
.field--row { flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field--row label { display: flex; flex-direction: column; gap: 5px; flex: 1 1 120px; }
.field__cur { padding-bottom: 9px; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks--col { flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; padding: 2px; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; min-width: 0; font: 13px var(--mono); }
.danger-zone { margin-top: 18px; color: var(--muted); font-size: 14px; }
.danger-zone summary { cursor: pointer; }
.danger-zone p { margin: 8px 0; }
.qr { width: 220px; max-width: 70%; margin: 0 auto; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: auto; }
.bm { cursor: grab; }

/* шкурки */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12.5px; cursor: pointer; text-align: center; color: var(--ink-2); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile__sw {
    position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
    border-radius: 10px; background: var(--bg); border: 1px solid var(--line);
    color: var(--ink);
}
/* мини-интерфейс шкурки: белая карточка и кнопка-акцент */
.tile__sw b { position: absolute; left: 14%; right: 14%; top: 18%; height: 40%; border-radius: 6px; background: var(--panel); box-shadow: var(--shadow); }
.tile__sw i { position: absolute; left: 14%; width: 44%; bottom: 14%; height: 18%; border-radius: 999px; background: var(--accent); }
.tile__sw--own { background: conic-gradient(from 200deg, #3b6fd8, #0e8a8a, #2f9e55, #c47f00, #e5574b, #d6336c, #7c4dda, #3b6fd8); }
.tile__sw--own b, .tile__sw--own i { display: none; }
.tile input:checked + .tile__sw { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tile input:focus-visible + .tile__sw { outline: 2px solid var(--accent); outline-offset: 3px; }

.own { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; padding: 12px; background: var(--panel-2); border-radius: 10px; }
.own__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dot { position: relative; cursor: pointer; }
.dot input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.dot span { display: block; width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.dot input:checked + span { box-shadow: 0 0 0 2px var(--panel-2), 0 0 0 4px var(--c); }
.dot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.dot--any { display: inline-flex; align-items: center; }
.dot--any input[type=color] { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.dot--any input[type=color]::-webkit-color-swatch-wrapper { padding: 2px; }
.dot--any input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.dot--any:has(input[type=radio]:checked) input[type=color] { box-shadow: 0 0 0 2px var(--accent); border-radius: 50%; }
.seg { display: inline-flex; align-self: flex-start; padding: 3px; gap: 3px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 4px 14px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ───────────── список у друга / по ссылке ───────────── */
.friendhead { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.friendhead .ava { width: 40px; height: 40px; font-size: 16px; }
.friendhead .ttl { font-size: 20px; }
.giftlist {
    --h: 220;
    position: relative; overflow: hidden; margin-bottom: 14px; padding: 14px 16px 6px;
    background: var(--panel); color: var(--ink);
    border: 1px solid var(--line); border-top: 4px solid hsl(var(--h) 55% var(--edge-l));
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.giftlist__head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.giftlist__head .ttl { font-size: 17px; }
.giftlist__date { color: var(--muted); font-size: 13px; }
.giftlist__owner { position: relative; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.item { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.item__main { flex: 1; min-width: 0; }
.item__title { font-weight: 600; overflow-wrap: anywhere; }
.item__meta { color: var(--muted); font-size: 13px; }
.item__meta { font-variant-numeric: tabular-nums; }
.item__note {
    margin-top: 6px; padding: 5px 10px; font-size: 13px;
    background: var(--panel-2); border-radius: 8px; color: var(--ink-2);
}
.item__shop { font-size: 13px; }
.item__price { flex: none; min-width: 84px; text-align: right; font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item__price .muted { font-weight: 400; font-size: 13px; }
.item__act { flex: none; min-width: 112px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sortbar { position: relative; display: inline-flex; gap: 2px; padding: 2px; margin: 2px 0 8px; border-radius: 8px; background: var(--panel-2); }
.sortbar button { border: 0; background: none; padding: 3px 10px; border-radius: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.sortbar button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }

/* перенос из корзины */
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps .bm { margin-left: 6px; }
.imp__bar { margin-bottom: -6px; }
.imp { list-style: none; margin: 0; padding: 0; max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.imp li + li { border-top: 1px solid var(--line); }
.imp__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; }
.imp__row input { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.imp__t { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item--taken .item__main, .item--taken .thumb { opacity: .45; }
.state { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.state--mine { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.state--taken { color: var(--muted); background: var(--panel-2); }

.guest { grid-column: 1 / -1; max-width: 760px; width: 100%; margin: 0 auto; }
.guest__lead { margin: 4px 0 16px; color: var(--ink-2); }

/* ───────────── маленькие страницы ───────────── */
.solo-main { flex: 1; display: grid; place-items: start center; padding: 48px 16px; }
.solo-card {
    width: min(440px, 100%); padding: 26px 24px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.solo-lead { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; margin: 16px 0; }
.pin { font: 600 24px var(--mono) !important; letter-spacing: .4em; text-align: center; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.inline { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ───────────── тост, тревога ───────────── */
.toast {
    position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60;
    transform: translateX(-50%); max-width: calc(100vw - 24px);
    display: flex; align-items: center; gap: 14px; padding: 10px 16px;
    background: #1c2028; color: #f1f3f6; border-radius: 10px; font-size: 14px;
    box-shadow: 0 10px 30px rgb(0 0 0 / .25);
}
.toast--err { background: var(--danger); color: #fff; }
.toast__undo { background: none; border: 0; padding: 0; color: #9db8ff; font-weight: 600; cursor: pointer; }
.guard-alarm { position: sticky; top: 0; z-index: 100; background: #c9433a; color: #fff; padding: 10px 16px; text-align: center; font-weight: 600; }

/* слой декора шкурки: за контентом, клики не ловит */
.decor { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ───────────── телефон ───────────── */
.tabs { display: none; }
@media (max-width: 1180px) and (min-width: 901px) {
    .board { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 240px; gap: 14px; padding: 16px; }
}
@media (max-width: 900px) {
    .board { grid-template-columns: minmax(0, 1fr); padding: 12px 12px 90px; }
    body.app:not(.app--guest) .col { display: none; }
    body.app[data-tab="pool"]:not(.app--guest) .col--pool,
    body.app[data-tab="lists"]:not(.app--guest) .col--lists,
    body.app[data-tab="friends"]:not(.app--guest) .col--friends { display: block; }
    .tabs {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 4px;
        background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px);
        border-top: 1px solid var(--line);
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    }
    .tabs button { flex: 1; background: none; border: 0; padding: 9px 4px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
    .tabs button[aria-current] { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
    body.app:not(.app--guest) .foot { display: none; }
    .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
    .sheet, .sheet--wide { width: 100vw; max-width: 100vw; max-height: 94dvh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
    .sheet__body { max-height: 94dvh; padding: 18px 16px calc(24px + env(safe-area-inset-bottom)); }
    .item { flex-wrap: wrap; }
    .item__price { min-width: 0; }
    .item__act { width: 100%; min-width: 0; flex-direction: row; justify-content: flex-end; align-items: center; }
    .wishes--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* «любой цвет» отличаем от готовых: пунктирное кольцо */
.dot--any input[type=color] { outline: 1.5px dashed var(--muted); outline-offset: 2px; }
