body.theme-sr {
  --banner-h: 0px;
  --primary: #2D4739;
  --ink: #1C241F;
  --font: "Inter", system-ui, sans-serif;
  --display: "Inter", system-ui, sans-serif;
  --radius: 14px;
  background: #F3F3F1;
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}
body.theme-sr .demo-banner,
body.theme-sr .demo-mark,
body.theme-sr .ghost-roles { display: none !important; }
body.theme-sr .home-hero .veil,
body.theme-sr .feat .veil {
  background: none !important;
  color: inherit;
}
body.theme-sr img { -webkit-mask-image: none !important; mask-image: none !important; }

body.theme-sr #app {
  max-width: 1360px;
  margin: 0 auto;
  min-height: 100vh;
  background: #F3F3F1;
  box-shadow: 0 0 0 1px #E6E8E4;
}
.sr-chrome {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid #E6E8E4;
}
.sr-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 28px 8px;
  background: #fff;
}
.sr-roles {
  display: flex; align-items: stretch; flex-wrap: wrap;
  gap: 0; padding: 0 16px 0;
  background: #fff;
}
.sr-roles button {
  appearance: none; border: none; background: transparent;
  padding: 9px 14px; margin: 0; border-radius: 0;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: #5c675f; border-bottom: 2px solid transparent;
}
.sr-roles button:hover { color: #2D4739; background: #F7F8F6; }
.sr-roles button.active {
  color: #2D4739; font-weight: 700;
  border-bottom-color: #2D4739; background: transparent;
}
body.theme-sr .lang-switch {
  display: flex; gap: 3px; flex-wrap: wrap;
  padding: 3px; background: #E8EAE6; border-radius: 10px;
}
body.theme-sr .lang-switch button {
  width: auto; min-width: 70px; height: auto; padding: 7px 11px;
  border-radius: 8px; border: none;
  background: transparent; color: #2D4739; font-size: 12px; font-weight: 700;
}
body.theme-sr .lang-switch button.active {
  background: #2D4739; color: #fff;
}
body.theme-sr .sr-top .lang-switch { margin-right: 4px; }
body.theme-sr .sr-side .lang-switch { display: none; }
.sr-card.sel { box-shadow: inset 0 0 0 2px #2D4739; }
.sr-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: #2D4739; letter-spacing: -0.03em;
}
.sr-brand img, .sr-brand .mark {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  background: #2D4739; display: block;
}
.sr-brand .mark svg { width: 16px; height: 16px; }
.sr-top-right { display: flex; align-items: center; gap: 14px; }
.sr-user { font-size: 14px; font-weight: 600; color: #2A332C; }
.sr-user small { opacity: 0.45; margin-left: 4px; font-size: 10px; }
.sr-pin {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: #5c675f; font-weight: 600;
}
.sr-pin svg { width: 14px; height: 14px; opacity: 0.7; }
.sr-sub {
  padding: 6px 12px; border-radius: 999px;
  background: #EEF0EC; color: #1C241F; font-size: 12px; font-weight: 700;
}

.sr-layout {
  display: grid; grid-template-columns: 216px minmax(0, 1fr);
  min-height: calc(100vh - 57px);
}
.sr-side { padding: 14px 0 24px; background: #F3F3F1; border-right: 1px solid #E8E9E6; }
.sr-side nav { display: flex; flex-direction: column; gap: 1px; }
.sr-side a {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 18px;
  border-radius: 0 10px 10px 0;
  color: #4a5550; font-weight: 500; font-size: 13.5px;
}
.sr-side a svg { width: 16px; height: 16px; opacity: 0.55; flex-shrink: 0; }
.sr-side a.active { background: #E4E6E2; color: #1C241F; font-weight: 650; }
.sr-side a.active svg { opacity: 0.9; }
.sr-side a.active::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: #2D4739;
}
.sr-main { padding: 22px 28px 48px; background: #F3F3F1; max-width: 1080px; }

.sr-pets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.sr-pet {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center;
  background: #fff; border-radius: 16px; padding: 14px;
  box-shadow: 0 6px 20px rgba(28, 36, 31, 0.04);
}
.sr-pet img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; }
.sr-pet h3 { margin: 0 0 3px; font-size: 18px; font-weight: 700; color: #1C241F; }
.sr-pet p { margin: 0 0 8px; font-size: 13px; color: #6b746e; }
.sr-pet .btn { margin-top: 8px; border-radius: 8px; }

.sr-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 14px; margin-bottom: 14px; }
.sr-card {
  background: #fff; border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 6px 20px rgba(28, 36, 31, 0.04);
}
.sr-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #1C241F; }
.sr-metrics { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 4px; }
.sr-metrics b { font-size: 22px; display: block; }
.sr-metrics span { font-size: 12px; color: #6b746e; font-weight: 600; }
.sr-ok b { color: #2A8A4A; }
.sr-mid b { color: #C4921A; }
.sr-zero b { color: #8A918B; }
.sr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sr-table th { text-align: left; color: #8A918B; font-weight: 600; padding: 6px 6px 8px; }
.sr-table td { padding: 9px 6px; border-top: 1px solid #F0F1EE; font-weight: 550; }
.chip.soon { background: #F8E6C8; color: #B56A12; }

body.theme-sr .btn { border-radius: 8px; font-weight: 650; }
body.theme-sr .btn-primary { background: #2D4739; color: #fff; }
body.theme-sr .btn-ghost {
  background: #fff; color: #2D4739;
  border: 1px solid #D5D8D3;
}
body.theme-sr .h { font-weight: 700; color: #1C241F; }
body.theme-sr .cal.big i { min-height: 58px; background: #F7F8F6; }
body.theme-sr .cal.big i.mark { background: #E8EDE6; }
body.theme-sr .cal.big i.on { background: #2D4739; }
body.theme-sr .page-foot { color: #8A918B; }
body.theme-sr .tile,
body.theme-sr .panel,
body.theme-sr .feed-card,
body.theme-sr .pet-card,
body.theme-sr .row,
body.theme-sr .field,
body.theme-sr .owner-strip,
body.theme-sr .news-card,
body.theme-sr .more,
body.theme-sr .sample-file {
  background: #fff;
  border: 1px solid #E6E8E4;
  box-shadow: 0 6px 20px rgba(28, 36, 31, 0.04);
}
body.theme-sr .zone-pill.yellow { background: #FFF4D4; color: #111; border-color: #F0D48A; }
body.theme-sr .zone-pill.yellow i { background: #E8A317; box-shadow: none; }
body.theme-sr .zone-pill { font-weight: 650; }

.ghost-roles {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px; opacity: 0.4;
}
.ghost-roles button {
  border: none; background: none; color: #5c675f;
  font-size: 11px; font-weight: 600; cursor: pointer;
}

.sr-title { margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: #1C241F; }
.sr-lead { margin: 0 0 16px; font-size: 13px; color: #6b746e; }
.sr-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sr-kpi {
  background: #fff; border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(28, 36, 31, 0.04);
}
.sr-kpi b { display: block; font-size: 22px; font-weight: 700; color: #1C241F; }
.sr-kpi span { font-size: 11.5px; color: #6b746e; font-weight: 600; }
.sr-kpi.warn b { color: #B56A12; }
.sr-kpi.danger b { color: #B42318; }
.sr-kpi.ok b { color: #2A8A4A; }

.sr-alert {
  display: flex; gap: 12px; align-items: flex-start;
  background: #FFF6E0; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px;
}
.sr-alert.danger { background: #FDECEC; }
.sr-alert.ok { background: #E8F6EE; }
.sr-alert strong { display: block; font-size: 14px; margin-bottom: 2px; }
.sr-alert p { margin: 0; font-size: 13px; color: #6b746e; }

.sr-slot {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 0; border-top: 1px solid #F0F1EE;
}
.sr-slot:first-of-type { border-top: none; }
.sr-slot b { font-size: 18px; font-variant-numeric: tabular-nums; color: #1C241F; }
.sr-slot strong { display: block; font-size: 14px; }
.sr-slot small { color: #6b746e; font-size: 12px; }

.sr-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
}
.sr-day {
  background: #F7F8F6; border-radius: 10px; padding: 8px 8px 10px; min-height: 92px;
}
.sr-day.on { background: #2E4A3A; color: #fff; }
.sr-day em { display: block; font-size: 11px; font-style: normal; opacity: 0.6; }
.sr-day strong { display: block; font-size: 14px; margin: 2px 0 6px; }
.sr-day p { margin: 0 0 2px; font-size: 11px; line-height: 1.3; }

.sr-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sr-col {
  background: #F7F8F6; border-radius: 12px; padding: 10px;
  min-height: 160px;
}
.sr-col h4 { margin: 0 0 8px; font-size: 12px; color: #6b746e; font-weight: 700; }
.sr-col article {
  background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(28, 36, 31, 0.04);
}
.sr-col article strong { display: block; font-size: 13px; }
.sr-col article span { font-size: 11px; color: #6b746e; }

.sr-bars .bar { display: grid; grid-template-columns: 92px 1fr 40px; gap: 8px; align-items: center; margin: 8px 0; font-size: 12px; }
.sr-bars .bar div { background: #EEF0EC; border-radius: 99px; height: 8px; overflow: hidden; }
.sr-bars .bar i { display: block; height: 100%; background: #2E4A3A; border-radius: 99px; }

.sr-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.sr-facts label { display: block; font-size: 11px; color: #8A918B; text-transform: uppercase; letter-spacing: 0.04em; }
.sr-facts b { font-size: 14px; font-weight: 600; }

.sr-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

body.theme-sr .login-card { background: #fff; border: 1px solid #E6E8E4; box-shadow: none; }
body.theme-sr .brand-name { font-family: Inter, sans-serif; font-weight: 700; }

.sr-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; margin: 0 0 16px;
  color: #5c675f; font-size: 13px; font-weight: 600; cursor: pointer;
}
.sr-pass {
  display: flex; flex-direction: column;
  gap: 16px; align-items: stretch; margin-bottom: 16px;
}
.sr-pass-right { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sr-pass-card, .sr-hist, .sr-feed-cta, .sr-sum-card, .sr-lab, .sr-fmt, .sr-doc, .sr-time {
  background: #fff; border-radius: 14px;
  box-shadow: 0 6px 20px rgba(28, 36, 31, 0.04);
}
.sr-pass-card { padding: 16px 18px; overflow: hidden; }
.sr-pass-top { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.sr-pass-card img {
  width: 88px; height: 88px; object-fit: cover;
  border-radius: 50%; display: block; flex-shrink: 0;
}
.sr-pass-card h2 { margin: 0 0 2px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.sr-pass-card .sp { margin: 0 0 10px; font-size: 14px; color: #6b746e; }
.sr-facts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 6px; }
.sr-facts2 > div {
  display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start;
  padding: 10px 0; border-bottom: 1px solid #EEEFEA;
}
.sr-facts2 label {
  display: block; font-size: 11px; color: #8A918B; font-weight: 600;
  text-transform: lowercase; letter-spacing: 0;
}
.sr-facts2 b { display: block; font-size: 13.5px; font-weight: 650; color: #1C241F; line-height: 1.3; }

.sr-hist { padding: 4px 18px 8px; overflow: hidden; }
.sr-tabs {
  display: flex; gap: 22px; flex-wrap: wrap;
  border-bottom: 1px solid #EEEFEA; margin: 0 -18px 0; padding: 0 18px;
}
.sr-tabs button {
  background: none; border: none; border-radius: 0;
  padding: 14px 0 11px; margin-bottom: -1px;
  font-size: 13.5px; font-weight: 600; color: #6b746e;
  border-bottom: 2px solid transparent;
}
.sr-tabs button.active { background: none; color: #2D4739; border-bottom-color: #2D4739; }

.sr-visit { width: 100%; border-collapse: collapse; font-size: 13px; }
.sr-visit th {
  text-align: left; color: #8A918B; font-weight: 600; font-size: 12px;
  padding: 12px 8px 10px 0; border-bottom: 1px solid #EEEFEA;
}
.sr-visit td {
  padding: 14px 10px 14px 0; border-bottom: 1px solid #F0F1EE;
  font-weight: 550; color: #2A332C; vertical-align: middle;
}
.sr-visit tr:last-child td { border-bottom: none; }
.sr-btn-out {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid #D5D8D3; background: #fff; color: #2D4739;
  font-size: 12px; font-weight: 650; white-space: nowrap; cursor: pointer;
}

.sr-feed-cta {
  display: grid; grid-template-columns: 40px 1fr auto;
  gap: 14px; align-items: center; padding: 16px 20px;
}
.sr-feed-cta .bowl {
  width: 40px; height: 40px; border-radius: 50%;
  background: #EEF1EC; color: #2D4739;
  display: grid; place-items: center;
}
.sr-feed-cta .bowl svg { width: 20px; height: 20px; }
.sr-feed-cta h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.sr-feed-cta p { margin: 0; font-size: 13px; color: #6b746e; }

.sr-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.sr-sum-card {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px 18px; min-height: 92px;
}
.sr-sum-card b { display: block; font-size: 32px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.sr-sum-card span { display: block; margin-top: 6px; font-size: 13px; color: #6b746e; font-weight: 600; }
.sr-ico {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
}
.sr-ico svg { width: 16px; height: 16px; }
.sr-ico.ok { background: #E4F4EA; color: #1F8A45; }
.sr-ico.shield { background: #F8E8E8; color: #D7A0A0; }

.sr-lab { padding: 4px 0 8px; overflow-x: auto; }
.sr-lab table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sr-lab th {
  text-align: left; color: #8A918B; font-weight: 600; font-size: 12px;
  padding: 12px 12px 10px; border-bottom: 1px solid #EEEFEA;
}
.sr-lab td {
  padding: 13px 12px; border-bottom: 1px solid #F0F1EE;
  font-weight: 550; color: #2A332C;
}
.sr-lab td:first-child { font-weight: 700; }
.sr-lab tr:last-child td { border-bottom: none; }
.sr-st {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 650; white-space: nowrap;
}
.sr-st.ok { color: #1F8A45; }
.sr-st.warn { color: #B07A12; }
.sr-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #E8A317; flex-shrink: 0;
}
.sr-check {
  width: 16px; height: 16px; border-radius: 50%;
  background: #E4F4EA; color: #1F8A45;
  display: inline-grid; place-items: center; flex-shrink: 0;
}
.sr-check svg { width: 10px; height: 10px; }
.sr-note {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 12px; font-size: 12.5px; color: #8A918B; font-weight: 500;
}
.sr-merck-logo { height: 16px; width: auto; display: inline-block; vertical-align: middle; }
.sr-merck-th { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sr-note .sr-merck-logo { height: 14px; }
.sr-note i {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid #C5C8C2; color: #8A918B;
  display: grid; place-items: center; font-style: normal;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.sr-interp { margin: 16px 0 18px; max-width: 760px; font-size: 14px; line-height: 1.55; color: #4a5550; }
.sr-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sr-online { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.sr-fmt { padding: 18px 20px; margin-bottom: 12px; cursor: pointer; }
.sr-fmt-top { display: flex; align-items: flex-start; gap: 10px; }
.sr-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #C5C8C2; margin-top: 2px; flex-shrink: 0;
  display: grid; place-items: center;
}
.sr-fmt.sel .sr-radio { border-color: #2D4739; }
.sr-fmt.sel .sr-radio::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2D4739;
}
.sr-fmt h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.sr-fmt .price { margin: 0 0 6px; font-size: 14px; font-weight: 650; color: #2D4739; }
.sr-fmt p { margin: 0 0 14px; font-size: 13px; color: #6b746e; line-height: 1.4; }
.sr-info {
  display: flex; align-items: flex-start; gap: 10px;
  background: #F3EEE3; border-radius: 12px; padding: 12px 14px;
  font-size: 13px; color: #5c574c; font-weight: 550; line-height: 1.4;
}
.sr-info i {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #8A8170; color: #8A8170;
  display: grid; place-items: center; font-style: normal;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.sr-doc { padding: 22px 18px 18px; text-align: center; margin-bottom: 12px; }
.sr-doc img {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 12px;
}
.sr-doc h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.sr-doc .role, .sr-doc .branch { margin: 0; font-size: 13px; color: #6b746e; }
.sr-on {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: 13px; font-weight: 650; color: #1F8A45;
}
.sr-on i { width: 8px; height: 8px; border-radius: 50%; background: #22A34A; }
.sr-time { padding: 16px 16px 18px; }
.sr-time h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.sr-time .when {
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 12px; font-size: 13px; color: #6b746e; font-weight: 600;
}
.sr-time .when svg { width: 14px; height: 14px; }
.sr-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sr-slots button {
  padding: 10px 8px; border-radius: 8px;
  border: 1px solid #D5D8D3; background: #fff; color: #2A332C;
  font-size: 14px; font-weight: 650; cursor: pointer;
}
.sr-slots button.on { background: #2D4739; color: #fff; border-color: #2D4739; }
.sr-pay { margin-top: 12px; width: 100%; }

@media (max-width: 1280px) {
  .sr-top { padding: 10px 16px 8px; }
  .sr-main { padding: 18px 18px 40px; }
}
@media (max-width: 1100px) {
  .sr-kpis, .sr-board, .sr-week, .sr-sum { grid-template-columns: 1fr 1fr; }
  .sr-layout { grid-template-columns: 1fr; }
  .sr-side {
    position: sticky; top: 0; z-index: 40;
    border-right: none; border-bottom: 1px solid #E6E8E4;
    padding: 8px 12px; background: #F3F3F1;
  }
  .sr-side nav {
    display: flex; flex-wrap: nowrap; gap: 6px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .sr-side a {
    flex: 0 0 auto; white-space: nowrap;
    border-radius: 999px; background: #fff;
    border: 1px solid #E6E8E4; padding: 8px 12px;
  }
  .sr-side a.active::before { display: none; }
}
@media (max-width: 900px) {
  .sr-pets, .sr-grid, .sr-kpis, .sr-board, .sr-week, .sr-facts,
  .sr-pass, .sr-online, .sr-feed-cta, .sr-sum { grid-template-columns: 1fr; }
  .sr-top { padding: 10px 12px 8px; flex-wrap: wrap; gap: 8px; }
  .sr-top-right { flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
  .sr-pin, .sr-sub { display: none; }
  .sr-user small { display: none; }
  .sr-roles {
    padding: 0 8px 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sr-roles button { padding: 10px 12px; font-size: 12px; flex: 0 0 auto; min-height: 40px; }
  .sr-main { padding: 14px 12px 36px; }
  .sr-pass-top { flex-wrap: wrap; }
  .sr-facts2 { grid-template-columns: 1fr; }
  .sr-facts2 > div { grid-template-columns: 1fr; gap: 2px; }
  .sr-slots { grid-template-columns: 1fr 1fr; }
  .sr-slot { grid-template-columns: 52px 1fr; }
  .sr-slot > :last-child { grid-column: 2; }
}
@media (max-width: 720px) {
  .sr-week { grid-template-columns: 1fr 1fr; }
  .sr-kpis { grid-template-columns: 1fr 1fr; }
  .sr-title { font-size: 20px; }
  .sr-pass-card img { width: 72px; height: 72px; }
  .sr-pass-card h2 { font-size: 20px; }
  body.theme-sr #app { box-shadow: none; }
}
