.ydf-journal{--ydf-line:color-mix(in srgb,currentColor 18%,transparent);width:100%;min-width:0;color:inherit}.ydf-journal *{box-sizing:border-box}.ydf-journal h2,.ydf-journal h3{margin:.2em 0 .7em;color:inherit}.ydf-journal p{color:inherit}.ydf-journal form{margin:0}.ydf-journal label{display:block;margin:.85rem 0 .35rem}.ydf-journal textarea{resize:vertical;min-height:5.5rem}.ydf-journal button{cursor:pointer}.ydf-journal button:not(.btn-primary){padding:.6rem .9rem;border:1px solid var(--ydf-line);border-radius:var(--button-radius,.65rem);background:transparent;color:inherit;font:inherit}.ydf-journal :focus-visible{outline:3px solid var(--link-color,currentColor);outline-offset:2px}.ydf-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,250px);gap:clamp(1rem,3vw,2rem)}.ydf-editor,.ydf-login{min-width:0}.ydf-history{min-width:0}.ydf-login{margin:0}.ydf-topline{display:flex;align-items:start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.ydf-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.75rem;font-weight:700}.ydf-date-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.5rem;margin-bottom:1.5rem!important}.ydf-date-picker label{grid-column:1/-1;margin:0}.ydf-question{margin:1.2rem 0!important}.ydf-question span{display:block;margin-bottom:.35rem}.ydf-entry-form>.btn-primary{margin-top:1.25rem}.ydf-hint{font-size:.85rem;opacity:.78}.ydf-saved-photo{margin-top:1rem}.ydf-saved-photo img{display:block;max-width:min(100%,320px);max-height:320px;object-fit:contain;border-radius:var(--card-radius,.65rem)}.ydf-saved-photo label{font-weight:400}.ydf-saved-photo input{margin-right:.45rem}.ydf-history ul{list-style:none;padding:0;margin:0;max-height:650px;overflow:auto}.ydf-history li+li{border-top:1px solid var(--ydf-line)}.ydf-history a{display:flex;justify-content:space-between;gap:.5rem;padding:.7rem .2rem;color:inherit;text-decoration:none}.ydf-history a[aria-current=date]{font-weight:700}.ydf-history a span{opacity:.75}.ydf-message{padding:.8rem 1rem;border:1px solid var(--ydf-line);border-radius:.65rem}.ydf-message--error{border-color:#b94b4b}.ydf-text-button{white-space:nowrap}@media(max-width:700px){.ydf-layout{grid-template-columns:1fr}.ydf-history{order:2}.ydf-topline{align-items:center}.ydf-date-picker{grid-template-columns:1fr}.ydf-date-picker label{grid-column:auto}}

/* Mood choices retain native radio semantics and the site's button palette. */
.ydf-footer-logout{display:inline;margin:0}.ydf-footer-logout button{display:inline;width:auto;min-width:0;max-width:none;margin:0;padding:0;border:0;background:none;box-shadow:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:.15em;cursor:pointer}.ydf-footer-logout button:hover{text-decoration-thickness:2px}.ydf-footer-logout button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.ydf-journal .ydf-mood-fieldset{border:0;padding:0;margin:0 0 1.4rem;min-width:0}
.ydf-journal .ydf-mood-fieldset legend{padding:0;margin:0 0 .65rem;color:inherit;font-weight:700}
.ydf-journal .ydf-mood-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.55rem}
.ydf-journal .ydf-mood-choice{position:relative;display:block;margin:0!important;cursor:pointer;font-weight:600}
.ydf-journal .ydf-mood-choice input[type=radio]{position:absolute;width:1px;height:1px;padding:0;margin:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.ydf-journal .ydf-mood-face{display:flex;align-items:center;justify-content:center;gap:.55rem;min-height:3.1rem;padding:.6rem .7rem;border:1px solid var(--ydf-line);border-radius:var(--ui-primary-radius,var(--button-radius,.65rem));background:var(--card-bg,var(--ui-surface,transparent));color:inherit;text-align:center;transition:opacity .15s ease,background .15s ease,box-shadow .15s ease}
.ydf-journal .ydf-mood-face i{font-size:1rem;flex:none}
.ydf-journal .ydf-mood-choice:hover .ydf-mood-face{border-color:currentColor}
.ydf-journal .ydf-mood-choice input:checked + .ydf-mood-face{border-color:var(--ui-primary-border,transparent);background:linear-gradient(135deg,var(--ui-primary-background,var(--accent)),var(--ui-primary-background-alt,var(--accent-2)));color:var(--ui-primary-text,#fff);box-shadow:var(--ui-primary-shadow,0 3px 12px rgba(0,0,0,.12));opacity:1}
.ydf-journal .ydf-mood-grid:has(input:checked) .ydf-mood-choice:not(:has(input:checked)) .ydf-mood-face{opacity:.68;filter:grayscale(.8)}
.ydf-journal .ydf-mood-choice input:focus-visible + .ydf-mood-face{outline:3px solid var(--link-color,currentColor);outline-offset:2px}
.ydf-journal .ydf-mood-choice input:disabled + .ydf-mood-face{cursor:default}
@media(max-width:480px){.ydf-journal .ydf-mood-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The archive lives in the member account area, away from daily writing. */
.ydf-archive-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:.4rem}
.ydf-archive-heading h3{margin-bottom:.25rem}
.ydf-history .ydf-archive-heading a{display:inline-flex;align-items:center;gap:.4rem;justify-content:flex-start;padding:.2rem 0;color:var(--link-color,inherit);font-size:.88rem;font-weight:700}
.ydf-archive-hint{margin:.25rem 0 1rem;font-size:.82rem;line-height:1.35;opacity:.75}
.ydf-month-nav{display:flex;align-items:center;justify-content:space-between;gap:.35rem;margin-bottom:.55rem}
.ydf-month-nav strong{font-size:.92rem;text-align:center}
.ydf-history .ydf-month-nav a{display:grid;place-items:center;width:2rem;height:2rem;padding:0;border:1px solid var(--ydf-line);border-radius:var(--button-radius,.55rem);color:inherit}
.ydf-history .ydf-month-nav a:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
.ydf-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.2rem;margin-bottom:1.2rem}
.ydf-calendar-weekday{text-align:center;font-size:.72rem;font-weight:700;opacity:.7}
.ydf-history .ydf-calendar-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;min-width:0;min-height:2.25rem;padding:.13rem 0;border:1px solid transparent;border-radius:.5rem;color:inherit;font-size:.83rem;line-height:1.1;text-decoration:none}
.ydf-history .ydf-calendar-day span{opacity:1}
.ydf-calendar-day i{font-size:.54rem;line-height:.7rem}
.ydf-history .ydf-calendar-day.has-entry{border-color:var(--ydf-line);background:color-mix(in srgb,var(--ui-primary-background,var(--accent)) 16%,transparent);font-weight:700}
.ydf-history .ydf-calendar-day.entry-depth-2{background:color-mix(in srgb,var(--ui-primary-background,var(--accent)) 38%,transparent)}
.ydf-history .ydf-calendar-day.entry-depth-3{border-color:var(--ui-primary-background,var(--accent));background:var(--ui-primary-background,var(--accent));color:var(--ui-primary-text,#fff)}
.ydf-history .ydf-calendar-day i.fa-image{margin-top:.12rem;font-size:.7rem;line-height:1}
.ydf-history .ydf-calendar-day:hover{border-color:currentColor}
.ydf-history .ydf-calendar-day.is-selected{outline:2px solid var(--ui-primary-background,var(--accent));outline-offset:1px}
.ydf-archive-moods{margin:0 0 1.2rem}
.ydf-history .ydf-archive-moods h4{margin:0 0 .55rem}
.ydf-history ul.ydf-mood-counts{display:flex;flex-wrap:wrap;gap:.5rem;max-height:none;overflow:visible;margin:0;padding:0}
.ydf-history .ydf-mood-counts li{margin:0;padding:0;border:0}
.ydf-mood-count{display:inline-flex;align-items:center;gap:.5rem;min-height:2rem;padding:.35rem .5rem .35rem .7rem;border:1px solid var(--ydf-line);border-radius:var(--ui-chip-radius,999px);background:color-mix(in srgb,var(--ui-primary-background,var(--accent)) 10%,transparent);font-size:.84rem;line-height:1.2}
.ydf-mood-count strong{display:inline-grid;place-items:center;min-width:1.4rem;height:1.4rem;padding:0 .25rem;border-radius:999px;background:color-mix(in srgb,var(--ui-primary-background,var(--accent)) 20%,transparent);font-size:.78rem}
.ydf-history h4{margin:.5rem 0 .4rem;color:inherit;font-size:.88rem}
.ydf-history li a{font-size:.85rem}
.ydf-history li a span:first-child{opacity:1}
.ydf-history li a .fa-image{margin-left:.2rem;font-size:.75rem}
.ydf-history li a .ydf-photo-badge{display:inline-flex;align-items:center;gap:.15rem;margin-left:.25rem;font-size:.72rem;font-weight:700;opacity:.8;white-space:nowrap}

.ydf-journal .ydf-layout{display:block}
.ydf-join .ydf-join-ack{display:flex;align-items:flex-start;gap:.55rem;font-weight:400;margin:1rem 0}.ydf-join .ydf-join-ack input{width:auto;flex:none;margin-top:.35rem}.ydf-join .ydf-join-ack a{color:var(--link-color,currentColor)}
.ydf-journal .ydf-top-actions{display:flex;align-items:center;gap:1rem}
.ydf-journal .ydf-top-actions>a{color:var(--link-color,currentColor);font-weight:700}
.ydf-account-header{display:flex;align-items:start;justify-content:space-between;gap:1rem;margin-bottom:1.35rem}
.ydf-account-header h2{margin-bottom:.2rem}
.ydf-account-header p{margin:.4rem 0}
.ydf-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.ydf-account-card{min-width:0;margin:0}
.ydf-account-card h3{display:flex;align-items:center;gap:.55rem;margin-top:0}
.ydf-account-card h3 i{font-size:.9em;color:var(--link-color,inherit)}
.ydf-account-card p{line-height:1.5}
.ydf-account-wide{margin-top:1rem}
.ydf-account-note{font-size:.9rem}
.ydf-account-actions{display:flex;flex-wrap:wrap;gap:.65rem;margin-top:1rem}
.ydf-account-actions a{display:inline-flex;align-items:center;gap:.45rem;padding:.65rem .85rem;border:1px solid var(--ydf-line);border-radius:var(--button-radius,.65rem);color:var(--link-color,currentColor);font-weight:700;text-decoration:none}
.ydf-account-actions a:hover{background:color-mix(in srgb,currentColor 8%,transparent)}
.ydf-snapshot{margin:0}
.ydf-snapshot>div{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:.48rem 0;border-bottom:1px solid var(--ydf-line)}
.ydf-snapshot dt{opacity:.75}.ydf-snapshot dd{margin:0;text-align:right;font-weight:700;overflow-wrap:anywhere}
.ydf-snapshot .ydf-name-value{display:flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:.4rem;min-width:0}
.ydf-name-edit{display:inline-block;text-align:right}
.ydf-name-edit[open]{width:100%}
.ydf-name-edit summary{display:inline-grid;place-items:center;width:1.8rem;height:1.8rem;border:1px solid var(--ydf-line);border-radius:var(--ui-chip-radius,var(--radius));color:var(--link-color,currentColor);cursor:pointer;list-style:none}
.ydf-name-edit summary::-webkit-details-marker{display:none}
.ydf-name-edit summary:focus-visible{outline:3px solid var(--link-color,currentColor);outline-offset:2px}
.ydf-name-edit form{display:grid;gap:.5rem;margin-top:.55rem;text-align:left;font-weight:400}
.ydf-name-edit form label{margin:0}
.ydf-name-edit form input{width:100%;min-width:0}
.ydf-name-edit form button{justify-self:end}
.ydf-account .ydf-history{width:100%;max-width:none;padding:0;border:0;background:none}
.ydf-account .ydf-history ul{max-height:none}
.ydf-account .ydf-calendar{width:100%}
.ydf-account .ydf-calendar-day{min-height:clamp(3rem,5vw,4.25rem);font-size:.95rem}
.ydf-account .ydf-history li a{font-size:1rem}
.ydf-account-archive{scroll-margin-top:6rem}
.ydf-account-archive>summary{cursor:pointer;font-size:1.15rem;font-weight:700}
.ydf-account-archive[open]>summary{margin-bottom:1rem}
.ydf-account .ydf-close-details{margin-top:1rem}
.ydf-account .ydf-close-details summary{cursor:pointer;font-weight:700}
.ydf-account .ydf-close-details[open]{padding-top:.4rem}
.ydf-account .ydf-close-form{max-width:560px}
.ydf-account .ydf-check{display:flex;align-items:flex-start;gap:.6rem;font-weight:400}
.ydf-account .ydf-check input{flex:none;width:auto;margin:.3rem 0 0}
.ydf-account .ydf-danger-button{margin-top:1.15rem;border-color:#a93838!important;color:#a93838!important;font-weight:700!important}
.ydf-account .ydf-danger-button:hover{background:#a93838!important;color:#fff!important}
.ydf-journal .ydf-date-picker input[type=date]{display:block;width:100%;min-width:0;max-width:100%}
.ydf-journal .ydf-delete-form{margin-top:1.2rem;padding-top:1.2rem;border-top:1px solid var(--ydf-line)}
.ydf-journal form.ydf-delete-form button.ydf-delete-button{display:inline-flex;width:auto;min-height:0;padding:.4rem .7rem;border:1px solid var(--ui-danger-chip-border,var(--danger,#a5302b));border-radius:var(--ui-danger-chip-radius,var(--button-radius,.65rem));background:var(--ui-danger-chip-background,var(--danger,#a5302b));color:var(--ui-danger-chip-text,#fff);font-size:.86rem;font-weight:700;line-height:1.3}
.ydf-journal form.ydf-delete-form button.ydf-delete-button:hover{filter:brightness(.9)}
@media(max-width:1100px){.ydf-journal .ydf-date-picker{grid-template-columns:minmax(0,1fr)}.ydf-journal .ydf-date-picker label{grid-column:1}.ydf-journal .ydf-date-picker button{justify-self:start}}
@media(max-width:700px){.ydf-account-grid{grid-template-columns:1fr}.ydf-account-header{display:block}.ydf-account-header form{margin-top:.65rem}.ydf-journal .ydf-top-actions{flex-wrap:wrap}}

/* Journal photos open in a contained, keyboard-accessible viewer. */
.ydf-journal .ydf-saved-photo{width:min(100%,290px);margin:1.1rem 0 1.7rem .6rem}
.ydf-journal button.ydf-photo-open{display:block;width:100%;padding:.65rem .65rem 1.05rem;border:1px solid #e1ddd5;border-radius:2px;background:#fff;color:#343a3d;text-align:center;box-shadow:0 12px 28px rgba(10,20,25,.22);transform:rotate(-2deg);transition:transform .2s ease,box-shadow .2s ease}
.ydf-journal button.ydf-photo-open:hover{transform:rotate(0) translateY(-2px);box-shadow:0 16px 30px rgba(10,20,25,.26)}
.ydf-journal .ydf-photo-open img{display:block;width:100%;max-width:none;max-height:none;aspect-ratio:1;object-fit:cover;border-radius:1px}
.ydf-journal .ydf-photo-open .ydf-polaroid-date{display:block;margin-top:.72rem;font-size:.88rem;font-weight:700;line-height:1.3;letter-spacing:.02em}
.ydf-journal .ydf-saved-photo figcaption label{display:inline-flex;align-items:center;gap:.4rem;margin:.95rem 0 0;font-size:.82rem}
.ydf-journal .ydf-saved-photo figcaption input{margin:0}
.ydf-journal .ydf-photo-dialog{position:fixed;inset:0;width:min(920px,calc(100vw - 2.5rem));max-width:none;max-height:calc(100dvh - 3rem);margin:auto;padding:0;overflow:visible;border:1px solid rgba(255,255,255,.24);border-radius:var(--ui-modal-radius,.8rem);background:#101820;box-shadow:0 30px 90px rgba(0,0,0,.5)}
.ydf-journal .ydf-photo-dialog::backdrop{background:rgba(5,11,20,.8)}
.ydf-journal .ydf-photo-dialog-inner{position:relative;display:flex;align-items:center;justify-content:center;min-width:0}
.ydf-journal .ydf-photo-dialog img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100dvh - 3rem);object-fit:contain;border-radius:var(--ui-modal-radius,.8rem)}
.ydf-journal button.ydf-photo-close{position:absolute;top:.7rem;right:.7rem;z-index:1;display:grid;place-items:center;width:2.6rem;height:2.6rem;min-height:0;padding:0;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(15,23,31,.84);color:#fff;font-size:1rem;box-shadow:0 3px 12px rgba(0,0,0,.28)}
.ydf-journal button.ydf-photo-close:hover{background:#fff;color:#101820}
@media(prefers-reduced-motion:reduce){.ydf-journal button.ydf-photo-open{transition:none}}

@media(max-width:700px){
  .ydf-journal .ydf-topline,.ydf-account-header{display:grid;gap:.65rem}
  .ydf-journal .ydf-top-actions{width:100%;justify-content:space-between;gap:.75rem}
  .ydf-journal .ydf-date-picker{grid-template-columns:minmax(0,1fr);gap:.65rem}
  .ydf-journal .ydf-date-picker button,.ydf-journal .ydf-entry-form>.btn-primary{width:100%;min-height:48px}
  .ydf-journal .ydf-mood-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ydf-journal .ydf-mood-face{min-height:3.3rem}
  .ydf-account-actions{display:grid;grid-template-columns:1fr}
  .ydf-account-actions a{justify-content:center;min-height:48px}
  .ydf-account .ydf-calendar-day{min-height:2.75rem;font-size:.86rem}
  .ydf-account .ydf-history li a{flex-wrap:wrap}
  .ydf-journal .ydf-photo-dialog{width:calc(100vw - 1.5rem);max-height:calc(100dvh - 1.5rem)}
  .ydf-journal .ydf-photo-dialog img{max-height:calc(100dvh - 1.5rem)}
}

.ydf-account-grid.ydf-account-membership{grid-template-columns:minmax(0,1fr)}
.ydf-account .ydf-account-compact{padding:.85rem 1rem}
.ydf-account-compact>summary{cursor:pointer;font-weight:700;font-size:1rem}
.ydf-account-compact[open]>summary{margin-bottom:1rem}
.ydf-account-compact>summary i{margin-right:.4rem}
