@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

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

body {
  min-height: 100vh;
  background: #f4f6f3;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid #8cae78;
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

h1, h2, h3 {
  letter-spacing: -0.025em;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #202938;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #28543d;
  background: #e7eee8;
  font-size: 16px;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 67px 1fr;
  background: #f4f6f3;
}

.auth-brand-header {
  width: min(1080px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid #dbe2dc;
}

.auth-brand-header > span {
  color: #64748b;
  font-size: 12px;
}

.auth-card {
  width: min(420px, calc(100% - 36px));
  align-self: start;
  justify-self: center;
  margin: 62px auto 80px;
  padding: 30px;
  border: 1px solid #dbe2dc;
  border-radius: 7px;
  background: #fff;
}

.auth-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #dbe2dc;
}

.auth-tab {
  position: relative;
  border: 0;
  padding: 0 0 12px;
  color: #64748b;
  background: transparent;
  font-size: 13px;
}

.auth-tab.is-active {
  color: #28543d;
  font-weight: 700;
}

.auth-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #356b4d;
  content: "";
}

.auth-heading {
  margin: 27px 0 23px;
}

.auth-heading .eyebrow {
  margin-bottom: 7px;
}

.auth-heading h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.auth-heading > p:last-child {
  margin-bottom: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 7px;
  color: #356b4d;
  font-size: 11px;
  font-weight: 700;
}

.form-stack {
  display: grid;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field label, .service-fieldset legend {
  color: #37463e;
  font-size: 12px;
  font-weight: 700;
}

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cfd8d1;
  border-radius: 4px;
  padding: 9px 11px;
  color: #202938;
  background: white;
}

.field textarea {
  min-height: 82px;
  resize: vertical;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: #62876a;
  outline: 2px solid #e0eadf;
}

.field input::placeholder, .field textarea::placeholder {
  color: #929d95;
}

.field small {
  color: #64748b;
  font-size: 11px;
}

.field-optional {
  color: #859188;
  font-size: 11px;
  font-weight: 400;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 9px 15px;
  font-size: 12px;
  font-weight: 700;
}

.button-primary {
  color: white;
  background: #356b4d;
}

.button-primary:hover {
  background: #28543d;
}

.button-secondary {
  border-color: #cbd8cc;
  color: #28543d;
  background: #f7f9f6;
}

.button-secondary:hover {
  background: #e7eee8;
}

.button-wide {
  width: 100%;
}

.session-note {
  margin: 15px 0 0;
  color: #64748b;
  font-size: 11px;
  text-align: center;
}

.form-message {
  margin: 0;
  color: #a4473c;
  font-size: 12px;
  line-height: 1.5;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 23px 14px 14px;
  border-right: 1px solid #dbe2dc;
  background: #fff;
}

.sidebar .brand {
  padding: 0 7px;
}

.sidebar-label {
  margin: 43px 9px 11px;
  color: #858f88;
  font-size: 10px;
  font-weight: 700;
}

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

.nav-item {
  width: 100%;
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 4px;
  padding: 9px 10px;
  color: #55635a;
  background: transparent;
  text-align: left;
  font-size: 12px;
}

.nav-item > span {
  width: 17px;
  color: #647c68;
  font-size: 16px;
  text-align: center;
}

.nav-item:hover {
  background: #f4f6f3;
}

.nav-item.is-current {
  color: #28543d;
  background: #e7eee8;
  font-weight: 700;
}

.nav-item.is-current > span {
  color: #356b4d;
}

.sidebar-bottom {
  margin-top: auto;
}

.logout-button {
  border-top: 1px solid #dbe2dc;
  border-radius: 0;
  padding-top: 14px;
}

.workspace {
  min-width: 0;
  padding: 0 clamp(22px, 4vw, 54px) 50px;
}

.topbar {
  min-height: 63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dbe2dc;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #818b83;
  font-size: 11px;
}

.breadcrumbs strong {
  color: #3c5143;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #46584b;
  font-size: 11px;
}

.account-avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #28543d;
  background: #e7eee8;
  font-weight: 700;
}

.top-logout {
  border: 0;
  border-left: 1px solid #dbe2dc;
  margin-left: 3px;
  padding: 5px 0 5px 10px;
  color: #65756a;
  background: transparent;
  font-size: 11px;
}

.top-logout:hover {
  color: #a4473c;
}

.mobile-brand {
  display: none;
}

.view-panel {
  padding-top: 34px;
}

.page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.page-intro h1 {
  margin: 0 0 6px;
  font-size: 30px;
}

.intro-copy {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.75fr);
  align-items: start;
  gap: 25px;
}

.agenda-main, .agenda-aside {
  display: grid;
  gap: 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.count-pill {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #28543d;
  background: #e7eee8;
  font-size: 10px;
  font-weight: 700;
}

.appointment-list, .history-list {
  display: grid;
}

.appointment-row, .history-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px 4px;
  border-bottom: 1px solid #dbe2dc;
}

.date-block {
  min-height: 45px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-right: 1px solid #dbe2dc;
  color: #28543d;
}

.date-block strong {
  font-size: 18px;
}

.date-block span {
  margin-top: 2px;
  color: #64748b;
  font-size: 9px;
  text-transform: uppercase;
}

.appointment-info h3, .history-info h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.appointment-info p, .history-info p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.appointment-info .service-line {
  margin-top: 2px;
  color: #536f5a;
}

.row-actions {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.time-label {
  color: #526054;
  font-size: 11px;
  font-weight: 700;
}

.delete-button {
  border: 0;
  padding: 3px 0;
  color: #a4473c;
  background: transparent;
  font-size: 10px;
}

.delete-button:hover {
  text-decoration: underline;
}

.empty-state {
  padding: 19px 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: #202938;
  font-size: 13px;
}

.schedule-panel, .pet-summary, .form-card {
  padding: 18px;
  border: 1px solid #dbe2dc;
  border-radius: 5px;
  background: #fff;
}

.schedule-panel {
  border-top: 2px solid #356b4d;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.service-fieldset legend {
  margin-bottom: 8px;
}

.service-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid #dbe2dc;
  border-radius: 3px;
  color: #4e5f54;
  font-size: 10px;
  cursor: pointer;
}

.service-choice:has(input:checked) {
  border-color: #7a9a7d;
  background: #f1f6ef;
}

.service-choice input {
  accent-color: #356b4d;
}

.pet-summary {
  padding: 17px;
}

.compact-heading {
  align-items: center;
}

.compact-heading h2 {
  font-size: 16px;
}

.text-button {
  border: 0;
  padding: 4px 0;
  color: #356b4d;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
}

.text-button:hover {
  text-decoration: underline;
}

.pet-preview-list {
  display: grid;
  margin: 0 0 13px;
}

.pet-preview {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #e9ede9;
}

.pet-avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #28543d;
  background: #e7eee8;
  font-size: 15px;
}

.pet-preview strong, .pet-preview small {
  display: block;
}

.pet-preview strong {
  margin-bottom: 3px;
  font-size: 11px;
}

.pet-preview small {
  color: #64748b;
  font-size: 10px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.8fr);
  align-items: start;
  gap: 24px;
}

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

.pet-card {
  padding: 15px;
  border: 1px solid #dbe2dc;
  border-radius: 5px;
  background: #fff;
}

.pet-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pet-card-head .pet-avatar {
  width: 37px;
  height: 37px;
  font-size: 17px;
}

.pet-card h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.pet-card p {
  margin: 0;
  color: #64748b;
  font-size: 10px;
}

.animal-delete {
  margin-top: 12px;
}

.pet-card-description {
  padding-top: 9px;
  border-top: 1px solid #e9ede9;
  line-height: 1.5;
}

.form-card h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.form-card .eyebrow {
  margin-bottom: 4px;
}

.history-row {
  grid-template-columns: 50px minmax(0, 1fr) auto;
}

.history-status {
  padding: 4px 7px;
  border-radius: 3px;
  color: #42694b;
  background: #e8f0e6;
  font-size: 10px;
}

.history-status.is-cancelled {
  color: #945247;
  background: #f5e9e5;
}

.muted-copy {
  color: #64748b;
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 14px;
  border-radius: 4px;
  color: #fff;
  background: #354a3b;
  font-size: 12px;
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .workspace {
    padding-inline: 22px;
  }

  .agenda-layout {
    grid-template-columns: 1fr;
  }

  .agenda-aside {
    grid-template-columns: 1fr 1fr;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 650px) {
  .auth-shell {
    grid-template-rows: 58px 1fr;
  }

  .auth-brand-header {
    width: calc(100% - 32px);
  }

  .auth-card {
    margin-top: 34px;
    padding: 22px;
  }

  .auth-heading {
    margin: 22px 0 18px;
  }

  .app-shell {
    display: block;
    padding-bottom: 61px;
  }

  .sidebar {
    position: fixed;
    z-index: 4;
    inset: auto 0 0;
    width: 100%;
    height: auto;
    padding: 5px 8px max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid #dbe2dc;
    border-right: 0;
  }

  .sidebar > .brand, .sidebar-label, .sidebar-bottom {
    display: none;
  }

  .side-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  .nav-item {
    justify-content: center;
    gap: 5px;
    padding: 8px 3px;
    font-size: 10px;
  }

  .nav-item > span {
    width: auto;
    font-size: 15px;
  }

  .workspace {
    padding: 0 15px 30px;
  }

  .topbar {
    min-height: 54px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-brand .brand-mark {
    width: 25px;
    height: 25px;
    font-size: 13px;
  }

  .breadcrumbs {
    display: none;
  }

  .account-chip {
    gap: 5px;
    font-size: 10px;
  }

  .account-avatar {
    width: 24px;
    height: 24px;
  }

  .top-logout {
    padding-left: 7px;
  }

  .view-panel {
    padding-top: 25px;
  }

  .page-intro {
    align-items: start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 20px;
  }

  .page-intro h1 {
    font-size: 26px;
  }

  .page-intro > .button {
    width: 100%;
  }

  .agenda-aside {
    grid-template-columns: 1fr;
  }

  .appointment-row, .history-row {
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 10px;
  }

  .row-actions {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

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

  .service-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .service-choice {
    align-items: start;
    min-height: 37px;
    padding: 7px;
    font-size: 9px;
  }

}

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

}

/* Acesso em duas áreas: identidade do Pet Shop e formulário. */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr;
  place-items: center;
  padding: clamp(20px, 5vw, 64px);
  background: #edf0eb;
}

.auth-layout {
  width: min(100%, 1000px);
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #d3dbd4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(38, 53, 47, 0.08);
}

.auth-welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px);
  color: #f6f7f1;
  background: #28543d;
}

.auth-welcome::after {
  position: absolute;
  right: -110px;
  bottom: 45px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(237, 207, 118, 0.24);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(237, 207, 118, 0.06),
    0 0 0 68px rgba(237, 207, 118, 0.04);
  content: "";
  pointer-events: none;
}

.auth-brand {
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.auth-brand .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #28543d;
  background: #edcf76;
  font-size: 18px;
}

.auth-welcome-copy {
  z-index: 1;
  max-width: 390px;
  margin: 60px 0 42px;
}

.welcome-kicker {
  margin: 0 0 15px;
  color: #edcf76;
  font-size: 12px;
  font-weight: 700;
}

.auth-welcome-copy h1 {
  max-width: 370px;
  margin: 0 0 16px;
  font-size: clamp(27px, 3.3vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.auth-welcome-copy > p:last-child {
  max-width: 340px;
  margin: 0;
  color: #d5e0d7;
  font-size: 14px;
  line-height: 1.7;
}

.auth-services {
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-services span {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 20px;
  padding: 7px 11px;
  color: #f2f5f1;
  font-size: 11px;
}

.welcome-foot {
  z-index: 1;
  margin: 24px 0 0;
  color: #c1d1c5;
  font-size: 11px;
}

.auth-welcome {
  justify-content: center;
  gap: clamp(34px, 5vh, 48px);
  align-items: stretch;
  text-align: left;
  color: #f6f7f1;
  background: #28543d;
}

.auth-welcome::after {
  display: none;
}

.auth-brand {
  color: #fff;
}

.auth-welcome-copy {
  align-self: flex-start;
  margin: 0;
}

.welcome-kicker {
  color: #edcf76;
}

.auth-welcome-copy h1 {
  max-width: 360px;
  margin-inline: 0;
  font-size: clamp(30px, 3vw, 36px);
  line-height: 1.12;
}

.auth-welcome-copy > p:last-child {
  color: #d5e0d7;
}

.auth-services {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

.auth-services > div {
  display: grid;
  align-content: start;
  gap: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding-top: 10px;
}

.auth-services strong {
  color: #fff;
  font-size: 12px;
}

.auth-services small {
  color: #d5e0d7;
  font-size: 10px;
  line-height: 1.4;
}

.welcome-foot {
  margin: 0;
  color: #c1d1c5;
}

.auth-card {
  width: 100%;
  align-self: center;
  justify-self: stretch;
  margin: 0;
  padding: clamp(30px, 5vw, 58px);
  border: 0;
  border-radius: 0;
  background: #fff;
}

.auth-heading {
  margin-top: 32px;
}

.auth-heading h2 {
  font-size: 28px;
}

.auth-card .form-stack {
  gap: 17px;
}

.auth-card .field input {
  min-height: 46px;
  border-radius: 5px;
}

.auth-card .button {
  min-height: 45px;
  border-radius: 5px;
}

.auth-card .session-note {
  margin-top: 18px;
}

/* Um pouco mais de definição nas áreas de trabalho. */
.schedule-panel, .pet-summary, .form-card, .pet-card {
  border-radius: 7px;
}

.pet-card, .schedule-panel, .pet-summary, .form-card {
  box-shadow: 0 3px 12px rgba(38, 53, 47, 0.035);
}

@media (max-width: 760px) {
  .auth-shell {
    padding: 16px;
  }

  .auth-layout {
    min-height: 0;
    grid-template-columns: 1fr;
    max-width: 500px;
  }

  .auth-welcome {
    min-height: 330px;
    padding: 26px 28px;
    gap: 20px;
  }

  .auth-welcome-copy {
    margin: 5px 0;
  }

  .auth-welcome-copy h1 {
    max-width: 430px;
    font-size: 28px;
  }

  .welcome-foot {
    margin-top: 15px;
  }

  .auth-card {
    padding: 30px 28px;
  }

}

/* Padrão visual do SiteChamadoTI, com a paleta verde do Pet Shop. */
body { font-family: "Inter", Arial, sans-serif; color: #202938; background: #f4f6f3; font-synthesis: none; text-rendering: optimizeLegibility; }

button, input, select, textarea { font-family: inherit; }

/* Apresentação lateral e formulário centralizado, como no login do outro projeto. */
.auth-shell {
  min-height: 100vh;
  display: block;
  padding: 0;
  background: #f4f6f3;
}

.auth-layout {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #f4f6f3;
}

.auth-welcome {
  min-height: 100vh;
  padding: clamp(36px, 5vw, 60px);
}

.auth-card {
  place-self: center;
  width: min(440px, calc(100% - 56px));
  padding: 36px;
  border: 1px solid #dbe2dc;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(40, 84, 61, .08);
}

.auth-card .field input, .auth-card .field select { min-height: 46px; border-radius: 8px; padding: 0 14px; }

.auth-card .button { min-height: 46px; border-radius: 8px; }

/* Campos, botões e painéis seguem os mesmos tamanhos nas telas internas. */
.field input, .field select { min-height: 46px; border-radius: 8px; padding: 0 14px; }

.field textarea { border-radius: 8px; padding: 12px 14px; }

.button { min-height: 46px; border-radius: 8px; font-size: 14px; }

.service-choice { border-radius: 8px; padding: 10px 12px; font-size: 12px; }

.schedule-panel, .form-card, .appointment-list-panel, .history-panel, .split-layout > div:first-child, .pet-card { border-radius: 12px; }

.schedule-panel, .form-card { padding: 24px; }

.pet-card { padding: 18px; }

.history-status { border-radius: 8px; }

/* Menu escuro do projeto de referência, adaptado ao verde escuro atual. */
.app-shell { grid-template-columns: 250px minmax(0, 1fr); }

.sidebar { background: #28543d; border-right: 0; }

.sidebar .brand { color: #fff; }

.sidebar .brand-mark { color: #28543d; background: #edcf76; }

.sidebar-label { color: #c1d1c5; }

.nav-item { min-height: 44px; border-radius: 8px; color: #f2f5f1; font-size: 14px; }

.nav-item > span { color: #c1d1c5; }

.nav-item:hover { background: rgba(255,255,255,.09); }

.nav-item.is-current { color: #fff; background: #356b4d; }

.nav-item.is-current > span { color: #fff; }

.logout-button { border-color: rgba(255,255,255,.18); }

.logout-button:hover { color: #fff; background: rgba(255,255,255,.09); }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }

}

@media (max-width: 760px) {
  .auth-layout { min-height: 100vh; grid-template-columns: 1fr; }

  .auth-welcome { min-height: 310px; padding: 32px 28px; }

  .auth-card { width: min(480px, calc(100% - 32px)); margin: 24px auto; padding: 30px; }

  .sidebar { background: #28543d; }

  .schedule-panel, .form-card { padding: 18px; }

}

@media (max-width: 420px) {
  .auth-welcome { min-height: 280px; padding: 26px 22px; }

  .auth-card { width: 100%; margin: 0; padding: 26px 22px 30px; border-radius: 0; border-inline: 0; }

}

@media (max-width: 420px) {
  .auth-shell {
    padding: 0;
  }

  .auth-layout {
    border: 0;
    border-radius: 0;
  }

  .auth-welcome {
    min-height: 310px;
    padding: 22px;
    gap: 18px;
  }

  .auth-welcome-copy {
    margin: 2px 0;
  }

  .auth-welcome-copy h1 {
    font-size: 25px;
  }

  .auth-services {
    gap: 8px;
  }

  .auth-services small {
    font-size: 9px;
  }

  .auth-card {
    padding: 25px 22px 30px;
  }

}

/* As demais áreas seguem a mesma leitura em duas colunas quando há espaço. */
.agenda-layout {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.95fr);
  align-items: start;
  gap: 20px;
}

.agenda-side {
  display: grid;
  align-content: start;
  gap: 16px;
}

.appointment-list-panel, .history-panel, .split-layout > div:first-child {
  min-width: 0;
  padding: 19px;
  border: 1px solid #dbe2dc;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(38, 53, 47, 0.035);
}

.appointment-list-panel .section-heading, .history-panel .section-heading, .split-layout > div:first-child .section-heading {
  margin-bottom: 8px;
}

.agenda-side .schedule-panel, .agenda-side .pet-summary {
  margin: 0;
}

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

.history-panel .history-list {
  min-height: 115px;
}

.history-panel .history-row {
  grid-template-columns: 46px minmax(0, 1fr);
}

.history-panel .history-status {
  grid-column: 2;
  justify-self: start;
}

.split-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .agenda-layout {
    grid-template-columns: 1fr;
  }

  .agenda-side {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    align-items: start;
  }

}

@media (max-width: 760px) {
  .agenda-side, .history-columns, .split-layout {
    grid-template-columns: 1fr;
  }

  .agenda-side {
    gap: 14px;
  }

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

}
