:root {
  font-family: Inter, "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: #1c2b26;
  background: #f4f5f0;
  font-synthesis: none;
  --green: #173f35;
  --mint: #dcebdc;
  --line: #dde2da;
  --muted: #738079;
  --orange: #d97736;
  --shadow: 0 10px 34px rgba(29, 48, 40, 0.07);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.app-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 20px 22px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--green);
  text-decoration: none;
  padding: 0 8px 30px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Georgia;
  font-size: 23px;
}
.brand strong {
  display: block;
  font-size: 18px;
}
.brand small,
.user-row small {
  display: block;
  color: #8a958f;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-item {
  border: 0;
  background: transparent;
  color: #6b7972;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 11px;
  text-align: left;
  font-weight: 700;
}
.nav-item span {
  width: 20px;
  font-size: 18px;
}
.nav-item:hover,
.nav-item.active {
  color: var(--green);
  background: #edf4ec;
}
.sidebar-card {
  margin-top: auto;
  background: var(--green);
  color: #fff;
  padding: 18px;
  border-radius: 16px;
}
.sidebar-card .spark {
  color: #b9dbb2;
}
.sidebar-card strong {
  display: block;
  margin: 8px 0;
}
.sidebar-card p {
  font-size: 12px;
  line-height: 1.55;
  color: #cbdad4;
}
.sidebar-card button {
  border: 0;
  border-radius: 8px;
  width: 100%;
  padding: 9px;
  background: #fff;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 4px;
}
.user-row > span:nth-child(2) {
  flex: 1;
  font-size: 13px;
}
.user-row button {
  border: 0;
  background: none;
}
.avatar {
  width: 35px;
  height: 35px;
  background: #ecd0a8;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
}
main {
  min-width: 0;
  padding: 0 42px 60px;
}
.topbar {
  height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar p {
  margin: 0 0 3px;
  color: #87918b;
  font-size: 12px;
}
.topbar h1 {
  margin: 0;
  font-size: 20px;
}
.top-actions {
  display: flex;
  gap: 10px;
}
.primary,
.dark-btn,
.full-btn {
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}
.primary {
  background: var(--green);
  color: #fff;
  padding: 11px 17px;
}
.primary:hover,
.dark-btn:hover {
  background: #0c3028;
}
.primary.large {
  width: 100%;
  padding: 14px;
}
.icon-btn {
  position: relative;
  width: 42px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
}
.icon-btn i {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #e06545;
  border-radius: 50%;
  right: 9px;
  top: 8px;
}
.mobile-menu {
  display: none;
}
.view {
  display: none;
  max-width: 1250px;
  margin: auto;
}
.view.active {
  display: block;
}
.hero {
  min-height: 270px;
  border-radius: 24px;
  padding: 38px 45px;
  background: linear-gradient(110deg, #dbead8, #edf1db);
  display: flex;
  overflow: hidden;
  position: relative;
}
.eyebrow {
  color: #78906e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.hero h2 {
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 36px;
  line-height: 1.2;
  margin: 10px 0;
}
.hero p {
  color: #637168;
  font-size: 13px;
}
.progress {
  width: 230px;
  height: 5px;
  background: #c5d4c2;
  border-radius: 9px;
  margin-top: 22px;
}
.progress span {
  display: block;
  width: 67%;
  height: 100%;
  background: var(--green);
  border-radius: 9px;
}
.hero-art {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 45%;
  height: 100%;
}
.sun {
  position: absolute;
  width: 120px;
  height: 120px;
  background: #f4d997;
  border-radius: 50%;
  right: 18%;
  top: 18%;
}
.lizard {
  position: absolute;
  font-size: 110px;
  right: 23%;
  bottom: 6%;
  filter: saturate(0.55);
  transform: rotate(-8deg);
}
.leaf {
  position: absolute;
  width: 80px;
  height: 150px;
  border-radius: 100% 0 100% 0;
  background: #71966c;
  opacity: 0.85;
  bottom: -50px;
}
.l1 {
  right: 5%;
  transform: rotate(-25deg);
}
.l2 {
  left: 18%;
  transform: rotate(25deg);
  background: #9db88a;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 34px 0 16px;
}
.section-head.compact {
  margin-top: 32px;
}
.section-head h2,
.page-intro h2 {
  font-family: Georgia, "Noto Serif KR", serif;
  margin: 0;
  font-size: 24px;
}
.section-head p,
.page-intro p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.text-btn {
  border: 0;
  background: none;
  color: #4c685e;
  font-weight: 800;
  font-size: 12px;
}
.pet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pet-card,
.panel {
  background: #fff;
  border: 1px solid #e3e6df;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.pet-card {
  padding: 20px;
}
.pet-top {
  display: flex;
  justify-content: space-between;
}
.pet-avatar {
  width: 49px;
  height: 49px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
}
.pet-avatar.gold,
.profile-cover.gold {
  background: #ead7ad;
  color: #765d28;
}
.pet-avatar.moss,
.profile-cover.moss {
  background: #d8e4ce;
  color: #49633e;
}
.pet-avatar.sand,
.profile-cover.sand {
  background: #ead2bc;
  color: #7d5432;
}
.status,
.count-pill,
.ai-badge {
  border-radius: 99px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
}
.status.warn {
  background: #fff0e4;
  color: #b86632;
}
.status.good {
  background: #e9f4e8;
  color: #497348;
}
.status.shed {
  background: #eef0fa;
  color: #5b668f;
}
.pet-card h3 {
  margin: 16px 0 4px;
}
.pet-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.pet-meta {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  border-top: 1px solid #edf0eb;
  margin-top: 17px;
  padding-top: 14px;
}
.pet-meta small,
.pet-meta strong {
  display: block;
}
.pet-meta small {
  color: #8b958f;
  font-size: 9px;
  margin-bottom: 5px;
}
.pet-meta strong {
  font-size: 11px;
}
.pet-meta em {
  font-style: normal;
  color: #d07043;
  font-size: 9px;
}
.pet-note {
  background: #f7f8f5;
  padding: 8px;
  border-radius: 7px;
  margin-top: 15px;
  font-size: 10px;
  color: #647168;
}
.pet-note span {
  color: #e28b55;
  margin-right: 5px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  margin-top: 20px;
}
.panel {
  padding: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.panel-head h3 {
  margin: 5px 0 14px;
}
.count-pill {
  background: #eef3ed;
  color: #6d7c74;
}
.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-top: 1px solid #edf0eb;
  cursor: pointer;
}
.task input {
  display: none;
}
.check {
  width: 20px;
  height: 20px;
  border: 1px solid #cfd7d0;
  border-radius: 6px;
  color: transparent;
  display: grid;
  place-items: center;
}
.task.done .check {
  background: #73916e;
  border-color: #73916e;
  color: white;
}
.task-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f2f4ef;
}
.task strong,
.task small {
  display: block;
}
.task strong {
  font-size: 12px;
}
.task small {
  color: #8b958f;
  font-size: 10px;
  margin-top: 3px;
}
.task.done strong {
  text-decoration: line-through;
  color: #87918c;
}
.full-btn {
  width: 100%;
  padding: 11px;
  background: #f1f5ef;
  color: var(--green);
  margin-top: 12px;
}
.ai-panel {
  background: #fdfcf7;
}
.ai-badge {
  background: #e5efe2;
  color: #55764f;
}
.insight-highlight {
  display: flex;
  gap: 12px;
  background: #fff0e7;
  padding: 13px;
  border-radius: 10px;
  color: #9c502d;
}
.insight-highlight > span {
  font-size: 22px;
}
.insight-highlight strong {
  font-size: 12px;
}
.insight-highlight p {
  font-size: 10px;
  margin: 4px 0;
}
.mini-stats {
  list-style: none;
  margin: 15px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mini-stats li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mini-stats small,
.mini-stats strong {
  display: block;
}
.mini-stats small {
  font-size: 8px;
  color: #8a958f;
}
.mini-stats strong {
  font-size: 11px;
  margin-top: 3px;
}
.mini-stats em {
  font-size: 8px;
  color: #d06440;
  font-style: normal;
}
.mini-stats em.ok {
  color: #5d875a;
}
.dark-btn {
  width: 100%;
  padding: 11px;
  background: var(--green);
  color: #fff;
  border: 0;
}
.disclaimer {
  text-align: center;
  color: #9aa19d;
  font-size: 8px;
}
.timeline {
  padding: 4px 20px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 38px 1fr auto 55px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eef0ec;
}
.timeline-row:last-child {
  border: 0;
}
.timeline-icon {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: #eef3ed;
  display: grid;
  place-items: center;
}
.timeline-row strong {
  font-size: 11px;
}
.timeline-row p {
  margin: 3px 0 0;
  font-size: 10px;
  color: #7f8a84;
}
.timeline-type {
  font-size: 9px;
  background: #f1f3ef;
  padding: 4px 7px;
  border-radius: 7px;
}
.timeline-row time {
  font-size: 9px;
  color: #97a09b;
}
.page-intro {
  padding: 18px 0 24px;
}
.page-intro.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-intro h2 {
  font-size: 30px;
  margin-top: 8px;
}
.mode-tabs {
  display: flex;
  gap: 6px;
  background: #e9ede7;
  padding: 5px;
  border-radius: 12px;
  width: max-content;
  margin-bottom: 16px;
}
.mode-tabs button {
  padding: 11px 22px;
  border: 0;
  background: transparent;
  border-radius: 9px;
  color: #66756e;
  font-weight: 800;
}
.mode-tabs button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 3px 9px #d9dfd8;
}
.record-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
}
.record-form {
  padding: 28px;
}
.field {
  margin-bottom: 25px;
}
.field > label {
  font-weight: 800;
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
}
.field > label span {
  font-weight: 500;
  color: #8a948e;
  font-size: 10px;
  margin-left: 6px;
}
.pet-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.pet-chip {
  display: flex;
  align-items: center;
  position: relative;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}
.pet-chip.selected {
  border-color: #6c8c72;
  background: #f2f7f0;
}
.pet-chip input {
  display: none;
}
.pet-chip .pet-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.pet-chip span:nth-of-type(2) {
  font-size: 11px;
  font-weight: 800;
}
.pet-chip small {
  display: block;
  color: #87918c;
  font-size: 8px;
  margin-top: 3px;
}
.pet-chip i {
  position: absolute;
  right: 7px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #71916f;
  color: white;
  font-size: 9px;
  display: none;
  place-items: center;
}
.pet-chip.selected i {
  display: grid;
}
textarea,
input,
select {
  width: 100%;
  border: 1px solid #d7ddd6;
  border-radius: 10px;
  background: #fbfcfa;
  color: #24322d;
  outline: none;
}
textarea:focus,
input:focus,
select:focus {
  border-color: #78967b;
  box-shadow: 0 0 0 3px #e7efe5;
}
textarea {
  min-height: 170px;
  padding: 15px;
  resize: vertical;
  line-height: 1.6;
}
.field > small {
  display: block;
  color: #909a94;
  margin-top: 7px;
  font-size: 10px;
}
.preview-panel h3 {
  margin: 7px 0 22px;
}
.empty-preview {
  height: 310px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #9aa49e;
}
.empty-preview > span {
  font-size: 30px;
  color: #8cab86;
}
.empty-preview p {
  font-size: 11px;
  line-height: 1.6;
}
.preview-content {
  display: grid;
  gap: 10px;
}
.preview-record {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f6f8f4;
  padding: 12px;
  border-radius: 10px;
}
.preview-record > span {
  font-size: 20px;
}
.preview-record > div {
  flex: 1;
}
.preview-record strong,
.preview-record p,
.preview-record small {
  display: block;
  margin: 0;
}
.preview-record strong {
  font-size: 11px;
}
.preview-record p {
  font-size: 10px;
  margin-top: 3px;
}
.preview-record small {
  font-size: 8px;
  color: #87918c;
  margin-top: 3px;
}
.preview-record button {
  border: 0;
  background: none;
  font-size: 9px;
  color: #6d7a74;
}
.preview-record.shared {
  background: #edf5ec;
}
.preview-note {
  text-align: center;
  font-size: 9px;
  color: #929c96;
}
.hidden {
  display: none !important;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 22px;
}
.form-grid label,
#petForm label {
  font-size: 11px;
  font-weight: 800;
}
.form-grid input,
.form-grid select,
#petForm input,
#petForm select {
  height: 42px;
  margin-top: 7px;
  padding: 0 10px;
}
.calendar-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.calendar-stats > div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat-icon {
  font-size: 10px;
}
.stat-icon.food {
  color: #d59446;
}
.stat-icon.water {
  color: #5c9eb2;
}
.stat-icon.shed {
  color: #7781aa;
}
.stat-icon.alert {
  color: #d16643;
}
.calendar-stats p {
  margin: 0;
  color: #839089;
  font-size: 9px;
}
.calendar-stats strong {
  display: block;
  color: #26352f;
  font-size: 16px;
  margin-top: 3px;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.month-nav {
  display: flex;
  align-items: center;
  gap: 13px;
}
.month-nav h3 {
  min-width: 110px;
  text-align: center;
}
.month-nav button {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
}
.calendar-filters {
  display: flex;
  gap: 4px;
}
.calendar-filters button {
  border: 0;
  background: #f2f4f0;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 9px;
}
.calendar-filters button.active {
  background: var(--green);
  color: white;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.weekdays span {
  text-align: center;
  font-size: 9px;
  color: #8f9993;
  padding: 8px;
}
.day {
  min-width: 0;
  min-height: 106px;
  border: 1px solid #e8ebe6;
  border-right: 0;
  border-bottom: 0;
  background: #fff;
  text-align: left;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.day:nth-child(7n) {
  border-right: 1px solid #e8ebe6;
}
.day > span {
  font-size: 10px;
  color: #67736d;
}
.day.today > span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
}
.day:hover {
  background: #f7f9f6;
}
.muted-day {
  background: #fafbf9;
}
.event {
  padding: 4px 5px;
  border-radius: 4px;
  background: #eef4ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 8px;
}
.day em {
  font-size: 8px;
  color: #8d9791;
}
.insight-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 18px;
}
.report-main {
  padding: 28px;
}
.report-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.report-title div {
  flex: 1;
}
.report-title small {
  color: #7f8a84;
}
.report-title h3 {
  margin: 3px 0;
}
.risk-banner {
  display: flex;
  gap: 13px;
  padding: 17px;
  background: #fff0e8;
  border-left: 3px solid #da7445;
  border-radius: 8px;
  margin: 24px 0;
}
.risk-banner > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d97745;
  color: white;
}
.risk-banner strong {
  font-size: 13px;
}
.risk-banner p {
  font-size: 10px;
  color: #8a604d;
  margin: 5px 0;
}
.evidence h4,
.advice h4 {
  font-size: 12px;
}
.evidence > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  border-top: 1px solid #edf0eb;
  padding: 12px 0;
  font-size: 10px;
}
.evidence span {
  color: #87918c;
}
.evidence p {
  margin: 0;
}
.advice {
  background: #f2f6ef;
  padding: 15px;
  border-radius: 10px;
  margin-top: 18px;
}
.advice ol {
  margin: 0;
  padding-left: 20px;
}
.advice li {
  font-size: 10px;
  margin: 8px 0;
  line-height: 1.5;
}
.insight-grid aside {
  display: grid;
  gap: 16px;
  align-content: start;
}
.ask-answer {
  padding: 10px;
  background: #edf5eb;
  color: #46624c !important;
  border-radius: 8px;
}
.safety-card {
  background: #fffaf0;
}
.safety-card h3 {
  font-size: 13px;
}
.safety-card p {
  font-size: 10px;
  line-height: 1.6;
  color: #737d77;
}
.safety-card span {
  font-size: 9px;
  font-weight: 800;
  color: #9b754c;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.profile-card {
  padding: 0;
  overflow: hidden;
}
.profile-cover {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.profile-cover .pet-avatar {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.55);
}
.profile-cover > span {
  position: absolute;
  right: 13px;
  top: 13px;
  background: rgba(255, 255, 255, 0.7);
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 9px;
}
.profile-body {
  padding: 20px;
}
.profile-body h3 {
  margin: 0;
}
.profile-body > p {
  font-size: 10px;
  color: #7f8b85;
}
.profile-body dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #edf0eb;
  padding-top: 14px;
}
.profile-body dt {
  font-size: 8px;
  color: #8c9690;
}
.profile-body dd {
  font-size: 10px;
  font-weight: 800;
  margin: 4px 0 0;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 30px);
  background: #173f35;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 20px 70px #132c2355;
  width: min(480px, 90vw);
}
dialog::backdrop {
  background: #17352d77;
}
#petForm {
  display: grid;
  gap: 15px;
  padding: 25px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-head button {
  border: 0;
  background: none;
  font-size: 24px;
}
.calendar-detail {
  margin-top: 18px;
  padding: 24px;
}
.calendar-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf0eb;
}
.calendar-detail-head h3 {
  margin: 6px 0 0;
  font-size: 17px;
}
.calendar-detail-empty {
  min-height: 170px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #909a94;
}
.calendar-detail-empty > span {
  font-size: 28px;
  color: #7e9b7b;
}
.calendar-detail-empty p {
  font-size: 11px;
  line-height: 1.65;
}
.calendar-detail-empty .full-btn {
  min-width: 210px;
}
.calendar-record-list {
  display: grid;
}
.calendar-record {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px 4px;
  border-bottom: 1px solid #edf0eb;
}
.calendar-record:last-child {
  border-bottom: 0;
}
.calendar-record-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eef3ed;
  display: grid;
  place-items: center;
}
.calendar-record-copy strong,
.calendar-record-copy p,
.calendar-record-copy small {
  display: block;
  margin: 0;
}
.calendar-record-copy strong {
  font-size: 12px;
}
.calendar-record-copy p {
  font-size: 11px;
  margin-top: 4px;
}
.calendar-record-copy small {
  font-size: 9px;
  color: #87918c;
  margin-top: 4px;
}
.record-edit-btn {
  border: 1px solid #d6ddd5;
  background: #fff;
  border-radius: 8px;
  padding: 7px 11px;
  color: #52665d;
  font-size: 10px;
  font-weight: 800;
}
.day.selected {
  position: relative;
  background: #f0f6ee;
  box-shadow: inset 0 0 0 2px #668466;
  z-index: 1;
}
.calendar-record.editing {
  display: block;
  background: #f7f9f5;
  margin: 8px 0;
  padding: 16px;
  border: 0;
  border-radius: 11px;
}
.calendar-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 10px;
}
.calendar-edit-grid label {
  font-size: 9px;
  font-weight: 800;
  color: #68766f;
}
.calendar-edit-grid input,
.calendar-edit-grid select {
  height: 39px;
  margin-top: 6px;
  padding: 0 9px;
}
.calendar-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 12px;
}
.calendar-edit-actions button {
  border: 1px solid #d6ddd5;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 800;
}
.calendar-edit-actions .primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}
.notification-dialog {
  width: min(680px, 94vw);
  max-height: 88vh;
}
.notification-shell {
  padding: 25px;
  overflow-y: auto;
  max-height: 88vh;
}
.notification-shell .dialog-head h2 {
  margin: 6px 0 0;
}
.notification-permission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px;
  background: #f1f6ef;
  border-radius: 11px;
  margin: 20px 0;
}
.notification-permission strong {
  font-size: 12px;
}
.notification-permission p {
  margin: 4px 0 0;
  color: #78847e;
  font-size: 9px;
}
.notification-permission button {
  border: 1px solid #bdd0b9;
  background: #fff;
  color: var(--green);
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 9px;
  font-weight: 800;
}
.notification-permission button:disabled {
  opacity: 0.6;
}
.reminder-form {
  padding: 16px;
  border: 1px solid #e3e7e0;
  border-radius: 12px;
}
.reminder-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.reminder-form-grid label {
  font-size: 9px;
  font-weight: 800;
}
.reminder-form-grid input,
.reminder-form-grid select {
  height: 39px;
  margin-top: 6px;
  padding: 0 9px;
}
.reminder-title-field {
  grid-column: 1/-1;
}
.reminder-form > .primary {
  width: 100%;
  margin-top: 12px;
}
.reminder-list-head {
  display: flex;
  justify-content: space-between;
  margin: 22px 0 8px;
  font-size: 11px;
}
.reminder-list {
  display: grid;
}
.reminder-item {
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 4px;
  border-bottom: 1px solid #edf0eb;
}
.reminder-item.due {
  background: #fff7ef;
  border-radius: 9px;
  padding: 13px;
}
.reminder-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eaf2e7;
  color: #557451;
}
.reminder-item strong {
  font-size: 11px;
}
.reminder-item p,
.reminder-item time {
  display: block;
  margin: 3px 0 0;
  font-size: 9px;
  color: #849089;
}
.reminder-actions {
  display: flex;
  gap: 5px;
}
.reminder-actions button {
  border: 1px solid #d8ded7;
  background: #fff;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 8px;
}
.reminder-empty {
  text-align: center;
  color: #8b9690;
  padding: 30px;
  font-size: 10px;
}
.reminder-empty span {
  font-size: 24px;
  color: #769471;
}
.notification-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}
.notification-compose,
.reminder-overview {
  padding: 24px;
}
.notification-compose .notification-permission {
  margin: 0 0 18px;
}
.reminder-overview .reminder-list-head {
  margin: 0 0 10px;
}
.notification-page-grid .reminder-form {
  border: 0;
  padding: 0;
}
.notification-page-grid .reminder-item:first-child {
  border-top: 1px solid #edf0eb;
}
@media (max-width: 900px) {
  .notification-page-grid {
    grid-template-columns: 1fr;
  }
}
.photo-upload-panel {
  padding: 24px;
}
.photo-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 14px;
  align-items: end;
}
.photo-form label {
  font-size: 10px;
  font-weight: 800;
}
.photo-form input,
.photo-form select {
  height: 42px;
  margin-top: 7px;
  padding: 0 10px;
}
.photo-file-field {
  grid-column: 1/3;
  position: relative;
  display: block;
  padding: 14px;
  border: 1px dashed #aebdb0;
  border-radius: 11px;
  background: #f5f8f3;
  color: var(--green);
  cursor: pointer;
}
.photo-file-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.photo-file-field span {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #7c8982;
  margin-top: 4px;
}
.photo-form > .primary {
  height: 48px;
}
.photo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 28px 0 12px;
}
.photo-toolbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.photo-toolbar > div span {
  padding: 4px 8px;
  border-radius: 99px;
  background: #e7eee4;
  color: #657c69;
  font-size: 9px;
}
.photo-toolbar label {
  font-size: 9px;
  color: #77847d;
}
.photo-toolbar select {
  width: 130px;
  height: 34px;
  margin-left: 8px;
  padding: 0 8px;
}
.photo-gallery {
  display: grid;
  gap: 28px;
}
.photo-date-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
}
.photo-date-head h3 {
  margin: 0;
  font-family: Georgia, "Noto Serif KR", serif;
  font-size: 17px;
}
.photo-date-head span {
  font-size: 9px;
  color: #87928c;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.photo-card {
  padding: 0;
  overflow: hidden;
}
.photo-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e8ede6;
}
.photo-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px;
}
.photo-card-body strong,
.photo-card-body small {
  display: block;
}
.photo-card-body strong {
  font-size: 11px;
}
.photo-card-body small {
  max-width: 210px;
  margin-top: 4px;
  color: #7e8983;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.photo-card-body button {
  border: 0;
  background: #fff1eb;
  color: #a9563e;
  border-radius: 7px;
  padding: 6px 8px;
  font-size: 8px;
  font-weight: 800;
}
.photo-empty {
  display: grid;
  place-items: center;
  padding: 55px;
  text-align: center;
  color: #849089;
}
.photo-empty span {
  font-size: 30px;
  color: #789878;
}
.photo-empty strong {
  margin: 12px 0 0;
  color: #425149;
}
.photo-empty p {
  font-size: 10px;
}
@media (max-width: 900px) {
  .photo-form {
    grid-template-columns: 1fr 1fr;
  }
  .photo-file-field {
    grid-column: 1/-1;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .photo-form,
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .photo-file-field {
    grid-column: auto;
  }
  .photo-toolbar {
    align-items: center;
  }
}
.hero-art,
.sun,
.leaf,
.lizard {
  pointer-events: none;
}
.topbar,
.sidebar {
  z-index: 5;
}
.clickable-card,
.clickable-row {
  cursor: pointer;
}
.clickable-card {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.clickable-card:hover,
.clickable-card:focus-visible {
  transform: translateY(-2px);
  border-color: #9cb09a;
  box-shadow: 0 14px 38px rgba(29, 48, 40, 0.12);
  outline: none;
}
.timeline-row.clickable-row {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.timeline-row.clickable-row:hover,
.timeline-row.clickable-row:focus-visible {
  background: #f4f7f2;
  outline: none;
}
.calendar-panel,
.calendar-detail,
.panel {
  position: relative;
}
.day,
.record-edit-btn,
.notification-dialog button,
.notification-dialog input,
.notification-dialog select {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.reminder-item time em {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 6px;
  border-radius: 99px;
  background: #e8f1e6;
  color: #557451;
  font-style: normal;
  font-size: 8px;
}
.profile-dialog {
  width: min(560px, 94vw);
  max-height: 88vh;
}
.profile-dialog-shell {
  padding: 25px;
  max-height: 88vh;
  overflow-y: auto;
}
.profile-dialog-shell .dialog-head h2 {
  margin: 6px 0 0;
}
.profile-dialog-hero {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  padding: 20px;
  border-radius: 14px;
}
.profile-dialog-hero .pet-avatar {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.58);
}
.profile-dialog-hero h3 {
  margin: 0 0 4px;
  font-size: 20px;
}
.profile-dialog-hero p {
  margin: 0 0 9px;
  font-size: 10px;
  color: #68756f;
}
.profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
  border: 1px solid #e3e7e0;
  border-radius: 12px;
  overflow: hidden;
}
.profile-detail-grid > div {
  padding: 14px;
  border-bottom: 1px solid #e9ece7;
}
.profile-detail-grid > div:nth-child(odd) {
  border-right: 1px solid #e9ece7;
}
.profile-detail-grid dt {
  font-size: 9px;
  color: #86918b;
}
.profile-detail-grid dd {
  margin: 5px 0 0;
  font-size: 11px;
  font-weight: 800;
}
.profile-records h3 {
  font-size: 13px;
  margin: 22px 0 8px;
}
.profile-records > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 2px;
  border-top: 1px solid #edf0eb;
}
.profile-records p {
  margin: 0;
}
.profile-records strong,
.profile-records small {
  display: block;
}
.profile-records strong {
  font-size: 11px;
}
.profile-records small {
  font-size: 8px;
  color: #87918c;
  margin-top: 4px;
}
.profile-records-empty {
  padding: 24px;
  text-align: center;
  color: #8a958f;
  font-size: 10px;
  background: #f7f9f5;
  border-radius: 10px;
}
.sidebar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-card-head .spark {
  margin: 0;
}
.sidebar-card-head #toggleAiHelper {
  width: 25px;
  padding: 2px;
  background: transparent;
  color: #d4e5da;
  font-size: 15px;
}
.sidebar-card.collapsed {
  padding: 12px 16px;
}
.sidebar-card.collapsed .sidebar-card-content {
  display: none;
}
.user-area {
  position: relative;
}
.user-row #userMenuBtn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #25352f;
  border-radius: 7px;
  background: #fff;
  font-weight: 900;
}
.user-menu {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 68px;
  z-index: 20;
  padding: 6px;
  background: #fff;
  border: 1px solid #dde3dc;
  border-radius: 11px;
  box-shadow: 0 14px 35px rgba(25, 43, 36, 0.18);
}
.user-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #425149;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
}
.user-menu button:hover {
  background: #eff4ed;
}
.user-dialog {
  width: min(430px, 92vw);
}
.user-dialog-shell {
  padding: 25px;
}
.user-dialog-shell .dialog-head h2 {
  margin: 6px 0 0;
}
.user-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 16px;
  background: #f0f5ee;
  border-radius: 12px;
}
.user-summary .avatar {
  width: 48px;
  height: 48px;
}
.user-summary strong {
  font-size: 14px;
}
.user-summary p {
  margin: 4px 0 0;
  color: #7d8882;
  font-size: 9px;
}
.user-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 0;
  border: 1px solid #e2e6e0;
  border-radius: 11px;
}
.user-stats > div {
  padding: 13px;
  border-right: 1px solid #e8ebe6;
}
.user-stats > div:last-child {
  border: 0;
}
.user-stats dt {
  font-size: 8px;
  color: #87918c;
}
.user-stats dd {
  margin: 5px 0 0;
  font-size: 12px;
  font-weight: 800;
}
.storage-note {
  padding: 10px;
  border-radius: 8px;
  background: #fff7e9;
  color: #826843;
  text-align: center;
  font-size: 9px;
}
.sidebar nav {
  margin-bottom: auto;
}
.danger-menu-item {
  color: #ad4f3d !important;
  border-top: 1px solid #edf0eb !important;
}
.account-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin-top: 22px;
}
.account-form label {
  font-size: 11px;
  font-weight: 800;
}
.account-form input {
  height: 42px;
  margin-top: 7px;
  padding: 0 10px;
}
.account-form .primary {
  height: 42px;
}
.account-help {
  color: #7d8882;
  font-size: 9px;
}
.account-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.account-item {
  display: flex;
  align-items: center;
  border: 1px solid #e1e6df;
  border-radius: 12px;
  padding: 7px;
}
.account-item.active {
  border-color: #78967b;
  background: #f2f7f0;
}
.account-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  border: 0;
  background: transparent;
  text-align: left;
}
.account-switch span:nth-child(2) {
  display: grid;
  gap: 3px;
}
.account-switch small {
  color: #849089;
  font-size: 9px;
}
.account-delete {
  border: 0;
  background: transparent;
  color: #b05c4b;
  font-size: 9px;
  font-weight: 800;
}
.login-dialog {
  width: min(920px, 94vw);
  max-width: none;
  border-radius: 24px;
}
.login-dialog::backdrop {
  background: #eef3ec;
}
.login-screen {
  min-height: 560px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: linear-gradient(145deg, #173f35, #285c4d);
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}
.login-brand .brand-mark {
  background: #fff;
  color: var(--green);
}
.login-brand strong {
  display: block;
  font-size: 22px;
}
.login-brand small {
  display: block;
  margin-top: 3px;
  color: #bad0c7;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth-card {
  margin: 28px;
  padding: 46px 55px;
  background: #fff;
  border-radius: 20px;
}
.auth-card h2 {
  font-family: Georgia, "Noto Serif KR", serif;
  margin: 10px 0;
  font-size: 28px;
}
.auth-card > p {
  color: #7e8983;
  font-size: 11px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 28px 0 22px;
  padding: 5px;
  background: #edf1eb;
  border-radius: 11px;
}
.auth-tabs button {
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #708078;
  font-weight: 800;
}
.auth-tabs button.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 3px 10px #d8ddd6;
}
.auth-form {
  display: grid;
  gap: 15px;
}
.auth-form label {
  font-size: 11px;
  font-weight: 800;
}
.auth-form input {
  height: 45px;
  margin-top: 7px;
  padding: 0 12px;
}
.demo-account {
  margin: 0 !important;
  padding: 10px;
  border-radius: 8px;
  background: #f2f6ef;
  color: #607269 !important;
  text-align: center !important;
}
.auth-form .large {
  margin-top: 3px;
}
@media (max-width: 700px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 28px;
  }
  .auth-card {
    margin: 0 12px 12px;
    padding: 30px 22px;
  }
  .account-form {
    grid-template-columns: 1fr;
  }
}
.pet-avatar {
  overflow: hidden;
}
.pet-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.pet-photo-field {
  padding: 13px;
  border: 1px dashed #aebcae;
  border-radius: 10px;
  background: #f5f8f3;
  cursor: pointer;
}
.pet-photo-field input {
  min-height: auto;
  margin: 7px 0 4px;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 10px;
}
.pet-photo-field span {
  color: #839087;
  font-size: 9px;
}
.profile-dialog-name {
  flex: 1;
}
.profile-photo-actions {
  display: grid;
  gap: 6px;
  margin-left: auto;
}
.profile-photo-actions label,
.profile-photo-actions button {
  border: 1px solid rgba(52, 75, 60, 0.2);
  border-radius: 7px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.65);
  color: #42564a;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}
.profile-photo-actions input {
  display: none;
}
.profile-photo-actions button {
  width: 100%;
}
@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 210px 1fr;
  }
  main {
    padding: 0 24px 50px;
  }
  .pet-grid,
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pet-card:nth-child(3) {
    display: none;
  }
  .dashboard-grid,
  .record-layout,
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    opacity: 0.65;
  }
  .calendar-filters {
    display: none;
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    z-index: 30;
    transform: translateX(-105%);
    transition: 0.25s;
    width: 250px;
    box-shadow: 15px 0 50px #152b2344;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  main {
    padding: 0 15px 40px;
  }
  .topbar {
    height: 78px;
  }
  .mobile-menu {
    display: block;
    border: 0;
    background: none;
    font-size: 20px;
  }
  .topbar > div:first-of-type {
    flex: 1;
  }
  .topbar p {
    display: none;
  }
  .topbar h1 {
    font-size: 16px;
  }
  .icon-btn {
    display: none;
  }
  .hero {
    padding: 28px 24px;
    min-height: 230px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .hero-art {
    right: -20%;
    opacity: 0.45;
  }
  .pet-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .pet-card:nth-child(3) {
    display: block;
  }
  .pet-selector {
    grid-template-columns: 1fr;
  }
  .calendar-stats {
    grid-template-columns: 1fr 1fr;
  }
  .calendar-panel {
    padding: 10px;
  }
  .day {
    min-height: 70px;
    padding: 4px;
  }
  .event {
    font-size: 0;
  }
  .event:first-letter {
    font-size: 10px;
  }
  .page-intro.row {
    align-items: flex-end;
  }
  .top-actions .primary {
    font-size: 0;
    padding: 10px;
  }
  .top-actions .primary:first-letter {
    font-size: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .mini-stats {
    grid-template-columns: 1fr;
  }
  .timeline-row {
    grid-template-columns: 35px 1fr auto;
  }
  .timeline-row time {
    display: none;
  }
}
main {
  padding-top: 12px;
}
.topbar {
  height: 0;
  overflow: visible;
}
@media (max-width: 720px) {
  main {
    padding-top: 0;
  }
  .topbar {
    height: 54px;
    display: flex;
    align-items: center;
  }
  .mobile-menu {
    position: relative;
    z-index: 6;
  }
}
.ai-connection {
  padding: 5px 8px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 900;
}
.ai-connection.checking {
  background: #eef1ed;
  color: #748078;
}
.ai-connection.connected {
  background: #e4f2df;
  color: #477546;
}
.ai-connection.disconnected {
  background: #fff0e8;
  color: #a75939;
}
.ask-answer {
  margin-top: 14px;
  text-align: left;
  line-height: 1.6;
}
.ask-answer.loading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ask-answer.error {
  background: #fff0ea;
  color: #944c36;
}
.ai-answer-head {
  display: grid !important;
  gap: 3px !important;
}
.ai-answer-head > span {
  color: #648066;
  font-size: 8px;
  font-weight: 900;
}
.ai-answer-head > strong {
  font-size: 12px;
}
.ask-answer > p {
  font-size: 10px;
}
.ask-answer ul {
  margin: 8px 0;
  padding-left: 18px;
}
.ask-answer li {
  margin: 5px 0;
  font-size: 9px;
}
.personalized-note {
  display: block !important;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}
.personalized-note strong {
  font-size: 9px;
}
.personalized-note p {
  margin: 4px 0 0;
  font-size: 9px;
}
.ai-followup {
  width: 100% !important;
  height: auto !important;
  margin: 7px 0;
  padding: 8px !important;
  background: #dfeadb !important;
  color: #355640 !important;
  font-size: 8px !important;
}
.ai-safety-note {
  display: block;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #d9e4d7;
  color: #748078;
  font-size: 8px;
}
.ai-spinner {
  display: inline-block;
  animation: aiPulse 1s ease-in-out infinite;
}
@keyframes aiPulse {
  50% {
    opacity: 0.35;
    transform: scale(0.86);
  }
}
#analyzeBtn:disabled,
#askBtn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.ai-clarification {
  padding: 9px;
  border-radius: 8px;
  background: #fff6e7;
  color: #805e34;
  font-size: 9px;
}

:root {
  --green: #123d35;
  --ink: #102923;
  --mint: #d9f4e8;
  --lime: #c9f27d;
  --coral: #ff8d6b;
  --canvas: #f3f4ee;
  --line: #dce3db;
  --muted: #697871;
  --shadow: 0 18px 55px rgba(16, 41, 35, 0.08);
  font-family: Inter, "SF Pro Display", "Segoe UI", sans-serif;
}
body {
  background: radial-gradient(circle at 75% 0, #e3f2e9 0, transparent 28%), var(--canvas);
  color: var(--ink);
}
.app-shell {
  grid-template-columns: 264px 1fr;
}
.sidebar {
  padding: 28px 20px 22px;
  background: rgba(250, 251, 247, 0.88);
  backdrop-filter: blur(18px);
  border-color: rgba(18, 61, 53, 0.09);
}
.brand {
  padding: 0 8px 34px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #174c41, #0b2f29);
  box-shadow: 0 9px 22px rgba(18, 61, 53, 0.22);
  font-family: Georgia;
  font-style: italic;
}
.brand strong {
  font-size: 19px;
  letter-spacing: -0.04em;
}
.brand small {
  color: #769087;
  letter-spacing: 0.13em;
}
.nav-item {
  padding: 13px 14px;
  border-radius: 13px;
  font-size: 13px;
  transition: 0.2s;
}
.nav-item:hover {
  transform: translateX(3px);
}
.nav-item.active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(18, 61, 53, 0.18);
}
.user-area {
  margin-top: auto;
}
.user-row {
  padding: 12px;
  border: 1px solid rgba(18, 61, 53, 0.09);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 9px 25px rgba(18, 61, 53, 0.06);
}
main {
  padding: 0 54px 72px;
}
.view {
  max-width: 1320px;
}
.hero {
  min-height: 330px;
  padding: 50px 54px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 25%, rgba(201, 242, 125, 0.3), transparent 25%),
    linear-gradient(125deg, #0c3029 0%, #174c41 65%, #226457 100%);
  box-shadow: 0 26px 70px rgba(18, 61, 53, 0.22);
}
.hero:before {
  content: "POWERED BY GPT‑5.6";
  position: absolute;
  top: 28px;
  right: 32px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #dff6ed;
}
.hero .eyebrow {
  color: var(--lime);
}
.hero h2 {
  font-family: Georgia, serif;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 15px 0 18px;
  max-width: 590px;
}
.hero p {
  font-size: 14px;
  color: #cfe2db;
  max-width: 520px;
}
.hero .progress {
  height: 7px;
  background: rgba(255, 255, 255, 0.14);
}
.hero .progress span {
  background: var(--lime);
  box-shadow: 0 0 16px rgba(201, 242, 125, 0.5);
}
.hero-art {
  right: 1%;
  width: 38%;
}
.sun {
  background: var(--lime);
  opacity: 0.88;
  box-shadow: 0 0 80px rgba(201, 242, 125, 0.25);
}
.lizard {
  font-size: 138px;
  filter: grayscale(0.2) saturate(0.8) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.22));
}
.leaf {
  background: #8ac59c;
}
.section-head {
  margin: 42px 0 18px;
}
.section-head h2,
.page-intro h2 {
  font-family: Georgia, serif;
  letter-spacing: -0.025em;
}
.section-head h2 {
  font-size: 27px;
}
.section-head p,
.page-intro p {
  font-size: 13px;
  line-height: 1.55;
}
.panel,
.pet-card {
  border: 1px solid rgba(18, 61, 53, 0.09);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.pet-card {
  padding: 23px;
  transition: 0.22s;
}
.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(16, 41, 35, 0.13);
}
.pet-avatar {
  border-radius: 16px;
}
.status,
.count-pill,
.ai-badge {
  font-size: 10px;
  letter-spacing: 0.02em;
}
.dashboard-grid {
  gap: 22px;
  margin-top: 24px;
}
.panel {
  padding: 26px;
}
.ai-panel {
  background: linear-gradient(145deg, #fff 0, #f6fbf6 100%);
}
.insight-highlight {
  background: #fff0e9;
  border: 1px solid #ffd8cb;
}
.dark-btn,
.primary {
  background: linear-gradient(135deg, #164b40, #0f332c);
  box-shadow: 0 8px 18px rgba(18, 61, 53, 0.16);
  transition: 0.18s;
}
.dark-btn:hover,
.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(18, 61, 53, 0.24);
}
.page-intro {
  padding: 32px 0 28px;
}
.page-intro h2 {
  font-size: 38px;
}
.page-intro .eyebrow,
.eyebrow {
  color: #53806f;
}
.mode-tabs {
  background: #e5ebe4;
  padding: 6px;
  border-radius: 14px;
}
.record-form {
  padding: 32px;
}
.preview-panel {
  background: linear-gradient(155deg, #123d35, #1d594b);
  color: #fff;
}
.preview-panel .eyebrow {
  color: var(--lime);
}
.preview-panel .empty-preview {
  color: #c8dbd4;
}
.preview-panel .empty-preview > span {
  color: var(--lime);
}
textarea,
input,
select {
  border-radius: 12px;
  border-color: #d5ded6;
  background: #fff;
}
.field textarea {
  min-height: 190px;
}
.calendar-stats > div {
  border-radius: 17px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(16, 41, 35, 0.05);
}
.calendar-stats strong {
  font-size: 19px;
}
.calendar-panel {
  padding: 28px;
}
.day {
  min-height: 112px;
}
.day.today > span {
  background: var(--coral);
}
.day.selected {
  background: #eef9f2;
  box-shadow: inset 0 0 0 2px #2f725f;
}
.insight-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: 22px;
}
.report-main {
  padding: 34px;
}
.risk-banner {
  background: #fff3ed;
  border-left-color: var(--coral);
}
.ask-answer {
  background: #edf7ef;
  color: #294f3a !important;
}
.safety-card {
  border-color: #f0dfbd;
  background: #fffaf0;
}
.profile-cover {
  height: 145px;
}
.photo-upload-panel,
.notification-compose {
  background: linear-gradient(145deg, #fff, #f6faf6);
}
dialog {
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(6, 28, 23, 0.35);
}
dialog::backdrop {
  background: rgba(8, 31, 26, 0.72);
  backdrop-filter: blur(8px);
}
.login-dialog {
  width: min(960px, 94vw);
}
.login-screen {
  min-height: 620px;
}
.login-brand {
  background:
    radial-gradient(circle at 25% 20%, rgba(201, 242, 125, 0.24), transparent 30%),
    linear-gradient(145deg, #0c3029, #1e594c);
}
.login-brand:after {
  content: "AI-powered care intelligence for every reptile.";
  max-width: 330px;
  margin-top: 28px;
  color: #d6e9e2;
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.15;
}
.auth-card {
  padding: 50px;
}
.auth-card h2 {
  font-size: 36px;
  letter-spacing: -0.04em;
}
.demo-account {
  border: 1px dashed #b9cbb9;
}
.toast {
  background: #0f332c;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 45px rgba(8, 31, 26, 0.3);
  font-size: 12px;
}
.ai-connection.connected {
  background: var(--lime);
  color: #183e33;
}
.ai-connection.disconnected {
  background: #ffe6dc;
  color: #9a482e;
}
@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 220px 1fr;
  }
  main {
    padding: 0 28px 60px;
  }
  .hero h2 {
    font-size: 40px;
  }
}
@media (max-width: 720px) {
  main {
    padding: 0 16px 44px;
  }
  .hero {
    min-height: 290px;
    padding: 38px 26px;
  }
  .hero:before {
    top: 18px;
    right: 18px;
  }
  .hero h2 {
    font-size: 34px;
    margin-top: 34px;
  }
  .page-intro h2 {
    font-size: 31px;
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .login-brand:after {
    font-size: 24px;
  }
  .auth-card {
    padding: 34px 24px;
  }
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.nav-group {
  display: grid;
  gap: 5px;
}
.nav-label {
  padding: 0 13px 7px;
  color: #9aa7a1;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.nav-item {
  position: relative;
  min-height: 53px;
  width: 100%;
  gap: 12px;
  padding: 9px 12px;
}
.nav-item .nav-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 27px;
  border-radius: 9px;
  background: #eef2ed;
  color: #527066;
  font-size: 15px;
  transition: 0.2s;
}
.nav-copy {
  min-width: 0;
  display: block;
  flex: 1;
  font-size: 12px;
  line-height: 1.1;
}
.nav-copy small {
  display: block;
  margin-top: 5px;
  color: #9aa49f;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-item:hover .nav-icon {
  background: #dfe9df;
}
.nav-item.active {
  background: #e6f0e7;
  color: var(--green);
  box-shadow: none;
}
.nav-item.active .nav-icon {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(18, 61, 53, 0.2);
}
.nav-item.active .nav-copy small {
  color: #6e847a;
}
.nav-item.nav-primary:not(.active) {
  background: #f2f6ef;
  border: 1px solid #e1e9df;
}
.nav-item.nav-primary .nav-icon {
  background: #dcecd9;
  color: #315f4c;
}
.nav-item.nav-ai {
  border: 1px solid rgba(18, 61, 53, 0.11);
}
.nav-item.nav-ai .nav-icon {
  background: #173f35;
  color: var(--lime);
}
.nav-item.nav-ai.active {
  background: linear-gradient(135deg, #123d35, #1b5749);
  color: #fff;
  box-shadow: 0 12px 28px rgba(18, 61, 53, 0.2);
}
.nav-item.nav-ai.active .nav-copy small {
  color: #c4d9d1;
}
.nav-new {
  margin-left: auto;
  padding: 4px 6px;
  border-radius: 6px;
  background: #dff3b5;
  color: #365842;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.nav-item.nav-ai.active .nav-new {
  background: var(--lime);
  color: #173f35;
}
.user-area {
  padding-top: 20px;
  border-top: 1px solid rgba(18, 61, 53, 0.08);
}
@media (max-width: 1000px) and (min-width: 721px) {
  .nav-copy small,
  .nav-new {
    display: none;
  }
  .nav-item {
    min-height: 46px;
  }
  .sidebar nav {
    gap: 19px;
  }
}

.login-brand {
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 64px;
  gap: 0;
  overflow: hidden;
}
.login-brand > span:nth-child(2) {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-brand .brand-mark {
  position: static;
  flex: 0 0 auto;
  margin-bottom: 18px;
}
.login-brand strong {
  font-size: 26px;
  letter-spacing: -0.04em;
}
.login-brand small {
  font-size: 9px;
}
.login-brand:after {
  display: block;
  margin: 38px 0 0 !important;
  max-width: 360px !important;
}
.login-brand:before {
  content: "OPENAI BUILD WEEK";
  position: absolute;
  left: 64px;
  top: 58px;
  color: var(--lime);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}
.login-dialog .auth-card {
  align-self: center;
}
@media (max-width: 700px) {
  .login-brand {
    padding: 68px 30px 34px;
  }
  .login-brand:before {
    left: 30px;
    top: 28px;
  }
  .login-brand:after {
    margin-top: 22px !important;
  }
}

:root {
  font-family: Inter, "Segoe UI Variable", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
body,
button,
input,
select,
textarea {
  font-family: inherit;
}
.hero h2,
.section-head h2,
.page-intro h2,
.auth-card h2,
.login-brand:after {
  font-family: inherit;
  font-weight: 750;
  letter-spacing: -0.045em;
}
.brand-mark {
  font-family: inherit;
  font-style: normal;
  font-weight: 800;
}
.hero {
  min-height: 320px;
  padding: 54px 52px;
  align-items: center;
}
.hero > div:first-child {
  position: relative;
  z-index: 2;
  width: 62%;
  max-width: 660px;
}
.hero h2 {
  max-width: 620px;
  margin: 14px 0 20px;
  font-size: 43px;
  line-height: 1.08;
}
.hero p {
  font-size: 14px;
  line-height: 1.55;
}
.hero-art {
  right: 0;
  width: 34%;
  z-index: 1;
}
.hero .lizard {
  right: 20%;
  bottom: 5%;
  font-size: 112px;
}
.hero .sun {
  right: 17%;
  top: 17%;
  width: 112px;
  height: 112px;
}
.section-head h2 {
  font-size: 25px;
}
.page-intro h2 {
  font-size: 34px;
}
.login-brand:after {
  font-size: 28px;
  line-height: 1.18;
}
.auth-card h2 {
  font-size: 33px;
  line-height: 1.12;
}
.panel-head h3,
.report-title h3,
.profile-body h3 {
  letter-spacing: -0.02em;
}
.eyebrow,
.nav-label {
  font-family: inherit;
  letter-spacing: 0.15em;
}
.hero:before {
  font-family: inherit;
}
.brand strong {
  letter-spacing: -0.025em;
}
@media (max-width: 1100px) {
  .hero > div:first-child {
    width: 68%;
  }
  .hero h2 {
    font-size: 38px;
  }
  .hero-art {
    width: 31%;
    opacity: 0.82;
  }
  .hero .lizard {
    right: 10%;
    font-size: 98px;
  }
}
@media (max-width: 720px) {
  .hero {
    padding: 52px 25px 32px;
    min-height: 300px;
    align-items: flex-start;
  }
  .hero > div:first-child {
    width: 100%;
  }
  .hero h2 {
    font-size: 33px;
    line-height: 1.08;
    max-width: 95%;
  }
  .hero p {
    max-width: 78%;
    font-size: 12px;
  }
  .hero-art {
    width: 44%;
    right: -8%;
    opacity: 0.35;
  }
  .hero .lizard {
    font-size: 82px;
    right: 4%;
  }
  .page-intro h2 {
    font-size: 29px;
  }
  .login-brand:after {
    font-size: 24px;
  }
  .auth-card h2 {
    font-size: 29px;
  }
}

.login-lizard {
  position: absolute;
  right: 26px;
  top: 118px;
  width: 190px;
  height: 190px;
  pointer-events: none;
  opacity: 0.92;
}
.login-lizard-sun {
  position: absolute;
  right: 5px;
  top: 0;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 55px rgba(201, 242, 125, 0.22);
}
.login-lizard-emoji {
  position: absolute;
  right: 25px;
  bottom: 3px;
  font-size: 104px;
  line-height: 1;
  filter: saturate(0.72) drop-shadow(0 16px 22px rgba(0, 0, 0, 0.2));
  transform: rotate(-8deg);
}
.login-brand .brand-mark,
.login-brand > span:nth-of-type(2),
.login-brand:after {
  position: relative;
  z-index: 2;
}
.auth-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.auth-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  min-width: 0;
  padding: 0 12px;
  box-sizing: border-box;
  line-height: 1;
  white-space: nowrap;
}
.auth-tabs button.active {
  height: 48px;
}
@media (max-width: 900px) {
  .login-lizard {
    right: -5px;
    top: 130px;
    opacity: 0.55;
    transform: scale(0.82);
  }
}
@media (max-width: 700px) {
  .login-lizard {
    right: 8px;
    top: 50px;
    width: 130px;
    height: 130px;
    opacity: 0.4;
  }
  .login-lizard-sun {
    width: 75px;
    height: 75px;
  }
  .login-lizard-emoji {
    font-size: 72px;
  }
  .auth-tabs button {
    height: 46px;
  }
  .auth-tabs button.active {
    height: 46px;
  }
}

.auth-card .auth-headline {
  display: grid;
  gap: 2px;
  max-width: none;
  margin: 12px 0 13px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}
.auth-headline span {
  display: block;
  white-space: nowrap;
}
.auth-card .auth-headline + p {
  margin-top: 0;
  line-height: 1.55;
}
@media (max-width: 700px) {
  .auth-card .auth-headline {
    font-size: 29px;
    line-height: 1.08;
  }
  .auth-headline span {
    white-space: normal;
  }
}

.login-dialog {
  height: min(740px, calc(100vh - 32px));
  max-height: 740px;
}
.login-screen {
  height: 100%;
  min-height: 0;
}
.login-dialog .auth-card {
  height: calc(100% - 56px);
  min-height: 0;
  overflow-y: auto;
}
.auth-tabs button {
  outline: 0;
  border: 1px solid transparent;
}
.auth-tabs button.active {
  border-color: transparent;
}
.auth-tabs button:focus {
  outline: 0;
}
.auth-tabs button:focus-visible {
  outline: 0;
  border-color: #8eaa9e;
  box-shadow: 0 0 0 3px rgba(83, 128, 111, 0.14);
}
@media (max-width: 700px) {
  .login-dialog {
    height: min(760px, calc(100vh - 18px));
    max-height: none;
  }
  .login-dialog .auth-card {
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 185px);
    overflow-y: auto;
  }
}

.login-dialog .auth-card {
  padding: 36px 50px;
  overflow-y: hidden;
}
.login-dialog .auth-tabs {
  margin: 20px 0 17px;
}
.login-dialog .auth-form {
  gap: 10px;
}
.login-dialog .auth-form input {
  height: 41px;
  margin-top: 5px;
}
.login-dialog .auth-form .primary.large {
  height: 50px;
  padding: 0 16px;
}
.login-dialog .auth-card .auth-headline {
  margin: 9px 0 9px;
}
.login-dialog .auth-card > p {
  margin-bottom: 0;
}
.login-dialog .demo-account {
  padding: 9px;
}
.login-dialog .auth-card {
  scrollbar-width: thin;
  scrollbar-color: #bdc9c2 transparent;
}
@media (max-width: 700px) {
  .login-dialog .auth-card {
    padding: 30px 24px;
    overflow-y: auto;
  }
  .login-dialog .auth-tabs {
    margin: 18px 0 15px;
  }
}

.pet-card .status,
.profile-cover > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 130px;
  padding: 6px 11px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}
.nav-item.nav-ai {
  padding-right: 42px;
}
.nav-item.nav-ai .nav-new {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 25px;
  margin: 0;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 7px;
  letter-spacing: 0.06em;
}
.profile-body dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.profile-body dl > div {
  min-width: 0;
}
.profile-body dt {
  white-space: nowrap;
}
.profile-body dd {
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}
.empty-preview p,
.calendar-detail-empty p {
  max-width: 360px;
  margin-inline: auto;
  line-height: 1.65;
}
@media (max-width: 1100px) {
  .profile-body dl {
    grid-template-columns: 1fr 1fr;
    row-gap: 14px;
  }
  .profile-body dl > div:last-child {
    grid-column: 1/-1;
  }
  .nav-item.nav-ai {
    padding-right: 38px;
  }
}

.login-brand > span:nth-child(2) {
  display: grid !important;
  place-items: center !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
}
.login-brand > span:nth-child(3) {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar .brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 61, 53, 0.08);
  background: linear-gradient(145deg, #d9f78e, #b8e66c);
  color: #123d35;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  box-shadow:
    0 9px 22px rgba(18, 61, 53, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.sidebar .brand-mark:after {
  content: "";
  position: absolute;
  right: 7px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}
.type-Feeding {
  background: #fff4df;
  color: #9a671f;
}
.type-Water {
  background: #e9f5f7;
  color: #477985;
}
.type-Weight {
  background: #edf3eb;
  color: #54704f;
}
.type-Shedding {
  background: #f0eff8;
  color: #646b91;
}
.type-Health {
  background: #fff0e9;
  color: #b55837;
}
.type-Environment {
  background: #edf4e8;
  color: #55734f;
}
.type-Cleaning {
  background: #f1f2ef;
  color: #647069;
}
.type-Supplement {
  background: #f5effa;
  color: #72598b;
}

button {
  user-select: none;
}
.view.active {
  animation: viewIn 0.22s ease-out;
}
.primary:disabled,
.dark-btn:disabled,
.full-btn:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(95, 145, 124, 0.28);
  outline-offset: 2px;
}
.nav-item:focus-visible {
  outline-color: rgba(201, 242, 125, 0.55);
}
.task:focus-within {
  background: #f7faf6;
  border-radius: 10px;
}
.record-edit-btn:hover,
.calendar-edit-actions button:hover {
  border-color: #93a99c;
  background: #f4f8f4;
}
.calendar-toolbar {
  flex-wrap: wrap;
  gap: 14px;
}
.calendar-filters {
  flex-wrap: wrap;
}
.photo-card img {
  background: #edf1ec;
}
.toast {
  max-width: min(520px, calc(100vw - 32px));
  text-align: center;
  line-height: 1.45;
}
.empty-preview,
.calendar-detail-empty,
.reminder-empty,
.photo-empty {
  border-radius: 14px;
}
.ai-answer-head strong {
  line-height: 1.35;
}
.ask-answer {
  overflow-wrap: anywhere;
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 720px) {
  .calendar-toolbar {
    align-items: flex-start;
  }
  .month-nav {
    width: 100%;
    justify-content: space-between;
  }
  .month-nav h3 {
    flex: 1;
  }
  .calendar-filters {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    padding-bottom: 4px;
  }
  .calendar-filters button {
    flex: 0 0 auto;
  }
  .toast {
    bottom: 18px;
  }
}
.login-brand .brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 15px;
  background: linear-gradient(145deg, #d9f78e, #b8e66c);
  color: #123d35;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
  text-indent: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow:
    0 12px 28px rgba(4, 28, 23, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.login-brand .brand-mark:after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}
.sidebar .brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, #174d41, #0c3029);
  color: #d9f78e;
  box-shadow: 0 10px 24px rgba(18, 61, 53, 0.22);
}

.login-brand-lockup {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-brand-lockup .brand-mark {
  flex: 0 0 auto;
  margin: 0;
}
.login-brand-lockup strong,
.login-brand-lockup small {
  display: block;
}
.login-brand-lockup small {
  max-width: 190px;
  margin-top: 4px;
  line-height: 1.4;
}

#profilesView .page-intro {
  padding-bottom: 30px;
}
#profilesView .page-intro p {
  max-width: 620px;
}
.profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.profile-card {
  position: relative;
  min-width: 0;
  border-color: rgba(18, 61, 53, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(16, 41, 35, 0.08);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.profile-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 61, 53, 0.18);
  box-shadow: 0 26px 65px rgba(16, 41, 35, 0.14);
}
.profile-cover {
  height: 174px;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 24px;
  overflow: hidden;
}
.profile-cover.gold {
  background: linear-gradient(145deg, #f4e6c4, #dfc78e);
}
.profile-cover.moss {
  background: linear-gradient(145deg, #e8f1df, #bfd5b2);
}
.profile-cover.sand {
  background: linear-gradient(145deg, #f4e3d5, #dfbfa5);
}
.profile-cover-glow {
  position: absolute !important;
  right: -35px !important;
  bottom: -62px !important;
  top: auto !important;
  width: 170px !important;
  height: 170px !important;
  min-height: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.38) !important;
  box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.11) !important;
}
.profile-cover:after {
  content: "";
  position: absolute;
  left: -18px;
  top: -28px;
  width: 115px;
  height: 115px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}
.profile-cover .pet-avatar {
  position: relative;
  z-index: 2;
  width: 82px;
  height: 82px;
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 28px rgba(47, 70, 53, 0.16);
  font-size: 25px;
}
.profile-cover > .status {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 18px;
  min-height: 30px;
  max-width: 150px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 20px rgba(59, 70, 55, 0.09);
  backdrop-filter: blur(8px);
}
.profile-cover > .status.good {
  color: #3c7044;
}
.profile-cover > .status.warn {
  color: #a8562c;
}
.profile-cover > .status.shed {
  color: #5b668f;
}
.profile-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.profile-identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.profile-kicker {
  display: block;
  color: #5b806f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.profile-identity h3 {
  margin: 5px 0 5px;
  font-size: 24px;
  line-height: 1.1;
}
.profile-identity p {
  max-width: 200px;
  margin: 0;
  color: #77857e;
  font-size: 10px;
  line-height: 1.45;
}
.profile-entry-count {
  flex: 0 0 auto;
  min-width: 54px;
  padding: 9px 10px;
  border-radius: 14px;
  background: #eef5ec;
  color: #244c3e;
  text-align: center;
  font-size: 17px;
  font-weight: 850;
}
.profile-entry-count small {
  display: block;
  margin-top: 1px;
  color: #779087;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.profile-body dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0 14px;
  padding: 0;
  border: 0;
}
.profile-body dl > div {
  min-height: 66px;
  padding: 12px 10px;
  border: 1px solid #e8ede7;
  border-radius: 13px;
  background: #fafbf8;
}
.profile-body dt {
  color: #849089;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-body dd {
  margin-top: 7px;
  color: #1d342c;
  font-size: 10px;
  line-height: 1.35;
}
.profile-latest {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 11px 12px;
  border-radius: 15px;
  background: #f5f8f3;
}
.profile-latest .timeline-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}
.profile-latest div {
  min-width: 0;
}
.profile-latest small,
.profile-latest strong {
  display: block;
}
.profile-latest small {
  margin-bottom: 4px;
  color: #829087;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.profile-latest strong {
  overflow: hidden;
  color: #41534b;
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-view-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 13px 15px;
  border: 0;
  border-radius: 14px;
  background: #123d35;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  box-shadow: 0 9px 20px rgba(18, 61, 53, 0.16);
  transition: 0.18s;
}
.profile-view-btn span:last-child {
  font-size: 15px;
  transition: transform 0.18s;
}
.profile-view-btn:hover {
  background: #0c3029;
  transform: translateY(-1px);
}
.profile-view-btn:hover span:last-child {
  transform: translate(2px, -2px);
}
.profile-dialog {
  width: min(760px, 94vw);
  max-height: 92vh;
}
.profile-dialog-shell {
  max-height: 92vh;
  padding: 28px 30px 32px;
}
.profile-dialog-shell .dialog-head {
  padding-bottom: 17px;
  border-bottom: 1px solid #e8ece7;
}
.profile-dialog-shell .dialog-head .eyebrow {
  font-size: 8px;
}
.profile-dialog-shell .dialog-head h2 {
  font-size: 21px;
}
.profile-dialog-shell .dialog-head button {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1f4ef;
  color: #496057;
  line-height: 1;
}
.profile-dialog-hero {
  position: relative;
  min-height: 184px;
  margin-top: 22px;
  padding: 28px;
  overflow: hidden;
  border-radius: 22px;
}
.profile-dialog-hero.gold {
  background: linear-gradient(135deg, #f2e1ba, #dcc084);
}
.profile-dialog-hero.moss {
  background: linear-gradient(135deg, #e1edd8, #b7d1a9);
}
.profile-dialog-hero.sand {
  background: linear-gradient(135deg, #f1dfd0, #dcb99e);
}
.profile-hero-orb {
  position: absolute;
  right: -30px;
  bottom: -76px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.1);
}
.profile-dialog-hero .pet-avatar {
  position: relative;
  z-index: 2;
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  border: 5px solid rgba(255, 255, 255, 0.74);
  border-radius: 31px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 38px rgba(44, 66, 49, 0.17);
  font-size: 31px;
}
.profile-dialog-name {
  position: relative;
  z-index: 2;
}
.profile-dialog-name h3 {
  margin: 7px 0 5px;
  font-size: 29px;
  letter-spacing: -0.04em;
}
.profile-dialog-name p {
  margin-bottom: 12px;
  font-size: 10px;
}
.profile-dialog-name .status {
  display: inline-flex;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}
.profile-photo-actions {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  min-width: 94px;
}
.profile-photo-actions label,
.profile-photo-actions button {
  padding: 9px 11px;
  border-color: rgba(31, 67, 54, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 8px;
  backdrop-filter: blur(8px);
}
.profile-photo-actions label:hover,
.profile-photo-actions button:hover {
  background: #fff;
}
.profile-dialog-stats {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.8fr 1.25fr;
  gap: 9px;
  margin: 15px 0;
}
.profile-dialog-stats > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e7ece6;
  border-radius: 15px;
  background: #fff;
}
.profile-dialog-stats span,
.profile-health-note span {
  display: block;
  color: #819087;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.11em;
}
.profile-dialog-stats strong {
  display: block;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: #21382f;
  font-size: 11px;
  line-height: 1.35;
}
.profile-health-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 17px 19px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f8f2, #edf4ea);
}
.profile-health-note h3 {
  margin: 6px 0 0;
  color: #385146;
  font-size: 12px;
  line-height: 1.45;
}
.profile-note-dot {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(116, 148, 111, 0.12);
}
.profile-note-dot.good {
  background: #70a06c;
}
.profile-note-dot.warn {
  background: #e28a55;
  box-shadow: 0 0 0 6px rgba(226, 138, 85, 0.12);
}
.profile-note-dot.shed {
  background: #7b84ad;
}
.profile-records {
  margin-top: 25px;
}
.profile-records-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}
.profile-records-head h3 {
  margin: 5px 0 0;
  font-size: 16px;
}
.profile-log-care {
  padding: 9px 12px;
  border: 1px solid #dce5dc;
  border-radius: 11px;
  background: #f5f8f3;
  color: #244b3e;
  font-size: 9px;
  font-weight: 850;
}
.profile-log-care:hover {
  border-color: #aac1b0;
  background: #edf5ec;
}
.profile-record-list {
  overflow: hidden;
  border: 1px solid #e6ebe5;
  border-radius: 17px;
}
.profile-record-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #edf0ec;
  background: #fff;
  color: #25382f;
  text-align: left;
}
.profile-record-row:last-child {
  border-bottom: 0;
}
.profile-record-row:hover {
  background: #f7faf6;
}
.profile-record-row > span:nth-child(2) {
  min-width: 0;
}
.profile-record-row strong,
.profile-record-row small {
  display: block;
}
.profile-record-row strong {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-record-row small {
  margin-top: 4px;
  color: #85918b;
  font-size: 8px;
}
.profile-record-row > span:last-child {
  color: #9aa69f;
  font-size: 17px;
}
.profile-records-empty {
  margin: 0;
  padding: 30px;
  border: 1px dashed #d6e0d6;
  border-radius: 16px;
  background: #f8faf6;
  line-height: 1.6;
}
@media (max-width: 1300px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-dialog-stats {
    grid-template-columns: 1fr 1fr;
  }
  .profile-dialog-hero {
    align-items: flex-end;
  }
  .profile-photo-actions {
    position: absolute;
    right: 20px;
    top: 20px;
  }
}
@media (max-width: 620px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-cover {
    height: 160px;
  }
  .profile-dialog-shell {
    padding: 20px;
  }
  .profile-dialog-hero {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 0;
    padding: 22px;
  }
  .profile-dialog-hero .pet-avatar {
    width: 80px;
    height: 80px;
    flex-basis: 80px;
    border-radius: 24px;
  }
  .profile-dialog-name h3 {
    font-size: 23px;
  }
  .profile-photo-actions {
    position: static;
    grid-column: 1/-1;
    display: flex;
    margin: 10px 0 0;
  }
  .profile-photo-actions label,
  .profile-photo-actions button {
    flex: 1;
  }
  .profile-dialog-stats {
    grid-template-columns: 1fr 1fr;
  }
  .profile-dialog-stats > div {
    padding: 12px;
  }
  .profile-record-row {
    grid-template-columns: 36px minmax(0, 1fr) 12px;
    padding: 11px;
  }
  .profile-records-head {
    align-items: center;
  }
  .profile-log-care {
    white-space: nowrap;
  }
}
.profile-records > .profile-record-list {
  display: block;
  align-items: initial;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e6ebe5;
  border-radius: 17px;
}
