/* Новое оформление Mugboard: светлая стеклянная панель на мягком сиренево-голубом градиенте, меню слева,
   фиолетовый акцент, белые карточки с цветными плитками-иконками. Подключается поверх app.css только при
   оформлении «Новое» (Настройки → Оформление); прежнее оформление живёт в app.css без изменений. */

@font-face { font-family: 'Wix Madefor Display'; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/wix-madefor-display-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Wix Madefor Display'; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/wix-madefor-display-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Wix Madefor Text'; font-weight: 400; font-display: swap;
  src: url(/static/fonts/wix-madefor-text-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Wix Madefor Text'; font-weight: 400; font-display: swap;
  src: url(/static/fonts/wix-madefor-text-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Wix Madefor Text'; font-weight: 500; font-display: swap;
  src: url(/static/fonts/wix-madefor-text-500-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Wix Madefor Text'; font-weight: 500; font-display: swap;
  src: url(/static/fonts/wix-madefor-text-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Wix Madefor Text'; font-weight: 600 700; font-display: swap;
  src: url(/static/fonts/wix-madefor-text-600-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Wix Madefor Text'; font-weight: 600 700; font-display: swap;
  src: url(/static/fonts/wix-madefor-text-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Палитра — одна для светлой и тёмной темы системы: макет светлый, стекло на тёмном не читается */
:root.glass {
  --bg: #EEEDF8; --surface: #FFFFFF; --surface-2: #F8F7FD; --muted-bg: #F1F0F8;
  --ink: #12122A; --ink-2: #44465A; --muted: #6C7084; --faint: #A3A6B8;
  --line: #E8E7F2; --line-2: #EFEEF6; --line-3: #DCDBEA;
  --accent: #7C47E6; --accent-bg: #EFE9FD; --accent-line: #8B5CF0; --accent-ink: #6532D8;
  --warn: #A1460F; --warn-bg: #FCEFE3; --run: #2F6FD8; --run-bg: #E6EFFD; --ok: #1F9D63;
  --btn: #7C47E6; --btn-ink: #FFFFFF; --live-bg: #12122A; --live-ink: #FFFFFF; --live-muted: #C9C9DA;
  --hatch-1: #E6E5F1; --hatch-2: #F6F5FB;
  --good: #1B9460; --good-bg: #E3F5EC; --bad: #C2372C; --bad-bg: #FCECEA; --warn-2: #A6510A; --warn-2-bg: #FDF0E2;
  --violet: #7C47E6; --violet-bg: #EFE9FD; --blue: #2F6FD8; --blue-bg: #E3EEFC; --green: #1B9460; --green-bg: #DDF3E8;
  --orange: #E37B23; --orange-bg: #FDEBD8;
  --brand-heart: #FFFFFF;
  --glass: rgba(255, 255, 255, .62); --glass-side: rgba(255, 255, 255, .55); --glass-line: rgba(255, 255, 255, .8);
  --shadow: 0 1px 2px rgba(40, 30, 90, .06);
  --shadow-card: 0 1px 2px rgba(40, 30, 90, .05), 0 6px 20px rgba(60, 40, 130, .06);
  --shadow-pop: 0 2px 6px rgba(40, 30, 90, .08), 0 18px 44px rgba(60, 40, 130, .16);
  --r-card: 18px; --r-ctl: 12px;
  --f-text: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Wix Madefor Display', 'Wix Madefor Text', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root.glass { --bg: #EEEDF8; --surface: #FFFFFF; --surface-2: #F8F7FD; --muted-bg: #F1F0F8; --ink: #12122A; --ink-2: #44465A;
    --muted: #6C7084; --faint: #A3A6B8; --line: #E8E7F2; --line-2: #EFEEF6; --line-3: #DCDBEA; --accent: #7C47E6;
    --accent-bg: #EFE9FD; --accent-line: #8B5CF0; --warn: #A1460F; --warn-bg: #FCEFE3; --run: #2F6FD8; --run-bg: #E6EFFD;
    --ok: #1F9D63; --btn: #7C47E6; --btn-ink: #FFFFFF; --live-bg: #12122A; --live-ink: #FFFFFF; --live-muted: #C9C9DA;
    --hatch-1: #E6E5F1; --hatch-2: #F6F5FB; --good: #1B9460; --good-bg: #E3F5EC; --bad: #C2372C; --bad-bg: #FCECEA;
    --warn-2: #A6510A; --warn-2-bg: #FDF0E2; --shadow: 0 1px 2px rgba(40, 30, 90, .06); color-scheme: light; }
  .glass .adi-nostock circle { fill: #7C6A55; }
}
.glass .t-neutral { --c: #5B5E78; --cb: #EEEEF5; }

/* Фон и стекло */
html.glass {
  background:
    radial-gradient(1200px 800px at 8% -10%, #D8C7F6 0%, rgba(216, 199, 246, 0) 60%),
    radial-gradient(1100px 900px at 105% 110%, #C9D9F4 0%, rgba(201, 217, 244, 0) 60%),
    linear-gradient(135deg, #E6DDF9 0%, #EEF0FA 48%, #DCE6F7 100%);
  background-attachment: fixed; min-height: 100%; }
.glass body, body.glass { background: transparent;
  font-family: var(--f-text); font-size: 15px; line-height: 1.45; color: var(--ink);
}
.glass ::selection { background: #DCCDFB; color: var(--ink); }
.glass * { scrollbar-color: #CFC8E6 transparent; }
.glass h1, .glass h2, .glass h3, .glass .kpi .v, .glass .tile .n, .glass .facts b, .glass .rec-n {
  font-family: var(--f-display); }
.glass .tn, .glass .tbl td { font-variant-numeric: tabular-nums; }
.glass :focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.glass .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.glass .shell { display: flex; align-items: stretch; min-height: calc(100vh - 32px); margin: 16px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 28px;
  box-shadow: 0 30px 80px -30px rgba(70, 45, 150, .28), 0 2px 10px rgba(70, 45, 150, .06);
  -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2); }
.glass .work { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Боковое меню */
.glass .side { position: sticky; top: 16px; align-self: flex-start; height: calc(100vh - 32px); width: 236px; flex: none;
  display: flex; flex-direction: column; gap: 6px; padding: 26px 14px 18px; background: var(--glass-side);
  border-right: 1px solid rgba(255, 255, 255, .9); border-radius: 28px 0 0 28px; overflow-y: auto; scrollbar-width: none; }
.glass .side .brand { display: flex; align-items: center; gap: 12px; padding: 0 12px 26px; text-decoration: none; }
.glass .brand-mark { width: 48px; height: 48px; border-radius: 0; background: none; color: var(--violet); flex: none; }
.glass .brand-mark svg { width: 48px; height: 48px; }
.glass .brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.glass .brand-t b { font-family: var(--f-display); font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.glass .brand-t small { border: 0; padding: 0; margin-top: 4px; font-size: 14px; color: var(--muted); }
.glass .side .nav { flex-direction: column; gap: 8px; }
.glass .side .nav a { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 14px; border-radius: 14px;
  font-size: 17px; font-weight: 500; color: var(--ink-2); border: 1px solid transparent; transition: background .15s, color .15s; }
.glass .side .nav a .ic { color: #3C3E52; flex: none; width: 24px; height: 24px; }
.glass .side .nav a:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }
.glass .side .nav a.on { background: linear-gradient(180deg, #EEE8FD, #E7E0FB); border-color: #DDD2FA; color: var(--accent-ink); }
.glass .side .nav a.on .ic { color: var(--accent); }
.glass .side .nav-n { margin-left: auto; min-width: 26px; height: 26px; border-radius: 13px; padding: 0 7px; font-size: 13px;
  background: var(--violet); color: #fff; }
.glass .side .demo { align-self: flex-start; margin: 0 8px 6px; }
.glass .sync { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line); box-shadow: var(--shadow-card); text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.glass .sync small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.glass .sync-ic { color: var(--violet); display: flex; }
.glass .sync:hover { border-color: #DDD2FA; }
.glass .side-out { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; margin-top: 4px; padding: 0 14px;
  border: 0; border-radius: 12px; background: none; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; }
.glass .side-out:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }

/* Верх рабочей области: поиск плавает справа и остаётся под рукой при прокрутке */
.glass .top { position: sticky; top: 0; z-index: 20; height: auto; display: flex; justify-content: flex-end; gap: 12px;
  padding: 26px 34px 0; margin-bottom: -66px; background: none; border: 0; border-radius: 0 28px 0 0; pointer-events: none;
  transition: background .2s, box-shadow .2s; }
/* при прокрутке поиск — на полупрозрачной полосе во всю ширину, чтобы не закрывать кнопки под собой */
.glass .top.stuck { padding: 12px 34px 12px; margin-bottom: -64px; border-radius: 0; background: rgba(246, 244, 252, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(220, 219, 234, .9), 0 10px 24px -18px rgba(60, 40, 130, .35); pointer-events: auto; }
.glass .top > * { pointer-events: auto; }
.glass .hsearch { position: relative; display: flex; align-items: center; }
.glass .hsearch .ic { position: absolute; left: 14px; z-index: 1; color: var(--muted); pointer-events: none; }
.glass .hsearch .input { width: min(480px, 38vw); min-height: 44px; padding-left: 44px; font-size: 15px; border-radius: 14px;
  background: rgba(255, 255, 255, .88); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow-card); }
.glass .hsearch .input::placeholder { color: #707387; }

.glass .page { max-width: 1560px; width: 100%; margin: 0; padding: 30px 34px 56px; gap: 26px; }
.glass .page-head { align-items: flex-end; min-height: 44px; }
/* заголовок не заходит под плавающий поиск; переключатель периода — справа под поиском */
.glass .page-head:not(:has(.seg)) > div:first-child { padding-right: min(500px, 40vw); }
.glass .page-head:has(.seg) { flex-wrap: nowrap; min-height: 92px; align-items: flex-start; }
.glass .page-head:has(.seg) > .seg { align-self: flex-end; }
.glass .page-head .seg { flex: none; flex-wrap: nowrap; }
.glass .dz-info .page-head:has(.seg) { flex-wrap: wrap; min-height: 0; }
.glass .page-head h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.glass .page-head p { font-size: 16px; margin-top: 8px; color: var(--muted); }
.glass .crumbs { font-size: 14px; }
.glass .crumbs a:hover { color: var(--accent-ink); }

/* Переключатель периода: белая подложка, выбранный — фиолетовый */
.glass .seg { padding: 4px; gap: 2px; border-radius: 14px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line);
  box-shadow: var(--shadow-card); }
.glass .seg a, .glass .seg button, .glass .seg label span { min-height: 36px; padding: 0 16px; border-radius: 10px; font-size: 14px;
  font-weight: 500; color: var(--ink-2); justify-content: center; }
.glass .seg a:hover, .glass .seg button:hover { color: var(--ink); background: var(--surface-2); }
.glass .seg a.on, .glass .seg button.on, .glass .seg label input:checked + span { background: var(--accent-bg); color: var(--accent-ink);
  box-shadow: 0 0 0 1px #DCCFFB inset; font-weight: 600; }

/* Кнопки и поля */
.glass .btn { border-radius: var(--r-ctl); font-weight: 600; transition: background .15s, box-shadow .15s, opacity .15s; }
.glass .btn:not(.ghost) { box-shadow: 0 6px 16px -6px rgba(124, 71, 230, .6); }
.glass .btn:not(.ghost):hover { opacity: 1; background: #6D38DA; }
.glass .btn.ghost { background: rgba(255, 255, 255, .9); border-color: var(--line-3); color: var(--ink); }
.glass .btn.ghost:hover { opacity: 1; border-color: #CDBFF7; color: var(--accent-ink); }
.glass .btn.small { border-radius: 10px; }
.glass .btn .ic { flex: none; }
.glass .input { border-radius: 10px; border-color: var(--line-3); }
.glass .input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(139, 92, 240, .18); }
.glass .st-all { color: var(--accent-ink); }

/* Карточки */
.glass .card { border: 1px solid rgba(232, 231, 242, .9); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.glass .card h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.glass .sec-head { margin: 8px 0 -10px; gap: 14px; }
.glass .sec-head h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.glass .note { color: var(--muted); }
.glass .alert { border-radius: var(--r-card); overflow-wrap: anywhere; }

/* Показатели вверху главной: цветная плитка-иконка, число, подпись */
.glass .kpis { gap: 16px; }
.glass .kpi { flex-direction: row; align-items: center; gap: 14px; padding: 18px; min-height: 100px; }
.glass .kpi-ic { width: 54px; height: 54px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  flex: none; background: var(--cb); color: var(--c); }
.glass .k-blue { --c: var(--blue); --cb: var(--blue-bg); }
.glass .k-green { --c: var(--green); --cb: var(--green-bg); }
.glass .k-orange { --c: var(--orange); --cb: var(--orange-bg); }
.glass .k-violet { --c: var(--violet); --cb: var(--violet-bg); }
.glass .kpi-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.glass .kpi .v { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.glass .kpi .l { font-size: 13px; color: var(--muted); line-height: 1.3; }

/* Рекомендации и группы: номер, плитка-иконка, заголовок с числом, пояснение, стрелка «свернуть» */
.glass .recs { gap: 12px; }
.glass .rec { border-left: 1px solid rgba(232, 231, 242, .9); padding: 0; gap: 0; overflow: hidden; }
.glass .rec-head { flex-wrap: nowrap; align-items: flex-start; gap: 16px; padding: 18px 18px 18px 22px; cursor: pointer; }
.glass .rec-n { width: 32px; height: 32px; border-radius: 9px; font-size: 16px; margin-top: 2px; color: #fff; background: var(--c); }
.glass .rec-n.cnt { width: auto; min-width: 32px; padding: 0 9px; font-size: 15px; }
.glass .rec-ic { width: 46px; height: 46px; border-radius: 13px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--cb); color: var(--c); margin-top: -5px; }
.glass .rec-hd { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 0 1 auto; padding-top: 4px; }
.glass .rec-head h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.glass .rec-cnt { font-family: var(--f-text); font-weight: 400; color: var(--muted); font-size: 17px; }
.glass .rec-lead { font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 78ch; }
.glass .rec-head .btn { flex: none; margin-top: 2px; }
.glass .rec-tog { flex: none; width: 36px; height: 36px; margin-top: 0; border: 0; border-radius: 10px; background: none; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, transform .2s ease-out; }
.glass .rec-tog:hover { background: var(--muted-bg); color: var(--ink); }
.glass .rec-tog .ic { transform: rotate(180deg); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.glass .rec.is-closed .rec-tog .ic { transform: none; }
.glass .rec.is-closed .rec-head { padding-bottom: 18px; align-items: center; }
.glass .rec.is-closed .rec-n, .glass .rec.is-closed .rec-ic, .glass .rec.is-closed .rec-head .btn { margin-top: 0; }
.glass .rec.is-closed .rec-lead, .glass .rec.is-closed .rec-body { display: none; }
.glass .rec.is-closed .rec-hd { padding-top: 0; }
.glass .rec-head:hover .rec-tog { background: var(--muted-bg); }
.glass .rec-body { display: flex; flex-direction: column; gap: 14px; padding: 0 22px 18px 22px; }
.glass .rec-chips { padding-left: 110px; gap: 10px; }
.glass .rec-stack { padding-left: 110px; }
.glass .chip { flex-direction: row; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 10px; background: var(--cb);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent) inset; }
.glass .chip small { font-size: 14px; color: var(--c); }
.glass .chip b { font-size: 15px; font-weight: 600; color: var(--c); }
.glass .rec-items { grid-template-columns: 64px minmax(0, 1.3fr) max-content minmax(200px, 1fr); column-gap: 20px; margin: 0 -22px; padding: 0 22px; }
.glass .rec-items li { padding: 12px 0; border-top-color: var(--line-2); }
.glass .ri-photo { width: 64px; height: 54px; border-radius: 10px; }
.glass .ri-name { font-size: 16px; font-weight: 600; color: var(--ink); }
.glass .ri-note { font-size: 13px; color: var(--muted); }
.glass .ri-action { font-size: 13px; padding: 6px 12px; }
.glass .ri-bar { font-size: 13px; color: var(--ink-2); gap: 7px; }
.glass .rbar { height: 9px; border-radius: 5px; background: #EEEDF5; }
.glass .rbar i { border-radius: 5px; }
.glass .rec-more-wrap { border-top-color: var(--line-2); padding-top: 14px; }
@supports not (grid-template-columns: subgrid) {
  .glass .rec-items li { grid-template-columns: 64px minmax(0, 1.3fr) 190px minmax(200px, 1fr); column-gap: 20px; }
}
.glass .dist { height: 14px; border-radius: 7px; }
.glass .legend span::before { border-radius: 4px; }

/* Плитки групп */
.glass .tile { border-left: 1px solid rgba(232, 231, 242, .9); }
.glass .tile .n { font-size: 30px; }
.glass .tile:hover { background: #fff; border-color: #DDD2FA; }

/* Списки */
.glass .toolbar { border-bottom-color: var(--line-2); }
.glass .st-opt { min-height: 32px; font-size: 13px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 16%, transparent) inset; }
.glass .st-opt.off { box-shadow: 0 0 0 1px var(--line-3) inset; }
.glass table.tbl { font-size: 14px; }
.glass .tbl th { font-size: 13px; color: var(--muted); font-weight: 500; background: var(--surface); }
.glass .tbl th.sorted { color: var(--accent-ink); }
.glass .tbl td { border-bottom-color: var(--line-2); }
.glass .tbl tbody tr:hover, .glass .tbl tbody tr:hover td.stick { background: #F8F6FE; }
.glass .tbl .name > a { font-size: 15px; }
.glass .ph img, .glass .ph .noimg { border-radius: 8px; }
.glass .flag { border-radius: 7px; font-size: 12px; padding: 3px 8px; }
.glass .float-head { box-shadow: 0 8px 18px -10px rgba(60, 40, 130, .3); }
.glass .rng-i { border-radius: 8px; }
.glass .print-total b { font-family: var(--f-display); font-size: 20px; }

/* Страница принта */
.glass .dz-photo { border-radius: 22px; box-shadow: var(--shadow-card); }
.glass .dz-info h1 { font-size: 30px; }
.glass .verdict { border-left: 1px solid rgba(232, 231, 242, .9); position: relative; padding: 20px 22px 20px 30px; overflow: hidden; }
.glass .verdict::before { content: ''; position: absolute; left: 14px; top: 22px; width: 8px; height: 8px; border-radius: 4px; background: var(--c); }
.glass .verdict .t { font-family: var(--f-display); font-size: 20px; }
.glass .facts b { font-size: 22px; }
.glass .chart rect.bar { fill: #9B86D9; }
.glass .chart rect.bar-orders { fill: var(--violet); opacity: .85; }
.glass .chart rect.bar:hover { fill: var(--accent-ink); opacity: 1; }

/* Задачи */
.glass .kboard { border: 1px solid rgba(232, 231, 242, .9); border-top: 1px solid rgba(232, 231, 242, .9); border-radius: 22px;
  box-shadow: var(--shadow-card); }
.glass .kboard-head .ticon { color: var(--c); }
.glass .kboard-head::before { content: ''; width: 10px; height: 10px; border-radius: 5px; background: var(--c); flex: none; }
.glass .bcol { border-radius: 16px; }
.glass .tcard { border-left: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.glass .tcard .tkind::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--c); flex: none; }
.glass .tbtn { border-radius: 9px; }

/* Настройки */
.glass .fset .frow .input { border-radius: 9px; }
.glass .theme-pick { display: flex; gap: 12px; flex-wrap: wrap; }

/* Всплывающее */
.glass .why-pop, .glass .kpick-menu, .glass .pickbar { border-radius: 16px; box-shadow: var(--shadow-pop); }
.glass .why-pop { border-top-width: 1px; border-color: var(--line-3); }
.glass .why-head b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 4px;
  background: var(--c, var(--ink)); vertical-align: 1px; }
.glass .toast { border-radius: 14px; background: var(--ink); }
.glass .period-float { background: rgba(255, 255, 255, .85); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px); box-shadow: var(--shadow-pop); border-radius: 14px; }
.glass .period-float a.on { background: var(--accent-bg); color: var(--accent-ink); box-shadow: 0 0 0 1px #DCCFFB inset; }
.glass .zoom-pop { border-radius: 18px; box-shadow: var(--shadow-pop); }

/* Вход */
.glass .login .card { border-radius: 24px; padding: 32px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px); box-shadow: var(--shadow-pop); }
.glass .login .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

/* Плавающий переключатель периода — в свободном месте бокового меню, поля справа не нужны */
@media (min-width: 901px) {
  body.glass:has(.page-head .seg) .page { padding-right: 34px; }
  .glass .period-float { left: 30px; right: auto; top: auto; bottom: 212px; transform: none; width: 208px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 5px; }
  .glass .period-float a { padding: 8px 4px; font-size: 13px; }
}
@media (min-width: 901px) and (max-width: 1180px) { .glass .period-float { width: 188px; } }

/* Узкие экраны: меню — полоса сверху, панель без полей */
@media (max-width: 1180px) {
  .glass .side { width: 216px; }
  .glass .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glass .rec-chips, .glass .rec-stack { padding-left: 0; }
}
@media (max-width: 900px) {
  .glass .shell { margin: 0; border-radius: 0; flex-direction: column; min-height: 100vh; border: 0; }
  .glass .side { position: sticky; top: 0; z-index: 30; height: auto; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center;
    gap: 6px 10px; padding: 10px 12px; border-radius: 0; border-right: 0; border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); overflow: visible; }
  .glass .side .brand { padding: 0 4px; }
  .glass .brand-mark, .glass .brand-mark svg { width: 32px; height: 32px; }
  .glass .brand-t b { font-size: 18px; }
  .glass .brand-t small, .glass .side .grow, .glass .sync { display: none; }
  .glass .side form { margin-left: auto; }
  .glass .side-out { margin: 0; min-height: 36px; padding: 0 10px; }
  .glass .side-out span { display: none; }
  .glass .side .nav { order: 5; flex-direction: row; width: 100%; overflow-x: auto; gap: 4px; }
  .glass .side .nav a { min-height: 40px; padding: 0 12px; gap: 8px; font-size: 14px; white-space: nowrap; border-radius: 11px; }
  .glass .side .nav a .ic { width: 18px; height: 18px; }
  .glass .side .nav-n { min-width: 20px; height: 20px; font-size: 11px; margin-left: 2px; }
  .glass .top { position: static; align-self: stretch; margin: 0; padding: 12px 16px 0; }
  .glass .hsearch { flex: 1; }
  .glass .hsearch .input { width: 100%; }
  .glass .page { padding: 18px 16px 88px; gap: 20px; }
  .glass .page-head > div:first-child { padding-right: 0; }
  .glass .page-head:has(.seg) { flex-wrap: wrap; min-height: 0; }
  .glass .page-head .seg { flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; }
  .glass .page-head .seg a { white-space: nowrap; padding: 0 12px; flex: 1 0 auto; }
  .glass .page-head h1 { font-size: 28px; }
  .glass .kpi { padding: 16px; gap: 12px; min-height: 0; }
  .glass .kpi-ic { width: 42px; height: 42px; border-radius: 12px; }
  .glass .kpi-ic .ic { width: 22px; height: 22px; }
  .glass .kpi .v { font-size: 22px; }
  .glass .kpi .l { font-size: 12px; }
}
@media (max-width: 700px) {
  .glass .rec-head { flex-wrap: wrap; gap: 10px 12px; padding: 16px; }
  .glass .rec-ic { display: none; }
  .glass .rec-hd { flex: 1 1 calc(100% - 100px); }
  .glass .rec-head .btn { order: 5; width: auto; margin-left: 44px; }
  .glass .rec-head .grow { display: none; }
  .glass .rec-tog { margin-left: auto; }
  .glass .rec-head h3 { font-size: 17px; }
  .glass .rec-cnt { font-size: 15px; }
  .glass .rec-body { padding: 0 16px 16px; }
  .glass .rec-items { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; margin: 0 -16px; padding: 0 16px; }
  .glass .ri-photo { width: 56px; height: 56px; }
}
/* Первый блок страницы, если это не заголовок, — ниже плавающего поиска */
.glass .page > :first-child:not(.page-head):not(.crumbs) { margin-top: 62px; }
@media (max-width: 900px) { .glass .page > :first-child:not(.page-head):not(.crumbs) { margin-top: 0; } }

/* Значки в плитках — крупнее и плотнее, логотип заполняет свою клетку */
.glass .kpi-ic .ic { width: 30px; height: 30px; stroke-width: 2; }
.glass .rec-ic .ic { width: 24px; height: 24px; stroke-width: 2; }
.glass .rec-ic .ic path, .glass .kpi-ic .ic path { fill: color-mix(in srgb, currentColor 14%, transparent); }
.glass .rec-ic .ic path[d^="M"]:not([d*="z"]):not([d*="Z"]), .glass .kpi-ic .ic path[d^="M"]:not([d*="z"]):not([d*="Z"]) { fill: none; }
.glass .brand-t b { font-size: 26px; }
/* 5. У свёрнутой карточки — только номер, значок, заголовок и стрелка, как на макете */
.glass .rec.is-closed .rec-head .btn { display: none; }
/* 2. Плотнее: строки рекомендаций в одну строку подписи, меньше воздуха между блоками */
.glass .ri-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glass .rec-items li { padding: 10px 0; }
.glass .ri-photo { height: 48px; }
.glass .sec-head { margin: 2px 0 -14px; }
/* 8. Таблица списка — компактнее в рабочей области рядом с меню */
.glass .tbl thead tr.rng-row th.rng-c { min-width: 54px; }
.glass .tbl td, .glass .tbl th { padding-left: 5px; padding-right: 5px; }
.glass .tbl .name { min-width: 160px; max-width: 220px; }
@media (max-width: 700px) {
  /* 7. Стрелка «свернуть» — всегда справа вверху; «Подробнее» — второй строкой под заголовком */
  .glass .rec-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
  .glass .rec-head .rec-hd { grid-column: 2; grid-row: 1; }
  .glass .rec-head .rec-tog { grid-column: 3; grid-row: 1; margin: 0; }
  .glass .rec-head .btn { grid-column: 2; grid-row: 2; margin: 0; justify-self: start; }
  .glass .rec-head .rec-n { grid-column: 1; grid-row: 1; }
  /* переключатель периода — сеткой 3×2, без обрезки */
  .glass .page-head .seg { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .glass .page-head .seg a { padding: 0 6px; }
  /* меню — четыре равные части, подписи покороче */
  .glass .side .nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
  .glass .side .nav a { flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 4px 2px; font-size: 12px; position: relative; }
  .glass .side .nav a span:not(.nav-n) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .glass .side .nav-n { position: absolute; top: 3px; right: 10px; }
}
@media (max-width: 900px) { .glass .brand-t b { font-size: 19px; } .glass .brand-mark, .glass .brand-mark svg { width: 34px; height: 34px; } }
