/* Farmina partner portal — styles per the redesign in newdesign/ (docs/design-tokens.md, docs/tokens.css) */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/golos-text-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/golos-text-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 700; font-display: swap; src: url(/static/fonts/golos-text-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --fm-navy: #0B4A78;
  --fm-blue: #1B6CA8;
  --fm-blue-600: #155A8E;
  --fm-sky: #E9F1F7;
  --fm-sky-admin: #EEF4F8;
  --fm-surface: #FFFFFF;
  --fm-surface-2: #F3F7FA;
  --fm-surface-3: #F5F9FC;
  --fm-line: #D7E3EC;
  --fm-line-soft: #E3ECF2;
  --fm-line-input: #B9CCDA;
  --fm-line-input-2: #CFDDE8;
  --fm-ink: #0F2536;
  --fm-ink-2: #334B5C;
  --fm-muted: #4B6375;
  --fm-on-navy: #D6E6F2;
  --fm-on-navy-2: #9CC7E6;
  --fm-orange: #C2540A;
  --fm-orange-text: #B34E09;
  --fm-orange-soft: #FCEBDD;
  --fm-orange-soft-text: #8A3C06;
  --fm-green-soft: #E3F1EA;
  --fm-green-text: #1E5B3E;
  --fm-ok: #2E8B57;
  --fm-chip: #DCEAF5;

  --fm-font: "Golos Text", Arial, sans-serif;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --control-h: 44px;
  --shadow-hover: 0 12px 32px rgba(11, 74, 120, .14);
  --shadow-soft: 0 8px 24px rgba(11, 74, 120, .08);
  --shadow-sticky: 0 -8px 24px rgba(11, 74, 120, .08);
  --container: 1200px;
  --container-wide: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { container: page / inline-size; margin: 0; font-family: var(--fm-font); font-size: 16px; line-height: 1.55; color: var(--fm-ink); background: var(--fm-sky); }
img { max-width: 100%; display: block; }
a { color: var(--fm-navy); }
a:hover { color: var(--fm-orange); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--fm-blue); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--fm-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: var(--container-wide); }

/* ------------------------------------------------------------------ buttons & controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-h); padding: 0 18px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; text-decoration: none; border: 1px solid var(--fm-line-input); background: var(--fm-surface); color: var(--fm-navy); white-space: nowrap; }
.btn:hover { color: var(--fm-navy); border-color: var(--fm-blue); }
.btn.cta { background: var(--fm-orange); border-color: var(--fm-orange); color: #fff; }
.btn.cta:hover { background: #A94808; color: #fff; }
.btn.navy { background: var(--fm-navy); border-color: var(--fm-navy); color: #fff; }
.btn.navy:hover { background: var(--fm-blue-600); color: #fff; }
.btn.ghost-light { background: transparent; border-color: #6E9CC0; color: #fff; }
.btn.ghost-light:hover { border-color: #fff; color: #fff; }
.btn.link { border: 0; background: transparent; color: var(--fm-blue); padding: 0 4px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn.sm { height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.more-link { font-size: 15px; font-weight: 600; color: var(--fm-blue); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.more-link:hover { color: var(--fm-orange); }

.seg-dark { display: flex; background: var(--fm-blue-600); border-radius: 12px; padding: 4px; gap: 4px; }
.seg-dark a { height: 40px; padding: 0 18px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--fm-chip); text-decoration: none; display: inline-flex; align-items: center; }
.seg-dark a:hover { color: #fff; }
.seg-dark a[aria-selected="true"] { background: #fff; color: var(--fm-navy); }
.seg-light { display: inline-flex; background: #fff; border: 1px solid var(--fm-line-input-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg-light button { height: 36px; padding: 0 16px; border-radius: 9px; border: 0; background: transparent; font-weight: 600; font-size: 14px; }
.seg-light button[aria-selected="true"] { background: var(--fm-navy); color: #fff; }
.segs { display: grid; gap: 6px; }
.segs button { height: 40px; border-radius: 8px; font-size: 14px; font-weight: 600; border: 1px solid var(--fm-line-input-2); background: #fff; color: var(--fm-ink); padding: 0 6px; }
.segs button[aria-pressed="true"] { border-color: var(--fm-navy); background: var(--fm-navy); color: #fff; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { height: var(--control-h); border: 1px solid var(--fm-line-input); border-radius: var(--r-sm); padding: 0 12px; font-size: 15px; background: #fff; color: var(--fm-ink); width: 100%; min-width: 0; font-weight: 400; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.select { height: var(--control-h); border: 1px solid var(--fm-line-input-2); border-radius: var(--r-sm); padding: 0 12px; font-size: 15px; background: #fff; color: var(--fm-ink); max-width: 260px; }
.searchbox { display: flex; align-items: center; gap: 10px; border: 1px solid var(--fm-line-input-2); border-radius: var(--r-sm); padding: 0 14px; height: var(--control-h); color: var(--fm-muted); background: #fff; }
.searchbox input { border: 0; outline: 0; flex: 1; font-size: 15px; background: transparent; min-width: 0; color: var(--fm-ink); }
.searchbox:focus-within { border-color: var(--fm-blue); box-shadow: 0 0 0 3px rgba(27, 108, 168, .15); }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--fm-navy); flex: none; }
.legend { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fm-muted); padding: 0; margin-bottom: 10px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--fm-chip); color: var(--fm-navy); white-space: nowrap; text-decoration: none; }
.pill.navy { background: var(--fm-navy); color: #fff; }
.pill.orange { background: var(--fm-orange); color: #fff; }
.pill.green { background: var(--fm-green-soft); color: var(--fm-green-text); }
.pill.soft { background: var(--fm-sky-admin); color: var(--fm-ink-2); }
.pill.warm { background: var(--fm-orange-soft); color: var(--fm-orange-soft-text); }
.pill.violet { background: #EEE8F7; color: #4A3378; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--fm-sky-admin); color: var(--fm-ink-2); white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

/* ------------------------------------------------------------------ header */
.site-header { background: #fff; border-bottom: 1px solid var(--fm-line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 2px; flex: 1; flex-wrap: nowrap; min-width: 0; }
.nav a { white-space: nowrap; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--fm-ink); text-decoration: none; }
.nav a:hover { background: var(--fm-sky); color: var(--fm-navy); }
.nav a[aria-current="page"] { font-weight: 600; color: var(--fm-navy); background: var(--fm-sky); box-shadow: inset 0 -2px 0 var(--fm-orange); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search { width: 240px; flex: 0 1 240px; min-width: 160px; }
.header-actions:has(.hdr-wtb) { min-width: 0; flex: 0 1 auto; }
.nav:has(+ .header-actions .hdr-wtb) { flex: 1 0 auto; }
@container page (max-width: 1380px) { .header-search { display: none; } }
.cabinet { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--fm-line); border-radius: 999px; text-decoration: none; color: var(--fm-ink); font-size: 14px; font-weight: 500; }
.cabinet span { width: 32px; height: 32px; border-radius: 50%; background: var(--fm-sky); color: var(--fm-navy); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hdr-wtb, .hdr-wtb-m { gap: 8px; white-space: nowrap; flex: none; }
.hdr-wtb-m { display: none; }
@container page (max-width: 1060px) { .hdr-wtb-m { display: inline-flex; margin-left: auto; } .hdr-wtb-m + .burger { margin-left: 0; } }
@container page (max-width: 420px) { .hdr-wtb-m { padding-left: 12px; padding-right: 12px; } .hdr-wtb-m span { display: none; } }
.burger { display: none; width: 48px; height: 48px; border-radius: 12px; border: 0; background: transparent; color: var(--fm-navy); align-items: center; justify-content: center; margin-left: auto; }

.mobile-menu { position: fixed; inset: 0; background: #fff; z-index: 60; display: none; flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu header { height: 64px; border-bottom: 1px solid var(--fm-line); display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; }
.mobile-menu header img { height: 40px; }
.mobile-menu nav { padding: 12px 8px; display: flex; flex-direction: column; }
.mobile-menu .over { padding: 12px 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-muted); }
.mobile-menu nav a { height: 56px; padding: 0 12px; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; font-size: 18px; font-weight: 500; color: var(--fm-ink); }
.mobile-menu nav a[aria-current="page"] { color: var(--fm-navy); background: var(--fm-sky); font-weight: 600; }
.mobile-menu .bottom { margin-top: auto; padding: 16px; display: grid; gap: 10px; border-top: 1px solid var(--fm-line); }
.icon-btn { width: 48px; height: 48px; border-radius: 12px; border: 0; background: transparent; color: var(--fm-navy); display: inline-flex; align-items: center; justify-content: center; }

/* ------------------------------------------------------------------ navy bands */
.band { background: var(--fm-navy); color: #fff; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--fm-muted); flex-wrap: wrap; }
.crumbs a { color: var(--fm-muted); }
.crumbs b { color: var(--fm-ink); font-weight: 400; }
.band .crumbs, .band .crumbs a { color: var(--fm-on-navy-2); }
.band .crumbs b { color: #fff; }
.overline { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-on-navy-2); }
.lead-light { font-size: 19px; line-height: 1.55; color: var(--fm-on-navy); max-width: 560px; }
.chip-dark { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--fm-blue-600); color: #fff; text-decoration: none; }
.chip-dark:hover { background: var(--fm-blue); color: #fff; }
.row-gap { display: flex; gap: 12px; flex-wrap: wrap; }

.home-hero .wrap { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px; align-items: center; }
.home-hero .txt { display: flex; flex-direction: column; gap: 24px; }
.home-hero h1 { font-size: clamp(32px, 3.9vw, 52px); overflow-wrap: anywhere; line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.hero-media { height: 380px; border-radius: 20px; overflow: hidden; position: relative; background: var(--fm-blue-600); }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .packs { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; align-items: flex-end; }
.hero-media .packs img { height: 190px; width: auto; margin: 0 -10px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .3)); transition: transform .2s; }
.hero-media .packs a:hover img { transform: translateY(-6px); }

.page-band .wrap { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.page-band h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }

/* ------------------------------------------------------------------ cards */
.card { background: #fff; border: 1px solid var(--fm-line); border-radius: var(--r-lg); }
a.card { text-decoration: none; color: var(--fm-ink); transition: box-shadow .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow-hover); color: var(--fm-ink); }
.section-title { font-size: 36px; font-weight: 700; color: var(--fm-navy); letter-spacing: -.01em; }
.h2 { font-size: 26px; font-weight: 700; color: var(--fm-navy); }

.home-main { padding-top: 72px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 32px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.aud { overflow: hidden; display: flex; flex-direction: column; }
.aud .photo { height: 200px; background: var(--fm-surface-2); }
.aud .photo img { width: 100%; height: 100%; object-fit: cover; }
.aud .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.aud .kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fm-orange-text); }
.aud h3 { font-size: 22px; font-weight: 700; color: var(--fm-navy); }
.aud p { font-size: 15px; color: var(--fm-muted); flex: 1; }

.lines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.line-card { padding: 16px; display: grid; grid-template-rows: 52px auto; gap: 10px; border-radius: var(--r-md); }
.line-card img { height: 52px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.line-card strong { color: var(--fm-navy); font-size: 15px; display: block; }
.line-card span { color: var(--fm-muted); font-size: 13px; }

/* ------------------------------------------------------------------ program (breeders/vets) */
.program-main { margin-top: -32px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 72px; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; }
.duo .card { display: grid; grid-template-columns: 180px 1fr; overflow: hidden; box-shadow: var(--shadow-soft); }
.duo .media { background: var(--fm-surface-2); display: flex; align-items: center; justify-content: center; min-height: 190px; overflow: hidden; }
.duo .media img { max-height: 170px; width: auto; }
.duo .media img.cover { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.duo .body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.duo h2 { font-size: 24px; font-weight: 700; color: var(--fm-navy); }
.duo p { font-size: 15px; color: var(--fm-muted); }
.duo .more-link { margin-top: auto; }
.sec-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.sec-head p { font-size: 16px; color: var(--fm-muted); }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.level { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.level .name { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fm-muted); }
.level .big { font-size: 22px; font-weight: 700; color: var(--fm-navy); }
.level p { font-size: 15px; color: var(--fm-muted); }
.level.dark { background: var(--fm-navy); border-color: var(--fm-navy); color: #fff; }
.level.dark .name { color: var(--fm-on-navy-2); }
.level.dark .big { color: #fff; }
.level.dark p { color: var(--fm-on-navy); }
.note { font-size: 13px; color: var(--fm-muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--fm-orange); color: var(--fm-orange-text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step strong { font-size: 17px; display: block; margin-bottom: 4px; }
.step span { font-size: 15px; color: var(--fm-muted); }
.join { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--fm-line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); overflow: hidden; scroll-margin-top: 100px; }
.join .side-b { background: var(--fm-blue); color: #fff; padding: 48px; display: flex; flex-direction: column; gap: 16px; }
.join .side-b h2 { font-size: 34px; font-weight: 700; }
.join .side-b p { color: var(--fm-on-navy); }
.join .side-b a { color: #fff; font-weight: 600; }
.join .side-b .countries { margin-top: auto; font-size: 14px; color: var(--fm-on-navy); }
.join form { padding: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-content: start; }
.join form .full { grid-column: 1 / -1; }
.join .field input, .join .field select { height: 48px; font-size: 16px; }
.join .actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.social { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; align-items: start; }
.social > div { display: flex; flex-direction: column; gap: 16px; }
.quote { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.quote p { font-size: 15px; line-height: 1.6; color: #22394A; }
.quote .by { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--fm-muted); }
details.faq { background: #fff; border: 1px solid var(--fm-line); border-radius: var(--r-md); padding: 0 20px; }
details.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; list-style: none; padding: 14px 0; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 22px; color: var(--fm-blue); flex: none; }
details.faq[open] summary::after { content: "−"; }
details.faq p { padding-bottom: 18px; font-size: 15px; color: var(--fm-muted); }

/* ------------------------------------------------------------------ catalog */
.cat-band .wrap { padding-top: 20px; padding-bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.cat-band .title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.cat-band h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.line-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.line-strip button { flex: none; display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 13px; border-radius: 10px; font-size: 14px; font-weight: 600; white-space: nowrap;
  background: transparent; color: #fff; border: 1px solid #3F77A3; text-align: left; }
.line-strip button > span:last-child { display: flex; align-items: baseline; gap: 6px; }
.line-strip button:hover { border-color: #fff; }
.line-strip button[aria-pressed="true"] { background: #fff; color: var(--fm-navy); border-color: #fff; }
.line-strip small { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
@container page (max-width: 768px) { .line-strip { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } }
.catalog { padding-top: 32px; padding-bottom: 80px; display: flex; gap: 28px; align-items: flex-start; }
.filters { flex: 0 0 290px; padding: 20px; display: flex; flex-direction: column; gap: 22px; border-radius: 16px; position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow: auto; }
.filters .top { display: flex; justify-content: space-between; align-items: center; }
.fold { all: unset; display: flex; align-items: center; gap: 8px; width: 100%; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; pointer-events: none; }
.fold > svg, .fold .fsel { display: none; }
@container page (max-width: 1060px) {
  .filters { gap: 0; }
  .filters .top { margin-bottom: 4px; }
  .fgroup { border-bottom: 1px solid var(--fm-line); }
  .fgroup .legend { margin: 0; width: 100%; }
  .fold { pointer-events: auto; cursor: pointer; min-height: 52px; color: var(--fm-ink); font-size: 15px; text-transform: none; letter-spacing: 0; }
  .fold > span:first-child { flex: 1; }
  .fold .fsel { display: inline; color: var(--fm-blue); font-weight: 600; font-size: 14px; }
  .fold > svg { display: block; color: var(--fm-muted); transform: rotate(90deg); transition: transform .2s; }
  .fgroup.open .fold > svg { transform: rotate(-90deg); }
  .fgroup:not(.open) .fbody { display: none; }
  .fgroup .fbody { padding-bottom: 14px; }
  .filters > .switch { padding: 14px 0; }
}
.filters h2 { font-size: 18px; font-weight: 700; }
.filters .switch { border-top: 1px solid var(--fm-line-soft); padding-top: 14px; justify-content: space-between; }
.cat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-head .t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cat-head .acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-head .sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fm-muted); }
.cat-head .sort select { height: 40px; }
.active-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.active-chips:empty { display: none; }
.active-chips span { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--fm-chip); color: var(--fm-navy); font-size: 14px; font-weight: 600; }
.active-chips button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--fm-navy); display: flex; align-items: center; justify-content: center; }
.active-chips button:hover { background: #fff; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.pc { border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.pc:hover { box-shadow: var(--shadow-hover); border-color: #9DB8CC; }
.pc > a { text-decoration: none; color: var(--fm-ink); display: flex; flex-direction: column; flex: 1; }
.pc .ph { height: 200px; background: var(--fm-surface-2); display: flex; align-items: center; justify-content: center; position: relative; }
.pc .ph img { max-height: 170px; max-width: 75%; object-fit: contain; }
.pc .ph .pill { position: absolute; top: 12px; left: 12px; }
.pc .info { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc .kind { font-size: 13px; color: var(--fm-muted); }
.pc strong { font-size: 16px; line-height: 1.3; color: var(--fm-navy); }
.pc .foot { padding: 8px 16px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pc .pack { font-size: 14px; font-weight: 600; color: var(--fm-ink-2); }
.pc .go { width: 44px; height: 44px; border-radius: 12px; background: var(--fm-navy); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.pc .go:hover { background: var(--fm-blue-600); color: #fff; }
.empty { padding: 48px; text-align: center; background: #fff; border-radius: 16px; color: var(--fm-muted); }
.load-more { display: flex; justify-content: center; padding-top: 8px; }
.filters-btn { display: none; }
.sheet-bg { position: fixed; inset: 0; background: rgba(15, 37, 54, .55); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-bg.open { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------ line page */
.line-hero .wrap { padding-top: 28px; padding-bottom: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 40px; align-items: center; }
.line-hero .txt { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.line-hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.line-hero .media { height: 300px; width: 100%; border-radius: 20px; overflow: hidden; background: var(--fm-blue-600); position: relative; display: flex; align-items: center; justify-content: center; }
.line-hero .media > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line-hero .media .logo-on { position: relative; max-height: 150px; width: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25)); }
.tabs-bar { position: sticky; top: 77px; z-index: 5; background: #fff; border-bottom: 1px solid var(--fm-line); }
.tabs-bar .wrap { display: flex; gap: 4px; overflow-x: auto; }
.tabs-bar button { flex: none; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; border: 0; background: transparent; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--fm-ink-2); }
.tabs-bar button[aria-selected="true"] { color: var(--fm-navy); box-shadow: inset 0 -3px 0 var(--fm-orange); }
.tabs-bar button small { font-size: 13px; font-weight: 500; color: var(--fm-muted); }
.line-main { padding-top: 32px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.series-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--fm-line); padding-bottom: 10px; }
.series-head h2 { font-size: 24px; font-weight: 700; }
.series-head span { font-size: 15px; color: var(--fm-muted); }
.rows-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 12px; margin-top: 16px; }
.prow { border-radius: var(--r-md); padding: 12px 16px 12px 12px; display: grid; grid-template-columns: 64px minmax(0, 1fr) 20px; gap: 14px; align-items: center; min-height: 96px; }
a.prow:hover { border-color: #9DB8CC; box-shadow: 0 8px 20px rgba(11, 74, 120, .10); }
.prow .thumb { height: 84px; background: var(--fm-surface-2); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; }
.prow .thumb img { max-height: 72px; max-width: 54px; object-fit: contain; }
.prow strong { font-size: 15px; line-height: 1.3; color: var(--fm-navy); display: block; }
.prow .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }

/* ------------------------------------------------------------------ product */
.product-main { padding-top: 24px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.p-hero { border-radius: var(--r-xl); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 40px; }
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery .main { height: 460px; border-radius: var(--r-lg); background: var(--fm-surface-2); display: flex; align-items: center; justify-content: center; padding: 24px; }
.gallery .main img { max-height: 100%; max-width: 100%; object-fit: contain; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery .thumbs button { height: 84px; border-radius: 12px; border: 1px solid var(--fm-line); background: var(--fm-surface-2); padding: 8px; display: flex; align-items: center; justify-content: center; }
.gallery .thumbs button[aria-pressed="true"] { border: 2px solid var(--fm-navy); }
.gallery .thumbs img { max-height: 100%; max-width: 100%; object-fit: contain; }
.p-info { display: flex; flex-direction: column; gap: 20px; }
.p-info .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.p-info .pills .pill { font-size: 13px; padding: 5px 12px; }
.p-info h1 { font-size: clamp(26px, 2.8vw, 38px); overflow-wrap: anywhere; line-height: 1.12; font-weight: 700; letter-spacing: -.015em; color: var(--fm-navy); }
.p-info .intro { font-size: 17px; color: var(--fm-ink-2); white-space: pre-line; }
.keyfacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.keyfacts li { border: 1px solid var(--fm-line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.keyfacts span { font-size: 12px; color: var(--fm-muted); }
.keyfacts strong { font-size: 15px; }
.buybox { background: var(--fm-surface-2); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.buybox .packs { display: flex; gap: 8px; flex-wrap: wrap; }
.buybox .packs span { height: 48px; padding: 0 20px; border-radius: 10px; border: 2px solid var(--fm-navy); background: #fff; color: var(--fm-navy); font-size: 16px; font-weight: 700; display: inline-flex; align-items: center; }
.buybox .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--fm-line); padding-top: 16px; }
.buybox .price-label { font-size: 13px; color: var(--fm-muted); display: block; }
.buybox .price { font-size: 20px; font-weight: 700; color: var(--fm-navy); }
.doc-links { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-links a { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--fm-line); border-radius: 12px; text-decoration: none; color: var(--fm-ink); background: #fff; }
.doc-links a:hover { border-color: var(--fm-blue); color: var(--fm-ink); }
.doc-links .ic { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.doc-links strong { font-size: 15px; display: block; }
.doc-links small { font-size: 13px; color: var(--fm-muted); }
.sec-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--fm-line-input-2); overflow-x: auto; }
.sec-tabs a { height: 52px; padding: 0 18px; display: flex; align-items: center; font-size: 16px; font-weight: 500; color: var(--fm-ink-2); text-decoration: none; white-space: nowrap; }
.sec-tabs a.on, .sec-tabs a:hover { font-weight: 600; color: var(--fm-navy); box-shadow: inset 0 -3px 0 var(--fm-orange); }
.p-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 24px; align-items: start; }
.p-sec { padding: 28px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 100px; }
.p-sec h2 { font-size: 22px; font-weight: 700; }
.p-sec .body { font-size: 15px; line-height: 1.7; color: var(--fm-ink-2); white-space: pre-line; }
.key-ingr { display: flex; gap: 10px; flex-wrap: wrap; }
.key-ingr span { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; background: var(--fm-orange-soft); color: var(--fm-orange-soft-text); }
.key-ingr span.g { background: var(--fm-green-soft); color: var(--fm-green-text); }
.macros { display: flex; flex-direction: column; gap: 10px; }
.macro { display: grid; grid-template-columns: 150px minmax(0, 1fr) 64px; gap: 12px; align-items: center; font-size: 15px; }
.macro .bar { height: 8px; border-radius: 999px; background: var(--fm-sky-admin); overflow: hidden; display: flex; }
.macro .bar span { background: var(--fm-blue); border-radius: 999px; }
.macro strong { text-align: right; font-variant-numeric: tabular-nums; }
.kv-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.kv-table td { padding: 10px 0; border-top: 1px solid var(--fm-line-soft); vertical-align: top; }
.kv-table td:first-child { color: var(--fm-ink-2); padding-right: 12px; }
.kv-table td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.kibble { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kibble div { height: 180px; border-radius: 12px; background: var(--fm-surface-2); display: flex; align-items: center; justify-content: center; padding: 12px; }
.kibble img { max-height: 100%; max-width: 100%; object-fit: contain; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.rel { border-radius: var(--r-md); padding: 12px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.rel .thumb { height: 72px; background: var(--fm-surface-2); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.rel .thumb img { max-height: 62px; max-width: 46px; object-fit: contain; }
.rel strong { font-size: 15px; line-height: 1.3; color: var(--fm-navy); display: block; }
.rel small { font-size: 13px; color: var(--fm-muted); }
.sticky-buy { display: none; }

/* ------------------------------------------------------------------ where to buy */
.wtb { padding-top: 32px; padding-bottom: 80px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.wtb-left { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 96px; }
.region-list { border-radius: 16px; overflow: hidden; max-height: calc(100vh - 220px); overflow-y: auto; }
.region-list button { display: flex; justify-content: space-between; gap: 8px; width: 100%; border: 0; border-bottom: 1px solid var(--fm-line-soft); background: #fff; text-align: left; padding: 11px 16px; font-size: 15px; }
.region-list button:hover { background: var(--fm-surface-2); }
.region-list button[aria-pressed="true"] { background: var(--fm-navy); color: #fff; }
.region-list small { opacity: .75; font-variant-numeric: tabular-nums; }
.wtb-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; color: var(--fm-ink); border: 1px solid var(--fm-line-input-2); }
.chip small { font-size: 12px; padding: 2px 7px; border-radius: 999px; background: var(--fm-sky-admin); color: var(--fm-ink-2); }
.chip[aria-pressed="true"] { background: var(--fm-navy); border-color: var(--fm-navy); color: #fff; }
.chip[aria-pressed="true"] small { background: var(--fm-blue); color: #fff; }
.point-list { border-radius: 16px; overflow: hidden; }
.point { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--fm-line-soft); align-items: start; }
.point:first-child { border-top: 0; }
.point strong { display: block; margin-bottom: 4px; }
.point .addr { color: var(--fm-ink-2); font-size: 15px; }
.point .ph { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; font-size: 15px; }
.point .ph a { color: var(--fm-ink); text-decoration: none; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--fm-ink); color: #C9D8E3; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.site-footer .brand { display: flex; flex-direction: column; gap: 8px; }
.site-footer .brand b { font-size: 18px; font-weight: 600; color: #fff; }
.site-footer .brand span { font-size: 14px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.site-footer a { color: #C9D8E3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .ext { flex-basis: 100%; border-top: 1px solid #2A4152; padding-top: 18px; font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; }

/* ================================================================== admin */
body.admin { background: var(--fm-sky-admin); }
.admin-shell { display: flex; min-height: 100vh; }
.side { flex: 0 0 264px; background: var(--fm-navy); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 8px; color: #fff; text-decoration: none; }
.side .brand img { height: 48px; width: auto; max-width: 100%; background: #fff; border-radius: 12px; padding: 4px 10px; object-fit: contain; }
.side .brand span { font-size: 13px; line-height: 1.3; color: #C7DDEE; padding-left: 2px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--fm-chip); text-decoration: none; }
.side nav a:hover { background: var(--fm-blue-600); color: #fff; }
.side nav a[aria-current="page"] { background: #fff; color: var(--fm-navy); }
.side nav small { font-size: 12.5px; color: #9CC7E6; font-variant-numeric: tabular-nums; }
.side nav a[aria-current="page"] small { color: var(--fm-muted); }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--fm-orange); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side .who { margin-top: auto; padding: 12px 8px; border-top: 1px solid #2A6595; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #C7DDEE; }
.side .who a { color: #fff; }
.a-main { flex: 1; min-width: 0; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 24px; }
.a-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.a-head h1 { font-size: 32px; font-weight: 700; color: var(--fm-navy); }
.a-head .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.a-head .sub { font-size: 15px; color: var(--fm-muted); margin-top: 4px; }
.attention { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.attention a { background: #fff; border: 1px solid #F0C8A8; border-radius: var(--r-md); padding: 20px 22px; display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--fm-ink); }
.attention a:hover { box-shadow: var(--shadow-soft); color: var(--fm-ink); }
.attention .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--fm-orange-soft); color: var(--fm-orange-text); display: flex; align-items: center; justify-content: center; flex: none; }
.attention .tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.attention strong { font-size: 16px; }
.attention .tx span { font-size: 14px; color: var(--fm-muted); }
.attention .go { font-size: 15px; font-weight: 600; color: var(--fm-orange-text); white-space: nowrap; }
.panel { background: #fff; border: 1px solid var(--fm-line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.panel.flush { padding: 0; overflow: hidden; gap: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.panel-head h2 { font-size: 22px; font-weight: 700; }
.panel-head h2 span { color: var(--fm-muted); font-weight: 500; }
.panel-head .links { display: flex; gap: 16px; flex-wrap: wrap; }
.mixbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.tile { border: 1px solid var(--fm-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--fm-ink); }
.tile:hover { border-color: var(--fm-blue); color: var(--fm-ink); }
.tile .l { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fm-muted); }
.tile .l i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.tile b { font-size: 28px; font-weight: 700; color: var(--fm-navy); font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 24px; align-items: start; }
.matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.matrix th { text-align: left; color: var(--fm-muted); font-size: 13px; font-weight: 500; padding: 8px; }
.matrix th:first-child, .matrix td:first-child { padding-left: 0; }
.matrix td { padding: 12px 8px; border-top: 1px solid var(--fm-line-soft); }
.matrix td a { color: var(--fm-blue); }
.matrix td small { color: var(--fm-muted); font-variant-numeric: tabular-nums; margin-left: 4px; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }
.quick a { padding: 10px 14px; border-radius: 10px; background: var(--fm-sky-admin); text-decoration: none; font-size: 14px; font-weight: 500; }

.toolbar { display: flex; gap: 12px; padding: 16px; border-bottom: 1px solid var(--fm-line-soft); flex-wrap: wrap; align-items: center; }
.toolbar .searchbox { flex: 1 1 300px; }
label.inline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fm-muted); }
.filters-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filters-row .searchbox { flex: 1 1 280px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data thead { background: var(--fm-surface-3); }
table.data th { text-align: left; color: var(--fm-muted); font-size: 13px; font-weight: 600; padding: 12px; white-space: nowrap; }
table.data th:first-child, table.data td:first-child { padding-left: 16px; }
table.data td { padding: 14px 12px; border-top: 1px solid var(--fm-line-soft); vertical-align: top; }
table.data td .sub { display: block; font-size: 13px; color: var(--fm-muted); margin-top: 2px; font-weight: 400; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: #F7FAFC; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--fm-line-soft); flex-wrap: wrap; font-size: 14px; color: var(--fm-muted); }
.pager nav { display: flex; gap: 6px; flex-wrap: wrap; }
.pager nav button, .pager nav span { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--fm-line); background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 500; padding: 0 8px; }
.pager nav span { border: 0; background: transparent; }
.pager nav button[aria-current="page"] { background: var(--fm-navy); border-color: var(--fm-navy); color: #fff; font-weight: 600; }
.pager nav button[disabled] { opacity: .4; cursor: default; }

.split { display: flex; gap: 20px; align-items: flex-start; }
.list-panel { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--fm-line); border-radius: 16px; overflow: hidden; }
.list-head, .lrow { display: grid; grid-template-columns: minmax(0, 2.2fr) 90px 80px 70px 120px; gap: 12px; align-items: center; padding: 12px 16px; }
.list-head { background: var(--fm-surface-3); font-size: 13px; font-weight: 600; color: var(--fm-muted); }
.lrow { width: 100%; text-align: left; border: 0; border-top: 1px solid var(--fm-line-soft); background: #fff; min-height: 60px; font-size: 15px; }
.lrow:hover { background: #F7FAFC; }
.lrow[aria-pressed="true"] { background: #EAF2F9; box-shadow: inset 3px 0 0 var(--fm-blue); }
.lrow .who { min-width: 0; }
.lrow strong { font-size: 15px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .meta { font-size: 13px; color: var(--fm-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .role { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; background: var(--fm-chip); color: var(--fm-navy); justify-self: start; }
.status { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #8A9BA8; flex: none; }
.status.on i { background: var(--fm-ok); }
.card-panel { flex: 0 1 420px; max-width: 440px; background: #fff; border: 1px solid var(--fm-line); border-radius: 16px; box-shadow: 0 12px 32px rgba(11, 74, 120, .10); display: flex; flex-direction: column; position: sticky; top: 24px; max-height: calc(100vh - 48px); }
.card-panel .ch { padding: 22px 24px; border-bottom: 1px solid var(--fm-line-soft); display: flex; flex-direction: column; gap: 6px; }
.card-panel .ch .t { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card-panel .ch h2 { font-size: 20px; font-weight: 700; }
.card-panel .ch small { font-size: 13px; color: var(--fm-muted); white-space: nowrap; }
.card-panel .ch .meta { font-size: 14px; color: var(--fm-muted); }
.card-panel .ch a.doc { font-size: 14px; font-weight: 600; color: var(--fm-blue); display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.card-panel form { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.card-panel .cf { padding: 16px 24px; border-top: 1px solid var(--fm-line-soft); display: flex; gap: 10px; justify-content: flex-end; background: var(--fm-surface-3); border-radius: 0 0 16px 16px; }
.boxcheck { display: flex; align-items: center; gap: 10px; font-size: 15px; border: 1px solid var(--fm-line); border-radius: 10px; padding: 0 12px; height: 44px; }
.boxcheck input { width: 20px; height: 20px; accent-color: var(--fm-navy); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--fm-muted); }
.kv dd { margin: 0; }
.placeholder-panel { padding: 48px 24px; text-align: center; color: var(--fm-muted); }
.back-btn { display: none; }

.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--fm-line-input-2); flex-wrap: wrap; }
.tabs-line button { height: 44px; padding: 0 16px; border: 0; background: transparent; font-size: 15px; font-weight: 500; color: var(--fm-muted); display: flex; align-items: center; gap: 8px; }
.tabs-line button[aria-selected="true"] { font-weight: 600; color: var(--fm-navy); box-shadow: inset 0 -3px 0 var(--fm-orange); }
.tabs-line .cnt { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--fm-sky-admin); color: var(--fm-ink-2); }
.tabs-line .cnt.hot { background: var(--fm-orange); color: #fff; }
.mod-list { display: flex; flex-direction: column; gap: 16px; }
.mod { background: #fff; border: 1px solid var(--fm-line); border-radius: 16px; padding: 22px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; }
.mod .pic { width: 96px; height: 96px; border-radius: 12px; background: var(--fm-surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mod .pic img { max-width: 80%; max-height: 80%; object-fit: contain; }
.mod .body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mod .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.mod .top strong { font-size: 17px; }
.mod .top span { font-size: 14px; color: var(--fm-muted); font-variant-numeric: tabular-nums; }
.mod .prod { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--fm-sky-admin); color: var(--fm-navy); text-decoration: none; }
.mod .text { margin: 0; font-size: 15px; line-height: 1.6; color: #22394A; }
.mod textarea { width: 100%; border: 1px solid var(--fm-line-input); border-radius: 10px; padding: 10px 12px; font-size: 15px; min-height: 90px; resize: vertical; }
.mod .acts { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.mod .done { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: 15px; background: var(--fm-sky-admin); }
.mod .done b { font-weight: 600; }
.mod .done button { border: 0; background: transparent; color: var(--fm-blue); font-weight: 600; padding: 8px; }
.mod.q { grid-template-columns: minmax(0, 1fr); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.price-grid textarea { width: 100%; min-height: 90px; border: 1px dashed var(--fm-line-input); border-radius: 10px; padding: 10px; background: var(--fm-surface-3); font-size: 14px; }
.price-grid .panel { padding: 22px; gap: 14px; }
.tabbar { display: none; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--fm-ink); color: #fff; padding: 12px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 90; font-size: 15px; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.skeleton { background: linear-gradient(90deg, #E6EEF4, #F3F7FA, #E6EEF4); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: 16px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ================================================================== responsive (~1024 / 768 / 480) */
@container page (max-width: 1240px) { .site-header .wrap { gap: 16px; } .nav a { padding: 10px 8px; font-size: 14.5px; } }
@container page (max-width: 1100px) {
  .header-search { display: none; }
  .split { flex-direction: column; }
  .card-panel { position: static; max-width: none; width: 100%; max-height: none; flex-basis: auto; }
}
@container page (max-width: 1060px) {
  .nav, .header-actions { display: none; }
  .burger { display: inline-flex; }
  .site-header .wrap { gap: 12px; }
  .catalog { flex-direction: column; }
  .filters { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 86vh; flex-basis: auto; border-radius: 20px 20px 0 0; z-index: 80; transform: translateY(105%); transition: transform .25s ease; box-shadow: var(--shadow-sticky); }
  .filters.open { transform: none; }
  .filters .sheet-actions { position: sticky; bottom: -20px; background: #fff; padding: 12px 0 4px; }
  .filters-btn { display: inline-flex; }
  .wtb { grid-template-columns: 1fr; }
  .wtb-left { position: static; }
  .region-list { max-height: 280px; }
  .tabs-bar { top: 73px; }
}
@container page (min-width: 1061px) { .filters .sheet-actions, .filters .sheet-close { display: none; } }
@container page (max-width: 768px) {
  .wrap { padding: 0 16px; }
  .logo img { height: 42px; }
  .home-hero .wrap { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
  .home-hero h1 { font-size: 32px; }
  .hero-media { height: 240px; }
  .hero-media .packs img { height: 130px; }
  .page-band h1, .cat-band h1, .line-hero h1 { font-size: 30px; }
  .section-title { font-size: 26px; }
  .program-main { gap: 48px; }
  .join .side-b, .join form { padding: 24px; }
  .join form { grid-template-columns: 1fr; }
  .duo .card { grid-template-columns: 110px 1fr; }
  .duo .body { padding: 20px; }
  .p-hero { padding: 16px; gap: 20px; border-radius: 18px; }
  .gallery .main { height: 320px; }
  .p-info h1 { font-size: 28px; }
  .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-sec { padding: 20px; }
  .macro { grid-template-columns: 110px minmax(0, 1fr) 56px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: var(--shadow-sticky); padding: 12px 16px; gap: 10px; z-index: 20; justify-content: space-between; align-items: center; }
  .product-main { padding-bottom: 110px; }
  .point { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .point .ph { text-align: left; }
  /* admin: bottom tab bar instead of sidebar */
  .admin-shell { flex-direction: column; }
  .side { display: none; }
  .a-main { padding: 20px 16px 96px; }
  .a-head h1 { font-size: 26px; }
  .panel { padding: 20px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--fm-line); z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 62px; font-size: 11.5px; font-weight: 600; color: var(--fm-muted); text-decoration: none; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--fm-navy); }
  .tabbar a .badge { position: absolute; top: 6px; left: 54%; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  .list-head { display: none; }
  .lrow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .lrow > :nth-child(4) { display: none; }
  .split.editing .list-panel { display: none; }
  .split:not(.editing) .card-panel { display: none; }
  .back-btn { display: inline-flex; }
  .card-panel .cf { position: sticky; bottom: 62px; }
  .mod { grid-template-columns: 1fr; padding: 18px; }
  .mod .pic { display: none; }
  table.data.cards thead { display: none; }
  table.data.cards tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-top: 1px solid var(--fm-line-soft); gap: 4px 12px; }
  table.data.cards td { border: 0; padding: 0 !important; }
  table.data.cards td.wide { grid-column: 1 / -1; color: var(--fm-ink-2); font-size: 14px; }
  table.data.cards td.hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@container page (max-width: 600px) {
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc .ph { height: 150px; }
  .pc .ph img { max-height: 125px; }
  .pc .info { padding: 10px 12px 4px; }
  .pc .kind { font-size: 12px; }
  .pc strong { font-size: 14px; }
  .pc .foot { padding: 6px 12px 12px; }
  .pc .go { width: 36px; height: 36px; border-radius: 10px; }
  .pc .ph .pill { top: 8px; left: 8px; }
}
@container page (max-width: 1360px) and (min-width: 769px) {
  .list-head, .lrow { grid-template-columns: minmax(0, 1fr) 84px 64px 104px; }
  .list-head > :nth-child(4), .lrow > :nth-child(4) { display: none; }
}
@container page (max-width: 1200px) and (min-width: 769px) {
  .split { flex-direction: column; }
  .card-panel { position: static; max-width: none; width: 100%; max-height: none; flex-basis: auto; }
}
table.data.cards td:first-child { min-width: 220px; }
@container page (max-width: 768px) { table.data.cards td:first-child { min-width: 0; } }
@container page (max-width: 1060px) {
  .filters:not(.open) { visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
}
@container page (max-width: 768px) {
  .lines-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line-card { grid-template-rows: 40px auto; padding: 12px; }
  .line-card img { height: 40px; }
  .attention a { padding: 16px; gap: 12px; }
  .attention .go { display: none; }
  .tabs-line { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs-line button { flex: none; }
  .chip { height: auto; min-height: 40px; padding: 6px 12px; text-align: left; }
  .filters-row .select, .filters-row label.inline { max-width: none; flex: 1 1 140px; }
  .filters-row label.inline .select { width: 100%; }
}

/* ------------------------------------------------------------------ map (Где купить) */
.map-card { overflow: hidden; position: relative; }
.map { height: 440px; width: 100%; background: var(--fm-surface-2); z-index: 0; }
.map-legend { display: flex; gap: 16px; padding: 10px 16px; font-size: 13px; color: var(--fm-muted); border-top: 1px solid var(--fm-line-soft); }
.map-legend:empty { display: none; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .lg { width: 12px; height: 12px; border-radius: 50%; background: var(--fm-navy); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--fm-navy); }
.map-legend .lg.approx { background: #fff; border: 2px dashed var(--fm-navy); box-shadow: none; }
.pin { background: none; border: 0; }
.pin i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(15, 37, 54, .45); }
.pin.approx i { background: rgba(255, 255, 255, .85); border: 2px dashed var(--c); box-shadow: none; }
.pin-cluster { background: none; }
.pin-cluster span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fm-navy); color: #fff; font: 700 13px var(--fm-font); border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(11, 74, 120, .35); }
.leaflet-container { font-family: var(--fm-font); }
.leaflet-popup-content-wrapper { border-radius: 12px; }
.pop { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; }
.pop b { font-size: 15px; }
.pop-cat { font-size: 12px; font-weight: 600; }
.pop-note { font-size: 12px; color: var(--fm-muted); margin-top: 4px; }
.point.on { background: #EAF2F9; box-shadow: inset 3px 0 0 var(--fm-blue); }
.show-on-map { height: auto; padding: 4px 0; font-size: 14px; margin-top: 4px; }
@container page (max-width: 768px) { .map { height: 320px; } }

/* ------------------------------------------------------------------ prototype entry page */
body.splash { background: var(--fm-navy); }
.splash-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 16px;
  background: radial-gradient(1200px 600px at 80% -10%, #1B6CA8 0%, transparent 60%), var(--fm-navy); color: #fff; }
.splash-in { width: min(980px, 100%); display: flex; flex-direction: column; gap: 32px; }
.splash-head { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.splash-logo { background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-flex; }
.splash-logo img { height: 44px; width: auto; }
.splash-head .over { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fm-on-navy-2); margin-top: 8px; }
.splash-head h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.splash-head p { font-size: 18px; color: var(--fm-on-navy); }
.splash-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.splash-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-xl); background: #fff; color: var(--fm-ink); text-decoration: none;
  box-shadow: 0 20px 48px rgba(0, 20, 40, .28); transition: transform .15s ease, box-shadow .15s ease; }
.splash-card:hover { transform: translateY(-3px); box-shadow: 0 28px 56px rgba(0, 20, 40, .36); color: var(--fm-ink); }
.splash-card .ic { width: 56px; height: 56px; border-radius: 16px; background: #FFF1E6; color: var(--fm-orange); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.splash-card.admin .ic { background: var(--fm-sky); color: var(--fm-navy); }
.splash-card .kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fm-orange-text, #A94808); }
.splash-card.admin .kicker { color: var(--fm-blue); }
.splash-card strong { font-size: 26px; line-height: 1.15; color: var(--fm-navy); }
.splash-card .txt { font-size: 16px; color: var(--fm-ink-2); line-height: 1.5; }
.splash-card .demo { font-size: 14px; color: var(--fm-muted); margin-bottom: 10px; }
.splash-card .go { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: var(--r-sm);
  background: var(--fm-orange); color: #fff; font-weight: 600; font-size: 16px; }
.splash-card.admin .go { background: var(--fm-navy); }
.splash-site { align-self: center; display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 16px; font-weight: 500; text-decoration: none;
  padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); }
.splash-site:hover { border-color: #fff; color: #fff; }
.splash-site svg { flex: none; }
@container page (max-width: 768px) {
  .splash-page { align-items: flex-start; padding-top: 28px; }
  .splash-cards { grid-template-columns: 1fr; }
  .splash-card { padding: 22px; }
  .splash-card strong { font-size: 22px; }
  .splash-site { text-align: center; }
}

/* ------------------------------------------------------------------ participant cabinet */
.asadmin { background: #FFF4E8; border-bottom: 1px solid #F3D3B3; color: #7A3A06; font-size: 14px; }
.asadmin .wrap { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.asadmin a { margin-left: auto; font-weight: 600; color: #7A3A06; }
.cab-band .wrap { padding-bottom: 32px; gap: 18px; }
.cab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.cab-head .lead-light { margin-top: 8px; max-width: none; }
.cab-type { font-size: 14px; color: var(--fm-on-navy-2); margin-top: 4px; }
.cab-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cab-facts > div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cab-facts span { font-size: 13px; color: var(--fm-on-navy-2); }
.cab-facts b { font-size: 28px; font-weight: 700; color: #fff; line-height: 1.15; }
.cab-facts b.sm { font-size: 18px; overflow-wrap: anywhere; }
.cab-facts small { font-size: 13px; color: var(--fm-on-navy); line-height: 1.4; }
.cab-facts a { font-size: 14px; font-weight: 600; color: #fff; }
.cab-main { padding-top: 24px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.cab-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--fm-line-input-2); overflow-x: auto; scrollbar-width: none; }
.cab-tabs a { flex: none; padding: 12px 16px; font-size: 16px; font-weight: 500; color: var(--fm-muted); text-decoration: none; white-space: nowrap; }
.cab-tabs a[aria-selected="true"] { color: var(--fm-navy); font-weight: 600; box-shadow: inset 0 -3px 0 var(--fm-orange); }
.cab-pane { display: flex; flex-direction: column; gap: 16px; }
.cab-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cab-sec-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.cab-sec-head p { margin-top: 4px; }
.cab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cab-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cab-card.wide { grid-column: 1 / -1; }
.cab-card h3 { font-size: 17px; font-weight: 700; }
.cab-kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.cab-kv dt { color: var(--fm-muted); }
.cab-kv dd { margin: 0; overflow-wrap: anywhere; }
.breeds { display: flex; flex-wrap: wrap; gap: 10px; }
.breed { border: 1px solid var(--fm-line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; background: var(--fm-surface-3); }
.breed span { font-size: 14px; color: var(--fm-muted); }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchips.pick .pill { border: 1px solid var(--fm-line-input-2); background: #fff; color: var(--fm-ink); cursor: pointer; font-size: 13px; padding: 7px 12px; }
.tchips.pick .pill[aria-pressed="true"] { background: var(--fm-navy); border-color: var(--fm-navy); color: #fff; }
.cab-form { display: flex; flex-direction: column; gap: 16px; }
.cab-form fieldset { margin: 0; }
.cab-form legend { font-size: 17px; font-weight: 700; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.cab-form legend + * { clear: both; }
.f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dob { display: grid; grid-template-columns: 70px 1fr 90px; gap: 6px; }
.dob select { height: var(--control-h); border: 1px solid var(--fm-line-input); border-radius: var(--r-sm); padding: 0 8px; font-size: 15px; background: #fff; min-width: 0; }
.breed-row { display: grid; grid-template-columns: minmax(0, 2fr) 110px 130px 130px 48px; gap: 10px; align-items: end; padding: 10px 0; border-top: 1px solid var(--fm-line-soft); }
.cab-actions { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; padding: 12px 16px; margin: 0 -16px; background: rgba(233,241,247,.94); backdrop-filter: blur(6px); border-top: 1px solid var(--fm-line-soft); }
.cab-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--r-md); background: #FFF4E8; border: 1px solid #F3D3B3; color: #5C2C05; }
.cab-banner div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cab-banner strong { font-size: 15px; }
.cab-price-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.cab-price-top .searchbox { flex: 0 1 320px; }
.price-t td, .price-t th { vertical-align: middle; }
.price-t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-t tr.grp td { background: var(--fm-surface-3); font-size: 13px; font-weight: 700; color: var(--fm-ink-2); text-transform: uppercase; letter-spacing: .04em; padding-top: 8px; padding-bottom: 8px; }
.pp { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fm-ink); font-weight: 500; }
.pp img { width: 40px; height: 48px; object-fit: contain; flex: none; }
.pp small { display: block; font-size: 12px; color: var(--fm-muted); font-weight: 400; }
a.pp:hover span { color: var(--fm-blue); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--fm-green-text, #2E7D52); border-bottom: 2.5px solid var(--fm-green-text, #2E7D52); transform: rotate(-45deg); }
.ticks.big li { font-size: 16px; }
.pa-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pa-stats div { background: var(--fm-surface-3); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pa-stats b { font-size: 22px; color: var(--fm-navy); }
.pa-stats span { font-size: 13px; color: var(--fm-muted); }
.cab-access { flex-direction: row; align-items: center; gap: 14px; background: var(--fm-sky); border-color: transparent; color: var(--fm-navy); }
.cab-access div { display: flex; flex-direction: column; gap: 2px; }
.cab-access span { color: var(--fm-ink-2); font-size: 15px; }
.cab-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.doc-card { display: flex; gap: 14px; align-items: center; padding: 18px 20px; text-decoration: none; color: var(--fm-navy); }
.doc-card div { display: flex; flex-direction: column; gap: 2px; }
.doc-card strong { color: var(--fm-ink); }
.doc-card span { font-size: 14px; color: var(--fm-muted); }
.doc-card:hover { border-color: var(--fm-blue); }
@container page (max-width: 1060px) { .cab-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 768px) {
  .cab-grid { grid-template-columns: 1fr; }
  .f3 { grid-template-columns: 1fr; }
  .breed-row { grid-template-columns: 1fr 1fr; }
  .breed-row .field:first-child { grid-column: 1 / -1; }
  .breed-row .icon-btn { justify-self: end; grid-column: 2; }
  .cab-kv { grid-template-columns: 1fr; gap: 2px; }
  .cab-kv dd { margin-bottom: 10px; }
  .cab-sec-head h2 { font-size: 22px; }
  .cab-facts b { font-size: 22px; }
  .price-t .pp img { display: none; }
}
@container page (max-width: 480px) { .cab-facts { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ admin: anketa, prices editor */
.card-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.anketa { border: 1px solid var(--fm-line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.anketa summary { font-weight: 600; cursor: pointer; }
.anketa[open] summary { margin-bottom: 10px; }
.anketa .kv { grid-template-columns: 140px 1fr; }
.a-breeds { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin: 10px 0 8px; }
.prices-split .pl-list { flex: 0 0 340px; }
.prices-split .pl-edit { flex: 1 1 auto; max-width: none; min-width: 0; }
.pl-group { padding: 12px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fm-muted); background: var(--fm-surface-3); }
.lrow.pl { grid-template-columns: minmax(0, 1fr) auto; min-height: 56px; }
.lrow.pl .meta { white-space: normal; }
.pl-edit .ch .tabs-line { border-bottom: 0; margin-top: 6px; }
.pt-wrap { overflow: auto; flex: 1 1 auto; }
.price-in { width: 120px; height: 38px; border: 1px solid var(--fm-line-input); border-radius: 8px; padding: 0 10px; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.price-in:focus { border-color: var(--fm-blue); outline: 2px solid rgba(27,108,168,.2); }
.price-in.bad { border-color: #C0392B; background: #FDF0EE; }
.pl-edit .cf { align-items: center; }
.pl-edit .cf #dirty { margin-right: auto; }
@container page (max-width: 1100px) { .prices-split .pl-list { flex-basis: auto; width: 100%; } }

/* ------------------------------------------------------------------ assistant panel */
:root { --fa-w: 440px; }
#fa-root { font-size: 15px; }
/* панель сдвигает страницу влево: вёрстка страницы реагирует на ширину body (container queries), а не окна */
@media (min-width: 901px) {
  html.fa-open body { margin-right: var(--fa-w); }
  html.fa-open .mobile-menu, html.fa-open .sheet-bg, html.fa-open .filters, html.fa-open .sticky-buy, html.fa-open .tabbar { right: var(--fa-w) !important; }
  html.fa-open .toast { left: calc(50% - var(--fa-w) / 2); }
}
.fa-toggle { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 10px; border: 0; border-radius: 12px 0 0 12px; background: var(--fm-navy); color: #fff; font-weight: 600; font-size: 13px;
  box-shadow: -6px 6px 20px rgba(11,74,120,.25); cursor: pointer; }
.fa-toggle span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .04em; }
.fa-toggle:hover { background: var(--fm-blue); }
html.fa-open .fa-toggle { display: none; }
.fa-panel { position: fixed; top: 0; right: 0; bottom: 0; width: var(--fa-w); z-index: 95; background: #fff; border-left: 1px solid var(--fm-line);
  box-shadow: -12px 0 32px rgba(11,74,120,.12); display: flex; flex-direction: column; color: var(--fm-ink); }
.fa-panel[hidden] { display: none; }
.fa-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--fm-line-soft); }
.fa-title { display: flex; flex-direction: column; line-height: 1.2; }
.fa-title strong { font-size: 17px; color: var(--fm-navy); }
.fa-title small { font-size: 12px; color: var(--fm-muted); }
.fa-spend { margin-left: auto; display: flex; flex-direction: column; gap: 4px; min-width: 110px; font-size: 12px; color: var(--fm-muted); }
.fa-spend i { display: block; height: 6px; border-radius: 99px; background: var(--fm-line-soft); overflow: hidden; }
.fa-spend em { display: block; height: 100%; background: var(--fm-green-text, #2E7D52); }
.fa-spend em.warm { background: #D98A1E; }
.fa-spend em.hot { background: #C0392B; }
.fa-x { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; color: var(--fm-ink-2); display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.fa-x:hover { background: var(--fm-sky); }
.fa-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--fm-line-soft); }
.fa-tabs button { height: 44px; padding: 0 14px; border: 0; background: transparent; font-weight: 500; color: var(--fm-muted); font-size: 15px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.fa-tabs button[aria-selected="true"] { color: var(--fm-navy); font-weight: 600; box-shadow: inset 0 -3px 0 var(--fm-orange); }
.fa-cnt:not(:empty) { font-size: 12px; padding: 1px 7px; border-radius: 99px; background: var(--fm-orange); color: #fff; }
.fa-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fa-body[hidden] { display: none; }
.fa-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--fm-surface-3); }
.fa-m { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.fa-m.me { align-items: flex-end; }
.fa-m.me .b { background: var(--fm-navy); color: #fff; border-radius: 14px 14px 4px 14px; padding: 10px 14px; max-width: 88%; overflow-wrap: anywhere; }
.fa-m.me small { font-size: 11px; color: var(--fm-muted); }
.fa-m.ai .b { background: #fff; border: 1px solid var(--fm-line); border-radius: 14px 14px 14px 4px; padding: 12px 14px; overflow-wrap: anywhere; }
.fa-m.sys { align-self: center; font-size: 13px; color: var(--fm-green-text, #1E5B3E); background: #E7F3EC; padding: 6px 12px; border-radius: 99px; text-align: center; }
.md p { margin: 0 0 8px; } .md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 0 0 8px; padding-left: 20px; } .md li { margin: 2px 0; }
.md h4 { font-size: 15px; margin: 12px 0 6px; color: var(--fm-navy); } .md h4:first-child { margin-top: 0; }
.md code { font-size: 13px; background: var(--fm-sky); padding: 1px 5px; border-radius: 5px; }
.fa-tw { overflow-x: auto; margin: 6px 0; } .fa-tw table { border-collapse: collapse; font-size: 13px; }
.fa-tw th, .fa-tw td { border: 1px solid var(--fm-line); padding: 4px 8px; text-align: left; }
.fa-tools { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--fm-muted); padding-left: 4px; }
.fa-tools span::before { content: "· "; }
.fa-tools code { font-size: 11px; }
.fa-err { font-size: 14px; color: #8A2617; background: #FDF0EE; border: 1px solid #F2C9C2; border-radius: 10px; padding: 8px 12px; }
.fa-prev { border: 1px solid #F3D3B3; background: #FFF8F1; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.fa-prev.on { border-color: #9FD0B5; background: #EFF8F3; }
.fa-prev .t { display: flex; align-items: center; gap: 8px; color: var(--fm-navy); }
.fa-prev p { margin: 0; font-size: 14px; color: var(--fm-ink-2); }
.fa-prev .a { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; }
.fa-prev .ok { color: var(--fm-green-text, #1E5B3E); font-weight: 600; }
.fa-dots { display: inline-flex; gap: 4px; } .fa-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fm-muted); animation: fa-b 1s infinite ease-in-out; }
.fa-dots i:nth-child(2) { animation-delay: .15s; } .fa-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes fa-b { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.fa-empty { background: #fff; border: 1px solid var(--fm-line); border-radius: 14px; padding: 16px; font-size: 14px; color: var(--fm-ink-2); }
.fa-empty b { font-size: 16px; color: var(--fm-navy); } .fa-empty p { margin: 6px 0; } .fa-empty ul { margin: 0 0 10px; padding-left: 18px; }
.fa-sugg { display: flex; flex-direction: column; gap: 6px; }
.fa-sugg button { text-align: left; border: 1px solid var(--fm-line-input-2); background: var(--fm-surface-3); border-radius: 10px; padding: 8px 12px; font-size: 14px; color: var(--fm-ink); cursor: pointer; }
.fa-sugg button:hover { border-color: var(--fm-blue); }
.fa-input { border-top: 1px solid var(--fm-line-soft); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.fa-input textarea { width: 100%; resize: none; min-height: 64px; max-height: 200px; field-sizing: content; border: 1px solid var(--fm-line-input); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; }
.fa-input textarea:focus { outline: 2px solid rgba(27,108,168,.25); border-color: var(--fm-blue); }
.fa-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fa-hint { font-size: 12px; color: var(--fm-muted); }
.fa-actions { border-top: 1px dashed var(--fm-line-soft); padding-top: 8px; }
.fa-actions .btn.cta { flex: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.fa-sheet { position: absolute; inset: 0; background: rgba(11,30,48,.35); display: flex; align-items: flex-end; z-index: 2; }
.fa-sheet[hidden] { display: none; }
.fa-sheet-in { background: #fff; width: 100%; max-height: 92%; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.fa-sh-head { display: flex; justify-content: space-between; align-items: center; } .fa-sh-head h3 { font-size: 18px; color: var(--fm-navy); }
.fa-kind { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--fm-sky); color: var(--fm-navy); }
.fa-f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fm-ink-2); }
.fa-f textarea { border: 1px solid var(--fm-line-input); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 15px; font-weight: 400; color: var(--fm-ink); resize: vertical; }
.fa-f textarea[name=title] { font-weight: 600; }
.fa-det { border: 1px solid var(--fm-line); border-radius: 12px; padding: 10px 12px; }
.fa-det summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--fm-navy); }
.fa-det[open] summary { margin-bottom: 8px; }
.fa-det textarea { width: 100%; border: 1px solid var(--fm-line-input); border-radius: 10px; padding: 8px 10px; font: 13px/1.5 ui-monospace, monospace; }
.fa-det-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.fa-det-tabs button { border: 1px solid var(--fm-line-input-2); background: #fff; border-radius: 8px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.fa-det-tabs button[aria-pressed="true"] { background: var(--fm-navy); color: #fff; border-color: var(--fm-navy); }
.fa-det-view { font-size: 14px; }
.fa-meta { font-size: 13px; color: var(--fm-muted); margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fa-segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fa-segs button { border: 1px solid var(--fm-line-input-2); background: #fff; border-radius: 10px; padding: 8px 6px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--fm-ink); }
.fa-segs button[aria-checked="true"].crit { background: #C0392B; border-color: #C0392B; color: #fff; }
.fa-segs button[aria-checked="true"].imp { background: var(--fm-orange); border-color: var(--fm-orange); color: #fff; }
.fa-segs button[aria-checked="true"].nice { background: var(--fm-navy); border-color: var(--fm-navy); color: #fff; }
.fa-sh-act { display: flex; justify-content: flex-end; gap: 8px; position: sticky; bottom: -18px; background: #fff; padding: 10px 0 0; }
.fa-loading { display: flex; align-items: center; gap: 10px; padding: 24px; color: var(--fm-muted); font-size: 14px; }
#fa-tasks { overflow-y: auto; background: var(--fm-surface-3); }
.fa-tf { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px; position: sticky; top: 0; background: var(--fm-surface-3); z-index: 1; }
.fa-tf button { border: 1px solid var(--fm-line-input-2); background: #fff; border-radius: 99px; padding: 5px 10px; font-size: 13px; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.fa-tf button small { color: var(--fm-muted); }
.fa-tf button[aria-pressed="true"] { background: var(--fm-navy); color: #fff; border-color: var(--fm-navy); } .fa-tf button[aria-pressed="true"] small { color: #CFE2F1; }
.fa-tlist { padding: 0 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.fa-task { background: #fff; border: 1px solid var(--fm-line); border-radius: 14px; overflow: hidden; }
.fa-task-h { width: 100%; text-align: left; border: 0; background: transparent; padding: 12px 14px 6px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; color: var(--fm-ink); }
.fa-task-h .n { font-size: 12px; color: var(--fm-muted); }
.fa-task-h strong { font-size: 15px; line-height: 1.35; }
.fa-task-h .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.fa-task-h em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--fm-sky); color: var(--fm-navy); display: inline-flex; align-items: center; gap: 4px; }
.fa-task-h em.crit { background: #FBE3DF; color: #8A2617; } .fa-task-h em.imp { background: #FFF0E3; color: #8A3D06; }
.fa-task-h .meta { font-size: 12px; color: var(--fm-muted); }
.fa-st { display: flex; align-items: center; gap: 8px; padding: 0 14px 12px; font-size: 13px; color: var(--fm-muted); }
.fa-st select { border: 1px solid var(--fm-line-input); border-radius: 8px; padding: 4px 8px; font-size: 14px; background: #fff; }
.fa-task-b { border-top: 1px solid var(--fm-line-soft); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.fa-task-b p { margin: 0; }
.fa-tr { display: flex; flex-direction: column; gap: 8px; font-size: 13px; max-height: 360px; overflow-y: auto; }
.fa-tr > div { border-left: 3px solid var(--fm-line); padding-left: 8px; } .fa-tr > div.me { border-color: var(--fm-navy); } .fa-tr p { margin: 2px 0 0; }
.fa-pill { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 96; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px;
  background: #1D2B36; color: #fff; border-radius: 99px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; }
@media (min-width: 901px) { html.fa-open .fa-pill { left: calc(50% - var(--fa-w) / 2); } }
.fa-pill[hidden] { display: none; }
.fa-pill button { border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; border-radius: 99px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.fa-pill button:hover { border-color: #fff; }
@media (max-width: 900px) {
  :root { --fa-w: 100vw; }
  .fa-panel { border-left: 0; }
  .fa-toggle { top: auto; bottom: 88px; transform: none; border-radius: 99px 0 0 99px; flex-direction: row; padding: 10px 14px 10px 12px; }
  .fa-toggle span { writing-mode: horizontal-tb; transform: none; }
  body.admin .fa-toggle { bottom: 78px; }
  .fa-pill { bottom: 84px; max-width: calc(100vw - 24px); font-size: 13px; }
  .fa-spend { min-width: 90px; }
}
/* вложения в чате ассистента */
.fa-clip { width: 38px; height: 38px; border: 1px solid var(--fm-line-input-2); background: #fff; border-radius: 10px; color: var(--fm-ink-2); display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: pointer; }
.fa-clip:hover { border-color: var(--fm-blue); color: var(--fm-blue); }
.fa-row .fa-hint { flex: 1; }
.fa-att { display: flex; flex-wrap: wrap; gap: 6px; }
.fa-att[hidden] { display: none; }
.fa-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 6px; border: 1px solid var(--fm-line); border-radius: 10px; background: var(--fm-surface-3); font-size: 13px; }
.fa-chip img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.fa-chip > span:not(.fa-dots) { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-chip.up { color: var(--fm-muted); padding-right: 10px; }
.fa-chip button { border: 0; background: transparent; width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: var(--fm-muted); cursor: pointer; }
.fa-chip button:hover { background: #fff; color: var(--fm-ink); }
.fa-files { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: flex-start; }
.fa-tr .fa-files { justify-content: flex-start; margin-top: 4px; }
.fa-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--fm-line); border-radius: 10px; background: #fff; font-size: 13px; color: var(--fm-ink); text-decoration: none; max-width: 240px; }
.fa-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fa-file.img { padding: 0; overflow: hidden; border-radius: 12px; }
.fa-file.img img { display: block; max-width: 220px; max-height: 160px; object-fit: cover; }
.fa-drop { position: absolute; inset: 0; z-index: 3; background: rgba(233,241,247,.92); border: 2px dashed var(--fm-blue); border-radius: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fa-drop[hidden] { display: none; }
.fa-drop div { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--fm-navy); text-align: center; }
.fa-drop span { font-size: 13px; color: var(--fm-ink-2); }
/* вход и «Доступ» */
.auth-card { width: min(420px, 100%); background: #fff; color: var(--fm-ink); border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 48px rgba(0,20,40,.28); }
.auth-card .splash-logo { align-self: flex-start; padding: 0; }
.auth-card h1 { font-size: 26px; color: var(--fm-navy); margin-top: 6px; }
.auth-card .btn.lg { width: 100%; margin-top: 4px; }
.auth-card .pw { position: relative; display: block; }
.auth-card .pw input { padding-right: 48px; }
.auth-card .pw .icon-btn { position: absolute; right: 0; top: 0; height: 100%; width: 44px; color: var(--fm-muted); }
.auth-err { margin: 0; color: #8A2617; background: #FDF0EE; border: 1px solid #F2C9C2; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.auth-err[hidden] { display: none; }
.splash-page:has(.auth-card) { align-items: center; }
.splash-user { align-self: flex-end; display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--fm-on-navy); flex-wrap: wrap; }
.splash-user a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.sys-add { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto auto; gap: 12px; align-items: end; }
.sys-issued { margin-top: 4px; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: #EFF8F3; border: 1px solid #9FD0B5; }
.sys-issued code { font-size: 16px; font-weight: 700; background: #fff; padding: 2px 8px; border-radius: 6px; letter-spacing: .04em; }
.sys-issued small { color: var(--fm-ink-2); }
.sys-t tr.off td { opacity: .55; }
.sys-t .acts-cell { white-space: nowrap; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
table.data .sub { display: block; font-size: 13px; color: var(--fm-muted); }
table.data td.nowrap, .nowrap { white-space: nowrap; }
table.data tr.login td { background: #F5FAF7; }
.sys-bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 8px; }
.sys-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.sys-bars i { display: block; width: 100%; max-width: 28px; background: var(--fm-blue); border-radius: 4px 4px 0 0; min-height: 2px; }
.sys-bars small { font-size: 10px; color: var(--fm-muted); }
@container page (max-width: 900px) { .sys-add { grid-template-columns: 1fr; } }
