.jz-pet-house {
  --pet-paper: #f5f3ee;
  --pet-ink: #242824;
  --pet-muted: #656b63;
  --pet-line: #e1e3dc;
  --pet-green: #475c46;
  padding-block: clamp(28px, 5.8vw, 76px) clamp(60px, 8vw, 100px);
  color: var(--pet-ink);
}
.jz-pet-house [hidden] { display: none !important; }
.pet-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 38px; }
.pet-eyebrow { margin: 0 0 14px; color: var(--pet-muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; line-height: 1.5; }
.pet-heading h1 { font: 500 clamp(2.7rem, 7vw, 5.8rem)/1.06 Iowan Old Style, Palatino Linotype, Baskerville, "Songti SC", STSong, Georgia, serif; letter-spacing: -.045em; }
.pet-intro { margin: 0 0 3px; max-width: 30ch; font-size: 15px; line-height: 1.9; color: var(--pet-muted); }
.pet-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.pet-section-heading h2 { font-size: clamp(20px, 2.3vw, 26px); font-weight: 500; line-height: 1.4; letter-spacing: -.025em; }
.pet-section-heading p { margin: 0; color: var(--pet-muted); font-size: 13px; }
.pet-section-heading > span { color: #8b9087; font-size: 12px; }
.pet-species-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pet-species-card { display: flex; min-width: 0; flex-direction: column; align-items: stretch; overflow: hidden; padding: 0; border: 1px solid transparent; border-radius: 0; text-align: left; background: transparent; transition: border-color .18s, background-color .18s; }
.pet-species-card:hover { background: #f7f7f3; }
.pet-species-card[aria-pressed="true"] { border-color: var(--pet-green); background: #f2f4ee; }
.pet-species-card[aria-disabled="true"] .pet-species-picture { opacity: .72; }
.pet-sprite { background-repeat: no-repeat; background-size: 300% 200%; }
.pet-species-picture { display: block; width: 100%; aspect-ratio: 1; background-color: var(--pet-paper); }
.pet-species-copy { display: flex; flex-direction: column; gap: 3px; padding: 11px 10px 12px; }
.pet-species-copy strong { font-size: 15px; font-weight: 500; }
.pet-species-copy small { color: var(--pet-muted); font-size: 11px; line-height: 1.5; }
.pet-preview-badge { align-self: start; margin-top: 4px; padding: 2px 5px; background: #eeeae0; color: #716a59; font-size: 9px; line-height: 1.4; font-style: normal; }
.pet-adopt-form { display: flex; align-items: end; gap: 16px; margin-top: 24px; padding: 22px 24px; background: #f6f6f2; }
.pet-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 12px; color: var(--pet-muted); }
.pet-field input, .pet-field select, .pet-field textarea { display: block; min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #d8dcd2; border-radius: 2px; color: var(--pet-ink); background: #fff; font-size: 16px; line-height: 1.5; }
.pet-field textarea { min-height: 98px; resize: vertical; }
.pet-field input:focus-visible, .pet-field select:focus-visible, .pet-field textarea:focus-visible { outline: 2px solid var(--pet-green); outline-offset: 3px; }
.pet-field input::placeholder, .pet-field textarea::placeholder { color: #8b8e86; }
.pet-species-field { width: 170px; }
.pet-name-field { flex: 1; }
.pet-primary { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 46px; padding: 11px 24px; border-color: var(--pet-green); border-radius: 2px; background: var(--pet-green); color: #fff; white-space: nowrap; }
.pet-primary:hover { color: #fff; background: #344832; border-color: #344832; }
.pet-home { margin-top: clamp(36px, 6vw, 68px); }
.pet-roster { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
.pet-roster:empty { display: none; }
.pet-roster button { min-height: 42px; padding: 7px 17px; border-radius: 30px; font-size: 13px; background: #fff; border-color: var(--pet-line); }
.pet-roster button[aria-pressed="true"], .pet-roster button[aria-current="true"], .pet-roster button.is-active { background: var(--pet-green); color: #fff; border-color: var(--pet-green); }
.pet-roster button[aria-disabled="true"] { color: #8a8e84; border-style: dashed; }
.pet-empty { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 225px; padding: 30px 20px; border: 1px solid var(--pet-line); text-align: center; }
.pet-empty-mark { font-size: 33px; line-height: 1; color: #7b8a73; margin-bottom: 15px; }
.pet-empty h3 { font-size: 18px; }
.pet-empty p { color: var(--pet-muted); font-size: 14px; max-width: 44ch; }
.pet-active { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); background: var(--pet-paper); }
.pet-active-portrait { min-width: 0; display: flex; flex-direction: column; background: #eceee6; }
.pet-active-image { width: 100%; aspect-ratio: 1; }
.pet-portrait-caption { display: flex; justify-content: space-between; gap: 10px; padding: 11px 18px 13px; color: var(--pet-muted); font-size: 11px; border-top: 1px solid #dce0d5; }
.pet-active-copy { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3.6vw, 48px); background: repeating-linear-gradient(0deg, #d6cdb508 0 1px, transparent 1px 5px); transition: background-color .35s; }
.jz-pet-house[data-pet-nest="paper"] .pet-active { background: #faf9f5; }
.jz-pet-house[data-pet-nest="paper"] .pet-active-copy { background: linear-gradient(135deg, #fff8, #e8e8e022); }
.jz-pet-house[data-pet-nest="moss"] .pet-active { background: #e3e9dc; }
.jz-pet-house[data-pet-nest="moss"] .pet-active-copy { background: radial-gradient(ellipse at top right, #b4c1a955, transparent 72%); }
.jz-pet-house[data-pet-nest="twilight"] .pet-active-copy { background: linear-gradient(155deg, #2c3e45, #52645f); color: #f8f5ed; }
.jz-pet-house[data-pet-nest="twilight"] .pet-active-copy .pet-eyebrow,
.jz-pet-house[data-pet-nest="twilight"] .pet-response,
.jz-pet-house[data-pet-nest="twilight"] .pet-care-note { color: #d9e0d6; }
.pet-active-copy h3 { margin: 0; font: 500 clamp(2rem, 4vw, 3.7rem)/1.1 Iowan Old Style, Palatino Linotype, Baskerville, "Songti SC", STSong, Georgia, serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.pet-response { min-height: 3.5em; font-size: 15px; line-height: 1.8; color: #575f52; margin-top: 18px; }
.pet-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 25px; }
.pet-actions button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; min-height: 80px; padding: 12px 5px; background: #ffffffb8; border-color: #e0e3d9; border-radius: 2px; font-size: 12px; line-height: 1.4; }
.pet-actions button:hover { background: #fff; border-color: #9ba98f; }
.pet-actions button:active { transform: translateY(1px); }
.pet-actions button svg { color: #5c7050; }
.pet-care-note { margin-top: 16px; font-size: 11px; line-height: 1.8; color: var(--pet-muted); }
.pet-journal-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(40px, 6vw, 70px); }
.pet-journal, .pet-nest-section { min-width: 0; border-top: 1px solid var(--pet-line); padding-top: 22px; }
.pet-section-intro { color: var(--pet-muted); font-size: 14px; line-height: 1.8; margin-top: 0; margin-bottom: 20px; }
.pet-memory-form { margin-top: 18px; }
.pet-text-button { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding: 8px 0; margin: 6px 0 0 auto; border: 0; border-radius: 0; background: transparent; font-size: 13px; }
.pet-text-button:hover { background: transparent; text-decoration: underline; }
.pet-chat-reply { margin: 12px 0 20px; padding: 15px 17px; border-left: 2px solid #abb89f; background: #f4f6ef; color: #4c5f42; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.pet-memories { margin: 18px 0 0; padding: 0 0 0 17px; list-style: none; border-left: 1px solid var(--pet-line); max-height: 440px; overflow: auto; overscroll-behavior: contain; }
.pet-memories:empty { display: none; }
.pet-memories li { position: relative; padding: 0 4px 20px 6px; color: #4f584c; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.pet-memories li::before { content: ""; position: absolute; width: 6px; height: 6px; left: -21px; top: 8px; border-radius: 50%; background: #a9b39f; }
.pet-memories li:last-child { padding-bottom: 5px; }
.pet-memories time, .pet-memories small { display: block; color: #7b8276; font-size: 11px; }
.pet-memories p { margin-top: 4px; }
.pet-membership { padding: 20px; margin-top: 22px; border: 1px solid #dedfd4; }
.pet-membership-kicker { margin: 0 0 5px; color: #747e67; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.pet-membership h3 { font-size: 17px; }
.pet-membership p:not(.pet-membership-kicker) { font-size: 12px; line-height: 1.85; color: var(--pet-muted); }
.pet-membership button { min-height: 44px; margin-top: 16px; padding-inline: 16px; border-color: #bdc7b2; border-radius: 2px; font-size: 13px; }
.pet-membership button[aria-pressed="true"] { background: var(--pet-green); border-color: var(--pet-green); color: #fff; }
.pet-membership-status:empty { display: none; }
.pet-fine-print { margin-top: 12px; color: var(--pet-muted); font-size: 11px; line-height: 1.8; }
.pet-house-rules { margin-top: 30px; padding: 20px; background: #f5f6f1; }
.pet-house-rules h3 { font-size: 14px; margin: 0 0 10px; }
.pet-house-rules ul { margin: 0; padding-left: 17px; color: #626b5c; font-size: 12px; line-height: 1.85; }
.pet-house-rules li + li { margin-top: 8px; }
.pet-shop-link { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--pet-line); padding-top: 28px; margin-top: 44px; }
.pet-shop-link .pet-eyebrow { margin-bottom: 10px; font-size: 10px; }
.pet-shop-link h2 { font-size: 24px; font-weight: 500; }
.pet-shop-link p:not(.pet-eyebrow) { font-size: 13px; color: var(--pet-muted); margin-top: 9px; }
.pet-shop-link a { display: inline-flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 44px; padding-block: 8px; font-size: 13px; white-space: nowrap; }
.pet-notice { position: fixed; z-index: 60; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); width: max-content; max-width: min(430px, calc(100vw - 40px)); margin: 0; padding: 12px 18px; background: #263621; color: #fff; border-radius: 5px; box-shadow: 0 6px 30px #18281420; font-size: 13px; line-height: 1.6; transform: translateX(-50%); pointer-events: none; }
.pet-notice:empty { display: none; }
@media (max-width: 1000px) {
  .pet-species-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  .pet-species-copy { padding: 10px 12px; }
  .pet-species-copy small { font-size: 12px; }
  .pet-active-copy { padding: 25px; }
  .pet-portrait-caption { font-size: 10px; padding-inline: 12px; }
}
@media (max-width: 680px) {
  .pet-heading { display: block; margin-bottom: 31px; }
  .pet-heading h1 { font-size: 44px; }
  .pet-heading .pet-eyebrow { font-size: 10px; margin-bottom: 10px; }
  .pet-intro { max-width: 35ch; margin-top: 18px; font-size: 14px; line-height: 1.85; }
  .pet-section-heading { margin-bottom: 16px; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
  .pet-section-heading h2 { font-size: 21px; }
  .pet-section-heading p { font-size: 12px; }
  .pet-species-grid { gap: 8px; }
  .pet-species-copy { gap: 2px; padding: 9px 7px 10px; }
  .pet-species-copy strong { font-size: 14px; }
  .pet-species-copy small { font-size: 10px; }
  .pet-adopt-form { flex-wrap: wrap; gap: 12px; margin-top: 18px; padding: 17px; }
  .pet-species-field { flex: 0 0 95px; width: auto; }
  .pet-name-field { flex: 1 1 130px; }
  .pet-adopt-form .pet-primary { width: 100%; justify-content: space-between; }
  .pet-active { grid-template-columns: 1fr; }
  .pet-active-portrait { width: 100%; }
  .pet-active-copy { padding: 24px 20px 25px; }
  .pet-active-copy h3 { font-size: 38px; }
  .pet-response { min-height: 0; font-size: 14px; margin-top: 15px; }
  .pet-actions { gap: 8px; }
  .pet-actions button { min-height: 79px; font-size: 12px; }
  .pet-care-note { font-size: 11px; }
  .pet-journal-grid { grid-template-columns: 1fr; gap: 34px; }
  .pet-house-rules { margin-top: 24px; }
  .pet-roster { gap: 7px; }
  .pet-roster button { padding-inline: 13px; }
  .pet-shop-link { flex-direction: column; align-items: start; gap: 10px; margin-top: 34px; }
  .pet-shop-link h2 { font-size: 21px; }
  .pet-notice { bottom: max(18px, env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .pet-species-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pet-heading h1 { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) { .pet-species-card, .pet-active-copy { transition: none; } .pet-actions button:active { transform: none; } }
