/* Diary 51: compact typography, warm photography and a quieter calendar. */
html body #app #diaryPage#diaryPage {font-family:system-ui,-apple-system,sans-serif!important;font-size:15px!important;line-height:1.45!important}
html body #app #diaryPage#diaryPage :is(h1,h2,h3,b,strong,button,p,small,span,time){text-shadow:none!important}
html body #app #diaryPage#diaryPage h1{font:600 clamp(28px,3vw,36px)/1.15 system-ui!important;letter-spacing:-.035em!important}
html body #app #diaryPage#diaryPage :is(h2,h3){font:600 22px/1.25 system-ui!important;letter-spacing:-.025em!important}
html body #app #diaryPage#diaryPage :is(p,.uc-subtitle,.uc-empty,.uc-quote,.dashboard-grid p){font:400 15px/1.5 system-ui!important}
html body #app #diaryPage#diaryPage :is(.uc-row b,.slot-event b){font:600 16px/1.4 system-ui!important}
html body #app #diaryPage#diaryPage :is(.uc-row small,.uc-row time,.slot-event small,.timeline-time){font:400 13px/1.45 system-ui!important}
html body #app #diaryPage#diaryPage :is(.uc-kicker,.uc-eyebrow){font:600 10px/1.3 system-ui!important;letter-spacing:.14em!important}
html body #app #diaryPage#diaryPage .uc-page-title{padding:20px!important}
html body #app #diaryPage#diaryPage .uc-feature-art{background-image:url('/hero-diary.jpg')!important;background-color:transparent!important;background-blend-mode:normal!important;background-position:center!important;filter:none!important;opacity:1!important;min-height:190px!important}
html body #app #diaryPage#diaryPage .uc-feature-art::before,html body #app #diaryPage#diaryPage .uc-feature-art::after{display:none!important}
html body #app #diaryPage#diaryPage .uc-feature-art img{visibility:hidden!important}
html body #app #diaryPage#diaryPage .uc-feature-copy{padding:24px!important}
html body #app #diaryPage#diaryPage :is(.uc-panel,.uc-feature,.uc-detail,.dashboard-grid>.card){border:1px solid rgba(133,139,116,.25)!important;box-shadow:0 7px 24px rgba(48,58,40,.045)!important;border-radius:18px!important}
html body #app #diaryPage#diaryPage :is(.uc-action,.uc-inline-action,.segmented button,.period-nav button,.primary,.secondary){font:600 13px/1.25 system-ui!important;min-height:44px!important;padding:10px 14px!important;border-radius:12px!important;letter-spacing:0!important}
html body #app #diaryPage#diaryPage .toolbar{gap:10px!important;padding:12px!important;border-radius:14px!important;background:rgba(248,248,242,.88)!important}
html body #app #diaryPage#diaryPage .period-label{font:600 14px/1.3 system-ui!important;min-width:0!important;padding:10px!important}
html body #app #diaryPage#diaryPage .period-nav{gap:6px!important;flex-wrap:wrap!important}
html body #app #diaryPage#diaryPage .section-head{gap:12px!important;margin-bottom:16px!important;align-items:center!important}
html body #app #diaryPage#diaryPage .section-head p{font-size:13px!important;margin:5px 0 0!important}
html body #app #diaryPage#diaryPage .week-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;overflow:visible!important;width:100%!important;align-items:start!important}
html body #app #diaryPage#diaryPage .week-grid>.day-col{width:auto!important;min-width:0!important;min-height:0!important;padding:12px!important;border:1px solid #d9ded1!important;border-top:3px solid #8da681!important;border-radius:14px!important;background:rgba(255,255,250,.91)!important;box-shadow:none!important;flex:initial!important}
html body #app #diaryPage#diaryPage .day-col:nth-child(3n+2){border-top-color:#cea36d!important}
html body #app #diaryPage#diaryPage .day-col:nth-child(3n){border-top-color:#bc8f81!important}
html body #app #diaryPage#diaryPage .day-col.today{background:#f1f6e9!important;border-color:#75906b!important}
html body #app #diaryPage#diaryPage .day-head{display:flex!important;flex-wrap:wrap!important;gap:5px!important;align-items:center!important;margin-bottom:10px!important;padding:0 0 8px!important;border-bottom:1px solid #e4e7df!important}
html body #app #diaryPage#diaryPage .day-head b{font:650 15px/1.3 system-ui!important}
html body #app #diaryPage#diaryPage .day-head time{font:500 12px/1.3 system-ui!important;margin-left:auto!important;white-space:nowrap!important}
html body #app #diaryPage#diaryPage .day-count{font:500 10px/1.2 system-ui!important;padding:3px 5px!important;background:#edf0e6!important;border-radius:5px!important;order:3!important}
html body #app #diaryPage#diaryPage .event-card{padding:10px!important;margin:0 0 8px!important;border:0!important;border-left:3px solid #a2b093!important;border-radius:8px!important;background:#eef1e8!important;box-shadow:none!important;min-height:0!important}
html body #app #diaryPage#diaryPage .event-card:nth-of-type(3n){background:#f7efe2!important;border-left-color:#c4a06a!important}
html body #app #diaryPage#diaryPage .event-card:nth-of-type(3n+1){background:#f6ebe6!important;border-left-color:#bd9385!important}
html body #app #diaryPage#diaryPage .event-card b{display:block!important;font:600 14px/1.35 system-ui!important;letter-spacing:-.01em!important;margin-top:4px!important;overflow:visible!important;overflow-wrap:break-word!important;word-break:normal!important;-webkit-line-clamp:unset!important}
html body #app #diaryPage#diaryPage .event-card time{font:500 12px/1.3 system-ui!important}
html body #app #diaryPage#diaryPage .event-meta-line{gap:5px!important;flex-wrap:wrap!important}
html body #app #diaryPage#diaryPage .event-card .scope-tag{font:500 9px/1.2 system-ui!important;padding:3px 5px!important;background:rgba(255,255,255,.65)!important;border-radius:4px!important}
html body #app #diaryPage#diaryPage :is(.week-open-day,.add-day){display:inline-flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:44px!important;font:550 12px/1.3 system-ui!important;margin:2px 0!important;padding:8px 5px!important;border-radius:8px!important;box-shadow:none!important}
html body #app #diaryPage#diaryPage .week-open-day{background:#e6ecdc!important;border:1px solid #d1dac4!important;color:#35462e!important}
html body #app #diaryPage#diaryPage .add-day{background:transparent!important;border:0!important;color:#526645!important}
html body #app #diaryPage#diaryPage .clear-day{font:400 13px/1.4 system-ui!important;padding:16px 2px!important;background:transparent!important;border:0!important;color:#626958!important}
html body #app #diaryPage#diaryPage .dashboard-grid{align-items:start!important}
html body #app #diaryPage#diaryPage .capture{height:auto!important;min-height:0!important;align-self:start!important}
@media(min-width:1300px){html body #app #diaryPage#diaryPage .week-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:600px){
 html body #app #diaryPage#diaryPage .week-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html body #app #diaryPage#diaryPage .week-grid>.day-col{padding:9px!important}
 html body #app #diaryPage#diaryPage :is(.section,.uc-detail-body){padding:12px!important}
 html body #app #diaryPage#diaryPage .event-card{padding:8px!important}
 html body #app #diaryPage#diaryPage .day-count{display:none!important}
 html body #app #diaryPage#diaryPage .section-head{flex-wrap:wrap!important}
 html body #app #diaryPage#diaryPage .section-head h2{font-size:22px!important}
 html body #app #diaryPage#diaryPage .toolbar{display:flex!important;flex-wrap:wrap!important}
 html body #app #diaryPage#diaryPage .segmented{max-width:100%!important;flex-wrap:wrap!important}
 html body #app #diaryPage#diaryPage .segmented button{font-size:12px!important;padding:8px 10px!important}
 html body #app #diaryPage#diaryPage .uc-feature-art{min-height:155px!important;max-height:180px!important}
}

/* Diary 52: small photo breaks through the week; neutral account menu. */
html body #app #diaryPage#diaryPage .week-grid>.day-col:is(:nth-child(1),:nth-child(4),:nth-child(7))::after{
 content:"";display:block;height:90px;margin:8px 0 0;border-radius:8px;
 background:url('/assets/constitution/live.webp') center/cover;pointer-events:none
}
html body #app #diaryPage#diaryPage .week-grid>.day-col:nth-child(4)::after{background-image:url('/hero-goals.jpg');background-position:70% 55%}
html body #app #diaryPage#diaryPage .week-grid>.day-col:nth-child(7)::after{background-image:url('/assets/constitution/food.webp');background-position:center}
html body #app #urAccount#urAccount{background:#f7f7ef!important;color:#2c3527!important;border:1px solid #cbd1bf!important}
html body #app #urAccount#urAccount :is(.ur-dialog-head,.ur-dialog-body){background:transparent!important;color:#2c3527!important}
html body #app #urAccount#urAccount .ur-profile-field{background:#e8eddc!important;border-color:#c7d1b9!important}
html body #app #urAccount#urAccount .ur-profile-field label{color:#45513b!important;font-weight:550!important}
html body #app #urAccount#urAccount :is(.ur-account-action,[data-ur-help]){background:#eef1e5!important;color:#2c3527!important;border:1px solid #cad3bd!important}
html body #app #urAccount#urAccount [data-ur-help]{background:#dde7cf!important;border-color:#bacaa8!important}
html body #app #urAccount#urAccount :is(.ur-account-action small,.ur-description,.ur-eyebrow){color:#4e5a43!important}
html body #app #urAccount#urAccount :is(select,.ur-signout,[data-ur-close]){background:#fafaf4!important;color:#2c3527!important;border:1px solid #c7d1b9!important}
html body #app #urAccount#urAccount :is(.ur-account-action:hover,.ur-account-action:focus-visible){background:#dce6ce!important;color:#24331c!important}
