/* Website layout only; the offline mini-tool retains its own container layout. */
body.site-responsive :is(button,input,select,textarea,a):focus-visible{outline:3px solid #9c7287;outline-offset:3px}
body.site-responsive :is(.account-card,.feed-app,.ootd-app,dialog){overflow-wrap:anywhere}
body.site-responsive .feed-bar{flex-wrap:wrap;gap:12px}
body.site-responsive .feed-app :is(input,textarea){min-width:0;max-width:100%}
body.site-responsive dialog{overscroll-behavior:contain}
@media(min-width:1000px){
 body.site-responsive{background:#f3edeb}
 body.site-responsive>header{max-width:1320px;padding:24px 32px}
 body.site-responsive>main:is(#journal,#cycle){max-width:1320px;padding:0 32px 64px}
 body.site-responsive :is(#journal,#cycle) .hero{padding:28px 0 16px}
 body.site-responsive :is(#journal,#cycle) .hero h1{font-size:38px;line-height:1.35}
 body.site-responsive :is(#journal,#cycle) .hero>p{max-width:820px}
 body.site-responsive :is(#journal,#cycle) .card{padding:28px;border-radius:22px}
 body.site-responsive :is(#journal,#cycle) :is(.tabs,.planner-nav){margin:16px 0 32px;padding:7px;border-radius:18px}
 body.site-responsive :is(#journal,#cycle) :is(.tabs,.planner-nav) button{font-size:15px;padding:12px 20px}
 /* Archive and writing surface form a single desktop workspace. */
 body.site-responsive #journal .journal-layout{grid-template-columns:minmax(290px,360px) minmax(0,1fr);gap:28px}
 body.site-responsive #journal .journal-archive{top:24px}
 body.site-responsive #journal .journal-items{max-height:calc(100dvh - 280px);min-height:220px;scrollbar-gutter:stable;overscroll-behavior:contain}
 body.site-responsive #journal .journal-paper{padding:36px 32px 28px}
 body.site-responsive #journal .journal-paper textarea[name=body]{min-height:380px;font-size:16px;line-height:2}
 body.site-responsive #journal .journal-fields{gap:20px}
 body.site-responsive #journal .journal-toolbar{gap:12px}
 body.site-responsive #journal .journal-item{padding:16px;font-size:14px;line-height:1.65}
 body.site-responsive #journal .layout-solid{grid-template-columns:1fr}
 body.site-responsive #journal .layout-solid .journal-item span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
 body.site-responsive #journal .planner:has(.planner-calendar){display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px;align-items:start}
 body.site-responsive #journal .planner:has(.planner-calendar)>.card{min-width:0}
 body.site-responsive #journal .planner-calendar{gap:8px}
 body.site-responsive #journal .planner-calendar button{min-height:58px;font-size:16px;border-radius:12px}
 body.site-responsive #journal #schedule-month{width:auto;flex:1;min-width:150px}
 body.site-responsive #journal .task-row{align-items:flex-start;padding:20px 0;flex-wrap:wrap}
 body.site-responsive #journal .task-row>.task-buttons{margin-left:auto;justify-content:flex-end}
 body.site-responsive #journal .planner:not(:has(.planner-calendar)) .task-row>.task-buttons{max-width:42%}
 body.site-responsive #journal :is(#task-filter,#priority-filter,#group-filter){flex:1;min-width:160px}
 body.site-responsive #journal .focus-card{max-width:760px;padding:36px 48px}
 body.site-responsive #journal .focus-clock{width:280px;height:280px;margin:36px auto;font-size:56px}
 body.site-responsive #journal .focus-chart{justify-content:space-between;gap:14px;padding:28px 8px;min-height:170px}
 body.site-responsive #journal label:has(>#focus-goal){max-width:320px}
 body.site-responsive #journal .focus-chart>div{flex:1;min-width:24px}
 /* Cycle calendar and check-in remain readable side by side. */
 body.site-responsive #cycle .grid{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:28px}
 body.site-responsive #cycle .choice-grid button{min-height:96px;font-size:13px;padding:12px 6px}
 body.site-responsive #cycle .calendar:not(.year-calendar .calendar) button{max-height:68px;min-height:44px}
 body.site-responsive #cycle .care-fields{display:block!important}
 body.site-responsive #cycle .choice-grid:has([data-choice=energy]){grid-template-columns:repeat(6,minmax(0,1fr))}
 body.site-responsive #cycle .grid>section:has(>.calendar){position:sticky;top:24px}
 body.site-responsive #cycle .care-fields>.checkin-group{grid-column:1/-1}
 body.site-responsive #cycle .cycle-statistics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}
 body.site-responsive #cycle .cycle-statistics>.card{min-width:0;margin:0}
 body.site-responsive #cycle .cycle-statistics>.card:first-child{grid-column:1/-1}
 body.site-responsive #cycle .trend-scroll svg{width:100%;height:auto}
 /* Homepage combines the reading area with a dedicated personal-tools column. */
 body.site-responsive>main:has(>#game){max-width:1280px;padding:24px 36px 48px;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);column-gap:36px;row-gap:24px;align-items:start;background:#fcf8f5}
 body.site-responsive>main:has(>#game)>header{grid-column:1/-1;grid-row:1;width:100%}
 body.site-responsive>main:has(>#game)>.intro{grid-column:1/-1;grid-row:2;padding:28px 0 24px}
 body.site-responsive>main:has(>#game)>:is(#game,#pending){grid-column:1;grid-row:3/5;min-width:0;width:100%}
 body.site-responsive>main:has(>#game)>.tidy-entry{grid-column:2;grid-row:3;margin:0;padding:24px;min-width:0;align-self:start}
 body.site-responsive>main:has(>#game)>.personal-space{grid-column:2;grid-row:4;margin:0;padding:24px;min-width:0;align-self:start}
 body.site-responsive>main:has(>#game)>footer{grid-column:1/-1;grid-row:5;margin:8px 0 0;padding-top:24px;max-width:none;line-height:1.9}
 body.site-responsive>main:has(>#game)>.contact-entry{grid-column:1/-1;max-width:520px;justify-self:center}
 body.site-responsive>main:has(>#game)>.personal-space .personal-space-links{grid-template-columns:1fr}
 body.site-responsive>main:has(>#game)>.tidy-entry .tidy-entry-art{max-width:130px;width:35%}
 body.site-responsive>main:has(>#game)>#game #result{font-size:16px;line-height:1.85}
 body.site-responsive>main:has(>#game):not(:has(>.tidy-entry)){display:block;max-width:920px}
 /* Keep modal editing tools at a comfortable width on large monitors. */
 body.site-responsive .account-shade .account-card{max-width:520px;padding:32px;max-height:calc(100dvh - 64px)}
 body.site-responsive>dialog{max-height:calc(100dvh - 64px);padding:28px}
 body.site-responsive>dialog:not(.care-share-dialog):not(.journal-share){max-width:600px}
 body.site-responsive>dialog:is(.care-share-dialog,.journal-share){max-width:680px}
 body.site-responsive .ootd-app{padding:24px 36px 48px}
 body.site-responsive .ootd-app :is(.ootd-nav,.ootd-layout,.ootd-save,.ootd-status,.ootd-archive){max-width:1240px}
 body.site-responsive .ootd-app .ootd-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:start}
 body.site-responsive .ootd-app .ootd-studio{position:sticky;top:20px}
 body.site-responsive .ootd-app .ootd-preview{max-width:520px;margin:auto}
 body.site-responsive .ootd-app .ootd-panel{padding:28px}
 body.site-responsive .ootd-app .ootd-shelf{grid-template-columns:repeat(5,minmax(0,1fr));max-height:280px}
 body.site-responsive .ootd-app .ootd-save{border-top:1px solid #e3d3ce;padding:20px 0}
 body.site-responsive .ootd-app .ootd-record{width:calc(33.333% - 12px)}
 body.site-responsive #tidy-app{max-width:1320px;padding:28px 36px 60px}
 body.site-responsive #tidy-app .house-play-layout{grid-template-columns:minmax(0,1.1fr) minmax(360px,1fr);gap:36px}
 body.site-responsive #tidy-app .house-task{min-width:0}
 body.site-responsive .feed-app{padding:28px max(32px,calc((100vw - 1100px)/2)) 60px}
 body.site-responsive .feed-app .feed-card{padding:32px}
 body.site-responsive .feed-app .feed-copy{max-width:78ch;font-size:16px;line-height:1.9}
 body.site-responsive .feed-app .feed-media{gap:16px}
 body.site-responsive .feed-app .feed-media :is(img,video){width:300px;max-width:100%;max-height:420px}
}
@media(min-width:1000px) and (max-height:800px){body.site-responsive .ootd-app .ootd-studio{position:static}body.site-responsive .ootd-app .ootd-preview{max-width:440px}body.site-responsive #journal .journal-archive{position:static}}
@media(prefers-reduced-motion:reduce){body.site-responsive *{scroll-behavior:auto}}

/* Taste + Impeccable refinement: cream canvas, clear actions, quiet tools. */
body.site-responsive{--ink:#20211f;--rose:#526744;--ui-cream:#faf5e7;--ui-pink:#f1b6d8;--ui-blue:#b7cbe9;--ui-yellow:#f5db70;--ui-sage:#a4b56c;background:var(--ui-cream);color:var(--ink)}
body.site-responsive>main:has(>#game){background:var(--ui-cream)}
body.site-responsive :is(#journal,#cycle) :is(h1,h2,h3,.big){font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);letter-spacing:-.025em}
body.site-responsive :is(#journal,#cycle) .hero{padding:10px 0 4px}
body.site-responsive :is(#journal,#cycle) .hero h1{font-size:clamp(26px,3vw,38px);font-weight:700;margin:6px 0}
body.site-responsive :is(#journal,#cycle) .hero p{margin:8px 0;line-height:1.6}
body.site-responsive :is(#journal,#cycle) :is(small,.muted,.privacy,.journal-caption){color:#68665e}
body.site-responsive :is(#journal,#cycle) .card{background:#fffdf7;border-color:#dedbce;box-shadow:none;border-radius:24px}
body.site-responsive :is(#journal,#cycle) :is(button,select,input,textarea){border-color:#c9c7bd}
body.site-responsive :is(#journal,#cycle) button{transition:background-color .15s,color .15s,border-color .15s}
body.site-responsive :is(#journal,#cycle) button.primary{background:#20211f;color:#fffdf7;border-color:#20211f;font-weight:600;border-radius:24px;padding-inline:22px}
body.site-responsive :is(#journal,#cycle) button.primary:hover{background:#41443b}
body.site-responsive :is(#journal,#cycle) :is(.tabs,.planner-nav){background:#eae7dc;margin:14px 0 24px;border-radius:18px}
body.site-responsive :is(#journal,#cycle) :is(.tabs,.planner-nav) button{color:#4f514a}
body.site-responsive :is(#journal,#cycle) :is(.tabs,.planner-nav) button.active{background:#20211f;color:#fffdf7;box-shadow:none}
body.site-responsive :is(button,input,select,textarea,a,summary):focus-visible{outline:3px solid #526744;outline-offset:3px}
body.site-responsive :is(#journal,#cycle) input[type=checkbox]{accent-color:#526744}
body.site-responsive :is(#journal,#cycle) .metrics>div{background:#edf0df;color:#353b2c}
body.site-responsive :is(#journal,#cycle) .metrics>div:nth-child(2){background:#e6edf8}
body.site-responsive :is(#journal,#cycle) .metrics>div:nth-child(3){background:#f8edba}
body.site-responsive :is(#journal,#cycle) .metrics strong{color:#20211f;font-variant-numeric:tabular-nums}
body.site-responsive #cycle .tint{background:#f5d5e7}
body.site-responsive #cycle .review-banner{background:#e4ecd1}
body.site-responsive #cycle .checkin-group{background:#efede4;padding:16px;border-radius:18px}
body.site-responsive #cycle .checkin-group legend{color:#44463d;margin-bottom:12px}
body.site-responsive #cycle .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body.site-responsive #cycle .choice-grid button{background:#fffdf8;overflow-wrap:normal;word-break:normal;justify-content:center;min-height:88px;font-size:13px;padding:10px 6px;color:#30332d}
body.site-responsive #cycle .choice-grid button[aria-pressed=true]{background:#f1b6d8;border:2px solid #775466;box-shadow:none}
body.site-responsive #cycle .choice-grid:has([data-choice=energy]) button[aria-pressed=true]{background:#dce7bf;border-color:#607547}
body.site-responsive #cycle .symptom-group .checks label:has(input:checked){background:#dce7bf;border-color:#607547;color:#293322}
body.site-responsive #cycle #care-share{background:#f8edba;color:#514526;border:1px solid #d6c477;border-radius:14px}
body.site-responsive #cycle .history-filter{color:#55584e}
body.site-responsive #cycle :is(#trend-filter,#symptom-filter,#review-period){background:#fffdf7}
body.site-responsive #journal .journal-paper input[name=title]{font-family:inherit;font-size:22px;font-weight:600;color:#20211f}
body.site-responsive #journal .journal-paper textarea[name=body]{font-size:16px;line-height:1.9;min-height:250px;color:#30332d;background:none}
body.site-responsive #journal .journal-empty{grid-column:1/-1;padding:20px 16px;background:#efede4;border-radius:16px;line-height:1.7}
body.site-responsive #journal .journal-item span{color:#52574d}
body.site-responsive #journal .journal-item.chosen{outline:2px solid #607547;outline-offset:-2px}
body.site-responsive #journal .paper-rose:not(.journal-paper){background-color:#f4d2e5!important}
body.site-responsive #journal .paper-sage:not(.journal-paper){background-color:#dfe7c8!important}
body.site-responsive #journal .paper-blue:not(.journal-paper){background-color:#d9e4f4!important}
body.site-responsive #journal .paper-sand:not(.journal-paper){background-color:#f7eab0!important}
body.site-responsive #journal .note-customize{border-block:1px solid #dedbce;margin-top:20px;padding:4px 0}
body.site-responsive #journal .note-customize>summary{padding:12px 0;cursor:pointer;font-size:14px;font-weight:600}
body.site-responsive #journal .note-options{border:0;padding:0;margin:0}
body.site-responsive #journal [hidden]{display:none!important}
body.site-responsive #journal .focus-clock{color:#20211f;border-color:#b7cbe9;background:#f8f6ed}
body.site-responsive #journal .planner-calendar .active{background:#20211f;color:#fffdf7}
body.site-responsive :is(.care-share-dialog,.journal-share){background:#fffdf7;color:#20211f}
body.site-responsive .care-share-dialog .share-heading{background:#fffdf7}
body.site-responsive .care-share-dialog #care-download{background:#20211f;color:#fffdf7}
body.site-responsive :is(.personal-space,.tidy-entry){border-radius:24px;box-shadow:none}
body.site-responsive .personal-space{background:#e1e9d0;border-color:#bccb9e}
body.site-responsive .tidy-entry{background:#e1eaf7;border-color:#b7cbe9}
body.site-responsive>main>.intro>small{display:none}
body.site-responsive>main>.intro{padding-block:16px}
body.site-responsive :is(.personal-space,.tidy-entry) :is(h2,h3,a){color:#30392b}
body.site-responsive :is(.personal-space,.tidy-entry) :is(h2,h3){font-family:system-ui,sans-serif;letter-spacing:-.02em;font-weight:600}
body.site-responsive :is(.personal-space,.tidy-entry) p{color:#5b6254}
body.site-responsive #draw{background:#20211f;color:#fffdf7;border-color:#20211f;border-radius:24px}
@media(max-width:999px){
 body.site-responsive #journal .journal-layout{display:flex;flex-direction:column;gap:24px}
 body.site-responsive #journal .journal-paper{order:0;width:100%}
 body.site-responsive #journal .journal-archive{order:1;position:static;width:100%}
 body.site-responsive #journal .journal-items{max-height:none}
 body.site-responsive #cycle .grid{grid-template-columns:1fr}
 body.site-responsive>main:has(>#game){display:flex;flex-direction:column}
 body.site-responsive>main:has(>#game)>*{width:100%;min-width:0}
 body.site-responsive>main:has(>#game)>header{order:0}
 body.site-responsive>main:has(>#game)>.intro{order:1;padding-block:14px}
 body.site-responsive>main:has(>#game)>:is(#game,#pending){order:2}
 body.site-responsive>main:has(>#game)>.personal-space{order:3}
 body.site-responsive>main:has(>#game)>.tidy-entry{order:4}
 body.site-responsive>main:has(>#game)>:is(footer,.contact-entry){order:5}
}
@media(min-width:650px){body.site-responsive #cycle .choice-grid:has([data-choice=flow]){grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1000px){body.site-responsive #cycle .choice-grid:has([data-choice=energy]){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:450px){body.site-responsive #journal .hero p{font-size:13px}body.site-responsive #journal .hero .actions{gap:6px}body.site-responsive #journal .journal-title>button{margin-bottom:6px}}
@media(max-width:600px){body.site-responsive #journal .planner-nav{flex-wrap:wrap;overflow:visible}body.site-responsive #journal .planner-nav button{flex:1 1 28%;white-space:normal;line-height:1.4;min-height:44px;padding:8px}}

/* Remaining homepage tools, independent of the retired wardrobe. */
body.site-responsive .personal-space-links>*{min-width:0;overflow-wrap:anywhere}
body.site-responsive .personal-space-links strong{line-height:1.5}
@media(min-width:1000px){
body.site-responsive>main:has(>#game):not(:has(>.tidy-entry)){display:grid;max-width:1280px}
body.site-responsive>main:has(>#game)>.personal-space{grid-column:2;grid-row:3;margin:0;align-self:start}
body.site-responsive>main:has(>#game)>:is(#game,#pending){grid-row:3;min-width:0}
body.site-responsive>main:has(>#game)>footer{grid-row:4}
}
@media(min-width:551px) and (max-width:999px){body.site-responsive .personal-space-links{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){body.site-responsive .personal-space-links{grid-template-columns:minmax(0,1fr)}}
