body.app-body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}
  
  .navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .navbar-left,
  .navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .brand-link {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    margin-right: 1rem;
  }
  
  .nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
  }
  
  .nav-link:hover,
  .brand-link:hover {
    color: #2563eb;
  }
  
  .page-shell {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem 2rem;
  }
  
  .page-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 2rem;
  }
  
  h1, h2, h3 {
    color: #111827;
    margin-top: 0;
  }
  
  p, li {
    line-height: 1.6;
  }
  
  hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1.5rem 0;
  }
  
  .flash {
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
  }
  
  .flash.notice {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
  }
  
  .flash.alert {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
  }

  .button-link,
input[type="submit"],
button {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.button-link:hover,
input[type="submit"]:hover,
button:hover {
  background: #1d4ed8;
}

.button-link.secondary {
  background: #e5e7eb;
  color: #111827;
}

.button-link.secondary:hover {
  background: #d1d5db;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.page-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }
  
  .page-actions-left,
  .page-actions-right {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .check-in-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .check-in-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .check-in-card-header h3 {
    margin: 0;
  }
  
  .check-in-card-header h3 a {
    color: #111827;
    text-decoration: none;
    font-weight: 700;
  }
  
  .check-in-card-header h3 a:hover {
    color: #2563eb;
  }
  
  .check-in-card-body p {
    margin: 0;
  }
  
  .check-in-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    color: #374151;
    font-size: 0.95rem;
  }
  
  .card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
  }
  
  .card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .report-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  }
  
  .report-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
  }
  
  .report-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .report-summary p {
    margin: 0.35rem 0;
  }
  
  .report-history ul {
    padding-left: 1rem;
    margin: 0;
  }
  
  .report-history li {
    margin-bottom: 0.35rem;
  }

  .report-filter-form {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }
  
  .report-filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
  }
  
  .report-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 220px;
  }
  
  .report-filter-field label {
    font-weight: 600;
    color: #374151;
  }
  
  .report-filter-field select {
    padding: 0.7rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font-size: 0.95rem;
  }
  
  .report-filter-actions {
    display: flex;
    align-items: end;
  }

  .photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .photo-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }
  
  .photo-card img {
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 10px;
    display: block;
  }
  
  .photo-card p {
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .progress-photo {
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  .photo-card-image-wrapper {
    position: relative;
  }
  
  .photo-delete-button {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.85);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  }
  
  .photo-delete-button:hover {
    background: rgba(185, 28, 28, 0.95);
  }
  
  .photo-delete-button form {
    margin: 0;
  }

  .measurement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .measurement-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .measurement-card-header h3 {
    margin: 0;
  }
  
  .measurement-card-header h3 a {
    color: #111827;
    text-decoration: none;
    font-weight: 700;
  }
  
  .measurement-card-header h3 a:hover {
    color: #2563eb;
  }
  
  .measurement-card-body p {
    margin: 0.35rem 0;
  }
  
  .detail-card,
  .form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    margin-top: 1rem;
  }
  
  .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .detail-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
  }
  
  .measurement-photo-card {
    max-width: 320px;
  }
  
  .stacked-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  
  .form-field label {
    font-weight: 600;
    color: #374151;
  }
  
  .form-field input,
  .form-field select,
  .form-field textarea {
    padding: 0.7rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font-size: 0.95rem;
  }
  
  .form-actions {
    margin-top: 0.5rem;
  }
  
  .form-errors {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1rem;
  }
  
  .form-errors h2 {
    margin-top: 0;
    font-size: 1rem;
  }
  
  .danger-zone {
    margin-top: 1.5rem;
  }

  .measurement-summary-list {
    margin: 0;
    padding-left: 1rem;
  }
  
  .measurement-summary-list li {
    margin-bottom: 0.5rem;
  }

  .home-hero {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid #dbeafe;
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
  }
  
  .home-hero-content {
    max-width: 720px;
  }
  
  .home-hero h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
  }
  
  .home-subtitle {
    font-size: 1.05rem;
    color: #374151;
    margin-bottom: 1.5rem;
    max-width: 640px;
  }
  
  .home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }
  
  .info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  }
  
  .info-card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
  }
  
  .info-list {
    margin: 0;
    padding-left: 1.2rem;
  }
  
  .info-list li {
    margin-bottom: 0.6rem;
  }

  .report-header-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.5rem;
  }
  
  .report-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
  }
  
  .report-subtitle {
    margin: 0.35rem 0 0;
    color: #4b5563;
  }
  
  .report-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  
  .report-filter-form {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .report-filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
  }
  
  .report-filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 220px;
  }
  
  .report-filter-field label {
    font-weight: 600;
    color: #374151;
  }
  
  .report-filter-field select {
    padding: 0.7rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    font-size: 0.95rem;
  }

  .report-filter-label {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
  }

  .form-card {
    max-width: 640px;
  }

  .profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
    align-items: stretch;
  }
  
  .profile-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  .profile-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
  }
  
  .profile-card-link:hover .profile-card {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: #c7d2fe;
  }
  
  .profile-card-header h2 {
    margin: 0;
    color: #111827;
  }
  
  .profile-card-body {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
  }
  
  .empty-state-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    margin-top: 1rem;
    max-width: 520px;
  }
  
  .check-in-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  .check-in-card-link:hover .check-in-card {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: #c7d2fe;
  }

  .existing-photo-preview {
    margin: 0.5rem 0;
  }
  
  .existing-photo-preview img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
  }

  .photo-preview-wrapper {
    position: relative;
    display: inline-block;
    margin: 0.4rem 0;
  }
  
  .photo-preview-thumbnail {
    height: 38px;
    width: auto;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* hover enlargement */
  .photo-preview-wrapper:hover .photo-preview-thumbnail {
    transform: scale(3.5);
    z-index: 10;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  }
  
  /* helper text hidden by default */
  .photo-preview-hint {
    position: absolute;
    bottom: 120%;
    left: 0;
    font-size: 0.75rem;
    background: #111827;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.15s ease;
  }
  
  /* show helper text on hover */
  .photo-preview-wrapper:hover .photo-preview-hint {
    opacity: 1;
  }

  .photo-upload-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  img {
    max-width: 100%;
  }

  .card-hint-row {
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid #e5e7eb;
  
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
  
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
  }
  
  .card-hint-arrow {
    font-size: 1.2rem;
    line-height: 1;
  }
  
  .card-hint-arrow {
    font-size: 1rem;
    color: #2563eb;
  }

  .card-hint-mobile {
    display: none;
  }

  @media (max-width: 768px) {
    .card-hint-desktop {
      display: none;
    }
  
    .card-hint-mobile {
      display: inline;
    }
  }

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

.chart-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.top-chart-card {
  margin-bottom: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.chart-card h2 {
  margin: 0 0 1rem 0;
}

.chart-wrapper {
  width: 90%;
  min-width: 0;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.chart-card-header h2 {
  margin: 0;
}

.chart-toggle-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chart-toggle-button {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chart-toggle-button:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.chart-toggle-button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.page-actions-secondary .button-link.subtle {
  background: transparent !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
}

.page-actions-secondary .button-link.subtle:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.button-link.large {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
}

a.button-link.subtle {
  background: transparent !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
}

a.button-link.subtle-link:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.page-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-actions-primary {
  flex-grow: 1;
}

.page-actions-secondary {
  display: flex;
  gap: 0.75rem;
}

.button-link.subtle:hover {
  background: #f3f4f6;
}

.photo-timeline-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.photo-timeline-meta p {
  margin: 0.35rem 0;
}

.photo-timeline-viewer .photo-card {
  max-width: 420px;
  width: 100%;
}

.photo-timeline-slider-wrap {
  margin-top: 1rem;
}

.photo-timeline-slider-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.photo-timeline-slider {
  width: 100%;
  cursor: pointer;
}

/* Profile photos slider */
.photo-comparison-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  --comparison-position: 50%;
}

.photo-comparison {
  max-width: 520px;
  margin: 1rem auto 0;
  width: 100%;
}

.photo-comparison-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.base-image {
  z-index: 1;
}

.photo-comparison-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--comparison-position)) 0 0);
}

.overlay-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

.photo-comparison-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--comparison-position);
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.2);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}

.photo-comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.2);
  transform: translate(-50%, -50%);
}

.photo-comparison-label {
  position: absolute;
  top: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.8);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 4;
}

.oldest-label {
  left: 0.75rem;
}

.newest-label {
  right: 0.75rem;
}

.photo-comparison-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.photo-comparison-title {
  text-align: center;
  margin-bottom: 1rem;
}

.photo-comparison-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.photo-comparison-toggle-row {
  max-width: 520px;
  margin: 0 auto 0.25rem;
  display: flex;
  justify-content: center;
}

.photo-comparison-toggle-row .chart-toggle-group {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.photo-comparison {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.photo-comparison-meta {
  margin-top: 0.75rem;
}

.photo-comparison-meta p {
  margin: 0.25rem 0;
  text-align: left;
}


  /* mobile compatibility */
@media (max-width: 768px) {
  .navbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-timeline-shell {
    grid-template-columns: 1fr;
  }
  
  .navbar-left,
  .navbar-right {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .page-shell {
    margin: 1rem auto;
    padding: 0 1rem 1.5rem;
  }
  
    .page-card,
    .detail-card,
    .form-card,
    .report-header-card,
    .empty-state-card,
    .info-card {
      padding: 1.25rem;
    }
  
    .page-actions {
      flex-direction: column;
      align-items: stretch;
    }
  
    .page-actions-left,
    .page-actions-right {
      width: 100%;
      flex-wrap: wrap;
    }
  
    .page-actions-left .button-link,
    .page-actions-right .button-link,
    .page-actions-left form,
    .page-actions-right form {
      width: 100%;
    }
  
    .page-actions-left .button-link,
    .page-actions-right .button-link,
    .page-actions-left button,
    .page-actions-right button,
    .page-actions-left input[type="submit"],
    .page-actions-right input[type="submit"] {
      width: 100%;
      text-align: center;
    }
  
    .report-header-top {
      flex-direction: column;
      align-items: stretch;
    }
  
    .report-header-actions {
      width: 100%;
      flex-direction: column;
    }
  
    .report-header-actions .button-link {
      width: 100%;
      text-align: center;
    }
  
    .report-filter-form {
      flex-direction: column;
      align-items: stretch;
    }
  
    .report-filter-group {
      flex-direction: column;
      align-items: stretch;
    }
  
    .report-filter-field {
      min-width: 0;
      width: 100%;
    }
  
    .report-filter-field select,
    .form-field input,
    .form-field select,
    .form-field textarea {
      width: 100%;
      box-sizing: border-box;
    }
  
    .detail-grid,
    .report-card-body,
    .profile-grid,
    .check-in-grid,
    .measurement-grid,
    .report-grid,
    .photo-grid,
    .home-grid {
      grid-template-columns: 1fr;
    }
  
    .photo-card img,
    .progress-photo {
      width: 100%;
      height: auto;
      max-height: none;
    }
  
    .photo-preview-wrapper:hover .photo-preview-thumbnail {
      transform: scale(2.2);
    }
  
    .home-hero {
      padding: 2rem 1.25rem;
    }
  
    .home-hero h1 {
      font-size: 1.8rem;
    }

    .home-actions {
      display: flex;
      gap: 0.75rem;
      flex-wrap: wrap;
      flex-direction: column;
      align-items: stretch;
    }
  
    .home-actions .button-link {
      width: 100%;
      text-align: center;
    }
  
    h1 {
      font-size: 1.75rem;
    }
  
    h2 {
      font-size: 1.3rem;
    }
  
    h3 {
      font-size: 1.05rem;
    }

    .report-header-actions {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }
  
    .report-header-actions .button-link {
      display: block;
      width: 100%;
      text-align: center;
      box-sizing: border-box;
    }

    .home-actions {
      flex-direction: column;
      align-items: stretch;
    }
  
    .home-actions .button-link {
      width: 90%;
    }

    .chart-grid {
      grid-template-columns: 1fr;
    }
  }
