/* Larger keepsakes inside the jar only: the previous final size was 21px. */
html body #modal .real-jar .jar-notes i:has(>.jar-keepsake){width:42px!important;height:42px!important;aspect-ratio:1}

/* Preserve the existing iridescent finish; match the 3px Pages & app colors selection on ready-made books and bookmarks. */
html body #app#app#app#app#app#app#app#app .direct-studio :is(.preset-cover-gallery,.bookmark-style-options)>button[aria-pressed=true],
html body #modal#modal#modal#modal#modal#modal#modal#modal :is(.preset-cover-gallery,.bookmark-style-options)>button[aria-pressed=true]{
 border-width:3px!important;
}

html body #modal .jar-editor-controls>.jar-details-save{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;align-self:flex-start;min-width:90px!important;margin-top:10px!important;padding:8px 12px!important;white-space:nowrap}
html body #modal .jar-details-save>svg{width:20px;height:20px;flex:none}
html body #modal .jar-details-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;margin-top:10px!important;}
html body #modal .jar-details-actions>.jar-details-save{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:90px!important;padding:8px 12px!important;margin:0!important;white-space:nowrap!important;}
html body #modal#modal#modal#modal#modal#modal .jar-details-actions>#remove-jar{position:static!important;inset:auto!important;transform:none!important;margin:0!important;align-self:center!important;}
html body #modal #jar-save-state{display:block;font-size:12px;line-height:1.5;min-height:18px;margin-top:6px}
html body .daily-stat-icon>.home-mood-emoji{display:block;width:38px!important;height:38px!important;flex:none;color:var(--inside-accent,var(--accent,#81052e))!important;background:transparent;border:0;padding:0;overflow:visible;text-shadow:none;filter:none}

/* Empty-state copy stays above the smaller Check in action in the type hierarchy. */
html body #app#app#app#app#app#app#app#app .today-strip .daily-stat-copy>b.snapshot-mood[data-empty=true]{font-size:clamp(17px,1.65vw,22px)!important;line-height:1.25!important;white-space:normal!important;min-height:0!important;max-width:100%!important;text-wrap:balance}
html body #app#app#app#app#app#app#app#app .today-strip .daily-stat-copy:has(>b[data-empty=true])>span{font-size:12px!important;line-height:1.4!important}

/* Shelf only: the latest saved book color and finish, including hover and dark mode. */
html body #app#app#app#app .new-shelf .real-shelf-row>.new-spine,
html body #modal#modal#modal#modal .library-spine{background:linear-gradient(90deg,#0005,transparent 15%,#fff6 30%,transparent 47%,#0003 100%),var(--shelf-texture,linear-gradient(transparent,transparent)),var(--shelf-color,var(--book-color))!important;background-size:auto,var(--shelf-texture-size,auto),auto!important;color:var(--book-ink)!important}

html body #app#app#app#app .design-favorite-tools{display:flex!important;flex-wrap:wrap;gap:10px;justify-content:center;align-items:center;width:100%;box-sizing:border-box;grid-column:1/-1;margin:8px 0 12px;position:relative;z-index:3}
@layer uxInteraction{
 @media(min-width:761px){
  html body #modal:has(#favorite-design-name){width:min(620px,calc(100vw - 48px))!important;max-width:620px!important;}
  html body #modal:has(#favorite-design-name) .modal-head{padding:16px 22px!important;gap:12px!important;}
  html body #modal:has(#favorite-design-name) .modal-head h2{font-size:30px!important;line-height:1.2!important;margin:0!important;}
  html body #modal:has(#favorite-design-name) .modal-body{padding:18px 22px 20px!important;}
  html body #modal:has(#favorite-design-name) .modal-body>p:first-child{margin:0 0 14px!important;font-size:14px!important;line-height:1.5!important;}
  html body #modal:has(#favorite-design-name) label:has(#favorite-design-name){margin:0!important;gap:6px!important;}
  html body #modal #favorite-design-name{margin:0!important;min-height:44px!important;padding:9px 12px!important;font-size:16px!important;}
  html body #modal:has(#favorite-design-name) .favorite-design-actions{margin-top:14px!important;gap:10px!important;}
  html body #modal:has(#favorite-design-name) .favorite-design-actions button{min-height:44px!important;padding:9px 14px!important;}
  html body #modal:has(#favorite-design-name) #favorite-design-status:empty{display:none!important;}
  html body #modal:has(#favorite-design-name) #favorite-design-status:not(:empty){margin:10px 0 0!important;}
 }
}
html body #app#app#app#app .design-favorite-tools button{min-height:42px!important;width:auto!important;max-width:100%!important;padding:9px 16px!important;border:2px solid transparent!important;border-image:var(--selection-iridescence) 1!important;background:#fffcf6!important;color:#81052e!important;font:500 14px/1.4 Arial,sans-serif!important}
html body #app .design-favorite-tools button[hidden]{display:none!important}
html body #modal .favorite-design-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
html body #modal .favorite-design-actions button{white-space:normal;min-height:44px}
html body #modal #favorite-design-save{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;}
html body #modal #favorite-design-save>svg{width:22px!important;height:22px!important;flex:0 0 22px!important;}
html body #modal .favorite-design-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:10px;margin-top:10px}
html body #modal .favorite-design-list button{display:grid;gap:5px;min-height:0;height:auto;padding:12px 16px;text-align:center;align-content:center;background:linear-gradient(120deg,#fffaf3,#f5effa,#eef9f7,#fff5e2);border:1px solid #d7bcc6}
html body #modal .favorite-design-star{display:none}
html body #modal .favorite-design-list small{font-size:12px}
@media(max-width:600px){html body #modal .favorite-design-actions{flex-direction:column}html body #modal .favorite-design-actions button{width:100%}}

/* Center the collection switch within the wand header on every view. */
html body #modal#modal#modal .modal-head:has(>.wand-design-tabs){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important}
html body #modal#modal#modal .modal-head:has(>.wand-design-tabs)>h2{grid-column:1!important;grid-row:1!important}
html body #modal#modal#modal .modal-head:has(>.wand-design-tabs)>button{grid-column:2!important;grid-row:1!important}
html body #modal#modal#modal .wand-design-tabs{grid-column:1/-1!important;grid-row:2!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:6px!important;width:min(100%,360px)!important;max-width:100%!important;justify-self:center!important;padding:5px!important;border:1px solid #d8c5cf!important;border-radius:12px!important;background:linear-gradient(115deg,#fffaf3,#f4edf7,#edf7f5,#fff4dc)!important}
html body #modal#modal#modal .wand-design-tabs>button{flex:1 1 0!important;width:auto!important;max-width:none!important;height:auto!important;min-width:0!important;min-height:44px!important;padding:9px 16px!important;border-radius:8px!important;border:1px solid transparent!important;background:transparent!important;color:#81052e!important;font-size:14px!important;white-space:normal!important;line-height:1.3!important}
html body #modal#modal#modal .wand-design-tabs>button[aria-pressed=true]{background:linear-gradient(#fffcf6,#fffcf6) padding-box,var(--selection-iridescence,linear-gradient(115deg,#80032e,#b86d86,#fff7df,#c39b49,#f8e8bb,#80032e)) border-box!important;color:#81052e!important;-webkit-text-fill-color:#81052e!important;border:3px solid transparent!important;border-image:none!important;font-weight:600!important;box-shadow:0 2px 5px #81052e12!important}
html body #modal#modal#modal .wand-collection-panel[hidden]{display:none!important}
html body #modal .wand-saved-designs>p{text-align:center;line-height:1.6;margin:20px auto;max-width:420px}
@media(max-width:480px){html body #modal#modal#modal .wand-design-tabs>button{font-size:13px!important;padding:9px 12px!important}}

/* Compact saved choices inside the wand; avoid decorative empty rows. */
html body #modal#modal#modal .wand-saved-designs .favorite-design-list{margin:8px 0 0!important;gap:10px!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))!important}
html body #modal#modal#modal .wand-saved-designs .favorite-design-list>button{min-height:0!important;height:auto!important;padding:12px 16px!important;gap:5px!important;align-content:center!important}
html body #modal#modal#modal .wand-saved-designs .favorite-design-star{display:none!important}
html body #modal#modal#modal .wand-saved-designs .favorite-design-list>button>strong{font-size:15px!important;line-height:1.35!important}
html body #modal#modal#modal .wand-saved-designs .favorite-design-list>button>small{font-size:12px!important;line-height:1.35!important}

/* Favorite surfaces follow the current book's paper and accent, including setup previews. */
html body #app .design-favorite-tools,
html body #modal:has(:is(.wand-design-tabs,.favorite-design-list,.favorite-design-actions)){
 --design-paper:var(--inside-paper,#fffefa);--design-accent:var(--inside-accent,#81052e);--design-text:var(--inside-text,#352e40);
 --design-soft:color-mix(in srgb,var(--design-paper) 90%,var(--design-accent));
 --design-iridescence:linear-gradient(115deg,var(--design-accent) 0%,color-mix(in srgb,var(--design-accent),white 48%) 25%,color-mix(in srgb,var(--design-accent),white 86%) 45%,var(--design-accent) 65%,color-mix(in srgb,var(--design-accent),white 60%) 84%,var(--design-accent) 100%);
 --selection-iridescence:var(--design-iridescence);
}
html body #app#app#app#app#app .design-favorite-tools button{background:var(--design-paper)!important;color:var(--design-accent)!important;-webkit-text-fill-color:var(--design-accent)!important;border-image:var(--design-iridescence) 1!important}
html body #modal#modal#modal#modal .wand-design-tabs{background:linear-gradient(115deg,var(--design-paper),var(--design-soft),var(--design-paper))!important;border-color:color-mix(in srgb,var(--design-accent) 30%,var(--design-paper))!important}
html body #modal#modal#modal#modal .wand-design-tabs>button{color:var(--design-accent)!important;-webkit-text-fill-color:var(--design-accent)!important}
html body #modal#modal#modal#modal .wand-design-tabs>button[aria-pressed=true]{background:linear-gradient(var(--design-paper),var(--design-paper)) padding-box,var(--design-iridescence) border-box!important;color:var(--design-accent)!important;-webkit-text-fill-color:var(--design-accent)!important;box-shadow:0 2px 5px color-mix(in srgb,var(--design-accent) 12%,transparent)!important}
html body #modal#modal#modal#modal .favorite-design-list button{background:color-mix(in srgb,var(--design-accent) 8%,var(--design-paper))!important;background-image:none!important;color:var(--design-accent)!important;-webkit-text-fill-color:var(--design-accent)!important;border-color:color-mix(in srgb,var(--design-accent) 35%,var(--design-paper))!important}
html body #modal#modal#modal#modal .favorite-design-list :is(strong,small,.favorite-design-star){color:var(--design-accent)!important;-webkit-text-fill-color:var(--design-accent)!important}
html body #modal#modal#modal#modal .modal-head:has(>.wand-design-tabs)>h2{color:var(--design-accent)!important;-webkit-text-fill-color:var(--design-accent)!important}

/* Match the page-display controls: rounded iridescent selection, no solid accent fill. */
html body #app#app#app#app#app .design-favorite-tools button{border:2px solid transparent!important;border-image:none!important;border-radius:8px!important;background:linear-gradient(var(--design-paper),var(--design-paper)) padding-box,var(--design-iridescence) border-box!important;box-shadow:0 2px 5px color-mix(in srgb,var(--design-accent) 6%,transparent)!important}
html body #modal#modal#modal#modal .wand-design-tabs>button[aria-pressed=true]{border-width:2px!important;border-radius:8px!important}
html[data-lighting=night] body #modal#modal#modal#modal .favorite-design-list button{background:color-mix(in srgb,var(--design-accent) 12%,#121212)!important;background-image:none!important;color:var(--night-text,#f1edf3)!important;-webkit-text-fill-color:var(--night-text,#f1edf3)!important}
html[data-lighting=night] body #modal#modal#modal#modal .favorite-design-list :is(strong,small,.favorite-design-star){color:var(--night-text,#f1edf3)!important;-webkit-text-fill-color:var(--night-text,#f1edf3)!important}

/* Setup and wand saved-design cards share the same compact density. */
html body #modal#modal#modal#modal .favorite-design-list>button{min-height:0!important;height:auto!important;padding:12px 16px!important;gap:5px!important;align-content:center!important}
html body #modal#modal#modal#modal .favorite-design-list>button>strong{font-size:15px!important;line-height:1.35!important}
html body #modal#modal#modal#modal .favorite-design-list>button>small{font-size:12px!important;line-height:1.35!important}
html body #modal#modal#modal#modal .favorite-design-list .favorite-design-star{display:none!important}

/* Phone only: keep the setup favorite actions on one centered line. */
@media(max-width:760px){
html body #app#app#app#app#app#app .design-favorite-tools{display:flex!important;flex-wrap:nowrap!important;justify-content:center!important;align-items:center!important;gap:6px!important;width:100%!important;min-width:0!important}
html body #app#app#app#app#app#app .design-favorite-tools>button{flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important;box-sizing:border-box!important;font-size:11px!important;padding:8px 7px!important;min-height:40px!important;letter-spacing:0!important}
}

/* Saved designs use the existing compact jar-note card treatment in setup and wand. */
html body #modal#modal#modal#modal#modal .favorite-design-list{gap:10px!important;align-items:start!important}
html body #modal#modal#modal#modal#modal .favorite-design-list>button{
 --note-color:var(--design-accent);
 position:relative!important;display:grid!important;justify-items:start!important;align-content:center!important;
 min-height:44px!important;height:auto!important;margin:0!important;padding:10px 32px 10px 12px!important;gap:3px!important;
 background:#fffdfb!important;background-image:none!important;
 border:1px solid #e4ded8!important;border-left:3px solid var(--note-color)!important;border-radius:8px!important;
 box-shadow:none!important;text-align:left!important;letter-spacing:normal!important;
 font:400 14px/1.4 Atelier Sans,Arial,sans-serif!important;color:#302830!important;-webkit-text-fill-color:#302830!important;
}
html body #modal#modal#modal#modal#modal .favorite-design-list>button>strong{font:400 14px/1.4 Atelier Sans,Arial,sans-serif!important;letter-spacing:normal!important;color:#302830!important;-webkit-text-fill-color:#302830!important}
html body #modal#modal#modal#modal#modal .favorite-design-list>button>small{font:400 11px/1.35 Atelier Sans,Arial,sans-serif!important;color:#302830!important;-webkit-text-fill-color:#302830!important;opacity:.7!important}
html body #modal#modal#modal#modal#modal .favorite-design-list>button::after{content:'›';position:absolute;right:12px;top:50%;transform:translateY(-50%);font:400 23px/1 Arial,sans-serif;color:#302830;-webkit-text-fill-color:#302830}
html[data-lighting=night] body #modal#modal#modal#modal#modal .favorite-design-list>button{background:#121212!important;color:var(--night-text,#f1edf3)!important;-webkit-text-fill-color:var(--night-text,#f1edf3)!important}
html[data-lighting=night] body #modal#modal#modal#modal#modal .favorite-design-list>button:is(:not(:hover),:hover)>:is(strong,small),html[data-lighting=night] body #modal#modal#modal#modal#modal .favorite-design-list>button::after{color:var(--night-text,#f1edf3)!important;-webkit-text-fill-color:var(--night-text,#f1edf3)!important}

/* Desktop/tablet header: title | favorite actions | journal name, all on one row. */
@media(min-width:761px){
html[data-setup] body #app#app#app#app#app#app#app#app .direct-studio>.direct-studio-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;column-gap:18px!important;row-gap:8px!important}
html[data-setup] body #app#app#app#app#app#app#app#app .direct-studio-heading>div:first-child{grid-column:1!important;grid-row:1!important;min-width:0!important;justify-self:start!important}
html[data-setup] body #app#app#app#app#app#app#app#app .direct-studio-heading>.design-favorite-tools{grid-column:2!important;grid-row:1!important;align-self:center!important;justify-self:center!important;width:auto!important;max-width:100%!important;margin:0!important;flex-wrap:nowrap!important;gap:10px!important}
html[data-setup] body #app#app#app#app#app#app#app#app .direct-studio-heading>.editor-book-name{grid-column:3!important;grid-row:1!important;justify-self:end!important;align-self:center!important;width:100%!important;max-width:300px!important;margin:0!important}
html[data-setup] body #app#app#app#app#app#app#app#app .direct-studio-heading>.direct-heading-actions:empty{display:none!important}
html[data-setup] body #app#app#app#app#app#app#app#app .direct-studio-heading>.direct-heading-actions:not(:empty){grid-column:1/-1!important;grid-row:2!important}
}
@media(min-width:761px) and (max-width:1100px){html[data-setup] body #app#app#app#app#app#app#app#app .direct-studio-heading>.design-favorite-tools>button{font-size:12px!important;padding:8px 9px!important;white-space:nowrap!important}html[data-setup] body #app#app#app#app#app#app#app#app .direct-studio>.direct-studio-heading{column-gap:10px!important}}

/* Keep card lettering in the chosen page accent while the card fill stays plain. */
html body #modal#modal#modal#modal#modal#modal .favorite-design-list>button,html body #modal#modal#modal#modal#modal#modal .favorite-design-list>button>:is(strong,small),html body #modal#modal#modal#modal#modal#modal .favorite-design-list>button::after{color:var(--design-accent,#81052e)!important;-webkit-text-fill-color:var(--design-accent,#81052e)!important}
html[data-lighting=night] body #modal#modal#modal#modal#modal#modal .favorite-design-list>button,html[data-lighting=night] body #modal#modal#modal#modal#modal#modal .favorite-design-list>button>:is(strong,small),html[data-lighting=night] body #modal#modal#modal#modal#modal#modal .favorite-design-list>button::after{color:color-mix(in srgb,var(--design-accent,#81052e) 45%,white)!important;-webkit-text-fill-color:color-mix(in srgb,var(--design-accent,#81052e) 45%,white)!important}

/* Wand title and collection switch share the same left edge. */
html body #modal#modal#modal#modal#modal#modal .modal-head:has(>.wand-design-tabs)>h2{text-align:left!important;justify-self:start!important;margin-left:0!important}
html body #modal#modal#modal#modal#modal#modal .wand-design-tabs{justify-self:start!important;margin-left:0!important;margin-right:auto!important}
/* Collection options sit to the right of the chooser heading. */
html body #modal#modal#modal#modal#modal#modal .modal-head:has(>.wand-design-tabs){grid-template-columns:minmax(0,1fr) auto auto!important;gap:12px!important}
html body #modal#modal#modal#modal#modal#modal .wand-design-tabs{grid-column:2!important;grid-row:1!important;justify-self:end!important;width:280px!important;margin:0!important}
html body #modal#modal#modal#modal#modal#modal .modal-head:has(>.wand-design-tabs)>button{grid-column:3!important;grid-row:1!important}
@media(max-width:600px){
html body #modal#modal#modal#modal#modal#modal .modal-head:has(>.wand-design-tabs){gap:6px!important}
html body #modal#modal#modal#modal#modal#modal .modal-head:has(>.wand-design-tabs)>h2{font-size:21px!important;line-height:1.15!important}
html body #modal#modal#modal#modal#modal#modal .wand-design-tabs{width:170px!important;padding:3px!important;gap:2px!important}
html body #modal#modal#modal#modal#modal#modal .wand-design-tabs>button{font-size:11px!important;padding:6px 4px!important;min-height:40px!important}
}
/* Setup controls always use the signature DescaXora palette. */
@layer uxInteraction{
 html[data-setup] body #app .design-favorite-tools>button{
  --design-paper:#fffcf6;
  --design-accent:#81052e;
  --design-iridescence:linear-gradient(115deg,#80032e 0%,#b86d86 22%,#fff7df 43%,#c39b49 61%,#f8e8bb 78%,#80032e 100%);
  color:#81052e!important;-webkit-text-fill-color:#81052e!important;
  border:2px solid transparent!important;border-image:none!important;border-radius:8px!important;
  background:linear-gradient(#fffcf6,#fffcf6) padding-box,var(--design-iridescence) border-box!important;
  box-shadow:0 2px 5px #81052e10!important;
 }
}
/* Recognizable saved-book swatches use the same finish palette as shelf spines. */
@layer uxInteraction{
 html body #modal .favorite-design-list>button:has(.saved-design-preview){display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;column-gap:12px!important;row-gap:3px!important;min-height:102px!important;padding:10px 26px 10px 10px!important;background:color-mix(in srgb,var(--saved-cover-color) 14%,#fffdfb)!important;border-left-color:var(--saved-cover-color)!important}
 html body #modal .favorite-design-list>button>.saved-design-preview{grid-column:1!important;grid-row:1/3!important;position:relative!important;display:block!important;width:62px!important;height:80px!important;filter:drop-shadow(2px 3px 2px #30203025)}
 .saved-design-preview>.saved-design-cover{position:absolute;inset:0 0 2px 9px;display:flex;align-items:center;justify-content:center;padding:5px;border-radius:2px 6px 6px 2px;border:1px solid #0002;border-left:2px solid #fff5;background:var(--shelf-texture,linear-gradient(90deg,#0002,transparent 25%,#fff2)),var(--shelf-color,var(--book-color));background-size:var(--shelf-texture-size,auto),auto;color:var(--book-ink);box-shadow:inset -3px 0 #fff4,2px 2px 0 #e8dfd4}
 .saved-design-cover>i{font:600 9px/1.2 Georgia,serif;text-align:center;overflow-wrap:anywhere;max-height:58px;overflow:hidden;color:var(--book-ink);-webkit-text-fill-color:var(--book-ink)}
 .saved-design-preview>.saved-design-spine{position:absolute;inset:0 auto 2px 0;width:9px;border-radius:3px 0 0 3px;background:linear-gradient(90deg,#0004,#fff4,transparent),var(--shelf-color,var(--book-color));border:1px solid #0002}
 html body #modal .favorite-design-list>button>strong{grid-column:2!important;align-self:end!important}
 html body #modal .favorite-design-list>button>small{grid-column:2!important;align-self:start!important}
 html[data-lighting=night] body #modal .favorite-design-list>button:has(.saved-design-preview){background:color-mix(in srgb,var(--saved-cover-color) 20%,#121212)!important}
}
/* Dark-mode audit: collection tabs and saved-card captions keep clear contrast. */
@layer uxInteraction{
 html[data-lighting=night] body #modal .wand-design-tabs{background:#181818!important;border-color:#6b626c!important}
 html[data-lighting=night] body #modal .wand-design-tabs>button{color:#eee7f0!important;-webkit-text-fill-color:#eee7f0!important;background:transparent!important}
 html[data-lighting=night] body #modal .wand-design-tabs>button[aria-pressed=true]{background:linear-gradient(#25212a,#25212a) padding-box,var(--selection-iridescence) border-box!important;color:#f6df9f!important;-webkit-text-fill-color:#f6df9f!important}
 html[data-lighting=night] body #modal .favorite-design-list>button>strong{color:#f1edf3!important;-webkit-text-fill-color:#f1edf3!important}
 html[data-lighting=night] body #modal .favorite-design-list>button>small{color:#d2c9d7!important;-webkit-text-fill-color:#d2c9d7!important;opacity:1!important}
 html[data-lighting=night] body #modal .favorite-design-list>button::after{color:#edce87!important;-webkit-text-fill-color:#edce87!important}
}

/* Individual translate/scale preserve centering, rotation and the book renderer. */
@layer uxInteraction{
 @media(min-width:761px){
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app #page[data-layout=journal][data-journal-pane=history]>.history>#entry-list{grid-auto-flow:column!important;grid-template-rows:repeat(var(--history-page-rows,10),max-content)!important;align-items:start!important;}
 }
}
@layer uxInteraction{
 @media(min-width:761px) and (max-width:1366px){
  html body #app .home-hero .cover .book-render>canvas{touch-action:none!important;}
 }
}
@layer uxInteraction{
 @media(min-width:761px) and (max-width:1280px){
  html:is([data-view=wide],[data-view=book]) body #app #page[data-layout=journal] .history-filter-fields{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;}
  html:is([data-view=wide],[data-view=book]) body #app #page[data-layout=journal] .history-filter-fields>label{width:100%!important;min-width:0!important;}
 }
}
@layer uxInteraction{
 html[data-screen=home] body #app .hero-links>button[data-action=personalize]{--design-link-base:color-mix(in srgb,var(--inside-accent,#81052e) 85%,#202020);--design-link-glint:color-mix(in srgb,var(--inside-accent,#81052e) 65%,white);color:var(--design-link-base)!important;}
 html[data-screen=home] body #app .hero-links>button[data-action=personalize]>.design-link-label{background:linear-gradient(110deg,var(--design-link-base),var(--design-link-glint) 38%,var(--design-link-base) 55%,var(--design-link-glint) 72%,var(--design-link-base))!important;background-clip:text!important;-webkit-background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;}
 html[data-lighting=night][data-screen=home] body #app .hero-links>button[data-action=personalize]{--design-link-base:color-mix(in srgb,var(--inside-accent,#81052e) 35%,white);--design-link-glint:color-mix(in srgb,var(--inside-accent,#81052e) 12%,white);}
 html[data-lighting=night] body #app .home-hero :is(.all-book-notices-link,.setup-draft-actions) svg{color:inherit!important;stroke:currentColor!important;opacity:1!important;}
 html[data-lighting=night] body #app .home-hero :is(.all-book-notices-link,.setup-draft-discard){color:#fff!important;}
 html[data-setup] body #app .journey-start-options>[data-studio-choose-for-me]:not([aria-pressed=true]){border:1px solid #c9a35e!important;background:linear-gradient(120deg,#fffef9,#fff9ee)!important;}
 html[data-setup][data-lighting=night] body #app .journey-start-options>[data-studio-choose-for-me]:not([aria-pressed=true]){background:#181818!important;}
 html[data-setup] body #app .design-history-controls>button:disabled{opacity:.35!important;cursor:default!important;pointer-events:none!important;}
 @media(max-width:760px){
  html body #modal .writing-tool-customize-row{display:flex!important;justify-content:flex-end!important;align-items:center!important;width:100%!important;margin:0 0 14px!important;padding:0!important;}
  html body #modal .writing-tool-customize-row>.dialog-heading-link{position:static!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:auto!important;min-height:36px!important;margin:0!important;padding:7px 10px!important;font-size:13px!important;white-space:nowrap!important;border:1px solid transparent!important;border-radius:8px!important;background:linear-gradient(var(--inside-paper,#fffdf8),var(--inside-paper,#fffdf8)) padding-box,linear-gradient(110deg,var(--inside-accent,#966d36),#e5d4b5,var(--inside-accent,#966d36)) border-box!important;text-decoration:none!important;box-shadow:none!important;}
  html[data-lighting=night] body #modal .writing-tool-customize-row>.dialog-heading-link{background:linear-gradient(#181818,#181818) padding-box,linear-gradient(110deg,var(--inside-accent,#966d36),#e5d4b5,var(--inside-accent,#966d36)) border-box!important;color:var(--night-text,#f5f0e8)!important;-webkit-text-fill-color:currentColor!important;}
  html[data-setup] body #app .direct-studio[data-target=ribbon] .direct-book-surface{width:100%!important;max-width:100%!important;margin-inline:auto!important;grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;}
  html[data-setup] body #app .direct-studio[data-target=ribbon] .direct-ribbon-preview{width:100%!important;max-width:100%!important;margin-inline:auto!important;justify-self:center!important;left:auto!important;right:auto!important;}
  html[data-setup] body #app .direct-studio[data-target=ribbon] .book-display-controls{justify-self:center!important;justify-content:center!important;margin-inline:auto!important;}
 }
}
@layer uxInteraction{
 @media(max-width:760px){
  html body #modal#modal#modal#modal#modal#modal .compact-jar-library .jar-display-card{height:auto!important;max-height:none!important;grid-template-rows:30px max-content max-content auto!important;}
  html body #modal#modal#modal#modal#modal#modal .compact-jar-library .jar-display-card>.jar-caption{padding-top:10px!important;box-sizing:border-box!important;}
 }
}
@layer uxInteraction{
 @media(min-width:761px) and (max-width:1100px) and (orientation:portrait){
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app#app#app#app#app#app#app#app#app #page[data-layout=journal] .journal-help-shortcuts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important;padding-bottom:0!important;}
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app#app#app#app#app#app#app#app#app #page[data-layout=journal] .journal-help-shortcuts>span{grid-column:1/-1!important;justify-self:start!important;}
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app#app#app#app#app#app#app#app#app #page[data-layout=journal] .journal-help-shortcuts>button{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:44px!important;white-space:normal!important;overflow-wrap:normal!important;box-sizing:border-box!important;padding:10px 8px!important;}
 }
}
@layer uxInteraction{
 @media(min-width:761px){
  html[data-view=wide] body #app #page[data-layout=journal] .writing-help-row{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;align-items:center!important;scrollbar-width:thin;overscroll-behavior-inline:contain;padding-bottom:4px!important;}
  html[data-view=wide] body #app #page[data-layout=journal] .writing-help-row>button{flex:0 0 auto!important;min-width:max-content!important;width:auto!important;white-space:nowrap!important;}
  html[data-view=wide] body #app #page[data-layout=journal] .writing-help-row>span{flex:0 0 auto!important;white-space:nowrap!important;}
 }
 @media(min-width:761px) and (max-width:1100px){
  html[data-view=wide] body #app #page[data-layout=journal] .entry-mode-picker>.entry-mode-buttons{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  html[data-view=wide] body #app #page[data-layout=journal] .entry-mode-picker button{white-space:nowrap!important;overflow-wrap:normal!important;}
 }
}
@layer uxInteraction{
 @media(min-width:761px){
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app #page[data-layout=journal][data-journal-pane=history]>.history{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;align-items:start!important;}
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app #page[data-layout=journal][data-journal-pane=history]>.history>.history-tools-group{grid-column:1/-1!important;grid-row:1!important;width:100%!important;max-width:none!important;}
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app #page[data-layout=journal][data-journal-pane=history]>.history>#entry-list{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;width:100%!important;margin:0!important;align-items:start!important;}
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app #page[data-layout=journal][data-journal-pane=history]>.history>#entry-list>.entry-card{min-width:0!important;width:100%!important;margin:0!important;box-sizing:border-box!important;}
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app #page[data-layout=journal][data-journal-pane=history]>.history>#entry-pagination{grid-column:1/-1!important;grid-row:3!important;}
 }
}
@layer uxInteraction{
 html body :is(textarea,.rich-writing)[data-flex-resize]{resize:none!important;}
 html body .field-resize-grip{position:relative!important;z-index:12!important;display:flex!important;align-items:center!important;justify-content:center!important;justify-self:end!important;align-self:end!important;width:44px!important;height:24px!important;min-height:24px!important;margin-left:auto!important;margin-right:0!important;margin-bottom:0!important;padding:0!important;box-sizing:border-box!important;touch-action:none!important;user-select:none!important;-webkit-user-select:none!important;cursor:ns-resize!important;color:var(--inside-accent,var(--accent,#85052f))!important;background:color-mix(in srgb,var(--inside-paper,#fffefa) 92%,transparent)!important;border-radius:5px 0!important;line-height:1!important;}
 html body .field-resize-grip:focus-visible{outline:1px solid currentColor!important;outline-offset:0!important;}
 html[data-lighting=night] body .field-resize-grip{color:var(--night-accent-text,#edce87)!important;background:#181818!important;}
}
@layer uxInteraction{
 html body #modal .library-favorites-filter,html body #modal .library-favorites-filter>*{color:#8b651f!important;-webkit-text-fill-color:#8b651f!important;opacity:1!important;font-weight:600!important;}
 html[data-lighting=night] body #modal .library-favorites-filter,html[data-lighting=night] body #modal .library-favorites-filter>*{color:#edce87!important;-webkit-text-fill-color:#edce87!important;}
 @media(min-width:761px){html body #modal .library-top-actions>button{min-height:40px!important;padding:6px 12px!important;}}
}
@layer uxInteraction{
 @media(min-width:761px){
  html body #modal:has(.library-grid) .modal-head{padding:16px 22px!important;}
  html body #modal:has(.library-grid) .modal-body{padding:16px 20px!important;}
  html body #modal .library-top-actions{margin:0 0 12px!important;}
  html body #modal .library-top-actions>button{min-height:40px!important;padding:6px 12px!important;}
  html body #modal .library-grid{gap:10px!important;}
  html body #modal .library-book-card{padding:8px!important;gap:8px!important;min-height:104px!important;}
  html body #modal .library-book-card .library-book{grid-template-columns:38px minmax(0,1fr)!important;min-height:84px!important;padding:6px 34px 6px 6px!important;gap:4px 8px!important;}
  html body #modal .library-book-card .library-spine{width:30px!important;height:68px!important;min-height:68px!important;}
  html body #modal .library-book-card .library-spine i{max-height:60px!important;}
  html body #modal:has(.library-grid) .book-trash{margin-top:16px!important;padding:0 12px!important;}
  html body #modal:has(.library-grid) .book-trash>summary{min-height:44px!important;padding:10px 0!important;}
 }
}
@layer uxInteraction{
 html body #app .home-hero .home-actions>button[data-action=continue]:not(:disabled){
  opacity:1!important;filter:none!important;background:linear-gradient(160deg,var(--home-action-top,#81052e),var(--home-action-bottom,#6b0426))!important;
  color:var(--home-action-text,#fff)!important;-webkit-text-fill-color:var(--home-action-text,#fff)!important;
  border:1px solid var(--home-action-edge,#a55570)!important;
  box-shadow:inset 0 1px 0 #ffffff38,0 4px 10px #27102020!important;
 }
 html body #app .home-hero .home-actions>button[data-action=continue]:not(:disabled)>*{opacity:1!important;}
}
@layer uxInteraction{
 @media(min-width:761px){
  html body #app #across-books tbody th{border-left:1px solid var(--across-accent)!important;}
  html body #app #across-books tbody td:last-child{border-right:1px solid var(--across-accent)!important;}
 }
}
@layer uxInteraction{
 html body textarea{resize:vertical!important;max-height:none!important;max-width:100%!important;box-sizing:border-box!important;}
}
/* Desktop/tablet only: a continuous thicker frame, without moving columns or
   replacing the white divider beneath the header. */
@layer uxInteraction{
 @media(min-width:761px){
  html body #app #across-books{--across-header-edge:var(--inside-accent,#85052f);}
  html body #app #across-books thead th{box-shadow:inset 0 2px var(--across-header-edge),inset 0 -2px var(--across-header-edge)!important;}
  html body #app #across-books thead th:first-child{box-shadow:inset 2px 0 var(--across-header-edge),inset 0 2px var(--across-header-edge),inset 0 -2px var(--across-header-edge)!important;}
  html body #app #across-books thead th:last-child{box-shadow:inset -2px 0 var(--across-header-edge),inset 0 2px var(--across-header-edge),inset 0 -2px var(--across-header-edge)!important;}
  html[data-lighting=night] body #app #across-books{--across-header-edge:color-mix(in srgb,var(--inside-accent,#c99abb) 70%,#ffffff);}
 }
}
/* Tablet reveal avoids repeatedly filtering the entire WebGL surface. The
   independent wand and falling sparkle effects keep their existing animation. */
@layer uxInteraction{
 @media(min-width:761px) and (max-width:1366px){
  html body #app .book-design-reveal .cover{animation:tablet-book-reveal .45s ease-out both!important;filter:none!important;}
 }
 @keyframes tablet-book-reveal{from{opacity:.75}to{opacity:1}}
 @media(min-width:761px) and (max-width:1366px) and (prefers-reduced-motion:reduce){
  html body #app .book-design-reveal .cover{animation:none!important;}
 }
}
/* Text, search, date and select controls use their own thin border for focus.
   The old 3px offset outline plus outer glow made these fields look oversized. */
@layer uxInteraction{
 html body :is(select,textarea,input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=button]):not([type=submit]):not([type=reset])):is(:focus,:focus-visible){
  outline:none!important;outline-offset:0!important;box-shadow:none!important;
  border-width:1px!important;border-color:var(--inside-accent,var(--accent,#85052f))!important;
 }
}
@layer uxInteraction{
 button.ux-hover:not(:disabled),[role=button].ux-hover:not([aria-disabled=true]){translate:var(--ux-x,0px) calc(var(--ux-y,0px) - 2px) var(--ux-z,0px)!important;transition:translate .13s ease,scale .1s ease!important}
 button.ux-pressed:not(:disabled),[role=button].ux-pressed:not([aria-disabled=true]){translate:var(--ux-x,0px) calc(var(--ux-y,0px) + 1px) var(--ux-z,0px)!important;scale:calc(var(--ux-sx,1) * .98) calc(var(--ux-sy,1) * .98)!important;transition:translate .08s ease,scale .08s ease!important}
 @media(prefers-reduced-motion:reduce){button.ux-hover,button.ux-pressed,[role=button].ux-hover,[role=button].ux-pressed{translate:var(--ux-x,0px) var(--ux-y,0px) var(--ux-z,0px)!important;scale:var(--ux-sx,1) var(--ux-sy,1)!important;transition:none!important;filter:brightness(.96)!important}}
}
.ux-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.ux-busy-mark{position:absolute!important;inset:auto 6px 2px!important;height:2px!important;pointer-events:none!important;border-radius:3px;background:linear-gradient(90deg,transparent,currentColor,transparent);background-size:180% 100%;animation:ux-working 1s linear infinite}
@keyframes ux-working{from{background-position:180% 0}to{background-position:-180% 0}}
@media(prefers-reduced-motion:reduce){.ux-busy-mark{animation:none;background:currentColor;opacity:.55}}
.ux-undo-notice{position:fixed!important;z-index:100000!important;left:50%!important;bottom:max(18px,calc(env(safe-area-inset-bottom) + 84px))!important;transform:translateX(-50%)!important;display:flex!important;align-items:center!important;gap:8px!important;max-width:calc(100vw - 24px)!important;box-sizing:border-box!important;padding:4px 9px!important;border:1px solid var(--inside-accent,#81052e)!important;border-radius:8px!important;background:var(--inside-paper,#fffefa)!important;color:var(--inside-text,#352e40)!important;box-shadow:0 5px 24px #30203026!important;font:13px/1.35 Atelier Sans,Arial,sans-serif!important}
.ux-undo-notice[hidden]{display:none!important}.ux-undo-notice>span{min-width:0;overflow-wrap:anywhere}.ux-undo-notice>button{flex:none!important;min-height:32px!important;padding:4px 8px!important;color:var(--inside-accent,#81052e)!important;background:transparent!important}.ux-undo-notice>button:last-child{padding:5px!important;min-width:32px!important}
@media(max-width:760px){html[data-journal-keyboard=open] body .mobile-bottom-navigation{visibility:hidden!important;pointer-events:none!important}html[data-journal-keyboard=open] body .writing.rich-writing{scroll-margin-block:20px!important}html[data-journal-keyboard=open] body .ux-undo-notice{bottom:calc(var(--ux-keyboard-inset,0px) + 12px)!important}}
/* Distinguish the filter heading with a quieter shade of the selected page theme. */
html body #app#app#app #page#page .history-filter-options>summary{
 color:color-mix(in srgb,var(--inside-accent,var(--accent-deep,#81052e)) 55%,var(--inside-text,var(--ink,#352e40)))!important;
 -webkit-text-fill-color:currentColor!important;
}
html[data-lighting=night] body #app#app#app #page#page .history-filter-options>summary{
 color:color-mix(in srgb,var(--inside-accent,var(--accent-deep,#81052e)) 55%,#fffefa)!important;
}
/* Restore the full-size task summary cards on tablets and desktops only. */
@layer uxInteraction{
 @media(min-width:761px){
  html body #app #page[data-layout=tasks] .task-totals{display:grid!important;width:100%!important;max-width:900px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important;margin:20px auto 28px!important;justify-self:stretch!important;box-sizing:border-box!important}
  html body #app #page[data-layout=tasks] .task-totals>.task-metric{width:100%!important;min-width:0!important;height:200px!important;min-height:200px!important;max-height:none!important;padding:20px 14px!important;grid-template-rows:32px 66px 36px!important;align-content:center!important;gap:8px!important}
  html body #app #page[data-layout=tasks] .task-totals>.task-metric>b{font-size:60px!important;line-height:1!important}
  html body #app #page[data-layout=tasks] .task-totals>.task-metric>span{font-size:15px!important;line-height:1.3!important}
  html body #app #page[data-layout=tasks] .task-totals>.task-metric>i,html body #app #page[data-layout=tasks] .task-totals>.task-metric>i svg{width:34px!important;height:34px!important}
 }
}
/* Tool categories are visually distinct from action labels in the chosen theme. */
@layer uxInteraction{
 html body #modal #all-tools-list .tool-group>h3{
  color:color-mix(in srgb,var(--inside-accent,var(--accent-deep,#81052e)) 55%,var(--inside-text,var(--ink,#352e40)))!important;
  -webkit-text-fill-color:currentColor!important;
 }
 html[data-lighting=night] body #modal #all-tools-list .tool-group>h3{
  color:color-mix(in srgb,var(--inside-accent,var(--accent-deep,#81052e)) 55%,#fffefa)!important;
 }
}
/* Each heading centers within its own tool section at every breakpoint. */
@layer uxInteraction{
 html body #modal #all-tools-list .tool-group>h3{
  display:block!important;width:100%!important;box-sizing:border-box!important;
  text-align:center!important;justify-self:stretch!important;
 }
}
@layer uxInteraction{
 html body #modal .modal-head.tools-section-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:12px!important}
 html body #modal .tools-section-heading>h2{grid-column:1!important;grid-row:1!important;text-align:left!important;margin:0!important}
 html body #modal .tools-section-heading>#edit-shortcuts{grid-column:2!important;grid-row:1!important;justify-self:end!important;margin:0!important;white-space:nowrap!important}
 html body #modal .tools-section-heading>[aria-label="Close dialog"]{grid-column:3!important;grid-row:1!important}
 @media(max-width:480px){html body #modal .modal-head.tools-section-heading{gap:7px!important}html body #modal .tools-section-heading>#edit-shortcuts{font-size:12px!important;padding:8px!important}html body #modal .tools-section-heading>h2{font-size:24px!important}}
}
@layer uxInteraction{
 html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;gap:12px!important}
 html body #modal .dialog-action-heading>h2{grid-column:1!important;grid-row:1!important;text-align:left!important;margin:0!important}
 html body #modal .dialog-action-heading>.dialog-heading-link{grid-column:2!important;grid-row:1!important;justify-self:end!important;position:static!important;width:auto!important;margin:0!important;padding:7px 0!important;min-height:36px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--inside-accent,var(--accent-deep,#81052e))!important;-webkit-text-fill-color:currentColor!important;font:500 14px/1.3 Arial,sans-serif!important;white-space:nowrap!important;text-decoration:none!important}
 html body #modal .dialog-action-heading>[aria-label="Close dialog"]{grid-column:3!important;grid-row:1!important}
 @media(max-width:480px){html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading{gap:8px!important}html body #modal .dialog-action-heading>h2{font-size:23px!important}html body #modal .dialog-action-heading>.dialog-heading-link{font-size:12px!important}}
}
/* Antique gold distinguishes category headings and management links. */
@layer uxInteraction{
 html body #modal #all-tools-list .tool-group>h3,
 html body #modal .dialog-action-heading>.dialog-heading-link{
  color:#8b651f!important;-webkit-text-fill-color:#8b651f!important;
 }
 html body #modal .dialog-action-heading>.dialog-heading-link{font-weight:700!important}
 html body #modal .dialog-action-heading>.dialog-heading-link:hover{text-decoration:underline!important;text-underline-offset:3px!important}
 html[data-lighting=night] body #modal #all-tools-list .tool-group>h3,
 html[data-lighting=night] body #modal .dialog-action-heading>.dialog-heading-link{
  color:#edce87!important;-webkit-text-fill-color:#edce87!important;
 }
}
/* Nine choices form three balanced rows in both mood pickers. */
@layer uxInteraction{
 html body #modal .home-checkin-moods,
 html body #app #page[data-layout=mood] .moods{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-flow:row!important;align-items:stretch!important;gap:10px!important;
 }
 html body #modal .home-checkin-moods>button,
 html body #app #page[data-layout=mood] .moods>button{
  width:100%!important;min-width:0!important;max-width:none!important;
  grid-column:auto!important;grid-row:auto!important;box-sizing:border-box!important;
  justify-self:stretch!important;align-self:stretch!important;
 }
}
/* Separate check-in sections while leaving Clear beside its own field. */
@layer uxInteraction{
 html body #modal label:has(>#home-mood-note),
 html body #app #page[data-layout=mood] label:has(>#mood-note){margin-top:20px!important}
 html body #modal:has(.home-checkin-moods) .mood-context,
 html body #app #page[data-layout=mood] .mood-context{margin-top:22px!important}
}
@layer uxInteraction{
 html body #modal .tools-section-heading>#edit-shortcuts{width:auto!important;max-width:none!important;min-width:max-content!important;height:auto!important;position:static!important;inset:auto!important;transform:none!important;flex:none!important;padding:8px 12px!important;border-radius:8px!important}
}
@layer uxInteraction{
 html body #modal .writing-library-kinds{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin:0 0 14px!important}
 html body #modal .writing-library-kinds>button{width:100%!important;min-width:0!important;white-space:normal!important}
 html body #modal .writing-collection-explanation{margin:0!important;line-height:1.6!important;min-height:3.2em!important}
 html body #modal .writing-collection-divider{display:block!important;border:0!important;border-top:1px solid var(--accent-edge,#dec8d0)!important;margin:18px 0!important;width:100%!important}
 html body #modal .library-item-actions>.library-icon-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:8px!important;flex:none!important}
 html body #modal .library-icon-action>svg{width:20px!important;height:20px!important;pointer-events:none!important}
 @media(max-width:480px){html body #modal .writing-library-kinds{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}}
}
@layer uxInteraction{
 html body #modal .library-manager-tools{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:end!important;gap:12px!important}
 html body #modal .library-manager-tools>.library-search-field,html body #modal .library-manager-tools>.library-hidden-field{display:grid!important;grid-template-rows:20px 44px!important;gap:6px!important;margin:0!important;min-width:0!important}
 html body #modal .library-search-field>span,html body #modal .library-hidden-field>span{font:500 13px/20px Arial,sans-serif!important;color:var(--inside-accent,var(--accent-deep))!important}
 html body #modal #library-search{width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;box-sizing:border-box!important}
 html body #modal #library-hidden-toggle{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:44px!important;height:44px!important;margin:0!important;padding:8px 10px!important;background:transparent!important;border:2px solid transparent!important;color:var(--inside-accent,var(--accent-deep))!important;box-sizing:border-box!important;white-space:nowrap!important}
 html body #modal #library-hidden-toggle[aria-pressed=true]{border-radius:8px!important;background:linear-gradient(var(--inside-paper,#fffdfb),var(--inside-paper,#fffdfb)) padding-box,var(--selection-iridescence) border-box!important;font-weight:700!important}
 html body #modal #library-show-hidden{display:none!important}
 @media(max-width:600px){html body #modal .library-manager-tools{grid-template-columns:minmax(0,1fr) auto!important}html body #modal #library-new{grid-column:1/-1!important;justify-self:start!important}}
}
@layer uxInteraction{
 html body #modal .tool-search-heading-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 10px!important}
 html body #modal .tool-search-heading-row>label{margin:0!important;font-weight:600!important;color:var(--inside-accent,var(--accent-deep,#81052e))!important}
 html body #modal .tool-search-heading-row>#edit-shortcuts{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:auto!important;height:auto!important;min-height:40px!important;margin:0!important;padding:8px 12px!important;flex:none!important;white-space:nowrap!important;font:600 14px/1.3 Arial,sans-serif!important;color:var(--inside-accent,#81052e)!important;-webkit-text-fill-color:currentColor!important;border:2px solid transparent!important;border-image:none!important;border-radius:8px!important;background:linear-gradient(var(--inside-paper,#fffcf6),var(--inside-paper,#fffcf6)) padding-box,var(--selection-iridescence,linear-gradient(115deg,#80032e,#fff7df,#c39b49,#80032e)) border-box!important;box-shadow:0 2px 5px #81052e12!important}
 html body #modal .tool-search-heading-row>#edit-shortcuts>svg{width:20px!important;height:20px!important;flex:none!important}
 @media(max-width:480px){html body #modal .tool-search-heading-row>#edit-shortcuts{font-size:12px!important;padding:8px!important}}
}
@layer uxInteraction{
 html body #app #page .journal-help-shortcuts{align-items:stretch!important}
 html body #app #page .journal-help-shortcuts>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;padding:9px 14px!important;gap:8px!important;box-sizing:border-box!important}
 html body #app #page .journal-help-shortcuts .more-tools-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:28px!important;flex:none!important;font:26px/1 'Segoe UI Emoji','Apple Color Emoji',sans-serif!important}
 @media(max-width:760px){html body #app #page .journal-help-shortcuts>button{min-height:44px!important;padding:8px 10px!important}}
}
@layer uxInteraction{
 html body #app #page .journal-help-shortcuts>[data-action=all-tools]>.navigation-symbol{width:28px!important;height:28px!important;flex:none!important}
}
/* Give History controls an unmistakable gold accent, including their icons. */
@layer uxInteraction{
 html body #app #page .history-filter-options>summary,
 html body #app #page .history-filter-options>summary *,
 html body #app #page .favorites-filter,
 html body #app #page .favorites-filter *{
  color:#8b651f!important;-webkit-text-fill-color:#8b651f!important;
 }
 html body #app #page .history-filter-options>summary,
 html body #app #page .favorites-filter{font-weight:600!important}
 html body #app #page .history-filter-options>summary::before,
 html body #app #page .history-filter-options>summary::after{color:#8b651f!important;border-color:#8b651f!important}
 html[data-lighting=night] body #app #page .history-filter-options>summary,
 html[data-lighting=night] body #app #page .history-filter-options>summary *,
 html[data-lighting=night] body #app #page .favorites-filter,
 html[data-lighting=night] body #app #page .favorites-filter *{color:#edce87!important;-webkit-text-fill-color:#edce87!important}
 html[data-lighting=night] body #app #page .history-filter-options>summary::before,
 html[data-lighting=night] body #app #page .history-filter-options>summary::after{color:#edce87!important;border-color:#edce87!important}
}
/* Antique gold marks structural headings, never user content or cover lettering. */
@layer uxInteraction{
 html:not([data-setup]) body #modal .modal-head>h2,
 html:not([data-setup]) body #app #page :is(.section-head,.care-page-heading,.dashboard-heading,.dashboard-title)>h2,
 html:not([data-setup]) body #app #page :is(.section-head,.care-page-heading,.dashboard-heading,.dashboard-title)>div>h2,
 html:not([data-setup]) body #app #page :is(.section-head,.history,.insight-panel,.task-workspace-summary,.habit-month-summary,.consistency-panel,.dashboard-mood-calendar)>h3,
 html:not([data-setup]) body #app #page :is(.spread-page,.task-workspace-main)>h2,
 html:not([data-setup]) body #app #page :is(.composer-heading,.threads-panel)>h3,
 html:not([data-setup]) body #app #dashboard-reminders>h3,
 html:not([data-setup]) body #modal :is(.jar-panel-heading,.jar-note-panel)>h3{
  color:#8b651f!important;-webkit-text-fill-color:#8b651f!important;
 }
 html[data-lighting=night]:not([data-setup]) body #modal .modal-head>h2,
 html[data-lighting=night]:not([data-setup]) body #app #page :is(.section-head,.care-page-heading,.dashboard-heading,.dashboard-title)>h2,
 html[data-lighting=night]:not([data-setup]) body #app #page :is(.section-head,.care-page-heading,.dashboard-heading,.dashboard-title)>div>h2,
 html[data-lighting=night]:not([data-setup]) body #app #page :is(.section-head,.history,.insight-panel,.task-workspace-summary,.habit-month-summary,.consistency-panel,.dashboard-mood-calendar)>h3,
 html[data-lighting=night]:not([data-setup]) body #app #page :is(.spread-page,.task-workspace-main)>h2,
 html[data-lighting=night]:not([data-setup]) body #app #page :is(.composer-heading,.threads-panel)>h3,
 html[data-lighting=night]:not([data-setup]) body #app #dashboard-reminders>h3,
 html[data-lighting=night]:not([data-setup]) body #modal :is(.jar-panel-heading,.jar-note-panel)>h3{
  color:#edce87!important;-webkit-text-fill-color:#edce87!important;
 }
}
/* Prominent, coordinated management buttons in dialog headers. */
@layer uxInteraction{
 html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading{gap:16px!important}
 html body #modal .dialog-action-heading>.dialog-heading-link{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  width:auto!important;max-width:none!important;min-width:max-content!important;min-height:44px!important;height:auto!important;
  padding:10px 15px!important;margin:0!important;position:static!important;inset:auto!important;
  font:700 15px/1.3 Arial,sans-serif!important;letter-spacing:normal!important;
  color:var(--inside-accent,#81052e)!important;-webkit-text-fill-color:currentColor!important;
  border:2px solid transparent!important;border-image:none!important;border-radius:9px!important;
  background:linear-gradient(var(--inside-paper,#fffcf6),var(--inside-paper,#fffcf6)) padding-box,var(--selection-iridescence,linear-gradient(115deg,#80032e,#b86d86,#fff7df,#c39b49,#80032e)) border-box!important;
  box-shadow:0 2px 6px #30203016!important;text-decoration:none!important;
 }
 html body #modal .dialog-action-heading>.dialog-heading-link>svg{width:20px!important;height:20px!important;flex:none!important}
 html[data-lighting=night] body #modal .dialog-action-heading>.dialog-heading-link{color:var(--night-accent-text,#edce87)!important;background:linear-gradient(#181818,#181818) padding-box,var(--selection-iridescence) border-box!important}
 @media(max-width:480px){
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading{gap:8px!important}
  html body #modal .dialog-action-heading>.dialog-heading-link{font-size:12px!important;padding:9px!important;min-height:42px!important}
  html body #modal .dialog-action-heading>h2{font-size:22px!important;min-width:0!important;overflow-wrap:normal!important}
 }
}
/* Match Daily check-in's section separation in Weekly reflection. */
@layer uxInteraction{
 html body #modal label:has(>#week-release){margin-top:20px!important}
 html body #modal label:has(>#week-next){margin-top:22px!important}
}
/* Keep the lower tool groups aligned with a little more room below Writing. */
@layer uxInteraction{
 html body #modal #all-tools-list{row-gap:28px!important}
}
@layer uxInteraction{
 html body #modal label:has(>#home-mood-note),html body #app #page[data-layout=mood] label:has(>#mood-note){margin-top:12px!important}
 html body #modal label:has(>#ritual-intention){margin-top:20px!important}
 html body #app #page[data-layout=mood] .mood-checkin-details>label:has(>#mood-intention){margin-top:0!important}
 .checkin-optional{font-size:.85em!important;font-weight:400!important;opacity:.8!important;white-space:nowrap!important}
}
@layer uxInteraction{
 html body #app #page>#across-books{grid-column:1/-1!important;display:block!important;width:100%!important;box-sizing:border-box!important;margin:28px 0 0!important;padding:24px!important;border-top:1px solid var(--accent-edge,#dec8d0)!important;scroll-margin-top:24px!important}
 #across-books>h2{color:#8b651f!important;-webkit-text-fill-color:#8b651f!important;margin:0 0 8px!important;font-size:28px!important}
 .across-books-description{font-size:14px!important;line-height:1.5!important;margin:0 0 20px!important}
 #across-books table{width:100%!important;border-collapse:separate!important;border-spacing:0 10px!important;table-layout:fixed!important}
 #across-books th,#across-books td{text-align:left!important;padding:12px!important;vertical-align:middle!important;box-sizing:border-box!important;border:0!important}
 #across-books thead th{font:600 13px/1.4 Arial,sans-serif!important;color:var(--inside-accent,#81052e)!important}
 #across-books tbody tr{--across-paper:#fffefa;--across-accent:#81052e;--across-text:#352e40}
 #across-books tbody :is(th,td){background:var(--across-paper)!important;color:var(--across-text)!important;border-top:1px solid color-mix(in srgb,var(--across-accent) 25%,var(--across-paper))!important;border-bottom:1px solid color-mix(in srgb,var(--across-accent) 25%,var(--across-paper))!important}
 #across-books tbody th{border-left:3px solid var(--across-accent)!important;border-radius:9px 0 0 9px!important}
 #across-books tbody td:last-child{border-radius:0 9px 9px 0!important;border-right:1px solid color-mix(in srgb,var(--across-accent) 25%,var(--across-paper))!important}
 #across-books button{display:flex!important;position:relative!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important;text-align:left!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--across-accent)!important;-webkit-text-fill-color:currentColor!important;font:400 14px/1.4 Arial,sans-serif!important;padding:6px 0!important;margin:0!important;min-height:40px!important;width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}
 #across-books button strong{font-weight:700!important;color:inherit!important;-webkit-text-fill-color:currentColor!important}
 .across-arrow{margin-left:auto!important;flex:none!important}
 .across-progress{display:block!important;flex:1 0 100%!important;height:7px!important;overflow:hidden!important;border-radius:99px!important;background:color-mix(in srgb,var(--across-accent) 15%,var(--across-paper))!important}
 .across-progress>i{display:block!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(115deg,var(--across-accent),color-mix(in srgb,var(--across-accent),white 60%),var(--across-accent),color-mix(in srgb,var(--across-accent),white 25%))!important}
 html body #app .all-book-notices-link{display:block!important;width:max-content!important;max-width:100%!important;margin:6px 0 14px!important;padding:6px 8px!important;background:transparent!important;box-shadow:none!important;border:0!important;color:var(--inside-accent,#81052e)!important;font:600 13px/1.4 Arial,sans-serif!important}
 html[data-lighting=night] #across-books>h2{color:#edce87!important;-webkit-text-fill-color:#edce87!important}
 html[data-lighting=night] #across-books tbody :is(th,td){background:color-mix(in srgb,var(--across-accent) 12%,#121212)!important;color:#f1edf3!important}
 html[data-lighting=night] #across-books button{color:color-mix(in srgb,var(--across-accent) 45%,#fffefa)!important}
 @media(max-width:760px){
  html body #app #page>#across-books{padding:16px!important}
  #across-books table,#across-books tbody{display:block!important}
  #across-books thead{display:none!important}
  #across-books tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:0 0 14px!important;background:var(--across-paper)!important;border:1px solid color-mix(in srgb,var(--across-accent) 35%,var(--across-paper))!important;border-left:3px solid var(--across-accent)!important;border-radius:9px!important;overflow:hidden!important}
  #across-books tbody th{grid-column:1/-1!important}
  #across-books tbody :is(th,td){display:block!important;border:0!important;border-radius:0!important;padding:10px 12px!important}
  #across-books td::before{content:attr(data-label);display:block;font:600 12px/1.4 Arial,sans-serif;color:var(--across-text);opacity:.75;margin-bottom:3px}
  html[data-lighting=night] #across-books td::before{color:#f1edf3}
 }
}
@layer uxInteraction{
 #across-books>h2{display:flex!important;align-items:center!important;gap:9px!important}
 #across-books>h2>svg{width:25px!important;height:25px!important;flex:none!important}
 #across-books thead th{background:linear-gradient(115deg,color-mix(in srgb,var(--inside-paper,#fffefa) 82%,transparent),color-mix(in srgb,var(--inside-paper,#fffefa) 64%,transparent)),var(--selection-iridescence)!important;border-top:1px solid var(--accent-edge,#dec8d0)!important;border-bottom:2px solid var(--accent-edge,#dec8d0)!important}
 #across-books thead th>svg{vertical-align:middle!important;margin-right:6px!important;width:19px!important;height:19px!important}
 html[data-lighting=night] #across-books thead th{background:linear-gradient(#171c2799,#171c2799),var(--selection-iridescence)!important;color:#fffaf1!important;-webkit-text-fill-color:#fffaf1!important}
}
/* Dark-mode audit: recent controls must not inherit dark ink or light paper. */
@layer uxInteraction{
 html[data-lighting=night] body .ux-undo-notice{background:#181818!important;color:#f1edf3!important;-webkit-text-fill-color:#f1edf3!important;border-color:color-mix(in srgb,var(--inside-accent,#81052e) 45%,#fffefa)!important;box-shadow:0 5px 24px #0007!important}
 html[data-lighting=night] body .ux-undo-notice>button{color:#edce87!important;-webkit-text-fill-color:#edce87!important}
 html[data-lighting=night] body #modal :is(.library-search-field>span,.library-hidden-field>span,#library-hidden-toggle){color:var(--night-accent-text,#edce87)!important;-webkit-text-fill-color:currentColor!important}
 html[data-lighting=night] body #modal #library-hidden-toggle[aria-pressed=true]{background:linear-gradient(#181818,#181818) padding-box,var(--selection-iridescence) border-box!important}
 html[data-lighting=night] body #app .all-book-notices-link{color:var(--night-accent-text,#edce87)!important;-webkit-text-fill-color:currentColor!important}
 html[data-lighting=night] body #app .daily-stat-icon>.home-mood-emoji{color:var(--night-accent-text,#edce87)!important}
 html[data-lighting=night] body #modal .writing-collection-divider{border-top-color:#6b626c!important}
 html[data-lighting=night] #across-books tbody tr{background:#181818!important}
 html[data-lighting=night] #across-books .across-na{color:#d9d2dd!important;-webkit-text-fill-color:#d9d2dd!important}
 html[data-lighting=night] #across-books .across-progress{background:#ffffff26!important}
 html[data-lighting=night] #across-books .across-progress>i{background:linear-gradient(115deg,color-mix(in srgb,var(--across-accent) 55%,white),var(--across-accent),color-mix(in srgb,var(--across-accent) 35%,white))!important}
}
@layer uxInteraction{
 #across-books .across-cell-label{display:none!important}
 @media(max-width:760px){
  #across-books td::before{display:none!important}
  #across-books .across-cell-label{display:flex!important;align-items:center!important;gap:5px!important;font:600 12px/1.4 Arial,sans-serif!important;color:var(--across-text)!important;opacity:.85!important;margin-bottom:3px!important}
  #across-books .across-cell-label>svg{width:16px!important;height:16px!important;flex:none!important}
  html[data-lighting=night] #across-books .across-cell-label{color:#f1edf3!important}
 }
}
@layer uxInteraction{
 html[data-lighting=night] body #modal .jar-all-notes,
 html[data-lighting=night] body #modal .jar-all-notes *{color:#edce87!important;-webkit-text-fill-color:#edce87!important}
 html[data-lighting=night] body #modal .modal-head>h2>span{color:#edce87!important;-webkit-text-fill-color:#edce87!important}
 html[data-lighting=night] body #modal .collection-editor-overlay{background:#121212!important;color:#f1edf3!important}
 html[data-lighting=night] body #modal .collection-editor-overlay :is(label,legend,.collection-editor-head,.collection-editor-actions,.capsule-mode-explanation){color:#f1edf3!important;-webkit-text-fill-color:#f1edf3!important}
 html[data-lighting=night] body #modal .collection-editor-head>h3,
 html[data-lighting=night] body #modal .collection-editor-actions>button,
 html[data-lighting=night] body #modal .capsule-choice-crown{color:#edce87!important;-webkit-text-fill-color:#edce87!important}
}
/* Stronger column grouping and distinguishable themed rows. */
@layer uxInteraction{
 @media(min-width:761px){
  #across-books thead th{text-align:center!important}
  #across-books thead th+th{border-left:1px solid color-mix(in srgb,var(--inside-accent,#81052e) 28%,var(--inside-paper,#fffefa))!important}
  #across-books tbody td{border-left:1px solid color-mix(in srgb,var(--across-accent) 22%,var(--across-paper))!important}
  #across-books tbody td>button{justify-content:center!important;text-align:center!important}
  #across-books tbody td>button>.across-arrow{margin-left:3px!important}
 }
 html[data-lighting=night] #across-books table{border-spacing:0 14px!important}
 html[data-lighting=night] #across-books tbody :is(th,td){background:color-mix(in srgb,var(--across-accent) 23%,#22242c)!important;border-top-color:color-mix(in srgb,var(--across-accent) 40%,#c7c0d0)!important;border-bottom-color:color-mix(in srgb,var(--across-accent) 40%,#c7c0d0)!important}
 html[data-lighting=night] #across-books tbody td:last-child{border-right-color:color-mix(in srgb,var(--across-accent) 40%,#c7c0d0)!important}
 html[data-lighting=night] #across-books button{color:color-mix(in srgb,var(--across-accent) 30%,#fffefa)!important}
 @media(min-width:761px){
  html[data-lighting=night] #across-books thead th+th{border-left-color:#ffffff40!important}
  html[data-lighting=night] #across-books tbody td{border-left-color:color-mix(in srgb,var(--across-accent) 35%,#9e96aa)!important}
 }
 @media(max-width:760px){
  html[data-lighting=night] #across-books tbody tr{border-color:color-mix(in srgb,var(--across-accent) 40%,#c7c0d0)!important;margin-bottom:18px!important}
  html[data-lighting=night] #across-books tbody td{border-top:1px solid #ffffff26!important}
  html[data-lighting=night] #across-books tbody td:nth-child(odd){border-left:1px solid #ffffff26!important}
 }
}
/* More prominent library-activity column headings. */
@layer uxInteraction{
 #across-books thead th{font-size:18px!important;line-height:1.35!important;font-weight:700!important;padding:18px 12px!important}
 #across-books thead th>svg{width:24px!important;height:24px!important;margin-right:8px!important}
 @media(min-width:761px) and (max-width:1000px){#across-books thead th{font-size:16px!important;padding:16px 9px!important}#across-books thead th>svg{width:22px!important;height:22px!important}}
 @media(max-width:760px){#across-books .across-cell-label{font-size:15px!important;line-height:1.4!important;font-weight:700!important;margin-bottom:7px!important}#across-books .across-cell-label>svg{width:20px!important;height:20px!important}}
}
/* Compact data rows while preserving prominent headers and usable links. */
@layer uxInteraction{
 #across-books tbody :is(th,td){padding:7px 10px!important}
 #across-books tbody button{min-height:36px!important;padding:3px 0!important;gap:4px!important}
 #across-books tbody td[data-label="Habits today"]>button{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;column-gap:7px!important;row-gap:5px!important}
 #across-books tbody td[data-label="Habits today"]>button>span:first-child{grid-column:1!important;grid-row:1!important;text-align:center!important}
 #across-books tbody td[data-label="Habits today"] .across-arrow{grid-column:2!important;grid-row:1/3!important;margin:0!important;align-self:center!important}
 #across-books tbody td[data-label="Habits today"] .across-progress{grid-column:1!important;grid-row:2!important;width:100%!important;height:6px!important}
 #across-books table{border-spacing:0 8px!important}
 html[data-lighting=night] #across-books table{border-spacing:0 10px!important}
 @media(max-width:760px){
  #across-books tbody :is(th,td){padding:8px 10px!important}
  #across-books .across-cell-label{margin-bottom:4px!important}
  #across-books tbody tr{margin-bottom:12px!important}
  html[data-lighting=night] #across-books tbody tr{margin-bottom:12px!important}
 }
}
/* Column headers form a taller band than the compact data rows. */
@layer uxInteraction{
 #across-books thead tr{height:84px!important}
 #across-books thead th{height:84px!important;padding:22px 12px!important;vertical-align:middle!important}
 @media(min-width:761px) and (max-width:1000px){#across-books thead tr,#across-books thead th{height:80px!important}#across-books thead th{padding:20px 9px!important}}
 @media(max-width:760px){#across-books .across-cell-label{min-height:34px!important;padding:6px 0!important;margin-bottom:4px!important}}
}
@layer uxInteraction{
 html body #app .home-notice-area .capsule-home-reminder,
 html body #app .home-notice-area .capsule-home-reminder :is(span,b){font-weight:700!important}
 html body #app .all-book-notices-link{display:flex!important;align-items:center!important;gap:8px!important;font-weight:400!important}
 html body #app .all-book-notices-link>span{font-weight:400!important}
 html body #app .all-book-notices-link>svg{width:21px!important;height:21px!important;flex:none!important}
}
/* Only actionable, unfinished items receive emphasis. */
@layer uxInteraction{
 #across-books tbody button.across-needs-attention{font-weight:700!important;color:color-mix(in srgb,var(--across-accent) 78%,#241625)!important;-webkit-text-fill-color:currentColor!important}
 #across-books tbody button.across-needs-attention>span{font-weight:700!important}
 html[data-lighting=night] #across-books tbody button.across-needs-attention{color:color-mix(in srgb,var(--across-accent) 15%,#fffefa)!important;-webkit-text-fill-color:currentColor!important}
}
/* Small book swatches over the title keep the Book column recognizable. */
@layer uxInteraction{
 #across-books tbody th>button{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;justify-items:center!important;row-gap:4px!important;text-align:center!important}
 #across-books .across-book-preview{grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:center!important;width:48px!important;height:46px!important;overflow:visible!important;position:relative!important}
 #across-books tbody th>button>strong{grid-column:1!important;grid-row:2!important;line-height:1.25!important}
 #across-books tbody th>button>.across-arrow{grid-column:2!important;grid-row:1/3!important;margin:0!important}
 #across-books .across-book-preview>.saved-design-preview{position:relative!important;display:block!important;width:62px!important;height:80px!important;flex:none!important;transform:scale(.55)!important;transform-origin:center!important}
 #across-books .across-book-preview img{display:block!important;max-width:46px!important;max-height:46px!important;width:auto!important;height:auto!important;object-fit:contain!important}
 #across-books .across-book-preview>:not(.saved-design-preview):has(img){display:flex!important;justify-content:center!important;align-items:center!important;max-width:48px!important;max-height:46px!important}
 #across-books .across-mini-cover{display:block!important;width:31px!important;height:42px!important;border-radius:2px 5px 5px 2px!important;background:linear-gradient(115deg,#fff4,transparent 40%,#0002),var(--across-accent)!important;border-left:3px solid #0003!important;box-shadow:2px 2px 0 #e7dfd2!important}
 #across-books tbody td[data-label="Habits today"]>button:not(:has(.across-progress)){display:flex!important}
}
@layer uxInteraction{
 #across-books .across-status{display:block!important;font:400 14px/1.4 Arial,sans-serif!important;color:var(--across-accent)!important;-webkit-text-fill-color:currentColor!important;text-align:center!important}
 #across-books .across-status .across-progress{margin-top:5px!important}
 html[data-lighting=night] #across-books .across-status{color:color-mix(in srgb,var(--across-accent) 30%,#fffefa)!important}
 @media(max-width:760px){#across-books .across-status{text-align:left!important}}
}
@layer uxInteraction{
 @media(min-width:761px){html[data-additional-book-setup=true] body #app .guided-setup-steps{grid-template-columns:repeat(6,minmax(0,1fr))!important}}
}
@layer uxInteraction{
 @media(min-width:761px){html[data-additional-book-setup=true] body #app .guided-setup-steps{grid-template-columns:repeat(var(--additional-step-count,6),minmax(0,1fr))!important}}
 #across-books .across-book-preview>.book-choice-art{display:block!important;position:relative!important;width:34px!important;height:46px!important;max-height:46px!important;padding:0!important}
 #across-books .across-book-preview .book-choice-frame{display:block!important;position:relative!important;width:34px!important;height:46px!important;overflow:hidden!important}
 #across-books .across-book-preview .book-choice-frame>img{position:absolute!important;left:var(--thumb-x,0)!important;top:var(--thumb-y,0)!important;width:var(--thumb-w,100%)!important;height:var(--thumb-h,100%)!important;max-width:none!important;max-height:none!important;object-fit:fill!important;transform:none!important}
}
/* One connected table, with a more prominent header band. */
@layer uxInteraction{
 @media(min-width:761px){
  #across-books table,html[data-lighting=night] #across-books table{border-spacing:0!important}
  #across-books thead tr,#across-books thead th{height:100px!important}
  #across-books thead th{font-size:24px!important;line-height:1.25!important;padding:22px 12px!important}
  #across-books thead th>svg{width:29px!important;height:29px!important;margin-right:9px!important}
  #across-books tbody th,#across-books tbody td:last-child{border-radius:0!important}
  #across-books tbody tr:first-child :is(th,td){border-top:0!important}
  #across-books tbody tr:last-child th{border-radius:0 0 0 9px!important}
  #across-books tbody tr:last-child td:last-child{border-radius:0 0 9px 0!important}
  #across-books thead th:first-child{border-radius:9px 0 0 0!important}
  #across-books thead th:last-child{border-radius:0 9px 0 0!important}
 }
 @media(min-width:761px) and (max-width:1000px){
  #across-books thead th{font-size:20px!important;padding:20px 9px!important}
  #across-books thead th>svg{width:25px!important;height:25px!important;margin-right:6px!important}
 }
 @media(max-width:760px){#across-books .across-cell-label{font-size:17px!important}#across-books .across-cell-label>svg{width:22px!important;height:22px!important}}
}

@layer uxInteraction{
/* Keep Home's writing action separate from design and notices. */
html[data-screen=home] body #app .home-secondary-actions{align-items:center!important;}
html[data-screen=home] body #app .home-secondary-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:6px 16px;width:100%;margin:8px 0 4px;}
html[data-screen=home] body #app .home-secondary-notices{display:contents;}
html[data-screen=home] body #app .home-secondary-notices>.home-inspiration-entry{grid-column:1;grid-row:1;margin:0!important;}
html[data-screen=home] body #app .home-secondary-notices>.home-notice-area{grid-column:1;grid-row:2;}
html[data-screen=home] body #app .home-secondary-notices>.all-book-notices-link{grid-column:2;grid-row:2;}
html[data-screen=home] body #app .home-secondary-actions>.hero-links{grid-column:2;grid-row:1;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .home-secondary-notices .home-notice-area{margin:0!important;padding:0!important;max-width:none!important;width:auto!important;justify-content:flex-start!important;text-align:left!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .home-secondary-notices .all-book-notices-link{margin:0!important;justify-content:flex-start!important;align-self:flex-start!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .home-secondary-actions>.hero-links{display:flex!important;grid-column:2!important;grid-row:2!important;width:auto!important;justify-self:end!important;position:static!important;inset:auto!important;align-items:center!important;justify-content:flex-end!important;margin:0!important;padding:0!important;transform:none!important;flex-shrink:0;}
html[data-screen=home] body #app .home-secondary-actions>.hero-links button{min-height:40px;font-size:13px;white-space:nowrap;}
html[data-screen=home] body #app .home-secondary-actions>.hero-links svg{width:16px;height:16px;}
@media(max-width:600px){html[data-screen=home] body #app .home-secondary-actions{gap:8px;align-items:flex-start;}html[data-screen=home] body #app .home-secondary-actions>.hero-links button{font-size:11px!important;min-height:40px!important;}html[data-screen=home] body #app .home-secondary-notices{max-width:58%;}html[data-screen=home] body #app .home-secondary-notices button{font-size:11px!important;}}
/* Peach's artwork has a broader native shape; do not stretch it to the other editions' ratio. */
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .home-secondary-actions>.hero-links{grid-column:2!important;grid-row:1!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .home-secondary-actions .home-inspiration-entry{grid-column:1!important;grid-row:1!important;display:flex!important;position:static!important;inset:auto!important;transform:none!important;justify-content:flex-start!important;width:auto!important;margin:0!important;padding:0!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .home-secondary-actions .home-inspiration-link{min-height:40px!important;margin:0!important;padding:4px 0!important;font-size:13px!important;white-space:normal!important;text-align:left!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .home-secondary-actions .all-book-notices-link{grid-column:2!important;grid-row:2!important;justify-self:end!important;justify-content:flex-end!important;width:auto!important;min-height:40px!important;margin:0!important;padding:4px 0!important;text-align:right!important;}
@media(max-width:600px){html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .home-secondary-actions .home-inspiration-link{font-size:11px!important;}}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal [data-wand-cover="Peach Pearl"] .book-choice-frame{width:calc(var(--choice-slot)*421/480*281/373*.88)!important;aspect-ratio:281/373!important;}
/* Tighten only the name label's gap, leaving the field and action spacing intact. */
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .home-secondary-actions .home-inspiration-entry{height:auto!important;min-height:0!important;max-height:none!important;align-self:center!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .home-secondary-actions :is(.home-inspiration-link,.hero-links button,.all-book-notices-link){height:auto!important;min-height:44px!important;line-height:1.35!important;align-self:center!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app label:has(>#welcome-book-name){gap:6px!important;row-gap:6px!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app #welcome-book-name{margin-top:0!important;}

}

@layer uxInteraction{
/* Book editing bubbles size themselves around both the label and the plus icon. */
.wand-mobile-switch{display:flex!important;grid-column:1/-1!important;justify-content:center!important;align-items:center!important;width:100%!important;margin:0 0 14px!important;}
html[data-setup] body #app .included-custom-action>button,html[data-setup] body #app [data-featured-return]{display:inline-flex!important;align-items:center!important;gap:8px!important;}
html[data-setup] body #app .included-custom-action>button svg,html[data-setup] body #app [data-featured-return] svg{width:18px!important;height:18px!important;flex:0 0 18px!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app .included-custom-action{display:flex!important;justify-content:center!important;align-items:center!important;position:relative!important;width:100%!important;margin:0!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app .included-custom-action>button,
html[data-setup] body #app#app#app#app#app#app#app#app#app#app [data-featured-return]{box-sizing:border-box!important;width:208px!important;max-width:100%!important;min-height:44px!important;padding:10px 14px!important;justify-content:center!important;font-size:14px!important;line-height:1.4!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app [data-featured-return]{display:flex!important;margin:10px auto 0!important;align-self:center!important;justify-self:center!important;}
@media(max-width:760px){
html[data-setup] body #app#app#app#app#app#app#app#app#app#app .direct-studio .direct-studio-heading{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;align-items:center!important;gap:8px 12px!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app .direct-studio-heading>div:has(h1){grid-column:1!important;grid-row:1!important;min-width:0!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app .direct-studio .direct-studio-heading>.editor-book-name{grid-column:2!important;grid-row:1!important;justify-self:stretch!important;align-self:center!important;width:100%!important;min-width:0!important;margin:0!important;gap:4px!important;font-size:12px!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app .direct-studio-heading h1{font-size:clamp(18px,4.4vw,25px)!important;line-height:1.2!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app .direct-studio-heading>.direct-heading-actions{grid-column:1/-1!important;grid-row:2!important;}
}
/* Keep favorite actions out of the name field's grid cell at every wide breakpoint. */
@media(min-width:761px){
html[data-setup] body #app .direct-studio-heading>.design-favorite-tools{grid-column:1/-1!important;grid-row:2!important;position:static!important;inset:auto!important;transform:none!important;justify-self:center!important;align-self:center!important;width:auto!important;max-width:100%!important;margin:4px 0 0!important;flex-wrap:wrap!important;}
html[data-setup] body #app .direct-studio-heading>.direct-heading-actions:not(:empty){grid-column:1/-1!important;grid-row:3!important;}
}
/* The collection switch belongs below the title, never alongside its close control. */
@media(max-width:760px){
html body #modal .modal-head:has(>.wand-design-tabs){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;}
html body #modal .modal-head:has(>.wand-design-tabs)>h2{grid-column:1!important;grid-row:1!important;min-width:0!important;white-space:normal!important;}
html body #modal .modal-head:has(>.wand-design-tabs)>button{grid-column:2!important;grid-row:1!important;}
html body #modal .modal-head>.wand-design-tabs{grid-column:1/-1!important;grid-row:2!important;justify-self:center!important;justify-content:center!important;width:min(100%,360px)!important;max-width:100%!important;margin:0!important;}
}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app .home-actions:has(.setup-draft-actions){display:inline-grid!important;grid-template-columns:minmax(0,max-content)!important;justify-items:stretch!important;max-width:100%!important;gap:7px!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app .setup-draft-actions{display:grid!important;grid-template-columns:minmax(0,1fr) 32px!important;align-items:center!important;gap:8px!important;width:0!important;min-width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app .setup-draft-actions button{position:static!important;inset:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-width:0!important;width:auto!important;min-height:32px!important;height:auto!important;margin:0!important;padding:4px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--inside-accent,#81052e)!important;font:500 12px/1.4 Arial,sans-serif!important;white-space:normal!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app .setup-draft-actions button::before{content:none!important;display:none!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app .setup-draft-actions svg{width:18px!important;height:18px!important;flex:0 0 18px!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app .setup-draft-resume span{min-width:0!important;overflow-wrap:anywhere!important;text-align:left!important;text-decoration:underline;text-underline-offset:3px!important;}
html[data-lighting=night][data-screen=home] body #app#app#app#app#app#app#app#app#app#app .setup-draft-actions button{color:#fff!important;-webkit-text-fill-color:#fff!important;}
html[data-lighting=night][data-screen=home] body #app#app#app#app#app#app#app#app#app#app :is(.setup-draft-actions button,.home-inspiration-link) svg{color:#fff!important;stroke:currentColor!important;opacity:1!important;}
html[data-lighting=night][data-screen=home] body #app#app#app#app#app#app#app#app#app#app .home-inspiration-link,
html[data-lighting=night][data-screen=home] body #app#app#app#app#app#app#app#app#app#app .home-inspiration-link :is(span,i){color:#fff!important;-webkit-text-fill-color:#fff!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app [data-book-choices-back]{margin-right:auto!important;min-height:42px!important;max-width:100%!important;white-space:normal!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app .featured-return-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;justify-self:center!important;width:max-content!important;max-width:100%!important;min-height:42px!important;margin:8px auto 0!important;padding:8px 14px!important;font-size:14px!important;white-space:normal!important;}
@media(min-width:761px){html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-studio-heading{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(240px,360px)!important;align-items:center!important;gap:12px 24px!important;width:100%!important;}html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-studio-heading>div:first-child{grid-column:1!important;grid-row:1!important;min-width:0!important;}html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-studio-heading>.editor-book-name{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;align-self:center!important;}}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal:has(.new-book-dialog){max-height:calc(100dvh - 28px)!important;overflow:auto!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .modal-body:has(>.new-book-dialog){padding:18px!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-dialog{--new-book-shine:linear-gradient(115deg,var(--design-accent,#81052e),color-mix(in srgb,var(--design-accent,#81052e) 30%,white),#ecd8a2,#fff9ee,var(--design-accent,#81052e));display:grid!important;gap:12px!important;min-width:0!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-dialog :is(p,h3,label){margin:0!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-dialog h3{font-size:22px!important;line-height:1.3!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-dialog label{display:grid!important;gap:6px!important;min-width:0!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-dialog input{width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;margin:0!important;box-sizing:border-box!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-modes{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
html[data-lighting=night] body #modal .new-book-dialog{--design-paper:#181818!important;--design-text:#f5f0e8!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-modes>button{min-width:0!important;min-height:46px!important;height:auto!important;margin:0!important;padding:8px 10px!important;white-space:normal!important;font-size:14px!important;line-height:1.3!important;background:var(--design-paper,#fffdf9)!important;color:var(--design-text,var(--design-accent,#81052e))!important;border:3px solid color-mix(in srgb,var(--design-accent,#81052e) 18%,var(--design-paper,#fffdf9))!important;box-shadow:none!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-dialog :is(.new-book-modes>button,.new-book-design-gallery>button)[aria-pressed=true]{border:3px solid transparent!important;background:linear-gradient(var(--design-paper,#fffdf9),var(--design-paper,#fffdf9)) padding-box,var(--new-book-shine) border-box!important;box-shadow:0 2px 7px #0000000d!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-panel{display:grid!important;gap:10px!important;padding:0!important;margin:0!important;min-width:0!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-dialog [hidden]{display:none!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-design-gallery{grid-template-columns:repeat(auto-fill,minmax(min(100%,135px),1fr))!important;max-height:min(38dvh,350px)!important;overflow:auto!important;gap:8px!important;margin:0!important;padding:3px!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-design-gallery>button{min-width:0!important;height:auto!important;min-height:110px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:7px!important;padding:9px!important;border:3px solid color-mix(in srgb,var(--design-accent,#81052e) 15%,var(--design-paper,#fffdf9))!important;background:var(--design-paper,#fffdf9)!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-design-gallery strong{font-size:14px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;color:var(--design-text,var(--design-accent,#81052e))!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .new-book-selection{font-size:13px!important;line-height:1.4!important;color:var(--design-text,var(--design-accent,#81052e))!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal #new-book-name-feedback{position:static!important;inset:auto!important;display:block!important;max-width:100%!important;margin:0!important;padding:0!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal #new-book-name-feedback:empty{display:none!important;}
html body #modal#modal#modal#modal#modal#modal#modal#modal#modal#modal .modal-body>[role=status]{position:static!important;inset:auto!important;display:block;clear:both;max-width:100%!important;margin:12px 0 0!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important;}
@media(min-width:761px) and (max-width:900px){html body #descaxora-header#descaxora-header#descaxora-header#descaxora-header#descaxora-header#descaxora-header#descaxora-header#descaxora-header .wordmark{width:max-content!important;min-width:240px!important;max-width:none!important;}}
@media(max-width:360px){html body #descaxora-header#descaxora-header#descaxora-header#descaxora-header#descaxora-header#descaxora-header#descaxora-header#descaxora-header .wordmark{width:max-content!important;min-width:0!important;max-width:none!important;}}
@media(min-width:761px) and (max-width:900px){html body #descaxora-header#descaxora-header#descaxora-header .wordmark{width:max-content!important;min-width:240px!important;flex-shrink:0!important;}}
@media(max-width:360px){html body #descaxora-header#descaxora-header#descaxora-header .wordmark{width:max-content!important;min-width:0!important;flex-shrink:0!important;}html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .page-color-routes{grid-template-columns:repeat(2,minmax(0,1fr))!important;}html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .page-color-routes>button:last-child{grid-column:1/-1!important;}}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-hotspots>button.edit-point{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:max-content!important;min-width:112px!important;max-width:none!important;height:auto!important;min-height:38px!important;padding:6px 12px!important;box-sizing:border-box!important;white-space:nowrap!important;overflow:visible!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-hotspots>button.edit-point>span{display:block!important;position:static!important;inset:auto!important;transform:none!important;margin:0!important;padding:0!important;width:auto!important;min-width:0!important;flex:none!important;white-space:nowrap!important;text-align:center!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-hotspots>button.edit-point>i{position:static!important;inset:auto!important;transform:none!important;translate:none!important;margin:0!important;flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:24px!important;min-height:24px!important;max-height:24px!important;display:grid!important;place-items:center!important;}
@media(max-width:760px){html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-studio:not([data-target=ribbon]) .direct-book-surface{grid-template-columns:minmax(0,1fr) 116px!important;}html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-hotspots{width:116px!important;min-width:116px!important;}html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-hotspots>button.edit-point{font-size:12px!important;min-width:112px!important;padding:6px 8px!important;gap:6px!important;}}

/* Wide setup actions share one balanced row; phones keep their existing layout. */
@media(min-width:761px){
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-studio>.setup-top-actions{display:grid!important;grid-template-columns:minmax(80px,1fr) auto minmax(210px,1fr)!important;align-items:center!important;gap:12px!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .setup-top-actions>.design-favorite-tools{grid-column:2!important;grid-row:1!important;position:static!important;width:auto!important;min-width:0!important;margin:0!important;justify-self:center!important;flex-wrap:nowrap!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .setup-top-actions>.setup-top-actions-right{grid-column:3!important;grid-row:1!important;justify-self:end!important;margin:0!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .setup-top-actions>button{grid-column:1!important;grid-row:1!important;justify-self:start!important;}
}
@media(min-width:761px) and (max-width:980px){
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .direct-studio>.setup-top-actions{grid-template-columns:minmax(0,1fr) auto!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .setup-top-actions>.setup-top-actions-right{grid-column:2!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .setup-top-actions>.design-favorite-tools{grid-column:1/-1!important;grid-row:2!important;}
}

html[data-screen=home] body #app .setup-draft-short-label{display:none!important;}
@media(max-width:760px){
html[data-screen=home] body #app .setup-draft-full-label{display:none!important;}
html[data-screen=home] body #app .setup-draft-short-label{display:inline!important;white-space:nowrap!important;}
}

/* Keep discard beside the short draft link rather than at the container edge. */
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app .setup-draft-actions{grid-template-columns:max-content 28px!important;justify-content:center!important;gap:6px!important;}
html[data-screen=home] body #app#app#app#app#app#app#app#app#app#app#app#app .setup-draft-actions .setup-draft-resume{justify-content:flex-start!important;padding-left:0!important;}

/* Required setup guidance is a centered, readable gold notice. */
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #setup-feedback[role=alert]:not(:empty){display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;width:fit-content!important;max-width:calc(100% - 24px)!important;box-sizing:border-box!important;position:relative!important;margin:16px auto!important;padding:12px 18px!important;border:1px solid #b58a35!important;border-radius:10px!important;background:linear-gradient(115deg,#fff9e8,#f6e7bd,#fffdf3)!important;color:#704b11!important;-webkit-text-fill-color:#704b11!important;font:600 14px/1.5 Arial,sans-serif!important;text-align:center!important;box-shadow:0 3px 12px #8d692b18!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #setup-feedback[role=alert]:not(:empty)::before{content:'⚠';font-size:20px!important;line-height:1!important;flex:0 0 auto!important;color:inherit!important;}
html[data-setup][data-lighting=night] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #setup-feedback[role=alert]:not(:empty){background:linear-gradient(115deg,#292317,#382c17,#242017)!important;color:#f6dc9d!important;-webkit-text-fill-color:#f6dc9d!important;border-color:#c5a35c!important;}

/* Pair included-book actions with identical dimensions and regular-weight labels. */
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .included-custom-action{display:grid!important;grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;gap:10px!important;position:relative!important;width:100%!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .included-custom-action>span{grid-column:1!important;grid-row:1!important;width:auto!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .included-custom-action>svg{position:absolute!important;left:calc(50% - 134px)!important;bottom:12px!important;width:24px!important;height:24px!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .included-custom-action>button{grid-column:1!important;grid-row:2!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .included-custom-action>button,
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app [data-featured-return]{display:flex!important;box-sizing:border-box!important;width:min(208px,100%)!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:10px 14px!important;font:400 14px/1.4 Arial,sans-serif!important;align-items:center!important;justify-content:center!important;gap:8px!important;align-self:center!important;justify-self:center!important;}
html[data-setup] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app [data-featured-return]{margin:10px auto 0!important;}
html body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app [data-care-view]{display:inline-flex!important;justify-content:center!important;align-items:center!important;text-align:center!important;gap:8px!important;}
@media(min-width:1101px),(min-width:761px) and (orientation:landscape){html[data-view=wide] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .journal-help-shortcuts{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;}html[data-view=wide] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .journal-help-shortcuts>button{flex:0 0 auto!important;min-width:max-content!important;padding-inline:8px!important;white-space:nowrap!important;}}

@media(min-width:761px){
html[data-view=wide] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #page[data-layout=mood][data-care-panel=today]>.mood-checkin-details{align-self:start!important;min-height:0!important;height:auto!important;justify-content:flex-start!important;gap:14px!important;padding:16px 24px!important;}
html[data-view=wide] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #page[data-layout=mood][data-care-panel=today]>.mood-checkin-details>label{flex:0 0 auto!important;height:auto!important;min-height:0!important;margin:0!important;}
html[data-view=wide] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #page[data-layout=mood][data-care-panel=today]>.mood-checkin-details>.clear-field-button{flex:0 0 auto!important;align-self:flex-start!important;justify-self:start!important;margin:0 0 8px!important;}
html[data-view=wide] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #page[data-layout=mood][data-care-panel=today]>.mood-checkin-details>.mood-context{margin-top:8px!important;padding-top:0!important;}
}
@media(min-width:761px){html[data-view=book] body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #page[data-layout=tasks] .task-workspace-summary>h3{grid-column:1!important;text-align:center!important;justify-self:stretch!important;padding-inline:12px!important;margin-inline:0!important;}}
html body #app #across-books thead th{border-bottom:4px solid #fff!important;}

html body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #across-books .across-na{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;width:100%!important;}
@media(min-width:761px){
html body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #across-books tbody :is(button,.across-status,.across-na){font-size:18px!important;line-height:1.45!important;}
html body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #across-books tbody th strong{font-size:18px!important;line-height:1.35!important;}
}
@media(min-width:761px) and (max-width:1100px){
html body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #across-books tbody :is(button,.across-status,.across-na){font-size:16px!important;}
html body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app #across-books tbody th strong{font-size:16px!important;}
}
html body #app #across-books .across-description-phone{display:none!important;}@media(max-width:760px){html body #app #across-books .across-description-full{display:none!important;}html body #app #across-books .across-description-phone{display:inline!important;}}
html body #app #across-books .across-progress{height:12px!important;border-radius:8px!important;}html body #app #across-books .across-progress>i{height:100%!important;border-radius:inherit!important;}
.surprise-label-phone{display:none;}

@layer uxInteraction{
 @media(max-width:760px){
  html body #modal:has(#prompt-search) .writing-tool-customize-row{justify-content:center!important;}
  html body #modal .fields:has(>#prompt-search){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important;}
  html body #modal .fields:has(>#prompt-search)>:is(input,select){box-sizing:border-box!important;width:100%!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;border-width:1px!important;border-radius:6px!important;font-size:16px!important;line-height:normal!important;padding:0 10px!important;}
  html body #modal .fields:has(>#prompt-search)>select{padding-right:24px!important;}
 }
}
/* Prompt browsing uses the dialog's single scroll area and has no selected fill. */
@layer uxInteraction{
 html[data-lighting=night] body #modal :is(.writing-calendar>button,.calendar-entry),
 html[data-lighting=night] body #modal :is(.writing-calendar>button,.calendar-entry):is(:hover,:focus,:active){background:#181818!important;background-image:none!important;color:#f5f0e8!important;-webkit-text-fill-color:#f5f0e8!important;border-color:#77717d!important;opacity:1!important;box-shadow:none!important;filter:none!important;}
 html[data-lighting=night] body #modal .writing-calendar>button.has-writing{background:color-mix(in srgb,var(--inside-accent,#98734b) 25%,#181818)!important;background-image:none!important;border-color:#e8cf8f!important;font-weight:700!important;}
 html[data-lighting=night] body #modal .writing-calendar>button{font-size:16px!important;min-height:48px!important;}
 html[data-lighting=night] body #modal .writing-calendar>button>small{font-size:11px!important;line-height:1.3!important;color:#e5dfd6!important;-webkit-text-fill-color:#e5dfd6!important;opacity:1!important;}
 html[data-lighting=night] body #modal .writing-calendar>small{color:#e5dfd6!important;-webkit-text-fill-color:#e5dfd6!important;opacity:1!important;}
 html body #modal .decision-history-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;margin:20px 0 14px!important;}
 html body #modal .decision-history-heading>h3{min-width:0!important;margin:0!important;white-space:nowrap!important;}
 html body #modal .decision-history-heading>#new-decision{flex:none!important;width:auto!important;min-height:40px!important;margin:0!important;padding:7px 12px!important;font-size:14px!important;white-space:nowrap!important;}
 @media(max-width:760px){html body #modal .decision-history-heading>h3{font-size:22px!important;}}
 html[data-lighting=night] body :is(#app,#modal) .moods>button,
 html[data-lighting=night] body :is(#app,#modal) .moods>button:is(:hover,:active,:focus){background:#181818!important;background-image:none!important;color:#f5f0e8!important;-webkit-text-fill-color:#f5f0e8!important;opacity:1!important;filter:none!important;box-shadow:none!important;}
 html[data-lighting=night] body :is(#app,#modal) .moods>button>span:not(.emoji-face){color:#f5f0e8!important;-webkit-text-fill-color:#f5f0e8!important;font-weight:600!important;opacity:1!important;}
 html[data-lighting=night] body :is(#app,#modal) .moods>button:is([aria-pressed=true],.selected){background:color-mix(in srgb,var(--inside-accent,#98734b) 30%,#181818)!important;background-image:none!important;border-color:#e8cf8f!important;}
 html[data-lighting=night] body #modal .eyebrow{color:#e8cf8f!important;-webkit-text-fill-color:#e8cf8f!important;opacity:1!important;}
 html[data-lighting=night] body #modal :is(.letter-choice-grid,.template-grid)>button,
 html[data-lighting=night] body #modal :is(.letter-choice-grid,.template-grid)>button:is(:hover,:active,:focus,.ux-hover,.ux-pressed){background:#181818!important;background-image:none!important;color:#f5f0e8!important;-webkit-text-fill-color:#f5f0e8!important;border-color:#77717d!important;opacity:1!important;filter:none!important;box-shadow:none!important;transform:none!important;translate:none!important;scale:none!important;}
 html[data-lighting=night] body #modal :is(.letter-choice-grid,.template-grid)>button :is(b,h3,.template-object-icon){color:#e8cf8f!important;-webkit-text-fill-color:#e8cf8f!important;opacity:1!important;}
 html[data-lighting=night] body #modal .letter-choice-grid>button>span,
 html[data-lighting=night] body #modal .template-grid>button :is(p,small){color:#f5f0e8!important;-webkit-text-fill-color:#f5f0e8!important;opacity:1!important;}
 html body #modal #prompt-library-list{max-height:none!important;height:auto!important;overflow:visible!important;scroll-snap-type:none!important;overflow-anchor:none!important;}
 html body #modal .library-prompt,
 html body #modal .library-prompt:is(:hover,:active,:focus,.ux-hover,.ux-pressed){background:var(--inside-paper,#fffdf8)!important;background-image:none!important;transform:none!important;translate:none!important;scale:none!important;filter:none!important;box-shadow:none!important;overflow:visible!important;max-height:none!important;touch-action:pan-y!important;}
 html[data-lighting=night] body #modal .library-prompt,
 html[data-lighting=night] body #modal .library-prompt:is(:hover,:active,:focus,.ux-hover,.ux-pressed){background:#181818!important;color:var(--night-text,#f5f0e8)!important;}
 html[data-lighting=night] body #modal .library-prompt p{color:#f5f0e8!important;-webkit-text-fill-color:#f5f0e8!important;opacity:1!important;}
 html[data-lighting=night] body #modal .library-prompt small{color:#d4d0d8!important;-webkit-text-fill-color:#d4d0d8!important;opacity:1!important;}
 html body #modal .library-prompt:focus:not(:focus-visible){outline:none!important;}
 html body #modal .library-prompt:focus-visible{outline:1px solid currentColor!important;outline-offset:2px!important;}
}
@layer uxInteraction{
 @media(max-width:760px){
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading{display:grid!important;grid-template-columns:minmax(0,1fr) 36px!important;gap:8px!important;align-items:center!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading:has(>.writing-tools-back){grid-template-columns:minmax(0,1fr) 36px 36px!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>h2{display:flex!important;align-items:center!important;gap:4px!important;grid-column:1!important;grid-row:1!important;min-width:0!important;margin:0!important;font-size:clamp(16px,4.5vw,20px)!important;line-height:1.3!important;white-space:nowrap!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>h2>.feature-info-button{width:28px!important;min-width:28px!important;height:32px!important;min-height:32px!important;margin:0!important;flex:none!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>.dialog-heading-link{position:static!important;grid-column:1/-1!important;grid-row:2!important;justify-self:end!important;max-width:100%!important;min-width:0!important;min-height:36px!important;margin:0!important;padding:7px 10px!important;font-size:13px!important;white-space:nowrap!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>.writing-tools-back{position:static!important;grid-column:-3/-2!important;grid-row:1!important;width:36px!important;min-width:36px!important;min-height:36px!important;height:36px!important;margin:0!important;padding:7px!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>[aria-label="Close dialog"]{position:static!important;grid-column:-2/-1!important;grid-row:1!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:3px!important;outline:none!important;box-shadow:none!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>[aria-label="Close dialog"]:focus-visible{outline:1px solid currentColor!important;outline-offset:1px!important;border-radius:6px!important;}
  html body #modal .surprise-card{padding:12px!important;min-width:0!important;}
  html body #modal .surprise-card>.toolbar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin:16px 0 0!important;}
  html body #modal .surprise-card>.toolbar>button{display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:100%!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:6px 4px!important;font-size:12px!important;line-height:1.25!important;white-space:nowrap!important;}
  html body #modal .surprise-card>.toolbar>button svg{width:14px!important;height:14px!important;flex:none!important;}
  html body #modal .surprise-label-full{display:none!important;}
  html body #modal .surprise-label-phone{display:inline!important;}
 }
}
/* Phone summaries stay compact; the desktop/tablet table retains its layout. */
@layer uxInteraction{
 @media(max-width:760px){
  html[data-lighting] body #app #across-books #across-books-heading{display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:100%!important;min-width:0!important;font-size:clamp(18px,5vw,22px)!important;line-height:1.3!important;}
  html[data-lighting] body #app #across-books #across-books-heading>span{flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important;}
  html[data-lighting] body #app #across-books #across-books-heading>svg{width:22px!important;height:22px!important;flex:0 0 22px!important;}
  html[data-lighting] body #app #across-books #across-books-heading>.feature-info-button{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;flex:0 0 36px!important;margin:0!important;}
  html[data-lighting] body #app #across-books tbody tr{position:relative!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;padding:0 3px!important;margin:0 0 12px!important;overflow:hidden!important;border:1px solid color-mix(in srgb,var(--across-accent) 55%,transparent)!important;border-radius:12px!important;}
  html[data-lighting] body #app #across-books tbody tr::before,html[data-lighting] body #app #across-books tbody tr::after{content:''!important;position:absolute!important;top:0!important;bottom:0!important;width:3px!important;height:auto!important;background:linear-gradient(180deg,var(--across-accent),color-mix(in srgb,var(--across-accent) 40%,#fff),var(--across-accent),color-mix(in srgb,var(--across-accent) 65%,#c6d9ef),var(--across-accent))!important;pointer-events:none!important;}
  html[data-lighting] body #app #across-books tbody tr:before{left:0!important;right:auto!important;}
  html[data-lighting] body #app #across-books tbody tr:after{right:0!important;left:auto!important;}
  html[data-lighting] body #app #across-books tbody tr th{grid-column:1/-1!important;padding:10px 28px!important;border:0!important;border-radius:0!important;background:transparent!important;}
  html[data-lighting] body #app #across-books tbody th>button{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;min-height:42px!important;padding:0 18px!important;text-align:center!important;}
  html[data-lighting] body #app #across-books tbody th>button>strong{font-size:16px!important;line-height:1.3!important;max-width:calc(100% - 50px)!important;}
  html[data-lighting] body #app #across-books .across-book-preview{width:32px!important;height:42px!important;flex:0 0 32px!important;}
  html[data-lighting] body #app #across-books tbody th>button>.across-arrow{position:absolute!important;right:-12px!important;top:50%!important;transform:translateY(-50%)!important;}
  html[data-lighting] body #app #across-books tbody td{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;min-height:72px!important;height:auto!important;padding:9px 10px!important;border:0!important;border-top:1px solid color-mix(in srgb,var(--across-accent) 22%,transparent)!important;border-radius:0!important;text-align:center!important;background:transparent!important;}
  html[data-lighting] body #app #across-books tbody td[data-section-disabled=true]{display:none!important;}
  html[data-lighting] body #app #across-books tbody tr[data-enabled-count="1"] td{grid-column:1/-1!important;}
  html[data-lighting] body #app #across-books .across-cell-label{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:0!important;padding:0!important;margin:0!important;font-size:13px!important;line-height:1.3!important;text-align:center!important;}
  html[data-lighting] body #app #across-books .across-cell-label>svg{width:17px!important;height:17px!important;}
  html[data-lighting] body #app #across-books tbody td :is(button,.across-status){position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;width:100%!important;min-height:0!important;padding:0 10px!important;font-size:14px!important;line-height:1.4!important;text-align:center!important;}
  html[data-lighting] body #app #across-books tbody td .across-arrow{position:absolute!important;right:-4px!important;top:0!important;margin:0!important;}
  html[data-lighting] body #app #across-books tbody td .across-progress{display:block!important;flex:none!important;width:90px!important;max-width:90%!important;height:7px!important;margin:1px auto 0!important;}
 }
}
html body #modal .jar-focus-visual{display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important;}
html body #modal .jar-focus-visual>.jar-focused-add-note{position:static!important;display:inline-flex!important;align-self:center!important;justify-content:center!important;width:auto!important;min-height:36px!important;margin:20px auto -16px!important;padding:4px 10px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--inside-accent,#85052f)!important;font-weight:400!important;}
html body #modal .jar-focused-draw{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;}
html body #modal .jar-focused-draw>svg{width:20px!important;height:20px!important;flex:0 0 20px!important;}

}

/* Compact phone tool titles leave room for Customize and both navigation controls. */
/* Portrait tablets keep the wand clear of the collection cards. */
@layer uxInteraction.uxInteraction{
 html body :is(#app#app#app#app#app,#modal#modal#modal#modal#modal) .shelf-decor-options>button[aria-pressed=false]{background:#fff!important;background-image:none!important;border-color:var(--accent-edge,#dccbd5)!important;box-shadow:none!important;filter:none!important;}
 html[data-lighting=night] body :is(#app#app#app#app#app,#modal#modal#modal#modal#modal) .shelf-decor-options>button[aria-pressed=false]{background:var(--night-surface,#181818)!important;background-image:none!important;border-color:var(--night-border,#77717d)!important;box-shadow:none!important;filter:none!important;}
 html body #modal:has(.account-journal-opening){width:min(480px,calc(100vw - 24px))!important;}
 html body #modal:has(.account-journal-opening) .modal-head{justify-content:center!important;}
 html body #modal:has(.account-journal-opening) .modal-head h2{text-align:center!important;flex:1!important;}
 html body #modal .account-journal-opening{display:grid!important;justify-items:center!important;gap:14px!important;text-align:center!important;padding:22px 14px!important;border:2px solid transparent!important;border-radius:16px!important;background:linear-gradient(var(--inside-paper,#fffcf6),var(--inside-paper,#fffcf6)) padding-box,var(--selection-iridescence,linear-gradient(125deg,#85052f,#e5c783,#fff7e5,#85052f)) border-box!important;box-shadow:0 5px 22px #85052f18!important;}
 html body #modal .account-journal-opening .account-loading-title{font:700 25px/1.25 Georgia,serif!important;margin:0!important;color:var(--inside-accent,#85052f)!important;text-align:center!important;}
 html body #modal .account-journal-opening #cloud-feedback{font-size:15px!important;line-height:1.5!important;margin:0!important;text-align:center!important;}
 html body #modal .account-loading-orbit{position:relative;width:84px;height:84px;display:grid;place-items:center;color:var(--inside-accent,#85052f);}
 html body #modal .account-loading-logo{width:64px!important;height:64px!important;object-fit:contain!important;border-radius:50%!important;}
 html body #modal .account-journal-opening:not(.is-loading) .startup-loading-ring{animation:none!important;}
 html[data-lighting=night] body #modal .account-journal-opening{background:linear-gradient(#1c1820,#1c1820) padding-box,var(--selection-iridescence,linear-gradient(125deg,#a73661,#e5c783,#fff7e5,#a73661)) border-box!important;box-shadow:0 4px 24px #e5c7831c!important;color:#f5f0e8!important;}
 html[data-lighting=night] body #modal .account-journal-opening :is(.account-loading-title,.account-loading-orbit){color:#f1d48d!important;}
 html body #modal .account-journal-opening #cloud-open-journals[hidden]{display:none!important;}
 html body #modal:has(#screen-pin){width:min(520px,calc(100vw - 24px))!important;}
 html body #modal:has(#screen-pin) .modal-head{padding:14px 18px!important;gap:8px!important;}
 html body #modal:has(#screen-pin) .modal-head h2{font-size:clamp(20px,4.6vw,26px)!important;line-height:1.2!important;}
 html body #modal:has(#screen-pin) .modal-body{padding:16px 18px!important;}
 html body #modal:has(#screen-pin) .privacy-explanation{display:flex!important;align-items:center!important;gap:10px!important;margin:0 0 10px!important;padding:0!important;}
 html body #modal:has(#screen-pin) .privacy-explanation h3{font-size:21px!important;line-height:1.3!important;margin:0!important;}
 html body #modal:has(#screen-pin) :is(#screen-pin,#screen-pin-repeat){width:100%!important;max-width:none!important;height:42px!important;min-height:42px!important;box-sizing:border-box!important;}
 html body #modal:has(#screen-pin) label:has(>#screen-pin),html body #modal:has(#screen-pin) label:has(>#screen-pin-repeat){width:100%!important;min-width:0!important;box-sizing:border-box!important;}
 html body #modal:has(#screen-pin) .dialog-actions{display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;margin:12px 0!important;}
 html body #modal:has(#screen-pin) #set-screen-pin{display:block!important;margin:12px auto!important;}
 html body #modal:has(#screen-pin) .pin-auto-lock{margin:12px 0 0!important;padding-top:12px!important;}
 html body #modal:has(#screen-pin) .pin-auto-lock>label{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0!important;text-align:left!important;}
 html body #modal:has(#screen-pin) .pin-auto-lock>label>span{min-width:0!important;width:auto!important;flex:1 1 auto!important;text-align:left!important;}
 html body #modal:has(#screen-pin) .pin-auto-lock small{font-size:13px!important;line-height:1.4!important;}
 html body #modal:has(#screen-pin) :is(#pin-feedback,#pin-auto-lock-status):empty{display:none!important;}
 @media(max-width:760px){html body #app#app #page[data-layout=journal] .history>#entry-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;margin-top:14px!important;}}
 html body #app#app #page[data-layout=journal][data-journal-pane=write] .history>#entry-list{margin-top:14px!important;}
 html body #app #page[data-layout=journal] .entry-card,
 html body #modal .all-entry-results>.entry-card{position:relative!important;}
 html body #app #page[data-layout=journal] .entry-card>.entry-preview-button,
 html body #modal .all-entry-results>.entry-card>.entry-preview-button{position:absolute!important;top:4px!important;right:4px!important;z-index:1!important;display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:9px!important;margin:0!important;border:0!important;box-shadow:none!important;background:transparent!important;color:inherit!important;transform:none!important;translate:none!important;}
 html body #app .entry-preview-button>svg,html body #modal .entry-preview-button>svg{width:20px!important;height:20px!important;}
 html body #app#app #page[data-layout=journal] .history>#entry-list>.entry-card>.entry-open,
 html body #modal#modal .all-entry-results>.entry-card>.entry-open{padding-right:34px!important;box-sizing:border-box!important;}
 html body #app#app #page[data-layout=journal] .entry-card .entry-open p{-webkit-line-clamp:3!important;}
 html body #app#app #page[data-layout=journal] .entry-card:has(>.entry-tag-list:not(:empty)) .entry-open p{-webkit-line-clamp:2!important;}
 html body #modal .entry-reading-body{font-size:16px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:18px;}
 html body #modal .entry-reading .eyebrow{margin-top:0;}
 html body :is(#app#app,#modal#modal) input:is([type=date],[type=month],[type=datetime-local],[type=time]){text-align:center!important;text-align-last:center!important;vertical-align:middle!important;line-height:normal!important;}
 html body :is(#app#app,#modal#modal) input:is([type=date],[type=month],[type=datetime-local],[type=time])::-webkit-date-and-time-value{display:flex!important;align-items:center!important;justify-content:center!important;min-height:100%!important;width:100%!important;padding:0!important;margin:0!important;text-align:center!important;line-height:normal!important;}
 html body :is(#app#app,#modal#modal) input:is([type=date],[type=month],[type=datetime-local],[type=time])::-webkit-datetime-edit{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;text-align:center!important;line-height:normal!important;}
 html body #app #page[data-layout=journal] .entry-composer>.composer-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;width:100%!important;}
 html body #app #page[data-layout=journal] .composer-actions>.entry-save-feedback{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:6px 10px!important;justify-content:flex-start!important;min-width:0!important;margin:0!important;text-align:left!important;}
 html body #app #page[data-layout=journal] .composer-actions .save-status{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;gap:5px!important;text-align:left!important;margin:0!important;padding:0!important;white-space:normal!important;overflow-wrap:anywhere!important;}
 html body #app #page[data-layout=journal] .composer-actions>.clear-writing{justify-self:end!important;align-self:center!important;margin:0!important;white-space:nowrap!important;}
 html body #app#app #page[data-layout=journal] .history>#entry-list>.entry-card{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;grid-template-rows:minmax(0,1fr) auto auto!important;align-items:center!important;align-content:stretch!important;gap:5px 8px!important;
  height:168px!important;min-height:168px!important;max-height:168px!important;padding:10px 12px!important;margin:0!important;box-sizing:border-box!important;
 }
 html body #app #page[data-layout=journal] .history>#entry-list>.entry-card>.entry-open{grid-column:1/-1!important;grid-row:1!important;align-self:start!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;padding:0!important;display:block!important;text-align:left!important;}
 html body #app #page[data-layout=journal] .entry-card .entry-open h3,
 html body #modal .all-entry-results .entry-open h3{font-size:18px!important;line-height:1.25!important;margin:4px 0!important;display:-webkit-box!important;-webkit-line-clamp:1!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
 html body #app #page[data-layout=journal] .entry-card .entry-open p,
 html body #modal .all-entry-results .entry-open p{font-size:13px!important;line-height:1.4!important;margin:4px 0 0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
 html body #app #page[data-layout=journal] .entry-card .eyebrow,
 html body #modal .all-entry-results .entry-card .eyebrow{font-size:10px!important;line-height:1.3!important;}
 html body :is(#app#app#app .entry-card,#modal#modal#modal .entry-card,#modal#modal#modal .entry-reading) .eyebrow{font:400 11px/1.4 Arial,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;text-align:left!important;color:#655e68!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;}
 html[data-lighting=night] body :is(#app#app#app .entry-card,#modal#modal#modal .entry-card,#modal#modal#modal .entry-reading) .eyebrow{color:#bdb7c1!important;-webkit-text-fill-color:currentColor!important;}
 html body #app #page[data-layout=journal] .entry-card>.entry-tag-list{grid-column:1/-1!important;grid-row:2!important;overflow:hidden!important;white-space:nowrap!important;max-height:22px!important;}
 html body #app #page[data-layout=journal] .entry-card>.entry-tag-list:empty{display:none!important;}
 html body #app #page[data-layout=journal] .entry-card>.pill{grid-column:1!important;grid-row:3!important;justify-self:start!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
 html body #app #page[data-layout=journal] .entry-card>.decision-outcome-link{grid-column:2!important;grid-row:3!important;font-size:11px!important;padding:4px!important;min-height:28px!important;}
 html body #app #page[data-layout=journal] .entry-card>.favorite-button{grid-column:3!important;grid-row:3!important;}
 html body #app #page[data-layout=journal] .entry-card>.icon-btn{grid-column:4!important;grid-row:3!important;}
 html body #app#app #page[data-layout=journal] .history>#entry-list{row-gap:12px!important;}
 html body #modal .all-entry-results>.entry-card{height:140px!important;min-height:140px!important;padding:10px 12px!important;box-sizing:border-box!important;}
 html body #modal .all-entry-results>.entry-card>.entry-open{padding:0!important;min-height:0!important;}
 @media(min-width:761px) and (max-width:1100px){
  html[data-view=book] body #app #page.page-spread[data-layout=overview]>.dashboard-intro{grid-column:1!important;grid-row:1/3!important;}
  html[data-view=book] body #app #page.page-spread[data-layout=overview]>.dashboard-details{display:contents!important;}
  html[data-view=book] body #app #page[data-layout=overview] .dashboard-details>.journal-panel{grid-column:2!important;grid-row:1!important;}
  html[data-view=book] body #app #page[data-layout=overview] .dashboard-details>.habits-panel{grid-column:2!important;grid-row:2!important;}
  html[data-view=book] body #app #page[data-layout=overview] .dashboard-details>.dashboard-mood-metrics{display:grid!important;grid-column:1/-1!important;grid-row:3!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;box-sizing:border-box!important;}
  html[data-view=book] body #app #page[data-layout=overview] .dashboard-mood-metrics .mood-metrics-layout{grid-template-columns:minmax(0,1fr)!important;justify-items:center!important;}
  html[data-view=book] body #app #page[data-layout=overview] .dashboard-mood-metrics .dashboard-mood-summary{width:100%!important;min-width:0!important;}
 }
 @media(min-width:761px){
  html body #app #page[data-layout=journal] .history>#entry-list{display:grid!important;grid-auto-rows:1fr!important;align-items:stretch!important;row-gap:16px!important;}
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app #page[data-layout=journal][data-journal-pane=history]>.history>#entry-list{grid-template-rows:repeat(var(--history-page-rows,10),1fr)!important;}
  html body #app #page[data-layout=journal] .history>#entry-list>.entry-card{height:100%!important;align-self:stretch!important;box-sizing:border-box!important;min-width:0!important;}
 }
 html body #app button[data-page-font]>b{font-size:12px!important;line-height:1.3!important;}
 html:not([data-lighting=night]) body #app .guide-step-caption{color:#78551c!important;-webkit-text-fill-color:#78551c!important;}
 html[data-lighting=night] body #app button[data-page-font]>b{color:#f5f0e8!important;-webkit-text-fill-color:#f5f0e8!important;}
 @media(max-width:760px){
  html body #app#app .workspace-shell>article.notebook{margin-top:44px!important;}
  html body #app#app .direct-studio[data-target=shelf] .shelf-decor-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important;}
  html body #app#app .direct-studio[data-target=shelf] .shelf-decor-options>button{display:grid!important;grid-template-rows:76px 28px!important;align-items:center!important;justify-items:center!important;align-content:center!important;gap:6px!important;width:100%!important;min-width:0!important;height:136px!important;min-height:136px!important;max-height:136px!important;padding:7px!important;aspect-ratio:auto!important;box-sizing:border-box!important;}
  html body #app#app .direct-studio[data-target=shelf] .shelf-decor-options .decor-choice-art{position:relative!important;display:grid!important;place-items:center!important;width:100%!important;height:76px!important;min-height:76px!important;max-height:76px!important;margin:0!important;overflow:hidden!important;transform:none!important;}
  html body #app#app .direct-studio[data-target=shelf] .shelf-decor-options .decor-choice-art .shelf-decor{position:relative!important;inset:auto!important;width:90px!important;height:76px!important;max-width:100%!important;max-height:76px!important;margin:0!important;transform:none!important;}
  html body #app#app .direct-studio[data-target=shelf] .shelf-decor-options .decor-choice-art img{position:static!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;transform:none!important;}
  html body #app#app .direct-studio[data-target=shelf] .shelf-decor-options>button>b{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:28px!important;margin:0!important;font-size:12px!important;line-height:14px!important;text-align:center!important;white-space:normal!important;}
  html body #app#app .care-page-heading{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;}
  html body #app#app .care-page-heading>h2{display:flex!important;align-items:center!important;flex:0 1 auto!important;gap:4px!important;min-width:0!important;margin:0!important;padding:0!important;font-size:clamp(23px,6vw,28px)!important;line-height:1.25!important;white-space:nowrap!important;}
  html body #app#app .care-page-heading>h2>.feature-info-button{width:28px!important;min-width:28px!important;height:32px!important;min-height:32px!important;margin:0!important;padding:4px!important;flex:none!important;}
  html body #app#app .care-page-heading>.care-navigation{flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;justify-self:end!important;}
  html body #app#app .care-page-heading .care-view-switch{display:flex!important;flex-wrap:nowrap!important;gap:5px!important;width:auto!important;max-width:none!important;margin:0!important;}
  html body #app#app .care-page-heading .care-view-switch>button{display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;flex:none!important;width:auto!important;min-width:0!important;min-height:44px!important;margin:0!important;padding:6px 8px!important;font-size:14px!important;line-height:1.2!important;white-space:nowrap!important;transform:none!important;translate:none!important;scale:none!important;}
  html body #app#app .care-page-heading .care-view-switch>button>span{font-size:inherit!important;white-space:nowrap!important;}
  html body #app#app .care-page-heading .care-view-switch>button>svg{width:18px!important;height:18px!important;flex:none!important;margin:0!important;}
 }
 html[data-lighting=night] body #app .care-view-switch>button[aria-pressed=false]>svg{color:#f0e8dc!important;}
 html[data-lighting=night] body #app .care-view-switch>button[aria-pressed=true]>svg{color:#ffffff!important;}
 html[data-lighting=night] body #app#app .journal-help-shortcuts>[data-action=all-tools],
 html[data-lighting=night] body #app#app .journal-help-shortcuts>[data-action=all-tools]>span{color:#e5c783!important;-webkit-text-fill-color:#e5c783!important;}
 html[data-lighting=night] body #app#app .journal-help-shortcuts>[data-action=all-tools]>svg{color:#f5f0e8!important;stroke:currentColor!important;}
}
@layer uxInteraction.uxInteraction{
 @media(max-width:760px){html body #app .shelf-decor-options>button{transform:none!important;translate:none!important;scale:1!important;}}
 @media(min-width:761px) and (max-width:950px){
  html[data-view=book] body #app .workspace-shell article.notebook nav.tabs{left:24px!important;right:24px!important;width:auto!important;}
  html[data-view=book] body #app .workspace-shell article.notebook nav.tabs>button{width:calc((100% - 32px)/5)!important;min-width:0!important;max-width:none!important;flex:1 1 0!important;}
  html[data-view=book] body #app#app#app .writing-format-row{flex-wrap:wrap!important;}
  html[data-view=book] body #app#app#app .writing-format-toolbar{width:100%!important;flex:1 1 100%!important;min-width:0!important;}
 }
}
@media(min-width:761px) and (max-width:1100px) and (orientation:portrait){
 html[data-screen=home] body #app#app .journal-display>.display-design-wand{left:calc(100% - 59px)!important;right:auto!important;top:auto!important;bottom:88px!important;z-index:8!important;}
}
/* Leave room for the complete selected category label on narrow phones. */
@layer uxInteraction.uxInteraction{html[data-lighting=night] body #modal#modal .tool-search-heading-row>label{color:#f5f0e8!important;-webkit-text-fill-color:#f5f0e8!important;}}
html:not([data-lighting=night]) body #app#app .today-strip>.overview-link,
html:not([data-lighting=night]) body #app#app .today-strip>.overview-link>span{color:var(--home-action-top,#593d4d)!important;-webkit-text-fill-color:currentColor!important;opacity:1!important;}
@layer uxInteraction.uxInteraction{
 html body #modal .library-prompt small{font-size:12px!important;line-height:1.4!important;}
 html:not([data-lighting=night]) body #modal .library-prompt small{color:#594d59!important;-webkit-text-fill-color:#594d59!important;}
 @media(max-width:420px){html body #modal:has(#prompt-search) #prompt-filter{font-size:14px!important;padding-inline:8px!important;}}
}
@layer uxInteraction.uxInteraction{
 @media(min-width:761px){
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto 36px 36px!important;align-items:center!important;gap:8px!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading:not(:has(>.writing-tools-back)){grid-template-columns:minmax(0,1fr) auto 36px!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>h2{min-width:0!important;margin:0!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>:is(.dialog-heading-link,.writing-tools-back,[aria-label="Close dialog"]){position:static!important;grid-row:1!important;margin:0!important;justify-self:end!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>.dialog-heading-link{grid-column:2!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>.writing-tools-back{grid-column:-3/-2!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>[aria-label="Close dialog"]{grid-column:-2/-1!important;}
 }
}
@layer uxInteraction.uxInteraction{
 @media(max-width:760px){
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading,
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading:has(>.writing-tools-back){grid-template-columns:minmax(0,1fr) auto 32px 32px!important;gap:4px!important;padding:14px 12px!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading:not(:has(>.writing-tools-back)){grid-template-columns:minmax(0,1fr) auto 32px!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>.dialog-heading-link{grid-column:2!important;grid-row:1!important;justify-self:end!important;font-size:12px!important;padding:6px 7px!important;min-height:36px!important;}
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>.writing-tools-back,
  html body #modal:has(.template-grid,#prompt-search) .modal-head.dialog-action-heading>[aria-label="Close dialog"]{width:32px!important;min-width:32px!important;height:36px!important;min-height:36px!important;}
 }
}

/* Phone: four writing-help actions share one row; folded notes stay proportional. */
/* Dark entry cards retain their boundaries in every layout. */
html[data-lighting=night]:not([data-setup]) body #app#app #page .history .entry-card,
html[data-lighting=night] body #modal#modal .all-entry-results>article{background:#1d1d20!important;background-image:none!important;border:1px solid #655c6b!important;border-radius:10px!important;padding:14px 16px!important;box-shadow:none!important;box-sizing:border-box!important;}
html[data-lighting=night]:not([data-setup]) body #app#app #page .history .entry-card>.entry-open,
html[data-lighting=night]:not([data-setup]) body #app#app #page .history .entry-card>.entry-open:is(:hover,:focus,:active),
html[data-lighting=night] body #modal#modal .all-entry-results>article>.entry-open{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;color:#f5f0e8!important;}
@media(max-width:760px),(max-width:950px) and (max-height:500px){
 html body #modal#modal .real-jar .jar-notes i:has(>.jar-keepsake){width:21px!important;height:21px!important;}
}
@layer uxInteraction.uxInteraction{
 @media(max-width:760px),(max-width:950px) and (max-height:500px){
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .journal-help-shortcuts{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;align-items:stretch!important;overflow:visible!important;width:100%!important;max-width:100%!important;padding:0!important;}
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .journal-help-shortcuts>span{display:none!important;}
  html:is([data-view=full],[data-view=wide],[data-view=book]) body #app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app#app .journal-help-shortcuts>button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:48px!important;margin:0!important;padding:4px 1px!important;font-size:clamp(10.5px,2.85vw,11px)!important;line-height:1.25!important;white-space:nowrap!important;flex:none!important;}
  html body #app #page .journal-help-shortcuts>button :is(svg,.tool-art,.live-icon,.navigation-symbol,.more-tools-icon){width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important;min-height:19px!important;margin:0!important;font-size:19px!important;flex:none!important;}
 }
}

/* Keep previews and their category/hashtag footer in separate grid tracks. */
@layer uxInteraction.uxInteraction{
 html body #app#app#app#app #page[data-layout=journal] .history>#entry-list>.entry-card{grid-template-rows:minmax(0,1fr) auto!important;row-gap:8px!important;overflow:hidden!important;}
 html body #app#app#app#app #page[data-layout=journal] .history>#entry-list>.entry-card>.entry-open,
 html body #modal#modal#modal#modal .all-entry-results>.entry-card>.entry-open{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;height:100%!important;max-height:100%!important;min-height:0!important;overflow:hidden!important;transform:none!important;translate:none!important;box-sizing:border-box!important;}
 html body #app#app#app#app #page[data-layout=journal] .entry-card .entry-open>.eyebrow,
 html body #app#app#app#app #page[data-layout=journal] .entry-card .entry-open>h3,
 html body #modal#modal#modal#modal .all-entry-results .entry-open>:is(.eyebrow,h3,.pill){flex:0 0 auto!important;}
 html body #app#app#app#app #page[data-layout=journal] .entry-card .entry-open>p,
 html body #modal#modal#modal#modal .all-entry-results .entry-open>p{flex:0 1 auto!important;min-height:0!important;max-height:2.8em!important;overflow:hidden!important;-webkit-line-clamp:2!important;}
 html body #app#app#app#app #page[data-layout=journal] .entry-card>.entry-card-labels{grid-column:1/3!important;grid-row:2!important;display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;margin:0!important;padding:0!important;}
 html body #app#app#app#app #page[data-layout=journal] .entry-card-labels>.pill{flex:0 0 auto!important;max-width:58%!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;margin:0!important;}
 html body #app#app#app#app #page[data-layout=journal] .entry-card-labels>.entry-tag-list{display:flex!important;align-items:center!important;gap:4px!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;white-space:nowrap!important;margin:0!important;padding:0!important;max-height:28px!important;}
 html body #app#app#app#app #page[data-layout=journal] .entry-card-labels>.entry-tag-list:empty{display:none!important;}
 html body #app#app#app#app #page[data-layout=journal] .entry-card-labels .entry-tag{display:inline-block!important;flex:0 1 auto!important;min-width:0!important;max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important;padding:3px 6px!important;margin:0!important;border:1px solid #85b7a9!important;border-radius:5px!important;background:color-mix(in srgb,var(--inside-accent,#85052f) 8%,#e5f4ed)!important;color:#23584f!important;-webkit-text-fill-color:#23584f!important;font:400 10px/1.35 Arial,sans-serif!important;}
 html[data-lighting=night] body #app#app#app#app #page[data-layout=journal] .entry-card-labels .entry-tag{background:color-mix(in srgb,var(--inside-accent,#85052f) 12%,#17312d)!important;color:#c1efe3!important;-webkit-text-fill-color:#c1efe3!important;border-color:#6b9f92!important;}
 html body #app#app#app#app #page[data-layout=journal] .entry-card>.favorite-button{grid-column:3!important;grid-row:2!important;}
 html body #app#app#app#app #page[data-layout=journal] .entry-card>.icon-btn{grid-column:4!important;grid-row:2!important;}
 html body #app#app#app#app #page[data-layout=journal] .entry-card>.decision-outcome-link{grid-column:1/3!important;grid-row:3!important;justify-self:start!important;}
 html body #modal#modal#modal#modal .all-entry-results .entry-open>.pill{align-self:flex-start!important;margin-top:auto!important;}
}

@layer uxInteraction.uxInteraction{
 html body :is(#app#app#app#app,#modal#modal#modal#modal) .pill[data-entry-category]{--entry-category-bg:#e8effb;--entry-category-ink:#365780;background:var(--entry-category-bg)!important;background-image:none!important;color:var(--entry-category-ink)!important;-webkit-text-fill-color:var(--entry-category-ink)!important;border:1px solid color-mix(in srgb,var(--entry-category-ink) 32%,var(--entry-category-bg))!important;border-radius:5px!important;padding:4px 7px!important;font-weight:600!important;box-shadow:none!important;}
 html body :is(#app#app#app#app,#modal#modal#modal#modal) .pill[data-entry-category="Reflection"]{--entry-category-bg:#eee5fa;--entry-category-ink:#69458a;}
 html body :is(#app#app#app#app,#modal#modal#modal#modal) .pill[data-entry-category="Brain Dump"]{--entry-category-bg:#fff0df;--entry-category-ink:#895824;}
 html body :is(#app#app#app#app,#modal#modal#modal#modal) .pill[data-entry-category="Gratitude"]{--entry-category-bg:#e3f2e9;--entry-category-ink:#386b51;}
 html body :is(#app#app#app#app,#modal#modal#modal#modal) .pill[data-entry-category="Jar notes"]{--entry-category-bg:#d9f3f3;--entry-category-ink:#23656b;}
 html body :is(#app#app#app#app,#modal#modal#modal#modal) .pill[data-entry-category="Time capsules"]{--entry-category-bg:#f9e0eb;--entry-category-ink:#8d3c5c;}
 html body #app#app#app#app#app #page[data-layout=journal] .entry-card-labels .entry-tag{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;padding:3px 1px!important;color:#7b5715!important;-webkit-text-fill-color:#7b5715!important;font-weight:600!important;font-size:11px!important;}
 html[data-lighting=night] body #app#app#app#app#app #page[data-layout=journal] .entry-card-labels .entry-tag{color:#edce87!important;-webkit-text-fill-color:#edce87!important;}
}
@layer uxInteraction.uxInteraction{
 html body #app#app#app#app#app #page[data-layout=journal] .entry-card-labels .entry-tag{border:1px solid #b89c5b!important;border-radius:5px!important;padding:3px 6px!important;background:transparent!important;box-shadow:none!important;}
 html[data-lighting=night] body #app#app#app#app#app #page[data-layout=journal] .entry-card-labels .entry-tag{border-color:#9e874b!important;}
}
@layer uxInteraction.uxInteraction{
 html[data-lighting] body #app#app#app #across-books #across-books-heading{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;gap:8px!important;width:100%!important;max-width:none!important;min-width:0!important;font-size:clamp(18px,2.7vw,28px)!important;}
 html[data-lighting] body #app#app#app #across-books #across-books-heading>span{white-space:nowrap!important;flex:0 1 auto!important;width:auto!important;max-width:none!important;}
 html[data-lighting] body #app#app#app #across-books #across-books-heading>.feature-info-button{flex:0 0 32px!important;width:32px!important;min-width:32px!important;margin:0!important;}
}
@layer uxInteraction.uxInteraction{
 html body #modal#modal#modal#modal .modal-head:has(>.writing-tools-back):has(>.dialog-heading-link,>.jar-all-notes){display:grid!important;grid-template-columns:minmax(0,1fr) 32px auto 32px!important;align-items:center!important;gap:6px!important;}
 html body #modal#modal#modal#modal .modal-head:has(>.dialog-heading-link,>.jar-all-notes)>.writing-tools-back{grid-column:2!important;grid-row:1!important;position:static!important;margin:0!important;width:32px!important;min-width:32px!important;}
 html body #modal#modal#modal#modal .modal-head:has(>.writing-tools-back)>:is(.dialog-heading-link,.jar-all-notes){grid-column:3!important;grid-row:1!important;position:static!important;margin:0!important;}
 html body #modal#modal#modal#modal .modal-head:has(>.writing-tools-back):has(>.dialog-heading-link,>.jar-all-notes)>[aria-label="Close dialog"]{grid-column:4!important;grid-row:1!important;}
}
/* Navigation arrows follow the same accent as section links. */
@layer uxInteraction.uxInteraction{
 html body :is(#app#app#app#app#app,#modal#modal#modal#modal#modal) :is(.writing-tools-back,.entry-preview-button,.across-arrow,.dialog-heading-link,.jar-all-notes){color:var(--inside-accent,var(--accent-deep,#81052e))!important;-webkit-text-fill-color:currentColor!important;}
 html[data-lighting=night] body :is(#app#app#app#app#app,#modal#modal#modal#modal#modal) :is(.writing-tools-back,.entry-preview-button,.across-arrow,.dialog-heading-link,.jar-all-notes){color:var(--night-accent-text,#edce87)!important;-webkit-text-fill-color:currentColor!important;}
 html body :is(#app#app#app#app#app,#modal#modal#modal#modal#modal) :is(.writing-tools-back,.entry-preview-button,.dialog-heading-link,.jar-all-notes)>svg{color:inherit!important;stroke:currentColor!important;}
}
@layer uxInteraction.uxInteraction{
 html body #app#app#app#app#app #page .quick-task-form>div{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;gap:8px!important;}
 html body #app#app#app#app#app #page .quick-task-form button{width:auto!important;min-width:106px!important;padding:9px 15px!important;white-space:nowrap!important;border:1px solid transparent!important;border-radius:8px!important;background:linear-gradient(var(--inside-accent,#81052e),var(--inside-accent,#81052e)) padding-box,var(--selection-iridescence,linear-gradient(115deg,#81052e,#e8cf98,#a57931,#81052e)) border-box!important;color:var(--inside-onaccent,#fff)!important;-webkit-text-fill-color:var(--inside-onaccent,#fff)!important;font-size:14px!important;font-weight:650!important;box-shadow:0 3px 7px color-mix(in srgb,var(--inside-accent,#81052e) 18%,transparent)!important;}
 html body #app#app#app#app#app #page #quick-task-title{min-width:0!important;width:100%!important;}
}
@layer uxInteraction.uxInteraction{
 html body #app#app#app#app#app .writing-format-row::after{display:none!important;content:none!important;}
 html body #app#app#app#app#app .writing-format-row>#dictation-mount{display:flex!important;align-items:center!important;justify-content:center!important;height:var(--writing-toolbar-height,44px)!important;padding:0!important;margin:0!important;align-self:flex-end!important;}
 html body #app#app#app#app#app .writing-format-row #dictation-mount :is(.dictation-controls,.dictation-toolbar){display:flex!important;align-items:center!important;justify-content:center!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;}
 html body #app#app#app#app#app .writing-format-row #dictation-mount .dictation-start{display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;margin:0!important;transform:none!important;translate:none!important;}
 html body #app#app#app#app#app .writing-format-row #dictation-mount .dictation-start svg{display:block!important;margin:0!important;}
}
@layer uxInteraction.uxInteraction{
 html body #app#app#app#app#app .save-status{display:inline-flex!important;align-items:center!important;gap:6px!important;font-weight:700!important;font-size:14px!important;}
 html body #app#app#app#app#app .save-status:empty{display:none!important;}
 html body #app#app#app#app#app .save-status .saved-tick{display:block!important;width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.5!important;flex:0 0 18px!important;}
}
/* Keep authentication feedback readable independently of theme text overrides. */
@layer uxInteraction.uxInteraction{
 html[data-lighting=night] body :is(.privacy-curtain.privacy-curtain,#modal#modal#modal#modal#modal) :is([role=alert],.pin-error,.error):not(:empty){background:#38212a!important;background-image:none!important;color:#ffd6df!important;-webkit-text-fill-color:#ffd6df!important;border:1px solid #bd7187!important;opacity:1!important;font-weight:700!important;text-shadow:none!important;}
 html[data-lighting=night] body #modal#modal#modal#modal#modal :is(#cloud-feedback,#account-password-status):not(:empty){background:#242229!important;background-image:none!important;color:#f5f0e8!important;-webkit-text-fill-color:#f5f0e8!important;border:1px solid #817387!important;padding:12px!important;border-radius:10px!important;opacity:1!important;font-weight:600!important;text-shadow:none!important;}
}
@layer uxInteraction.uxInteraction{
 html body #modal#modal#modal#modal#modal .modal-head:has(>.writing-tools-back):has(>.dialog-heading-link,>.jar-all-notes){grid-template-columns:minmax(0,1fr) 36px max-content 36px!important;column-gap:12px!important;}
 html body #modal#modal#modal#modal#modal .modal-head:has(>.writing-tools-back):has(>.dialog-heading-link,>.jar-all-notes)>:is(.writing-tools-back,[aria-label="Close dialog"]){width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;box-sizing:border-box!important;margin:0!important;justify-self:center!important;transform:none!important;translate:none!important;}
 @media(max-width:480px){html body #modal#modal#modal#modal#modal .modal-head:has(>.writing-tools-back):has(>.dialog-heading-link,>.jar-all-notes){column-gap:8px!important;}}
}
@layer uxInteraction.uxInteraction{
 html body #app#app#app#app#app .dashboard-mood-summary>strong{display:block!important;white-space:nowrap!important;max-width:100%!important;min-width:0!important;line-height:1.4!important;}
 html body #app#app#app#app#app #across-books [data-label="Mood today"] :is(.across-status>span,[data-across-section=mood]>span:first-child){display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;text-align:center!important;}
 html body #app#app#app#app#app #across-books .across-mood-emoji{display:block!important;font-size:25px!important;line-height:1.2!important;}
 html body #app#app#app#app#app #across-books .across-mood-name{display:block!important;white-space:nowrap!important;text-align:center!important;}
}
@layer uxInteraction.uxInteraction{
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-lock-shortcut{position:static!important;inset:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;align-self:center!important;justify-self:center!important;visibility:visible!important;opacity:1!important;transform:none!important;translate:none!important;margin:0!important;padding:6px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--inside-accent,var(--accent-deep,#81052e))!important;grid-row:1!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-lock-shortcut svg{width:22px!important;height:22px!important;display:block!important;stroke:currentColor!important;}
 html[data-lighting=night] body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-lock-shortcut{color:var(--night-accent-text,#edce87)!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.mobile-header-actions{display:none!important;}
 @media(min-width:761px){
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header{grid-template-columns:minmax(150px,1fr) auto repeat(6,36px)!important;column-gap:8px!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-lock-shortcut{grid-column:3!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-settings-shortcut{grid-column:6!important;grid-row:1!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-home-shortcut{grid-column:7!important;grid-row:1!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.cloud-account-button{grid-column:8!important;grid-row:1!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.offline-readiness{grid-column:3/9!important;}
 }
 @media(max-width:760px){
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-lock-shortcut{grid-column:2!important;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:5px!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-settings-shortcut{grid-column:5!important;grid-row:1!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.cloud-account-button{grid-column:6!important;grid-row:1!important;}
 }
}
@layer uxInteraction.uxInteraction{
 @media(min-width:761px){
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-lighting-toggle{grid-column:3!important;grid-row:1!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-lock-shortcut{grid-column:5!important;grid-row:1!important;}
 }
 @media(max-width:760px){
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-lighting-toggle{grid-column:2!important;grid-row:1!important;}
 html body>header#descaxora-header#descaxora-header#descaxora-header#descaxora-header>.header-lock-shortcut{grid-column:4!important;grid-row:1!important;}
 }
}
@layer uxInteraction.uxInteraction{
 html body button.release-ready{position:fixed!important;top:auto!important;bottom:calc(env(safe-area-inset-bottom,0px) + 112px)!important;left:auto!important;right:16px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:max-content!important;max-width:calc(100vw - 32px)!important;min-height:46px!important;margin:0!important;padding:12px 18px!important;box-sizing:border-box!important;font:700 14px/1.3 Arial,sans-serif!important;z-index:3000!important;border:2px solid transparent!important;border-radius:12px!important;background:linear-gradient(#81052e,#81052e) padding-box,var(--selection-iridescence,linear-gradient(110deg,#b47e98,#fff0be,#a1c6d3,#b7873c)) border-box!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 5px 18px #42051d40!important;}
 html body button.release-ready svg{display:block!important;width:20px!important;height:20px!important;flex:0 0 20px!important;stroke:currentColor!important;}
 html[data-lighting=night] body button.release-ready{background:linear-gradient(#fff8e9,#fff8e9) padding-box,var(--selection-iridescence) border-box!important;color:#81052e!important;-webkit-text-fill-color:#81052e!important;box-shadow:0 5px 20px #0008!important;}
}
@layer uxInteraction.uxInteraction{
 html body #modal#modal#modal#modal .wand-mobile-switch{display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;margin:0 0 18px!important;position:static!important;}
 html body #modal#modal#modal#modal .wand-mobile-switch>.wand-design-tabs{display:flex!important;justify-content:center!important;align-items:center!important;width:max-content!important;max-width:100%!important;margin:0 auto!important;position:static!important;transform:none!important;}
}
