:root {
  --ink: #18231f;
  --muted: #68756e;
  --line: #dde4df;
  --paper: #f3f5f2;
  --surface: #ffffff;
  --green: #244f42;
  --green-2: #356b59;
  --green-soft: #eaf2ed;
  --amber: #9b6a27;
  --amber-soft: #fff3dc;
  --red: #9b4a40;
  --red-soft: #fff0ed;
  --shadow: 0 18px 48px rgba(29, 49, 40, .08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

/* User activity follows the same compact surfaces as the existing archive. */
.user-list-help { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.user-list-help a { flex-shrink: 0; }
.user-table .sort-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: #4d6257; white-space: nowrap; }
.user-table [aria-sort="ascending"], .user-table [aria-sort="descending"] { background: var(--green-soft); }
.user-time-cell { white-space: nowrap; font-variant-numeric: tabular-nums; }
.user-time-cell small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.user-activity-cell { min-width: 160px; max-width: 260px; line-height: 1.6; }
.user-activity-card { margin-bottom: 20px; }
.user-activity-card h2 { margin: 0; font-size: 19px; }
.activity-range { display: flex; gap: 6px; }
.activity-range a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 500; }
.activity-range a[aria-current="page"] { color: var(--green); background: var(--green-soft); font-weight: 650; }
.user-visit-summary { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 16px; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.user-visit-summary dt { color: var(--muted); font-size: 12px; }
.user-visit-summary dd { margin: 8px 0 0; color: var(--ink); font-size: 15px; font-weight: 650; }
.activity-day { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid #edf0ee; line-height: 1.7; }
.activity-day time { color: var(--muted); font-size: 12px; }
.activity-day p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.activity-coverage, .field-note { display: block; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.activity-evidence { margin-top: 20px; }
.activity-evidence summary { padding: 10px 0; color: var(--green); font-size: 13px; cursor: pointer; }
.activity-evidence summary span { margin-left: 8px; color: var(--muted); }
.activity-event-table { min-width: 660px; }
.activity-event-table td { vertical-align: top; line-height: 1.6; }
.activity-event-table td small, .activity-event-table td > span { display: block; margin-top: 4px; }
.activity-event-table td small { color: var(--muted); }
.analytics-users-link { display: inline-block; margin-top: 13px; font-size: 13px; }
.chart-hover-guide { stroke: #708e80; stroke-width: 1; stroke-dasharray: 4 4; }
.chart-value-tooltip rect { fill: #fff; stroke: #cbd8d0; filter: drop-shadow(0 3px 4px rgba(29,49,40,.1)); }
.chart-value-tooltip text { fill: #244f42; font-size: 13px; font-variant-numeric: tabular-nums; }
.chart-value-tooltip .chart-tooltip-date { fill: #65756c; font-size: 12px; }
.chart-hit-zone:focus-visible { outline: none; fill: rgba(49,94,79,.06); }
.legacy-feature-details { margin-top: 10px; }

@media (max-width: 640px) {
  .user-visit-summary { grid-template-columns: 1fr; gap: 14px; }
  .user-visit-summary div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
  .user-visit-summary dd { margin: 0; font-size: 13px; }
  .activity-day { grid-template-columns: 1fr; gap: 3px; }
  .user-list-help { flex-wrap: wrap; }
  .user-activity-card .card-title { flex-wrap: wrap; }
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px 20px; color: #f4f8f5; background: #183b31; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 14px 14px 14px 5px; color: #17392f; background: #e7b96a; font-weight: 800; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; }
.brand small { margin-top: 3px; color: #9eb8ae; font-size: 9px; letter-spacing: 1.7px; }
.nav { margin-top: 42px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 46px; margin: 5px 0; padding: 0 12px; border-radius: 12px; color: #bcd0c8; font-size: 14px; }
.nav-item > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #d8e5df; background: rgba(255,255,255,.08); font-size: 12px; }
.nav-item small { margin-left: auto; color: #78958a; font-size: 10px; }
.nav-item:hover, .nav-item.is-active { color: #fff; background: rgba(255,255,255,.1); }
.nav-item.is-active > span { color: #17392f; background: #e7b96a; }
.nav-item.is-disabled { cursor: default; opacity: .66; }
.nav-divider { margin: 30px 12px 10px; color: #759086; font-size: 10px; letter-spacing: 1.5px; }
.sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-identity { display: flex; align-items: center; gap: 10px; }
.admin-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #17392f; background: #d9e6df; font-weight: 700; }
.admin-identity strong, .admin-identity small { display: block; font-size: 12px; }
.admin-identity small { margin-top: 2px; color: #8ca79c; font-size: 10px; }
.text-button { margin: 12px 0 0 46px; padding: 0; border: 0; color: #9fb5ac; background: none; font-size: 11px; }
.main { min-width: 0; }
.mobile-header { display: none; }
.page-wrap { width: min(1320px, 100%); margin: 0 auto; padding: 38px 42px 64px; }

.hero-panel { display: flex; align-items: end; justify-content: space-between; gap: 28px; min-height: 250px; padding: 44px 48px; overflow: hidden; border-radius: 28px; color: #fff; background: radial-gradient(circle at 88% 0, rgba(232,184,104,.28), transparent 34%), linear-gradient(128deg, #234d40, #173b31); box-shadow: var(--shadow); }
.hero-panel h1 { max-width: 600px; margin: 10px 0 12px; font-family: Georgia, "Songti SC", serif; font-size: clamp(38px, 5vw, 66px); font-weight: 500; letter-spacing: -.04em; }
.hero-panel p { max-width: 620px; margin: 0; color: #c5d8d0; font-size: 14px; line-height: 1.8; }
.eyebrow { color: #8b9a92; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.hero-panel .eyebrow { color: #e7b96a; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 11px; font-weight: 650; font-size: 13px; transition: transform .15s, opacity .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-light { color: #183b31; background: #f5e8ce; }
.button-primary { color: #fff; background: var(--green); }
.button-secondary { border-color: #d7dfda; color: #40534a; background: #fff; }
.button-danger { color: #fff; background: var(--red); }
.button-block { width: 100%; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.metric-card { min-height: 160px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 30px rgba(29,49,40,.04); }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin: 17px 0 12px; font-family: Georgia, serif; font-size: 42px; font-weight: 500; }
.metric-card-primary { border-color: #315e4f; color: #fff; background: #315e4f; }
.metric-card-primary span, .metric-card-primary small { color: #c8dbd3; }
.section-heading { display: flex; justify-content: space-between; margin: 52px 0 20px; }
.section-heading h2 { margin: 7px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 28px; font-weight: 500; }
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.roadmap-card { display: flex; gap: 18px; min-height: 190px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.7); }
.roadmap-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 auto; border-radius: 15px; color: var(--green); background: var(--green-soft); font-weight: 700; }
.roadmap-card h3 { margin: 10px 0 8px; font-size: 16px; }
.roadmap-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.roadmap-link { display: inline-block; margin-top: 14px; color: var(--green-2); font-size: 11px; font-weight: 750; }
.tag { padding: 4px 8px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 700; }
.tag-muted { color: #7b837e; background: #ecefec; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.page-heading h1, .detail-heading h1 { margin: 8px 0 5px; font-family: Georgia, "Songti SC", serif; font-size: 38px; font-weight: 500; }
.page-heading p, .detail-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) 170px 170px auto; align-items: end; gap: 12px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
label > span, .filter-bar label > span { display: block; margin-bottom: 7px; color: #57665f; font-size: 11px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid #d7dfda; border-radius: 10px; color: var(--ink); background: #fbfcfb; outline: none; }
input, select { height: 42px; padding: 0 12px; }
textarea { min-height: 130px; padding: 12px; line-height: 1.65; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #6c9182; box-shadow: 0 0 0 3px rgba(53,107,89,.1); }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(29,49,40,.04); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 14px 18px; border-bottom: 1px solid var(--line); color: #849089; background: #f8faf8; font-size: 10px; font-weight: 700; letter-spacing: .6px; }
td { padding: 19px 18px; border-bottom: 1px solid #edf0ee; color: #536159; font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfb; }
.feedback-cell { min-width: 330px; }
.feedback-cell strong { color: var(--ink); font-size: 13px; }
.feedback-cell p { max-width: 520px; margin: 6px 0; color: #4e5b54; line-height: 1.55; }
.feedback-cell small { color: #9aa39e; font-size: 9px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending { color: var(--amber); background: var(--amber-soft); }
.status-progress { color: #476b94; background: #eaf1f8; }
.status-resolved { color: var(--green-2); background: var(--green-soft); }
.status-muted { color: #6f7773; background: #ecefec; }
.row-link { color: var(--green-2); white-space: nowrap; font-weight: 700; }
.row-link span { margin-left: 4px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 70px; color: #8b9690; }
.empty-state strong { color: #536159; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pagination-summary { flex-shrink: 0; margin: 0; line-height: 1.7; }
.pagination-summary span { display: block; font-size: 12px; }
.pagination-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; max-width: 100%; }
.pagination-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pagination-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; color: #46574e; background: #fff; line-height: 1.4; white-space: nowrap; }
a.pagination-link:hover, button.pagination-link:hover { color: var(--green); border-color: #9eb7a9; background: #f3f7f4; }
.pagination-link.is-current { color: #fff; border-color: var(--green); background: var(--green); font-weight: 700; }
.pagination-link.is-disabled { color: #949e98; background: #f7f9f7; }
.pagination-ellipsis { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; min-height: 44px; color: var(--muted); }
.pagination-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.pagination-jump label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pagination-jump input { width: 68px; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; text-align: center; }
.pagination-link:focus-visible, .pagination-jump input:focus-visible { outline: 3px solid #a6c2b5; outline-offset: 2px; }
@media (max-width: 680px) {
  .pagination { align-items: flex-start; padding: 14px; }
  .pagination-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
  .pagination-controls { justify-content: flex-start; width: 100%; }
}

.detail-wrap { max-width: 1250px; }
.back-link { display: inline-block; margin-bottom: 25px; color: #64736b; font-size: 12px; }
.detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.detail-labels { display: flex; align-items: center; gap: 8px; }
.category-pill { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: #5c6862; background: #fff; font-size: 10px; font-weight: 700; }
.detail-time { color: #87918c; font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.detail-main { display: grid; gap: 16px; }
.content-card, .action-card, .danger-card { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(29,49,40,.035); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; font-size: 13px; font-weight: 750; }
.card-title small { color: #929c96; font-size: 9px; font-weight: 500; }
.feedback-content { min-height: 110px; color: #2d3a33; font-size: 15px; line-height: 1.95; white-space: pre-wrap; word-break: break-word; }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 14px 16px; border-radius: 12px; color: #5a6961; background: #f4f7f5; font-size: 11px; }
.contact-box strong { color: #243b31; word-break: break-all; }
.admin-image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.admin-image { position: relative; width: 100%; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 13px; color: #7b8680; background: #eef2ef; cursor: zoom-in; }
.admin-image:focus-visible { outline: 3px solid rgba(53,107,89,.35); outline-offset: 3px; }
.admin-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.admin-image:hover img { transform: scale(1.025); }
.admin-image > span { display: grid; height: 100%; place-items: center; font-size: 10px; }
.admin-image small { position: absolute; right: 7px; bottom: 7px; padding: 5px 7px; border-radius: 7px; color: #fff; background: rgba(20,40,32,.75); font-size: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 26px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(9,17,14,.86); cursor: zoom-out; }
.lightbox-stage { position: relative; z-index: 1; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; grid-template-rows: auto minmax(0, 1fr) auto; width: min(1180px, 94vw); height: min(840px, 90vh); color: #fff; }
.lightbox-toolbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; min-height: 54px; color: #c8d4cf; font-size: 12px; }
.lightbox-close, .lightbox-nav { border: 0; color: #fff; background: rgba(255,255,255,.1); }
.lightbox-close { display: grid; width: 42px; height: 42px; border-radius: 50%; place-items: center; font-size: 26px; line-height: 1; }
.lightbox-nav { align-self: center; width: 42px; height: 60px; border-radius: 13px; font-size: 32px; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255,255,255,.18); }
.lightbox-nav:disabled { visibility: hidden; }
.lightbox-prev { justify-self: start; }
.lightbox-next { justify-self: end; }
.lightbox-image-wrap { position: relative; display: grid; min-width: 0; min-height: 0; place-items: center; overflow: hidden; }
.lightbox-image-wrap img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: contain; }
.lightbox-image-wrap img[hidden] { display: none; }
.lightbox-loading { color: #bccbc5; font-size: 12px; }
.lightbox-stage > p { grid-column: 1 / -1; margin: 16px 0 0; color: #8fa19a; font-size: 10px; text-align: center; }
body.has-lightbox { overflow: hidden; }
.user-card > p { color: #69766f; font-size: 12px; }
.user-card .button { margin-top: 8px; }
.user-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 17px; }
.user-summary-item { padding: 13px; border-radius: 11px; background: #f3f6f4; }
.user-summary-item span, .user-summary-item strong { display: block; }
.user-summary-item span { color: #78837d; font-size: 9px; }
.user-summary-item strong { margin-top: 5px; font-size: 15px; }
.detail-side { position: sticky; top: 20px; display: grid; gap: 16px; }
.action-card { display: grid; gap: 17px; }
.action-card .card-title { margin-bottom: 0; }
.danger-card { border-color: #ead4cf; background: #fffafa; }
.danger-card h3 { margin: 0 0 8px; color: #853f37; font-size: 13px; }
.danger-card p { margin: 0 0 15px; color: #8c6862; font-size: 10px; line-height: 1.65; }
.alert { margin: 0 0 18px; padding: 12px 15px; border-radius: 11px; font-size: 12px; }
.alert-error { color: #8b3f36; background: var(--red-soft); }
.alert-success { color: #2f6552; background: var(--green-soft); }

.user-filter-bar { grid-template-columns: minmax(200px, 1fr) 140px 140px auto; }
.user-table { min-width: 900px; }
.user-identity-cell { display: flex; align-items: center; gap: 11px; min-width: 250px; }
.user-identity-cell > span:last-child, .user-identity-cell strong, .user-identity-cell small { display: block; }
.user-identity-cell strong { margin-bottom: 5px; color: var(--ink); font-size: 13px; }
.user-list-avatar, .user-detail-avatar { display: grid; flex: 0 0 auto; color: var(--green); background: var(--green-soft); place-items: center; font-weight: 750; }
.user-list-avatar { width: 36px; height: 36px; border-radius: 11px; font-size: 12px; }
.user-detail-title { display: flex; align-items: center; gap: 18px; }
.user-detail-avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 19px; }
.user-detail-heading { align-items: center; }
.user-detail-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.user-detail-metrics article { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(29,49,40,.035); }
.user-detail-metrics span, .user-detail-metrics small { display: block; color: var(--muted); }
.user-detail-metrics span { font-size: 11px; font-weight: 650; }
.user-detail-metrics strong { display: block; margin: 13px 0 9px; font-size: 31px; font-weight: 600; font-variant-numeric: tabular-nums; }
.user-detail-metrics small { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.user-detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 20px; align-items: start; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin: 0; }
.profile-fields > div { padding: 14px 0; border-bottom: 1px solid #edf0ee; }
.profile-fields dt { color: #849089; font-size: 10px; }
.profile-fields dd { margin: 6px 0 0; color: #314139; font-size: 12px; font-weight: 650; }
.feedback-overview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 19px; }
.feedback-overview > div { padding: 16px; border-radius: 12px; background: #f3f6f4; }
.feedback-overview span, .feedback-overview strong { display: block; }
.feedback-overview span { color: #78837d; font-size: 9px; }
.feedback-overview strong { margin-top: 7px; font-size: 24px; font-variant-numeric: tabular-nums; }
.user-animal-section { margin-top: 46px; }
.animal-section-heading { align-items: end; margin-bottom: 16px; }
.animal-section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.animal-total { color: #7d8983; font-size: 11px; }
.species-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.species-filters a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #627169; background: #fff; font-size: 11px; }
.species-filters a strong { min-width: 20px; padding: 3px 6px; border-radius: 999px; color: #728078; background: #eef2ef; font-size: 9px; text-align: center; }
.species-filters a.is-active { border-color: var(--green); color: #fff; background: var(--green); }
.species-filters a.is-active strong { color: var(--green); background: #fff; }
.animal-species-group { margin-top: 24px; }
.animal-group-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.animal-group-heading > div { display: flex; align-items: baseline; gap: 10px; }
.animal-group-heading h3 { margin: 0; font-size: 16px; }
.animal-group-heading span, .animal-group-heading > strong { color: #8a958f; font-size: 9px; font-weight: 600; }
.animal-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.animal-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(29,49,40,.03); transition: transform .16s, border-color .16s, box-shadow .16s; }
.animal-card:hover { border-color: #b8cbc1; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29,49,40,.07); }
.animal-card-top { display: flex; align-items: center; justify-content: space-between; }
.animal-symbol { display: grid; width: 35px; height: 35px; border-radius: 11px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 800; place-items: center; }
.animal-card h4 { margin: 17px 0 5px; overflow: hidden; color: var(--ink); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.animal-card > p { margin: 0; color: #929c96; }
.animal-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 19px 0; }
.animal-card dl div { min-width: 0; }
.animal-card dt { color: #929d97; font-size: 8px; }
.animal-card dd { margin: 5px 0 0; overflow: hidden; color: #405048; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.animal-card-link { color: var(--green-2); font-size: 10px; font-weight: 750; }
.animal-empty { border: 1px dashed #d8dfdb; border-radius: 16px; background: rgba(255,255,255,.55); }
.animal-detail-wrap { max-width: 1320px; }
.animal-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.animal-profile-fields dd .mono { margin-left: 5px; color: #839088; }
.animal-notes { margin-top: 20px; padding: 16px; border-radius: 12px; background: #f4f7f5; }
.animal-notes span { color: #849089; font-size: 9px; font-weight: 700; }
.animal-notes p { margin: 8px 0 0; color: #405048; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.genetics-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.genetics-layout h3 { margin: 0 0 12px; color: #75827b; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.genetic-item { display: grid; gap: 5px; margin-bottom: 9px; padding: 13px; border-radius: 11px; background: #f4f7f5; }
.genetic-item strong { font-size: 12px; }
.genetic-item span { color: #506057; font-size: 10px; }
.genetic-item small { color: #8b9690; font-size: 8px; }
.muted-copy { color: #929c96; font-size: 10px; }
.event-timeline { display: grid; }
.event-item { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; }
.event-item:not(:last-child)::before { position: absolute; top: 18px; bottom: 0; left: 5px; width: 1px; content: ""; background: #dce5e0; }
.event-marker { z-index: 1; width: 11px; height: 11px; margin-top: 4px; border: 3px solid #dcebe4; border-radius: 50%; background: var(--green-2); }
.event-body { min-width: 0; padding: 0 0 25px; }
.event-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.event-heading strong { font-size: 12px; }
.event-heading time { color: #89958f; font-size: 9px; }
.event-body > p { margin: 8px 0 0; color: #536159; font-size: 11px; line-height: 1.65; }
.event-body > .event-notes { color: #75827b; }
.event-body > small { display: block; margin-top: 8px; color: #9aa39e; }
.event-media { display: grid; grid-template-columns: repeat(5, minmax(0, 84px)); gap: 8px; margin-top: 12px; }
.event-media .admin-image { border-radius: 9px; }
.compact-empty { padding: 35px; }
.owner-context-card > strong, .owner-context-card > span { display: block; }
.owner-context-card > strong { margin-bottom: 6px; font-size: 15px; }
.owner-context-card > span { overflow: hidden; margin-bottom: 18px; color: #87928c; text-overflow: ellipsis; }
.record-summary-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.record-summary-card dl div { padding: 13px; border-radius: 10px; background: #f3f6f4; }
.record-summary-card dt { color: #87928c; font-size: 8px; }
.record-summary-card dd { margin: 5px 0 0; font-size: 20px; font-weight: 650; }

.analytics-wrap { max-width: 1480px; }
.analytics-wrap button:focus-visible, .analytics-wrap select:focus-visible { outline: 3px solid rgba(53,107,89,.18); outline-offset: 2px; }
.analytics-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.analytics-kicker { display: flex; align-items: center; gap: 10px; }
.demo-badge { padding: 4px 9px; border-radius: 999px; color: #896226; background: #f8e8c9; font-size: 9px; font-weight: 750; }
.demo-badge.is-live { color: #2f684f; background: #dfece5; }
.demo-badge.is-fallback { color: #896226; background: #f8e8c9; }
.analytics-wrap[aria-busy="true"] .analytics-section { opacity: .72; }
.analytics-wrap .analytics-section { transition: opacity .18s ease; }
.analytics-heading h1 { margin: 10px 0 8px; font-family: Georgia, "Songti SC", serif; font-size: 42px; font-weight: 500; }
.analytics-heading > div:first-child > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.analytics-toolbar { display: grid; grid-template-columns: auto auto; justify-items: end; gap: 10px 14px; }
.range-switch { display: inline-flex; align-self: end; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.range-switch button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 8px; color: #718078; background: transparent; font-size: 11px; }
.range-switch button.is-active { color: #fff; background: var(--green); }
.dashboard-filters { display: flex; gap: 8px; }
.dashboard-filters label { position: relative; }
.dashboard-filters label > span { position: absolute; z-index: 1; top: 6px; left: 11px; margin: 0; color: #98a29d; font-size: 8px; pointer-events: none; }
.dashboard-filters select { width: 130px; height: 42px; padding: 13px 28px 0 10px; border-radius: 11px; color: #415149; background: #fff; font-size: 10px; }
.filter-context { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; margin: 0; color: #9aa39e; font-size: 9px; }
.analytics-wrap .filter-context { flex-wrap: wrap; }
.analytics-retry { min-height: 44px; padding: 8px 12px; border: 1px solid #d7dfda; border-radius: 10px; color: #40534a; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.filter-definition { gap: 1px; color: #8a9690; white-space: nowrap; }
.analytics-section { margin-top: 42px; }
.analytics-section:first-of-type { margin-top: 0; }
.section-label { display: flex; align-items: start; gap: 12px; margin-bottom: 16px; }
.section-label > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; border: 1px solid #d8e0db; border-radius: 9px; color: #7e8d85; background: rgba(255,255,255,.62); place-items: center; font-size: 8px; font-weight: 750; }
.section-label h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 21px; font-weight: 500; }
.section-label p { margin: 4px 0 0; color: #8b9690; font-size: 10px; }
.analytics-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.analytics-metric { min-width: 0; min-height: 150px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(29,49,40,.035); }
.metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-heading > span:first-child { overflow: hidden; color: #526159; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.metric-value { display: block; margin: 20px 0 13px; font-family: Inter, "PingFang SC", system-ui, sans-serif; font-size: clamp(26px, 2.2vw, 34px); font-weight: 650; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.04em; line-height: 1.05; }
.metric-detail { display: block; overflow: hidden; color: #8a9690; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.metric-detail b { margin-right: 3px; color: #2f765c; }
.metric-detail b.change-down { color: var(--red); }
.analytics-metric-featured { border-color: #315e4f; color: #fff; background: #315e4f; }
.analytics-metric-featured .metric-heading > span:first-child, .analytics-metric-featured .metric-detail { color: #c5d7d0; }
.analytics-metric-featured .metric-detail b { color: #f0c879; }
.tooltip-wrap { position: relative; display: inline-flex; align-items: center; }
.info-button { display: inline-grid; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; color: #9aa49f; background: transparent; place-items: center; font-size: 11px; line-height: 1; }
.info-button:hover, .info-button:focus-visible { color: var(--green); background: var(--green-soft); }
.analytics-metric-featured .info-button { color: #a9c0b6; }
.metric-tooltip { position: absolute; z-index: 20; right: -5px; bottom: calc(100% + 8px); width: 220px; padding: 10px 12px; border: 1px solid #d8e0db; border-radius: 10px; color: #f6f8f6; background: #203d34; box-shadow: 0 12px 30px rgba(24,48,39,.18); font-size: 9px; font-weight: 500; line-height: 1.6; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.analytics-metric:first-child .metric-tooltip { right: auto; left: -5px; }
.tooltip-wrap:hover .metric-tooltip, .tooltip-wrap:focus-within .metric-tooltip { opacity: 1; transform: translateY(0); }
.analytics-grid { display: grid; gap: 14px; }
.analytics-grid-main { grid-template-columns: minmax(0, 1fr); }
.analytics-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.analytics-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(29,49,40,.035); }
.analytics-card-title { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.analytics-card-title h3 { margin: 6px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 20px; font-weight: 500; }
.analytics-card-title h3 > .tooltip-wrap { vertical-align: 2px; }
.analytics-card-title h3 > .tooltip-wrap .info-button { display: inline-grid; }
.activity-heading p { margin: 5px 0 0; color: #929c97; font-size: 9px; }
.card-note { color: #8d9993; font-size: 9px; white-space: nowrap; }
.metric-switch { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.metric-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid #e1e7e3; border-radius: 9px; color: #77837d; background: #f7f9f7; font-size: 9px; }
.metric-switch button i { width: 7px; height: 7px; border-radius: 3px; opacity: .42; }
.metric-switch button.is-active { border-color: #b9cac1; color: #304c40; background: #edf4f0; }
.metric-switch button.is-active i { opacity: 1; }
.compact-switch { flex-wrap: nowrap; padding: 3px; border-radius: 10px; background: #f1f4f2; }
.compact-switch button { min-height: 28px; border: 0; background: transparent; }
.compact-switch button.is-active { color: #fff; background: var(--green); box-shadow: 0 3px 8px rgba(36,79,66,.15); }
.line-chart { width: 100%; min-height: 270px; overflow: hidden; }
.line-chart svg { display: block; width: 100%; height: 270px; overflow: visible; }
.chart-grid-line { stroke: #e7ece9; stroke-dasharray: 3 5; }
.chart-axis-label { fill: #68776e; font-family: Inter, "PingFang SC", sans-serif; font-size: 12px; font-variant-numeric: tabular-nums; }
.chart-series-line, .chart-point { vector-effect: non-scaling-stroke; }
.chart-point { transition: r .15s; }
.chart-point:hover { r: 6; }
.chart-insight { display: flex; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 11px; background: #f4f7f5; }
.chart-insight span { height: fit-content; padding: 3px 7px; border-radius: 999px; color: var(--green); background: #dfeae4; font-size: 8px; font-weight: 750; }
.chart-insight p { margin: 0; color: #637169; font-size: 9px; line-height: 1.65; }
.engagement-headline { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; padding: 16px; border-radius: 15px; background: #f0f5f2; }
.engagement-headline > strong { color: var(--green); font-size: 38px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1; }
.engagement-headline span b, .engagement-headline span small { display: block; }
.engagement-headline span b { color: #394c43; font-size: 11px; }
.engagement-headline span small { margin-top: 5px; color: #829087; font-size: 9px; }
.engagement-stages { display: grid; gap: 15px; }
.engagement-stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; color: #65736b; font-size: 9px; }
.engagement-stage > strong { color: #3c5046; font-size: 10px; font-variant-numeric: tabular-nums; }
.engagement-stage > i, .feature-ranking i, .pet-distribution i { grid-column: 1 / -1; display: block; height: 6px; overflow: hidden; border-radius: 999px; background: #edf1ee; }
.engagement-stage > i b, .feature-ranking i b, .pet-distribution i b { display: block; height: 100%; border-radius: inherit; background: #789d8e; }
.engagement-stage.is-core span, .engagement-stage.is-core strong { color: var(--green); font-weight: 750; }
.engagement-stage.is-core > i b { background: var(--green); }
.card-footnote { margin: 19px 0 0; color: #929c97; font-size: 9px; line-height: 1.6; }
.activation-card { padding-bottom: 20px; }
.activation-funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.activation-overview { margin: 0 0 18px; color: #315e4f; font-size: 16px; line-height: 1.6; }
.activation-group-title { margin: 20px 0 12px; color: #526159; font-size: 14px; font-weight: 650; }
.activation-coverage { margin: 16px 0 0; color: #65736b; font-size: 14px; line-height: 1.6; }
.funnel-step { min-width: 0; padding: 14px; border: 1px solid #e4e9e6; border-radius: 15px; background: #fbfcfb; }
.funnel-step-head { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 5px 8px; align-items: center; }
.funnel-step-head em { grid-row: 1 / 3; display: grid; width: 25px; height: 25px; border-radius: 8px; color: #7d8a83; background: #edf1ee; place-items: center; font-size: 8px; font-style: normal; }
.funnel-step-head span { color: #58675f; font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.funnel-step-head strong { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1; }
.funnel-step > i { display: block; height: 7px; margin: 16px 0 10px; overflow: hidden; border-radius: 999px; background: #e9eeeb; }
.funnel-step > i b { display: block; width: var(--funnel-rate); height: 100%; border-radius: inherit; background: var(--green); }
.funnel-step-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.funnel-step-meta span { color: var(--green); font-size: 14px; font-weight: 750; font-variant-numeric: tabular-nums; }
.funnel-step-meta small { color: #65736b; font-size: 12px; line-height: 1.5; }
.funnel-legend { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; color: #8e9993; font-size: 9px; }
.funnel-legend span { display: flex; align-items: center; gap: 6px; }
.funnel-legend i { width: 20px; height: 5px; border-radius: 99px; background: var(--green); }
.funnel-legend p { margin: 0; }
.funnel-legend b { color: #9b6a27; }
.ranking-list { display: grid; gap: 16px; }
.feature-ranking > div { display: grid; grid-template-columns: 24px minmax(105px, 1fr) minmax(54px, .6fr) minmax(104px, auto); align-items: center; gap: 10px; }
.feature-ranking em { color: #a3aaa6; font-size: 10px; font-style: normal; font-variant-numeric: tabular-nums; }
.feature-ranking span strong, .feature-ranking span small { display: block; }
.feature-ranking span strong { font-size: 10px; }
.feature-ranking span small { margin-top: 4px; color: #939c97; font-size: 8px; }
.feature-ranking i { grid-column: auto; }
.feature-ranking > div > .ranking-value { color: #47574f; font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.feature-ranking > div:nth-child(-n+3) em { color: #9b6a27; }
.analytics-empty { margin: 0; padding: 24px 8px; color: #939d98; font-size: 10px; text-align: center; }
.pet-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 24px; }
.pet-totals > div { min-width: 0; padding: 13px 11px; border-radius: 12px; background: #f2f6f3; }
.pet-totals span, .pet-totals strong { display: block; }
.pet-totals span { overflow: hidden; color: #7b8982; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.pet-totals strong { margin-top: 7px; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.03em; white-space: nowrap; }
.pet-totals > div:first-child { color: #fff; background: var(--green); }
.pet-totals > div:first-child span { color: #c7d9d1; }
.pet-distribution { display: grid; gap: 15px; }
.pet-distribution > div { display: grid; grid-template-columns: 53px 1fr 32px; align-items: center; gap: 9px; color: #68756e; font-size: 8px; }
.pet-distribution i { grid-column: auto; }
.pet-distribution strong { color: #415149; font-variant-numeric: tabular-nums; text-align: right; }
.morph-tabs { justify-content: start; width: fit-content; margin: -8px 0 13px; }
.morph-ranking { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.morph-ranking li { display: grid; grid-template-columns: 25px minmax(0, 1fr) 44px; align-items: center; gap: 9px; min-height: 44px; border-bottom: 1px solid #eef1ef; }
.morph-ranking li:last-child { border: 0; }
.morph-ranking em { display: grid; width: 22px; height: 22px; border-radius: 7px; color: #66736c; background: #edf1ee; place-items: center; font-size: 8px; font-style: normal; }
.morph-ranking li:first-child em { color: #785621; background: #f3dfbb; }
.morph-ranking span { min-width: 0; }
.morph-ranking span strong, .morph-ranking span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.morph-ranking span strong { font-size: 9px; }
.morph-ranking span small { margin-top: 3px; color: #929c96; font-size: 8px; }
.morph-ranking li > b { color: #526159; font-size: 9px; font-variant-numeric: tabular-nums; text-align: right; }
.retention-card { padding-bottom: 20px; }
.retention-definition { gap: 2px; color: #8d9993; font-size: 9px; white-space: nowrap; }
.retention-definition .metric-tooltip { width: 260px; }
.retention-scroll { overflow-x: auto; padding-bottom: 3px; }
.retention-table { min-width: 760px; }
.retention-table th, .retention-table td { padding: 13px 14px; text-align: center; }
.retention-table th:first-child, .retention-table td:first-child { text-align: left; }
.retention-table td { font-size: 9px; font-variant-numeric: tabular-nums; }
.retention-table td span { display: inline-block; min-width: 62px; padding: 8px; border-radius: 8px; color: #315e4f; }
.retention-table td span[data-level="1"] { background: #edf3ef; }
.retention-table td span[data-level="2"] { background: #dfece5; }
.retention-table td span[data-level="3"] { background: #c9dfd3; }
.retention-table td span[data-level="4"] { color: #fff; background: #76a18e; }
.retention-table td span[data-level="5"] { color: #fff; background: #315e4f; }
.retention-note { margin: 14px 0 0; color: #939d98; font-size: 9px; }

.operations-wrap { max-width: 1480px; }
.operations-heading { align-items: center; }
.operations-overall { min-width: 190px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.operations-overall span, .operations-overall small { display: block; color: var(--muted); font-size: 9px; }
.operations-overall strong { display: block; margin: 7px 0; font-size: 22px; }
.operations-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.operations-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(29,49,40,.035); }
.operations-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 10px; }
.operations-card-head b, .operations-badge { padding: 4px 7px; border-radius: 999px; font-size: 8px; }
.operations-card > strong { display: block; margin: 17px 0 9px; overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.operations-card > p { min-height: 30px; margin: 0; color: #89938e; font-size: 9px; line-height: 1.65; }
.operations-state-ok { border-color: #cfe0d7; }
.operations-state-ok .operations-card-head b, .operations-badge.operations-state-ok { color: var(--green-2); background: var(--green-soft); }
.operations-state-warning { border-color: #ead5ae; }
.operations-state-warning .operations-card-head b, .operations-badge.operations-state-warning { color: var(--amber); background: var(--amber-soft); }
.operations-state-critical { border-color: #e6c6c1; }
.operations-state-critical .operations-card-head b, .operations-badge.operations-state-critical { color: var(--red); background: var(--red-soft); }
.operations-state-unavailable .operations-card-head b, .operations-badge.operations-state-unavailable { color: #6f7773; background: #ecefec; }
.operations-detail-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-top: 22px; }
.operations-detail-card { min-width: 0; }
.operations-badge { font-weight: 700; }
.operations-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 0; }
.operations-fields > div { min-width: 0; padding: 13px 0; border-bottom: 1px solid #edf0ee; }
.operations-fields dt { color: #89948e; font-size: 9px; }
.operations-fields dd { margin: 6px 0 0; overflow-wrap: anywhere; color: #34463d; font-size: 11px; font-weight: 650; }
.operations-fields-single { grid-template-columns: 1fr; }
.operations-note { margin: 18px 0 0; padding: 14px; border-radius: 11px; color: #66756d; background: #f3f6f4; font-size: 9px; line-height: 1.7; }

.login-page { min-height: 100vh; color: #fff; background: #173b31; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr minmax(440px, .72fr); }
.login-intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 8vw, 110px); background: radial-gradient(circle at 75% 18%, rgba(232,185,106,.18), transparent 30%); }
.login-eyebrow { color: #e7b96a; font-size: 10px; font-weight: 700; letter-spacing: 2px; }
.login-intro h1 { max-width: 680px; margin: 25px 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(46px, 6vw, 82px); font-weight: 500; line-height: 1.14; letter-spacing: -.05em; }
.login-intro p { max-width: 510px; margin: 0; color: #b9cec5; font-size: 14px; line-height: 1.9; }
.login-note { margin-top: 50px; color: #91ad9f; font-size: 11px; }
.login-note span { margin-right: 7px; color: #e7b96a; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 7vw, 90px); color: var(--ink); background: #f6f7f4; }
.login-brand { margin-bottom: 55px; }
.login-brand small { color: #829087; }
.login-card h2 { margin: 0 0 7px; font-family: Georgia, "Songti SC", serif; font-size: 31px; font-weight: 500; }
.login-card > p { margin: 0 0 25px; color: var(--muted); font-size: 12px; }
.login-form { display: grid; gap: 17px; }
.login-form label { color: #56645d; font-size: 11px; font-weight: 650; }
.login-form input { height: 48px; margin-top: 8px; background: #fff; }
.login-form .button { min-height: 48px; margin-top: 8px; }
.login-security { margin-top: 18px; color: #9aa39e; font-size: 9px; text-align: center; }

@media (max-width: 1180px) {
	.operations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-heading { align-items: start; }
  .analytics-toolbar { grid-template-columns: 1fr; }
  .range-switch, .dashboard-filters { grid-column: 1; }
  .filter-context { grid-column: 1; }
  .analytics-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .activation-funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
	.operations-detail-grid { grid-template-columns: 1fr; }
	.operations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 66px; padding: 0 20px; color: #fff; background: #183b31; }
  .mobile-header .brand-mark { width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; }
  .mobile-nav { display: flex; gap: 16px; color: #c8d9d2; font-size: 12px; }
  .page-wrap { padding: 28px 22px 50px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: 1fr; }
  .user-detail-grid { grid-template-columns: 1fr; }
  .user-detail-metrics { grid-template-columns: repeat(2, 1fr); }
  .animal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .animal-detail-layout { grid-template-columns: 1fr; }
  .analytics-metrics { grid-template-columns: repeat(3, 1fr); }
  .analytics-grid-main, .analytics-grid-secondary { grid-template-columns: 1fr; }
  .analytics-grid-secondary .morph-card { grid-column: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { display: none; }
  .login-card { min-height: 100vh; max-width: 620px; width: 100%; margin: auto; }
}

@media (max-width: 620px) {
  .filter-bar.user-filter-bar { grid-template-columns: 1fr; }
  .user-detail-heading { align-items: start; }
  .user-detail-heading .detail-time { display: none; }
  .user-detail-avatar { width: 52px; height: 52px; border-radius: 16px; }
  .user-detail-metrics { grid-template-columns: 1fr 1fr; }
  .profile-fields { grid-template-columns: 1fr; }
  .animal-card-grid, .genetics-layout { grid-template-columns: 1fr; }
  .event-heading { align-items: start; flex-direction: column; gap: 4px; }
}

@media (max-width: 680px) {
	.operations-grid, .operations-fields { grid-template-columns: 1fr; }
  .hero-panel { align-items: start; flex-direction: column; min-height: 290px; padding: 32px 27px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 135px; padding: 19px; }
  .metric-card strong { font-size: 34px; }
  .page-heading, .detail-heading { align-items: start; flex-direction: column; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .filter-bar .button { width: 100%; }
  .admin-image-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 12px; }
  .lightbox-stage { grid-template-columns: 38px minmax(0, 1fr) 38px; width: 100%; height: 94vh; }
  .lightbox-nav { width: 34px; height: 52px; }
  .analytics-heading { align-items: start; flex-direction: column; }
  .analytics-toolbar { width: 100%; justify-items: stretch; }
  .analytics-metrics { grid-template-columns: 1fr 1fr; }
  .analytics-metric { padding: 16px; }
  .metric-value { font-size: 28px; }
  .range-switch { width: 100%; }
  .range-switch button { flex: 1; }
  .dashboard-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .dashboard-filters select { width: 100%; }
  .analytics-card-title { flex-direction: column; }
  .metric-switch { justify-content: flex-start; }
  .line-chart, .line-chart svg { min-height: 230px; height: 230px; }
  .activation-funnel { grid-template-columns: 1fr 1fr; }
  .funnel-legend { align-items: start; flex-direction: column; }
  .pet-totals { grid-template-columns: 1fr; }
  .retention-definition .metric-tooltip { right: auto; left: 0; }
  .user-summary { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 32px 24px; }
}

/* Space inspection shares the existing cards and typography. */
.inspection-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}.inspection-tabs a{padding:10px 16px;border:1px solid #dfe6e1;border-radius:12px;color:#315d50;background:#fff;font-size:14px;min-height:42px;display:flex;align-items:center}.inspection-table{margin:24px 0}.inspection-table .section-heading{padding:18px 22px;margin:0}.inspection-table h2{font-size:18px;margin:0}.inspection-table td{max-width:280px;overflow-wrap:anywhere;white-space:normal}.inspection-table .row-link{white-space:normal;overflow-wrap:anywhere}.inspection-table th{white-space:nowrap}.profile-fields dd{overflow-wrap:anywhere;white-space:pre-wrap}.inspection-notice{margin:18px 0;color:#617569;font-size:14px}.inspection-form{display:grid;gap:16px}.inspection-form input{max-width:100%}@media(max-width:640px){.inspection-tabs{gap:6px}.inspection-tabs a{font-size:14px;padding:10px 12px}.inspection-table .section-heading{padding:16px}}
.inspection-table table{width:max-content;min-width:100%;table-layout:auto}.inspection-table td,.inspection-table th{min-width:88px;font-size:14px}.inspection-table td{max-width:280px}.user-detail-metrics small{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.6}.page-heading p{overflow-wrap:anywhere}@media(max-width:640px){.mobile-header{display:block;height:auto;min-height:66px;padding:14px 18px}.mobile-header .brand strong{white-space:nowrap}.mobile-nav{display:flex;max-width:100%;overflow-x:auto;gap:20px;padding-top:12px}.mobile-nav a{white-space:nowrap;flex-shrink:0;min-height:36px;display:flex;align-items:center;font-size:14px}.user-detail-metrics article>span{font-size:14px}.user-detail-metrics article>small{font-size:13px}}
.inspection-tabs a[aria-current=page]{color:#fff;background:#315d50;border-color:#315d50}.action-card input{display:block;width:100%;max-width:100%;padding:12px 14px;border:1px solid #dde5df;border-radius:10px;background:#fff;font:inherit}

/* Feature frequency uses existing daily summaries and the shared card style. */
.feature-usage-card .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.feature-usage-card .analytics-card-title { margin-bottom: 16px; }
.feature-summary, .feature-note, .feature-definitions { color: #617168; font-size: 14px; line-height: 1.7; }
.feature-summary { margin: 8px 0 0; }
.feature-scroll-hint { color: #68776e; font-size: 13px; }
.feature-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #e4e9e5; border-radius: 12px; }
.feature-table-scroll:focus-visible { outline: 3px solid #a6c2b5; outline-offset: 2px; }
.feature-usage-table { min-width: 660px; width: 100%; }
.legacy-feature-details .feature-usage-table { min-width: 860px; }
.feature-usage-table th, .feature-usage-table td { padding: 12px; letter-spacing: normal; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.feature-usage-table thead th { color: #55675d; background: #f3f6f3; }
.feature-usage-table tr > :first-child { position: sticky; left: 0; z-index: 1; width: 180px; max-width: 200px; text-align: left; white-space: normal; background: #fff; border-right: 1px solid #e4e9e5; }
.feature-usage-table thead tr > :first-child { background: #f3f6f3; }
.feature-usage-table small { display: block; margin-top: 4px; color: #6a786f; font-size: 13px; font-weight: 400; line-height: 1.5; }
.feature-note { margin: 16px 0 10px; }
.feature-definitions summary { width: fit-content; min-height: 44px; padding: 10px 0; cursor: pointer; color: #315d50; }
.feature-definitions p { margin: 8px 0 14px; }
@media (max-width: 680px) {
  .feature-usage-card { padding: 18px; }
  .feature-usage-table tr > :first-child { min-width: 125px; width: 125px; max-width: 125px; }
}

.analytics-toolbar .range-switch button { white-space: nowrap; }
