/* Guia de Cuidados do Buddy - Estilos Modernos & Leves */
:root {
  --bg: #F6F6F3;
  --text-main: #161814;
  --text-muted: #52564E;
  --text-light: #6B7065;
  --border: #E4E4DD;
  --border-light: #ECECE6;
  --border-subtle: #EFEFEA;
  --card-bg: #FFFFFF;
  --lime: #B6F05D;
  --lime-hover: #A6E34B;
  --lime-dark: #3F6212;
  --lime-bg: rgba(182, 240, 93, 0.35);
  --danger-bg: #FFF4F2;
  --danger-border: #F3C5BE;
  --danger-red: #D92D20;
  --danger-text: #B42318;
  --danger-dark: #7A271A;
  --warning-bg: #FFF9F2;
  --warning-border: #F2DEC2;
  --warning-text: #7C4A03;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 90px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 48px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Container */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* Header Desktop */
.site-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(246, 246, 243, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .site-header {
    display: block;
  }
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.desktop-nav a:hover {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--lime);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.btn-header-call:hover {
  background-color: var(--lime-hover);
}

/* Main Content */
main.container {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 640px) {
  main.container {
    padding-top: 32px;
    gap: 32px;
  }
}

/* Cards Base */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
}

@media (min-width: 640px) {
  .card {
    padding: 28px;
  }
}

/* Grids */
.grid-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .grid-intro {
    grid-template-columns: 7fr 5fr;
  }
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}

.grid-walks-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .grid-walks-items {
    grid-template-columns: 7fr 5fr;
  }
}

/* Pet Profile Card */
.pet-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--lime-dark);
  margin-bottom: 16px;
}

.pet-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 640px) {
  .pet-hero {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.pet-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--lime);
  background-color: #EEF5DF;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .pet-avatar-wrap {
    width: 112px;
    height: 112px;
  }
}

.pet-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .pet-name {
    font-size: 2.25rem;
  }
}

.pet-meta {
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.pet-microchip {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.pet-welcome {
  margin-top: 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #383B35;
}

.pet-highlights {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pet-highlights li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.pet-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--lime);
  border: 1px solid #8EC834;
}

.pet-highlights strong {
  color: var(--text-main);
  font-weight: 600;
}

.quick-summary {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .quick-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

.summary-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.summary-value {
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 600;
}

.summary-alert {
  color: var(--danger-text);
}

/* Routine / Checklist */
.routine-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.routine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.routine-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.routine-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

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

.badge-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lime-dark);
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-reset:hover {
  color: var(--text-main);
  background-color: #F2F2ED;
}

.progress-track {
  margin-top: 12px;
  height: 8px;
  width: 100%;
  border-radius: 9999px;
  background-color: var(--border-light);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--lime);
  border-radius: 9999px;
  transition: width 0.25s ease;
  width: 0%;
}

.task-list {
  list-style: none;
  margin-top: 16px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.task-item {
  border-bottom: 1px solid var(--border-subtle);
}

.task-item:last-child {
  border-bottom: none;
}

.task-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  transition: background-color 0.15s ease;
}

.task-btn:hover {
  background-color: #F7F7F4;
}

.task-checkbox {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid #C9CAC2;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.task-item.is-done .task-checkbox {
  background-color: var(--lime);
  border-color: #8EC834;
  color: var(--text-main);
}

.task-checkbox svg {
  display: none;
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.task-item.is-done .task-checkbox svg {
  display: block;
}

.task-content {
  flex: 1;
  min-width: 0;
}

.task-time-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.task-time {
  font-weight: 600;
  color: var(--text-main);
}

.task-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 2px;
  color: var(--text-main);
  transition: all 0.15s ease;
}

.task-item.is-done .task-title {
  text-decoration: line-through;
  color: #7B8075;
}

/* Emergency Section */
.emergency-card {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-xl);
  padding: 20px;
}

@media (min-width: 640px) {
  .emergency-card {
    padding: 28px;
  }
}

.emergency-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F3D5D0;
}

@media (min-width: 640px) {
  .emergency-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.emergency-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emergency-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: #FDE4E0;
  color: var(--danger-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emergency-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--danger-text);
}

.emergency-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

@media (min-width: 640px) {
  .emergency-title {
    font-size: 1.5rem;
  }
}

.emergency-subtitle {
  font-size: 0.8125rem;
  color: var(--danger-dark);
}

.emergency-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .emergency-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #F2CFC9;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

@media (min-width: 640px) {
  .contact-card {
    padding: 20px;
  }
}

.contact-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--danger-text);
}

.contact-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 4px;
}

.contact-phone {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.contact-note {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.contact-address {
  margin-top: 8px;
  font-size: 0.875rem;
  color: #383B35;
}

.contact-hours {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-light);
}

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

.btn-call {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FFFFFF;
  background-color: var(--text-main);
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.btn-call:hover {
  background-color: #2C3028;
}

.btn-call.btn-danger {
  background-color: var(--danger-red);
}

.btn-call.btn-danger:hover {
  background-color: var(--danger-text);
}

.btn-copy {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: #FFFFFF;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-copy:hover {
  background-color: var(--bg);
}

.btn-maps {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background-color: var(--lime);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.btn-maps:hover {
  background-color: var(--lime-hover);
}

.btn-whatsapp {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background-color: #16A34A;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background-color: #15803D;
}

/* Section Header Shared */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.section-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--lime-bg);
  color: #365314;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.section-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Content blocks */
.block-group {
  margin-bottom: 24px;
}

.block-group:last-child {
  margin-bottom: 0;
}

.block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.block-title {
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.block-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lime-dark);
}

.item-list {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.item-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.item-row:last-child {
  border-bottom: none;
}

.item-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.item-row-time {
  font-weight: 700;
}

.item-row-desc {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.amount-badge {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--lime-bg);
  color: var(--text-main);
}

.block-body-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #383B35;
}

.border-top-divider {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* Allergy Alert */
.alert-box {
  background-color: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.alert-icon {
  color: var(--danger-text);
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--danger-text);
}

.alert-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2px;
}

.alert-text {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #383B35;
}

.alert-subtext {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--danger-dark);
}

/* Schedules Grid */
.schedules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .schedules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.schedule-card {
  padding: 14px;
  border-radius: var(--radius-lg);
  background-color: #F8F8F5;
  border: 1px solid #E9E9E2;
}

.schedule-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.schedule-time {
  font-size: 1rem;
  font-weight: 700;
}

.schedule-duration {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lime-dark);
}

.schedule-desc {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Warning box */
.warning-box {
  padding: 16px;
  border-radius: var(--radius-lg);
  background-color: var(--warning-bg);
  border: 1px solid var(--warning-border);
}

.warning-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--warning-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-text {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4A3516;
}

/* Commands */
.commands-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 24px;
}

@media (min-width: 640px) {
  .commands-dl {
    grid-template-columns: repeat(2, 1fr);
  }
}

.command-item {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.command-term {
  font-size: 0.875rem;
  font-weight: 700;
}

.command-def {
  margin-top: 2px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Items list */
.items-list {
  list-style: none;
}

.item-storage {
  padding: 5px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.item-storage:first-child {
  padding-top: 4px;
}

.item-storage:last-child {
  padding-bottom: 4px;
  border-bottom: none;
}

.item-storage-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.item-storage-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.item-storage-loc {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--lime-dark);
  text-align: right;
}

.item-storage-desc {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Footer Card Quick Action */
.card-footer-action {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-footer-info {
  min-width: 0;
}

.card-footer-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.card-footer-value {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Site Footer */
.site-footer {
  padding-top: 32px;
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer {
    flex-direction: row;
    text-align: left;
  }
}

.btn-top {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
  padding: 8px 12px;
}

.btn-top:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mobile Fixed Bottom Navigation */
.mobile-nav {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: 64px;
  padding: 0 4px;
}

.mobile-nav-btn {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: color 0.15s ease;
  font-size: 11px;
  font-weight: 500;
  gap: 4px;
}

.mobile-nav-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-btn.active {
  color: var(--text-main);
}

.mobile-nav-btn.active svg {
  color: #4D7C0F;
}

.mobile-nav-btn.btn-sos {
  color: var(--danger-text);
}

.mobile-nav-btn.btn-sos svg {
  color: var(--danger-red);
}

/* Balão de Boas-Vindas (Estilo Chatbot) */
.tutor-chat {
  position: fixed;
  bottom: 78px;
  right: 16px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

@media (min-width: 768px) {
  .tutor-chat {
    bottom: 24px;
    right: 24px;
  }
}

.tutor-chat-popup {
  width: min(320px, calc(100vw - 32px));
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(22, 24, 20, 0.14);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.tutor-chat.is-open .tutor-chat-popup {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}

.tutor-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background-color: #F8F8F5;
  border-bottom: 1px solid var(--border-light);
}

.tutor-chat-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutor-chat-mini-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--lime);
  flex-shrink: 0;
}

.tutor-chat-name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.tutor-chat-role {
  font-size: 0.75rem;
  color: var(--lime-dark);
  font-weight: 500;
}

.tutor-chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tutor-chat-close:hover {
  background-color: var(--border-light);
  color: var(--text-main);
}

.tutor-chat-body {
  padding: 14px;
}

.tutor-chat-bubble {
  background-color: #F6F6F3;
  border: 1px solid var(--border-light);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #383B35;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tutor-chat-footer {
  padding: 0 14px 14px;
  display: flex;
}

.tutor-chat-trigger {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2px;
  background-color: var(--lime);
  box-shadow: 0 8px 24px rgba(22, 24, 20, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tutor-chat-trigger:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(22, 24, 20, 0.24);
}

.tutor-chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.tutor-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #16A34A;
  border: 2px solid #FFFFFF;
}