:root {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: #362e27;
  background: #fcf7f0;
  font-size: 16px;
  line-height: 1.5;
  --ink: #362e27;
  --muted: #756c60;
  --mint: #d9f0df;
  --mint-deep: #418569;
  --peach: #fff0e0;
  --edge: #e3d6c8;
  --shadow: 0 4px 0 #e8d8c660, 0 8px 20px #9d785416;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 30% 0, #fffdf7, transparent 65%), #fcf7f0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 48px;
  min-height: 48px;
  padding: 10px 18px;
  background: linear-gradient(#fffefa, #fcf5ed);
  border: 1px solid #e3d6c8;
  border-radius: 18px;
  font-weight: 750;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 #fff,
    0 3px 4px #c4a58820;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover:not(:disabled) {
  border-color: #78b99a;
  background: #e6f4e7;
}
button:active:not(:disabled) {
  background: #d1e9d9;
}
button:disabled {
  cursor: not-allowed;
  background: #eeeae1;
  color: #857c70;
  box-shadow: none;
}
button.primary {
  background: linear-gradient(#91d4b1, #58b68c);
  border: 2px solid #fff;
  color: #143b2b;
  box-shadow:
    0 0 0 1px #9bc9ae,
    0 4px 6px #65876a22;
}
button.primary:hover:not(:disabled) {
  background: #78c49c;
}
button.danger {
  background: #fff0e5;
  color: #873d2b;
  border-color: #e8b39b;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #2b7097;
  outline-offset: 4px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbbfb1;
  border-radius: 13px;
  background: #fffefa;
  padding: 10px 12px;
  margin-top: 5px;
  box-shadow: inset 0 2px 3px #87765c06;
}
textarea {
  min-height: 96px;
  resize: vertical;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 10px 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
small {
  display: block;
  font-size: 0.75rem;
}
.ui-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  vertical-align: middle;
}
.ui-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.muted,
.local-note {
  font-size: 0.8rem;
  color: var(--muted);
}
.eyebrow {
  display: block;
  color: #7a8470;
  font-weight: 650;
  font-size: 0.75rem;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 20;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
/* Classroom header: date, time and teacher-entered weather stay visible. */
.top {
  max-width: 1740px;
  padding: 18px 26px 16px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.brand-paw {
  width: 47px;
  height: 47px;
}
.class-summary {
  padding-left: 22px;
  border-left: 1px solid #d5c8b9;
  min-width: 120px;
}
.class-summary h1 {
  font-size: 1rem;
  margin: 0 0 2px;
  font-weight: 800;
  white-space: nowrap;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.class-summary span {
  display: block;
  color: #7c7163;
  font-size: 0.75rem;
  white-space: nowrap;
}
.datetime {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  white-space: nowrap;
}
.datetime #date-label {
  font-size: 0.9rem;
  font-weight: 650;
}
.datetime strong {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}
.weather {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 20px;
  border-left: 1px solid #d5c8b9;
  white-space: nowrap;
}
.weather > span {
  font-size: 2.4rem;
  line-height: 1;
}
.weather small {
  font-size: 0.65rem;
  color: #7a7368;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.round-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 12px;
  background: linear-gradient(#e5f2e8, #cbe3d7);
  border-color: #d9e6d9;
}
.tools {
  display: flex;
  gap: 8px;
}
.tools .ui-icon {
  width: 30px;
  height: 30px;
}
/* One persistent classroom, with care props layered over the same scene. */
.home-main {
  max-width: 1740px;
  margin: auto;
  padding: 4px 22px 0;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 2.9fr) minmax(295px, 1fr);
  gap: 16px;
  height: clamp(490px, calc(100svh - 224px), 790px);
}
.room-card {
  position: relative;
  border: 6px solid #fffdf8;
  border-radius: 30px;
  background: #fff9f0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.room {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 220px;
  background: #efddc9 url("../assets/classroom.svg") center center/cover
    no-repeat;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
}
.room-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 60% 30%, #fffae319, transparent 65%);
}
.room-meta {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  pointer-events: none;
}
.mode-banner {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  max-width: 100%;
  padding: 10px 20px 10px 13px;
  background: linear-gradient(115deg, #dbf3df, #a8d9bd);
  border: 3px solid #fffcf2;
  border-radius: 38px;
  box-shadow: 0 4px 8px #aa927e25;
}
.mode-banner > .ui-icon {
  width: 39px;
  height: 39px;
}
.mode {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.mode-banner #mode-detail {
  border-left: 1px solid #85b99d;
  padding-left: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.class-mode {
  background: linear-gradient(#eff2e4, #d2e5cc);
}
.pet-wrap {
  position: absolute;
  inset: 17% 14% 0 21%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition:
    left 0.15s,
    width 0.15s;
}
.pet {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 5px 4px #8f6c4320);
}
.pet-name {
  display: block;
  position: absolute;
  bottom: 6px;
  background: #fffcf1d9;
  border: 1px solid #e9ddca;
  font-size: 0.8rem;
  border-radius: 14px;
  padding: 2px 18px;
  font-weight: 700;
}
.speech-bubble {
  position: absolute;
  right: 5%;
  top: 24%;
  z-index: 1;
  max-width: 220px;
  padding: 18px 22px;
  background: #fffdf5ef;
  border: 3px solid #fff;
  border-radius: 45% 45% 45% 12%;
  font-weight: 850;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  transform: rotate(2deg);
  box-shadow: 0 5px 6px #8f705b17;
}
.activity-prop {
  position: absolute;
  left: 62%;
  bottom: 10%;
  font-size: 3.1rem;
  filter: drop-shadow(0 4px 2px #96765022);
}
.pet-caption {
  min-height: 29px;
  text-align: center;
  color: #74634f;
  font-size: 0.78rem;
  padding: 4px 8px;
  background: #fff8ed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pet-caption button {
  padding: 3px 12px;
  font-size: 0.75rem;
  min-height: 32px;
}
.decoration {
  position: absolute;
  bottom: 13%;
  font-size: 2.4rem;
}
.decoration.expression {
  left: 69%;
  top: 37%;
  font-size: 1.4rem;
}
.decoration.cushion {
  left: 12%;
}
.decoration.toy {
  right: 20%;
}
#care-panel {
  padding: 4px 3px 5px;
  z-index: 3;
}
.care-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 8px 6px;
  font-size: 0.8rem;
}
.care-heading small {
  color: #7d7568;
  font-size: 0.7rem;
}
.care-buttons {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.care-buttons button {
  flex-direction: column;
  gap: 0;
  min-height: 103px;
  padding: 9px 2px 6px;
  background: linear-gradient(#fffcf6, #fff2e5);
  border: 2px solid #fff;
  border-radius: 24px;
  box-shadow:
    0 3px 0 #e2c3a63d,
    0 3px 6px #8e6a4315;
}
.care-buttons button:hover:not(:disabled) {
  border-color: #77bd97;
  background: linear-gradient(#eff9eb, #cfead5);
}
.care-buttons .ui-icon {
  width: 47px;
  height: 47px;
  margin-bottom: 3px;
}
.care-buttons button > span:not(.ui-icon) {
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: -0.06em;
}
.care-buttons button small {
  font-size: 0.61rem;
  color: #796a57;
  margin-top: 1px;
  font-weight: 500;
}
.care-buttons button:disabled {
  background: #efebe3;
  border-color: #f7f4eb;
  color: #81776c;
}
.care-buttons button:disabled .ui-icon {
  opacity: 0.48;
  filter: grayscale(0.55);
}
.care-buttons button:last-child {
  background: linear-gradient(#f6fbef, #edf3de);
}
.room-card.caring .pet-wrap {
  left: 1%;
  right: 47%;
  top: 21%;
  bottom: 4%;
}
.room-card.caring .speech-bubble {
  display: none;
}
.room-card.caring #care-panel {
  position: absolute;
  top: 96px;
  right: 20px;
  width: 45%;
  bottom: 43px;
  border: 3px solid #fffaf0;
  border-radius: 24px;
  padding: 16px 14px;
  background: #fffaf1ed;
  box-shadow: 0 5px 15px #936e4d1a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  overflow: auto;
}
.caring .care-heading {
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1rem;
  margin: 0;
}
.caring .care-heading strong {
  display: flex;
  align-items: center;
  gap: 8px;
}
.care-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fffdf5;
  border-radius: 20px;
  padding: 4px 12px;
  border: 1px solid #e4d9ca;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.care-timer .ui-icon {
  width: 25px;
  height: 25px;
}
.care-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}
.care-choices button {
  min-height: 65px;
  flex: 1 1 100px;
  background: #fffdf8;
  border: 2px solid #ece0d1;
  border-radius: 18px;
  min-width: 80px;
  font-size: 1rem;
}
.care-choices button:hover {
  border-color: #6abd93;
  background: #eaf8e8;
}
.care-exit {
  align-self: center;
  color: #91532f;
  background: #fff0de;
  border-color: #e7c5a3;
}
.working {
  padding: 20px;
  background: #e9f3df;
  border-radius: 20px;
  color: #396846;
}
#care-status {
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
  line-height: 1.7;
}
.gift {
  position: absolute;
  z-index: 4;
  inset: 14% 17% 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  background: #fff9eaf5;
  border: 3px solid #fffef7;
  border-radius: 32px;
  box-shadow:
    0 0 0 2px #dfc18d,
    0 8px 35px #a97c3926;
}
.gift[hidden] {
  display: none;
}
.gift > span {
  font-size: 2.8rem;
  animation: gift-in 0.5s ease;
}
#reward-asset {
  width: 100px;
  height: 90px;
}
#reward-asset .pet {
  height: 100%;
}
.gift strong {
  font-size: 1.1rem;
}
/* The timetable remains data-driven and scrolls inside its card. */
.schedule-card {
  background: #fffcf7;
  border: 5px solid #fffdf8;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 5px 10px 13px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: linear-gradient(120deg, #e0f3df, #c7e9d7);
  border-radius: 20px;
  padding: 13px 12px;
}
.section-heading h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 1.45rem;
  font-weight: 900;
  white-space: nowrap;
}
.section-heading .ui-icon {
  width: 34px;
  height: 34px;
}
.schedule-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.schedule-body > .muted {
  margin: 9px 8px 6px;
}
.schedule-list {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d5c7b3 transparent;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 2px;
}
.schedule-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border: 1px solid #e5dbcf;
  border-radius: 15px;
  background: linear-gradient(#fffdfa, #f8f2eb);
  min-height: 67px;
  padding: 8px 10px;
}
.schedule-row .subject-icon {
  width: 31px;
  height: 31px;
}
.schedule-row .time {
  color: #857561;
  font-variant-numeric: tabular-nums;
  font-size: 0.69rem;
  flex-shrink: 0;
  line-height: 1.6;
}
.time small {
  font-size: 0.65rem;
}
.schedule-subject {
  min-width: 0;
}
.schedule-subject strong {
  font-size: 1rem;
  font-weight: 850;
  display: block;
}
.schedule-subject small {
  font-size: 0.67rem;
  color: #7b7060;
}
.schedule-row.current {
  border: 2px solid #7abc94;
  background: linear-gradient(110deg, #e7f6e7, #c9e9d5);
  padding: 7px 9px;
}
.now-dot {
  margin-left: auto;
  color: #275b3f;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
}
.schedule-row.upcoming {
  border-color: #edc5a3;
  background: linear-gradient(100deg, #fff3e7, #fde7d7);
}
.next-arrow {
  margin-left: auto;
  color: #d7a05e;
  font-size: 1.5rem;
}
.next {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px dashed #d8cbb8;
  padding: 10px 5px 0;
  margin-top: 10px;
  font-size: 0.85rem;
}
.next small {
  color: #7a705e;
}
.tablet-toggle {
  display: none;
}
.empty {
  color: #827461;
  font-size: 0.9rem;
  text-align: center;
  line-height: 2;
  padding: 20px 6px;
}
.home-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}
.promise-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  border: 3px solid #bbd2ad;
  border-radius: 23px;
  background: linear-gradient(#fffdf6, #fcf8ee);
  padding: 10px 15px;
}
.promise-icon {
  width: 44px;
  height: 48px;
}
.promise-label {
  padding: 5px 13px;
  border-radius: 16px;
  background: #cce7d2;
  color: #305640;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 850;
}
.promise-card p {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.promise-card button {
  font-size: 0.75rem;
  padding: 8px 10px;
  white-space: nowrap;
  min-height: 44px;
  box-shadow: none;
  background: #f7fbef;
}
.bottom-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  max-width: 350px;
}
.bottom-nav button {
  padding: 8px 12px;
  min-height: 48px;
  font-size: 0.88rem;
  border: 2px solid #fffaf1;
  border-radius: 20px;
  background: linear-gradient(#eaf7e9, #d3eadd);
  box-shadow:
    0 0 0 1px #c7dfcc,
    0 3px 6px #97775015;
}
.bottom-nav button:nth-child(2) {
  background: linear-gradient(#fff5e6, #f7e1ca);
}
.bottom-nav button:last-child {
  grid-column: 1/-1;
  font-size: 0.72rem;
  min-height: 28px;
  padding: 2px 10px;
  background: transparent;
  border: none;
  box-shadow: none;
}
.bottom-nav .ui-icon {
  width: 25px;
  height: 25px;
}
.bottom-nav button:last-child .ui-icon {
  width: 18px;
  height: 18px;
}
.local-note {
  text-align: center;
  font-size: 0.66rem;
  margin: 9px 0 7px;
}
/* Adoption keeps all original privacy and PIN fields. */
.adoption-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1340px;
  margin: 20px auto 16px;
  padding: 0 20px;
}
.adoption-brand .ui-icon {
  width: 45px;
  height: 45px;
}
.adoption-brand strong {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.adoption-brand > span:last-child {
  color: #7f7668;
  font-size: 0.85rem;
  margin-left: 10px;
  border-left: 1px solid #d5cabb;
  padding-left: 20px;
}
.adoption {
  max-width: 1300px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  padding: 0 20px 28px;
  margin: auto;
}
.intro {
  position: relative;
  isolation: isolate;
  min-height: 580px;
  overflow: hidden;
  border-radius: 28px;
  border: 6px solid #fffcf4;
  background: #f1e0ce url("../assets/classroom.svg") center/cover;
  box-shadow: var(--shadow);
  padding: 24px;
}
.welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.7rem;
  font-weight: 900;
  background: linear-gradient(#e5f5dc, #b8dfc1);
  border: 3px solid #fffdf4;
  border-radius: 32px;
  padding: 12px 20px;
  box-shadow: 0 4px 10px #926c4c17;
  margin: 0;
}
.welcome-pill .ui-icon {
  width: 35px;
  height: 35px;
}
.intro > p {
  font-weight: 750;
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 300px;
  margin-top: 18px;
  padding: 8px 15px;
  background: #fffaf1d4;
  border-radius: 18px;
  display: inline-block;
}
.intro-pet {
  position: absolute;
  left: 2%;
  right: 0;
  bottom: 7%;
  height: 62%;
}
.intro .tag {
  position: absolute;
  bottom: 15px;
  left: 12px;
  right: 12px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #675e4e;
  background: #fffaf0cf;
  padding: 9px;
  border-radius: 18px;
}
.setup-card {
  border: 2px solid #fffef9;
  border-radius: 28px;
  padding: 25px 28px;
  background: #fffbf3;
  box-shadow:
    0 0 0 1px #e4d5c4,
    var(--shadow);
}
.setup-card h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.setup-card > .primary {
  width: 100%;
  margin-top: 10px;
  min-height: 56px;
  font-size: 1.1rem;
}
.form-row {
  display: flex;
  gap: 14px;
}
.form-row > * {
  flex: 1;
  min-width: 0;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 500;
}
.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--mint-deep);
}
fieldset {
  border: 1px solid #dfd2be;
  border-radius: 16px;
  padding: 8px 14px;
}
legend {
  font-size: 0.85rem;
  font-weight: 750;
}
.notice {
  font-size: 0.78rem;
  color: #776343;
  line-height: 1.8;
  border-radius: 14px;
  background: #f8f0dc;
  padding: 12px 14px;
}
.form-error {
  color: #943e30;
  font-size: 0.85rem;
  line-height: 1.8;
}
.form-error:empty {
  display: none;
}
hr {
  border: 0;
  border-top: 1px solid #e5d9ca;
  margin: 22px 0;
}
/* Dialogs use the same classroom and readable cream cards as the board. */
dialog {
  padding: 24px;
  width: calc(100% - 36px);
  max-width: 570px;
  max-height: 92svh;
  border: 2px solid #fffdf7;
  border-radius: 26px;
  color: var(--ink);
  background: #fffaf1;
  box-shadow:
    0 0 0 1px #cab9a5,
    0 20px 90px #4d372f36;
}
dialog::backdrop {
  background: #4b3b328a;
  backdrop-filter: blur(4px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e7d9c9;
  margin-bottom: 16px;
}
.dialog-top h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
}
.dialog-top h2 .ui-icon {
  width: 34px;
  height: 34px;
}
.dialog-top > button {
  white-space: nowrap;
  flex-shrink: 0;
}
.dialog-top .eyebrow {
  margin-left: 44px;
}
.dialog-top .eyebrow:empty {
  display: none;
}
dialog[data-view="settings"],
dialog[data-view="safety"],
dialog[data-view="memories"] {
  max-width: 1140px;
}
.teacher-layout {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  gap: 20px;
}
.teacher-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  border-right: 1px solid #e1d5c3;
  padding-right: 12px;
}
.tabs {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tabs button {
  justify-content: flex-start;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 10px 12px;
}
.tabs .ui-icon {
  width: 29px;
  height: 29px;
}
.tabs button[aria-pressed="true"] {
  background: linear-gradient(110deg, #a9dec1, #d7edcd);
  border: 2px solid #fffdf6;
  box-shadow: 0 0 0 1px #c0dfbc;
  border-radius: 25px;
}
.sidebar-pet {
  height: 150px;
  margin-top: auto;
  background: radial-gradient(ellipse at bottom, #e6ddc3, transparent 70%);
  padding-top: 14px;
}
.sidebar-pet .pet {
  height: 100%;
}
.settings-content {
  min-width: 0;
  max-height: 65svh;
  overflow: auto;
  padding: 0 10px 8px 0;
  scrollbar-width: thin;
}
.settings-content h3 {
  color: #3d664e;
  margin-top: 8px;
}
.settings-content .form-row {
  gap: 12px;
}
.settings-content > .notice:first-child {
  margin-top: 0;
}
#class-form > .primary {
  margin-top: 8px;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.table-scroll {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #e1d5c7;
  background: #fffefa;
  padding: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
th {
  font-size: 0.75rem;
  text-align: left;
  padding: 8px 5px;
  background: #edf5e8;
  color: #566b55;
}
td {
  padding: 7px 4px;
  vertical-align: top;
  border-bottom: 1px solid #ede5d9;
}
td input,
td select {
  font-size: 0.8rem;
  margin: 0 0 4px;
  min-width: 90px;
  padding: 7px;
  min-height: 48px;
}
td:nth-child(4) {
  width: 30%;
}
td button {
  font-size: 0.75rem;
  padding: 8px;
}
.safety-edit {
  display: grid;
  grid-template-columns: 64px 86px 1fr 48px 48px 58px;
  align-items: center;
  gap: 5px;
  padding: 7px 0;
  border-bottom: 1px solid #eadfce;
}
.safety-edit button {
  padding: 4px;
  font-size: 0.8rem;
}
.safety-edit input {
  font-size: 0.8rem;
}
.safety-edit .check {
  font-size: 0.8rem;
}
.safety-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 25px;
  background: linear-gradient(105deg, #d9efd7, #edf5e2);
  border: 2px solid #9bc99e;
  padding: 13px 20px;
  margin-bottom: 16px;
}
.safety-banner > span {
  font-weight: 850;
  white-space: nowrap;
  color: #376946;
}
.safety-banner strong {
  font-size: 1.2rem;
  font-weight: 850;
}
.safety-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 20px;
}
.visual-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 24px;
  background: #f2dfcd url("../assets/classroom.svg") center/cover no-repeat;
  min-height: 330px;
  border: 3px solid #fffaf0;
  box-shadow: var(--shadow);
}
.safety-hero > .pet {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 97%;
}
.scene-prop {
  position: absolute;
  width: 95px;
  height: 95px;
  bottom: 10%;
  right: 16%;
  filter: drop-shadow(0 4px 2px #86664e18);
}
.safety-content {
  padding: 5px 6px;
}
.safety-content > label {
  margin-top: 0;
}
.quiz {
  padding: 10px 0;
  text-align: center;
}
.quiz h3 {
  font-size: 1.35rem;
  margin: 16px 0 24px;
}
.scenario-tag {
  display: inline-block;
  background: #fff4e2;
  border-radius: 16px;
  padding: 5px 16px;
  font-size: 0.8rem;
  color: #856742;
}
.quiz-options {
  display: grid;
  gap: 12px;
}
.quiz-options button {
  min-height: 65px;
  font-size: 1.15rem;
  white-space: normal;
  background: linear-gradient(#eff9ec, #d3ebd4);
  border: 2px solid #95c6a3;
}
.quiz-options button:nth-child(2) {
  background: linear-gradient(#fff4ea, #f7e1d1);
  border-color: #e3bfa7;
}
#quiz-feedback {
  border-radius: 15px;
  padding: 12px;
  margin: 12px 0 0;
  color: #416444;
  background: #ecf4e6;
  font-size: 0.9rem;
  line-height: 1.8;
}
#quiz-feedback:empty {
  display: none;
}
.memory-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 20px;
}
.memory-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 410px;
  padding: 14px;
}
.memory-hero > .pet {
  height: 74%;
  position: absolute;
  bottom: 6%;
}
.memory-hero .welcome-pill {
  z-index: 1;
  align-self: flex-start;
  font-size: 0.9rem;
  padding: 7px 15px;
  margin-bottom: auto;
}
.memory-hero > p {
  z-index: 1;
  margin: 0;
  font-size: 0.85rem;
  background: #fff9eed9;
  border-radius: 15px;
  padding: 6px 14px;
}
.memory-hero .scene-prop {
  width: 80px;
  height: 80px;
  bottom: 12%;
  right: 15%;
}
.memory-content {
  min-width: 0;
}
.memory-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 50svh;
  overflow: auto;
  padding: 2px;
  scrollbar-width: thin;
}
.memory-row {
  border: 2px solid #fffdf5;
  border-radius: 20px;
  background: linear-gradient(#fffcf5, #f8e9d6);
  padding: 12px 9px;
  text-align: center;
  box-shadow:
    0 0 0 1px #e1cdb5,
    var(--shadow);
}
.memory-row > b {
  font-size: 0.85rem;
  white-space: nowrap;
}
.memory-thumbnail {
  height: 120px;
  background: #f7e9d9 url("../assets/classroom.svg") center/cover;
  border-radius: 12px;
  margin: 9px 0;
}
.memory-activities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}
.memory-activities > span {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.memory-activities .ui-icon {
  width: 22px;
  height: 22px;
}
.memory-row p {
  font-size: 0.75rem;
  margin: 9px 0 0;
}
.empty-memory {
  grid-column: 1/-1;
  padding: 25px 15px;
  text-align: center;
  color: #7d6d55;
}
.empty-memory > .ui-icon {
  width: 60px;
  height: 60px;
}
.empty-memory h3 {
  margin-top: 15px;
}
.empty-memory p {
  font-size: 0.9rem;
  line-height: 1.9;
}
.keepsakes {
  margin-top: 20px;
  border: 2px solid #fffdf7;
  border-radius: 24px;
  background: #f7f1e5;
  padding: 14px;
  box-shadow: 0 0 0 1px #e6d7c2;
}
.keepsakes h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.item-list {
  display: flex;
  gap: 8px;
}
.item-list > div {
  flex: 1;
  text-align: center;
  font-size: 1.6rem;
  padding: 10px 5px;
  background: #fffaf0;
  border-radius: 14px;
}
.item-list strong {
  display: block;
  font-size: 0.75rem;
}
.phrase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.reply {
  background: linear-gradient(#e5f3df, #d6e9d2);
  border: 2px solid #fffaf2;
  padding: 20px;
  border-radius: 22px;
  margin: 18px 0 0;
  text-align: center;
  font-size: 1rem;
}
.focus-screen {
  position: relative;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  background: #edddca url("../assets/classroom.svg") center/cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.focus-screen:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#fffaf0a8, transparent 50%);
  pointer-events: none;
}
.focus-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 28px;
  background: #fffbf0d9;
  border-bottom: 1px solid #dfcdb8;
}
.focus-top .brand {
  font-size: 1.35rem;
}
.focus-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100svh - 82px);
  padding: 24px 16px 18px;
}
.focus-content .eyebrow {
  margin: 0;
}
.focus-screen h1 {
  font-size: clamp(5rem, 11vw, 9.5rem);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin: 0;
  color: #493625;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 0 #fffaf5a1;
}
.subject-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(#fff1d9, #fbdab3);
  padding: 7px 28px;
  border: 2px solid #fffaf0;
  border-radius: 28px;
  font-size: 1.5rem;
  margin: 10px 0;
  box-shadow: 0 0 0 1px #e6bd8e;
}
.focus-status {
  font-size: 0.8rem;
  color: #7b6650;
}
.focus-scene {
  height: clamp(220px, 42svh, 460px);
  width: min(620px, 70vw);
  margin-top: auto;
}
.fullscreen-button {
  margin-top: 10px;
  border: 2px solid #fff9ef;
  background: #fffcf2de;
}
.fatal {
  padding: 80px 24px;
  max-width: 700px;
  margin: auto;
}
#toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: min(90vw, 650px);
  border: 2px solid #fffdf0;
  border-radius: 18px;
  padding: 12px 22px;
  background: #3b6651;
  color: #fffdf1;
  font-size: 0.88rem;
  box-shadow: 0 6px 16px #44392322;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
@keyframes gift-in {
  from {
    transform: scale(0.6) rotate(-12deg);
  }
  to {
    transform: scale(1);
  }
}
html[data-text="large"] {
  font-size: 19px;
}
@media (min-width: 1600px) {
  .top {
    padding: 22px 30px;
  }
  .brand {
    font-size: 2rem;
  }
  .class-summary h1 {
    font-size: 1.15rem;
  }
  .datetime #date-label {
    font-size: 1rem;
  }
  .datetime strong {
    font-size: 3.1rem;
  }
  .dashboard {
    grid-template-columns: minmax(0, 2.95fr) minmax(330px, 1fr);
  }
  .care-buttons button {
    min-height: 122px;
  }
  .care-buttons .ui-icon {
    width: 59px;
    height: 59px;
  }
  .care-buttons button > span:not(.ui-icon) {
    font-size: 1.2rem;
  }
  .mode {
    font-size: 1.9rem;
  }
  .mode-banner {
    padding: 12px 24px 12px 16px;
  }
  .mode-banner > .ui-icon {
    width: 47px;
    height: 47px;
  }
  .speech-bubble {
    font-size: 1.45rem;
    padding: 24px;
    top: 27%;
  }
  .schedule-row {
    min-height: 83px;
  }
  .schedule-row .subject-icon {
    width: 40px;
    height: 40px;
  }
  .schedule-subject strong {
    font-size: 1.2rem;
  }
  .promise-card p {
    font-size: 1.2rem;
  }
}
@media (max-width: 1200px) and (min-width: 1051px) {
  .top {
    gap: 15px;
    padding: 16px 22px;
  }
  .brand {
    font-size: 1.5rem;
  }
  .class-summary {
    padding-left: 14px;
    min-width: 110px;
  }
  .datetime {
    gap: 10px;
  }
  .datetime #date-label {
    font-size: 0.77rem;
  }
  .datetime strong {
    font-size: 2.25rem;
  }
  .weather {
    padding-left: 12px;
  }
  .weather small {
    max-width: 120px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 2.5fr) 285px;
  }
  .mode-banner {
    gap: 9px;
    padding: 9px 14px;
  }
  .mode {
    font-size: 1.35rem;
  }
  .mode-banner #mode-detail {
    font-size: 0.8rem;
    padding-left: 10px;
  }
  .care-buttons button > span:not(.ui-icon) {
    font-size: 0.86rem;
  }
  .care-buttons .ui-icon {
    width: 40px;
    height: 40px;
  }
  .promise-card {
    gap: 9px;
  }
  .promise-label {
    font-size: 0.85rem;
    padding: 5px 9px;
  }
  .promise-card p {
    font-size: 0.85rem;
  }
  .bottom-nav {
    max-width: 300px;
  }
  .bottom-nav button {
    font-size: 0.8rem;
  }
}
@media (max-width: 1050px) {
  .top {
    padding: 14px 20px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 1.6rem;
  }
  .brand-paw {
    width: 39px;
    height: 39px;
  }
  .class-summary {
    padding-left: 15px;
    margin-right: auto;
  }
  .datetime {
    margin-left: 0;
  }
  .datetime #date-label {
    font-size: 0.8rem;
  }
  .datetime strong {
    font-size: 2.25rem;
  }
  .weather {
    padding-left: 13px;
  }
  .round-button {
    width: 48px;
    height: 48px;
  }
  .home-main {
    padding: 0 16px;
  }
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: 12px;
  }
  .room-card {
    height: auto;
  }
  .room {
    flex: none;
    height: clamp(300px, 45svh, 440px);
  }
  .room-meta {
    top: 12px;
    left: 12px;
  }
  .care-buttons button {
    min-height: 100px;
  }
  .care-buttons .ui-icon {
    width: 50px;
    height: 50px;
  }
  .speech-bubble {
    top: 25%;
    right: 8%;
  }
  .schedule-card {
    padding: 5px 8px;
    border-width: 3px;
    border-radius: 22px;
  }
  .section-heading {
    padding: 8px 12px;
    border-radius: 17px;
  }
  .section-heading h3 {
    font-size: 1.1rem;
  }
  .tablet-toggle {
    display: inline-flex;
    min-height: 48px;
    font-size: 0.75rem;
    padding: 8px 14px;
    background: #fffdf3;
  }
  .schedule-card .schedule-body {
    display: none;
  }
  .schedule-card.expanded .schedule-body {
    display: flex;
  }
  .schedule-list {
    max-height: 210px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
  }
  .schedule-body > .muted {
    margin: 7px;
  }
  .schedule-card .next {
    padding: 8px 5px 5px;
    margin-top: 7px;
  }
  .schedule-row {
    min-height: 64px;
  }
  .home-bottom {
    grid-template-columns: 1fr;
    margin-top: 12px;
    gap: 10px;
  }
  .promise-card {
    min-height: 70px;
  }
  .bottom-nav {
    display: flex;
    max-width: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .bottom-nav button {
    min-height: 48px;
    padding: 8px 16px;
  }
  .bottom-nav button:last-child {
    min-height: 48px;
    font-size: 0.8rem;
  }
  .bottom-nav button:last-child .ui-icon {
    width: 25px;
    height: 25px;
  }
  .room-card.caring #care-panel {
    top: 92px;
    bottom: 42px;
    width: 45%;
  }
  .adoption {
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    padding: 0 16px 24px;
  }
  .adoption .intro {
    padding: 18px;
  }
  .welcome-pill {
    font-size: 1.25rem;
    padding: 10px 14px;
  }
  .setup-card {
    padding: 22px;
  }
  .intro-pet {
    height: 58%;
  }
  .teacher-layout {
    grid-template-columns: 145px 1fr;
    gap: 16px;
  }
  .tabs button {
    font-size: 0.85rem;
    padding: 10px;
  }
  .safety-edit {
    grid-template-columns: 60px 75px 1fr 48px 48px 52px;
  }
  .memory-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .memory-layout {
    grid-template-columns: 0.75fr 1.2fr;
    gap: 14px;
  }
}
@media (max-width: 780px) {
  .top {
    padding: 12px 16px;
    gap: 10px;
  }
  .brand {
    font-size: 1.4rem;
  }
  .brand-paw {
    width: 36px;
    height: 36px;
  }
  .class-summary {
    padding-left: 12px;
    min-width: 100px;
  }
  .class-summary h1 {
    max-width: 180px;
    font-size: 0.85rem;
  }
  .class-summary span {
    font-size: 0.65rem;
  }
  .datetime {
    order: 3;
    flex: 1;
    gap: 12px;
  }
  .datetime #date-label {
    font-size: 0.78rem;
  }
  .datetime strong {
    font-size: 2rem;
  }
  .weather {
    order: 4;
    border: 0;
    padding: 0;
    margin-left: auto;
  }
  .weather > span {
    font-size: 1.7rem;
  }
  .weather b {
    font-size: 0.85rem;
  }
  .weather small {
    max-width: 170px;
    font-size: 0.63rem;
  }
  .tools {
    order: 2;
  }
  .top > .class-summary {
    flex: 1;
  }
  .home-main {
    padding: 0 12px;
  }
  .room {
    height: 340px;
  }
  .mode {
    font-size: 1.4rem;
  }
  .mode-banner {
    gap: 9px;
    padding: 7px 14px 7px 9px;
    border-width: 2px;
  }
  .mode-banner > .ui-icon {
    width: 33px;
    height: 33px;
  }
  .mode-banner #mode-detail {
    font-size: 0.75rem;
    padding-left: 9px;
  }
  .speech-bubble {
    font-size: 0.95rem;
    right: 4%;
    max-width: 165px;
    padding: 14px 17px;
  }
  .pet-wrap {
    left: 13%;
    right: 13%;
    top: 18%;
  }
  .care-buttons button {
    min-height: 88px;
    border-radius: 20px;
  }
  .care-buttons .ui-icon {
    width: 40px;
    height: 40px;
  }
  .care-buttons button > span:not(.ui-icon) {
    font-size: 0.85rem;
  }
  .care-buttons button small {
    font-size: 0.56rem;
  }
  .promise-card {
    padding: 10px;
    gap: 9px;
    flex-wrap: wrap;
  }
  .promise-card .promise-label {
    font-size: 0.85rem;
    padding: 4px 10px;
  }
  .promise-card .promise-icon {
    width: 32px;
    height: 36px;
  }
  .promise-card p {
    font-size: 0.9rem;
    flex-basis: 55%;
  }
  .promise-card button {
    margin-left: auto;
  }
  .adoption-brand {
    margin: 14px auto 12px;
    padding: 0 16px;
  }
  .adoption-brand strong {
    font-size: 1.5rem;
  }
  .adoption-brand > span:last-child {
    display: none;
  }
  .adoption {
    grid-template-columns: 1fr;
  }
  .intro {
    min-height: 390px;
  }
  .intro-pet {
    height: 80%;
    left: 20%;
    right: 0;
    bottom: 5%;
  }
  .intro > p {
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
    max-width: 190px;
  }
  .intro .tag {
    font-size: 0.7rem;
  }
  .welcome-pill {
    font-size: 1.35rem;
  }
  .setup-card {
    padding: 22px 24px;
  }
  .teacher-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .teacher-sidebar {
    border: 0;
    padding: 0;
    min-height: 0;
  }
  .tabs {
    flex-direction: row;
    gap: 5px;
    flex-wrap: wrap;
  }
  .tabs button {
    min-height: 48px;
    padding: 8px 11px;
    gap: 5px;
  }
  .tabs .ui-icon {
    width: 24px;
    height: 24px;
  }
  .sidebar-pet {
    display: none;
  }
  .settings-content {
    max-height: 60svh;
    padding-right: 2px;
  }
  .safety-layout {
    grid-template-columns: 1fr 1.5fr;
    gap: 12px;
  }
  .visual-scene {
    min-height: 280px;
  }
  .scene-prop {
    width: 65px;
    height: 65px;
    bottom: 15%;
  }
  .safety-banner {
    padding: 10px 13px;
    gap: 12px;
  }
  .safety-banner strong {
    font-size: 1rem;
  }
  .safety-banner > span {
    font-size: 0.85rem;
  }
  .quiz h3 {
    font-size: 1.05rem;
    margin: 10px 0 15px;
  }
  .quiz-options button {
    font-size: 0.95rem;
    min-height: 55px;
  }
  .safety-content {
    padding: 0;
  }
  .dialog-top h2 {
    font-size: 1.2rem;
  }
  .memory-layout {
    grid-template-columns: 1fr;
  }
  .memory-hero {
    min-height: 220px;
  }
  .memory-hero > .pet {
    height: 100%;
    left: 25%;
    width: 50%;
    bottom: 0;
  }
  .memory-hero .scene-prop {
    height: 55px;
    width: 55px;
    bottom: 10%;
    right: 33%;
  }
  .memory-hero > p {
    align-self: flex-start;
  }
  .memory-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 40svh;
  }
  .memory-thumbnail {
    height: 100px;
  }
  .memory-hero .welcome-pill {
    font-size: 0.8rem;
  }
  .room-card.caring #care-panel {
    right: 12px;
    top: 80px;
    bottom: 39px;
    padding: 12px;
    width: 47%;
    gap: 8px;
  }
  .room-card.caring .pet-wrap {
    left: -3%;
    right: 45%;
    top: 28%;
    bottom: 5%;
  }
  .caring .care-heading {
    font-size: 0.85rem;
  }
  .caring .care-heading strong .ui-icon {
    width: 26px;
    height: 26px;
  }
  .care-choices button {
    min-height: 56px;
    font-size: 0.85rem;
    flex-basis: 80px;
  }
  .care-timer {
    font-size: 0.78rem;
  }
  .care-exit {
    font-size: 0.8rem;
    min-height: 48px;
  }
  #care-status {
    font-size: 0.75rem;
  }
  .room-card.caring .activity-prop {
    left: 35%;
    bottom: 16%;
    font-size: 2.3rem;
  }
  .focus-content {
    padding-top: 25px;
  }
  .focus-screen h1 {
    font-size: 6rem;
  }
  .focus-top {
    padding: 12px 18px;
  }
  .focus-top .brand {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  :root {
    font-size: 15px;
  }
  .top {
    padding: 11px 12px;
  }
  .brand {
    font-size: 1.3rem;
  }
  .brand-paw {
    width: 31px;
    height: 31px;
  }
  .class-summary {
    border: 0;
    padding: 0;
    min-width: 80px;
  }
  .class-summary h1 {
    max-width: 100px;
    font-size: 0.75rem;
  }
  .class-summary span {
    font-size: 0.6rem;
  }
  .round-button {
    width: 48px;
    height: 48px;
    padding: 12px;
  }
  .datetime strong {
    font-size: 1.85rem;
  }
  .weather small {
    max-width: 130px;
    font-size: 0.58rem;
  }
  .home-main {
    padding: 0 7px;
  }
  .room-card {
    border-width: 4px;
    border-radius: 24px;
  }
  .room {
    height: 300px;
    border-radius: 19px 19px 0 0;
  }
  .room-meta {
    top: 10px;
    left: 8px;
    right: 8px;
  }
  .mode-banner {
    padding: 7px 11px 7px 8px;
    gap: 7px;
    max-width: 100%;
  }
  .mode {
    font-size: 1.16rem;
  }
  .mode-banner > .ui-icon {
    width: 27px;
    height: 27px;
  }
  .mode-banner #mode-detail {
    font-size: 0.65rem;
    padding-left: 8px;
  }
  .speech-bubble {
    top: 26%;
    font-size: 0.85rem;
    padding: 12px;
    max-width: 140px;
    right: 3%;
  }
  .pet-wrap {
    inset: 21% 8% 0 6%;
  }
  .pet-name {
    font-size: 0.7rem;
    bottom: 4px;
  }
  .pet-caption {
    font-size: 0.67rem;
    padding: 5px 6px;
    min-height: 29px;
  }
  .care-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .care-buttons button {
    min-height: 83px;
  }
  .care-buttons .ui-icon {
    width: 40px;
    height: 40px;
  }
  .care-buttons button > span:not(.ui-icon) {
    font-size: 0.9rem;
  }
  .care-buttons button small {
    font-size: 0.6rem;
  }
  .care-heading {
    font-size: 0.73rem;
    margin: 0 4px 5px;
  }
  .care-heading small {
    font-size: 0.63rem;
  }
  .schedule-list {
    grid-template-columns: 1fr;
  }
  .schedule-row {
    min-height: 61px;
  }
  .schedule-card {
    border-radius: 21px;
  }
  .schedule-subject strong {
    font-size: 0.95rem;
  }
  .home-bottom {
    gap: 7px;
  }
  .promise-card {
    border-width: 2px;
    border-radius: 20px;
    gap: 7px;
    padding: 10px;
  }
  .promise-card p {
    flex-basis: 100%;
    order: 3;
    padding: 0 5px;
    font-size: 0.92rem;
  }
  .promise-card button {
    font-size: 0.7rem;
    min-height: 48px;
  }
  .bottom-nav {
    gap: 6px;
  }
  .bottom-nav button {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .bottom-nav button:last-child {
    width: 100%;
    min-height: 40px;
  }
  .bottom-nav .ui-icon {
    width: 22px;
    height: 22px;
  }
  .intro {
    min-height: 350px;
    padding: 14px !important;
  }
  .intro-pet {
    left: 11%;
    right: -4%;
    height: 77%;
  }
  .welcome-pill {
    font-size: 1.1rem;
    padding: 9px 12px;
  }
  .welcome-pill .ui-icon {
    width: 28px;
    height: 28px;
  }
  .intro > p {
    font-size: 0.75rem;
    padding: 5px 10px;
    line-height: 1.8;
    max-width: 150px;
  }
  .setup-card {
    padding: 20px;
  }
  .form-row {
    gap: 10px;
  }
  .setup-card fieldset {
    padding: 7px 10px;
  }
  dialog {
    width: calc(100% - 20px);
    padding: 15px;
    max-height: 94svh;
    border-radius: 23px;
  }
  .dialog-top {
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
  .dialog-top h2 {
    font-size: 1.05rem;
    gap: 7px;
  }
  .dialog-top h2 .ui-icon {
    width: 27px;
    height: 27px;
  }
  .dialog-top > button {
    font-size: 0.75rem;
    padding: 8px 11px;
  }
  .dialog-top .eyebrow {
    margin-left: 34px;
    font-size: 0.65rem;
  }
  .tabs {
    gap: 5px;
  }
  .tabs button {
    font-size: 0.8rem;
    padding: 7px 10px;
  }
  .tabs .ui-icon {
    width: 22px;
    height: 22px;
  }
  .settings-content {
    max-height: 62svh;
  }
  .settings-content .form-row {
    gap: 10px;
  }
  .safety-edit {
    grid-template-columns: 1fr 1fr 48px 48px 52px;
  }
  .safety-edit input[name="text"] {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .safety-edit input[name="category"] {
    grid-column: 2;
  }
  .safety-edit button {
    grid-row: 1;
  }
  .safety-banner {
    padding: 9px 10px;
    gap: 10px;
    border-radius: 18px;
  }
  .safety-banner strong {
    font-size: 0.9rem;
  }
  .safety-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .safety-hero {
    min-height: 175px;
    height: 175px;
  }
  .safety-hero > .pet {
    width: 60%;
    left: 18%;
    height: 108%;
  }
  .safety-hero .scene-prop {
    width: 60px;
    height: 60px;
    right: 30%;
    bottom: 8%;
  }
  .safety-content label {
    font-size: 0.75rem;
  }
  .quiz h3 {
    font-size: 1.15rem;
  }
  .quiz-options button {
    font-size: 1rem;
  }
  .memory-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .memory-row > b {
    font-size: 0.75rem;
  }
  .memory-thumbnail {
    height: 100px;
  }
  .memory-hero {
    min-height: 190px;
  }
  .memory-hero > .pet {
    left: 20%;
    width: 65%;
  }
  .memory-hero > p {
    font-size: 0.7rem;
  }
  .memory-activities > span {
    font-size: 0.66rem;
  }
  .memory-activities .ui-icon {
    width: 19px;
    height: 19px;
  }
  .phrase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .room-card.caring #care-panel {
    top: 70px;
    right: 8px;
    bottom: 34px;
    width: 49%;
    padding: 10px 8px;
    gap: 8px;
    border-width: 2px;
  }
  .caring .care-heading strong {
    font-size: 0.8rem;
    gap: 3px;
  }
  .caring .care-heading strong .ui-icon {
    width: 23px;
    height: 23px;
  }
  .care-choices {
    gap: 6px;
  }
  .care-choices button {
    min-height: 48px;
    flex-basis: 100%;
    padding: 8px;
  }
  .care-timer {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
  .care-timer .ui-icon {
    width: 20px;
    height: 20px;
  }
  .care-exit {
    font-size: 0.73rem;
    padding: 8px 10px;
  }
  .room-card.caring .room {
    height: 415px;
  }
  .room-card.caring .pet-wrap {
    top: 25%;
    right: 45%;
    bottom: 5%;
    left: -9%;
  }
  .gift {
    inset: 13% 7% 6%;
    padding: 15px;
  }
  .gift strong {
    font-size: 1rem;
  }
  .focus-screen h1 {
    font-size: 5.5rem;
  }
  .focus-top {
    padding: 10px 12px;
  }
  .focus-top .brand {
    font-size: 0.95rem;
  }
  .focus-top .ui-icon {
    width: 25px;
    height: 25px;
  }
  .focus-top button {
    font-size: 0.7rem;
    padding: 8px 12px;
  }
  .subject-pill {
    font-size: 1.25rem;
    padding: 7px 18px;
  }
  .focus-scene {
    width: 95vw;
  }
  .fullscreen-button {
    font-size: 0.85rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
html[data-motion="reduce"] *,
html[data-motion="reduce"] *:before,
html[data-motion="reduce"] *:after {
  animation: none !important;
  transition: none !important;
}
/* Keep the floor and rug visible in the wide classroom stage. */
.room {
  background-size: 100% 100%;
}
.focus-content {
  height: calc(100svh - 82px);
  min-height: 0;
}
.focus-scene {
  flex: 1;
  min-height: 140px;
  height: 0;
  max-height: 42svh;
}
#date-target {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
#date-target label {
  flex: 1;
  min-width: 0;
}
#date-target button {
  margin-bottom: 10px;
  white-space: nowrap;
}
#schedule-form td:nth-child(4) input {
  display: inline-block;
  width: calc(50% - 4px);
  min-width: 75px;
}
@media (max-width: 480px) {
  #date-target {
    display: block;
  }
  #date-target button {
    margin-bottom: 0;
  }
  .focus-scene {
    min-height: 120px;
  }
  .focus-content {
    padding-top: 18px;
  }
  .focus-screen h1 {
    font-size: 5rem;
  }
}

/* Align untouched transparent originals by their measured alpha baseline. */
.pet {
  object-position: center bottom;
  transform: translateY(var(--pet-ground-offset, 0px));
}
@media (max-width: 480px) {
  .room-card.caring .pet-wrap {
    left: 0;
    right: 50%;
  }
}
/* Explicit teacher review mode: preserve the real stage's display dimensions. */
.media-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 12px;
  padding: 12px 16px;
  border: 2px solid #a6cbb4;
  border-radius: 20px;
  background: #edf6e8;
}
.media-preview-bar strong {
  font-size: 1rem;
}
.media-preview-bar small {
  font-size: 0.75rem;
  color: #596c54;
  margin-top: 4px;
}
.preview-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.preview-actions button {
  font-size: 0.8rem;
  padding: 8px 14px;
}
.preview-actions [aria-pressed="true"] {
  background: #b9ddc4;
  border-color: #6aa77d;
}
.pet.pet-gif {
  width: auto;
  height: 100%;
  max-width: none;
  flex-shrink: 0;
}
@media (max-width: 780px) {
  .media-preview-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .preview-actions {
    width: 100%;
  }
  .preview-actions button {
    flex: 1;
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 8px 10px;
  }
}
/* A single classroom fills the entire board; controls float inside its border. */
.dashboard.room-stage {
  display: block;
  position: relative;
  --schedule-width: clamp(285px, 24vw, 365px);
  --dock-space: 150px;
}
.room-stage .room-card {
  width: 100%;
  height: 100%;
  display: block;
  background: #efe0cb;
}
.room-stage .room {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
  flex: none;
  border-radius: 22px;
  background-image: url("../assets/classroom-stage.svg");
  background-size: 100% 100%;
}
.room-stage .room-meta {
  right: calc(var(--schedule-width) + 42px);
  z-index: 4;
}
.room-stage .pet-wrap {
  left: 4%;
  right: calc(var(--schedule-width) + 42px);
  top: 90px;
  bottom: var(--dock-space);
}
.room-stage .speech-bubble {
  right: calc(var(--schedule-width) + 44px);
  top: 26%;
  max-width: 205px;
}
.room-stage .pet-caption {
  position: absolute;
  left: 20px;
  top: 91px;
  right: auto;
  bottom: auto;
  max-width: calc(100% - var(--schedule-width) - 70px);
  padding: 4px 12px;
  min-height: 0;
  border-radius: 14px;
  background: #fff9ebde;
  z-index: 3;
  font-size: 0.7rem;
}
.room-stage .schedule-card {
  position: absolute;
  right: 16px;
  top: 16px;
  bottom: var(--dock-space);
  width: var(--schedule-width);
  height: auto;
  z-index: 3;
  border-width: 3px;
  background: #fffcf4eb;
  backdrop-filter: blur(8px);
  padding: 6px 10px 10px;
  border-radius: 24px;
}
.room-stage .section-heading h3 {
  font-size: 1.25rem;
}
.room-stage .section-heading {
  padding: 10px;
}
.room-stage .schedule-row {
  min-height: 62px;
}
.room-stage .schedule-row .subject-icon {
  width: 28px;
  height: 28px;
}
.room-stage .schedule-subject strong {
  font-size: 0.95rem;
}
.room-stage .schedule-body > .muted {
  font-size: 0.72rem;
  margin: 7px 5px 5px;
}
.room-stage #care-panel {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 3;
  padding: 7px 8px 9px;
  border: 2px solid #fffdf7;
  border-radius: 24px;
  background: #fff9efdf;
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 12px #84643e12;
}
.room-stage .care-heading {
  margin: 0 6px 5px;
  font-size: 0.75rem;
}
.room-stage .care-heading small {
  font-size: 0.65rem;
}
.room-stage .care-buttons button {
  min-height: 88px;
  border-radius: 20px;
  padding: 5px 2px;
}
.room-stage .care-buttons .ui-icon {
  width: 39px;
  height: 39px;
}
.room-stage .care-buttons button > span:not(.ui-icon) {
  font-size: 0.95rem;
}
.room-stage .gift {
  inset: 18% calc(var(--schedule-width) + 55px) calc(var(--dock-space) + 10px)
    9%;
  z-index: 5;
}
.room-stage .activity-prop {
  left: 38%;
  bottom: 27%;
}
.room-stage .room-card.caring .pet-wrap {
  left: 0;
  right: 61%;
  top: 105px;
  bottom: 45px;
}
.room-stage .room-card.caring #care-panel {
  top: 116px;
  right: calc(var(--schedule-width) + 36px);
  bottom: 30px;
  left: auto;
  width: min(36%, 430px);
  padding: 16px;
  gap: 12px;
}
.room-stage .room-card.caring .schedule-card {
  bottom: 16px;
}
.room-stage .room-card.caring .activity-prop {
  left: 29%;
  bottom: 17%;
}
@media (min-width: 1600px) {
  .dashboard.room-stage {
    --dock-space: 168px;
  }
  .room-stage .pet-wrap {
    top: 105px;
  }
  .room-stage .pet-caption {
    top: 106px;
  }
  .room-stage .care-buttons button {
    min-height: 105px;
  }
  .room-stage .care-buttons .ui-icon {
    width: 51px;
    height: 51px;
  }
  .room-stage .care-buttons button > span:not(.ui-icon) {
    font-size: 1.1rem;
  }
  .room-stage .section-heading h3 {
    font-size: 1.5rem;
  }
  .room-stage .schedule-row {
    min-height: 76px;
  }
  .room-stage .schedule-subject strong {
    font-size: 1.1rem;
  }
  .room-stage .room-card.caring #care-panel {
    top: 150px;
    bottom: 65px;
  }
}
/* Tablet timetable is a drawer in the room, not a second block below it. */
@media (max-width: 1050px) {
  .dashboard.room-stage {
    height: clamp(530px, calc(100svh - 235px), 760px);
    --schedule-width: 280px;
    --dock-space: 145px;
  }
  .room-stage .room-card {
    height: 100%;
  }
  .room-stage .room-meta {
    right: 200px;
  }
  .room-stage .schedule-card {
    width: auto;
    min-width: 154px;
    right: 14px;
    top: 14px;
    bottom: auto;
    padding: 3px;
    border-radius: 20px;
  }
  .room-stage .section-heading {
    gap: 6px;
    padding: 4px 6px;
  }
  .room-stage .section-heading h3 {
    font-size: 0.9rem;
  }
  .room-stage .section-heading .ui-icon {
    width: 25px;
    height: 25px;
  }
  .room-stage .tablet-toggle {
    font-size: 0.7rem;
    padding: 7px 10px;
    min-height: 48px;
  }
  .room-stage .schedule-card:not(.expanded) .section-heading h3 {
    display: none;
  }
  .room-stage .schedule-card.expanded {
    width: 280px;
    bottom: var(--dock-space);
    padding: 5px 8px 10px;
  }
  .room-stage .schedule-card.expanded .section-heading {
    flex-wrap: wrap;
  }
  .room-stage .schedule-card.expanded .schedule-body {
    min-height: 0;
  }
  .room-stage .schedule-list {
    display: flex;
    max-height: none;
    overflow-y: auto;
  }
  .room-stage .schedule-row {
    min-height: 58px;
  }
  .room-stage .pet-wrap {
    left: 8%;
    right: 8%;
    top: 105px;
    bottom: var(--dock-space);
  }
  .room-stage:has(.schedule-card.expanded) .pet-wrap {
    left: 0;
    right: 310px;
  }
  .room-stage .speech-bubble {
    right: 6%;
    top: 28%;
    font-size: 1rem;
    max-width: 180px;
  }
  .room-stage:has(.schedule-card.expanded) .speech-bubble {
    display: none;
  }
  .room-stage .pet-caption {
    left: 15px;
    top: 88px;
    max-width: calc(100% - 30px);
    font-size: 0.7rem;
  }
  .room-stage .care-buttons button {
    min-height: 87px;
  }
  .room-stage .care-buttons .ui-icon {
    width: 38px;
    height: 38px;
  }
  .room-stage .room-card.caring .pet-wrap {
    left: 0;
    right: 49%;
    top: 110px;
    bottom: 30px;
  }
  .room-stage .room-card.caring #care-panel {
    left: auto;
    right: 16px;
    top: 125px;
    bottom: 24px;
    width: 48%;
    padding: 14px;
  }
  .room-stage .room-card.caring .schedule-card {
    bottom: auto;
  }
  .room-stage .room-card.caring .schedule-card.expanded {
    bottom: 18px;
    z-index: 6;
    background: #fffaf2fa;
    box-shadow: 0 8px 26px #745e4a2b;
  }
  .room-stage .room-card.caring .activity-prop {
    left: 30%;
    bottom: 17%;
  }
  .room-stage .gift {
    left: 10%;
    right: 10%;
    top: 22%;
    bottom: calc(var(--dock-space) + 10px);
  }
}
@media (max-width: 780px) {
  .dashboard.room-stage {
    height: clamp(560px, calc(100svh - 245px), 780px);
    --dock-space: 145px;
  }
  .room-stage .room-meta {
    top: 12px;
    left: 10px;
    right: 170px;
  }
  .room-stage .mode-banner {
    gap: 7px;
    padding: 7px 10px;
  }
  .room-stage .mode {
    font-size: 1.15rem;
  }
  .room-stage .mode-banner > .ui-icon {
    width: 27px;
    height: 27px;
  }
  .room-stage .mode-banner #mode-detail {
    font-size: 0.7rem;
  }
  .room-stage .pet-caption {
    top: 80px;
    font-size: 0.67rem;
  }
  .room-stage .pet-wrap {
    top: 120px;
    bottom: var(--dock-space);
    left: 1%;
    right: 1%;
  }
  .room-stage .schedule-card {
    min-width: 145px;
    top: 12px;
    right: 10px;
  }
  .room-stage .schedule-card.expanded {
    width: min(280px, 75%);
  }
  .room-stage .care-buttons button > span:not(.ui-icon) {
    font-size: 0.8rem;
  }
  .room-stage .care-buttons button small {
    font-size: 0.52rem;
  }
  .room-stage .care-buttons .ui-icon {
    width: 34px;
    height: 34px;
  }
  .room-stage #care-panel {
    left: 10px;
    right: 10px;
    bottom: 12px;
    padding: 7px;
  }
  .room-stage .speech-bubble {
    right: 5%;
    top: 28%;
    font-size: 0.9rem;
    max-width: 155px;
  }
  .room-stage .room-card.caring #care-panel {
    top: 135px;
    right: 10px;
    bottom: 20px;
    width: 49%;
    padding: 12px 8px;
  }
  .room-stage .room-card.caring .pet-wrap {
    top: 145px;
    bottom: 35px;
    left: 0;
    right: 50%;
  }
  .room-stage .room-card.caring .room {
    height: auto;
  }
}
@media (max-width: 480px) {
  .dashboard.room-stage {
    height: 620px;
    --dock-space: 215px;
  }
  .room-stage .room-meta {
    top: 10px;
    left: 8px;
    right: 8px;
  }
  .room-stage .mode-banner {
    max-width: 100%;
    padding: 6px 10px;
  }
  .room-stage .mode {
    font-size: 1.1rem;
  }
  .room-stage .mode-banner #mode-detail {
    font-size: 0.62rem;
  }
  .room-stage .pet-caption {
    top: 64px;
    left: 10px;
    right: 10px;
    max-width: none;
    justify-content: flex-start;
    font-size: 0.64rem;
    padding: 4px 7px;
  }
  .room-stage .schedule-card {
    top: 104px;
    right: 10px;
    min-width: 145px;
  }
  .room-stage .schedule-card.expanded {
    top: 104px;
    width: calc(100% - 20px);
    bottom: var(--dock-space);
    max-height: 300px;
    z-index: 6;
  }
  .room-stage .schedule-card.expanded .section-heading {
    flex-wrap: nowrap;
  }
  .room-stage .pet-wrap {
    top: 158px;
    left: 0;
    right: 0;
    bottom: var(--dock-space);
  }
  .room-stage:has(.schedule-card.expanded) .pet-wrap {
    left: 0;
    right: 0;
  }
  .room-stage .speech-bubble {
    top: 148px;
    right: 12px;
    font-size: 0.75rem;
    padding: 9px 12px;
    max-width: 145px;
  }
  .room-stage .care-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .room-stage .care-buttons button {
    min-height: 77px;
    padding: 4px 2px;
    border-radius: 16px;
  }
  .room-stage .care-buttons .ui-icon {
    width: 31px;
    height: 31px;
  }
  .room-stage .care-buttons button > span:not(.ui-icon) {
    font-size: 0.85rem;
  }
  .room-stage .care-buttons button small {
    font-size: 0.55rem;
  }
  .room-stage .care-heading {
    font-size: 0.7rem;
    margin: 0 3px 5px;
  }
  .room-stage .care-heading small {
    font-size: 0.6rem;
  }
  .room-stage #care-panel {
    left: 8px;
    right: 8px;
    bottom: 10px;
    padding: 6px;
  }
  .room-stage .room-card.caring #care-panel {
    top: 172px;
    right: 8px;
    bottom: 24px;
    left: auto;
    width: 49%;
    gap: 8px;
  }
  .room-stage .room-card.caring .pet-wrap {
    top: 190px;
    left: 0;
    right: 50%;
    bottom: 35px;
  }
  .room-stage .room-card.caring .schedule-card {
    top: 104px;
    bottom: auto;
  }
  .room-stage .room-card.caring .schedule-card.expanded {
    bottom: auto;
    height: 300px;
  }
  .room-stage .gift {
    top: 156px;
    left: 5%;
    right: 5%;
    bottom: calc(var(--dock-space) + 7px);
  }
  .room-stage .gift > span {
    font-size: 2rem;
  }
  .room-stage .gift strong {
    font-size: 0.9rem;
  }
  .room-stage #reward-asset {
    height: 58px;
  }
}
.room-stage .speech-bubble {
  word-break: keep-all;
  text-align: center;
}
@media (min-width: 1051px) {
  .room-stage .room-card:not(.caring) .pet-wrap {
    top: 40px;
  }
}
@media (min-width: 1600px) {
  .room-stage .room-card:not(.caring) .pet-wrap {
    top: 60px;
  }
}

.classroom-info { margin: 1rem 0; padding: 1rem; border-radius: 1.2rem; background: #fff9ed; overflow-wrap: anywhere; }
.classroom-info p { margin: .5rem 0; white-space: pre-wrap; }
.classroom-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.classroom-actions button { min-height: 48px; }

/* Airy room: a taller character stage, compact tools, full-height timetable. */
.top { max-width: none; min-height: 70px; padding: 10px 22px; gap: 20px; }
.top .brand { font-size: 1.65rem; }
.top .brand-paw { width: 38px; height: 38px; }
.top .datetime strong { font-size: 2.5rem; }
.top .round-button { width: 48px; height: 48px; padding: 12px; }
.home-main { max-width: none; padding: 0 16px; }
.dashboard.room-stage {
  height: clamp(500px, calc(100svh - 166px), 1100px);
  --schedule-width: clamp(280px, 25vw, 430px);
  --dock-space: 118px;
}
.room-stage .room-card {
  border-width: 4px;
  border-radius: 28px;
  box-shadow: 0 5px 24px #72573b12;
}
.room-stage .room {
  background-image: url("../assets/mongle-cozy-room.png");
  background-position: center;
  background-size: 100% 100%;
  border-radius: 24px;
}
.room-stage .room-meta { top: 16px; left: 18px; right: calc(var(--schedule-width) + 36px); }
.room-stage .mode-banner {
  padding: 8px 14px 8px 10px;
  border-width: 2px;
  gap: 10px;
  background: #edf7ede8;
  box-shadow: 0 3px 12px #776b4c0a;
}
.room-stage .mode { font-size: 1.25rem; }
.room-stage .mode-banner > .ui-icon { width: 29px; height: 29px; }
.room-stage .mode-banner #mode-detail { font-size: .75rem; }
.room-stage .pet-caption { top: 74px; left: 20px; font-size: .66rem; background: #fffdf2c9; }
.room-stage .room-card:not(.caring) .pet-wrap {
  top: 30px;
  left: 0;
  right: calc(var(--schedule-width) + 26px);
  bottom: calc(var(--dock-space) - 10px);
}
.room-stage .speech-bubble {
  top: 25%;
  left: calc(50% + clamp(92px, 9vw, 165px));
  right: auto;
  width: max-content;
  max-width: clamp(145px, 14vw, 205px);
  padding: 12px 17px;
  border: 1px solid #e8dcc6;
  border-radius: 20px 20px 20px 6px;
  color: #5d6654;
  background: #fffdf5f5;
  font-size: .96rem;
  line-height: 1.5;
  transform: none;
  box-shadow: 0 5px 14px #8b705016;
  z-index: 4;
}
.room-stage .speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 15px;
  width: 12px;
  height: 12px;
  background: #fffdf5;
  border-right: 1px solid #e8dcc6;
  border-bottom: 1px solid #e8dcc6;
  transform: rotate(45deg);
}
.room-stage .schedule-card {
  top: 14px;
  bottom: 14px;
  right: 14px;
  border: 1px solid #fffdf5;
  border-radius: 24px;
  padding: 10px;
  background: #fffdf4eb;
  box-shadow: 0 5px 22px #896e4c15;
}
.room-stage .section-heading { border-radius: 17px; padding: 11px 12px; background: #e1eee0; }
.room-stage .section-heading h3 { font-size: 1.15rem; }
.room-stage .schedule-row { min-height: 66px; border-radius: 15px; }
.room-stage .schedule-subject strong { font-size: 1rem; }
.room-stage #care-panel {
  left: 16px;
  right: calc(var(--schedule-width) + 28px);
  bottom: 14px;
  padding: 7px 8px 8px;
  border-radius: 21px;
  border: 1px solid #fffdf5;
  background: #fffdf0d9;
  box-shadow: 0 4px 16px #795a3512;
}
.room-stage .care-heading { margin: 0 6px 5px; font-size: .66rem; }
.room-stage .care-heading small { font-size: .6rem; }
.room-stage .care-buttons { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.room-stage .care-buttons button {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  column-gap: 3px;
  align-items: center;
  min-height: 60px;
  border-radius: 15px;
  padding: 6px;
  background: #fffcf5ed;
  border: 1px solid #f2e7d4;
  box-shadow: 0 2px 3px #8b6d4910;
}
.room-stage .care-buttons .ui-icon { grid-row: 1 / 3; width: 39px; height: 39px; }
.room-stage .care-buttons button > span:not(.ui-icon) { font-size: .8rem; align-self: end; text-align: left; white-space: nowrap; }
.room-stage .care-buttons button small { font-size: .54rem; align-self: start; text-align: left; white-space: nowrap; }
.care-art { background-image: url("../assets/care-icons-plush.png"); background-repeat: no-repeat; background-size: 300% 200%; }
.care-art--feed { background-position: 0% 0%; }
.care-art--clean { background-position: 50% 0%; }
.care-art--exercise { background-position: 100% 0%; }
.care-art--sleep { background-position: 0% 100%; }
.care-art--heart { background-position: 50% 100%; }
.care-art--chat { background-position: 100% 100%; }
.room-stage .care-buttons button:hover:not(:disabled) { background: #f5faee; border-color: #bfd1ae; transform: translateY(-2px); }
.home-bottom { margin-top: 10px; }
.promise-card { padding: 10px 14px; min-height: 62px; }
.promise-card .promise-icon { width: 34px; height: 34px; }
.room-stage .room-card.caring #care-panel { right: calc(var(--schedule-width) + 30px); }

@media (max-width: 1200px) and (min-width: 1051px) {
  .room-stage .care-buttons button { display: flex; flex-direction: column; gap: 1px; padding: 3px; }
  .room-stage .care-buttons button > span:not(.ui-icon) { font-size: .76rem; align-self: center; }
  .room-stage .care-buttons button small { display: none; }
}
@media (max-width: 1050px) {
  .top { padding: 10px 16px; gap: 14px; }
  .room-stage .room { background-size: cover; background-position: 38% center; }
  .dashboard.room-stage { height: clamp(540px, calc(100svh - 170px), 1050px); --schedule-width: 280px; }
  .room-stage #care-panel { right: 14px; left: 14px; }
  .room-stage .schedule-card { bottom: auto; width: auto; padding: 4px; }
  .room-stage .schedule-card.expanded { bottom: var(--dock-space); padding: 8px; }
  .room-stage .room-card:not(.caring) .pet-wrap { top: 60px; right: 3%; left: 3%; }
  .room-stage:has(.schedule-card.expanded) .room-card:not(.caring) .pet-wrap { right: 310px; left: 0; }
  .room-stage .speech-bubble { top: 12%; left: calc(50% + 135px); max-width: 165px; }
  .room-stage .room-card.caring #care-panel { right: 16px; }
}
@media (max-width: 780px) {
  .top { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .top .brand { font-size: 1.3rem; }
  .top .brand-paw { width: 30px; height: 30px; }
  .top .datetime strong { font-size: 1.9rem; }
  .home-main { padding: 0 9px; }
  .dashboard.room-stage { height: clamp(580px, calc(100svh - 200px), 900px); }
  .room-stage .room-meta { top: 12px; left: 12px; right: 170px; }
  .room-stage .mode-banner { padding: 7px 10px; gap: 7px; }
  .room-stage .mode { font-size: 1.05rem; }
  .room-stage .mode-banner #mode-detail { font-size: .64rem; }
  .room-stage .pet-caption { top: 73px; left: 14px; }
  .room-stage .care-buttons button { display: flex; flex-direction: column; gap: 1px; padding: 3px; min-height: 70px; }
  .room-stage .care-buttons button > span:not(.ui-icon) { font-size: .7rem; align-self: center; text-align: center; }
  .room-stage .care-buttons button small { display: none; }
  .room-stage .care-buttons .ui-icon { width: 38px; height: 38px; }
  .room-stage .speech-bubble { left: calc(50% + 135px); top: 12%; max-width: 150px; font-size: .83rem; }
}
@media (max-width: 480px) {
  .dashboard.room-stage { height: 650px; --dock-space: 180px; }
  .room-stage .room-meta { right: 10px; }
  .room-stage .schedule-card { top: 104px; right: 10px; }
  .room-stage .room-card:not(.caring) .pet-wrap { top: 150px; right: 0; left: 0; bottom: var(--dock-space); }
  .room-stage:has(.schedule-card.expanded) .room-card:not(.caring) .pet-wrap { left: 0; right: 0; }
  .room-stage .schedule-card.expanded { width: calc(100% - 20px); bottom: var(--dock-space); }
  .room-stage .care-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .room-stage .care-buttons button { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: 1fr; min-height: 54px; padding: 5px; }
  .room-stage .care-buttons button > span:not(.ui-icon) { font-size: .75rem; text-align: left; }
  .room-stage .care-buttons .ui-icon { grid-row: auto; }
  .room-stage .speech-bubble { left: 6%; top: 0; max-width: 155px; padding: 9px 12px; font-size: .75rem; }
  .room-stage .room-card.caring #care-panel { top: 196px; right: 8px; }
}

/* Clear actions and a translucent tray with solid, pressable controls. */
.pet-filter-defs { position: absolute; pointer-events: none; overflow: hidden; }
.pet.pet-gif { filter: url("#pet-eye-alpha") drop-shadow(0 5px 4px #8f6c4320); }
.room-stage .room-card:not(.caring) #care-panel {
  background: rgb(255 249 235 / 52%);
  border-color: rgb(255 255 250 / 80%);
  backdrop-filter: blur(6px);
}
.room-stage .care-buttons button {
  background: #fffdf8;
  border: 1px solid #e5d3b7;
  border-bottom: 3px solid #d6bc96;
  box-shadow: 0 3px 0 #cbb48d45, 0 5px 9px #86634412, inset 0 1px 0 white;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.room-stage .care-buttons button:hover:not(:disabled) { background: #fffaf0; box-shadow: 0 4px 0 #cbb48d55, 0 7px 11px #86634418; }
.room-stage .care-buttons button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #cbb48d55, inset 0 1px 3px #86634416; }
.room-stage .care-buttons button:focus-visible { outline: 3px solid #709b7d; outline-offset: 3px; }
.bottom-nav { display: grid; grid-template-columns: repeat(3, auto); max-width: none; gap: 8px; align-items: stretch; }
.bottom-nav button, .bottom-nav button:last-child {
  width: auto;
  min-height: 54px;
  padding: 10px 13px;
  font-size: .85rem;
  border: 1px solid #d4dbc4;
  background: #fffdf5;
  box-shadow: 0 3px 0 #d8d7c27a;
}
.bottom-nav .phrase-access, .bottom-nav .phrase-access:last-child {
  color: #315c49;
  background: #e4f2de;
  border: 2px solid #a3c696;
  font-weight: 850;
}
.bottom-nav button:last-child .ui-icon { width: 26px; height: 26px; }
.settings-intro h3 { font-size: 1.2rem; margin-bottom: 6px; }
.settings-intro p { margin: 0 0 16px; color: #766e61; font-size: .85rem; line-height: 1.7; }
#news-form fieldset { border: 1px solid #e5dac6; border-radius: 18px; margin: 0 0 18px; padding: 16px; background: #fffdf7; }
#news-form legend { color: #487052; font-weight: 800; padding: 0 7px; }
.weekday-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-bottom: 14px; }
.weekday-picker button { min-height: 48px; padding: 8px; font-size: .85rem; border: 1px solid #e4d9c6; background: #fffdf8; }
.weekday-picker button[aria-pressed="true"] { background: #deedd8; color: #355b3c; border: 2px solid #9ebf91; }
.schedule-exceptions { padding: 12px 14px; border: 1px solid #e9ddca; border-radius: 15px; background: #f7f3e8; margin-bottom: 18px; }
.schedule-exceptions > summary { cursor: pointer; color: #716049; font-size: .85rem; font-weight: 700; min-height: 24px; }
#date-target { display: flex; gap: 10px; align-items: end; padding-top: 14px; }
#date-target label { flex: 1; margin: 0; }
.schedule-day-title { display: flex; align-items: center; justify-content: space-between; margin: 12px 0; color: #476549; }
.schedule-day-title small { font-size: .75rem; font-weight: 500; color: #857c6b; }
#schedule-rows { display: grid; gap: 10px; }
.schedule-edit-card { border: 1px solid #e8dcc7; background: #fffdf8; border-radius: 17px; overflow: hidden; }
.schedule-edit-card > summary { display: flex; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; min-height: 64px; list-style: none; border-left: 5px solid #e1b68b; }
.schedule-edit-card > summary::-webkit-details-marker { display: none; }
.schedule-edit-card[data-kind="BREAK"] > summary { border-left-color: #a3c4a3; }
.schedule-edit-card[data-kind="LUNCH"] > summary { border-left-color: #e4c36c; }
.schedule-edit-card[data-kind="REST"] > summary { border-left-color: #c5b6d3; }
.schedule-edit-card[open] { border-color: #b2c9a3; box-shadow: 0 2px 10px #536b4610; }
.schedule-edit-card[open] > summary { background: #edf4e7; border-bottom: 1px solid #dce5d1; }
.edit-time { min-width: 74px; color: #74614d; font-size: .9rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.edit-time small { display: block; font-size: .72rem; font-weight: 500; color: #9b8975; }
.edit-label { flex: 1; min-width: 0; }
.edit-label strong { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.edit-label small { display: block; font-size: .7rem; color: #8a7a66; margin-top: 3px; }
.edit-hint { font-size: .7rem; color: #688461; background: #f4f8ee; border: 1px solid #d8e3cc; border-radius: 9px; padding: 4px 9px; }
.schedule-fields { padding: 14px 16px; }
.schedule-fields label { font-size: .75rem; color: #7b6c57; }
.schedule-fields input, .schedule-fields select { margin-top: 5px; background: white; min-width: 0; font-size: .9rem; }
.schedule-delete { display: block; margin-left: auto; min-height: 44px; font-size: .75rem; color: #9c6557; background: #fbf1e9; padding: 7px 12px; }
.schedule-save-bar { position: sticky; bottom: -8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0 8px; background: #fffaf1f5; backdrop-filter: blur(8px); border-top: 1px solid #e9decd; margin-top: 15px; }
.schedule-save-bar .check { flex-basis: 100%; margin: 0; font-size: .75rem; }
@media (max-width: 1050px) { .home-bottom { grid-template-columns: 1fr; } .bottom-nav { justify-content: stretch; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .bottom-nav button, .bottom-nav button:last-child { min-height: 52px; padding: 8px 5px; font-size: .72rem; gap: 4px; }
  .bottom-nav .ui-icon, .bottom-nav button:last-child .ui-icon { width: 21px; height: 21px; }
  .schedule-fields .form-row { flex-wrap: wrap; }
  .schedule-fields .form-row > label { min-width: 90px; flex: 1; }
  .weekday-picker { gap: 4px; }
  .weekday-picker button { padding: 7px 2px; font-size: .75rem; }
  .schedule-edit-card > summary { padding: 10px; gap: 9px; }
}

.bottom-nav button:last-child { grid-column: auto; }
dialog[data-view="settings"] { max-width: 1200px; max-height: 94svh; }
dialog[data-view="settings"] .settings-content { max-height: calc(100svh - 205px); }
.schedule-save-bar .check { flex-basis: auto; margin-left: auto; }
@media (max-width: 780px) {
  dialog[data-view="settings"] .settings-content { max-height: 58svh; }
  .schedule-save-bar .check { flex-basis: 100%; margin-left: 0; }
}

/* Prepared greetings live in the dock; future voice stays in the pet's room. */
.bottom-nav { grid-template-columns: repeat(2, auto); }
.bottom-nav button:last-child { background: #fff8ed; border: 1px solid #e2d1b7; font-size: .85rem; }
.talk-entry {
  position: absolute;
  right: calc(var(--schedule-width) + 30px);
  bottom: calc(var(--dock-space) + 16px);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
  padding: 9px 13px;
  min-height: 52px;
  border: 1px solid #d6dcca;
  border-bottom-width: 3px;
  border-radius: 17px;
  background: #fffdf4ee;
  color: #476950;
  box-shadow: 0 3px 12px #79623f14;
  font-size: .83rem;
}
.talk-entry .ui-icon { width: 29px; height: 29px; }
.talk-entry span > small { display: block; font-size: .6rem; font-weight: 500; color: #8a806b; margin-top: 2px; }
.room-card.caring .talk-entry { display: none; }
@media (max-width: 1050px) {
  .talk-entry { right: 18px; }
  .room-stage:has(.schedule-card.expanded) .talk-entry { display: none; }
}

/* Local school-document import: the preview never saves by itself. */
.school-file-panel { border: 1px solid #cfdec3; border-radius: 18px; padding: 14px; margin: 0 0 22px; background: #f0f6e9; }
.school-file-panel > h4 { margin: 0 0 8px; color: #456448; }
.school-file-panel > p { font-size: .78rem; color: #6c785f; line-height: 1.7; margin: 6px 0 12px; }
.school-file-picker { display: block; font-size: .8rem; font-weight: 700; color: #526644; }
.school-file-picker input { display: block; max-width: 100%; padding: 10px; border-radius: 12px; background: #fffdf6; margin-top: 7px; }
.school-import-preview { margin-top: 15px; border-top: 1px solid #d7e3cb; padding-top: 12px; }
.import-file-name { overflow-wrap: anywhere; font-size: .75rem; color: #778064; }
.import-calendar-fields { display: flex; gap: 12px; max-width: 340px; }
.import-calendar-fields label { flex: 1; min-width: 0; font-size: .75rem; }
.import-warnings { background: #fff3dc; border-radius: 12px; padding: 12px 12px 12px 28px; font-size: .77rem; color: #846642; line-height: 1.7; }
.import-meal-list { max-height: 340px; overflow: auto; scrollbar-width: thin; padding-right: 5px; display: grid; gap: 9px; margin-top: 12px; }
.import-meal-row { display: grid; grid-template-columns: 145px 1fr; gap: 10px; padding: 10px; border-radius: 13px; background: #fffdf7; }
.import-meal-row label { align-self: start; margin-top: 8px; font-size: .8rem; }
.import-meal-row textarea { font-size: .8rem; line-height: 1.7; min-height: 110px; margin: 0; }
.import-date-choices { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; }
.import-date-choices label { font-size: .78rem; margin: 0; }
.import-table-wrap { overflow-x: auto; margin: 12px 0; }
.import-week-table { width: 100%; min-width: 430px; border-collapse: collapse; background: #fffdf7; }
.import-week-table td, .import-week-table th { padding: 9px 7px; border: 1px solid #dfdfcb; font-size: .78rem; text-align: center; }
.import-week-table th { background: #e4eedc; color: #536749; }
.import-periods { display: grid; gap: 8px; margin-bottom: 14px; }
.import-period { display: grid; grid-template-columns: 58px 1fr 1fr; gap: 10px; align-items: center; background: #fffdf6; border-radius: 13px; padding: 10px; }
.import-period strong { font-size: .8rem; }
.import-period label { font-size: .72rem; margin: 0; }
.import-period input { margin-top: 5px; min-width: 0; font-size: .85rem; }
.import-allergy, .import-full-plan { background: #fffaf0; border: 1px solid #e4dcc7; padding: 10px 12px; margin-top: 12px; border-radius: 12px; font-size: .78rem; }
.import-allergy summary, .import-full-plan summary { cursor: pointer; min-height: 30px; line-height: 1.8; font-weight: 700; }
.import-allergy p, .meal-text { white-space: pre-line; line-height: 1.8; }
.import-overwrite { font-size: .77rem; line-height: 1.7; color: #8b6b44; margin-top: 16px; }
.import-confirm { font-size: .8rem; line-height: 1.7; margin-bottom: 14px; }
.import-full-plan ul { padding-left: 20px; line-height: 1.8; }
@media (max-width: 600px) {
  .school-file-panel { padding: 10px; }
  .import-meal-row { grid-template-columns: 1fr; gap: 4px; }
  .import-meal-row label { margin-top: 0; }
  .import-period { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 5px; padding: 7px; }
  .import-period input { padding: 7px 3px; font-size: .75rem; }
}
@media (max-width: 600px) {
  .talk-entry { padding: 7px 10px; font-size: .76rem; min-height: 48px; }
  .talk-entry .ui-icon { width: 24px; height: 24px; }
  .bottom-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-nav button:last-child { font-size: .72rem; }
}

.school-file-panel > summary { cursor: pointer; font-size: .9rem; font-weight: 800; color: #456448; min-height: 32px; line-height: 2; }
.school-file-panel > summary span { float: right; font-size: .66rem; font-weight: 500; color: #839478; }
.school-file-panel[open] > summary { margin-bottom: 12px; }

/* Teacher planning and daily helper: compact, responsive and separately saved. */
.planning-tabs { display:flex; gap:8px; margin:0 0 18px; padding:6px; background:#eaf0df; border-radius:18px; }
.planning-tabs button { flex:1; }
.planning-tabs button[aria-pressed="true"] { background:#c7e6ce; box-shadow:inset 0 0 0 2px #83af95; }
.helper-settings { margin:22px 0; padding:18px; border:1px solid #d1dcc7; border-radius:20px; background:#f2f6e9; }
.helper-settings details, .holiday-list { margin:14px 0; }
.helper-settings summary, .holiday-list summary { cursor:pointer; padding:12px 0; font-weight:700; }
.helper-students > div, .annual-events article, .helper-preview li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid #dfdbc9; }
.helper-students button { flex-shrink:0; font-size:.85rem; }
.helper-preview { padding:0; list-style:none; }
.annual-events { margin:16px 0; }
.annual-events small { display:block; margin-top:6px; color:#777866; }
.annual-events article > div { min-width:0; overflow-wrap:anywhere; }
.holiday-list ul { padding-left:22px; line-height:1.9; }
@media(max-width:600px) { .helper-settings { padding:12px; } .helper-students > div { flex-wrap:wrap; } .helper-preview li { font-size:.8rem; } }

/* Compact class settings and main-screen weather controls. */
.class-identity-row { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(80px,.6fr) minmax(0,1fr); gap:12px; }
.class-identity-row label { min-width:0; }
.class-care-row { display:grid; grid-template-columns:minmax(120px,1fr) minmax(0,1.3fr); gap:20px; align-items:center; }
.class-care-row > .check { margin-top:20px; }
.class-save-actions { display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin:12px 0; }
.settings-header-actions, .helper-dialog-actions { display:flex; gap:14px; align-items:center; flex-shrink:0; }
.settings-header-actions .check { margin:0; font-size:.8rem; white-space:nowrap; }
.settings-header-actions button, .helper-dialog-actions button { white-space:nowrap; }
.helper-quick { min-height:32px; padding:3px 10px; font-size:.72rem; margin-left:8px; }
.care-heading > small { margin-left:auto; }
.weather select { padding:2px 22px 2px 0; margin:0; min-height:34px; border:0; background:transparent; box-shadow:none; font:inherit; font-weight:800; width:88px; }
.weather > div { position:relative; }
.weather small { display:block; }
.weather .weather-place { min-height:24px; padding:0 6px; font-size:.6rem; margin-top:2px; }
.weather .weather-place[hidden] { display:none; }
dialog[data-view="helpers"] { max-width:760px; }
dialog[data-view="helpers"] .helper-settings { margin:0; }
@media(max-width:650px) {
 .settings-header-actions { gap:6px; }
 .settings-header-actions button, .helper-dialog-actions button { padding:8px; font-size:.72rem; }
 .settings-header-actions .check { font-size:.68rem; }
 .class-identity-row { gap:7px; grid-template-columns:minmax(0,1fr) minmax(65px,.55fr) minmax(0,1fr); }
 .class-identity-row label { font-size:.72rem; }
 .class-identity-row input, .class-identity-row select { padding:8px 6px; }
 .class-care-row { gap:10px; grid-template-columns:110px minmax(0,1fr); }
 .class-care-row > .check { font-size:.75rem; }
 .helper-dialog-actions { gap:5px; }
 .weather select { width:64px; font-size:.85rem; }
}
@media(max-width:430px) {
 dialog[data-view="settings"] > .dialog-top { flex-wrap:wrap; }
 .settings-header-actions { margin-left:auto; }
 .helper-quick { margin-left:3px; }
}
.weather[data-mode="auto"] small { display:block; max-width:150px; white-space:normal; line-height:1.3; }

/* Touchable felt objects and affectionate room feedback share one local sheet. */
.room-art { background-image:url("../assets/room-interactions.png"); background-size:300% 200%; background-repeat:no-repeat; display:block; }
.room-art--leaves { background-position:0% 0%; }
.room-art--paper { background-position:50% 0%; }
.room-art--dust { background-position:100% 0%; }
.room-art--love { background-position:0% 100%; }
.room-art--thanks { background-position:50% 100%; }
.room-art--cheer { background-position:100% 100%; }
.cleanup-layer { position:absolute; left:16px; right:calc(var(--schedule-width) + 30px); top:115px; bottom:142px; z-index:5; pointer-events:none; }
.cleanup-item { position:absolute; width:clamp(76px,8vw,115px); height:clamp(76px,8vw,115px); padding:0; border:0; border-radius:50%; background:none; box-shadow:none; pointer-events:auto; touch-action:manipulation; }
.cleanup-item[hidden] { display:none; }
.cleanup-item .room-art { width:100%; height:100%; filter:drop-shadow(0 6px 3px #80593124); }
.cleanup-item--leaves { left:9%; bottom:5%; transform:rotate(-10deg); }
.cleanup-item--paper { right:5%; bottom:22%; transform:rotate(8deg); }
.cleanup-item--dust { right:23%; bottom:0; }
.cleanup-item:hover:not(:disabled) { background:#fff9dd28; transform:translateY(-4px); }
.cleanup-item:focus-visible { outline:3px dashed #579d87; outline-offset:3px; }
.clean-instruction { margin:2px 0; font-weight:700; color:#647758; }
.room-stage .cleaning .care-exit { align-self:center; }
.room-stage .cleaning .care-heading { justify-content:center; }
.room-stage .cleaning #care-status { margin:0; font-size:.75rem; }
.room-effects { position:absolute; inset:0; z-index:3; pointer-events:none; overflow:visible; }
.room-effect { position:absolute; width:clamp(90px,12vw,170px); aspect-ratio:1; opacity:0; animation:room-kindness 1.75s ease-in-out 3 both; }
.room-effect--left { left:14%; top:18%; transform:rotate(-14deg); }
.room-effect--right { right:8%; top:40%; animation-delay:.25s; }
.room-effect--top { left:42%; top:1%; width:clamp(70px,9vw,125px); animation-delay:.5s; }
@keyframes room-kindness { 0% { opacity:0; translate:0 12px; scale:.75; } 25%,65% { opacity:1; scale:1; } 100% { opacity:0; translate:0 -18px; scale:1.05; } }
.room-stage .room-card.caring .speech-bubble.has-message { display:block; left:49%; right:auto; top:5%; max-width:210px; font-size:.86rem; z-index:6; }
.room-stage .speech-bubble.has-message { color:#665b63; border-color:#e5cbc0; }
@media(max-width:1050px) {
 .cleanup-layer { right:16px; top:120px; bottom:150px; }
 .room-stage .room-card.caring .speech-bubble.has-message { left:5%; top:0; max-width:165px; font-size:.8rem; }
 .room-effect--left { left:2%; }
 .room-effect--right { right:0; }
}
@media(max-width:600px) {
 .cleanup-layer { top:170px; bottom:175px; left:8px; right:8px; }
 .cleanup-item { width:78px; height:78px; }
 .cleanup-item--leaves { left:0; bottom:2%; }
 .cleanup-item--paper { right:0; bottom:20%; }
 .cleanup-item--dust { right:19%; bottom:0; }
 .room-stage .room-card.caring .speech-bubble.has-message { left:3%; top:0; max-width:160px; font-size:.72rem; padding:8px 10px; }
 .room-effect { width:85px; }
 .room-effect--top { width:70px; }
}
@media(prefers-reduced-motion:reduce) { .room-effect { animation:none; opacity:1; } }
html[data-motion="reduce"] .room-effect { animation:none; opacity:1; }

/* One school-planning hub, with a compact monthly calendar. */
.calendar-toolbar { display:flex; gap:8px; align-items:center; margin:12px 0; }
.calendar-toolbar label { margin:0; }
.calendar-toolbar input { width:100px; margin:0; }
.calendar-toolbar select { width:90px; margin:0; }
.calendar-toolbar > button { padding:8px 13px; }
.school-calendar { border:1px solid #d8ddc9; border-radius:18px; overflow:hidden; background:#fffcf7; }
.calendar-weekdays, .calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-weekdays { background:#e3efdf; text-align:center; padding:9px 0; font-size:.8rem; font-weight:700; }
.calendar-weekdays > :first-child { color:#ba6a6b; }.calendar-weekdays > :last-child { color:#6689ad; }
.calendar-day, .calendar-empty { min-height:90px; min-width:0; padding:7px 5px; border:0; border-right:1px solid #e9e5d9; border-bottom:1px solid #e9e5d9; border-radius:0; box-shadow:none; text-align:left; background:#fffdf8; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:3px; }
.calendar-day time { font-size:.82rem; font-weight:800; }.calendar-day.is-holiday time { color:#b7565c; }.calendar-day.is-saturday time { color:#547fa4; }
.calendar-day.is-today { background:#f1f7e9; }.calendar-day.is-selected { background:#e1f1e5; box-shadow:inset 0 0 0 2px #75ac8f; }.calendar-empty { background:#f6f3ea; }
.calendar-chip, .calendar-holiday { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.62rem; line-height:1.4; }.calendar-chip { border-radius:5px; padding:2px 4px; color:#5a725d; background:#e4eed9; }.calendar-chip--vacation,.calendar-chip--holiday { background:#f5e7da; color:#9b6b5b; }.calendar-chip--ceremony { background:#eee4f0; color:#886895; }.calendar-holiday { color:#b77570; }
.calendar-selection { font-size:.8rem; padding:10px; background:#f0f5e8; border-radius:12px; }
.annual-month-list,.calendar-vacation,.quick-timetable { margin:16px 0; border:1px solid #dedcc9; border-radius:16px; padding:12px; }
.annual-month-list summary,.calendar-vacation summary,.quick-timetable summary { cursor:pointer; font-weight:700; color:#5f7e64; }
.quick-timetable form { margin-top:12px; }
.room-stage .schedule-card { background:rgba(255,252,244,.64); backdrop-filter:blur(8px); }
.room-stage .schedule-row { background:rgba(255,253,249,.55); }
.room-stage .schedule-row.current { background:rgba(218,239,217,.88); }
.room-stage .schedule-card.expanded { background:rgba(255,252,244,.86); }
@media(max-width:650px){
 .calendar-toolbar { gap:4px; flex-wrap:wrap; }.calendar-toolbar input { width:85px; }.calendar-toolbar select { width:75px; }.calendar-toolbar > button { padding:7px 10px; }
 .calendar-day,.calendar-empty { min-height:76px; padding:5px 2px; }.calendar-chip,.calendar-holiday { font-size:.52rem; }.calendar-day time { font-size:.72rem; }
 .planning-tabs button { padding:8px 6px; font-size:.8rem; }.calendar-grid { gap:0; }.quick-timetable .form-row { flex-wrap:wrap; }.quick-timetable .form-row>label { flex-basis:80px; }
}

/* Shared geometry for settings inputs and compact file tools. */
dialog[data-view="settings"] .settings-content select,
dialog[data-view="settings"] .settings-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
dialog[data-view="helpers"] select,
dialog[data-view="helpers"] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
 height:52px; min-height:52px; box-sizing:border-box; padding:10px 14px; margin-top:6px; border-radius:14px; font-size:.92rem; line-height:1.25;
}
.settings-content .form-row { gap:14px; align-items:flex-start; }
.class-identity-row { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.class-care-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:flex-start; }
.class-care-row>.check { margin:34px 0 10px; }
.settings-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0 0 16px; }
.settings-title-row .settings-intro { margin:0; min-width:0; }
.settings-title-row .settings-intro h3 { margin-top:0; }
.settings-file-button { flex-shrink:0; min-height:38px; padding:8px 12px; font-size:.76rem; border-radius:12px; background:#f0f5e8; color:#55775d; }
.school-file-panel[hidden] { display:none; }
.school-file-panel { margin-bottom:16px; }
.auto-keepsakes { display:flex; flex-wrap:wrap; gap:8px; font-size:.85rem; color:#6d7b60; }
.auto-keepsakes span { padding:6px 10px; background:#eef4e6; border-radius:12px; }
.room-keepsakes { position:absolute; inset:0; pointer-events:none; z-index:1; }
.vacation-countdown { flex-shrink:0; min-width:72px; padding:7px 10px; display:flex; flex-direction:column; align-items:center; gap:4px; border-radius:14px; background:#e7efdb; color:#55785d; white-space:nowrap; }
.vacation-countdown small { font-size:.62rem; }
.vacation-countdown strong { font-size:1.05rem; }
@media(max-width:650px){
 .class-identity-row { gap:8px; }.class-care-row { gap:12px; }
 dialog[data-view="settings"] .settings-content select,dialog[data-view="settings"] .settings-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),dialog[data-view="helpers"] select,dialog[data-view="helpers"] input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { height:48px; min-height:48px; padding:9px 10px; font-size:.82rem; }
 .settings-title-row { gap:8px; }.settings-file-button { max-width:145px; font-size:.68rem; padding:7px 9px; }
 .vacation-countdown { min-width:62px; padding:6px 7px; }.vacation-countdown strong { font-size:.82rem; }.vacation-countdown small { font-size:.55rem; }
}
@media(max-width:1050px){
 .top { gap:10px; }.datetime { flex-direction:column; align-items:flex-start; gap:3px; }
 .brand { font-size:1.4rem; }.brand-paw { width:36px; height:36px; }
 .weather > span { font-size:1.7rem; }.weather select { width:72px; }
}
@media(max-width:780px){
 .vacation-countdown { order:4; }.weather { order:5; margin-left:0; }
 .datetime { flex:1; min-width:0; }.top .class-summary { min-width:0; }
}
.header-day-info { display:flex; align-items:center; gap:18px; margin-left:auto; min-width:0; }
.header-day-info .datetime { margin-left:0; }
@media(max-width:1050px){
 .top .tools { order:2; }.header-day-info { order:3; flex-basis:100%; margin-left:0; justify-content:space-between; gap:12px; }
 .header-day-info .datetime { flex:1; min-width:0; }.header-day-info .weather { flex-shrink:0; }
}
@media(max-width:650px){.header-day-info { gap:8px; }.header-day-info .weather select { width:64px; }}

/* Distinct speakers share one stable character stage during greeting selection. */
.student-speech[hidden] { display:none; }
.room-stage .student-speech {
 position:absolute; z-index:4; top:7%; left:calc(50% + clamp(92px,9vw,165px));
 width:max-content; max-width:clamp(145px,14vw,205px); box-sizing:border-box;
 padding:9px 14px; border-radius:17px 17px 5px 17px; border:1px solid #a4c5ab;
 background:#e3f1e2f5; color:#45634b; box-shadow:0 4px 12px #6f805819;
 font-size:.86rem; line-height:1.5; pointer-events:none;
}
.student-speech small { display:block; font-size:.65rem; color:#67816a; margin-bottom:2px; }
.room-stage .speech-bubble[data-message-kind="greeting"] { top:29%; }
.room-stage .speech-bubble[data-message-kind="greeting"]::before {
 content:attr(data-speaker); display:block; color:#8b7960; font-size:.65rem; font-weight:600; margin-bottom:3px;
}
.heart-summary .heart-icon,.heart-icon { color:#d77d90; }
.heart-award { color:#b65d77; font-weight:750; font-size:.82rem; text-align:center; }
.heart-balance { display:flex; align-items:center; justify-content:space-between; padding:15px 20px; background:#fae9e9; border-radius:18px; }
.heart-balance strong { color:#b45e77; font-size:1.6rem; }
.heart-guide { list-style:none; padding:0; margin:12px 0; display:grid; gap:8px; }
.heart-guide li { display:flex; align-items:center; gap:12px; padding:9px 12px; border:1px solid #e7ddc9; border-radius:13px; }
.heart-guide .ui-icon { width:38px; height:38px; }.heart-guide li>span:last-child { margin-left:auto; color:#a85e76; font-size:.8rem; }
@media(max-width:1050px) {
 .room-stage .student-speech { left:calc(50% + 135px); top:0; max-width:165px; font-size:.8rem; }
 .room-stage .speech-bubble[data-message-kind="greeting"] { top:23%; }
}
@media(max-width:780px) {
 .bottom-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }.bottom-nav button { font-size:.72rem; padding:8px; }
 .room-stage .student-speech { left:3%; top:0; max-width:150px; font-size:.75rem; }
 .room-stage .speech-bubble[data-message-kind="greeting"] { left:3%; top:23%; max-width:170px; }
}
@media(max-width:480px) {
 .room-stage .student-speech { top:-1%; max-width:155px; padding:6px 10px; }
 .room-stage .speech-bubble[data-message-kind="greeting"] { top:23%; max-width:180px; padding:8px 10px; }
 .heart-guide li { flex-wrap:wrap; }.heart-guide li>span:last-child { font-size:.72rem; }
}
/* Keep the heart balance in the same visible action row on desktop. */
@media(min-width:781px) { .bottom-nav { grid-template-columns:repeat(3,auto); } }
@media(max-width:480px) {
 .room-stage .student-speech { top:-17%; }
 .room-stage .speech-bubble[data-message-kind="greeting"] { top:2%; }
}

/* One source coordinate system for weather backgrounds and seasonal props. */
.room-scenery { position:absolute; inset:0; width:100%; height:100%; overflow:hidden; pointer-events:none; z-index:-1; }
.room-scenery * { pointer-events:none; }

/* Helper setup: choose one clear policy; show only its relevant controls. */
dialog[data-view="helpers"] { width:min(920px,96vw); padding:0; }
dialog[data-view="helpers"]>.dialog-top { position:sticky; top:0; z-index:8; padding:20px 26px; margin:0; background:#fffaf1; border-bottom:1px solid #e4dac8; }
dialog[data-view="helpers"]>.helper-settings { margin:0; padding:20px 26px; border:0; border-radius:0; background:none; }
.helper-current { padding:14px 18px; background:#e9f1df; border-radius:16px; margin-bottom:20px; }.helper-current>span,.helper-current>small { color:#66765a; font-size:.8rem; }.helper-current h3 { margin:5px 0; }
.helper-mode-picker { padding:0; margin:0 0 18px; border:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.helper-mode-picker legend { margin-bottom:10px; font-weight:800; }.helper-mode-picker>label { display:flex; align-items:center; gap:9px; padding:14px 10px; margin:0; border:2px solid #e4dccb; border-radius:16px; cursor:pointer; background:#fffdf8; }.helper-mode-picker>label:has(input:checked) { border-color:#79ad8a; background:#e3f0df; }.helper-mode-picker input { width:18px; height:18px; accent-color:#689d78; }.helper-mode-picker small { display:block; margin-top:5px; font-size:.7rem; font-weight:400; line-height:1.5; }
.helper-settings details { border:1px solid #e3dac8; border-radius:14px; padding:13px 15px; margin:12px 0; }.helper-settings summary { cursor:pointer; font-weight:700; }.helper-settings details[open]>summary { margin-bottom:14px; }
.helper-settings[data-mode="manual"] .helper-auto-panel,.helper-settings[data-mode="manual"] .helper-auto-tools,.helper-settings:not([data-mode="manual"]) .helper-manual-panel,.helper-custom[hidden] { display:none; }
.helper-settings .helper-save { margin-top:12px; }.helper-manual-panel,.helper-auto-panel { margin-top:16px; }.helper-settings .muted { font-size:.8rem; line-height:1.65; }.helper-settings .helper-manual-panel h3,.helper-settings .helper-auto-panel h3 { font-size:1rem; }
@media(max-width:650px) { dialog[data-view="helpers"]>.dialog-top,dialog[data-view="helpers"]>.helper-settings { padding:15px; }.helper-mode-picker { gap:6px; }.helper-mode-picker>label { padding:10px 6px; flex-direction:column; text-align:center; font-size:.85rem; }.helper-mode-picker small { font-size:.64rem; }.helper-dialog-actions { flex-wrap:wrap; justify-content:flex-end; }.helper-dialog-actions button { font-size:.72rem; padding:8px; } }
.sleep-note { display:flex; flex-direction:column; align-items:center; gap:12px; padding:20px 12px; color:#697765; text-align:center; }.sleep-note>span { font-size:2.4rem; color:#b7a2cd; letter-spacing:.12em; }.sleep-note strong { font-size:1.02rem; }.sleep-note small { font-size:.8rem; line-height:1.8; }
/* Keep earned keepsakes visible beside the bookcase rather than behind the pet/schedule. */
.room-keepsakes { inset:auto; left:14px; top:55%; width:auto; height:auto; display:flex; gap:8px; }
.room-keepsakes .decoration { position:static; font-size:1.8rem; line-height:1.2; }
@media(max-width:780px) { .room-keepsakes { top:45%; flex-direction:column; gap:5px; }.room-keepsakes .decoration { font-size:1.45rem; } }

.helper-mode-picker input[type="radio"] { padding:0; margin:0; min-height:18px; flex:0 0 18px; }
/* Portrait tablets reserve a strip for the left-hand furniture and props. */
@media(min-width:651px) and (max-width:1050px) {
 .room-stage .room-card:not(.caring) .pet-wrap { left:180px; right:0; }
 .room-stage .room-card:not(.caring) .pet-wrap>.pet { max-width:180%; object-position:center bottom; }
}
@media(min-width:651px) and (max-width:1050px) {
 .room-stage .room-card:not(.caring) .pet-wrap { --tablet-speech-top:max(12%,calc(100% - (100vw - 180px)*.86)); }
 .room-stage .room-card:not(.caring) .speech-bubble { top:var(--tablet-speech-top); }
 .room-stage .room-card:not(.caring) .student-speech { top:max(0px,calc(var(--tablet-speech-top) - 75px)); }
}

/* Calm classroom badge, matched to the warm room controls. */
.room-stage .mode-banner.class-mode { border:1px solid #bad2b7; border-radius:18px; background:#edf4e9ed; padding:9px 14px 9px 9px; gap:11px; box-shadow:0 3px 12px #536e4920; }
.room-stage .class-mode>.ui-icon { width:36px; height:36px; padding:7px; background:#dce9d5; border-radius:11px; }
.room-stage .class-mode .mode { color:#456348; font-size:1.08rem; font-weight:750; }
.room-stage .class-mode #mode-detail { color:#66765a; font-size:.8rem; font-weight:600; }
.room-stage:has(.class-mode) .pet-caption { border:1px solid #d4dfca; background:#f4f7edd9; color:#6a775e; border-radius:12px; padding:5px 11px; }
/* Cleaning uses the same left-pet/right-panel composition as other care. */
.cleanup-layer { left:8px; right:61%; top:auto; bottom:40px; height:180px; }
.cleanup-item { width:clamp(64px,6vw,90px); height:clamp(64px,6vw,90px); }
.cleanup-item--leaves { left:3%; bottom:0; }.cleanup-item--paper { right:3%; bottom:90px; }.cleanup-item--dust { right:3%; bottom:0; }
@media(max-width:1050px) { .cleanup-layer { right:49%; top:auto; bottom:35px; height:175px; } }
@media(max-width:780px) { .cleanup-layer { right:50%; top:auto; bottom:35px; height:160px; }.cleanup-item { width:64px; height:64px; }.cleanup-item--paper { bottom:80px; } }
#event-dialog { width:min(680px,94vw); max-height:90svh; padding:24px; border:1px solid #e2d7c5; border-radius:24px; background:#fffaf1; }
#event-dialog::backdrop { background:#5547374a; backdrop-filter:blur(3px); }
#event-dialog .form-row { gap:14px; }#event-dialog input:not([type="checkbox"]):not([type="hidden"]),#event-dialog select { height:48px; width:100%; min-width:0; }
#event-dialog fieldset { padding:14px; border:1px solid #e2d7c5; border-radius:15px; }#event-dialog .muted { font-size:.8rem; line-height:1.6; }
.scenery-preview-bar { position:sticky; top:6px; z-index:20; display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:14px; margin-bottom:10px; border:1px solid #a6c3a2; border-radius:18px; background:#f4f9edfa; box-shadow:0 4px 15px #617c4920; }
.scenery-preview-bar strong small { display:block; font-size:.7rem; font-weight:400; margin-top:4px; }.scenery-preview-bar label { margin:0; font-size:.8rem; }.scenery-preview-bar select { width:95px; padding:8px; margin-top:4px; }.scenery-preview-bar button { font-size:.8rem; padding:10px; }
.scene-hide-pet .room>.pet-wrap { visibility:hidden; }
.scene-hide-ui .room-card>.room-meta,.scene-hide-ui .room-card>.pet-caption,.scene-hide-ui #care-panel,.scene-hide-ui .schedule-card,.scene-hide-ui .talk-entry,.scene-hide-ui .room-keepsakes { visibility:hidden; }
@media(max-width:650px){#event-dialog { padding:15px; }#event-dialog .form-row { flex-wrap:wrap; }.scenery-preview-bar { gap:8px; }.scenery-preview-bar>strong { flex-basis:100%; }}
@media(max-width:1050px){.cleanup-layer {right:51%;}}
@media(max-width:780px){.cleanup-layer {right:52%;}}
/* Responsive geometry should settle immediately, including behind dialogs. */
.room-stage .pet-wrap { transition:none; }
.room-stage .room-card.caring.cleaning .pet-wrap>.pet { max-width:160%; }

/* One visible entry, beside the class name, replaces the buried news block. */
.class-summary-details { display:flex; align-items:center; gap:10px; }
.class-summary .class-story-entry { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; min-height:36px; padding:5px 10px; border:1px solid #c5d8bf; border-radius:12px; background:#edf5e7; box-shadow:0 2px 5px #667f4e12; line-height:1.3; }
.class-summary .class-story-entry>span { color:#466747; font-size:.72rem; font-weight:750; }
.class-story-entry small { color:#76876a; font-size:.58rem; margin-top:2px; white-space:nowrap; }.class-story-entry b { margin-left:4px; }
.story-tabs { display:grid; grid-template-columns:1fr 1fr; padding:5px; gap:6px; border-radius:17px; background:#e9efdf; margin:0 0 18px; }
.story-tabs button { display:flex; justify-content:center; align-items:center; gap:7px; padding:10px; font-size:.94rem; background:#fffaf1; }
.story-tabs button[aria-pressed="true"] { background:#cae7cd; color:#3b6345; border-color:#8cb79a; }.story-tabs button:disabled { opacity:.55; }
.story-tabs .ui-icon { width:24px; height:24px; }
.story-news { display:grid; grid-template-columns:1fr 1fr; gap:13px; }.story-card { min-width:0; padding:17px; border:1px solid #e6dcc9; border-radius:17px; background:#fffdf6; }.story-card h3 { display:flex; align-items:center; gap:7px; margin:0 0 10px; color:#57734e; font-size:1rem; }.story-card h3 .ui-icon { width:26px; height:26px; }.story-card p { font-size:.93rem; line-height:1.75; margin:0; white-space:pre-line; overflow-wrap:anywhere; }.story-meal { background:#fbf2e3; }.story-meal-preview { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }.story-meal button { margin-top:12px; padding:8px 12px; font-size:.82rem; min-height:40px; }.story-small h3 { font-size:.82rem; color:#8b806c; }.story-small p { font-weight:700; }.story-class-note { padding:9px 12px; font-size:.8rem; background:#f0f4e8; color:#6e7d5f; border-radius:10px; }
.story-mission { padding:22px; border:1px solid #d9dfc8; border-radius:20px; background:linear-gradient(135deg,#f5f7e8,#fff5e5); text-align:center; }.story-kicker { color:#8f976c; font-size:.8rem; }.story-mission h3 { font-size:1.25rem; line-height:1.7; color:#47634d; margin:16px 0; }.story-mission p { font-size:.87rem; line-height:1.8; }.story-mission small { display:block; color:#857d6d; font-size:.77rem; line-height:1.6; }.story-mission button { margin-top:20px; font-size:.9rem; }
dialog[data-view="class-story"] { width:min(760px,95vw); }
@media(max-width:650px){.class-summary-details { gap:0; }.class-summary .together-days { display:none; }.class-summary .class-story-entry { padding:4px 7px; min-height:32px; }.class-summary .class-story-entry>span { font-size:.65rem; }.class-story-entry small { font-size:.53rem; }.story-news { grid-template-columns:1fr; gap:9px; }.story-card { padding:13px; }.story-tabs button { font-size:.8rem; padding:9px 5px; }.story-tabs .ui-icon { width:20px; height:20px; }.story-mission { padding:15px; }.story-mission h3 { font-size:1.06rem; }}
/* Reserve a slim right strip for keepsakes beside the pet on portrait tablets. */
@media(min-width:651px) and (max-width:1050px){
 .room-stage:has([data-room-reward]) .room-card:not(.caring) .pet-wrap { left:180px; right:150px; }
 .room-stage:has([data-room-reward]) .room-card:not(.caring) .pet-wrap>.pet { width:auto; max-width:220%; }
 .room-stage:has([data-room-reward]):has(.schedule-card.expanded) .room-card:not(.caring) .pet-wrap { left:0; right:310px; }
}
.class-summary .class-story-entry { gap:0; }
@media(min-width:1051px){.class-summary .class-story-entry { padding-top:4px; padding-bottom:4px; }}
/* Four calm entry points; the care tray opens above them. */
.room-actions { position:absolute; z-index:4; bottom:14px; left:16px; right:calc(var(--schedule-width) + 28px); display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; padding:7px; border:1px solid #fffdf3; border-radius:20px; background:#fff9eedb; backdrop-filter:blur(8px); box-shadow:0 4px 14px #725a3515; }
.room-actions[hidden],#care-panel[hidden] { display:none!important; }
.room-actions button { min-width:0; min-height:52px; padding:7px 8px; gap:7px; font-size:.84rem; border-radius:14px; background:#fffdf7; box-shadow:0 3px 0 #e8ddc6; }
.room-actions .ui-icon { width:26px; height:26px; flex-shrink:0; }.room-actions button.selected { background:#dcefdc; border-color:#8db697; color:#416747; }
.room-stage .room-card:not(.caring) #care-panel { bottom:96px; z-index:5; }
.room-stage .schedule-body { min-height:0; }
.room-stage .schedule-list { display:grid; grid-auto-rows:minmax(0,1fr); flex:1; min-height:0; max-height:none; gap:5px; overflow:visible; }
.room-stage .schedule-row { min-height:0; padding:6px 9px; gap:8px; border-radius:12px; }
.room-stage .schedule-row .subject-icon { width:25px; height:25px; }
.room-stage .schedule-subject strong { font-size:.9rem; line-height:1.25; }
.room-stage .schedule-subject small,.room-stage .schedule-row .time { font-size:.7rem; line-height:1.3; }
.room-stage .schedule-row .time small { font-size:.65rem; }
.room-stage .schedule-card .section-heading { padding:9px 11px; min-height:45px; flex-shrink:0; }
.room-stage .schedule-card .section-heading h3 { font-size:1.05rem; }
.room-stage .schedule-card .next { padding-top:8px; margin-top:7px; min-height:30px; flex-shrink:0; }
@media(max-width:1050px){.room-actions { right:14px; }.room-actions button { font-size:.8rem; }.room-stage .schedule-card.expanded .schedule-body { display:flex; flex-direction:column; height:100%; overflow:visible; }}
@media(max-width:650px){.room-actions { left:10px; right:10px; gap:4px; padding:5px; }.room-actions button { flex-direction:column; gap:3px; padding:6px 2px; font-size:.64rem; min-height:61px; }.room-actions .ui-icon { width:24px; height:24px; }.room-stage .room-card:not(.caring) #care-panel { bottom:104px; }.room-stage .schedule-row { padding:4px 7px; }.room-stage .schedule-subject strong { font-size:.8rem; }}

@media(max-width:1050px){.room-stage:has(#care-panel:not([hidden])) .schedule-card.expanded { bottom:calc(108px + var(--care-menu-height,120px)); }}
.room-card:has(#gift:not([hidden]))>#care-panel,.room-card:has(#gift:not([hidden]))>.room-actions { visibility:hidden; }
.room-stage .schedule-card.expanded { max-height:none; }
/* Plush activity icons share the room's mint and peach palette. */
.home-action-icon{display:inline-block;flex:0 0 42px;width:42px;height:42px;background-image:url('../assets/home-action-icons.png');background-size:200% 200%;background-repeat:no-repeat}
.home-action-icon--care{background-position:0 0}.home-action-icon--news{background-position:100% 0}.home-action-icon--friend{background-position:0 100%}.home-action-icon--talk{background-position:100% 100%}
.timetable-section-heading{display:flex;align-items:baseline;gap:14px;border-top:1px solid #dfdbc9;padding-top:22px;margin-top:24px;color:#476f59}.timetable-section-heading strong{font-size:1.15rem}.timetable-section-heading span{font-size:.85rem;color:#7a7869}
.quick-timetable summary strong{display:inline-block;margin-right:14px;color:#476f59}.quick-timetable{border-left:4px solid #9bc6ad}
@media(max-width:600px){.home-action-icon{flex-basis:30px;width:30px;height:30px}.timetable-section-heading{align-items:flex-start;flex-direction:column;gap:4px}}
.manual-timetable{margin:16px 0;border:1px solid #dedcc9;border-left:4px solid #efbb96;border-radius:16px;padding:12px}
.manual-timetable>summary,.quick-timetable>summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:42px}
.manual-timetable>summary::after,.quick-timetable>summary::after{content:'＋';margin-left:auto;font-size:1.2rem;color:#66816b}
.manual-timetable[open]>summary::after,.quick-timetable[open]>summary::after{content:'−'}
.manual-timetable>summary>span:not(.step-sticker),.quick-timetable>summary>span:not(.step-sticker){font-size:.8rem;color:#807b6c}
.step-sticker{display:inline-grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:11px 14px 10px 14px;background:#c7e3cf;color:#486f57;border:2px solid white;box-shadow:0 2px 0 #96bda5;transform:rotate(-7deg);font-weight:900;font-size:1.1rem}
.manual-timetable .step-sticker{background:#f8d9bf;color:#976241;box-shadow:0 2px 0 #dfb18d;transform:rotate(6deg)}
#dialog[data-view=photo]{width:min(1280px,96vw);max-width:1280px;max-height:96dvh}
.photo-stage{position:relative;aspect-ratio:16/9;max-height:62dvh;background:#ede9dc;border-radius:22px;overflow:hidden;margin:auto;width:min(100%,110dvh)}
.photo-stage canvas{display:block;width:100%;height:100%;object-fit:contain}
.photo-placeholder{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#67816a;font-size:1.2rem;background:#f5f0e5}
.photo-placeholder[hidden]{display:none}
.photo-status{min-height:1.5em;margin:12px 0;text-align:center}.photo-controls{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.photo-controls [hidden]{display:none!important}.photo-save{display:inline-block;padding:12px 20px;border-radius:18px;background:#d3e9d6;color:#385f45;border:1px solid #a2c8ab;font-weight:bold;text-decoration:none}
@media(max-width:650px){.room-actions .home-action-icon{width:26px;height:26px;flex-basis:26px}.room-actions .ui-icon{width:26px;height:26px}.room-actions button{font-size:.59rem}.manual-timetable>summary,.quick-timetable>summary{flex-wrap:wrap;gap:8px}.manual-timetable>summary>span:not(.step-sticker),.quick-timetable>summary>span:not(.step-sticker){flex-basis:65%}}


.photo-size{display:flex;align-items:center;justify-content:center;gap:10px;flex-basis:100%;margin:0;font-weight:bold}.photo-size input{width:min(240px,40vw);min-height:36px;padding:0;accent-color:#75b799}.photo-size output{min-width:3em;font-variant-numeric:tabular-nums}.room-stage .speech-bubble{overflow-wrap:anywhere}
/* Three independent speech bubbles; never resize the character to fit notices. */
.room-stage .room-talk-stack{position:absolute;right:10px;top:3%;width:clamp(180px,18vw,265px);z-index:5;display:flex;flex-direction:column;gap:13px;pointer-events:none}
.room-information{display:flex;flex-direction:column;gap:13px}
.info-bubble{position:relative;background:#fffdf5f5;border:1px solid #e7d9c5;border-radius:20px 20px 20px 6px;padding:12px 15px;box-shadow:0 4px 14px #8b705014;color:#59624e}
.info-bubble::after{content:'';position:absolute;bottom:-6px;left:16px;width:10px;height:10px;background:inherit;border-right:1px solid #e7d9c5;border-bottom:1px solid #e7d9c5;transform:rotate(45deg)}
.info-bubble small{display:block;font-weight:800;font-size:.68rem;color:#a07a52;margin-bottom:5px}.event-bubble{background:#f3f8ecf5}.event-bubble small{color:#66815e}
.info-bubble p{margin:0;white-space:pre-line;overflow-wrap:anywhere;font-size:.88rem;line-height:1.6;font-weight:700}
.room-stage .room-talk-stack>.speech-bubble,.room-stage .room-talk-stack>.student-speech{position:relative!important;inset:auto;width:100%;max-width:none!important;transform:none;margin:0;box-sizing:border-box}
.room-stage .room-talk-stack>.student-speech{order:-1}
.room-stage .room-card.caring .room-information{display:none}.room-stage .room-card.caring .room-talk-stack{right:10px;top:0;width:190px}
.scene-hide-ui .room-talk-stack{visibility:hidden}
@media(min-width:651px) and (max-width:1050px){.room-stage .room-talk-stack{top:0;right:12px;width:190px}.info-bubble p{font-size:.79rem}.info-bubble{padding:10px 12px}}
@media(max-height:800px) and (min-width:1051px){.room-stage .room-talk-stack{top:0;gap:10px}.room-information{gap:10px}.info-bubble{padding:9px 12px}.info-bubble p{font-size:.78rem;line-height:1.45}.room-stage .room-talk-stack>.speech-bubble{padding:9px 12px;font-size:.83rem}}
@media(max-width:650px){.room-stage .room-talk-stack{top:-30px;left:10px;right:10px;width:auto;gap:12px}.room-information{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:10px}.info-bubble{padding:8px 10px;border-radius:15px 15px 15px 5px}.info-bubble small{font-size:.6rem}.info-bubble p{font-size:.7rem;line-height:1.45}.room-stage .room-talk-stack>.speech-bubble{align-self:flex-end;width:65%;font-size:.75rem;padding:8px 11px}.room-stage .room-card.caring .room-talk-stack{top:0;left:3%;right:auto;width:160px}.room-stage .room-card.caring .room-talk-stack>.speech-bubble{width:100%}}
@media(max-width:1050px){.room-stage .schedule-card:not(.expanded){top:12px;right:12px;width:50px;min-width:0;padding:0;border-radius:15px}.room-stage .schedule-card:not(.expanded) .section-heading{padding:0;margin:0}.room-stage .schedule-card:not(.expanded) .tablet-toggle{width:48px;height:48px;min-height:48px;padding:0;font-size:0}.room-stage .schedule-card:not(.expanded) .tablet-toggle::before{content:'▤';font-size:25px;color:#577c65}}
/* Cloud notes are scattered around Mongle, with tails facing the character. */
.room-stage .room-talk-stack{position:absolute;inset:0!important;width:auto!important;display:block;pointer-events:none;z-index:5}
.room-stage .room-information{display:contents}
.room-stage .room-talk-stack>.speech-bubble,.room-stage .room-talk-stack>.student-speech,.room-stage .room-information>.info-bubble{position:absolute!important;inset:auto;max-width:none!important;box-sizing:border-box;margin:0;transform:none}
.room-stage .room-talk-stack>.speech-bubble{inset:auto;right:auto!important;align-self:auto;padding:15px 19px;border:3px solid #fffdf9;border-radius:42px 48px 40px 44px;color:#5f705b;background:#fffdf5;box-shadow:0 6px 18px #9b81511a;text-align:center;font-size:.9rem;line-height:1.5}
.room-stage .room-information>.info-bubble{padding:16px 17px;border:3px solid #fffdf9;border-radius:42px 46px 40px 45px;box-shadow:0 6px 18px #9b81511a;text-align:center;background:#fff9eaf7}
.room-stage .room-information>.event-bubble{background:#f2f8eaf7}
.room-stage .room-information>.info-bubble[hidden]{display:none!important}
.room-stage .meal-bubble{pointer-events:auto;cursor:pointer;display:block;font:inherit;color:#786744;min-height:90px;transition:filter .15s}
.room-stage .meal-bubble:hover{filter:brightness(1.035)}.room-stage .meal-bubble:focus-visible{outline:3px solid #6c9c80;outline-offset:5px}
.room-stage .meal-bubble span{display:block;font-size:.95rem;font-weight:850;line-height:1.5}.room-stage .meal-bubble em{display:block;font-size:.65rem;font-style:normal;font-weight:500;margin-top:5px;color:#a08a61}
.room-stage .event-bubble p{font-size:.82rem;line-height:1.6}.room-stage .info-bubble small{font-size:.65rem;margin-bottom:5px}
.room-stage .speech-bubble::before,.room-stage .info-bubble::before{content:'';position:absolute;z-index:-1;width:33px;height:25px;top:-9px;left:22%;border-radius:50%;background:inherit;box-shadow:34px -3px 0 -2px #fffdf9,65px 0 0 -3px #fffdf9}
.room-stage .speech-bubble[data-message-kind=greeting]::before{content:attr(data-speaker);position:static;display:block;width:auto;height:auto;background:none;box-shadow:none;font-size:.65rem}
.room-stage .speech-bubble::after,.room-stage .info-bubble::after{content:'';position:absolute;width:22px;height:20px;background:inherit;border:0;clip-path:polygon(0 0,100% 0,45% 100%);transform:none}
.room-stage .speech-bubble::after{left:calc(50% - 11px);bottom:-18px}
.room-stage .meal-bubble::after{left:-18px;top:calc(50% - 10px);bottom:auto;transform:rotate(90deg)}
.room-stage .event-bubble::after{left:auto;right:-18px;top:calc(50% - 10px);bottom:auto;transform:rotate(-90deg)}
.room-stage .room-card.caring .room-information{display:none}
.cloud-meal-text{white-space:pre-line;text-align:center;padding:24px;background:#fff5e2;border-radius:24px;line-height:2}
@media(max-width:650px){.room-stage .room-talk-stack>.speech-bubble{padding:10px 13px;font-size:.75rem}.room-stage .room-information>.info-bubble{padding:12px 10px}.room-stage .meal-bubble span{font-size:.77rem}.room-stage .meal-bubble em{font-size:.56rem}.room-stage .event-bubble p{font-size:.69rem}.room-stage .info-bubble small{font-size:.56rem}}
/* Simple soft speech shapes and a compact care menu. */
.room-stage .speech-bubble::before,.room-stage .info-bubble::before{display:none!important;content:none!important;box-shadow:none}
.room-stage .room-talk-stack>.speech-bubble,.room-stage .room-information>.info-bubble{border:1px solid #e6dccb;border-radius:24px;padding:12px 16px;box-shadow:0 4px 12px #8b705012}
.room-stage .room-talk-stack>.speech-bubble{background:#fffdf8;color:#5d6b57;font-size:.88rem;line-height:1.5}
.room-stage .room-information>.meal-bubble{background:#fff8eaf5}.room-stage .room-information>.event-bubble{background:#f2f7ecf5}
.room-stage .speech-bubble::after{width:18px;height:15px;left:27%;bottom:-13px;transform:rotate(22deg)}
.room-stage .meal-bubble::after,.room-stage .event-bubble::after{width:18px;height:15px}
.room-stage .room-card:not(.caring) #care-panel{left:calc((100% - var(--schedule-width) - 28px)/2);right:auto;width:min(680px,calc(100% - var(--schedule-width) - 44px));transform:translateX(-50%);padding:8px 10px;border-radius:20px;background:rgb(255 249 235 / 52%);box-shadow:0 4px 12px #816b4510}
.room-stage .room-card:not(.caring) .care-heading{margin:0 2px 5px;gap:5px;font-size:.65rem}.room-stage .room-card:not(.caring) .care-heading>small{display:none}
.room-stage .room-card:not(.caring) .care-buttons{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.room-stage .room-card:not(.caring) .care-buttons button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;min-height:52px;padding:5px 4px;border-radius:13px;box-shadow:0 2px 0 #cbb48d35;font-size:.73rem}
.room-stage .room-card:not(.caring) .care-buttons button>span:not(.ui-icon){font-size:.73rem;line-height:1.3;text-align:left}.room-stage .room-card:not(.caring) .care-buttons button>small{display:none}
.room-stage .room-card:not(.caring) .care-buttons .ui-icon{width:28px;height:28px;flex:0 0 28px}
@media(max-width:1050px){.room-stage .room-card:not(.caring) #care-panel{left:50%;right:auto;width:min(640px,calc(100% - 56px))}}
@media(max-width:650px){.room-stage .room-talk-stack>.speech-bubble,.room-stage .room-information>.info-bubble{padding:10px 12px;border-radius:20px}.room-stage .room-talk-stack>.speech-bubble{font-size:.76rem}.room-stage .room-card:not(.caring) #care-panel{width:min(300px,calc(100% - 54px));padding:7px 8px}.room-stage .room-card:not(.caring) .care-buttons{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.room-stage .room-card:not(.caring) .care-buttons button{min-height:48px}.room-stage .room-card:not(.caring) .care-buttons .ui-icon{width:25px;height:25px;flex-basis:25px}.room-stage .room-card:not(.caring) .care-buttons button>span:not(.ui-icon){font-size:.67rem}}
.room-stage .speech-bubble::after{left:24%;bottom:-16px;transform:rotate(28deg)}

.room-stage .room-card.greeting-response .room-information{display:none}
.room-stage .speech-bubble::after{left:24%;bottom:-16px;transform:rotate(28deg)}
/* App-bundled OFL handwriting; no system font installation or remote font request. */
/* Gaegu is registered from bundled binary bytes by bubble-font.js. */
/* Each painted image contains one continuous body/tail. Nine-slice keeps its corners and tail stable. */
.room-stage .room-talk-stack>.speech-bubble{border:1px solid transparent!important;border-image:url('../assets/ui/speech-painted.png') 100 180 180 650 fill / 12px 20px 25px 72px / 0 stretch!important;border-radius:0!important;background:none!important;box-shadow:none!important;padding:14px 19px 28px;min-height:82px;color:#715b48;font-family:MongleGaegu,sans-serif!important;font-size:1.4rem;font-weight:400!important;line-height:1.18;letter-spacing:0;font-synthesis:none}
.room-stage .room-information>.info-bubble{border:1px solid transparent!important;border-radius:0!important;background:none!important;box-shadow:none!important;padding:14px 20px 23px;min-height:96px}
.room-stage .room-information>.meal-bubble{border-image:url('../assets/ui/speech-painted-left.png') 100 180 100 220 fill / 12px 20px 12px 26px / 0 stretch!important;padding-left:30px;padding-bottom:15px}
.room-stage .room-information>.event-bubble{border-image:url('../assets/ui/speech-painted-right.png') 100 220 100 180 fill / 12px 26px 12px 20px / 0 stretch!important;padding-right:30px;padding-bottom:15px}
.room-stage .speech-bubble::before,.room-stage .speech-bubble::after,.room-stage .info-bubble::before,.room-stage .info-bubble::after{content:none!important;display:none!important}
.room-stage .meal-bubble span{font-family:MongleGaegu,sans-serif;font-size:1.3rem;font-weight:400;line-height:1.18;letter-spacing:0;font-synthesis:none}
/* Left-align the short care dock with the main activity navigation. */
.room-stage .room-card:not(.caring) #care-panel{left:16px;right:auto;transform:none}
.room-stage .room-card:not(.caring) .care-heading{margin:1px 2px 8px;font-size:1rem}
.care-friend-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;min-width:0}.care-friend-label{font-size:.88rem;color:#69785f}.care-friend-name{font-size:1.28rem;font-weight:900;color:#39634d;line-height:1.3;overflow-wrap:anywhere}.active-care-friend{font-size:1.12rem;margin-left:8px;color:#426b53}
@media(max-width:1050px){.room-stage .room-card:not(.caring) #care-panel{left:16px;transform:none}}
@media(max-width:650px){.room-stage .room-card:not(.caring) #care-panel{left:10px;transform:none}.care-friend-heading{gap:4px 8px}.care-friend-label{font-size:.72rem}.care-friend-name{font-size:1.04rem}.room-stage .room-talk-stack>.speech-bubble{font-size:1.23rem;padding:10px 14px 27px;min-height:78px}.room-stage .meal-bubble span{font-size:1.15rem}.room-stage .room-information>.info-bubble{padding-top:12px;min-height:85px}}
.care-friend-name{font-size:clamp(18px,1.28rem,24px)}
@media(max-width:650px){.care-friend-label{font-size:12px}.care-friend-name{font-size:18px}}
/* Cozy compact meal card and a reward that rises from Mongle. */
dialog[data-view="meal"]{width:min(390px,calc(100vw - 28px));padding:22px;border-radius:30px;border:2px solid #f1dfc3;box-shadow:0 16px 60px #68472c26}
dialog[data-view="meal"] .dialog-top{margin-bottom:12px;padding-bottom:12px;gap:12px}
dialog[data-view="meal"] h2{font-size:1.2rem;color:#715b48}
dialog[data-view="meal"] .dialog-top button{padding:8px 13px;min-height:40px}
dialog[data-view="meal"] .cloud-meal-text{margin:10px 0;padding:17px 14px;background:#fff2d9;border:1px dashed #e5cfa7;border-radius:22px;font-size:1rem;line-height:1.85}
.meal-footer{font-family:MongleGaegu,sans-serif;text-align:center;color:#8a7356;font-size:1.1rem;margin:12px 0 0}
.care-heart-rise{position:fixed;z-index:100;pointer-events:none;width:78px;height:74px;transform:translate(-50%,-50%);filter:drop-shadow(0 3px 4px #ba63764d);animation:care-heart-rise 2.2s ease-out both}
.care-heart-rise svg{width:100%;height:100%}
@keyframes care-heart-rise{0%{opacity:0;transform:translate(-50%,-20%) scale(.65)}15%{opacity:1;transform:translate(-50%,-65%) scale(1.08)}65%{opacity:1}100%{opacity:0;transform:translate(-35%,-210%) scale(.9)}}
@media(prefers-reduced-motion:reduce){.care-heart-rise{animation:none;opacity:1}}
html[data-motion="reduce"] .care-heart-rise{animation:none;opacity:1}
.room-stage .room-information>.meal-bubble[hidden]{display:none!important}

/* An unboxed handwritten dedication directly beneath the welcome title. */
.adoption .intro>.intro-message{display:block;position:relative;z-index:1;width:fit-content;max-width:100%;margin:18px 0 0 8px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;font-family:MongleGaegu,sans-serif;font-size:1.45rem;font-weight:400;line-height:1.55;letter-spacing:.02em;color:#735c49;text-shadow:0 1px 8px #fffaf0}
@media(max-width:650px){.adoption .intro>.intro-message{margin:13px 0 0 6px;font-size:1.18rem;line-height:1.45}.adoption .intro-pet{height:60%;left:6%;right:0}}
/* A clearer welcome: soft stitched title and generously sized handwriting. */
.adoption .intro>.welcome-pill{position:relative;display:flex;width:fit-content;gap:12px;padding:16px 24px;border:2px solid #fffdf5;border-radius:28px;background:linear-gradient(145deg,#fffdf3,#f7ecd6);color:#45664f;font-size:clamp(25px,2.2vw,34px);line-height:1.25;box-shadow:0 5px 14px #926c4c15,inset 0 0 0 5px #f1e4c9}
.adoption .intro>.welcome-pill::after{content:'';position:absolute;inset:7px;border:1px dashed #c1cfad;border-radius:20px;pointer-events:none}
.adoption .welcome-pill>.ui-icon{flex:none;width:43px;height:43px;padding:5px;border-radius:50%;background:#fce4c8}
.adoption .intro>.intro-message{font-size:clamp(30px,2.5vw,38px);line-height:1.4;letter-spacing:0;color:#5c4635;margin-top:24px;text-shadow:0 1px 3px #fff8ea,0 0 12px #fff8eacc;-webkit-text-stroke:.25px currentColor}
.adoption .setup-card>h2{color:#45664f;font-size:1.7rem;letter-spacing:-.035em}
@media(max-width:650px){.adoption .intro{min-height:430px}.adoption .intro>.welcome-pill{font-size:22px;gap:9px;padding:13px 17px;border-radius:24px}.adoption .welcome-pill>.ui-icon{width:35px;height:35px}.adoption .intro>.intro-message{font-size:25px;line-height:1.35;margin-top:20px;margin-left:6px}.adoption .intro-pet{height:55%}}
