/* Fourteen complete art directions. Palette and artwork come from profile-catalog.mjs. */
body[data-prototype=true][data-profile][data-theme]{--paper:#f8efea;--ink:#452237;--muted:#715162;--line:#d9bbc4;--style-soft:#efdee4;--style-panel:#fff7f1;--style-accent:#77506c;--style-secondary:#a44f6b;--surface:#fff7f1;--profile-nav:#513047;--profile-nav-ink:#fff1de;--profile-radius:16px;background-color:var(--paper);background-image:linear-gradient(color-mix(in srgb,var(--paper) 72%,transparent),color-mix(in srgb,var(--paper) 72%,transparent)),url('/my-nook/assets/profiles/paper-grain.jpg');background-size:512px;background-blend-mode:normal;color:var(--ink);--sans:RinconSans,Arial,sans-serif}
body[data-font=literary]{--serif:RinconSerif,Georgia,serif}
.font-literary>span{font-family:RinconSerif,Georgia,serif}
body[data-prototype=true][data-profile][data-theme] :is(h1,h2,h3,.brand,.mobile-brand){font-family:var(--serif);color:var(--ink);font-weight:500;letter-spacing:-.025em;line-height:1.2}
body[data-prototype=true][data-profile][data-theme] p{color:inherit}
body[data-prototype=true][data-profile][data-theme] :is(small,.muted,.eyebrow,.library-count,.last-played,.author,.library-save-status){color:var(--muted)}
body[data-prototype=true][data-profile][data-theme] :is(button,input,select,textarea,summary,label){font-size:var(--reading-size,16px)}
body[data-prototype=true][data-profile][data-theme] :is(input,select,textarea){background-color:var(--surface);border-color:var(--line);color:var(--ink);border-radius:calc(var(--profile-radius)/2)}
body[data-prototype=true][data-profile][data-theme] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
body[data-prototype=true][data-profile][data-theme] .eyebrow{font:500 var(--reading-size)/1.5 var(--sans);letter-spacing:.08em;text-transform:uppercase}
body[data-prototype=true][data-profile][data-theme] :is(.topbar,.sidebar){background-color:var(--paper);background-image:linear-gradient(color-mix(in srgb,var(--paper) 72%,transparent),color-mix(in srgb,var(--paper) 72%,transparent)),url('/my-nook/assets/profiles/paper-grain.jpg');background-size:512px;background-blend-mode:normal;border-color:var(--line)}
body[data-prototype=true][data-profile][data-theme] .topbar{border-bottom:1px solid var(--line);padding:20px 32px;min-height:88px;gap:16px}
body[data-prototype=true][data-profile][data-theme] .publisher-link,body[data-prototype=true][data-profile][data-theme] .topbar-label{display:none}
body[data-prototype=true][data-profile][data-theme] .mobile-brand{display:flex;font-size:30px;gap:10px;white-space:nowrap;margin-right:auto}
body[data-prototype=true][data-profile][data-theme] .mobile-brand img{width:34px;height:38px}
body[data-prototype=true][data-profile][data-theme] .brand>span{font-size:28px!important}
body[data-prototype=true][data-profile][data-theme] .brand small{font-size:16px;letter-spacing:.04em;line-height:1.5}
body[data-prototype=true][data-profile][data-theme] .topbar-actions{gap:12px;flex-shrink:0}
body[data-prototype=true][data-profile][data-theme] .topbar-actions #personalize-button{width:44px;height:44px;background:var(--style-soft);border-color:var(--line);padding:8px}
body[data-prototype=true][data-profile][data-theme] .topbar-actions #account-link{background:var(--style-accent);color:#fff5ea;border:1px solid var(--style-accent);border-radius:24px;padding:12px 20px;font-size:16px;white-space:nowrap;max-width:none;line-height:1.25}
body[data-prototype=true][data-profile][data-theme] .sidebar nav{gap:8px;margin-top:38px}
body[data-prototype=true][data-profile][data-theme] .nav-button{color:var(--ink);border-radius:12px;gap:12px;padding:14px 12px;box-shadow:none}
body[data-prototype=true][data-profile][data-theme] .nav-button img{width:28px;height:28px}
body[data-prototype=true][data-profile][data-theme] .nav-button.active{background:var(--style-soft);color:var(--ink);box-shadow:inset 3px 0 var(--style-accent)}
body[data-prototype=true][data-profile][data-theme] .sidebar-bottom :is(p,a){color:var(--muted)}
body[data-prototype=true][data-profile][data-theme] main{padding-top:0;max-width:1300px}
body[data-prototype=true][data-profile][data-theme][data-view=home] .welcome{display:block;position:relative;isolation:isolate;min-height:360px;margin:0 -32px 0;border:0;border-radius:0;background:var(--paper);box-shadow:none;overflow:hidden}
body[data-prototype=true][data-profile][data-theme][data-view=home] .welcome>div:first-child{position:relative;z-index:1;width:68%;padding:42px 32px 36px;background:linear-gradient(90deg,color-mix(in srgb,var(--paper) 84%,transparent),color-mix(in srgb,var(--paper) 40%,transparent) 76%,transparent)}
body[data-prototype=true][data-profile][data-theme][data-view=home] .welcome-art{display:block!important;position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:cover;object-position:right 60%;border-radius:0;z-index:0;opacity:1;transform:none}
body[data-prototype=true][data-profile][data-theme][data-view=home] .welcome-art[hidden]{display:none!important}
body[data-prototype=true][data-profile][data-theme][data-view=home] #page-title{font-size:clamp(32px,3.7vw,50px);line-height:1.16;margin:24px 0 16px;letter-spacing:-.025em;overflow-wrap:normal;text-wrap:balance}
body[data-prototype=true][data-profile][data-theme][data-view=home] #page-title em{display:block!important;font-style:normal;color:var(--style-secondary);font-weight:inherit;margin-top:4px}
body[data-prototype=true][data-profile][data-theme][data-view=home] #page-title em:empty{display:none!important}
body[data-prototype=true][data-profile][data-theme][data-view=home] #page-subtitle{display:block!important;font-size:var(--reading-size);line-height:1.6;max-width:480px;color:var(--ink);margin:0}
body[data-prototype=true][data-profile][data-theme][data-view=home] #main .welcome-date{display:flex!important;margin-bottom:20px;gap:8px}
body[data-prototype=true][data-profile][data-theme][data-view=home] .welcome-date img{display:none}
body[data-prototype=true][data-profile][data-theme] .welcome-date .eyebrow{font-size:16px!important;line-height:1.5;letter-spacing:.05em}
body[data-prototype=true][data-profile][data-theme][data-view]:not([data-view=home]) .welcome{background:transparent;border:0;padding:28px 0 0;margin:0}
body[data-prototype=true][data-profile][data-theme][data-view]:not([data-view=home]) .welcome>div:first-child{width:100%;padding:0 0 22px}
body[data-prototype=true][data-profile][data-theme][data-view]:not([data-view=home]) .welcome-art{display:none!important}
body[data-prototype=true][data-profile][data-theme][data-view]:not([data-view=home]) #page-title{font-size:34px}
body[data-prototype=true][data-profile][data-theme] .home-actions{gap:14px;margin:24px 0 10px;align-items:stretch}
body[data-prototype=true][data-profile][data-theme] :is(.primary,.quick-session,.active-timer){background:var(--style-accent);border:1px solid var(--style-accent);color:#fff7ed;border-radius:var(--profile-radius);box-shadow:0 3px 10px #28101c14;font-weight:500}
body[data-prototype=true][data-profile][data-theme] .home-timer-button{min-height:58px;justify-content:flex-start;padding:16px 22px;font:500 24px/1.25 var(--serif);flex:1}
body[data-prototype=true][data-profile][data-theme] .home-timer-button img{filter:brightness(0) invert(1);width:28px;height:28px}
body[data-prototype=true][data-profile][data-theme] .home-timer-button>span{margin-left:auto}
body[data-prototype=true][data-profile][data-theme] .home-actions>.text-button{padding:16px 22px;min-height:58px;border:1px solid var(--line);border-radius:var(--profile-radius);background-color:var(--surface);color:var(--ink);font-family:var(--serif);font-size:22px;flex:1}
body[data-prototype=true][data-profile][data-theme] :is(.text-button,.favorites-button,.account-settings-link){color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] #discover{margin:30px 0 0}
body[data-prototype=true][data-profile][data-theme] .section-heading h2{font-size:32px;color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] .section-heading .eyebrow{margin-bottom:9px}
body[data-prototype=true][data-profile][data-theme] :is(.book-card,.favorite-book,.club-card,.club-section,.club-write,.club-intro,.club-empty,.catalog-search,.assistant-panel,.empty-shelf,.chat-form){background:var(--surface);border:1px solid var(--line);border-radius:var(--profile-radius);color:var(--ink);box-shadow:0 4px 14px #3c1f2510}
body[data-prototype=true][data-profile][data-theme] :is(.book-card h3,.club-card b){font-size:27px;color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] :is(.book-tag,.journal-time,.journal-date,.chat-message.companion,.chat-message.you,.filter-tabs button.selected){background:var(--style-soft);color:var(--ink);border-color:var(--line)}
body[data-prototype=true][data-profile][data-theme] .filter-tabs button{background:transparent;color:var(--ink);font:500 19px/1.4 var(--serif);border-radius:22px;min-height:44px}
body[data-prototype=true][data-profile][data-theme] .filter-tabs button.selected{background:var(--style-soft);box-shadow:inset 0 -2px var(--style-accent)}
body[data-prototype=true][data-profile][data-theme] .cover-space{border-radius:calc(var(--profile-radius)/2);background:var(--style-soft)}
body[data-prototype=true][data-profile][data-theme] :is(.favorites-button,.photo-upload,.save-strip button){color:var(--ink);background:var(--surface);border-color:var(--line);border-radius:12px;min-height:44px}
body[data-prototype=true][data-profile][data-theme] :is(.save-strip,.page-footer,.account-save-status,.library-save-status){color:var(--muted);border-color:var(--line)}
body[data-prototype=true][data-profile][data-theme] :is(.account-save-status,.reading-period,.reading-notices article){background:var(--style-soft);border-color:var(--line);border-radius:var(--profile-radius);color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] .stats>div{background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:none}
body[data-prototype=true][data-profile][data-theme] .stats :is(strong,span){color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] .journal-row{border-color:var(--line)}
body[data-prototype=true][data-profile][data-theme] .journal-body :is(h3,p,a){color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] #timer-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--profile-radius);box-shadow:0 8px 24px #32172612;color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] #timer-panel :is(h2,p,label,.eyebrow,.timer-dial-units,.timer-dial-label,.timer-hint,.timer-footer,.timer-actions button){color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] #timer-panel .timer-dial{background:var(--paper);border:1px solid var(--line);box-shadow:none;border-radius:var(--profile-radius);width:100%;height:auto;aspect-ratio:auto;min-height:160px;padding:24px 8px}
body[data-prototype=true][data-profile][data-theme] #timer-panel .timer-dial::before,body[data-prototype=true][data-profile][data-theme] #timer-panel .timer-dial::after{display:none}
body[data-prototype=true][data-profile][data-theme] #timer-panel #timer-clock{font-family:var(--sans);font-size:clamp(36px,9vw,54px);font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
body[data-prototype=true][data-profile][data-theme] #timer-panel .timer-reminder-settings{border-color:var(--line)}
body[data-prototype=true][data-profile][data-theme] #timer-panel .timer-reminder-settings :is(a,button){color:var(--ink);background:var(--style-soft);border-color:var(--line)}
body[data-prototype=true][data-profile][data-theme] #timer-panel #reminder-status{color:var(--muted)}
body[data-prototype=true][data-profile][data-theme] .hour-reminder{background:var(--style-soft);color:var(--ink);border-color:var(--line)}
body[data-prototype=true][data-profile][data-theme] .hour-reminder :is(strong,p){color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] dialog{background:var(--paper);background-image:linear-gradient(color-mix(in srgb,var(--paper) 72%,transparent),color-mix(in srgb,var(--paper) 72%,transparent)),url('/my-nook/assets/profiles/paper-grain.jpg');background-size:512px;background-blend-mode:normal;color:var(--ink);border:1px solid var(--line);border-radius:16px;box-shadow:0 16px 70px #1b102b44}
body[data-prototype=true][data-profile][data-theme] dialog::backdrop{background:#281c2b80}
body[data-prototype=true][data-profile][data-theme] dialog :is(label,.style-lead,.style-hint,.font-choice>span,.font-choice small){color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] :is(.theme-choice,.font-choice,.avatar-choices button,.style-sample,.photo-options .photo-button,.welcome-choice){background:var(--surface);color:var(--ink);border-color:var(--line)}
body[data-prototype=true][data-profile][data-theme] :is(.theme-choice,.font-choice,.avatar-choices button,.welcome-choice)[aria-pressed=true]{background:var(--style-soft);border-color:var(--style-accent);box-shadow:0 0 0 1px var(--style-accent)}
body[data-prototype=true][data-profile][data-theme] .toast{background:var(--style-accent);color:#fff7eb}
body[data-prototype=true][data-profile][data-theme] .story-banner{order:4;position:relative;background:var(--profile-hero) center 65%/cover;isolation:isolate;min-height:180px;border:1px solid var(--line);border-radius:var(--profile-radius);overflow:hidden;margin:30px 0 0;padding:28px;width:100%;color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] .story-banner::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,var(--paper),color-mix(in srgb,var(--paper) 80%,transparent) 45%,transparent)}
body[data-prototype=true][data-profile][data-theme] .story-banner .story-banner-title{font:500 32px/1.2 var(--serif);max-width:65%;margin-bottom:16px;color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] .story-banner em{color:var(--style-secondary);font-style:normal}
body:not([data-prototype=true]) .story-banner{display:none}
body[data-prototype=true][data-theme][data-profile=historias] .story-banner{background-image:url('/my-nook/assets/profiles/historias-clues-v2.jpg');text-align:center;min-height:220px;padding-top:44px}
body[data-prototype=true][data-theme][data-profile=historias] .story-banner::before{background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--paper) 70%,transparent) 40%,color-mix(in srgb,var(--paper) 70%,transparent) 60%,transparent)}
body[data-prototype=true][data-theme][data-profile=historias] .story-banner .story-banner-title{max-width:85%;margin:0 auto 16px}
/* The prototypes differ in composition, material treatment and controls too. */
body[data-prototype=true][data-profile][data-theme][data-profile-frame=double] :is(.home-timer-button,.book-card,.club-card){outline:1px solid var(--line);outline-offset:-6px;padding:22px}
body[data-prototype=true][data-profile][data-theme][data-profile-frame=ornate] :is(.home-timer-button,.book-card,.story-banner){border:1px solid var(--style-secondary);box-shadow:inset 0 0 0 4px var(--paper),inset 0 0 0 5px var(--line),0 6px 16px #2d1a2119}
body[data-prototype=true][data-profile][data-theme][data-profile-frame=cut] :is(.home-timer-button,.home-actions>.text-button,.book-card){border-radius:3px;border:1px solid var(--style-secondary);box-shadow:inset 0 0 0 4px var(--paper),inset 0 0 0 5px var(--line)}
body[data-prototype=true][data-profile][data-theme][data-profile-frame=pill] .home-actions>.primary{border-radius:38px}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=graphic] .home-timer-button{background:#e8b450;color:#173b3b;border-color:#a97827;font-family:var(--sans);font-weight:650}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=graphic] .home-timer-button img{filter:none}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=graphic] .home-actions>.text-button{background:var(--style-accent);color:#fff1d4}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=watercolor] .welcome>div:first-child{background:transparent}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=watercolor] .home-actions>.primary{background:var(--style-soft);color:var(--ink);font-style:italic}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=watercolor] .home-timer-button img{filter:none}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=desk] main{max-width:1160px}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=desk] .welcome{border:8px solid var(--line);margin-top:16px;transform:rotate(-.3deg)}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=desk] .home-actions{flex-direction:column}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=panorama] .welcome{padding-top:230px;background:var(--paper)}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=panorama] .welcome-art{height:230px;object-position:center 65%}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=panorama] .welcome>div:first-child{width:100%;background:var(--paper);text-align:center;padding:26px 30px}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=panorama] .welcome-date{justify-content:center}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=panorama] #page-subtitle{margin:auto}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=dossier] .welcome{border-bottom:2px dashed var(--line)}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=dossier] .eyebrow{font-family:ui-monospace,monospace;letter-spacing:0}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=dossier] .home-timer-button{font-style:italic;border-width:3px}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=coffee] .home-timer-button{background:#293e32;border-color:#293e32}
body[data-prototype=true][data-profile][data-theme][data-profile-layout=coffee] .home-actions>.text-button{background:#eed2a4;color:#4b3329}
body[data-prototype=true][data-profile][data-theme][data-profile-dark=true]{color-scheme:dark}
body[data-prototype=true][data-profile][data-theme][data-profile-dark=true] .home-actions>.text-button{background:#f5e3ca;color:#332a2b;border-color:#d4b994}
body[data-prototype=true][data-profile][data-theme][data-profile-dark=true] .nav-button img,body[data-prototype=true][data-profile][data-theme][data-profile-dark=true] .mobile-brand img{filter:brightness(0) invert(.93)}
body[data-prototype=true][data-profile][data-theme][data-profile-dark=true] .empty-shelf{background:var(--surface);color:var(--ink)}
body[data-prototype=true][data-profile][data-theme][data-profile-dark=true] .book-delete{color:#ffbaa5}
body[data-prototype=true][data-profile][data-theme][data-profile-dark=true] :is(.style-error,#style-error,#welcome-error){color:#ffd0c8}
body[data-prototype=true][data-theme][data-profile=medianoche] .home-timer-button{background:#f4ddc3;color:#292a43;border-color:#b999b8}
body[data-prototype=true][data-theme][data-profile=medianoche] .home-timer-button img{filter:none}
body[data-prototype=true][data-theme][data-profile=medianoche] .home-actions>.text-button{background:#68435e;color:#fff0df}
/* All references are visible and labelled in both entry points to personalisation. */
#profile-choices,#welcome-profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-height:55dvh;overflow-y:auto;overscroll-behavior:contain;padding:3px 4px 8px}
#style-form fieldset[hidden]{display:none}
:is(#profile-choices,#welcome-profiles) .profile-choice{display:flex;flex-direction:column;grid-template-columns:none;border:2px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface,var(--paper));color:var(--ink);min-width:0;text-align:left}
:is(#profile-choices,#welcome-profiles) .profile-choice>img{width:100%;height:220px;min-height:0;object-fit:cover;object-position:top;display:block}
:is(#profile-choices,#welcome-profiles) .profile-choice>span{padding:14px;display:block}
:is(#profile-choices,#welcome-profiles) .profile-choice b{font:500 24px/1.25 RinconSerif,Georgia,serif;display:block;color:var(--ink);margin-bottom:8px}
:is(#profile-choices,#welcome-profiles) .profile-choice small{font:400 16px/1.5 var(--sans);color:var(--muted);display:block;margin-top:6px}
:is(#profile-choices,#welcome-profiles) .profile-choice[aria-pressed=true]{border-color:var(--style-accent);outline:2px solid var(--style-accent);outline-offset:0;box-shadow:none}
body[data-prototype=true][data-profile][data-theme].rincon-access :is(.access-card,.access-welcome){background:var(--surface);border-color:var(--line);border-radius:var(--profile-radius);color:var(--ink)}
body[data-prototype=true][data-profile][data-theme].rincon-access .access-brand{color:var(--ink);font-family:var(--serif)}
body[data-prototype=true][data-profile][data-theme].rincon-access :is(.access-card p,.access-card h2,.access-card label,.access-welcome h1,.access-welcome p){color:var(--ink)}
body[data-prototype=true][data-profile][data-theme].rincon-access .access-welcome h1{font-size:42px}
body[data-prototype=true][data-profile][data-theme].rincon-access .access-welcome em{color:var(--style-secondary)}
body[data-prototype=true][data-profile][data-theme].rincon-access .access-welcome .welcome-art{width:100%;height:260px;object-fit:cover;display:block;border-radius:0}
@media(max-width:920px){
 body[data-prototype=true][data-profile][data-theme] .topbar{padding:14px 16px;min-height:78px}
 body[data-prototype=true][data-profile][data-theme] .mobile-brand{font-size:26px;gap:6px}
 body[data-prototype=true][data-profile][data-theme] .mobile-brand img{width:28px;height:32px}
 body[data-prototype=true][data-profile][data-theme] .topbar-actions{gap:8px}
 body[data-prototype=true][data-profile][data-theme] .topbar-actions #account-link{padding:11px 15px}
 body[data-prototype=true][data-profile][data-theme] main{padding:0 18px}
 body[data-prototype=true][data-profile][data-theme][data-view=home] .welcome{margin:0 -18px;min-height:280px}
 body[data-prototype=true][data-profile][data-theme][data-view=home] .welcome>div:first-child{padding:24px 18px 28px;width:75%}
 body[data-prototype=true][data-profile][data-theme][data-view=home] #page-title{font-size:32px;line-height:1.15;margin:18px 0 14px}
 body[data-prototype=true][data-profile][data-theme][data-view=home] #main .welcome-date{margin-bottom:12px}
 body[data-prototype=true][data-profile][data-theme][data-view=home] .welcome-date .eyebrow{font-size:16px!important;max-width:none}
 body[data-prototype=true][data-profile][data-theme][data-view=home] .welcome-art{height:100%;object-position:65% 65%}
 body[data-prototype=true][data-profile][data-theme][data-view=home] #page-subtitle{max-width:240px;line-height:1.5}
 body[data-prototype=true][data-profile][data-theme] .home-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 6px}
 body[data-prototype=true][data-profile][data-theme] .home-timer-button{font-size:21px;flex-basis:100%;min-height:54px;padding:13px 18px}
 body[data-prototype=true][data-profile][data-theme] .home-actions>.text-button{font-size:19px;min-height:46px;padding:12px 18px}
 body[data-prototype=true][data-profile][data-theme] .sidebar{border:0;border-top:1px solid var(--line);height:calc(80px + env(safe-area-inset-bottom));padding:5px 4px env(safe-area-inset-bottom);background:var(--paper);border-radius:18px 18px 0 0}
 body[data-prototype=true][data-profile][data-theme] .sidebar nav{display:grid;grid-template-columns:1fr 1.4fr 1fr 1fr 1fr;gap:0;margin:0}
 body[data-prototype=true][data-profile][data-theme] .nav-button{padding:5px 2px;gap:4px;min-height:64px;border-radius:12px;justify-content:center;box-shadow:none;color:var(--ink)}
 body[data-prototype=true][data-profile][data-theme] .nav-button img{width:27px;height:27px}
 body[data-prototype=true][data-profile][data-theme] .sidebar .nav-label{font-size:16px;line-height:1.25;letter-spacing:-.03em;font-family:var(--serif)}
 body[data-prototype=true][data-profile][data-theme] .nav-button.active{background:var(--style-soft);box-shadow:none}
 body[data-prototype=true][data-profile][data-theme][data-profile-nav=dark] .sidebar{background:var(--profile-nav);border-color:var(--line)}
 body[data-prototype=true][data-profile][data-theme][data-profile-nav=dark] .nav-button{color:var(--profile-nav-ink)}
 body[data-prototype=true][data-profile][data-theme][data-profile-nav=dark] .nav-button img{filter:brightness(0) invert(.94)}
 body[data-prototype=true][data-profile][data-theme][data-profile-nav=dark] .nav-button.active{background:#ffffff16;box-shadow:inset 0 -2px var(--style-secondary)}
 body[data-prototype=true][data-profile][data-theme] .workspace{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
 body[data-prototype=true][data-profile][data-theme] :is(.active-timer,.toast){bottom:calc(94px + env(safe-area-inset-bottom))}
 body[data-prototype=true][data-profile][data-theme] .section-heading h2{font-size:28px}
 body[data-prototype=true][data-profile][data-theme] #discover .section-heading{flex-wrap:wrap;gap:12px}
 body[data-prototype=true][data-profile][data-theme] #discover{margin-top:26px}
 body[data-prototype=true][data-profile][data-theme] .story-banner{padding:28px 18px;min-height:210px;margin-top:24px}
 body[data-prototype=true][data-profile][data-theme] .story-banner .story-banner-title{font-size:28px}
 body[data-prototype=true][data-profile][data-theme][data-profile-layout=panorama] .welcome{padding-top:180px}
 body[data-prototype=true][data-profile][data-theme][data-profile-layout=panorama] .welcome-art{height:180px;object-position:center 65%}
 body[data-prototype=true][data-profile][data-theme][data-profile-layout=panorama] .welcome>div:first-child{width:100%;padding:20px;background:var(--paper)}
 body[data-prototype=true][data-profile][data-theme][data-profile-layout=panorama] #page-subtitle{max-width:none}
 body[data-prototype=true][data-profile][data-theme][data-profile-layout=desk] .welcome{margin:12px -10px 0}
 body[data-prototype=true][data-profile][data-theme].rincon-access .access-welcome h1{font-size:32px}
 :is(#profile-choices,#welcome-profiles) .profile-choice>img{height:180px}
 :is(#profile-choices,#welcome-profiles) .profile-choice>span{padding:12px}
 :is(#profile-choices,#welcome-profiles) .profile-choice b{font-size:22px}
}
@media(max-width:360px){
 body[data-prototype=true][data-profile][data-theme] .mobile-brand{font-size:23px;gap:4px}
 body[data-prototype=true][data-profile][data-theme] .mobile-brand img{width:24px}
 body[data-prototype=true][data-profile][data-theme] .topbar{padding:12px 10px;gap:8px}
 body[data-prototype=true][data-profile][data-theme] .topbar-actions #account-link{padding:10px}
 body[data-prototype=true][data-profile][data-theme] .topbar-actions #personalize-button{width:42px;height:42px}
 body[data-prototype=true][data-profile][data-theme][data-view=home] .welcome>div:first-child{width:80%}
 body[data-prototype=true][data-profile][data-theme][data-view=home] #page-title{font-size:29px}
 :is(#profile-choices,#welcome-profiles) .profile-choice>img{height:150px}
 :is(#profile-choices,#welcome-profiles) .profile-choice>span{padding:10px}
}

body[data-prototype=true][data-profile][data-theme] .nav-button .nav-label{color:inherit}
body[data-prototype=true][data-profile][data-theme][data-profile-dark=true] #personalize-button img{filter:brightness(0) invert(.93)}
body[data-prototype=true][data-profile][data-theme] .primary:hover:not(:disabled){background:var(--style-accent);filter:brightness(.94)}
/* Keep auxiliary views as readable and quiet as the opening screen. */
body[data-prototype=true][data-profile][data-theme] .topbar-actions{margin-left:auto}
body[data-prototype=true][data-profile][data-theme] .story-banner .story-banner-title{font-size:32px!important}
body[data-prototype=true][data-profile][data-theme] .discovery-grid{gap:12px}
body[data-prototype=true][data-profile][data-theme] .discovery-grid button{display:flex;align-items:flex-start;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--profile-radius);box-shadow:none;padding:20px;text-align:left;transform:none}
body[data-prototype=true][data-profile][data-theme] .discovery-grid img{width:32px;height:32px;object-fit:contain;flex-shrink:0}
body[data-prototype=true][data-profile][data-theme] .discovery-grid span{padding:0}
body[data-prototype=true][data-profile][data-theme] .discovery-grid b{font:500 24px/1.3 var(--serif);color:var(--ink)}
body[data-prototype=true][data-profile][data-theme] .discovery-grid small{color:var(--muted)}
body[data-prototype=true][data-profile][data-theme][data-profile-dark=true],body[data-prototype=true][data-profile][data-theme][data-profile-dark=true] :is(.topbar,.sidebar,dialog){background-blend-mode:multiply}
body[data-prototype=true][data-profile][data-theme][data-profile-dark=true] :is(.discovery-grid img,.welcome-date img:not(.custom-avatar)){filter:brightness(0) invert(.93)}
@media(max-width:620px){
 body[data-prototype=true][data-profile][data-theme] .book-grid{grid-template-columns:minmax(0,1fr)}
 body[data-prototype=true][data-profile][data-theme] .discovery-grid{grid-template-columns:1fr}
 body[data-prototype=true][data-profile][data-theme] .story-banner .story-banner-title{font-size:28px!important}
}
/* The save action remains reachable while browsing profiles, fonts and photos. */
#style-form .style-save-bar{position:sticky;bottom:0;z-index:3;background:var(--paper);border-top:1px solid var(--line);padding:14px 0 max(10px,env(safe-area-inset-bottom));margin-top:20px;box-shadow:0 -12px 18px var(--paper)}
#style-form .style-save-bar .primary{width:100%;min-height:50px}
#style-form .style-save-bar .form-error:empty{display:none}
#style-form .style-save-bar .form-error{margin:0 0 12px}
