/* A calmer HuLu: the existing routes and page layout stay intact. */
:root {
  --cozy-paper: #fffaf2;
  --cozy-surface: #fffdf8;
  --cozy-ink: #513d30;
  --cozy-muted: #806e60;
  --cozy-coral: #bb6847;
  --cozy-sage: #dfe9d5;
  --cozy-line: rgba(121, 83, 54, .14);
  --cozy-shadow: 0 5px 18px rgba(97, 68, 45, .075);
  --cozy-ease: cubic-bezier(.2, .8, .25, 1);
}

html, body, #app { background: var(--cozy-paper) !important; }
.paper-bg { opacity: .06; }
.dots-bg { opacity: .18; }
.screen:not(#s-pet) { color: var(--cozy-ink); }
.screen-header { border-bottom: 1px solid var(--cozy-line); background: var(--cozy-paper); }
.scr-title, .pg-head h2 { color: var(--cozy-ink); }
.scr-title small, .pg-head .sub { color: var(--cozy-muted); transform: none; }
.back-btn, .pt-back { background: var(--cozy-surface); border: 1px solid var(--cozy-line); box-shadow: none !important; }
.label, .alb-section-title, .diary-history .label { color: var(--cozy-ink); }
.soft-help, .longpress-hint, .empty-state .hint { color: var(--cozy-muted); }

/* The original home hierarchy, with the daily note as its one illustration. */
#s-home .pet-greet-bar {
  background: #fff0dc !important; border: 1px solid var(--cozy-line) !important;
  border-radius: 18px; box-shadow: var(--cozy-shadow);
}
#s-home .pgb-user { background: var(--cozy-surface) !important; box-shadow: none; }
#s-home .pet-card {
  background: var(--cozy-surface) !important; border: 1px solid var(--cozy-line) !important;
  border-radius: 20px; box-shadow: var(--cozy-shadow) !important;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
#s-home .pet-card::before { display: none; }
#s-home .pet-av { border-color: #efc79c; box-shadow: 0 3px 11px rgba(116, 72, 42, .12); }
#s-home .profile-chip { min-height: 36px; padding: 7px 12px; }
#s-home .stat { background: #fbf4e8; border-color: rgba(144, 102, 68, .12); }
#s-home .stat .n { color: #ab6339; }
#s-home .hm-hero, #s-home .hm-hero.opened {
  background-image: linear-gradient(90deg, rgba(255, 245, 225, .96) 0%, rgba(255, 241, 217, .88) 48%, rgba(255, 237, 207, .12) 100%), url('/static/assets/daily-note-envelope.png');
  background-position: center, center right; background-size: cover, cover;
  border: 1px solid rgba(178, 117, 65, .17); border-radius: 20px;
  box-shadow: 0 8px 23px rgba(126, 82, 44, .11) !important;
}
#s-home .hm-hero-inner { position: relative; z-index: 1; min-height: 166px; padding: 18px 20px; }
#s-home .hm-hero-title { font-family: 'PingFang SC', -apple-system, sans-serif; font-style: normal; font-size: 20px; font-weight: 700; max-width: 72%; }
#s-home .hm-hero-sub { max-width: 70%; color: #725642; }
#s-home .hm-hero-pill { background: rgba(255, 253, 248, .83); color: #87512f; }
#s-home .hm-hero-cta { background: #fffdf8; color: #a85c35; box-shadow: 0 3px 9px rgba(119, 71, 37, .1); }
#s-home .hm-hero-deco { display: none; }
#s-home .hm-hero-lucky { max-width: 78%; }
#s-home .hm-hero-lucky .lx { background: rgba(255, 253, 248, .83); box-shadow: none; }
#s-home .hm-row-head h4 { font-family: 'PingFang SC', -apple-system, sans-serif; font-style: normal; font-weight: 700; letter-spacing: 0; }
#s-home .hm-mem-empty { background: #fffdf8; border-color: #e6cbb0; color: #927862; font-family: 'PingFang SC', -apple-system, sans-serif; font-size: 13px; }
#s-home .hm-mem-item { box-shadow: 0 3px 10px rgba(97, 68, 45, .12); }
#s-home .hm-feat { border-radius: 16px; box-shadow: var(--cozy-shadow) !important; padding: 16px; }
#s-home .hm-feat.comic { background: #fbe1c6; }
#s-home .hm-feat.diary { background: #e2ebd6; }
#s-home .hm-feat.letter { background: #f8e3df; }
#s-home .hm-feat.card { background: #e6e4ee; }
#s-home .hm-feat-em { font-size: 25px; }
#s-home .hm-feat-nm, #s-home .hm-tl-nm { font-family: 'PingFang SC', -apple-system, sans-serif; font-style: normal; font-weight: 700; }
#s-home .hm-timeline { background: var(--cozy-surface); border-color: var(--cozy-line); box-shadow: var(--cozy-shadow) !important; border-radius: 16px; }
#s-home .hm-tl-em { background: #efe4d2; box-shadow: none !important; }

/* One common touch language across creation, collection, account and purchase flows. */
.btn-primary, .mem-btn-buy, .pw-cta, .rd-submit { background: #c7764d !important; border: 0; color: #fff; box-shadow: 0 5px 12px rgba(171, 91, 50, .17) !important; text-shadow: none; }
.btn-cream, .mem-btn-restore { background: #fffdf8 !important; border: 1px solid var(--cozy-line); box-shadow: none !important; }
.chip, .style-chip { background: #fffdf8; border-color: var(--cozy-line); box-shadow: none; }
.chip.on, .style-chip.selected { background: #e4eedc; color: #3f6044; border-color: #c2d3b9; box-shadow: none; text-shadow: none; }
.text-area, .rd-input, .chat-inp .inp, .field-plain input, .date-pair input {
  background: #fffefa; border-color: #dec8b4; color: var(--cozy-ink);
  box-shadow: inset 0 1px 2px rgba(92, 62, 42, .035);
}
.text-area:focus, .rd-input:focus, .chat-inp .inp:focus, .field-plain input:focus {
  outline: none; border-color: #b66b47; box-shadow: 0 0 0 3px rgba(190, 111, 72, .13);
}
.photo-up, .empty-state, .orient-card, .card-prev, .album-card, .alb-card,
.diary-item, .letter, .info-block, .set-group, .mem-perks {
  border-color: var(--cozy-line) !important; box-shadow: var(--cozy-shadow) !important;
}
.photo-up, .empty-state { background: #fffdf8; }
.photo-up.has-photo { background: #fffdf8; }
.orient-card.selected { border-color: #ba774e !important; background: #fff8ed; }
#s-comic-orient .orient-card.v .preview-wrap { height: min(34vh, 270px); aspect-ratio: auto; }
#s-comic-orient .orient-card.v .preview-wrap img { object-fit: contain; }
#s-comic-orient .orient-cta-wrap { position: sticky; bottom: 0; z-index: 2; background: var(--cozy-paper); }
.diary-item, .letter, .alb-card, .set-group, .mem-perks { background: var(--cozy-surface) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.diary-item p { font-family: 'PingFang SC', -apple-system, sans-serif; font-size: 14px; line-height: 1.75; }
.diary-item .tag { background: #f7e5df; color: #a35b4b; box-shadow: none; }
.mood.on { background: #e4eedc; border-color: #bfd2b5; }
.envelope-unopened { background: #f7d4ac; box-shadow: var(--cozy-shadow); }
.envelope-unopened h3, .envelope-unopened p { color: var(--cozy-ink); text-shadow: none; }
.envelope-unopened {
  min-height: 256px; height: auto; padding: 24px; align-items: flex-start; justify-content: flex-end;
  background-image: linear-gradient(90deg, rgba(255, 246, 228, .95), rgba(255, 244, 222, .65) 55%, rgba(255, 244, 222, .05)), url('/static/assets/daily-note-envelope.png');
  background-size: cover; background-position: center right;
  border: 1px solid rgba(178, 117, 65, .2); border-radius: 18px;
}
.envelope-unopened .big-seal { display: none; }
.envelope-unopened h3 { font-family: 'PingFang SC', -apple-system, sans-serif; font-style: normal; font-weight: 700; }
.envelope-unopened p { font-family: 'PingFang SC', -apple-system, sans-serif; font-size: 13px; }
.chat-head, .chat-inp { background: var(--cozy-paper); border-color: var(--cozy-line); }
.chat-body { background: #fffaf2; }
.msg.pet { background: #fffdf8; border-color: var(--cozy-line); box-shadow: var(--cozy-shadow); }
.msg.me { background: #f2d5bd; color: #513d30; box-shadow: none; }
.date-div { background: transparent; border: 0; color: var(--cozy-muted); }
.chat-inp .sd, .fab-add { background: #c7764d; box-shadow: 0 4px 11px rgba(171, 91, 50, .18); }
.ai-hero { border-color: var(--cozy-line) !important; box-shadow: var(--cozy-shadow) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.prof-hero { background: #f0dfcc; }
.set-row .sic { background: #f6ead9 !important; border: 0; box-shadow: none !important; }
.set-row:nth-child(2n) .sic { background: #e5ecdf !important; }
.set-row .nm { color: var(--cozy-ink); }
.coin-card { background: #f5d8b9; box-shadow: var(--cozy-shadow) !important; }
.coin-card .btn-x { background: rgba(255, 253, 248, .75); }
.mem-status-card { box-shadow: var(--cozy-shadow) !important; }
.mem-status-locked, .mem-status-pro { background: #f8e7ce !important; }
.mem-perk-ic { background: #f6ead9; }
.pw-card, .rd-card, .about-card, .card-editor-panel { background: var(--cozy-paper); box-shadow: 0 -8px 28px rgba(70, 48, 34, .13); }
.navbar { background: rgba(255, 250, 242, .97) !important; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.toast { background: #fffdf8; border-color: var(--cozy-line); color: var(--cozy-ink); }

.btn, .chip, .style-chip, .back-btn, .pet-greet-bar, .pet-card, .hm-hero,
.hm-feat, .hm-timeline, .set-row, .alb-card, .orient-card, .mem-btn-buy,
.pw-cta, .navbar .tab, .fab-add, .coin-card .btn-x {
  transition: transform .23s var(--cozy-ease), box-shadow .23s var(--cozy-ease), background-color .23s ease, border-color .23s ease;
}
.btn:active, .chip:active, .style-chip:active, .mem-btn-buy:active, .pw-cta:active { transform: translateY(1px) scale(.975); }
.hm-hero:active, .hm-feat:active, .hm-timeline:active, .set-row:active, .alb-card:active { transform: scale(.985); }
button:focus-visible, [role="button"]:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #ac6845; outline-offset: 2px; }

@media (max-width: 380px) {
  #s-home .pet-card { padding: 13px; }
  #s-home .pet-card .hd { gap: 8px; }
  #s-home .pet-av { width: 55px; height: 55px; border-radius: 16px; }
  #s-home .pet-card h3 { font-size: 18px; line-height: 1.2; white-space: nowrap; }
  #s-home .pet-card .sub-in { font-size: 12px; line-height: 1.35; }
  #s-home .profile-chip { padding: 6px 8px; min-height: 32px; }
  #s-home .hm-hero-title { max-width: 78%; font-size: 18px; }
  #s-home .hm-hero-sub { max-width: 76%; }
  #s-home .hm-hero-lucky { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .style-chip, .hm-hero, .hm-feat, .set-row, .navbar .tab { transition-duration: .01ms !important; }
}

/* Daily note: reveal in a light sheet; history remains on the page. */
.fortune-inner { padding: 20px 20px 34px; }
.envelope-unopened { display: flex; flex-direction: column; width: 100%; text-align: left; cursor: pointer; }
.envelope-unopened:active { transform: scale(.985); }
.fortune-today { display: flex; align-items: center; width: 100%; gap: 15px; padding: 18px; border: 1px solid var(--cozy-line); border-radius: 16px; background: #fffdf8; color: var(--cozy-ink); box-shadow: var(--cozy-shadow); text-align: left; }
.fortune-today-seal { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; background: #f7dfca; color: #bb7353; font-size: 28px; }
.fortune-today-copy, .fortune-history-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.fortune-today-copy strong { font-size: 15px; }
.fortune-today-copy small { color: var(--cozy-muted); font-size: 12px; }
.fortune-today-arrow, .fortune-history-arrow { margin-left: auto; color: #a78067; font-size: 23px; }
.fortune-history-head { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 1px 12px; }
.fortune-history-head h3 { margin: 0; color: var(--cozy-ink); font-size: 17px; }
.fortune-history-head span { color: var(--cozy-muted); font-size: 12px; }
.fortune-history { display: grid; gap: 9px; }
.fortune-history-item { display: flex; align-items: center; width: 100%; min-height: 72px; gap: 13px; padding: 12px 14px; border: 1px solid var(--cozy-line); border-radius: 13px; background: #fffdf8; color: var(--cozy-ink); text-align: left; box-shadow: 0 2px 9px rgba(97, 68, 45, .045); }
.fortune-history-item:active, .fortune-today:active { transform: scale(.985); }
.fortune-history-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 11px; background: #e4eadc; color: #71836b; font-size: 18px; }
.fortune-history-copy strong { font-size: 13px; }
.fortune-history-copy small { overflow: hidden; color: var(--cozy-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.fortune-history-status, .fortune-history-retry { padding: 16px 2px; color: var(--cozy-muted); font-size: 13px; text-align: center; }
.fortune-history-retry { width: 100%; border: 0; background: transparent; }
.fortune-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; pointer-events: none; }
.fortune-modal.show { visibility: visible; pointer-events: auto; }
.fortune-modal-mask { position: absolute; inset: 0; background: rgba(46, 35, 29, .45); opacity: 0; transition: opacity .32s ease; }
.fortune-modal.show .fortune-modal-mask { opacity: 1; }
.fortune-modal-sheet { position: relative; width: min(100%, 520px); max-height: min(90dvh, 740px); overflow: auto; padding: 28px 23px calc(28px + var(--safe-bottom)); border-radius: 24px 24px 0 0; background: #fff9ed; box-shadow: 0 -12px 38px rgba(46, 35, 29, .2); transform: translateY(105%); transition: transform .44s cubic-bezier(.2, .85, .22, 1); }
.fortune-modal.show .fortune-modal-sheet { transform: translateY(0); }
.fortune-modal-close { position: absolute; top: 17px; right: 18px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: #f1e5d8; color: #775843; font-size: 25px; line-height: 1; }
.fortune-modal-kicker { color: #a77553; font-size: 12px; font-weight: 700; }
.fortune-modal-sheet h2 { margin: 8px 0 21px; color: var(--cozy-ink); font-size: 23px; line-height: 1.3; }
.fortune-note-paper { padding: 26px 21px 22px; border: 1px solid #ecdac3; border-radius: 10px; background: #fffdfa; box-shadow: 0 7px 18px rgba(121, 85, 58, .09); }
.fortune-note-message { margin: 0 0 25px; color: #644a3b; font-size: 18px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.fortune-note-luck { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding-top: 17px; border-top: 1px solid #eadbca; }
.fortune-note-luck div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.fortune-note-luck small { color: #99816d; font-size: 11px; }
.fortune-note-luck strong { color: #805a43; font-size: 13px; overflow-wrap: anywhere; }
.fortune-note-sign { margin-top: 23px; color: #a17558; font-size: 13px; text-align: right; }
.fortune-modal-done { width: 100%; min-height: 48px; margin-top: 21px; border: 0; border-radius: 13px; background: #c7764d; color: white; font-size: 15px; font-weight: 700; }
@media (min-width: 640px) { .fortune-modal { align-items: center; } .fortune-modal-sheet { border-radius: 20px; padding-bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .fortune-modal-mask, .fortune-modal-sheet { transition-duration: .01ms; } }

/* Empty and unavailable states belong to the page, not a floating white slab. */
.empty-state { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 40px 20px 36px; }
.empty-state .em { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 19px; background: #f4e8d8; font-size: 34px; filter: none; }
.empty-state h4 { font-family: 'PingFang SC', -apple-system, sans-serif; font-size: 18px; color: var(--cozy-ink); letter-spacing: 0; }
.empty-state .cta { min-height: 42px; padding: 10px 20px; border-radius: 12px; background: #c7764d; color: #fff; box-shadow: 0 4px 12px rgba(171, 91, 50, .16); letter-spacing: 0; }
#s-letter.is-empty .fab-add { display: none; }
#s-letter .fab-add, #s-album-detail .fab-add { bottom: calc(28px + var(--safe-bottom)); border: 0; }
.mem-btn-buy:disabled, .pw-cta:disabled { background: #eee8df !important; color: #8b7c70 !important; box-shadow: none !important; }

/* Memorial card templates preview the actual photograph and match export colors. */
#s-card .card-prev { border-radius: 12px; border-color: rgba(105, 74, 51, .16) !important; box-shadow: 0 12px 30px rgba(91, 60, 39, .15) !important; }
#s-card .card-prev::after { content: ''; position: absolute; inset: 12px; z-index: 2; border: 1.5px solid rgba(255, 250, 239, .78); border-radius: 3px; pointer-events: none; }
#s-card .card-prev .c-text { z-index: 3; padding: 17px 29px 30px; gap: 5px; }
#s-card .card-prev h3 { font-family: 'PingFang SC', -apple-system, sans-serif; font-size: 28px; font-style: normal; font-weight: 700; letter-spacing: 0; }
#s-card .card-prev .dates { font-family: 'PingFang SC', -apple-system, sans-serif; font-size: 12px; font-style: normal; letter-spacing: 0; }
#s-card .card-prev .msg-cn { font-family: 'PingFang SC', -apple-system, sans-serif; font-size: 16px; line-height: 1.6; letter-spacing: 0; overflow-wrap: anywhere; white-space: pre-line; }
#s-card .card-prev .brand { font-family: 'PingFang SC', -apple-system, sans-serif; font-size: 10px; font-style: normal; letter-spacing: 0; background: rgba(255,255,255,.18); }
#s-card .card-prev.tpl-a .c-mask { background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(217,149,93,.25) 65%, rgba(101,62,39,.88) 100%); }
#s-card .card-prev.tpl-b .c-mask { background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(128,167,169,.23) 65%, rgba(48,81,79,.87) 100%); }
#s-card .card-prev.tpl-c .c-mask { background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(201,131,126,.23) 65%, rgba(112,61,65,.87) 100%); }
#s-card .card-prev.tpl-d .c-mask { background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(139,166,116,.23) 65%, rgba(61,80,56,.87) 100%); }
#s-card .card-prev.tpl-e .c-mask { background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(152,134,162,.23) 65%, rgba(74,61,91,.87) 100%); }
#s-card .tpl-row { gap: 11px; padding-top: 5px; padding-bottom: 5px; }
#s-card .tpl { width: 55px; height: 74px; padding: 0; border-radius: 7px; overflow: hidden; background: #e1d1c0; box-shadow: 0 3px 9px rgba(74, 49, 34, .12); }
#s-card .tpl img { display: block; width: 100%; height: 100%; object-fit: cover; }
#s-card .tpl::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(101,62,39,.76)); pointer-events: none; }
#s-card .tpl-b::after { background: linear-gradient(180deg, transparent 32%, rgba(48,81,79,.76)); }
#s-card .tpl-c::after { background: linear-gradient(180deg, transparent 32%, rgba(112,61,65,.76)); }
#s-card .tpl-d::after { background: linear-gradient(180deg, transparent 32%, rgba(61,80,56,.76)); }
#s-card .tpl-e::after { background: linear-gradient(180deg, transparent 32%, rgba(74,61,91,.76)); }
#s-card .tpl span { position: absolute; bottom: 8px; left: 0; right: 0; z-index: 1; color: white; font-size: 11px; text-align: center; }
#s-card .tpl.on { border-color: #bd7049; box-shadow: 0 0 0 2px #fffaf2, 0 0 0 4px #bd7049; transform: translateY(-2px); }

/* The letter composer is a warm sheet; the photo viewer keeps its dark treatment. */
#letter-editor { z-index: 1000; flex-direction: row; align-items: flex-end; justify-content: center; background: rgba(49, 37, 30, .44); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
#letter-editor .letter-sheet { position: relative; width: min(100%, 520px); max-height: 90dvh; overflow: auto; padding: 30px 22px calc(25px + var(--safe-bottom)); border-radius: 24px 24px 0 0; background: #fff9ee; box-shadow: 0 -14px 36px rgba(49, 37, 30, .17); animation: letterSheetIn .38s cubic-bezier(.2,.85,.22,1) both; }
@keyframes letterSheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
#letter-editor .letter-close { position: absolute; top: 17px; right: 18px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: #f1e5d8; color: #775843; font-size: 25px; line-height: 1; }
#letter-editor .letter-kicker { color: #a77553; font-size: 12px; font-weight: 700; }
#letter-editor h3 { margin: 7px 0 19px; color: var(--cozy-ink); font-size: 23px; }
#letter-editor .text-area { display: block; width: 100%; min-height: 220px; margin-bottom: 16px; padding: 18px; border: 1px solid #e8d9c8; border-radius: 13px; background: #fffdf8; color: var(--cozy-ink); font-size: 15px; line-height: 1.7; resize: vertical; }
#letter-editor .text-area:focus { border-color: #bb815e; outline: 2px solid rgba(187, 129, 94, .28); outline-offset: 1px; box-shadow: none; }
#letter-editor #letter-send-btn { min-height: 48px; border-radius: 13px; }
@media (min-width: 640px) { #letter-editor { align-items: center; } #letter-editor .letter-sheet { border-radius: 20px; padding-bottom: 25px; } }
@media (prefers-reduced-motion: reduce) { #letter-editor .letter-sheet { animation-duration: .01ms; } }

/* Explicit, revocable permission before sending content to an AI provider. */
.ai-consent { position: fixed; inset: 0; z-index: 8500; display: none; align-items: flex-end; justify-content: center; }
.ai-consent.show { display: flex; }
.ai-consent-mask { position: absolute; inset: 0; background: rgba(45, 34, 28, .5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.ai-consent-sheet { position: relative; width: min(100%, 520px); max-height: 88dvh; overflow: auto; padding: 26px 21px calc(24px + var(--safe-bottom)); border-radius: 22px 22px 0 0; background: #fff9ee; box-shadow: 0 -12px 38px rgba(46, 35, 29, .2); animation: letterSheetIn .38s cubic-bezier(.2,.85,.22,1) both; }
.ai-consent-sheet h2 { margin: 0 0 10px; color: var(--cozy-ink); font-size: 21px; }
.ai-consent-sheet h2:focus { outline: none; }
.ai-consent-sheet p { margin: 0 0 15px; color: var(--cozy-muted); font-size: 13px; line-height: 1.65; }
.ai-consent-services { display: grid; gap: 9px; margin-bottom: 15px; }
.ai-consent-services > div { display: grid; gap: 5px; padding: 13px 14px; border: 1px solid var(--cozy-line); border-radius: 10px; background: #fffdf8; }
.ai-consent-services strong { color: var(--cozy-ink); font-size: 14px; }
.ai-consent-services span { color: var(--cozy-muted); font-size: 12px; line-height: 1.55; }
.ai-consent-sheet .ai-consent-purpose { margin-bottom: 6px; }
.ai-consent-link { margin: 0 0 17px; padding: 5px 0; border: 0; background: transparent; color: #a7603d; font-size: 13px; text-decoration: underline; }
.ai-consent-sheet .btn { min-height: 47px; margin-top: 9px; border-radius: 12px; }
@media (min-width: 640px) { .ai-consent { align-items: center; } .ai-consent-sheet { border-radius: 18px; padding-bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .ai-consent-sheet { animation-duration: .01ms; } }
