/* Home — the first 315 × 755 panel in reference-welcome.png.
   Keep the reference proportions on wider phones and allow vertical scrolling. */

/* The older compact home layout hides these two live text elements. */
#rincon-app[data-profile=historias][data-view=home] #main .welcome #page-title em,
#rincon-app[data-profile=historias][data-view=home] #main .welcome #page-subtitle{
  display:block!important;
}
#rincon-app[data-profile=historias][data-view=home] #main .welcome #page-title .compact-greeting,
#rincon-app[data-profile=historias][data-view=home] #main .welcome #page-title br{
  display:none!important;
}
#rincon-app[data-profile=historias][data-view=home][data-font=tangerine] #main .welcome #page-title{
  max-width:calc(185 * var(--u));
  margin:0 0 calc(6 * var(--u));
  font:700 calc(48 * var(--u))/.74 RinconTangerine,Georgia,serif;
  letter-spacing:0;
  overflow-wrap:normal;
}
/* The complete, text-free illustration sits behind the live heading and copy. */
#rincon-app[data-profile=historias][data-view=home] #main .welcome{
  background-image:
    linear-gradient(180deg,#fff0ec00 88%,#fff0ec),
    linear-gradient(90deg,#fff0ec80,#fff0ec38 45%,#fff0ec00 70%),
    var(--welcome-custom-image,url('/my-nook/assets/profiles/welcome-hero-clean-v1.webp'));
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
}
#rincon-app[data-profile=historias][data-view=home] #main .welcome::after{
  display:none;
  content:none;
  clip-path:none;
  mask:none;
}
#rincon-app[data-profile=historias][data-view=home] #main .welcome #page-title em{
  font:inherit;
  color:inherit;
  letter-spacing:0;
  white-space:nowrap;
}
#rincon-app[data-profile=historias][data-view=home] #main .welcome #page-subtitle{
  max-width:calc(177 * var(--u));
  font:400 calc(13 * var(--u))/1.4 var(--sans)!important;
  margin:0;
  white-space:pre-line;
}

/* Three equal upper shortcuts, with the two lower shortcuts centred. */
#rincon-app[data-profile=historias][data-view=home] #main .reference-dashboard{
  margin-top:calc(24 * var(--u));
}
#rincon-app[data-profile=historias][data-view=home] #main .dashboard-links{
  margin-inline:calc(2 * var(--u)) calc(-1 * var(--u));
  gap:calc(17 * var(--u)) calc(8 * var(--u));
}
#rincon-app[data-profile=historias][data-view=home] #main .dashboard-links button{
  min-height:calc(104 * var(--u));
  height:calc(104 * var(--u));
  gap:calc(5 * var(--u));
  padding:calc(10 * var(--u)) calc(3 * var(--u));
  border-color:#d3a0a5;
  border-radius:calc(13 * var(--u));
  background:linear-gradient(145deg,#fce8e2 0%,#f7dcd6 62%,#f2d5d0 100%);
  box-shadow:inset 0 1px 1px #fff9,0 calc(2 * var(--u)) calc(5 * var(--u)) #8b415f12;
}
#rincon-app[data-profile=historias][data-view=home] #main .dashboard-links button:nth-child(n+4){
  min-height:calc(112 * var(--u));
  height:calc(112 * var(--u));
  width:calc(114 * var(--u));
  padding-top:calc(11 * var(--u));
}
#rincon-app[data-profile=historias][data-view=home] #main .dashboard-links button:nth-child(4){
  margin-right:calc(5 * var(--u));
}
#rincon-app[data-profile=historias][data-view=home] #main .dashboard-links button:nth-child(5){
  margin-left:calc(9 * var(--u));
}
#rincon-app[data-profile=historias][data-view=home] #main .dashboard-links img{
  flex:none;
  width:calc(29 * var(--u));
  height:calc(29 * var(--u));
}
#rincon-app[data-profile=historias][data-view=home] #main .dashboard-links b{
  font:700 calc(16 * var(--u))/1.1 'Times New Roman',Georgia,serif;
}
#rincon-app[data-profile=historias][data-view=home] #main .dashboard-links span{
  font:400 calc(12 * var(--u))/1.28 var(--sans);
}

#rincon-app[data-profile=historias][data-view=home] #main .reference-dashboard h2{
  margin:calc(31 * var(--u)) calc(3 * var(--u)) calc(16 * var(--u));
}
#rincon-app[data-profile=historias][data-view=home] #main .resume-story{
  width:calc(100% + 4 * var(--u));
  min-height:calc(90 * var(--u));
  margin-inline:calc(-1 * var(--u)) calc(-3 * var(--u));
  padding-inline:calc(90 * var(--u)) calc(14 * var(--u));
  border-color:#e4beb9;
  background:linear-gradient(120deg,#f9e6dfaa,#f7ded6aa);
}

/* Library — the second reference panel, with live collection data. */
#rincon-app[data-profile=historias][data-view=library] #main #library-panel>.section-heading .eyebrow{
  left:calc(4 * var(--u));
}
#rincon-app[data-profile=historias][data-view=library] #main #shelf-title{
  font-size:calc(21 * var(--u));
  letter-spacing:-.7px;
}
#rincon-app[data-profile=historias][data-view=library] #main #library-count{
  margin-left:calc(29 * var(--u));
}
#rincon-app[data-profile=historias][data-view=library] #main #add-entry{
  width:calc(80 * var(--u));
  margin-right:calc(-3 * var(--u));
}
#rincon-app[data-profile=historias][data-view=library] #main #library-panel .filters{
  width:calc(100% + 4 * var(--u));
  margin-inline:calc(-1 * var(--u)) calc(-3 * var(--u));
}
#rincon-app[data-profile=historias][data-view=library] #main #library-panel .filter-tabs{
  gap:calc(3 * var(--u));
  padding:calc(4 * var(--u));
  border-color:#c79aa6;
  border-radius:calc(14 * var(--u));
  background:#fff7f2;
  box-shadow:inset 0 1px #fffdfb,0 calc(3 * var(--u)) calc(10 * var(--u)) #70234208;
}
#rincon-app[data-profile=historias][data-view=library] #main #library-panel .filter-tabs button{
  min-height:max(40px,calc(37 * var(--u)));
  border-radius:calc(10 * var(--u));
  background:transparent;
  color:#69243f;
  font:700 calc(30 * var(--u))/1 RinconTangerine,Georgia,serif!important;
  transition:background-color .15s ease,box-shadow .15s ease;
}
#rincon-app[data-profile=historias][data-view=library] #main #library-panel .filter-tabs button:hover:not(.selected){
  background:#f4e1e1;
}
#rincon-app[data-profile=historias][data-view=library] #main #library-panel .filter-tabs button.selected{
  background:linear-gradient(135deg,#94516b,#762845);
  color:#fff8f1;
  font-weight:700!important;
  box-shadow:inset 0 1px #f4ccda55,0 calc(2 * var(--u)) calc(5 * var(--u)) #6b1d4024;
}
#rincon-app[data-profile=historias][data-view=library] #main #library-panel .filter-tabs button:focus-visible{
  outline:2px solid #732446;
  outline-offset:2px;
}
#rincon-app[data-profile=historias][data-view=library] #main #library-panel #search{
  display:block;
  margin:0;
  min-height:max(44px,calc(44 * var(--u)));
  height:calc(44 * var(--u));
  padding-left:calc(46 * var(--u));
  border-color:#c79aa6;
  border-radius:calc(12 * var(--u));
  background:#fffaf6;
  color:#5c1734;
  font:400 calc(14 * var(--u))/1.3 RinconSans,Arial,sans-serif!important;
  box-shadow:inset 0 calc(2 * var(--u)) calc(4 * var(--u)) #7b30420a,0 1px #fffdf9;
}
#rincon-app[data-profile=historias][data-view=library] #main #library-panel #search:focus{
  border-color:#8d3f60;
  background:#fffdf9;
  outline:2px solid #8d3f60;
  outline-offset:2px;
}
#rincon-app[data-profile=historias][data-view=library] #main #library-panel #search::placeholder{
  color:#784259;
  font:700 calc(28 * var(--u))/1 RinconTangerine,Georgia,serif!important;
  opacity:1;
}
#rincon-app[data-profile=historias][data-view=library] #main #library-panel .search-label::before{
  left:calc(14 * var(--u));
  width:calc(21 * var(--u));
  height:calc(21 * var(--u));
}
#rincon-app[data-profile=historias][data-view=library] #main #books{
  width:calc(100% + 6 * var(--u));
  margin-inline:calc(-2 * var(--u)) calc(-4 * var(--u));
}
#rincon-app[data-profile=historias][data-view=library] #main #books .book-card{
  background:linear-gradient(135deg,#f9e1da,#fff0e9 65%,#f3d9d7);
  border-color:#d6acb0;
  box-shadow:inset 0 1px #fffaf7b3,0 calc(3 * var(--u)) calc(8 * var(--u)) #7023420c;
}
#rincon-app[data-profile=historias][data-view=library] #main #books .book-open{
  row-gap:calc(4 * var(--u));
}
#rincon-app[data-profile=historias][data-view=library] #main #books h3{
  line-height:.94;
}
#rincon-app[data-profile=historias][data-view=library] #main #books .progress-caption{
  flex-direction:row;
  justify-content:space-between;
  align-items:center;
  margin:0;
  text-align:left;
}
#rincon-app[data-profile=historias][data-view=library] #main #books .progress-caption>span:first-child{
  font:400 calc(12 * var(--u))/1.2 var(--sans);
  white-space:nowrap;
}
#rincon-app[data-profile=historias][data-view=library] #main #books .entry-status{
  flex:none;
  margin-left:auto;
  padding:calc(5 * var(--u));
  border-color:#bb8497;
  border-radius:calc(7 * var(--u));
  background:#f2dce1;
  color:#60203b;
  font:600 calc(12 * var(--u))/1.2 var(--sans)!important;
}
#rincon-app[data-profile=historias][data-view=library] #main #books .entry-status[data-status=active]{
  border-color:#79274c;
  background:#79274c;
  color:#fff7ef;
  box-shadow:inset 0 1px #dda9bc40;
}
#rincon-app[data-profile=historias][data-view=library] #main #books .entry-status::before{
  flex:none;
  background:currentColor;
  -webkit-mask:url('/my-nook/assets/reading-status.svg') center/contain no-repeat;
  mask:url('/my-nook/assets/reading-status.svg') center/contain no-repeat;
}

/* Timer — keep the airy dial and lighter numerals of the third panel. */
#rincon-app[data-profile=historias][data-view=timer] #main #timer-panel #timer-heading{
  margin-bottom:calc(3 * var(--u));
}
#rincon-app[data-profile=historias][data-view=timer] #main #timer-panel label{
  font-family:var(--sans)!important;
}
#rincon-app[data-profile=historias][data-view=timer] #main #timer-panel .timer-dial{
  padding-bottom:calc(37 * var(--u));
}
#rincon-app[data-profile=historias][data-view=timer] #main #timer-panel .timer-dial::before{
  top:calc(-41 * var(--u));
  width:calc(229 * var(--u));
  height:calc(123 * var(--u));
}
#rincon-app[data-profile=historias][data-view=timer] #main #timer-panel #timer-clock{
  font:400 calc(54 * var(--u))/1 Georgia,'Times New Roman',serif;
  font-variant-numeric:lining-nums tabular-nums;
  letter-spacing:calc(-2.75 * var(--u));
  transform:translateY(calc(-5 * var(--u))) scaleY(1.18);
  transform-origin:center;
}
#rincon-app[data-profile=historias][data-view=timer] #main #timer-panel .timer-hint{
  margin-bottom:calc(13 * var(--u));
}
#rincon-app[data-profile=historias][data-view=timer] #main #timer-panel #timer-toggle{
  font-size:calc(22 * var(--u))!important;
}

/* Diary — readable two-line summaries and a full illustrated empty state. */
#rincon-app[data-profile=historias][data-view=history] #main .welcome #page-title{
  margin-bottom:0;
}
#rincon-app[data-profile=historias][data-view=history] #main .welcome #page-subtitle{
  max-width:calc(200 * var(--u));
}
#rincon-app[data-profile=historias][data-view=history] #main .stats>div{
  padding:calc(11 * var(--u)) calc(8 * var(--u))!important;
  min-height:calc(116 * var(--u));
  background:linear-gradient(135deg,#f9e1da,#fff0e9 65%,#f3d9d7);
  border-color:#d6acb0;
  box-shadow:inset 0 1px #fffaf7b3,0 calc(3 * var(--u)) calc(8 * var(--u)) #7023420c;
}
#rincon-app[data-profile=historias][data-view=history] #main .stats span{
  width:100%;
}
#rincon-app[data-profile=historias][data-view=history] #main .journal-row{
  background:linear-gradient(135deg,#f9e1da,#fff0e9 65%,#f3d9d7);
  border-color:#d6acb0;
  box-shadow:inset 0 1px #fffaf7b3,0 calc(3 * var(--u)) calc(8 * var(--u)) #7023420c;
}
#rincon-app[data-profile=historias][data-view=history] #main .journal-empty{
  display:flex;
  align-items:center;
  width:100%;
  aspect-ratio:2;
  min-height:calc(144 * var(--u));
  margin:0;
  padding:calc(24 * var(--u)) calc(18 * var(--u));
  border:0;
  border-radius:0;
  background-image:
    linear-gradient(180deg,#fff0ec,transparent 12%,transparent 88%,#fff0ec),
    linear-gradient(90deg,#fff0ec,transparent 5%,transparent 95%,#fff0ec),
    url('/my-nook/assets/profiles/diary-empty-v1.jpg');
  background-position:center;
  background-size:100% 100%;
  background-repeat:no-repeat;
  color:#631b3c;
  font:400 calc(14 * var(--u))/1.35 'Times New Roman',Georgia,serif!important;
  text-align:left;
}
#rincon-app[data-profile=historias][data-view=history] #main .journal-empty>span{
  display:block;
  width:60%;
  max-width:calc(156 * var(--u));
}

/* Clubs — override the legacy mauve text and purple inner surfaces. */
#rincon-app[data-profile=historias][data-view=clubs] #main .club-card b{
  color:#591135;
}
#rincon-app[data-profile=historias][data-view=clubs] #main .club-card small{
  color:#68213e;
}
#rincon-app[data-profile=historias][data-view=clubs] #main :is(.reading-shelf,.club-section,.live-area){
  background:linear-gradient(135deg,#f9e1da,#fff0e9 65%,#f3d9d7);
  border-color:#d6acb0;
  color:#591135;
  box-shadow:inset 0 1px #fffaf7b3,0 3px 8px #7023420c;
}
#rincon-app[data-profile=historias][data-view=clubs] #main :is(.reading-period,.club-write){
  background:#f6ddd8;
  border-color:#d6acb0;
  color:#591135;
}
#rincon-app[data-profile=historias][data-view=clubs] #main :is(.reading-shelf,.club-section,.live-area) h3{
  color:#591135;
}
#rincon-app[data-profile=historias][data-view=clubs] #main :is(.club-section .muted,.live-area>p){
  color:#71354d;
}
#rincon-app[data-profile=historias][data-view=clubs] #main .live-area [data-club-action]{
  background:#fff0e9;
  border-color:#d6acb0;
  color:#591135;
}

/* Help — recover trailing text space without shrinking the descriptions. */
#rincon-app[data-profile=historias][data-view=assistant] #main #assistant-panel{
  margin-top:calc(4 * var(--u));
}
#rincon-app[data-profile=historias][data-view=assistant] #main #help-search{
  display:block;
  margin:0;
}
#rincon-app[data-profile=historias][data-view=assistant] #main .help-card>summary{
  grid-template-columns:calc(41 * var(--u)) minmax(0,1fr) calc(8 * var(--u));
  gap:calc(4 * var(--u));
  min-height:calc(45 * var(--u));
  padding:calc(6 * var(--u)) calc(5 * var(--u)) calc(6 * var(--u)) calc(13 * var(--u));
}
#rincon-app[data-profile=historias][data-view=assistant] #main .help-card small{
  font-size:calc(11 * var(--u))!important;
}
