/* HAEBOM v4.16.0 · Archive Edition / final component-level overrides.
   All stats are derived from existing account records, never invented rewards. */
:root{--hb-ink:#18243A;--hb-blue:#243B63;--hb-blue-hover:#192E50;--hb-paper:#F7F6F2;--hb-line:#DFE4EB;--hb-muted:#596577}
html,body{background:var(--color-background);color:var(--color-text-primary)}
body{accent-color:var(--color-primary)}
button,input,textarea,select{font-family:inherit}
a,button{ -webkit-tap-highlight-color:transparent }
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--color-primary-border)!important;outline-offset:3px}
.hb-category-icon{width:24px;height:24px;flex:0 0 24px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;color:inherit}
.hb-category-icon svg{width:100%;height:100%;display:block;overflow:visible;fill:none!important}
/* Category picker: uniform visual grammar, 13 curated categories. */
.category-picker .picker-items{gap:10px!important}
.category-picker .picker-item{background:#FCFCFD!important;border:1px solid #E1E5EC!important;border-radius:17px!important;min-height:99px!important;box-shadow:0 2px 0 rgba(24,36,58,.015);display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:9px!important;position:relative;transition:background .15s,border-color .15s,transform .15s;cursor:pointer}
.category-picker .picker-item:hover{border-color:#A9B9D0!important;background:#F3F6FA!important;transform:translateY(-1px)}
.category-picker .picker-item.selected{border-color:var(--color-primary)!important;background:#EAF0F7!important;box-shadow:0 0 0 1px var(--color-primary) inset!important}
.category-picker .picker-emoji{width:43px!important;height:43px!important;display:grid!important;place-items:center!important;border:1px solid #E6EAF0;border-radius:13px;background:#FFF!important;color:var(--color-primary)!important;font-size:initial!important;margin:0!important}
.category-picker .picker-emoji .hb-category-icon{width:24px;height:24px}
.category-picker .picker-name{font-size:13px!important;font-weight:750!important;color:var(--color-text-primary)!important;line-height:1.35}
.category-picker .picker-tick{position:absolute!important;right:10px!important;top:8px!important;color:var(--color-primary)!important;font-size:13px!important}
.category-picker .picker-item:not(.selected) .picker-tick{display:none!important}
.category-picker .v412-category-hint{background:#F1F4F8!important;color:var(--color-text-secondary)!important}
.editor-category-choice .editor-category-text{display:inline-flex;align-items:center;gap:9px;min-width:0}
.editor-category-choice .editor-category-text .hb-category-icon{height:18px;width:18px;flex-basis:18px;color:var(--color-primary)}
.v37-collection-glyph .hb-category-icon{width:35px;height:35px}
.v47-preview-glyph .hb-category-icon{width:20px;height:20px}
.calendar-event-emoji .hb-category-icon,.calendar-event-pill .hb-category-icon{width:14px;height:14px;flex:0 0 14px}
.memory-icon .hb-category-icon,.home-trail-dot .hb-category-icon{width:22px;height:22px}
.my-journey-field-label .hb-category-icon,.v46-idea-category .hb-category-icon{width:17px;height:17px;flex:0 0 17px;margin-right:4px}
.v46-idea-category{display:inline-flex;gap:4px;align-items:center}
.recent-photo-empty .hb-category-icon{margin-right:8px}
/* Editor: the short quick-entry form is enough to save; options remain accessible via <details>. */
.journal-editor #v412-exp-more{background:#FFFFFF!important;border:1px solid #DEE4EC!important;border-radius:16px!important;box-shadow:0 8px 22px rgba(24,36,58,.035);margin-top:13px!important}
.journal-editor #v412-exp-more>summary{min-height:56px!important;padding:16px 20px!important;color:var(--color-primary)!important;font-size:14px!important;font-weight:760!important;letter-spacing:-.02em!important;list-style:none}
.journal-editor #v412-exp-more>summary::-webkit-details-marker{display:none}
.journal-editor #v412-exp-more>summary::after{content:'+';margin-left:auto;font-weight:520;font-size:22px;line-height:1}
.journal-editor #v412-exp-more[open]>summary::after{content:'−'}
.journal-editor #v412-exp-more[open]>summary{border-bottom:1px solid var(--color-border)}
.journal-editor .editor-title-block,.journal-editor .editor-meta{border-color:var(--color-border)!important}
.journal-editor .v47-title-card{background:var(--color-surface)!important}
.journal-editor .editor-save{background:var(--color-primary)!important;color:#FFFFFF!important}
.journal-editor .editor-save:hover{background:var(--color-primary-hover)!important}
/* Homepage: actual progress of a lived life. Let scroll work, especially in short mobile screens. */
#tab-home.active{display:flex!important;flex-direction:column!important;gap:0!important;max-height:none!important;min-height:0!important;overflow:visible!important;grid-template:none!important;align-items:stretch!important}
#archive-view:has(#tab-home.active) .journal-layout{max-width:1050px!important;min-height:0!important;padding-top:22px!important;padding-bottom:60px!important}
#tab-home .home-heading-holder{order:0;grid-area:auto!important;margin:0 0 20px!important}
#tab-home .home-page-heading{margin:0!important}
#tab-home .home-page-heading h1{color:var(--color-text-primary)!important;font-size:clamp(29px,4.1vw,38px)!important;font-weight:850!important}
#tab-home .v50-home-eyebrow{display:inline-block;margin-left:11px;color:var(--color-text-tertiary)!important;font-size:10px!important;letter-spacing:.11em!important;font-weight:700!important;vertical-align:middle}
#tab-home .hb-dashboard{order:1;display:grid!important;grid-template-columns:1.15fr .85fr;grid-template-areas:'hero metrics' 'fields fields';gap:14px;margin:0 0 27px!important;min-width:0}
.hb-dashboard-hero{grid-area:hero;position:relative;min-width:0;overflow:hidden;min-height:193px;border-radius:21px;padding:26px 30px;background:#243B63;color:white;display:flex;align-items:center;justify-content:space-between;box-shadow:0 13px 28px rgba(30,49,81,.12)}
.hb-dashboard-hero::before{content:'';position:absolute;width:210px;height:210px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-60px;top:-70px}
.hb-dashboard-hero::after{content:'';position:absolute;width:145px;height:145px;border:1px solid rgba(255,255,255,.10);border-radius:50%;right:20px;bottom:-90px}
.hb-dashboard-lead{position:relative;z-index:1;min-width:0}
.hb-overline{font-size:10px;font-weight:760;letter-spacing:.21em;color:#CCD7E8}
.hb-dashboard-lead>p:first-of-type{font-size:14px;letter-spacing:-.02em;margin:15px 0 6px;color:#F8FAFF}
.hb-big-count{display:flex;align-items:baseline;gap:9px;line-height:1.1}
.hb-big-count strong{font-size:clamp(50px,7vw,73px);font-weight:830;letter-spacing:-.075em;color:#FFFFFF;line-height:1.08;tab-size:2;font-variant-numeric:tabular-nums}
.hb-big-count span{font-size:16px;font-weight:720;color:#FFFFFF}
.hb-dashboard-lead .hb-dashboard-message{margin:15px 0 0;color:#D4DEEC;font-size:12px;line-height:1.5}
.hb-archive-motif{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:space-between;align-self:stretch;min-width:110px;text-align:right;opacity:.68;pointer-events:none}
.hb-archive-motif>span:first-child{font:700 55px/1 Georgia,serif;letter-spacing:-.08em;color:#DAE5F4}
.hb-archive-motif>span:last-child{font-size:8px;letter-spacing:.18em;line-height:1.8;color:#BFCFE3}
.hb-dashboard-metrics{grid-area:metrics;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
.hb-metric{min-width:0;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;text-align:left;border:1px solid #E1E5EA;background:#FFF;border-radius:18px;padding:17px 13px;cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}
.hb-metric:hover{transform:translateY(-2px);border-color:#A6B8CF;box-shadow:0 9px 20px rgba(24,36,58,.07)}
.hb-metric-label{color:#667185;font-size:11px;font-weight:750;line-height:1.4;word-break:keep-all}
.hb-metric strong{color:#243B63;font-size:clamp(28px,3.3vw,40px);line-height:1.28;font-weight:830;font-variant-numeric:tabular-nums;margin:5px 0}
.hb-metric small{color:#778292;font-size:10px;line-height:1.5;word-break:keep-all}
.hb-fields{grid-area:fields;border:1px solid #E2E6EA;border-radius:20px;background:#FFF;padding:20px 23px 17px}
.hb-fields-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 15px}
.hb-fields h2{font-size:17px;letter-spacing:-.04em;margin:0 0 3px;font-weight:810;color:var(--color-text-primary)}
.hb-fields p{font-size:11px;color:var(--color-text-secondary);margin:0;line-height:1.5}
.hb-fields-header>button{font-size:12px;color:var(--color-primary);font-weight:720;padding:8px 10px;white-space:nowrap;border:1px solid #DDE4EE;border-radius:10px;background:#F7F9FC;cursor:pointer}
.hb-fields-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 23px}
.hb-field-row{min-width:0;border:0;background:transparent;display:grid;grid-template-columns:78px minmax(0,1fr) 37px;align-items:center;gap:9px;padding:7px 0;text-align:left;cursor:pointer;border-radius:8px}
.hb-field-row:hover .hb-field-name{color:var(--color-primary)}
.hb-field-name{color:#536074;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:680;white-space:nowrap}
.hb-field-name .hb-category-icon{color:var(--color-primary);width:19px;height:19px;flex-basis:19px}
.hb-field-track{height:7px;background:#ECF0F5;border-radius:20px;overflow:hidden}
.hb-field-fill{display:block;height:100%;background:#243B63;border-radius:inherit;min-width:2px}
.hb-field-value{font-size:11px;color:var(--color-text-secondary);font-weight:760;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.hb-fields-empty{grid-column:1/-1;color:var(--color-text-secondary);font-size:12px;padding:13px 0 7px}
/* Reorder desktop/mobile sections: archive first, future plans second, discovery remains visible. */
#tab-home .v42-home-completed{order:2!important;margin:0 0 24px!important;grid-area:auto!important}
#tab-home .quiet-recent-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
#tab-home .quiet-recent-gallery>*:not(:first-child){display:grid!important}
#tab-home .v42-home-section#home-upcoming-section{order:3!important;margin:0 0 15px!important;grid-area:auto!important}
#tab-home .v42-home-section#home-wish-section{order:4!important;margin:0 0 24px!important;grid-area:auto!important}
#tab-home .v42-section-heading{margin:0 0 11px!important}
#tab-home .v42-section-heading h2{font-size:17px!important;letter-spacing:-.04em}
#tab-home .v42-home-list{border:0}
#tab-home .v42-home-preview-row,#tab-home .v42-home-empty{background:#FFF!important;border:1px solid var(--color-border)!important;border-radius:15px!important;padding:13px 17px!important;min-height:72px;box-shadow:0 3px 12px rgba(24,36,58,.025)!important}
#tab-home .v47-preview-glyph{display:inline-flex;align-items:center;justify-content:center;color:var(--color-primary);flex:none}
#tab-home .v42-home-preview-info{margin-right:auto}
#tab-home .v47-discover-spotlight{order:5!important;grid-area:auto!important;margin:0 0 12px!important;padding:22px 23px 20px!important;min-height:0!important;background:linear-gradient(130deg,#EDF1F6,#F9FAFB)!important;border:1px solid #DEE5EE!important;border-radius:20px!important}
#tab-home .v48-spotlight-top{min-height:145px!important}
#tab-home .v47-spotlight-copy h2{font-size:clamp(24px,3vw,30px)!important;margin-bottom:8px!important}
#tab-home .v47-spotlight-description{margin-bottom:13px!important}
#tab-home .v48-hero-art{opacity:.5!important}
#tab-home .cloud-status{order:6!important;margin:5px 0 0!important;padding:7px 9px!important;background:transparent!important;color:#768293!important;font-size:10px!important}
#tab-home .home-archive-more,#tab-home .quiet-home-revisit,#tab-home .quiet-compat,#tab-home .home-stats-quiet{display:none!important}
#tab-home .v46-home-discover{display:none!important}
/* Modest paper keepsake tickets: perforated edge, printed lettering, restrained marks. */
#experience-list.cards:not(.list-mode){gap:18px!important}
#experience-list .v49-ticket,#tab-home .v49-ticket{--ticket-paper:#EAF0F7;--ticket-ink:#243B63;aspect-ratio:1.96/1!important;min-height:177px!important;border:1px solid #CCD6E3!important;border-radius:15px!important;background:linear-gradient(145deg,#FFFFFF,#FCFCFA)!important;box-shadow:0 3px 4px rgba(20,37,61,.022),0 14px 30px rgba(20,37,61,.095)!important;transition:transform .18s,box-shadow .18s,border-color .18s!important;overflow:visible}
#experience-list .v49-ticket:hover,#tab-home .v49-ticket:hover{border-color:#849DBD!important;transform:translateY(-3px)!important;box-shadow:0 5px 9px rgba(20,37,61,.04),0 20px 38px rgba(20,37,61,.14)!important}
.v49-ticket-visual{background:#EAF0F7!important;border-right:1px dashed #B9C7D7!important}
.v49-ticket-visual::after{inset:8px!important;border:1px solid rgba(36,59,99,.14)!important;border-radius:8px 0 0 8px!important}
.v49-ticket-content{padding:17px 17px 15px 22px!important}
.v49-ticket-content::before,.v49-ticket-content::after{background:var(--color-background)!important;border:1px solid #CBD5E2!important}
.v49-ticket-brand{font-size:8px!important;font-weight:810!important;letter-spacing:.19em!important;color:#50617E!important}
.v49-ticket-category{border:0!important;background:#EAF0F7!important;color:#243B63!important;border-radius:6px!important;padding:4px 8px!important;font-size:10px!important}
#experience-list .v49-ticket-title,#tab-home .v49-ticket-title{color:#18243A!important;font-size:clamp(15px,1.8vw,20px)!important;line-height:1.35!important;font-weight:840!important;letter-spacing:-.05em!important}
.v49-ticket-footer{border-top:1px dashed #CCD6E3!important;padding-top:9px!important}
.v49-ticket-seal{color:#243B63!important;font-size:9px!important;letter-spacing:.12em!important;font-weight:840!important;white-space:nowrap}
.v49-ticket-artwork{color:#243B63!important;background-image:radial-gradient(circle at 14% 12%,#FFFFFF 0 12%,transparent 50%),linear-gradient(140deg,#EDF2F8,#DDE6F2)!important}
.v49-ticket-artwork svg{opacity:.82!important}
.v49-art-type{color:#4A6284!important}
.v49-art-flourish{color:#617A9D!important;opacity:.27!important}
.v49-ticket-photo{filter:none!important}
#tab-footprints .quiet-list-heading{border-bottom-color:var(--color-border)}
#tab-footprints .view-switch .view-btn.active{color:var(--color-primary)!important}
/* Legible controls, including historical files that use explicit color values. */
.haebom-tab.active,.haebom-desktop-nav button.active,.chip.active,.footprint-section.active{color:var(--color-primary)!important}
.btn-primary,.auth-primary,.editor-save{background:var(--color-primary)}
button[aria-pressed="true"]{accent-color:var(--color-primary)}
/* Public policy pages are separate documents. Their CSS legacy file has its brand values updated too. */
@media(min-width:800px){
 #tab-home .hb-dashboard{grid-template-columns:1.15fr .85fr}
 #tab-home .v42-home-completed .quiet-recent-gallery.v37-has-only-one .v49-ticket{grid-column:span 1!important;max-width:none!important}
}
@media(max-width:799px){
 #tab-home .hb-dashboard{grid-template-columns:1fr;grid-template-areas:'hero' 'metrics' 'fields';gap:11px}
 .hb-dashboard-hero{min-height:178px}
 .hb-dashboard-metrics{min-height:111px}
 .hb-metric{padding:14px 12px}
}
@media(max-width:600px){
 #archive-view:has(#tab-home.active) .journal-layout{padding-top:13px!important;padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
 #tab-home .home-heading-holder{margin-bottom:15px!important}
 #tab-home .v50-home-eyebrow{display:block;margin:6px 0 0;font-size:9px!important}
 #tab-home .hb-dashboard{gap:10px;margin-bottom:23px!important}
 .hb-dashboard-hero{padding:22px 22px;min-height:180px;border-radius:18px}
 .hb-big-count strong{font-size:56px}
 .hb-archive-motif{min-width:80px}
 .hb-archive-motif>span:first-child{font-size:45px}
 .hb-dashboard-metrics{gap:7px}
 .hb-metric{border-radius:15px;padding:13px 9px;min-height:109px}
 .hb-metric-label{font-size:10px}
 .hb-metric strong{font-size:30px}
 .hb-metric small{font-size:9px}
 .hb-fields{border-radius:17px;padding:18px 15px}
 .hb-fields-header{align-items:flex-start}
 .hb-fields h2{font-size:16px}
 .hb-fields-list{grid-template-columns:1fr;gap:2px}
 .hb-field-row{grid-template-columns:76px minmax(0,1fr) 35px}
 #tab-home .quiet-recent-gallery{grid-template-columns:1fr!important;gap:12px!important}
 #tab-home .v42-home-completed .quiet-recent-gallery.v37-has-only-one .v49-ticket{grid-column:span 1!important;max-width:none!important}
 #experience-list.cards:not(.list-mode){grid-template-columns:1fr!important;gap:13px!important}
 #experience-list .v49-ticket,#tab-home .v49-ticket{min-height:165px!important;aspect-ratio:1.87/1!important}
 .v49-ticket-content{padding:13px 12px 12px 17px!important}
 .v49-ticket-brand{font-size:7px!important}
 .v49-ticket-category{font-size:9px!important}
 #experience-list .v49-ticket-title,#tab-home .v49-ticket-title{font-size:15px!important}
 #tab-home .v47-discover-spotlight{padding:20px 18px!important}
 #tab-home .v47-spotlight-copy h2{font-size:24px!important}
 #tab-home .v48-spotlight-top{min-height:166px!important}
 .category-picker .picker-item{min-height:90px!important}
}
@media(max-width:355px){
 .hb-dashboard-hero{padding:18px 17px;min-height:165px}
 .hb-big-count strong{font-size:49px}
 .hb-archive-motif{min-width:70px}
 .hb-metric{padding:10px 7px}
 .hb-metric small{font-size:8px}
 .hb-fields-header>button{font-size:10px;padding:6px 8px}
 #experience-list .v49-ticket,#tab-home .v49-ticket{min-height:155px!important}
}
@media(prefers-reduced-motion:reduce){.hb-metric,.category-picker .picker-item,.v49-ticket{transition:none!important}}
/* v4.16 priority fix: retire the v5.0 fixed-viewport home sizing entirely. */
#tab-home.active{height:auto!important;max-height:none!important;overflow:visible!important;flex:initial!important}
#tab-home #home-upcoming-section,#tab-home #home-wish-section,#tab-home .v42-home-completed{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;position:static!important}
#tab-home .v42-home-list,#tab-home .v42-home-completed .quiet-recent-gallery{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
#tab-home .v42-home-preview-row,#tab-home .v42-home-empty{height:auto!important;min-height:76px!important;position:relative!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
#tab-home .v47-preview-glyph{display:inline-flex!important}
#tab-home .v42-home-preview-info{width:auto!important}
#tab-home .v42-home-completed .quiet-recent-gallery>.v49-ticket{height:auto!important;min-height:175px!important;aspect-ratio:1.96/1!important}
@media(max-width:600px){#tab-home .v42-home-completed .quiet-recent-gallery>.v49-ticket{min-height:165px!important;aspect-ratio:1.87/1!important}}
/* Desktop two-ticket shelf: the existing one-column rule must not stretch tickets vertically. */
@media(min-width:601px){
 #tab-home .v42-home-completed .quiet-recent-gallery{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;gap:16px!important}
 #tab-home .v42-home-completed .quiet-recent-gallery>.v49-ticket{height:auto!important;min-height:171px!important;aspect-ratio:1.9/1!important}
 #tab-home .v42-home-completed .quiet-recent-gallery.v37-has-only-one .v49-ticket{grid-column:span 1!important;max-width:none!important}
}
@media(max-width:600px){
 #tab-home .v42-home-completed .quiet-recent-gallery{grid-template-columns:1fr!important;grid-template-rows:auto!important;gap:12px!important}
}
