:root {
  --primary: #32523F;
  --cream: #E9E4D2;
  --sage: #D4D5BE;
  --muted: #B5BAA7;
  --ink: #1A2E24;
  --white: #FFFFFF;
  --danger: #8B3A3A;
  --ok: #3D6B4F;
  --warn: #7A6A32;
  --shadow: 0 18px 50px rgba(26, 46, 36, 0.12);
  --font: "Nunito", system-ui, sans-serif;
  --display: "Dela Gothic One", "Nunito", sans-serif;
  --banner-h: 36px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(181, 186, 167, 0.55), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(50, 82, 63, 0.16), transparent 50%),
    linear-gradient(180deg, #F3EEE0 0%, var(--cream) 40%, #E4DFCC 100%);
}
button, input, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

.demo-banner {
  position: sticky; top: 0; z-index: 80; height: var(--banner-h);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--cream);
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}

.vv {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); display: grid; place-items: center; flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(50, 82, 63, 0.28);
}
.vv svg { width: 38px; height: 38px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 12px; border: none;
  font-weight: 800; font-size: 14px;
}
.btn-primary { background: var(--primary); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid rgba(50, 82, 63, 0.22); }
.btn-soft { background: var(--sage); color: var(--primary); }
.btn-sm { padding: 7px 11px; font-size: 12px; border-radius: 10px; }

.chip {
  display: inline-flex; align-items: center; padding: 4px 9px;
  border-radius: 999px; font-size: 11px; font-weight: 800;
  background: var(--sage); color: var(--primary); white-space: nowrap;
}
.chip.ok { background: rgba(47, 143, 78, 0.16); color: #1f6b38; }
.chip.warn { background: rgba(224, 161, 6, 0.22); color: #8a6400; }
.chip.danger { background: rgba(196, 57, 43, 0.14); color: #9b2b22; }
.zone-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 800; background: #fff;
  border: 1px solid rgba(50, 82, 63, 0.12);
}
.zone-pill i {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.zone-pill.green { color: #1a7a3a; background: #e7f6ec; border-color: rgba(26,122,58,0.22); }
.zone-pill.green i { background: #22a34a; box-shadow: 0 0 0 3px rgba(34,163,74,0.28); }
.zone-pill.yellow { color: #8a6400; background: #fff4cc; border-color: rgba(224,161,6,0.35); }
.zone-pill.yellow i { background: #f0b400; box-shadow: 0 0 0 3px rgba(240,180,0,0.35); }
.zone-pill.red { color: #9b2b22; background: #fdecea; border-color: rgba(196,57,43,0.25); }
.zone-pill.red i { background: #e23b2e; box-shadow: 0 0 0 3px rgba(226,59,46,0.28); }
.chip.soft { background: rgba(50, 82, 63, 0.08); }
.chip.demo { background: var(--primary); color: var(--cream); letter-spacing: 0.08em; font-size: 10px; }

.tile {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(50, 82, 63, 0.08);
  border-radius: 16px; padding: 16px; position: relative;
}
.tile.accent { background: var(--primary); color: var(--cream); border-color: transparent; }
.tile h3, .tile h4 { margin: 0 0 6px; color: var(--primary); font-weight: 800; }
.tile.accent h3, .tile.accent h4 { color: var(--cream); }
.muted { margin: 0; color: #6a7d71; line-height: 1.45; }
.tile.accent .muted { color: rgba(233, 228, 210, 0.72); }
.demo-mark {
  position: absolute; top: 10px; right: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.12em;
  color: rgba(50, 82, 63, 0.35); pointer-events: none;
}
.tile.accent .demo-mark { color: rgba(233, 228, 210, 0.35); }

.login { min-height: calc(100vh - var(--banner-h)); display: grid; place-items: center; padding: 32px 16px 48px; }
.login-card {
  width: min(560px, 100%);
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(50, 82, 63, 0.1);
  border-radius: 28px; padding: 36px 32px 28px;
  box-shadow: var(--shadow); text-align: center;
}
.brand-lockup { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; margin-bottom: 18px; }
.brand-name { font-family: var(--display); font-size: 36px; line-height: 1; color: var(--primary); }
.brand-tag { margin-top: 6px; color: var(--muted); font-weight: 700; }
.login-card h1 { margin: 8px 0; font-size: 22px; color: var(--primary); font-weight: 800; }
.login-card > p { margin: 0 0 22px; color: #4a5f52; }
.login-actions { display: grid; gap: 8px; }
.login-actions .btn { width: 100%; }
.login-note { margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.login-walk {
  margin-top: 18px; text-align: left; font-size: 13px; color: #4a5f52; line-height: 1.5;
  background: rgba(233, 228, 210, 0.55); border-radius: 16px; padding: 14px 16px;
}
.login-walk strong { color: var(--primary); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 20px;
  background: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(50, 82, 63, 0.08);
  position: sticky; top: var(--banner-h); z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo-mini { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--primary); }
.logo-mini .mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary);
  display: grid; place-items: center;
}
.logo-mini .mark svg { width: 16px; height: 16px; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.role-switch, .lang-switch { display: flex; gap: 4px; flex-wrap: wrap; }
.role-switch button {
  padding: 6px 10px; border-radius: 999px; border: none;
  background: transparent; color: #5a6e61; font-weight: 800; font-size: 12px;
}
.role-switch button.active { background: var(--primary); color: var(--cream); }
.lang-switch {
  padding: 3px;
  background: rgba(50, 82, 63, 0.08);
  border-radius: 12px;
}
.lang-switch button {
  width: auto; min-width: 72px; height: auto;
  padding: 8px 12px; border-radius: 9px; border: none;
  background: transparent; color: var(--primary);
  font-weight: 800; font-size: 12px; cursor: pointer;
}
.lang-switch button.active { background: var(--primary); color: var(--cream); }
.login-card .lang-switch { margin-bottom: 18px; }
.owner-rail .lang-switch { margin-bottom: 14px; }
.side .lang-switch { margin: 8px 10px 14px; }
.who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary); }
.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--sage); display: grid; place-items: center;
  font-weight: 800; color: var(--primary); font-size: 12px;
}

.subnav {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 20px 0;
  max-width: 980px; margin: 0 auto;
}
.subnav a, .subnav button {
  padding: 6px 11px; border-radius: 999px; border: none;
  background: rgba(255,255,255,0.7); color: #5a6e61;
  font-weight: 800; font-size: 12px;
}
.subnav a.active, .subnav button.active { background: var(--primary); color: var(--cream); }

.owner-desk {
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  gap: 22px; max-width: 1180px; margin: 0 auto; padding: 20px 24px 12px;
  align-items: start;
}
.owner-rail {
  position: sticky; top: calc(var(--banner-h) + 18px);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(50, 82, 63, 0.1);
  border-radius: 20px; padding: 16px 14px 14px;
  box-shadow: 0 10px 28px rgba(26, 46, 36, 0.06);
}
.owner-rail .hi { margin: 0 0 2px; font-size: 16px; color: var(--primary); font-weight: 800; }
.owner-rail .hi-sub { margin: 0 0 14px; font-size: 12px; color: #6a7d71; font-weight: 700; line-height: 1.4; }
.owner-rail nav { display: flex; flex-direction: column; gap: 3px; }
.owner-rail nav a {
  display: block; padding: 8px 10px; border-radius: 11px;
  font-size: 13px; font-weight: 800; color: #4a5f52;
}
.owner-rail nav a:hover { background: rgba(50, 82, 63, 0.06); }
.owner-rail nav a.active { background: var(--primary); color: var(--cream); }
.owner-main { min-width: 0; }
.block-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 0 0 12px;
}
.block-head .h { margin: 0; }
.cal-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) 320px; gap: 14px; align-items: start; }

.wrap { max-width: 980px; margin: 0 auto; padding: 18px 20px 12px; }
.page-foot { max-width: 980px; margin: 0 auto; padding: 8px 20px 24px; font-size: 12px; color: #5a6e61; }
.h { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; }
.sub { margin: 0 0 16px; color: #5a6e61; }
.list { display: flex; flex-direction: column; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.home-hero {
  position: relative; border-radius: 22px; overflow: hidden;
  margin-bottom: 8px; min-height: 200px;
}
.home-hero > img { width: 100%; height: 228px; object-fit: cover; display: block; }
.home-hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,46,36,0.08) 20%, rgba(26,46,36,0.78) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px 24px; color: var(--cream);
}
.home-hero h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.home-hero p { margin: 0; max-width: 440px; line-height: 1.4; opacity: 0.9; }
.home-hero span { margin-top: 10px; font-size: 12px; font-weight: 700; opacity: 0.74; }
.sec-h { margin: 22px 0 10px; font-size: 18px; font-weight: 800; color: var(--primary); }

.home-pets { display: flex; flex-wrap: wrap; gap: 14px; }
.home-pet {
  width: 228px; flex: 0 0 228px; padding: 0; text-align: left; color: inherit;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(50, 82, 63, 0.08);
  border-radius: 20px; overflow: hidden; position: relative;
}
.home-pet .shot { height: 168px; overflow: hidden; background: var(--sage); }
.home-pet .shot img { width: 100%; height: 100%; object-fit: cover; }
.home-pet .body { padding: 12px 14px 14px; }
.home-pet h3 { margin: 0 0 2px; color: var(--primary); font-size: 18px; font-weight: 800; }
.home-pet p { margin: 0 0 8px; font-size: 13px; color: #6a7d71; }

.feat-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 12px; }
.feat {
  position: relative; min-height: 176px; border: none; padding: 0;
  border-radius: 18px; overflow: hidden; text-align: left; color: var(--cream);
}
.feat > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,46,36,0.08), rgba(26,46,36,0.78));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.feat h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--cream); }
.feat p { margin: 0; font-size: 12px; line-height: 1.35; opacity: 0.9; }
.home-soon { max-width: 560px; margin-bottom: 4px; }

.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.more {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(50, 82, 63, 0.08);
  border-radius: 16px; padding: 14px 16px;
  text-align: left; color: inherit;
}
.more strong { display: block; color: var(--primary); margin-bottom: 4px; font-size: 14px; }
.more span { font-size: 12px; color: #6a7d71; line-height: 1.4; font-weight: 600; }

.owner-strip {
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(50, 82, 63, 0.08);
  border-radius: 16px; padding: 10px 14px; margin-bottom: 14px;
}
.owner-strip strong { display: block; color: var(--primary); }
.owner-strip span { font-size: 12px; color: #6a7d71; font-weight: 700; }
.pets-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pet-card, .news-card, .row, .feed-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(50, 82, 63, 0.08);
  border-radius: 16px; position: relative; cursor: pointer;
}
.pet-card { overflow: hidden; width: 188px; flex: 0 0 188px; }
.pet-card .shot { height: 108px; overflow: hidden; }
.pet-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.pet-card .body { padding: 10px 12px 12px; }
.pet-card .body h4 { margin: 0 0 2px; color: var(--primary); font-weight: 800; }
.pet-card .body p { margin: 0; font-size: 13px; color: #6a7d71; }

.news-card {
  display: grid; grid-template-columns: 80px 1fr; gap: 10px;
  padding: 8px; align-items: center; cursor: default; max-width: 420px;
}
.news-card .thumb { height: 58px; border-radius: 10px; overflow: hidden; background: var(--sage); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card strong { display: block; color: var(--primary); font-size: 13px; }
.news-card span { font-size: 12px; color: #6a7d71; font-weight: 600; }

.row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left; color: inherit; padding: 10px 12px;
}
.row .pet {
  width: 40px; height: 40px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(145deg, var(--sage), var(--muted)); flex-shrink: 0;
}
.row .pet img { width: 100%; height: 100%; object-fit: cover; }
.row .meta { flex: 1; min-width: 0; }
.row .meta strong { display: block; color: var(--primary); }
.row .meta span { font-size: 13px; color: #6a7d71; }

.passport {
  display: grid; grid-template-columns: 440px 400px;
  gap: 14px; align-items: start; max-width: 860px;
}
.passport-card {
  display: grid; grid-template-columns: 148px 1fr; gap: 14px; padding: 12px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(50, 82, 63, 0.08);
  border-radius: 18px; position: relative;
}
.passport-card .shot {
  height: 168px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(145deg, var(--sage), var(--muted));
}
.passport-card .shot img { width: 100%; height: 100%; object-fit: cover; }
.passport-card h3 { margin: 0 0 4px; font-size: 20px; color: var(--primary); }
.passport-card .lead { margin: 0 0 10px; font-size: 13px; color: #6a7d71; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.facts label { display: block; font-size: 10px; font-weight: 800; color: #6a7d71; text-transform: uppercase; letter-spacing: 0.04em; }
.facts b { display: block; color: var(--primary); font-size: 13px; line-height: 1.25; }
.passport-hist {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(50, 82, 63, 0.08);
  border-radius: 18px; padding: 12px; position: relative; min-height: 192px;
}
.passport-hist .tabs { margin: 0 0 10px; }
.passport-hist .row { padding: 8px 10px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(50, 82, 63, 0.08);
  border-radius: 14px; padding: 12px 14px;
}
.field label { display: block; font-size: 11px; font-weight: 800; color: #6a7d71; text-transform: uppercase; }
.field b { display: block; margin-top: 4px; color: var(--primary); font-size: 15px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.tabs button {
  border: none; background: rgba(255,255,255,0.7);
  color: #5a6e61; font-weight: 800; font-size: 13px;
  padding: 8px 12px; border-radius: 999px;
}
.tabs button.active { background: var(--primary); color: var(--cream); }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; padding: 10px 8px; color: #6a7d71; font-weight: 700; border-bottom: 1px solid rgba(50,82,63,0.1); }
table.data td { padding: 11px 8px; border-bottom: 1px solid rgba(50,82,63,0.06); font-weight: 600; }

.zone { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; margin-bottom: 14px; font-weight: 800; }
.zone.green { background: rgba(61, 107, 79, 0.14); color: var(--ok); }
.zone.yellow { background: rgba(122, 106, 50, 0.16); color: var(--warn); }
.zone.red { background: rgba(139, 58, 58, 0.12); color: var(--danger); }
.zone-dot { width: 14px; height: 14px; border-radius: 50%; }
.zone.green .zone-dot { background: var(--ok); }
.zone.yellow .zone-dot { background: var(--warn); }
.zone.red .zone-dot { background: var(--danger); }

.sample-file {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px; border-radius: 16px; background: rgba(255,255,255,0.86);
  border: 1px dashed rgba(50, 82, 63, 0.25); cursor: pointer; color: inherit;
}
.sample-file img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; }
.sample-file strong { display: block; color: var(--primary); }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; }
.cal .dow { text-align: center; font-size: 11px; font-weight: 800; color: #6a7d71; }
.cal i {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  font-style: normal; font-size: 13px; font-weight: 700;
  color: #5a6e61; background: rgba(255,255,255,0.55);
}
.cal i.on { background: var(--primary); color: var(--cream); }
.cal i.mark { background: var(--sage); color: var(--primary); }
.cal i.mute { opacity: 0.35; }
.cal.big { max-width: none; gap: 7px; }
.cal.big i {
  aspect-ratio: auto; min-height: 72px; align-items: flex-start; justify-content: flex-start;
  padding: 6px 7px; display: flex; flex-direction: column; gap: 3px;
}
.cal.big i b { font-size: 13px; }
.cal.big i small {
  font-size: 10px; font-weight: 700; line-height: 1.2;
  background: rgba(50, 82, 63, 0.1); color: var(--primary);
  border-radius: 6px; padding: 1px 5px; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal.big i.on small { background: rgba(233,228,210,0.22); color: var(--cream); }
.cal.big i.warn-day { box-shadow: inset 0 0 0 2px #e0a106; }

.feed-card { padding: 16px; cursor: default; }
.feed-card h4 { margin: 0 0 4px; color: var(--primary); }
.feed-card p { margin: 0 0 8px; font-size: 13px; color: #6a7d71; }

.backdrop {
  position: fixed; inset: 0; background: rgba(26, 46, 36, 0.45);
  display: grid; place-items: center; z-index: 100; padding: 20px;
}
.modal { width: min(440px, 100%); background: #FBF8F0; border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 8px; color: var(--primary); }
.modal p { margin: 0 0 16px; color: #4a5f52; line-height: 1.45; }
.modal .row-form { display: grid; gap: 8px; margin-bottom: 12px; }
.modal label { font-size: 12px; font-weight: 800; color: #6a7d71; }
.modal input, .modal select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(50,82,63,0.18); background: #fff; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--primary); color: var(--cream);
  padding: 12px 16px; border-radius: 14px; font-size: 13px; font-weight: 700; z-index: 120;
  max-width: min(520px, calc(100% - 24px)); box-shadow: var(--shadow);
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.doc-hero { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; }
.doc-hero img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--banner-h));
  background: #F1EFE6;
}
.side {
  background: #FAF8F1;
  color: var(--ink);
  padding: 20px 12px;
  display: flex; flex-direction: column; gap: 8px;
  position: sticky; top: var(--banner-h);
  height: calc(100vh - var(--banner-h));
  border-right: 1px solid rgba(50, 82, 63, 0.1);
}
.side-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px; font-weight: 800; font-size: 16px;
  color: var(--primary);
}
.side-brand .mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary);
  display: grid; place-items: center;
}
.side-brand .mark svg { width: 18px; height: 18px; }
.side-brand small { display: block; font-size: 11px; font-weight: 600; color: #6a7d71; }
.side nav { display: flex; flex-direction: column; gap: 3px; }
.side nav a {
  display: block; padding: 9px 11px; border-radius: 10px;
  font-size: 13px; font-weight: 800; color: #4a5f52;
}
.side nav a:hover { background: rgba(50, 82, 63, 0.06); color: var(--primary); }
.side nav a.active { background: var(--primary); color: var(--cream); }
.side-foot { margin-top: auto; font-size: 11px; line-height: 1.4; color: #7a8b80; padding: 8px 4px 0; }
.side-mask { display: none; }
.admin-main { min-width: 0; display: flex; flex-direction: column; background: #F1EFE6; }
.admin-wrap { max-width: 1120px; }
.menu-toggle { display: none; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi {
  background: #fff; border: 1px solid rgba(50, 82, 63, 0.08);
  border-radius: 14px; padding: 12px 14px; position: relative;
}
.kpi b { display: block; font-size: 26px; line-height: 1.1; color: var(--primary); letter-spacing: -0.03em; }
.kpi span { font-size: 12px; font-weight: 700; color: #6a7d71; }
.kpi.tone-warn { box-shadow: inset 0 3px 0 #e0a106; }
.kpi.tone-danger { box-shadow: inset 0 3px 0 #c4392b; }
.kpi.tone-ok { box-shadow: inset 0 3px 0 #22a34a; }
.desk-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; margin-bottom: 14px; }
.desk-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.panel { background: #fff; border: 1px solid rgba(50, 82, 63, 0.08); border-radius: 16px; padding: 14px 16px; position: relative; }
.panel h3 { margin: 0 0 10px; font-size: 15px; color: var(--primary); }
.notice { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(50,82,63,0.06); }
.notice:last-child { border-bottom: none; padding-bottom: 0; }
.notice i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; background: #B5BAA7; }
.notice.warn i { background: #e0a106; }
.notice.danger i { background: #c4392b; }
.notice.ok i { background: #22a34a; }
.notice strong { display: block; font-size: 13px; color: var(--ink); }
.notice span { font-size: 12px; color: #6a7d71; font-weight: 600; line-height: 1.35; }
.slot { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(50,82,63,0.06); }
.slot:last-child { border-bottom: none; }
.slot b { color: var(--primary); font-size: 13px; }
.slot span { display: block; font-size: 12px; color: #6a7d71; font-weight: 600; }
.shift-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.shift-day {
  background: #fff; border: 1px solid rgba(50,82,63,0.08);
  border-radius: 14px; padding: 10px; min-height: 148px;
}
.shift-day.today { box-shadow: inset 0 0 0 2px var(--primary); }
.shift-day em { display: block; font-style: normal; font-size: 11px; font-weight: 800; color: #6a7d71; }
.shift-day strong { display: block; margin: 2px 0 8px; color: var(--primary); }
.shift-day p { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #3a4f42; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 92px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; color: #4a5f52; }
.bar i { display: block; height: 8px; background: var(--primary); border-radius: 99px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .desk-2, .desk-3, .cal-panel { grid-template-columns: 1fr; }
  .shift-week { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .fields, .passport, .feat-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .passport-card { grid-template-columns: 108px 1fr; }
  .passport-card .shot { height: 132px; }
  .pet-card { width: calc(50% - 6px); flex: 0 0 calc(50% - 6px); }
  .home-pet { width: calc(50% - 7px); flex: 0 0 calc(50% - 7px); }
  .home-pet .shot { height: 132px; }
  .home-hero > img { height: 188px; }
  .home-hero h1 { font-size: 22px; }
  .home-hero .veil { padding: 16px; }
  .wrap { padding: 14px; }
  .owner-desk { grid-template-columns: 1fr; padding: 14px; }
  .owner-rail { position: static; }
  .owner-rail nav { display: grid; grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .shift-week { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 10px 12px; flex-wrap: wrap; }
  .role-switch button { padding: 6px 8px; font-size: 11px; }
  .who span { display: none; }
  .subnav { padding: 10px 14px 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .side {
    position: fixed; left: 0; top: var(--banner-h); bottom: 0;
    width: 228px; z-index: 70; height: auto;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }
  .side.open { transform: translateX(0); }
  .side-mask {
    display: block; position: fixed;
    inset: var(--banner-h) 0 0 0;
    background: rgba(26, 46, 36, 0.38); z-index: 65;
  }
  .menu-toggle { display: inline-flex; }
}
