:root {
  --paper: #f7f5ef;
  --panel: #ffffff;
  --ink: #171717;
  --muted: #696969;
  --line: #d8d5cc;
  --accent: #11615b;
  --accent-soft: #e0f0ed;
  --warning: #7a4b00;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.app {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 148px;
  gap: 10px;
  height: 100vh;
  padding: 10px;
  overflow: hidden;
}

.app.is-calendar {
  grid-template-rows: minmax(0, 1fr);
}

.app.is-calendar .dog-panel {
  display: none;
}

.dog-panel,
.board-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dog-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 1fr;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.dog-controls {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-right: 1px solid var(--line);
}

.panel-header,
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-header {
  padding: 8px 10px;
  border-right: 0;
}

.header-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  display: block;
  width: clamp(210px, 26vw, 360px);
  height: 76px;
  object-fit: contain;
  object-position: left center;
}

.metric {
  display: grid;
  min-width: 130px;
  min-height: 54px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 12px;
}

.metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.location-select {
  width: 100%;
  min-width: 138px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
  outline: 0;
}

.location-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.message-button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.message-button.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.message-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
}

h2 {
  font-size: 22px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
}

.search {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: auto;
  align-content: start;
  padding: 8px 10px;
  border-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  text-transform: none;
}

.dog-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: end;
  padding: 34px 8px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.dog-card {
  position: relative;
  display: grid;
  grid-template-columns: clamp(32px, 3.6vw, 44px) minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  width: clamp(118px, 11vw, 156px);
  min-width: clamp(118px, 11vw, 156px);
  height: 58px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  touch-action: none;
  user-select: none;
}

.dog-profile-button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent);
  display: grid;
  place-items: center;
  padding: 0;
}

.dog-vaccine-button {
  position: absolute;
  right: 28px;
  top: 3px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #27845d;
  display: grid;
  place-items: center;
  padding: 0;
}

.dog-vaccine-button.is-alert {
  border-color: #f2b9ae;
  color: #d84532;
  background: #fff4f1;
}

.dog-profile-button svg,
.dog-vaccine-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dog-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dog-card.is-assigned,
.dog-card.is-in-play-group {
  background: #f2f1ec;
  opacity: 0.72;
}

.dog-card.has-visit {
  border-color: #b8d6d0;
}

.dog-card.is-in-play-group {
  border-color: #c8c4ba;
}

.dog-photo,
.dog-initials {
  width: clamp(32px, 3.6vw, 44px);
  height: clamp(32px, 3.6vw, 44px);
  border-radius: 8px;
  object-fit: cover;
  background: #ebe8df;
}

.dog-initials {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.dog-copy {
  display: grid;
  min-width: 0;
}

.dog-name {
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
  white-space: normal;
}

.dog-owner,
.dog-stay,
.dog-location {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.05;
  overflow-wrap: anywhere;
  white-space: normal;
}

.dog-owner {
  display: none;
}

.dog-stay {
  color: var(--ink);
  font-weight: 950;
}

.dog-icon-strip {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-top: 2px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1;
}

.calendar-dog-chip .dog-icon-strip {
  display: flex;
  gap: 3px;
  margin: 2px 0 3px;
}

.calendar-dog-chip .dog-icon-strip span {
  display: inline-flex;
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
}

.dog-location {
  color: var(--accent);
  font-weight: 850;
}

.board-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.status {
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.status.is-busy {
  color: var(--warning);
}

.status.is-ok {
  color: var(--accent);
}

.room-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.room-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.today-tab {
  min-width: 190px;
  text-align: center;
  white-space: nowrap;
}

.today-tab span {
  display: block;
}

.room-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.nav-select {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.nav-select.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.nav-select span {
  pointer-events: none;
}

.nav-select select {
  width: 100%;
  min-width: 150px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 16px;
  outline: 0;
}

.nav-select.is-active select {
  color: #fff;
}

.nav-select option {
  color: var(--ink);
  background: #fff;
}

.nav-action {
  color: var(--accent);
}

.room-board {
  flex: 1;
  min-height: 0;
  padding: 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.calendar-board {
  display: grid;
  gap: 12px;
}

.calendar-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

.calendar-header strong {
  color: var(--accent);
  font-size: 22px;
}

.calendar-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.date-nav-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.calendar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trend-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #7a4b00;
  border-radius: 8px;
  background: #fff7e6;
  color: #7a4b00;
  font-size: 24px;
  font-weight: 950;
}

.sync-button {
  min-height: 42px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  padding: 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.calendar-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.calendar-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  min-width: 0;
  text-align: left;
}

button.calendar-stat {
  cursor: pointer;
  appearance: none;
  font: inherit;
  color: inherit;
}

button.calendar-stat:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.calendar-stat strong {
  display: block;
  color: var(--accent);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.calendar-stat.is-total {
  border-color: #7a4b00;
  background: #fff7e6;
}

.calendar-stat.is-total strong,
.calendar-stat.is-total span {
  color: #7a4b00;
  font-weight: 950;
}

.calendar-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-stat small {
  display: block;
  margin-top: 6px;
  color: var(--warning);
  font-size: 12px;
  font-weight: 950;
}

.calendar-split-stat small {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  color: var(--muted);
}

.calendar-split-stat small span {
  white-space: nowrap;
}

.calendar-split-stat small b {
  color: var(--accent);
  font-size: 11px;
}

.appointment-total {
  min-width: 0;
}

.calendar-detail {
  max-width: 680px;
}

.calendar-detail-list {
  display: grid;
  gap: 14px;
  overflow: auto;
}

.calendar-detail-section {
  display: grid;
  gap: 8px;
}

.calendar-detail-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.calendar-detail-section h3 span {
  color: var(--accent);
}

.calendar-detail-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.calendar-detail-item strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.calendar-detail-item span,
.calendar-detail-item small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.calendar-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.calendar-dogs {
  display: grid;
  gap: 12px;
}

.calendar-dog-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.calendar-dog-flow.is-single {
  grid-template-columns: 1fr;
}

.calendar-dog-section {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.calendar-dog-section.is-checkin {
  background: #f1fbf8;
  border-color: #9bd0c0;
}

.calendar-dog-section.is-checkout {
  background: #fff8ef;
  border-color: #d8b174;
}

.calendar-dog-section.is-staying {
  background: #f7f9fc;
  border-color: #b8c6d8;
}

.calendar-dog-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.calendar-dog-section-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.calendar-dog-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.calendar-dog-stack,
.calendar-dog-grid {
  display: grid;
  gap: 8px;
}

.calendar-dog-stack {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: start;
}

.calendar-dog-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  align-items: start;
}

.calendar-dog-chip {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) max-content;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 76px;
  padding: 8px 10px;
}

.calendar-dog-chip.is-checkout {
  grid-template-columns: 56px minmax(0, 1fr) max-content;
}

.calendar-dog-photo {
  width: 56px;
  height: 56px;
  border-radius: 7px;
  object-fit: cover;
  background: #eef2f0;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 950;
}

.calendar-dog-chip.is-checkin {
  border-left: 7px solid #207d68;
}

.calendar-dog-chip.is-checkout {
  border-left: 7px solid #b9791f;
}

.calendar-dog-chip.is-staying {
  border-left: 7px solid #58799d;
}

.calendar-dog-chip strong,
.calendar-dog-chip span {
  display: block;
}

.calendar-dog-chip strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.calendar-dog-chip span {
  overflow-wrap: normal;
  word-break: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.18;
}

.calendar-dog-time {
  grid-column: 2;
  min-width: 0;
  justify-self: start;
  text-align: left;
}

.calendar-dog-time b {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.calendar-dog-time span {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
}

.calendar-dog-actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 6px;
  width: max-content;
}

.calendar-owner-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 4px;
}

.calendar-owner-line > span {
  min-width: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.parent-contact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.parent-contact-actions button {
  box-sizing: border-box;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}

.parent-contact-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.round-action {
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}

.round-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.round-action.is-checkin {
  background: #207d68;
  box-shadow: 0 8px 18px rgba(32, 125, 104, 0.22);
}

.round-action.is-checkout {
  background: #b9791f;
  box-shadow: 0 8px 18px rgba(185, 121, 31, 0.2);
}

.round-action.is-undo {
  background: #58799d;
  box-shadow: 0 8px 18px rgba(88, 121, 157, 0.18);
}

.round-action.is-edit {
  background: #4f5b55;
  box-shadow: 0 8px 18px rgba(79, 91, 85, 0.16);
}

.checkin-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(20, 24, 22, 0.34);
  padding: 20px;
}

.reservation-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  justify-content: flex-end;
  background: rgba(20, 24, 22, 0.34);
}

.vaccine-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  background: rgba(20, 24, 22, 0.38);
  padding: 18px;
}

.vaccine-drawer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  width: min(1180px, 100%);
  max-height: min(860px, 94vh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(20, 24, 22, 0.28);
  padding: 14px;
}

.vaccine-drawer-head {
  position: relative;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  border-radius: 10px;
  background: #f8f7f2;
  padding: 12px 52px 12px 12px;
}

.vaccine-drawer-head h2 {
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
}

.vaccine-drawer-head .checkin-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

.vaccine-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.vaccine-document-panel,
.vaccine-entry-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.upload-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #9dcfc5;
  border-radius: 999px;
  background: #f1fbf8;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  padding: 0 12px;
}

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.vaccine-document-preview {
  display: grid;
  place-items: center;
  min-height: 360px;
  max-height: 520px;
  overflow: auto;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #f8f7f2;
}

.vaccine-document-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.document-empty,
.document-file-preview {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  padding: 18px;
  text-align: center;
}

.document-file-preview strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.document-file-preview a {
  color: var(--accent);
  font-weight: 950;
}

.vaccine-document-list {
  display: grid;
  gap: 8px;
}

.vaccine-document-list button {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px;
  text-align: left;
}

.vaccine-document-list button.is-active {
  border-color: #8ecbbf;
  background: #f1fbf8;
}

.vaccine-document-list strong {
  font-size: 13px;
  font-weight: 950;
}

.vaccine-document-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vaccine-entry-panel h3,
.vet-editor h3 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.vaccine-grid-head,
.vaccine-edit-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 86px;
  gap: 8px;
  align-items: center;
}

.vaccine-grid-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.vaccine-edit-list {
  display: grid;
  gap: 8px;
}

.vaccine-edit-row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.vaccine-edit-row input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf8;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  padding: 8px 10px;
}

.vaccine-edit-row span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 950;
  text-align: center;
}

.vet-editor {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.vet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vet-form-grid label.is-wide {
  grid-column: 1 / -1;
}

.vaccine-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.reservation-drawer {
  display: grid;
  align-content: start;
  gap: 12px;
  width: min(560px, 100%);
  height: 100%;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 54px rgba(20, 24, 22, 0.22);
  padding: 16px;
}

.reservation-status {
  position: relative;
  display: grid;
  gap: 2px;
  border-radius: 12px;
  background: #eaf9ef;
  padding: 16px 56px 16px 16px;
}

.reservation-status h2 {
  color: #21914a;
  font-size: 30px;
  font-weight: 950;
}

.reservation-status > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.reservation-status .checkin-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.reservation-client-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.reservation-client-card strong,
.reservation-client-card span {
  display: block;
}

.reservation-client-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.reservation-client-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.reservation-section {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.reservation-section h3 {
  margin: 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 950;
}

.reservation-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reservation-form-grid label {
  display: grid;
  gap: 5px;
}

.reservation-form-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reservation-form-grid input,
.reservation-form-grid select,
.reservation-section textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf8;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 10px;
}

.reservation-form-grid input,
.reservation-form-grid select {
  min-height: 42px;
}

.reservation-section textarea {
  min-height: 74px;
  resize: vertical;
}

.reservation-money {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reservation-money div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f7f2;
  padding: 12px;
}

.reservation-money span,
.reservation-money strong {
  display: block;
}

.reservation-money span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.reservation-money strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
}

.reservation-actions {
  position: sticky;
  bottom: -16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 0 0;
}

.checkin-panel {
  width: min(760px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 24, 22, 0.28);
  padding: 18px;
}

.checkin-head {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 40px;
  gap: 16px;
  align-items: center;
}

.checkin-photo {
  width: 112px;
  height: 112px;
  border-radius: 10px;
  object-fit: cover;
  background: #eef2f0;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 950;
}

.checkin-head h2 {
  margin: 2px 0 4px;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 0.95;
}

.checkin-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 850;
}

.checkin-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
}

.checkin-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.checkin-details div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  padding: 10px;
}

.checkin-details span,
.checkin-form-grid label > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkin-details strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
  line-height: 1.15;
}

.checkin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkin-form-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.checkin-checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.checkin-checkbox input {
  width: 24px;
  height: 24px;
}

.checkin-checkbox span {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}

.checkin-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  padding: 14px;
  color: var(--muted);
  font-weight: 850;
}

.checkin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 950;
}

.primary-button {
  border: 1px solid #207d68;
  background: #207d68;
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.message-board {
  display: grid;
  gap: 14px;
}

.message-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.message-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.message-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  padding: 14px;
}

.message-compose label {
  display: grid;
  gap: 6px;
}

.message-compose span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message-compose textarea {
  min-height: 84px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.message-parent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.message-parent-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.message-parent-photo {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef2f0;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 950;
}

.message-parent-card strong,
.message-parent-card span {
  display: block;
}

.message-parent-card strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
}

.message-parent-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settings-board {
  display: grid;
  gap: 14px;
}

.settings-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.settings-header h2 {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
}

.settings-header > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-card {
  display: grid;
  gap: 12px;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.settings-card label,
.vet-form-grid label {
  display: grid;
  gap: 6px;
}

.settings-card label > span,
.vet-form-grid label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.settings-card textarea,
.vet-form-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf8;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  padding: 10px;
}

.settings-card p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

.pet-detail-board {
  display: grid;
  gap: 14px;
}

.pet-detail-hero {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.pet-detail-photo {
  width: 118px;
  height: 118px;
  border-radius: 8px;
  object-fit: cover;
  background: #ebe8df;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 950;
}

.pet-detail-title h2 {
  font-size: clamp(32px, 4vw, 52px);
}

.pet-detail-title span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 850;
}

.pet-hero-icons {
  margin-top: 10px;
}

.pet-quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.pet-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 12px;
  align-items: start;
}

.pet-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.pet-icon-card {
  grid-column: 1 / -1;
}

.vaccine-summary-card {
  grid-column: 1 / -1;
}

.vaccine-status {
  display: grid;
  grid-template-columns: 34px minmax(130px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px solid #a7d8c8;
  border-radius: 8px;
  background: #f1fbf8;
  padding: 10px;
  color: #207d68;
}

.vaccine-status.is-alert {
  border-color: #f1b3a6;
  background: #fff4f1;
  color: #d84532;
}

.vaccine-status svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vaccine-status strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.vaccine-status span {
  font-size: 13px;
  font-weight: 850;
}

.vaccine-mini-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.vaccine-mini-list div,
.vet-mini {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  padding: 10px;
}

.vaccine-mini-list strong,
.vet-mini strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.vaccine-mini-list span,
.vet-mini span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.vaccine-mini-list span.is-expired {
  color: #d84532;
}

.pet-edit-card {
  grid-row: span 3;
}

.pet-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pet-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
}

.pet-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pet-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pet-form-grid label {
  display: grid;
  gap: 5px;
}

.pet-form-grid label.is-wide {
  grid-column: 1 / -1;
}

.pet-form-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pet-form-grid input,
.pet-form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf8;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 10px;
}

.pet-form-grid textarea {
  min-height: 78px;
  resize: vertical;
}

.pet-icon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pet-icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  border: 1px solid #bfe3f7;
  border-radius: 999px;
  background: #f0f9ff;
  color: #2277a3;
  padding: 5px 9px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.pet-icon-emoji {
  font-size: 17px;
  line-height: 1;
}

.pet-icons-form,
.pet-icon-rows {
  display: grid;
  gap: 8px;
}

.pet-icon-row-head,
.pet-icon-row {
  display: grid;
  grid-template-columns: 56px minmax(180px, 0.8fr) minmax(220px, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.pet-icon-row-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pet-icon-row input,
.pet-add-icon-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfcf8;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 10px;
}

.pet-icon-row .pet-icon-emoji-input,
.pet-add-icon-form input:first-child {
  text-align: center;
  font-size: 20px;
  padding: 5px;
}

.icon-remove-button {
  width: 34px;
  height: 34px;
  border: 1px solid #f2c5bd;
  border-radius: 999px;
  background: #fff8f6;
  color: #b9442f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.pet-icon-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.pet-icon-actions {
  display: flex;
  justify-content: flex-end;
}

.pet-add-icon-form {
  display: grid;
  grid-template-columns: 64px minmax(160px, 0.8fr) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.emoji-choice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f8f7f2;
  color: var(--ink);
  padding: 8px;
  text-align: left;
}

.emoji-choice:hover {
  border-color: #9dcfc5;
  background: #f1fbf8;
}

.emoji-choice span {
  font-size: 20px;
  line-height: 1;
}

.emoji-choice strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-list,
.history-list {
  display: grid;
  gap: 8px;
}

.owner-card,
.history-list article,
.reservation-summary {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  padding: 10px;
}

.owner-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.owner-card.is-primary {
  border-color: #97c8bd;
  background: #f1fbf8;
}

.owner-card strong,
.history-list strong,
.reservation-summary strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.owner-card span,
.owner-card small,
.history-list span,
.reservation-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.owner-card b {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  padding: 0;
}

.calendar-event {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 8px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-height: 88px;
  padding: 10px 12px;
}

.calendar-event.is-tour {
  border-left-color: #6f5fa8;
  background: #fbfaff;
}

.calendar-event.is-grooming {
  border-left-color: #2b7a92;
  background: #f7fcfd;
}

.calendar-event.is-moveable-grooming {
  border-left-color: #b7832d;
  background: #fffaf0;
}

.calendar-event.is-moveable-grooming .calendar-time {
  color: #7a4b00;
}

.calendar-event.is-tour .calendar-time {
  color: #4f4086;
}

.calendar-event.is-grooming .calendar-time {
  color: #1c6074;
}

.calendar-time {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}

.calendar-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.calendar-meta,
.calendar-deposit,
.calendar-checkin {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.calendar-deposit {
  margin-top: 4px;
  color: var(--warning);
}

.calendar-checkin {
  margin-top: 4px;
  color: var(--accent);
}

.calendar-event.is-moveable-grooming .calendar-checkin {
  color: #7a4b00;
}

.calendar-deposit.is-paid {
  color: var(--accent);
}

.calendar-empty,
.calendar-warning {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.calendar-warning {
  min-height: auto;
  place-items: start;
  color: var(--warning);
  padding: 12px 14px;
  text-align: left;
}

.trend-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.32);
  padding: 16px;
}

.trend-report {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 12px;
  width: min(1180px, 100%);
  max-height: min(900px, 92dvh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
  box-shadow: var(--shadow);
}

.trend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.trend-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trend-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.trend-insights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.trend-insights div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.trend-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
}

.trend-day {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.trend-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.trend-day-head strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.trend-day-head span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.trend-bar {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 24px;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.trend-bar div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece9df;
}

.trend-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.trend-bar.grooms i {
  background: #2b7a92;
}

.trend-bar.tours i {
  background: #6f5fa8;
}

.trend-bar strong {
  color: var(--ink);
  text-align: right;
}

.weekday-trends {
  display: grid;
  gap: 8px;
}

.weekday-table {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
}

.weekday-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.weekday-row strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.play-group-board {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 100%;
}

.play-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

.play-group-header span {
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.play-group-drop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  align-content: start;
  min-height: 340px;
  border: 2px dashed #b8d6d0;
  border-radius: 8px;
  background: #f8fcfb;
  padding: 12px;
}

.play-group-drop.is-drop-target {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.play-group-dog {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.play-group-dog.is-expected {
  background: #fbfaf6;
  border-style: dashed;
}

.play-group-dog strong,
.play-group-dog span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.play-group-dog strong {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.05;
}

.play-group-dog span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.play-group-dog button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.cabin-grid {
  display: grid;
  gap: 8px;
  align-items: stretch;
}

.cabin-grid.is-moego {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  min-width: 0;
}

.cabin-grid.is-local {
  width: 100%;
  grid-template-columns: repeat(var(--room-cols), minmax(0, 1fr));
  grid-auto-rows: minmax(136px, 1fr);
}

.cabin {
  display: grid;
  grid-template-rows: auto minmax(54px, 1fr) auto;
  min-height: 142px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.cabin-grid.is-moego .cabin {
  min-height: 156px;
}

.cabin.is-drop-target {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.cabin.is-clean {
  border-color: #bfd8d3;
  background: #fbfffe;
}

.cabin.is-dirty {
  border-color: #b7832d;
  background: #fff8e8;
}

.cabin-title {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.cabin-title span {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.assigned-dog-list {
  display: grid;
  gap: 4px;
}

.assigned-dog {
  display: grid;
  align-content: center;
  gap: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 0;
}

.assigned-dog:last-child {
  border-bottom: 0;
}

.assigned-main {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.assigned-photo,
.assigned-initials {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #ebe8df;
}

.assigned-initials {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 16px;
  font-weight: 950;
}

.assigned-name {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.05;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}

.assigned-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}

.empty-cabin {
  display: grid;
  place-items: center;
  min-height: 62px;
  color: #aaa;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.cabin-status {
  min-height: 70px;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cabin-status.is-clean {
  color: var(--accent);
}

.cabin-status.is-dirty {
  color: var(--warning);
}

.clear-button,
.status-button,
.moego-button {
  justify-self: start;
  max-width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
  white-space: normal;
}

.status-button {
  color: var(--ink);
}

.moego-button {
  color: var(--accent);
}

.cabin.is-dirty .status-button {
  border-color: #b7832d;
}

.cabin.is-clean .status-button {
  border-color: #8fbdb5;
}

.drag-ghost {
  position: fixed;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 3px solid var(--accent);
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow);
}

.drag-ghost .dog-photo,
.drag-ghost .dog-initials {
  width: 60px;
  height: 60px;
}

.drag-ghost span {
  display: none;
}

.dog-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: end center;
  background: rgba(0, 0, 0, 0.28);
  padding: 16px;
}

.dog-picker {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(720px, 100%);
  max-height: min(680px, 88dvh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.dog-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.picker-current {
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.picker-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.picker-search {
  display: grid;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.picker-search input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 16px;
  text-transform: none;
}

.picker-dogs {
  display: grid;
  gap: 8px;
  padding: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.picker-dog {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  color: var(--ink);
  text-align: left;
}

.picker-dog.is-assigned {
  background: #f2f1ec;
}

.picker-dog .dog-photo,
.picker-dog .dog-initials {
  width: 44px;
  height: 44px;
}

.picker-dog strong,
.picker-dog span span {
  display: block;
  overflow-wrap: anywhere;
}

.picker-dog strong {
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
}

.picker-dog span span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
}

.picker-empty {
  display: grid;
  place-items: center;
  min-height: 100px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .app {
    grid-template-rows: minmax(0, 1fr) 146px;
    gap: 8px;
    padding: 8px;
  }

  .board-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: min(300px, 72vw);
    height: 70px;
  }

  .header-metrics {
    width: 100%;
    align-items: stretch;
  }

  .metric,
  .status {
    flex: 1;
    min-width: 0;
  }

  .dog-panel {
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    min-height: 100dvh;
  }

  .app {
    display: block;
    height: auto;
    min-height: 100dvh;
    overflow: auto;
  }

  .app.is-calendar .board-panel {
    min-height: 100dvh;
  }

  .board-panel {
    min-height: 72dvh;
    overflow: visible;
  }

  .board-header {
    gap: 10px;
    padding: 12px;
  }

  .brand-logo {
    width: min(260px, 76vw);
    height: 64px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 21px;
  }

  .header-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric {
    min-height: 50px;
    padding: 7px 10px;
  }

  .metric strong {
    font-size: 18px;
  }

  .status {
    grid-column: 1 / -1;
    min-height: 42px;
    min-width: 0;
    padding: 10px;
  }

  .room-tabs {
    gap: 6px;
    padding: 8px;
  }

  .room-tab {
    min-height: 38px;
    padding: 0 12px;
    font-size: 16px;
    white-space: nowrap;
  }

  .today-tab {
    min-width: 160px;
  }

  .nav-select {
    min-height: 38px;
    padding: 0 10px;
    font-size: 16px;
  }

  .nav-select select {
    min-width: 120px;
    font-size: 14px;
  }

  .room-board {
    padding: 8px;
    overflow: visible;
  }

  .cabin-grid.is-moego {
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)) !important;
    min-width: 0 !important;
  }

  .cabin-grid.is-local {
    gap: 6px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: auto;
  }

  .cabin {
    min-height: 136px;
  }

  .cabin-title {
    font-size: 11px;
  }

  .cabin-status {
    min-height: 60px;
    font-size: 22px;
  }

  .play-group-drop {
    grid-template-columns: 1fr;
    min-height: 260px;
    padding: 8px;
  }

  .play-group-dog {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .assigned-name {
    font-size: 16px;
  }

  .dog-panel {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-rows: 1fr;
    margin-top: 8px;
    min-height: 138px;
    overflow: hidden;
  }

  .dog-controls {
    border-right: 1px solid var(--line);
  }

  .panel-header {
    border-right: 0;
    padding: 8px 10px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .search {
    grid-template-columns: 1fr;
    border-right: 0;
    padding: 8px 10px;
  }

  .search input {
    min-height: 30px;
    font-size: 13px;
  }

  .dog-list {
    display: flex;
    flex-wrap: nowrap;
    max-height: none;
    padding: 26px 8px 8px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .dog-card {
    grid-template-columns: 36px minmax(0, 1fr);
    width: clamp(112px, 26vw, 142px);
    min-width: clamp(112px, 26vw, 142px);
    height: 52px;
    min-height: 52px;
  }

  .dog-photo,
  .dog-initials {
    width: 36px;
    height: 36px;
  }

  .calendar-header {
    grid-template-columns: 1fr;
  }

  .calendar-date-nav,
  .calendar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-date-nav {
    align-items: stretch;
    width: 100%;
  }

  .date-nav-button,
  .sync-button,
  .trend-button {
    width: 100%;
  }

  .pet-detail-hero {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .pet-detail-photo {
    width: 82px;
    height: 82px;
    font-size: 26px;
  }

  .pet-quick-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .pet-quick-actions button {
    flex: 1;
  }

  .pet-detail-grid,
  .pet-form-grid,
  .pet-icon-row-head,
  .pet-icon-row,
  .pet-add-icon-form,
  .vaccine-workspace,
  .vaccine-grid-head,
  .vaccine-edit-row,
  .vet-form-grid,
  .reservation-form-grid,
  .reservation-money,
  .reservation-actions {
    grid-template-columns: 1fr;
  }

  .pet-icon-row-head {
    display: none;
  }

  .icon-remove-button {
    justify-self: start;
  }

  .emoji-picker-grid {
    grid-template-columns: 1fr;
  }

  .settings-header {
    align-items: start;
    flex-direction: column;
  }

  .vaccine-overlay {
    padding: 8px;
  }

  .vaccine-drawer {
    max-height: 96vh;
  }

  .vaccine-document-preview {
    min-height: 240px;
  }

  .reservation-drawer {
    width: 100%;
  }

  .reservation-client-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .reservation-client-card .text-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .pet-edit-card {
    grid-row: auto;
  }

  .calendar-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .trend-report {
    max-height: none;
  }

  .trend-header,
  .trend-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trend-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trend-grid,
  .weekday-table {
    grid-template-columns: 1fr;
  }

  .calendar-dog-flow {
    grid-template-columns: 1fr;
  }

  .calendar-dog-chip {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .calendar-dog-chip.is-checkout {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .calendar-dog-photo {
    width: 48px;
    height: 48px;
  }

  .calendar-dog-time {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .calendar-dog-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .calendar-owner-line {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .parent-contact-actions {
    justify-content: flex-start;
  }

  .dog-picker-backdrop {
    align-items: end;
    padding: 8px;
  }

  .dog-picker {
    max-height: 84dvh;
  }
}

@media (max-width: 380px) {
  .header-metrics {
    grid-template-columns: 1fr;
  }

  .status {
    grid-column: auto;
  }

  .dog-list {
    display: flex;
  }
}
