:root {
  --ink: #1f2d36;
  --muted: #5e727b;
  --line: #d7e0df;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --teal: #3e7a7f;
  --teal-dark: #285a60;
  --sage: #dfece7;
  --gold: #f1c96f;
  --red: #bf4e45;
  --shadow: 0 16px 44px rgba(31, 45, 54, 0.1);
  --focus: 0 0 0 3px rgba(62, 122, 127, 0.22);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
}

body,
input,
select,
textarea {
  line-height: 1.4;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

img,
video,
iframe {
  max-width: 100%;
}

.app-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #173138;
  color: #fff;
  min-height: 100vh;
  padding: 22px 16px;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.sidebar-brand strong {
  font-size: 1rem;
}

.sidebar-brand span {
  color: #bad0cf;
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-button {
  background: transparent;
  color: #e8efee;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
}

.nav-button:hover,
.nav-button.is-active {
  background: #f1c96f;
  color: #1f2d36;
}

.nav-button:disabled,
.nav-button.is-locked {
  cursor: not-allowed;
  opacity: 0.45;
}

.nav-button:disabled:hover,
.nav-button.is-locked:hover {
  background: transparent;
  color: #e8efee;
}

.nav-button.is-hidden-nav {
  display: none;
}

.mobile-page-menu {
  display: none;
}

.app-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 20px 52px;
}

.page-view {
  display: none;
}

.page-view.is-active {
  display: block;
}

.page-header {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 7px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.subhead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.45;
  max-width: 760px;
}

.status-card {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding: 12px 14px;
}

.user-card {
  align-items: stretch;
  min-width: 170px;
}

.user-card div {
  display: grid;
  gap: 2px;
}

.user-card span {
  font-weight: 850;
}

.user-card small {
  color: var(--muted);
  font-size: 0.76rem;
}

.sync-button {
  background: #e8efee;
  color: var(--teal-dark);
  font-size: 0.82rem;
  min-height: 34px;
  padding: 7px 10px;
}

.status-dot {
  background: var(--gold);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.notice {
  background: #fff7e0;
  border: 1px solid #efd385;
  border-radius: 8px;
  color: #5e4a12;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.alert-banner {
  background: #fff7e0;
  border: 1px solid #efd385;
  border-radius: 8px;
  color: #5e4a12;
  font-weight: 800;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.table-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.table-toolbar input[type="search"] {
  background: #fff;
  border: 1px solid #cbd8d8;
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.table-toolbar button {
  flex: 0 0 auto;
}

.filter-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  margin: 12px 0 16px;
}

.filter-toolbar label {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0;
}

.filter-toolbar select {
  background: #fff;
  border: 1px solid #cbd8d8;
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 8px 36px 8px 10px;
}

.signup-panel {
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
}

.activity-filter-toolbar {
  justify-content: flex-start;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

.data-table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #eef3f2;
  color: var(--teal-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.data-table tr {
  cursor: pointer;
}

.data-table tr:hover td {
  background: #f6f8f7;
}


.detail-panel {
  border-color: #bdd2d0;
  box-shadow: inset 4px 0 0 var(--teal), var(--shadow);
  margin-top: 16px;
}

.existing-only {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.dog-profile-editor {
  align-items: center;
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  padding: 14px;
}

.dog-profile-editor p {
  color: var(--muted);
  margin: 4px 0 0;
}

.dog-photo-picker,
.dog-photo-button {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #e7efec, #fff7e0);
  border: 1px solid #bdd2d0;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.55);
  color: var(--teal-dark);
  display: inline-flex;
  flex: 0 0 112px;
  font-size: 1.2rem;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.dog-photo-picker::after,
.dog-photo-button::after {
  background: rgba(31, 45, 54, 0.78);
  bottom: 0;
  color: #fff;
  content: "Change";
  font-size: 0.76rem;
  font-weight: 850;
  left: 0;
  padding: 5px;
  position: absolute;
  right: 0;
  text-align: center;
}

.dog-photo-picker img,
.dog-photo-button img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dog-photo-picker span,
.dog-photo-button span {
  font-weight: 900;
}

.visually-hidden,
.visually-hidden-file {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compact-heading {
  margin-top: 18px;
}

.summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

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

.dashboard-filter {
  margin-bottom: 14px;
  max-width: 280px;
}

.dashboard-card {
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 126px;
  padding: 14px;
}

.dashboard-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-card strong {
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1.1;
}

.dashboard-card p,
.role-note {
  color: var(--muted);
  margin: 0;
}

.role-note {
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  padding: 12px 14px;
}

.customer-dog-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.customer-dog-item,
.estimate-box {
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.customer-dog-item {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.customer-dog-item span {
  color: var(--muted);
  margin-left: auto;
}

.customer-dog-item > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.customer-dog-item > div span {
  margin-left: 0;
}

.booking-summary {
  display: grid;
  gap: 12px;
}

.booking-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.estimate-total {
  align-items: center;
  background: #fff6df;
  border: 1px solid var(--gold);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 12px;
}

.estimate-total span {
  font-size: 1.4rem;
  font-weight: 900;
}

.media-preview-button {
  background: #e8efee;
  color: var(--teal-dark);
  font-size: 0.82rem;
  margin-right: 6px;
  padding: 7px 10px;
}

.media-preview-body img,
.media-preview-body video {
  background: #111;
  border-radius: 8px;
  display: block;
  max-height: 70vh;
  max-width: 100%;
  width: 100%;
}

.media-iframe {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 65vh;
  width: 100%;
}

.task-calendar {
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 12px;
}

.calendar-title,
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-title {
  align-items: center;
  grid-template-columns: 1fr auto;
}

.calendar-title span,
.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.calendar-day {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 6px;
}

.calendar-day.has-records {
  border-color: var(--teal);
}

.calendar-day.is-selected {
  background: var(--gold);
}

.calendar-day small {
  display: block;
  font-size: 0.72rem;
}

.calendar-notes-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

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

.summary-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card strong {
  font-size: 1.45rem;
}

.helper-total-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.helper-total-item {
  align-items: center;
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.login-panel {
  align-items: center;
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.login-panel p {
  color: var(--muted);
  margin: 5px 0 0;
}

.login-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.inline-login-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 1fr) auto auto;
}

.inline-login-form label {
  gap: 5px;
  min-width: 0;
}

.tracker-form,
.recent-submissions {
  display: grid;
  gap: 16px;
}

.form-section,
.recent-submissions {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading span {
  align-items: center;
  background: var(--sage);
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

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

label {
  color: var(--ink);
  display: grid;
  font-weight: 700;
  gap: 8px;
  min-width: 0;
}

.field-label-text {
  align-items: baseline;
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.required-mark {
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 900;
}

.tracker-form.is-readonly {
  opacity: 0.78;
}

.tracker-form.is-readonly input,
.tracker-form.is-readonly select,
.tracker-form.is-readonly textarea {
  background: #eef3f2;
  color: #5e727b;
}

.field-help,
.field-error {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.field-error {
  color: var(--red);
  display: none;
}

label.has-error .field-error {
  display: block;
}

label.has-error input,
label.has-error select,
label.has-error textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(191, 78, 69, 0.14);
}

.inline-check {
  align-items: center;
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
}

.inline-check input {
  accent-color: var(--teal);
  height: 20px;
  width: 20px;
}

.is-disabled-field {
  color: #8a9a9d;
  opacity: 0.58;
}

.vaccine-warning {
  font-weight: 900;
  margin-left: 6px;
}

.is-orange-warning {
  color: #b76c16;
}

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

input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="text"],
select,
textarea {
  background: #fff;
  border: 1px solid #cbd8d8;
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

input[readonly],
textarea[readonly],
select.is-readonly-select {
  background: #eef3f2;
  color: #5e727b;
  cursor: not-allowed;
}

select.is-readonly-select {
  pointer-events: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  box-shadow: var(--focus);
  outline: 0;
}

.record-grid {
  display: grid;
  gap: 10px;
}

.activity-group {
  display: grid;
  gap: 8px;
}

.activity-group h3 {
  color: var(--teal-dark);
  font-size: 0.92rem;
  margin: 8px 0 0;
  text-transform: uppercase;
}

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

.record-card.is-completed {
  opacity: 0.72;
}


.record-card.is-completed strong {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.record-card strong {
  font-size: 1rem;
}

.record-card span,
.record-card p {
  color: var(--muted);
  margin: 0;
}

.record-card.is-urgent {
  border-color: #bf4e45;
  box-shadow: inset 4px 0 0 #bf4e45;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.record-actions button {
  font-size: 0.84rem;
  min-height: 38px;
  padding: 8px 11px;
}

.danger-button {
  color: var(--red);
}

.toggle-row {
  align-items: center;
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 750;
  gap: 10px;
  justify-self: start;
  min-height: 42px;
  padding: 9px 12px;
}

.toggle-row input {
  accent-color: var(--teal);
  height: 18px;
  width: 18px;
}

textarea {
  line-height: 1.45;
  resize: vertical;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checklist.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.service-option {
  align-items: center;
  justify-content: space-between;
}

.service-option span {
  align-items: flex-start;
  display: inline-flex;
  gap: 10px;
}

.service-quantity {
  flex: 0 0 78px;
  min-height: 40px;
  padding: 8px;
  width: 78px;
}

.checklist label {
  align-items: flex-start;
  background: #f6f8f7;
  border: 1px solid #d9e3e1;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-weight: 650;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
}

.checklist input {
  accent-color: var(--teal);
  flex: 0 0 auto;
  height: 20px;
  margin-top: 1px;
  width: 20px;
}

.checklist input.service-quantity {
  height: 40px;
  margin-top: 0;
  width: 78px;
}

.task-item {
  align-items: flex-start;
  gap: 10px;
  position: relative;
}

.task-text {
  flex: 1 1 14rem;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  padding-top: 2px;
  white-space: normal;
}

.task-edit-input {
  background: #fff;
  border: 1px solid transparent;
  border-radius: 6px;
  flex: 1 1 auto;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  min-height: 36px;
  min-width: 0;
  padding: 7px 8px;
  width: 100%;
}

.task-edit-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(55, 111, 106, 0.14);
  outline: none;
}

.checklist .task-edit-input {
  flex: 1 1 14rem;
  height: auto;
  width: 100%;
}

.task-admin-tools {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.icon-button,
.remove-task-button {
  align-items: center;
  background: #e8efee;
  border-radius: 999px;
  color: var(--teal-dark);
  display: inline-flex;
  height: 28px;
  justify-content: center;
  min-height: 28px;
  padding: 0;
  width: 28px;
}

.remove-task-button {
  background: #f7e3df;
  color: var(--red);
}

.admin-task-controls {
  align-items: center;
  background: #f6f8f7;
  border: 1px dashed #bdd2d0;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 12px;
  padding: 12px;
}

.collapsible-section .section-heading {
  margin-bottom: 0;
}

.collapsible-section .section-body {
  margin-top: 18px;
}

.collapsible-section.is-collapsed .section-body {
  display: none;
}

.section-toggle-button {
  margin-left: auto;
}

.column-manager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.column-chip {
  align-items: center;
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
  padding: 8px;
}

.column-chip[draggable="true"] {
  cursor: grab;
}

.column-chip.is-off {
  opacity: 0.62;
}

.column-chip label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  margin: 0;
}

.admin-password-panel {
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-specular);
  margin-top: 14px;
  padding: 16px;
}

.admin-password-panel h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}

.admin-password-panel p {
  color: var(--muted);
  margin: 0 0 14px;
}

.status-chip {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--glass-radius-pill);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  white-space: nowrap;
}

.warning-chip {
  background: rgba(255, 204, 0, 0.18);
  border-color: rgba(255, 214, 10, 0.32);
  color: #fff2b0;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:hover {
  border-color: #bdd2d0;
  box-shadow: 0 8px 24px rgba(31, 45, 54, 0.08);
}

.detail-media {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.detail-media a,
.detail-media .media-preview-button {
  background: #e8efee;
  border-radius: 999px;
  color: var(--teal-dark);
  font-weight: 800;
  padding: 6px 10px;
  text-decoration: none;
}

.detail-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  max-height: min(760px, 88vh);
  max-width: min(760px, calc(100% - 28px));
  padding: 18px;
  width: 100%;
}

.detail-dialog::backdrop {
  background: rgba(31, 45, 54, 0.38);
}

.dialog-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

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

.complete-button {
  background: #dff2e6;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.dialog-header h2 {
  margin: 0;
}

.detail-dialog-body {
  display: grid;
  gap: 10px;
}

.detail-row {
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.detail-row strong {
  color: var(--teal-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.activity-entry-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.activity-entry {
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.conditional.is-muted {
  border-style: dashed;
  opacity: 0.58;
}

.rotation-banner {
  background: var(--sage);
  border-radius: 8px;
  color: var(--teal-dark);
  font-weight: 800;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.submit-bar {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  bottom: 0;
  box-shadow: var(--shadow);
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 16px;
  position: sticky;
  z-index: 5;
}

.submit-bar p {
  color: #cbd8d8;
  margin: 3px 0 0;
}

button {
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  color: #1f2d36;
  cursor: pointer;
  font-weight: 850;
  min-height: 48px;
  padding: 12px 18px;
  transition: filter 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.secondary-button {
  background: #e8efee;
  color: var(--teal-dark);
}

button:hover {
  filter: brightness(0.97);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

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

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

.time-card span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.time-card strong {
  font-size: 1.1rem;
  min-height: 28px;
}

.recent-submissions {
  margin-top: 24px;
}

.submission-list {
  display: grid;
  gap: 10px;
}

.submission-item {
  background: #f6f8f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.submission-item strong {
  display: block;
  margin-bottom: 5px;
}

.submission-item p {
  color: var(--muted);
  margin: 0;
}

.toast {
  background: var(--teal-dark);
  border-radius: 8px;
  bottom: 18px;
  color: white;
  left: 50%;
  max-width: calc(100% - 28px);
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%) translateY(14px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 10;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Liquid Glass theme layer */
:root {
  --glass-blur: 32px;
  --glass-blur-high: 40px;
  --glass-fill: rgba(255, 255, 255, 0.13);
  --glass-fill-soft: rgba(255, 255, 255, 0.08);
  --glass-fill-hover: rgba(255, 255, 255, 0.20);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-outer: rgba(255, 255, 255, 0.10);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1.5px 4px rgba(0, 0, 0, 0.10);
  --glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --glass-radius: 20px;
  --glass-radius-sm: 12px;
  --glass-radius-pill: 50px;
  --tint-blue: rgba(10, 132, 255, 0.18);
  --tint-blue-strong: rgba(10, 132, 255, 0.85);
  --tint-green: rgba(52, 199, 89, 0.18);
  --tint-gold: rgba(255, 204, 102, 0.22);
  --tint-red: rgba(255, 69, 58, 0.18);
  --ink: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.58);
  --line: var(--glass-border-outer);
  --paper: #07101d;
  --panel: var(--glass-fill);
  --teal: rgba(100, 210, 255, 0.84);
  --teal-dark: rgba(230, 247, 255, 0.94);
  --sage: rgba(255, 255, 255, 0.12);
  --gold: rgba(255, 214, 102, 0.82);
  --red: rgba(255, 105, 97, 0.9);
  --shadow: var(--glass-shadow), var(--glass-specular);
  --focus: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

html {
  background: #07101d;
  color: var(--ink);
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", ui-sans-serif, system-ui, sans-serif;
}

body {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, transparent 24%),
    linear-gradient(45deg, rgba(255, 204, 102, 0.12) 0%, transparent 30%, rgba(100, 210, 255, 0.16) 62%, transparent 100%),
    linear-gradient(135deg, #1a1f3c 0%, #0d4f8c 40%, #1a3a2a 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0) 34%),
    linear-gradient(270deg, rgba(10, 132, 255, 0.16), rgba(255, 255, 255, 0) 50%, rgba(52, 199, 89, 0.12));
  content: "";
  inset: 0;
  opacity: 0.76;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.app-layout {
  background: transparent;
}

.app-shell {
  position: relative;
  z-index: 1;
}

.sidebar,
.mobile-page-menu {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(var(--glass-blur-high)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur-high)) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--glass-shadow), var(--glass-specular);
}

.sidebar {
  color: var(--ink);
}

.sidebar-brand {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.sidebar-brand span,
.subhead,
.login-panel p,
.section-heading p,
.dashboard-card p,
.role-note,
.customer-dog-item span,
.dog-profile-editor p,
.record-card span,
.record-card p,
.submission-item p,
.field-help,
.user-card small,
.calendar-title span,
.calendar-weekdays span,
.summary-card span,
.time-card span {
  color: var(--muted);
}

.eyebrow,
.dashboard-card span,
.summary-card span,
.time-card span,
.activity-group h3,
.detail-row strong,
.field-label-text span,
.calendar-weekdays span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
.record-card strong,
.status-card span,
.dashboard-card strong,
.summary-card strong,
.time-card strong,
.customer-dog-item strong {
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0;
}

.status-card,
.notice,
.alert-banner,
.signup-panel,
.table-wrap,
.dog-profile-editor,
.dashboard-card,
.role-note,
.customer-dog-item,
.estimate-box,
.estimate-total,
.task-calendar,
.summary-card,
.helper-total-item,
.login-panel,
.form-section,
.recent-submissions,
.inline-check,
.record-card,
.toggle-row,
.checklist label,
.admin-task-controls,
.admin-password-panel,
.column-chip,
.detail-dialog,
.detail-row,
.activity-entry,
.time-card,
.submission-item,
.rotation-banner,
.submit-bar {
  background: var(--glass-fill);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), var(--glass-specular);
  color: var(--ink);
}

.form-section,
.recent-submissions,
.detail-dialog {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.20), transparent 42%),
    var(--glass-fill);
}

.detail-panel {
  border-color: rgba(100, 210, 255, 0.34);
  box-shadow: inset 4px 0 0 rgba(100, 210, 255, 0.38), var(--glass-shadow), var(--glass-specular);
}

.existing-only {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.section-heading span,
.status-dot,
.detail-media a,
.detail-media .media-preview-button,
.media-preview-button,
.column-chip,
.nav-button,
.sync-button {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--glass-radius-pill);
  box-shadow: var(--glass-specular);
  color: var(--ink);
}

.section-heading span,
.status-dot {
  color: rgba(255, 255, 255, 0.95);
}

.nav-button {
  min-height: 42px;
  padding: 10px 14px;
}

.nav-button:hover,
.nav-button.is-active {
  background: var(--tint-blue-strong);
  color: #fff;
  filter: brightness(1.08);
  transform: scale(1.015);
}

.nav-button:disabled:hover,
.nav-button.is-locked:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  transform: none;
}

button {
  background: var(--tint-blue-strong);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--glass-radius-pill);
  box-shadow: 0 4px 16px rgba(10, 132, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.30);
  color: #fff;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

button:hover {
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.36);
  filter: brightness(1.08);
  transform: scale(1.015);
}

button:active {
  transform: scale(0.99);
}

.secondary-button,
.sync-button,
.media-preview-button,
.icon-button,
.remove-task-button {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-specular);
  color: var(--ink);
}

.secondary-button:hover,
.sync-button:hover,
.media-preview-button:hover,
.icon-button:hover,
.remove-task-button:hover,
.clickable-card:hover {
  background: var(--glass-fill-hover);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--glass-shadow), var(--glass-specular);
}

.danger-button,
.remove-task-button {
  background: rgba(255, 69, 58, 0.16);
  color: #ffd6d3;
}

input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
input[type="file"],
select,
textarea,
.task-edit-input,
.service-quantity,
.filter-toolbar select,
.table-toolbar input[type="search"] {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--glass-radius-sm);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.15);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 160ms ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

input[readonly],
textarea[readonly],
select.is-readonly-select,
.tracker-form.is-readonly input,
.tracker-form.is-readonly select,
.tracker-form.is-readonly textarea {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.54);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.task-edit-input:focus {
  border-color: rgba(10, 132, 255, 0.60);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18), inset 0 1px 3px rgba(0, 0, 0, 0.12);
  outline: 0;
}

option {
  background: #0c1729;
  color: #fff;
}

.data-table {
  color: var(--ink);
}

.data-table th,
.data-table td {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.data-table th {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.12);
}


.notice,
.alert-banner,
.estimate-total,
.rotation-banner {
  background: rgba(255, 204, 102, 0.18);
  border-color: rgba(255, 204, 102, 0.34);
  color: rgba(255, 249, 228, 0.94);
}

.record-card.is-completed {
  background: rgba(255, 255, 255, 0.07);
  opacity: 0.72;
}

.record-card.is-urgent {
  background: rgba(255, 69, 58, 0.16);
  border-color: rgba(255, 105, 97, 0.42);
  box-shadow: inset 4px 0 0 rgba(255, 105, 97, 0.64), var(--glass-specular);
}

.table-wrap,
.data-table th,
.data-table td,
.task-item,
.activity-entry,
.structured-care-panel,
.owned-profile-section,
.compact-record-card,
.filter-toolbar,
.profile-tabs {
  background: rgba(8, 17, 27, 0.66);
}

.table-wrap,
.structured-care-panel,
.owned-profile-section {
  border: 1px solid rgba(215, 228, 226, 0.18);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-specular);
  padding: 14px;
}

.owned-profile-section {
  display: grid;
  gap: 14px;
}

.owned-profile-section[hidden] {
  display: none !important;
}

.profile-tabs,
.care-filter-toolbar,
.activity-filter-toolbar,
.chip-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tabs,
.care-filter-toolbar {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--glass-radius);
  padding: 8px;
}

.profile-tabs .is-active,
.care-filter-toolbar .is-active {
  background: rgba(185, 222, 207, 0.24);
  border-color: rgba(185, 222, 207, 0.44);
}

.care-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 10px;
}

.table-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 240px;
}

.compact-record-grid {
  margin-top: 10px;
}

.compact-record-card {
  gap: 6px;
  min-height: auto;
  padding: 10px 12px;
}

.mobile-roster-list {
  display: none;
  gap: 10px;
}

.mobile-roster-card {
  gap: 12px;
}

.mobile-roster-card-main {
  display: grid;
  gap: 6px;
}

.quick-action-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-action-grid button {
  min-height: 42px;
  padding-inline: 10px;
}

.dog-type-chip.ownedDog {
  background: rgba(185, 222, 207, 0.22);
  border-color: rgba(185, 222, 207, 0.42);
}

.dog-type-chip.boardingDog {
  background: rgba(173, 216, 230, 0.22);
  border-color: rgba(173, 216, 230, 0.44);
}

.dog-type-chip.customerDog {
  background: rgba(255, 231, 174, 0.20);
  border-color: rgba(255, 231, 174, 0.42);
}

.boarding-status-chip.is-status-pending {
  background: rgba(255, 204, 102, 0.18);
  border-color: rgba(255, 204, 102, 0.38);
}

.boarding-status-chip.is-status-approved,
.boarding-status-chip.is-status-checked-in,
.boarding-status-chip.is-status-in-kennel {
  background: rgba(185, 222, 207, 0.22);
  border-color: rgba(185, 222, 207, 0.44);
}

.boarding-status-chip.is-status-ready-for-pickup {
  background: rgba(173, 216, 230, 0.22);
  border-color: rgba(173, 216, 230, 0.44);
}

.boarding-status-chip.is-status-cancelled,
.boarding-status-chip.is-status-checked-out {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.data-table tr.has-care-due td {
  box-shadow: inset 4px 0 0 rgba(255, 204, 102, 0.46);
}

.data-table tr.is-in-heat td {
  box-shadow: inset 4px 0 0 rgba(255, 105, 97, 0.62);
}

.profile-empty-note {
  color: var(--muted);
  margin: 0;
}

.calendar-day {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--glass-radius-sm);
  color: var(--ink);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.calendar-day:hover {
  background: var(--glass-fill-hover);
  transform: translateY(-1px);
}

.calendar-day.has-records {
  border-color: rgba(100, 210, 255, 0.58);
}

.calendar-day.is-selected {
  background: rgba(10, 132, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.30);
}

.dog-photo-picker,
.dog-photo-button {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08)),
    var(--tint-blue);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow), var(--glass-specular);
  color: var(--ink);
}

.dog-photo-picker::after,
.dog-photo-button::after {
  background: rgba(8, 14, 26, 0.70);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.media-preview-body img,
.media-preview-body video,
.media-iframe {
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--glass-radius-sm);
}

.detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.detail-dialog[open] {
  animation: glassDialogIn 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.toast {
  background: rgba(30, 30, 32, 0.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--glass-radius-pill);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  color: #fff;
  transition: opacity 220ms ease, transform 340ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-view.is-active .form-section,
.page-view.is-active .recent-submissions,
.page-header,
.status-card {
  animation: glassSurfaceIn 280ms cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes glassSurfaceIn {
  from {
    filter: blur(4px);
    opacity: 0;
    transform: scale(0.97);
  }

  to {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glassDialogIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --glass-blur: 40px;
    --glass-blur-high: 48px;
    --glass-fill: rgba(255, 255, 255, 0.08);
    --glass-fill-soft: rgba(255, 255, 255, 0.06);
    --glass-fill-hover: rgba(255, 255, 255, 0.14);
    --paper: #050914;
  }

  body {
    background:
      linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, transparent 26%),
      linear-gradient(50deg, rgba(10, 132, 255, 0.13) 0%, transparent 38%, rgba(52, 199, 89, 0.10) 100%),
      linear-gradient(135deg, #0a0e1a 0%, #001233 52%, #071f1c 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1180px) {
  .app-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .app-shell {
    max-width: 100%;
    padding-inline: 16px;
  }

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

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

@media (max-width: 980px) {
  .app-layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-page-menu {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(var(--glass-blur-high)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur-high)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow), var(--glass-specular);
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px;
  }

  .app-shell {
    padding: 20px 14px 42px;
  }

  .page-header,
  .login-panel,
  .submit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .field-grid,
  .timesheet-grid,
  .summary-grid,
  .care-summary-grid,
  .dashboard-grid,
  .activity-entry-grid,
  .admin-task-controls,
  .inline-login-form,
  .checklist.two-column,
  .checklist.compact {
    grid-template-columns: 1fr;
  }

  .dog-profile-editor {
    align-items: stretch;
  }

  .table-toolbar,
  .filter-toolbar,
  .filter-toolbar label {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-tabs,
  .care-filter-toolbar,
  .table-actions,
  .record-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-tabs button,
  .care-filter-toolbar button,
  .table-actions button,
  .record-actions button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .app-layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-page-menu {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(var(--glass-blur-high)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur-high)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--glass-radius);
    box-shadow: var(--glass-shadow), var(--glass-specular);
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 14px;
  }

  .app-shell {
    padding: 18px 12px 38px;
  }

  .page-header,
  .login-panel,
  .submit-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .field-grid,
  .timesheet-grid,
  .summary-grid,
  .care-summary-grid,
  .dashboard-grid,
  .activity-entry-grid,
  .admin-task-controls,
  .inline-login-form,
  .checklist.two-column,
  .checklist.compact {
    grid-template-columns: 1fr;
  }

  .dog-profile-editor {
    align-items: stretch;
  }

  .dog-photo-picker,
  .dog-photo-button {
    flex-basis: 96px;
  }

  .filter-toolbar,
  .filter-toolbar label,
  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-wrap {
    margin-inline: -2px;
    padding: 8px;
  }

  #ourDogsPage .table-wrap,
  #boardingDogsPage .table-wrap,
  #ourDogsPage .column-manager,
  #boardingDogsPage .column-manager {
    display: none !important;
  }

  .mobile-roster-list {
    display: grid;
  }

  .task-item {
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px;
  }

  .task-item input[type="checkbox"] {
    margin-top: 2px;
  }

  .task-text {
    flex-basis: auto;
    font-size: 1rem;
    line-height: 1.42;
  }

  .task-admin-tools,
  .admin-task-controls {
    display: none !important;
  }

  #manualTimeForm.mobile-admin-only,
  #timesheetPage [data-action="edit-time"] {
    display: none !important;
  }

  .data-table {
    min-width: 680px;
  }

  .table-actions {
    min-width: 0;
  }

  .profile-tabs,
  .care-filter-toolbar,
  .table-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-section,
  .recent-submissions {
    padding: 16px;
  }

  h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 520px) {
  .status-card,
  .button-row,
  .record-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dog-profile-editor {
    flex-direction: column;
  }

  .dog-photo-picker,
  .dog-photo-button {
    flex-basis: auto;
    width: min(100%, 168px);
  }
}

body.is-login-view {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(245, 248, 249, 0.88)),
    linear-gradient(135deg, #f7fbff 0%, #e9f7ef 54%, #eaf1ff 100%);
  color: #1c1c1e;
}

body.is-login-view::before,
body.is-login-view .sidebar,
body.is-login-view .page-header,
body.is-login-view .mobile-page-menu {
  display: none;
}

body.is-login-view .app-layout {
  display: block;
  min-height: 100vh;
}

body.is-login-view .app-shell {
  display: grid;
  min-height: 100vh;
  padding: 0;
  place-items: center;
}

#loginPage {
  width: 100%;
}

#loginPage .login-auth-section {
  margin: 0 auto;
  max-width: 560px;
  padding: 32px 24px;
  width: 100%;
}

body.is-login-view #loginPage .login-auth-section {
  align-content: center;
  display: grid;
  min-height: 100vh;
}

#loginPage .login-panel,
#loginPage .signup-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(24, 35, 52, 0.16), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
  color: #1c1c1e;
  margin: 0 auto;
  max-width: 540px;
  width: 100%;
}

#loginPage .login-panel {
  align-items: stretch;
  display: grid;
  gap: 28px;
  justify-content: normal;
  padding: 38px;
}

#loginPage .signup-panel {
  margin-top: 18px;
  padding: 28px;
}

#loginPage .login-brand {
  color: #168360;
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

#loginPage .login-copy h2 {
  color: #151517;
  font-size: clamp(2.65rem, 8vw, 4rem);
  font-weight: 520;
  line-height: 0.98;
  margin: 0;
}

#loginPage .login-copy p {
  color: #56565a;
  font-size: 1.18rem;
  margin: 16px 0 0;
}

#loginPage .login-status-line,
#loginPage .login-help-line,
#loginPage .role-note {
  display: none;
}

#loginPage .login-actions,
#loginPage .inline-login-form {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  justify-content: normal;
}

#loginPage .auth-provider-button,
#loginPage .auth-submit-button {
  align-items: center;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.08rem;
  font-weight: 650;
  justify-content: center;
  min-height: 56px;
  padding: 0 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
  width: 100%;
}

#loginPage .auth-provider-button {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(28, 28, 30, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.84) inset;
  color: #222225;
}

#loginPage .auth-provider-button:hover {
  border-color: rgba(28, 28, 30, 0.28);
  box-shadow: 0 10px 28px rgba(24, 35, 52, 0.10);
  transform: translateY(-1px);
}

#loginPage .auth-divider {
  align-items: center;
  color: #3c3c40;
  display: grid;
  font-size: 1rem;
  font-weight: 700;
  gap: 16px;
  grid-template-columns: 1fr auto 1fr;
  margin: 2px 0;
}

#loginPage .auth-divider::before,
#loginPage .auth-divider::after {
  background: rgba(28, 28, 30, 0.18);
  content: "";
  height: 1px;
}

#loginPage label {
  color: #202124;
  font-size: 1rem;
  font-weight: 700;
  gap: 10px;
}

#loginPage .field-label-text {
  justify-content: flex-start;
}

#loginPage .field-label-text span {
  color: #202124;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

#loginPage .required-mark {
  display: none;
}

#loginPage input[type="email"],
#loginPage input[type="password"],
#loginPage input[type="text"] {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 28, 30, 0.22);
  border-radius: 12px;
  box-shadow: none;
  color: #151517;
  font-size: 1.05rem;
  min-height: 56px;
  padding: 0 18px;
}

#loginPage input::placeholder {
  color: rgba(28, 28, 30, 0.42);
}

#loginPage input:focus,
#loginPage button:focus-visible {
  border-color: rgba(22, 131, 96, 0.74);
  box-shadow: 0 0 0 3px rgba(22, 131, 96, 0.16);
  outline: 0;
}

#loginPage .auth-label-row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

#loginPage .auth-password-label-text {
  color: #202124;
  font-size: 1rem;
  font-weight: 700;
}

#loginPage #showPasswordRecoveryButton,
#loginPage #showCustomerSignupButton {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #68686d;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

#loginPage #showPasswordRecoveryButton:hover,
#loginPage #showCustomerSignupButton:hover {
  color: #151517;
  text-decoration: underline;
}

#loginPage .password-input-wrap {
  display: grid;
  position: relative;
}

#loginPage .password-input-wrap input {
  padding-right: 86px;
}

#loginPage .password-visibility-button {
  align-self: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(28, 28, 30, 0.18);
  border-radius: 10px;
  box-shadow: none;
  color: #4e5054;
  font-size: 0.9rem;
  font-weight: 800;
  justify-self: end;
  margin-right: 8px;
  min-height: 40px;
  padding: 0 12px;
  position: absolute;
}

#loginPage .auth-submit-button {
  background: #6edaa3;
  border: 1px solid #22bd76;
  box-shadow: 0 10px 24px rgba(34, 189, 118, 0.20);
  color: #111513;
  font-size: 1.14rem;
  margin-top: 10px;
}

#loginPage .auth-submit-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

#loginPage .signup-prompt {
  color: #606166;
  font-size: 1rem;
  margin: 0;
  text-align: center;
}

#loginPage .signup-prompt button {
  color: #1c1c1e;
  text-decoration: underline;
}

#loginPage .signup-panel .section-heading span {
  background: rgba(110, 218, 163, 0.28);
  color: #146247;
}

#loginPage .signup-panel .section-heading h2 {
  color: #151517;
}

#loginPage .signup-panel .section-heading p,
#loginPage .signup-panel p,
#loginPage .field-help {
  color: #666970;
}

#loginPage .signup-panel .button-row button {
  min-height: 48px;
}

@media (max-width: 620px) {
  #loginPage .login-auth-section {
    padding: 18px 14px;
  }

  #loginPage .login-panel,
  #loginPage .signup-panel {
    border-radius: 22px;
  }

  #loginPage .login-panel {
    gap: 24px;
    padding: 28px 20px;
  }

  #loginPage .signup-panel {
    padding: 20px;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding-inline: 10px;
  }

  .form-section,
  .recent-submissions,
  .structured-care-panel,
  .owned-profile-section {
    border-radius: 16px;
    padding: 12px;
  }

  .dashboard-card,
  .summary-card,
  .record-card {
    min-height: auto;
    padding: 12px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading span {
    height: 34px;
    width: 34px;
  }

  h1 {
    font-size: 2rem;
  }

  #loginPage .login-copy h2 {
    font-size: 2.35rem;
  }
}


.daily-task-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.daily-task-tabs button,
.alert-filter-toolbar button {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 13px;
}

.daily-task-tabs button.is-active,
.alert-filter-toolbar button.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.alert-filter-toolbar {
  margin: 8px 0 14px;
}

.alert-filter-toolbar button span {
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  display: inline-block;
  margin-left: 5px;
  min-width: 1.6em;
  padding: 1px 6px;
}

.data-table th[draggable="true"] {
  cursor: grab;
  user-select: none;
}

.data-table th.is-dragging {
  opacity: 0.58;
}


.boarding-roster-tabs {
  flex-wrap: wrap;
}

.boarding-roster-tabs button {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 9px 13px;
}

.boarding-roster-tabs button.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.boarding-roster-tabs button span {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  display: inline-block;
  margin-left: 5px;
  min-width: 1.6em;
  padding: 1px 6px;
}

.owner-account-panel {
  margin-top: 16px;
}
