@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root{--bg:#fcf9f3;--cream:#f7f0e4;--brown:#503e31;--muted:#998b7c;--accent:#a76f49;--sage:#75846b;--line:#eae2d6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--brown);font-family:'DM Sans',Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d6aa7e;outline-offset:2px}.app{display:flex;min-height:100vh}.sidebar{width:244px;flex-shrink:0;background:#f8f3e9;border-right:1px solid var(--line);padding:32px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 7px}.brand-icon{width:42px;height:42px;background:#e9d9c4;border-radius:13px;display:grid;place-items:center;font-size:27px}.brand b{font-family:'Playfair Display',Georgia,serif;font-size:1.25rem}.brand small{display:block;font-size:1rem;color:var(--muted);margin-top:3px;letter-spacing:.2px}.sidebar-label,.eyebrow{font-size:1rem;font-weight:700;letter-spacing:2px;color:#b48c6c}.sidebar-label{margin:65px 15px 17px;color:#aa9c8b;font-size:1rem}nav{display:grid;gap:7px}.nav{border:0;background:transparent;border-radius:11px;text-align:left;padding:13px 15px;color:#807061;font-weight:600;font-size:1rem;display:flex;gap:14px;align-items:center}.nav.active{background:#e9dfd0;color:#785139}.nav:hover{background:#eee5d8}.sidebar-bottom{margin-top:auto;text-align:center;color:#a09181;font-size:1rem;line-height:1.8}.mini-bear{font-size:44px}.link-button{border:0;background:transparent;color:#956a4b;text-decoration:underline;font-size:1rem;margin-top:8px}main{flex:1;min-width:0}.topbar{height:80px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #f0e9de}.crumb{color:#9b8a79;font-size:1rem}.top-right{display:flex;align-items:center;gap:20px}.pill{background:#eaf0e6;color:#718064;padding:9px 15px;border-radius:30px;font-size:1rem;font-weight:700}.avatar{background:#f2e6d5;border-radius:50%;width:35px;height:35px;display:grid;place-items:center}.content{max-width:1230px;margin:auto;padding:34px 5.5% 22px}.hero{border-radius:20px;background:linear-gradient(110deg,#f2e3ce,#f7ead9 70%,#f0ddc2);min-height:310px;display:flex;position:relative;overflow:hidden}.hero-text{position:relative;z-index:2;padding:39px 0 36px 5%;width:60%}h1,h2,h3{font-family:'Playfair Display',Georgia,serif}h1{font-size:clamp(35px,4vw,56px);line-height:1.13;letter-spacing:-1.4px;margin:14px 0}h1 em{font-weight:500;color:#a06e4e}.hero p{font-size:1rem;line-height:1.8;color:#8b7968;max-width:355px;margin-bottom:22px}.primary{background:#9d6c49;color:white;border:0;padding:12px 21px;border-radius:9px;font-size:1rem;font-weight:700;box-shadow:0 3px 8px #7c50311c}.primary:hover{background:#865637}.hero-art{flex:1;position:relative;display:flex;align-items:center;justify-content:center;min-width:190px}.sun{position:absolute;width:255px;height:255px;background:#e8d0af;border-radius:50%;opacity:.6}.bear-illustration{font-size:clamp(110px,17vw,205px);filter:drop-shadow(0 15px 11px #8a5c3e30);z-index:1;transform:rotate(-7deg)}.spark{position:absolute;color:#d2a56c;font-size:30px}.s1{top:15%;left:14%}.s2{top:30%;right:10%}.s3{bottom:20%;left:9%}.art-caption{position:absolute;bottom:20px;color:#9f8269;font-size:1rem;z-index:1}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:23px 0 43px}.stat{background:#fff;border:1px solid #f0e9df;border-radius:13px;padding:19px;display:flex;align-items:center;gap:13px;box-shadow:0 3px 12px #5d3f2105}.stat-icon{width:42px;height:42px;border-radius:12px;background:#f4e9d9;display:grid;place-items:center;font-size:1.3125rem}.stat:nth-child(2) .stat-icon{background:#f1e7e7}.stat:nth-child(3) .stat-icon{background:#e9ede3}.stat:nth-child(4) .stat-icon{background:#eee8dc}.stat b{font-family:'Playfair Display',Georgia,serif;font-size:23px}.stat small{display:block;color:#a09284;font-size:1rem;margin-top:3px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:15px}.section-head h2{font-size:28px;letter-spacing:-.5px;margin:8px 0}.section-head h2 span{color:#b48a6e}.section-head p{font-size:1rem;color:#a09284;margin:0}.toolbar{display:flex;gap:12px;margin:25px 0 19px}.search-wrap{flex:1;display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:white;border-radius:9px;padding:0 13px;color:#a28e7c}.search-wrap input{border:0;outline:0;min-width:0;width:100%;padding:12px 0;background:transparent;font-size:1rem}.toolbar select{background:white;border:1px solid var(--line);border-radius:9px;padding:0 13px;color:#776a5d;font-size:1rem;max-width:180px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.bear-card{background:white;border:1px solid #f0e8dd;border-radius:13px;overflow:hidden;box-shadow:0 4px 14px #5e42220a;min-width:0}.bear-photo{height:180px;background:linear-gradient(135deg,#e8d9c6,#f5e9d7);display:grid;place-items:center;font-size:75px;position:relative;overflow:hidden}.bear-photo img{width:100%;height:100%;object-fit:cover}.bear-photo .tag{position:absolute;right:10px;top:10px;background:#ffffffea;padding:5px 8px;border-radius:20px;font-size:1rem;font-weight:700;color:#87705c}.card-body{padding:15px}.card-body h3{font-size:1.125rem;margin:0 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.card-meta{color:#9b8c7d;font-size:1rem;min-height:17px}.card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.small-btn{border:1px solid #e8dccd;background:#fcf8f1;color:#8a6046;padding:8px 10px;border-radius:7px;font-size:1rem;font-weight:700}.small-btn:hover{background:#f1e5d4}.small-btn.danger{color:#a45d55}.wish-card .bear-photo{height:105px;font-size:49px;background:linear-gradient(135deg,#f2e5e5,#f6eee4)}.wish-card .card-actions{display:grid;grid-template-columns:1fr 1fr}.wish-card .card-actions .small-btn{padding:9px 5px}.wish-card .card-actions .wide{grid-column:span 2}.wish-location{font-size:1rem;color:#9b8c7d;overflow-wrap:anywhere;min-height:32px;margin-top:10px}.empty{grid-column:1/-1;text-align:center;padding:70px 20px;background:#fff;border:1px dashed #decfbb;border-radius:15px}.empty .emoji{font-size:58px}.empty h3{font-size:25px;margin:12px 0 5px}.empty p{font-size:1rem;color:#9a8b7d}.footer-note{text-align:center;color:#b3a393;font-size:1rem;margin-top:55px;padding:15px}.modal-backdrop{position:fixed;inset:0;background:#34291fd1;z-index:20;display:grid;place-items:center;padding:15px}.modal-backdrop[hidden]{display:none}.modal{background:#fffcf7;width:min(600px,100%);max-height:95vh;overflow:auto;border-radius:19px;padding:26px;box-shadow:0 15px 80px #20120750}.modal-top{display:flex;justify-content:space-between;align-items:start}.modal h2{margin:6px 0 18px;font-size:30px}.icon-button{border:0;background:#f0e8dc;border-radius:50%;width:33px;height:33px;font-size:23px;color:#8e715d}.photo-field{display:flex;gap:16px;align-items:center;background:#f7efe4;border:1px dashed #dcc8af;border-radius:12px;padding:12px;margin-bottom:17px}.photo-preview{height:85px;width:95px;border-radius:9px;background:#e9d8c1;display:grid;place-items:center;font-size:40px;overflow:hidden}.photo-preview img{height:100%;width:100%;object-fit:cover}.photo-field b{font-size:1rem}.photo-field small{display:block;font-size:1rem;color:#998979;margin:5px 0 13px}.upload-btn{font-size:1rem;background:white;border:1px solid #e1d1be;border-radius:7px;padding:7px 11px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:1rem;font-weight:700;color:#715d4c}.form-grid label[hidden]{display:none}.form-grid .wide{grid-column:1/-1}.form-grid strong{color:#bb6e4c}.form-grid input,.form-grid select,.form-grid textarea{border:1px solid #e6dacc;border-radius:8px;padding:11px;background:white;color:#574738;min-width:0;font-size:1rem}.toggle-field{justify-content:center}.switch-row{display:flex;align-items:center;gap:8px;font-size:1rem;font-weight:500}.switch-row input{width:17px;height:17px;accent-color:#a2734f}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:22px}.secondary{border:1px solid #dfd1c2;background:white;color:#765b48;border-radius:8px;padding:11px 17px;font-size:1rem}.error{color:#a83232;font-size:1rem;margin-top:10px}#toast{position:fixed;bottom:20px;right:20px;background:#5c7354;color:white;padding:12px 20px;border-radius:10px;box-shadow:0 5px 20px #0002;font-size:1rem;opacity:0;pointer-events:none;transition:opacity .2s;z-index:30}#toast.show{opacity:1}@media(max-width:1150px){.cards{grid-template-columns:repeat(3,1fr)}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:750px){.app{display:block}.sidebar{width:100%;height:auto;position:sticky;top:0;z-index:5;padding:9px 12px;flex-direction:row;align-items:center;justify-content:space-between}.brand-icon{width:34px;height:34px;font-size:1.375rem}.brand b{font-size:1rem}.brand small,.sidebar-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:2px}.nav{padding:9px;font-size:1.0625rem}.nav span{display:none}.topbar{height:50px;padding:0 5%}.crumb{font-size:1rem}.pill{display:none}.content{padding:18px 4%}.hero{min-height:250px}.hero-text{padding:27px 0 25px 6%;width:68%}.hero p{font-size:1rem}.hero-art{min-width:0}.bear-illustration{font-size:100px}.sun{width:150px;height:150px}.art-caption{display:none}.stats{gap:8px;margin:13px 0 29px}.stat{padding:12px;gap:8px}.stat-icon{width:34px;height:34px;font-size:1.0625rem}.stat b{font-size:1.25rem}.stat small{font-size:1rem}.section-head h2{font-size:24px}.section-head .primary{font-size:1rem;padding:10px}.toolbar{flex-wrap:wrap}.search-wrap{flex-basis:100%}.toolbar select{flex:1;height:39px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bear-photo{height:150px}.card-body{padding:11px}.card-body h3{font-size:1.0625rem}.modal{padding:18px}.form-grid{gap:10px}}@media(max-width:370px){.hero-art{display:none}.hero-text{width:100%}.cards{grid-template-columns:1fr}.stat-icon{display:none}}
[hidden]{display:none!important}

/* Bear detail gallery and separate home dashboard */
.view-photo{cursor:pointer}.view-photo:hover img{transform:scale(1.045)}.view-photo img{transition:transform .2s}.view-photo:focus-visible{outline:3px solid #a76f49;outline-offset:-3px}.view-btn{background:#efe1cf;color:#704a32}
.home-welcome{border-radius:17px;padding:26px;background:linear-gradient(110deg,#f4eadb,#e9ede2);border:1px solid #eadfce}.home-welcome h2{margin:9px 0;font-size:28px}.home-welcome p{font-size:1rem;color:#827262;line-height:1.7}.home-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.home-recent-head{margin:32px 0 17px}.home-recent-head h2{margin:8px 0}.home-wish{display:flex;align-items:center;gap:17px;padding:22px;margin-top:26px;border:1px solid #eadfd2;border-radius:14px;background:#fff}.home-wish>span{font-size:35px;color:#b38b61}.home-wish>div{flex:1}.home-wish b{font-family:'Playfair Display',Georgia,serif;font-size:1.25rem}.home-wish p{font-size:1rem;color:#998b7c;margin:6px 0}.detail-dialog{width:min(820px,100%);max-height:94vh;overflow:auto;position:relative;background:#fffcf7;border-radius:20px;box-shadow:0 20px 80px #1c110a66}.detail-close{position:absolute;z-index:2;top:14px;right:14px;background:#fffdf1}.detail-photo{height:min(43vh,390px);background:linear-gradient(135deg,#e8d9c6,#f5e9d7);display:grid;place-items:center;position:relative;overflow:hidden}.detail-photo>img{width:100%;height:100%;object-fit:contain}.detail-photo>span:not(.zoom-hint){font-size:110px}.detail-photo.clickable{cursor:zoom-in}.zoom-hint{position:absolute;right:17px;bottom:14px;background:#fffcf3ee;color:#6b5140;padding:8px 13px;border-radius:30px;font-size:1rem}.detail-body{padding:25px 32px 30px}.detail-body h2{font-size:37px;margin:8px 0 3px}.detail-intro{font-size:1rem;color:#978675;margin:0 0 22px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.detail-field{border:1px solid #ece1d4;background:#fcf7ef;border-radius:10px;padding:13px;display:flex;flex-direction:column;gap:7px}.detail-field span{color:#978674;font-size:1rem}.detail-field strong{font-size:1rem}.detail-notes{margin-top:17px;border-top:1px solid #e9dfd3;padding-top:17px;font-size:1rem}.detail-notes p{line-height:1.7;color:#77695c;overflow-wrap:anywhere}.detail-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:22px}.image-dialog{position:relative;max-width:96vw;max-height:96vh;display:grid;place-items:center}.image-dialog img{display:block;max-width:95vw;max-height:93vh;object-fit:contain;border-radius:9px}.image-close{position:absolute;right:7px;top:7px;z-index:2;background:#fff}.home-panel[hidden],#collection-section[hidden]{display:none!important}@media(max-width:750px){.detail-body{padding:21px}.detail-body h2{font-size:29px}.detail-photo{height:34vh}.home-wish{flex-wrap:wrap}.home-wish button{margin-left:auto}}

/* Birthday Bear Finder */
.birthday-search{background:linear-gradient(120deg,#f4e5d2,#edf0e5);border:1px solid #e7d8c3;border-radius:17px;padding:25px;margin:24px 0}.birthday-search label{display:block;font-weight:700;font-size:1rem;margin-bottom:10px}.birthday-search input{border:1px solid #d9c8b6;border-radius:9px;padding:12px;background:#fff;color:#503e31;max-width:100%;font-size:1rem}.birthday-tip{color:#847262;font-size:1rem}.birthday-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.birthday-placeholder{text-align:center;background:white;border:1px dashed #decfbb;border-radius:15px;padding:40px 15px;font-size:43px}.birthday-placeholder h3{font-size:23px;margin:10px 0}.birthday-placeholder p{font-size:1rem;color:#998b7c}.birthday-result-heading{margin:25px 0 15px}.birthday-result-heading h3{font-size:25px;margin:8px 0}.birthday-public-note{margin-top:28px;background:#f6f0e6;border:1px solid #e7d9c7;padding:20px;border-radius:13px;font-size:1rem}.birthday-public-note p{font-size:1rem;line-height:1.7;color:#887666;margin-bottom:0}@media(max-width:750px){.birthday-search{padding:18px}.birthday-buttons button{flex:1}}

.birthday-selectors{display:grid;grid-template-columns:minmax(110px,1fr) minmax(160px,1.5fr);gap:14px;max-width:450px}.birthday-selectors label{display:flex;flex-direction:column;gap:8px}.birthday-selectors select{border:1px solid #d9c8b6;border-radius:9px;padding:12px;background:#fff;color:#503e31;font-size:1rem;width:100%;min-height:48px}@media(max-width:420px){.birthday-selectors{grid-template-columns:1fr 1fr;gap:8px}}

/* v7: unified homepage + personal den; legibility and responsive polish */
.content{max-width:1400px;width:100%;margin:0 auto}
body{font-size:1rem}
.sidebar .nav{font-size:1rem}
.crumb,.eyebrow{letter-spacing:.09em}
.hero{min-height:330px}
.hero p{font-size:1rem;line-height:1.7;max-width:440px}
.hero-text{width:61%}
.hero h1{font-size:clamp(38px,4vw,67px)}
.primary,.secondary{font-size:1rem;min-height:42px}
#home-panel{margin-top:32px}
.welcome-story{max-width:880px;margin:0 auto 42px;text-align:center;padding:10px 20px}
.welcome-story h2,.feature-heading h2{font-size:clamp(27px,3vw,38px);margin:12px 0}
.welcome-story p{font-size:1rem;line-height:1.85;color:#766555;margin:12px 0}
.feature-heading{text-align:center;margin-bottom:23px}
.feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.feature-card{border:1px solid #eaded0;background:#fffdf9;border-radius:17px;padding:26px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.feature-card>span{font-size:38px}
.feature-card h3{font-size:23px;margin:0}
.feature-card p{font-size:1rem;line-height:1.7;color:#827262;flex:1;margin:0 0 8px}
.future-note{display:flex;align-items:center;gap:17px;margin-top:28px;background:linear-gradient(110deg,#f5e9d8,#e9eee4);border-radius:16px;padding:25px}
.future-note>span{font-size:35px;color:#a57855}
.future-note b{font-size:1.1875rem}
.future-note p{font-size:1rem;line-height:1.7;color:#756859;margin:7px 0 0}
.den-intro{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 15px}
.den-intro h2{font-size:34px;margin:6px 0}
.den-intro p{font-size:1rem;color:#837363;margin:0}
#stats{margin:0 0 27px;grid-template-columns:repeat(3,minmax(0,1fr))}
.stat small{font-size:1rem}
.section-head p{font-size:1rem}
.toolbar input,.toolbar select{font-size:1rem;min-height:43px}
.cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.bear-photo{height:auto;aspect-ratio:1/1}
.card-body h3{font-size:1.3125rem}
.card-meta{font-size:1rem}
.card-open-hint{margin-top:12px;color:#996b4e;font-size:1rem;font-weight:700}
.bear-card{cursor:default}
.bear-card:hover{box-shadow:0 7px 22px #5e42221c}
.detail-actions{flex-wrap:wrap}
.detail-actions .danger{color:#a45d55}
.form-grid label{font-size:1rem}
.form-grid input,.form-grid select,.form-grid textarea{font-size:1rem}
.photo-field b{font-size:1rem}
@media(max-width:1100px){.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:750px){
 .sidebar .nav{font-size:1.125rem}
 .content{padding:17px 4%}
 .hero{min-height:275px}
 .hero-text{padding:25px 0 24px 6%;width:68%}
 .hero h1{font-size:clamp(29px,7.2vw,44px)}
 .hero p{font-size:1rem}
 .feature-grid{grid-template-columns:1fr;gap:12px}
 .feature-card{padding:20px}
 .feature-card h3{font-size:1.3125rem}
 .welcome-story{margin-bottom:28px;padding:0 6px}
 .welcome-story p{font-size:1rem}
 .den-intro h2{font-size:29px}
 .den-intro p{font-size:1rem}
 #stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .stat{padding:11px 8px}
 .stat-icon{display:none}
 .stat b{font-size:23px}
 .stat small{font-size:1rem}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .card-body{padding:12px}
 .card-body h3{font-size:1.1875rem}
 .card-meta{font-size:1rem}
 .bear-photo .tag{font-size:1rem}
 .section-head h2{font-size:25px}
 .future-note{padding:19px}
}
@media(max-width:370px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.den-intro{align-items:flex-start}.den-intro .primary{padding:8px 10px;font-size:1rem}}
[hidden]{display:none!important}.auth-card{max-width:440px;margin:clamp(24px,8vh,90px) auto;padding:32px;background:#fffdf8;border:1px solid var(--line);border-radius:22px;box-shadow:0 12px 40px #503e3110}.auth-card h1{font-size:32px}.auth-card form,.arc-form{display:grid;gap:16px}.auth-card label,.arc-form label{display:grid;gap:6px;font-weight:600}.auth-card input:not([type=hidden]),.arc-form input:not([type=checkbox]),.arc-form textarea,.arc-form select{width:100%;padding:12px;border:1px solid #d9cbb8;border-radius:9px;background:#fffdf8;color:var(--brown);font-size:1rem}.auth-card button{width:100%}.auth-card a,#guest-links a,.footer-note a{color:#805333}.arc-card,.arc-filters{padding:22px;background:#fffdf8;border:1px solid var(--line);border-radius:16px;margin:16px 0}.arc-filters{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));align-items:end}.arc-row{display:flex;align-items:center;gap:16px;padding:12px;margin:8px 0;width:100%;text-align:left;background:#fffdf8;border:1px solid var(--line);border-radius:12px;color:var(--brown)}.arc-row h3,.arc-row p{margin:4px 0}.arc-row img,.arc-thumb{width:72px;height:72px;object-fit:cover;border-radius:9px;background:var(--cream);flex-shrink:0}.arc-thumb{display:grid;place-items:center;font-size:32px}.arc-click:hover{border-color:var(--accent)}.vault-large{max-width:100%;max-height:420px;object-fit:contain}.arc-heading{margin-bottom:20px}#arc-panel{width:100%;max-width:1100px;margin:auto}@media(max-width:600px){.auth-card{margin:16px;padding:22px}.arc-card{padding:16px}.arc-row img,.arc-thumb{width:54px;height:54px}}

/* 2.1.2: responsive navigation and collection form */
.mobile-menu{display:none}.vault-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 12px}.vault-admin-heading h2{margin:0 0 5px}.vault-admin-heading p{margin:0;color:#827262;font-size:1rem}.vault-admin-heading button{flex-shrink:0}.birthday-selectors{grid-template-columns:minmax(0,1fr) minmax(0,1.8fr)}.birthday-selectors label{min-width:0}.birthday-selectors select{min-width:0;padding:10px 8px}.form-grid>label{min-width:0}.form-grid input:not([type=checkbox]),.form-grid select,.form-grid textarea{width:100%;max-width:100%}
@media(max-width:1023px){.app{display:block}.sidebar{width:100%;height:auto;position:sticky;top:0;z-index:5;padding:10px 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0;min-width:0}.brand b{font-size:1.1875rem;white-space:nowrap}.brand-icon{flex-shrink:0}.brand small,.sidebar-label,.sidebar-bottom{display:none}.mobile-menu{display:block;min-height:44px;padding:8px 12px;border:1px solid #dfd3c1;border-radius:9px;background:#f4eadb;color:var(--brown);font-weight:700}.sidebar nav{display:none;grid-column:1/-1;max-height:65vh;overflow:auto;gap:4px}.sidebar nav.menu-open{display:grid}.sidebar .nav{font-size:1rem;min-height:44px;padding:10px 14px}.nav span{display:inline}.topbar{height:auto;min-height:50px;gap:10px;padding:8px 5%;flex-wrap:wrap}.top-right{gap:10px}.pill{display:none}.content{min-width:0}}
@media(max-width:600px){#modal{padding:8px;align-items:start;overflow:auto}#modal .modal{width:100%;max-height:calc(100dvh - 16px);padding:20px;overflow-y:auto;overscroll-behavior:contain}#modal:has(#photo-field:not([hidden])) .form-grid{grid-template-columns:minmax(0,1fr);gap:16px}#modal .form-grid .wide{grid-column:1/-1}#modal .form-grid input:not([type=checkbox]),#modal .form-grid select{min-height:44px}#modal .form-actions{flex-wrap:wrap}.vault-admin-heading{flex-wrap:wrap}.vault-admin-heading button{min-height:44px}.birthday-selectors{grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);gap:8px}.birthday-selectors select{font-size:1rem}.arc-filters{grid-template-columns:repeat(auto-fit,minmax(min(145px,100%),1fr))}}
@media(max-width:360px){.birthday-selectors{grid-template-columns:minmax(0,1fr)}.brand b{font-size:1.0625rem}.sidebar{padding:8px 12px}}

/* 2.1.3: consistent nav, gallery and registration */
.sidebar .nav{display:flex;align-items:center;gap:10px;text-align:left;white-space:normal;line-height:1.3;width:100%}.sidebar .nav-icon{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 24px;width:24px;font-size:1rem}.sidebar .nav>span:last-child{display:block;min-width:0}.nav-group{font-size:1rem;letter-spacing:.12em;text-transform:uppercase;color:#95826c;font-weight:700;padding:14px 12px 5px}.nav-group:first-child{padding-top:0}.row-chevron{margin-left:auto;font-size:24px}.arc-row>div{min-width:0;overflow-wrap:anywhere}.gallery-editor{background:#f6eee2;border:1px dashed #decab0;border-radius:12px;padding:16px;margin-bottom:18px}.gallery-editor h3{margin:0 0 6px}.gallery-editor p{font-size:1rem;color:#827262;margin:8px 0}.photo-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.photo-slot{background:#fffdf8;border:1px solid #dfd3c1;border-radius:10px;padding:8px;display:grid;gap:6px;min-width:0}.photo-slot.main-photo{border:2px solid #a57855}.photo-slot img{width:100%;aspect-ratio:1;object-fit:contain;background:#eee3d2;border-radius:6px}.photo-slot button{font-size:1rem;padding:7px 4px;white-space:normal}.gallery-editor .upload-btn{display:inline-flex;min-height:44px;align-items:center}.detail-photo .gallery-enlarge{width:100%;height:100%;padding:0;background:none;border:0;position:relative;display:grid;place-items:center;cursor:zoom-in}.gallery-enlarge img{width:100%;height:100%;object-fit:contain;min-height:0}.detail-photo{position:relative}.gallery-prev,.gallery-next{position:absolute;top:50%;transform:translateY(-50%);border:1px solid #dfd3c1;background:#fffdf8eb;color:#604b38;border-radius:50%;width:44px;height:44px;font-size:24px}.gallery-prev{left:10px}.gallery-next{right:10px}.gallery-prev:disabled,.gallery-next:disabled{opacity:.35}.detail-thumbs{display:flex;gap:8px;justify-content:center;padding:10px;background:#f6eee2}.detail-thumbs button{border:2px solid transparent;border-radius:8px;padding:2px;background:#fffdf8;width:64px;height:64px}.detail-thumbs button[aria-pressed=true]{border-color:#a57855}.detail-thumbs img{width:100%;height:100%;object-fit:contain;border-radius:5px}.auth-card label.auth-check{display:flex;align-items:center;gap:8px}.auth-card label.auth-check input{width:auto;accent-color:#9e6c46}.approval-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e5d9c8;padding:10px 0}.approval-row>div{min-width:0;overflow-wrap:anywhere}.approval-row p{margin:4px 0}.approval-row button{flex-shrink:0}#share-notes-field small{display:block;font-weight:400;color:#827262;line-height:1.5}.sidebar nav{min-height:0;overflow-y:auto}.sidebar .nav-group{flex-shrink:0}@media(max-width:1023px){.sidebar nav.menu-open{max-height:65dvh}.sidebar .nav-icon{flex-basis:24px}.sidebar .nav{min-height:44px}.nav-group{padding-top:8px}.nav-group:first-child{padding-top:0}}@media(max-width:600px){.photo-slot button{min-height:44px}.detail-thumbs button{width:56px;height:56px}.gallery-editor{padding:12px}}

/* v2.1.4: constrain gallery tracks so intrinsic image dimensions cannot crop the preview. */
.detail-photo .gallery-enlarge{display:block;position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:#f4ebdd;}
.detail-photo .gallery-enlarge img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;display:block;}
.detail-close{width:44px;height:44px;font-size:27px;}
#image-modal{z-index:40;background:#30271fed;padding:12px;}
#image-modal .image-dialog{width:min(1100px,100%);height:min(94vh,100%);height:min(94dvh,100%);max-width:100%;max-height:100%;display:flex;flex-direction:column;gap:8px;min-height:0;}
.image-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#fffaf1;flex:none;min-width:0;padding:0 2px;}
#image-counter{font-size:1rem;overflow-wrap:anywhere;}
#image-modal .image-close{position:static;flex:0 0 48px;width:48px;height:48px;font-size:32px;color:#604b38;background:#fffaf1;}
.image-stage{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;position:relative;min-height:0;flex:1;touch-action:pan-y pinch-zoom;}
#image-modal #image-large{grid-column:2;width:100%;height:100%;min-height:0;min-width:0;max-width:100%;max-height:100%;object-fit:contain;object-position:center;}
.image-nav{width:48px;height:48px;border-radius:50%;border:1px solid #dfd3c1;background:#fffaf1;color:#604b38;font-size:30px;display:grid;place-items:center;line-height:1;}
#image-prev{grid-column:1;grid-row:1;}#image-next{grid-column:3;grid-row:1;} .image-nav:disabled{opacity:.35;}
.image-dots{display:flex;justify-content:center;gap:3px;flex:none;}.image-dots:empty{display:none;}.image-dots button{background:transparent;border:0;width:44px;height:44px;display:grid;place-items:center;}.image-dots button span{width:9px;height:9px;border-radius:50%;background:#99897a;}.image-dots button[aria-pressed=true] span{background:#fffaf1;}
.vault-large-button{border:0;background:transparent;padding:0;display:block;max-width:100%;cursor:zoom-in;}.vault-large-button img{display:block;}
.vault-filter-actions,.vault-pagination{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}.vault-filter-actions{grid-column:1/-1;}.vault-filter-actions button{min-height:44px;}.vault-count{margin:14px 0;}.vault-results-header{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;}.vault-pagination{margin-top:12px;}.vault-pagination button{min-height:44px;}
@media(max-width:600px){#image-modal{padding:8px;}#image-modal .image-dialog{height:100%;gap:4px;}.image-stage{grid-template-columns:44px minmax(0,1fr) 44px;gap:2px;}.image-nav{width:44px;height:44px;z-index:1;}#image-prev{justify-self:start;}#image-next{justify-self:end;}.vault-filter-actions button{flex:1 1 auto;}}

.image-stage{grid-template-rows:minmax(0,1fr);}.image-stage.single-image{grid-template-columns:minmax(0,1fr);}.image-stage.single-image #image-large{grid-column:1;grid-row:1;}.image-stage #image-large{grid-row:1;}.arc-filters{grid-template-columns:repeat(auto-fit,minmax(min(185px,100%),1fr));}
@media(max-width:600px){.image-stage:not(.single-image){grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) 48px;gap:4px;}.image-stage:not(.single-image) #image-large{grid-column:1/-1;grid-row:1;}.image-stage:not(.single-image) #image-prev{grid-column:1;grid-row:2;}.image-stage:not(.single-image) #image-next{grid-column:2;grid-row:2;}}
#image-modal .image-dialog{align-items:stretch;}.image-stage{width:100%;min-width:0;}

/* Explicit frame dimensions also keep unloaded and single photos stable. */
#image-modal .image-stage{display:block;position:relative;flex:1 1 0;min-height:0;width:100%;}
#image-modal .image-frame{position:absolute;inset:0 56px;min-width:0;min-height:0;}
#image-modal .single-image .image-frame{inset:0;}
#image-modal #image-large{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;}
#image-modal .image-nav{position:absolute;top:50%;transform:translateY(-50%);}
#image-modal #image-prev{left:0;}#image-modal #image-next{right:0;}
@media(max-width:600px){#image-modal .image-stage:not(.single-image) .image-frame{inset:0 0 52px;}#image-modal .image-nav{top:auto;bottom:0;transform:none;}}
/* v2.1.5 community expansion */
.arc-tabs,.arc-pager,.profile-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.arc-tabs{margin:12px 0}.arc-pager{margin:16px 0;justify-content:center}.arc-pager label{display:flex;align-items:center;gap:8px}.arc-pager select{width:auto}.arc-pager button,.arc-tabs button,.arc-tabs a{min-height:44px}.collector-avatar{width:64px;height:64px;object-fit:cover;border-radius:50%;flex-shrink:0}.collector-banner{background:#f0e3ce;border-radius:18px;text-align:center;padding:26px;margin:16px 0}.collector-banner .collector-avatar{width:100px;height:100px;display:inline-flex;align-items:center;justify-content:center;font-size:40px}.display-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px}.display-card{min-width:0;overflow-wrap:anywhere}.display-open{width:100%;border:0;background:#f3ece0;cursor:zoom-in;border-radius:10px;padding:0;overflow:hidden}.display-open img{width:100%;height:180px;object-fit:contain;display:block}.post-body{white-space:pre-wrap;overflow-wrap:anywhere}.forum-post{margin:12px 0}.admin-tools{margin-bottom:20px}.profile-row form{flex:1;min-width:180px}.arc-card a.secondary{display:inline-flex;align-items:center;text-decoration:none}.arc-card input[type=file]{max-width:100%}.arc-card p,.collector-banner p{overflow-wrap:anywhere}@media(max-width:550px){.arc-pager{justify-content:flex-start}.arc-tabs>*{max-width:100%}.collector-banner{padding:18px}.display-grid{grid-template-columns:1fr}.profile-row{align-items:flex-start}}

/* v2.1.6: clearer desktop branding, unchanged compact mobile header */
@media(min-width:1024px){.sidebar{width:270px}.sidebar .brand{gap:12px;padding:0 4px;margin-bottom:28px}.sidebar .brand-icon{width:50px;height:50px;font-size:32px;flex-shrink:0}.sidebar .brand b{font-size:23px;white-space:nowrap}.sidebar .brand small{font-size:1rem}}
.home-vault{display:flex;align-items:flex-start;gap:24px;background:linear-gradient(115deg,#f4e8d7,#f6f0e4 65%,#e9eee4);border:1px solid #e7d8c3;border-radius:18px;padding:30px;margin:0 0 36px}.home-vault-icon{font-size:46px;line-height:1.2;flex-shrink:0}.home-vault h2{font-size:clamp(25px,3vw,34px);margin:8px 0 12px}.home-vault p{color:#756859;font-size:1rem;line-height:1.7;margin:0 0 14px}.home-vault button{margin-top:4px}.future-note button{margin-top:14px}.arc-row .birthday-owner{color:#8b694d;font-size:1rem;font-weight:600;overflow-wrap:anywhere}
@media(max-width:600px){.home-vault{display:block;padding:20px;gap:10px}.home-vault-icon{display:block;font-size:32px;margin-bottom:12px}.home-vault .primary{min-height:44px}}

/* Vault-linked collection actions */
.vault-member-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px;align-items:center}.vault-form-source{background:#eee5d6;border:1px solid #ddcbb4;border-radius:12px;padding:14px;margin-bottom:16px;color:#70573f;font-size:1rem}.wish-vault-meta{font-size:1rem;color:#897562;margin:5px 0}.wish-card .bear-photo img{object-fit:contain;width:100%;height:100%}.wish-card .link-button{margin:6px 0}.vault-member-actions button{min-height:44px}@media(max-width:480px){.vault-member-actions button{width:100%}}

/* v2.1.9 — storybook identity. All artwork is served locally. */
.sidebar .nav{gap:12px;min-height:46px;padding:9px 12px;font-size:1rem;line-height:1.35;align-items:center}.sidebar .nav-icon{width:28px;height:28px;flex:0 0 28px;object-fit:contain;display:grid;place-items:center}.sidebar .brand-icon img{width:100%;height:100%;object-fit:contain}.sidebar .brand-icon{background:#efe3d0}.sidebar .nav-group{letter-spacing:1.3px}.sidebar .brand b{color:#503e31}.sidebar nav{gap:5px}.section-brand{display:flex;align-items:center;gap:10px;min-width:0;color:inherit!important}.section-brand img{width:36px;height:36px;object-fit:contain;flex:0 0 36px}.hero{align-items:center;min-height:0;gap:20px;padding:32px;background:linear-gradient(115deg,#f1e3cd,#f9f0e2 65%,#eee5d3)}.hero-text{width:56%;padding:8px 0;min-width:0}.hero-art{flex:1;min-width:0;max-width:380px;margin:auto;position:static}.hero-crest{width:100%;height:auto;max-width:380px;display:block;mix-blend-mode:multiply;border-radius:12px}.hero h1{font-size:clamp(35px,4vw,56px)}.hero p{font-size:1rem;line-height:1.65}.home-vault{align-items:center}.home-vault-crest{width:clamp(150px,25%,260px);height:auto;flex:none;mix-blend-mode:multiply;border-radius:10px}.home-vault>div{min-width:0}.feature-card .feature-crest{display:block;width:min(100%,180px);height:auto;margin:0 auto 16px;mix-blend-mode:multiply}.future-note .community-crest{width:124px;height:auto;flex:none;mix-blend-mode:multiply}.auth-crest{display:block;width:min(160px,65%);height:auto;margin:12px auto;mix-blend-mode:multiply}.arc-pager select{min-height:44px;border:1px solid #ddcbb4;border-radius:8px;background:#fffdf8;color:var(--brown);padding:6px 10px}.archive-picker{background:#f3ebde;border:1px solid #dfd3c1;border-radius:12px;padding:12px;min-width:0;display:grid;gap:10px}.archive-hint{font-size:1rem;line-height:1.5;color:#70573f}.archive-result{display:flex;align-items:center;text-align:left;gap:10px;width:100%;min-height:60px;background:#fffdf8;color:var(--brown);border:1px solid #dfd3c1;border-radius:9px;padding:8px;margin:0 0 7px}.archive-result:hover{background:#ece4d5}.archive-result img{width:46px;height:46px;object-fit:contain;flex:0 0 46px;border-radius:5px}.archive-result>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.archive-result small{display:block;color:#756859;font-size:1rem;line-height:1.4;margin-top:3px}.archive-result-pages{display:flex;gap:8px;flex-wrap:wrap}.archive-picker .secondary{min-height:44px;white-space:normal}.archive-picker[hidden]{display:none!important}.vault-form-source{overflow-wrap:anywhere}.primary,.secondary{line-height:1.35}.arc-card,.arc-row,.feature-card{min-width:0}.feature-card p{line-height:1.6}.primary:disabled,.secondary:disabled{cursor:default;opacity:.6}.feature-grid{align-items:stretch}.feature-card{display:flex;flex-direction:column;align-items:flex-start}.feature-card button{margin-top:auto}.nav-icon+span{min-width:0;overflow-wrap:normal}.top-right{flex-wrap:wrap}.section-emblem{width:112px;height:auto;mix-blend-mode:multiply;float:right;margin:0 0 12px 16px}.section-emblem+*{min-width:0}.arc-heading:after{content:"";display:block;clear:both}.auth-card h1{font-size:clamp(30px,5vw,44px)}
@media(min-width:1024px){.sidebar .brand{padding:0;gap:9px}.sidebar .brand b{font-size:1.375rem}.sidebar .brand-icon{width:48px;height:48px}.sidebar .nav{padding:10px 12px}.hero-crest{max-width:360px}}
@media(max-width:1023px){.sidebar .nav-icon{flex-basis:28px}.sidebar .nav{font-size:1rem}.sidebar .brand b{white-space:nowrap}.hero{padding:24px;gap:12px}.hero-art{max-width:280px}.sidebar .brand-icon{width:36px;height:36px}.sidebar .brand{min-width:0}.sidebar .brand small{display:none}}
@media(max-width:600px){.hero{display:flex;flex-direction:column;align-items:stretch;padding:22px 18px;gap:18px}.hero-text{width:100%;padding:0}.hero h1{font-size:clamp(30px,8.5vw,40px);letter-spacing:-.8px}.hero p{max-width:none;font-size:1rem}.hero-art{display:flex!important;width:100%;max-width:190px;align-self:center;min-width:0}.hero-crest{width:100%;max-width:190px}.home-vault{display:flex;flex-direction:column;padding:20px;gap:14px}.home-vault-crest{width:160px;align-self:center}.feature-card .feature-crest{width:148px}.future-note{flex-wrap:wrap}.future-note .community-crest{width:96px;margin:auto}.section-brand{gap:7px}.section-brand img{width:30px;height:30px;flex-basis:30px}.section-emblem{width:80px}.primary,.secondary{min-height:44px}.archive-picker{padding:9px}.archive-result{padding:7px;gap:8px}.arc-pager{justify-content:center}.hero .primary{min-height:44px}}

/* v2.1.11 — short birthday placeholders and comfortable mobile select widths. */
.birthday-selectors{grid-template-columns:minmax(100px,1fr) minmax(144px,1.5fr);gap:10px}
.birthday-selectors select{box-sizing:border-box;min-width:0;width:100%;min-height:48px;padding:10px 28px 10px 12px;appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23503e31' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;background-size:16px 16px;font-size:1rem}
@media(max-width:380px){.birthday-selectors{grid-template-columns:minmax(0,1fr)}}

.section-head .section-emblem,.den-intro .section-emblem{float:right;margin:0 0 8px 16px}.den-intro:after,.section-head>div:after{content:"";display:block;clear:both}.arc-heading .section-emblem{max-width:min(24vw,140px)}.section-head .section-emblem,.den-intro .section-emblem{width:min(24vw,140px);height:auto;mix-blend-mode:multiply}#collection-emblem[hidden]{display:none!important}@media(max-width:600px){.section-head .section-emblem,.den-intro .section-emblem,.arc-heading .section-emblem{width:min(34vw,100px);margin:0 0 10px 12px}}

.admin-management .arc-tabs{margin-bottom:0}.admin-management button{min-height:44px}.admin-management h3{margin-top:0}#change-password .auth-check{display:flex;align-items:center;gap:8px}#password-status{margin:0;overflow-wrap:anywhere}@media(max-width:480px){.admin-management .arc-tabs{display:grid;grid-template-columns:1fr}.admin-management .arc-tabs button{text-align:left}}

.safety-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:12px;margin:12px 0}.safety-grid .arc-card{margin:0}.safety-grid h2{margin:0}.safety-grid p{margin:5px 0 0}#safety-tabs{margin:16px 0;flex-wrap:wrap}#safety-content .post-body{white-space:pre-wrap;overflow-wrap:anywhere}#safety-content textarea{width:100%;min-height:90px}#safety-content input[type=checkbox]{width:auto}
.photo-slot .photo-preview-fallback{display:grid;place-items:center;min-height:100px;text-align:center;background:#f6eee2;padding:10px;border-radius:8px;margin:0;overflow-wrap:anywhere}

.arc-browser-back{margin:0 0 14px;min-height:44px}.arc-session-check .app,.arc-session-check .modal-backdrop{visibility:hidden}.arc-session-check body::before{content:"Checking your session…";display:block;padding:24px;text-align:center;color:#604b38}

.arc-session-retry{position:fixed;inset:0;z-index:10000;background:#faf7ef;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:2rem;text-align:center;color:#594331}

/* v2.1.19: accessible, responsive storybook scale. All functional copy >= 1rem. */
:root{font-size:16px;--muted:#756555}
body{font-size:1rem;line-height:1.55;-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,input,select,textarea,small,label{font-size:1rem}
.content{width:100%;max-width:1900px;padding:clamp(18px,2.6vw,48px) clamp(16px,3vw,64px) 32px}
#arc-panel{max-width:none;width:100%}
.sidebar .nav,.sidebar .brand small,.sidebar-bottom,.nav-group,.crumb,.eyebrow,.footer-note{font-size:1rem;color:#766555}
.eyebrow,.nav-group{letter-spacing:.065em;line-height:1.4}
.sidebar .nav{min-height:48px}.sidebar .brand b{font-size:1.4rem}
.sidebar .brand small{line-height:1.3}.sidebar-bottom{padding-top:16px}.sidebar{overflow-y:auto}
.primary,.secondary,.small-btn,.upload-btn,.link-button,.section-head .primary,.photo-slot button{font-size:1rem;min-height:44px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.primary,.secondary,.small-btn,.upload-btn{padding:12px 16px}.link-button{padding:8px 0}
.form-grid label,.switch-row,.form-grid input,.form-grid select,.form-grid textarea,.auth-card input:not([type=hidden]),.arc-form input:not([type=checkbox]),.arc-form textarea,.arc-form select{font-size:1rem;line-height:1.45}
.switch-row{font-weight:500;min-height:44px;align-items:center;gap:12px}.switch-row input,input[type=checkbox]{width:22px;height:22px;flex:none;accent-color:#9e6c46;vertical-align:middle}
#privacy-field>span{display:flex;align-items:center;gap:10px;min-height:44px}#privacy-field input{margin:0 0 0 3px}
#notes-privacy-hint,.gallery-editor p,.archive-hint,.archive-result small,.card-meta,.wish-vault-meta,.wish-location,.card-open-hint,.section-head p,.den-intro p,.hero p,.home-vault p,.feature-card p,.future-note p,.welcome-story p,.stat small,.arc-row p,.arc-row .birthday-owner,.error,.footer-note{font-size:1rem;color:#756555}
.error{color:#a83232}#toast{font-size:1rem;max-width:calc(100% - 24px);right:12px;overflow-wrap:anywhere}
.modal{width:min(820px,100%);max-height:calc(100dvh - 24px)}.modal h2{font-size:1.9rem}.form-grid{gap:18px}.form-grid input:not([type=checkbox]),.form-grid select{min-height:48px}.form-grid input[type=date]{min-width:0;max-width:100%;appearance:auto}
.arc-heading h2,.section-head h2,.den-intro h2{font-size:clamp(1.7rem,2.6vw,2.3rem);line-height:1.2;letter-spacing:-.025em}
.arc-heading .section-emblem,.section-head .section-emblem,.den-intro .section-emblem,.section-emblem{width:clamp(180px,15vw,300px);max-width:none;height:auto;float:right;margin:0 0 12px 24px}
.section-head>div,.den-intro>div{flex:1;min-width:0}.section-head,.den-intro{align-items:center}.section-head .section-brand{display:inline-flex;flex-wrap:nowrap}.section-head .section-brand img{flex:none}
.wishlist-layout .section-head{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:center}.wishlist-layout .section-head>div{width:100%}.wishlist-layout #section-add{justify-self:start}.wishlist-layout .section-emblem{float:right}.wishlist-layout #section-title{margin-top:12px}
.cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:20px}.card-body{padding:20px}.card-body h3{font-size:1.35rem;white-space:normal;overflow-wrap:anywhere}.bear-photo .tag{font-size:1rem}.wish-card .bear-photo{height:auto;aspect-ratio:4/3}.wish-card .card-actions{gap:10px}.wish-card .card-actions .small-btn{padding:12px 8px;font-weight:600}.wish-photo-open{width:100%;height:100%;border:0;padding:0;background:#f6eee4;cursor:zoom-in;display:block;position:absolute;inset:0}.wish-photo-open img{object-fit:contain}.wish-card .card-meta{line-height:1.45}.wish-location{min-height:0}.wish-card .link-button{display:block;text-align:left}.wishlist-layout .cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr))}
.arc-row{padding:18px;min-height:76px}.arc-row img,.arc-thumb{width:80px;height:80px}.arc-row h3{font-size:1.25rem}.arc-card,.arc-filters{padding:24px}.arc-tabs{flex-wrap:wrap}.arc-pager{flex-wrap:wrap}.auth-card{max-width:540px;width:calc(100% - 32px)}
.home-vault-crest{width:clamp(180px,28%,340px)}.feature-card .feature-crest{width:min(100%,260px)}.future-note .community-crest{width:200px}.hero-crest{max-width:460px}.hero-art{max-width:460px}.auth-crest{width:min(240px,75%)}
#stats .stat{min-width:0}.stat small{overflow-wrap:anywhere}.search-wrap input,.toolbar select{font-size:1rem;min-height:48px}.toolbar select{max-width:240px}.archive-result small{line-height:1.45}
@media(min-width:1024px){:root{font-size:1.125rem}.sidebar{width:300px;padding:24px 16px}.sidebar .brand{margin-bottom:18px}.sidebar .nav{font-size:1rem}.sidebar .brand b{white-space:normal}.sidebar .brand-icon{flex-shrink:0}.sidebar .nav-group{padding-top:16px}.content{padding-top:32px}.wishlist-layout .cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr))}}
@media(min-width:1800px){:root{font-size:1.25rem}.sidebar{width:330px}.content{max-width:2100px}.cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr))}.wishlist-layout .cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,370px),1fr))}}
@media(min-width:2600px){:root{font-size:1.375rem}.sidebar{width:360px}.content{max-width:2400px}.cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,370px),1fr))}.wishlist-layout .cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr))}}
@media(max-width:1023px){.sidebar{overflow:visible}.sidebar nav{max-height:calc(100dvh - 80px);overflow:auto}.sidebar .brand b{font-size:1.25rem}.crumb{letter-spacing:normal}.content{padding:20px 4%}.arc-heading .section-emblem,.section-head .section-emblem,.den-intro .section-emblem,.section-emblem{width:clamp(140px,24vw,230px);margin:0 0 12px 14px}.home-vault-crest{width:min(240px,45%)}.primary,.secondary{min-height:44px}}
@media(max-width:600px){.content{padding:18px 4% 24px}.arc-heading .section-emblem,.section-head .section-emblem,.den-intro .section-emblem,.section-emblem{width:min(44vw,180px);margin:0 0 10px 10px}.arc-heading h2,.section-head h2,.den-intro h2{font-size:1.7rem}.section-head,.den-intro{display:flex;flex-direction:column;align-items:stretch}.section-head>div,.den-intro>div{width:100%}.wishlist-layout .section-head{display:grid}.wishlist-layout #section-add{justify-self:stretch}.section-head .section-brand{display:flex;gap:6px}.section-brand img{width:28px;height:28px;flex:0 0 28px}.cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,155px),1fr));gap:12px}.wishlist-layout .cards{grid-template-columns:1fr}.card-body{padding:14px}.wish-card .bear-photo{aspect-ratio:4/3}.arc-card,.arc-filters{padding:16px}.arc-row{padding:12px;gap:12px}.arc-row img,.arc-thumb{width:58px;height:58px}.home-vault-crest{width:min(240px,85%)}.feature-card .feature-crest{width:min(220px,85%)}.future-note .community-crest{width:160px}.hero-art,.hero-crest{max-width:250px}.feature-card{padding:18px}.auth-card{padding:22px}.form-grid{grid-template-columns:minmax(0,1fr)}#modal .modal{padding:18px}.photo-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-slot button{padding:8px}.toolbar select{max-width:none;min-width:0}.stat{padding:12px 8px}#stats .stat small{font-size:1rem}.card-body h3{font-size:1.2rem}.footer-note{margin-top:28px}.topbar{gap:6px}.crumb{flex:1;min-width:0}}
@media(max-width:370px){.arc-heading .section-emblem,.section-head .section-emblem,.den-intro .section-emblem{float:none;display:block;margin:0 auto 12px;width:160px}.cards{grid-template-columns:1fr}#stats{grid-template-columns:1fr}.form-actions{flex-wrap:wrap}.form-actions button{flex:1}.sidebar .brand b{font-size:1.15rem}}
/* Keep navigation reachable even on shorter desktop windows, and balance the wish heading. */
@media(min-width:1024px){
 .sidebar nav{flex:0 0 auto;overflow:visible;max-height:none}.sidebar .brand,.sidebar-bottom{flex-shrink:0}.sidebar-bottom{padding-top:28px}
 .wishlist-layout .section-head{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:clamp(180px,15vw,300px);padding-right:calc(clamp(180px,15vw,300px) + 28px)}
 .wishlist-layout .section-head>div{flex:0 0 auto}.wishlist-layout .section-emblem{position:absolute;right:0;top:0;margin:0;float:none}.wishlist-layout #section-add{align-self:flex-start}
}
@media(min-width:2600px){:root{font-size:24px}.sidebar{width:390px}.content{max-width:2500px}}
@media(min-width:3400px){:root{font-size:27px}.sidebar{width:440px}.content{max-width:3000px}.cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,440px),1fr))}.wishlist-layout .cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,500px),1fr))}.arc-heading .section-emblem,.section-head .section-emblem,.den-intro .section-emblem,.section-emblem{width:360px}.wishlist-layout .section-head{min-height:360px;padding-right:388px}}

/* v2.1.20: compact storybook headers and balanced desktop proportions */
.guest-nav{display:grid;gap:8px;margin:12px 0;padding:0 10px}.guest-nav a{color:#805333;min-height:44px;display:flex;align-items:center;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.crest-heading,.section-head>.crest-heading,.den-intro>.crest-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:clamp(12px,2vw,28px);row-gap:10px;width:100%;min-width:0}
.crest-heading::after,.section-head>.crest-heading::after{display:none}
.crest-heading .section-emblem,.section-head>.crest-heading .section-emblem,.den-intro>.crest-heading .section-emblem{grid-column:2;grid-row:1;float:none;position:static;display:block;margin:0;max-width:100%;width:clamp(160px,13vw,260px);height:auto;justify-self:end}
.crest-heading>h2,.crest-heading>.section-brand,.wishlist-layout .crest-heading #section-title{grid-column:1;grid-row:1;min-width:0;margin:0;overflow-wrap:normal;align-self:center}
.crest-heading h2 .section-brand{display:flex;min-width:0}.crest-heading .section-brand{align-items:center;gap:10px}
.hug-heading .section-emblem,.den-intro>.hug-heading .section-emblem{grid-row:1 / 3}.hug-heading .arc-tabs{grid-column:1;grid-row:2;margin:0;align-self:start}.hug-heading>p,.hug-heading>h3{grid-column:1 / -1;margin:0}.hug-heading>h2{align-self:end}
.den-intro{margin:0 0 16px}.arc-heading.crest-heading{margin:0 0 18px}#birthday-section>.section-head{margin-bottom:18px}
#collection-section:not(.wishlist-layout)>.section-head>.collection-heading{display:none}#collection-section:not(.wishlist-layout)>.section-head{justify-content:flex-end;margin:0 0 16px}
.wishlist-layout .section-head{position:static;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-height:0;padding:0;gap:14px;margin-bottom:18px}.wishlist-layout .section-head>div{flex:0 0 auto}.wishlist-layout #section-add{align-self:flex-start}
.switch-row span,#privacy-field span,.form-grid label,#notes-privacy-hint{font-size:1rem}
@media(min-width:1024px){
 :root{font-size:16px}.sidebar{width:260px;padding:22px 14px}.sidebar .brand{margin-bottom:16px;gap:10px}.sidebar .brand b{font-size:1.35rem;line-height:1.2}.sidebar .brand small{font-size:.94rem}.sidebar .nav{font-size:1rem;min-height:42px;padding:8px 10px;font-weight:600;gap:10px}.sidebar .nav-icon{width:28px;height:28px;flex:0 0 28px}.sidebar nav{gap:3px}.sidebar .nav-group{font-size:.94rem;font-weight:600;letter-spacing:.045em;padding:14px 10px 5px}.sidebar-bottom{font-size:.94rem}.content{max-width:1600px;padding:26px clamp(24px,3vw,56px) 32px}.hero{justify-content:space-between;gap:clamp(24px,4vw,64px)}.hero-text{width:auto;flex:1;max-width:720px}.hero p{max-width:44ch}.hero-art{flex:0 1 40%;margin:0;max-width:420px}.hero-crest{width:100%}.welcome-story p{max-width:72ch}.primary,.secondary,.small-btn,.upload-btn{padding:10px 14px}.wishlist-layout .section-head{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.wishlist-layout #section-add{justify-self:start}.cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}.wishlist-layout .cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
}
@media(min-width:1800px){:root{font-size:18px}.sidebar{width:280px}.content{max-width:1800px}.wishlist-layout .cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}}
@media(min-width:2600px){:root{font-size:21px}.sidebar{width:330px}.content{max-width:2150px}.wishlist-layout .cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr))}}
@media(min-width:3400px){:root{font-size:23px}.sidebar{width:370px}.content{max-width:2550px}.wishlist-layout .cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,430px),1fr))}}
@media(max-width:1023px){.crest-heading .section-emblem,.section-head>.crest-heading .section-emblem,.den-intro>.crest-heading .section-emblem{width:clamp(140px,24vw,230px)}}
@media(max-width:600px){.content{padding-top:16px}.crest-heading,.section-head>.crest-heading,.den-intro>.crest-heading{column-gap:10px}.crest-heading .section-emblem,.section-head>.crest-heading .section-emblem,.den-intro>.crest-heading .section-emblem{width:min(40vw,170px)}.crest-heading h2,.den-intro .crest-heading h2,.section-head .crest-heading h2{font-size:clamp(1.5rem,6.5vw,1.7rem)}.crest-heading .section-brand{gap:6px}.crest-heading .section-brand img{width:24px;height:24px;flex-basis:24px}.hug-heading .arc-tabs{gap:8px}.hug-heading .arc-tabs button{white-space:normal}.wishlist-layout #section-add{width:100%;align-self:stretch}#collection-section:not(.wishlist-layout)>.section-head>.primary{width:100%}}
@media(max-width:370px){.crest-heading .section-emblem,.section-head>.crest-heading .section-emblem,.den-intro>.crest-heading .section-emblem{width:min(37vw,140px)}.crest-heading h2,.den-intro .crest-heading h2,.section-head .crest-heading h2{font-size:1.45rem}.crest-heading .section-brand img{width:22px;height:22px;flex-basis:22px}}
#collection-section:not(.wishlist-layout)>.section-head:has(#section-add[hidden]){display:none}

/* v2.1.21: desktop-only midpoint with generous navigation rhythm. */
@media(min-width:1024px){
 :root{font-size:17px}.sidebar{width:280px;padding:26px 17px}.sidebar .brand{margin-bottom:22px}.sidebar nav{gap:6px}.sidebar .nav{font-size:1rem;min-height:48px;padding:11px 12px;gap:12px}.sidebar .nav-icon{width:30px;height:30px;flex-basis:30px}.sidebar .nav-group{font-size:.94rem;font-weight:500;letter-spacing:.055em;padding:18px 12px 7px}.sidebar .nav-group:first-child{padding-top:0}.sidebar-bottom{padding-top:26px}.content{max-width:1750px}.hero{gap:clamp(16px,2.5vw,40px)}.hero-text{max-width:760px}.hero-art{flex:0 1 42%;max-width:460px}
}
@media(min-width:1800px){:root{font-size:19px}.sidebar{width:305px}.content{max-width:1950px}.sidebar .nav{min-height:52px}}
@media(min-width:2600px){:root{font-size:22px}.sidebar{width:350px}.content{max-width:2325px}.sidebar .nav{min-height:56px}}
@media(min-width:3400px){:root{font-size:25px}.sidebar{width:405px}.content{max-width:2775px}.sidebar .nav{min-height:62px}}
.account-deletion{border-color:#dcb5ad;background:#fffaf7}.account-deletion h3{color:#873c35}.account-deletion p{line-height:1.6}.delete-account-button{background:#a53636;color:#fff;border:1px solid #94302e;border-radius:9px;min-height:44px;padding:12px 16px;font-size:1rem;font-weight:700;white-space:normal;max-width:100%}.delete-account-button:hover{background:#872b2b}.delete-account-button:disabled{opacity:.65;cursor:wait}#delete-account-warning,#delete-account-confirm{margin-top:18px;padding:16px;border:1px solid #e4c6bf;border-radius:12px;background:#fffdf8}.account-deletion .arc-tabs{flex-wrap:wrap}#delete-account-status{margin:0;overflow-wrap:anywhere}

/* v2.1.22: compact homepage; no duplicate intro labels or member hero CTA. */
#home-hero h1{margin-top:0;margin-bottom:.55em}
#home-hero .hero-text p{margin-top:0;margin-bottom:0}
#home-hero #hero-add:not([hidden]){margin-top:16px}
#home-panel{margin-top:24px}
#home-panel .welcome-story{padding-top:0;margin-bottom:30px}
#home-panel .welcome-story h2,#home-panel .feature-heading h2,#home-panel .home-vault h2{margin-top:0}
#home-panel .home-vault{margin-bottom:26px}
#home-panel .feature-heading{margin-bottom:18px}
@media(max-width:600px){
 #home-hero{gap:14px;padding-top:18px;padding-bottom:18px}
 #home-panel{margin-top:20px}
 #home-panel .welcome-story{margin-bottom:24px}
 #home-panel .home-vault{gap:12px;margin-bottom:22px}
 #home-panel .feature-heading{margin-bottom:16px}
}


/* v2.1.23: continuous alternating homepage cards, shared across all widths. */
.home-section.home-cream{background:#f2e7d5;border:1px solid #e5d5bd}
.home-section.home-sage{background:#e8eee2;border:1px solid #d5dfcb}
#home-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:center;gap:clamp(16px,2.4vw,38px);border-radius:20px;min-height:0;padding:clamp(20px,2.5vw,40px)}
#home-hero[hidden]{display:none!important}
#home-hero .hero-text{width:auto;max-width:100%;padding:0}
#home-hero .hero-art{width:100%;min-width:0;max-width:420px;justify-self:center;margin:0}
#home-hero .hero-crest{width:100%;height:auto}
#home-hero .welcome-story{grid-column:1/-1;width:100%;max-width:none;margin:0;padding:clamp(12px,1.6vw,24px) 0 0;border-top:1px solid #e0cfb6;text-align:center}
#home-hero .welcome-story h2{margin:0 0 .5em}
#home-hero .welcome-story p{max-width:75ch;margin:.6em auto 0;line-height:1.7}
#home-panel{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(16px,1.8vw,30px);margin-top:clamp(16px,1.8vw,30px)}
#home-panel .home-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:center;gap:clamp(20px,3vw,48px);padding:clamp(20px,2.5vw,40px);margin:0;border-radius:20px;min-width:0}
#home-panel .home-feature-art{display:block;width:100%;max-width:300px;height:auto;margin:0;justify-self:center;mix-blend-mode:multiply;border-radius:10px}
#home-panel .home-feature-copy{min-width:0;width:100%;max-width:78ch}
#home-panel .home-feature-copy h2{font-size:clamp(1.5rem,2.5vw,2rem);line-height:1.2;margin:0 0 .55em}
#home-panel .home-feature-copy p{font-size:1rem;line-height:1.7;margin:0 0 .75em;color:#756555}
#home-panel .home-feature-copy button{margin:.25em 0 0;white-space:normal;max-width:100%;min-height:44px}
@media(max-width:768px){
 #home-hero,#home-panel .home-feature{grid-template-columns:minmax(0,1fr);gap:16px;padding:20px 18px}
 #home-hero .hero-art{max-width:250px}
 #home-hero .welcome-story{padding-top:18px}
 #home-hero .welcome-story p{line-height:1.7}
 #home-panel .home-feature-art{width:min(240px,85%)}
 #home-panel .home-feature-copy h2{font-size:1.5rem}
 #home-panel .home-feature-copy button{margin-top:6px}
}

/* Transparent crest artwork: never add a rectangular matte or blend with the card. */
.hero-crest,.home-vault-crest,.feature-card .feature-crest,.future-note .community-crest,.auth-crest,.section-emblem,#home-panel .home-feature-art{background:transparent;mix-blend-mode:normal;border-radius:0;border:0;box-shadow:none}


/* v2.1.25: calmer desktop proportions and a single aligned mobile summary. */
.stat-label-short{display:none}
@media(min-width:1024px){
 .sidebar .brand{margin-bottom:clamp(38px,3vw,52px)}
 .sidebar .nav{font-weight:400;color:#766555}
 .sidebar .nav.active{font-weight:500;color:#785139}
}
/* Keep compact laptop layouts comfortable; narrow the wide desktop column. */
@media(min-width:1280px){.content{width:82%;max-width:1420px}}
@media(min-width:1800px){.content{max-width:1580px}}
@media(min-width:2600px){.content{max-width:1880px}}
@media(min-width:3400px){.content{max-width:2240px}}
@media(max-width:600px){
 #stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;align-items:stretch;background:#fffdf8;border:1px solid var(--line);border-radius:15px;overflow:hidden;margin:0 0 24px;box-shadow:0 3px 12px #5d3f2105}
 #stats .stat{display:block;text-align:center;background:transparent;border:0;border-radius:0;box-shadow:none;padding:15px 4px;min-width:0}
 #stats .stat+.stat{border-inline-start:1px solid var(--line)}
 #stats .stat-copy{display:grid;grid-template-rows:auto 1fr;gap:7px;align-items:start;min-width:0}
 #stats .stat b{display:block;font-size:1.6rem;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 #stats .stat small{font-size:1rem;line-height:1.25;color:#766555;margin:0;overflow-wrap:normal}
 #stats .stat-label-full{display:none}
 #stats .stat-label-short{display:inline}
}

/* Sharing dialog only; preserve the v2.1.25 design baseline. */
.share-dialog{box-sizing:border-box;width:min(94vw,38rem);max-height:90vh;overflow:auto;border:1px solid #d8c9b3;border-radius:18px;background:#faf7ef;color:#594331;padding:1.25rem;box-shadow:0 18px 70px #44332255}.share-dialog::backdrop{background:#39291d88}.share-header{display:flex;align-items:center;justify-content:space-between;gap:1rem}.share-dialog input{width:100%;box-sizing:border-box;margin:.5rem 0 1rem}.share-actions{display:flex;flex-wrap:wrap;gap:.5rem}.share-actions a{display:inline-flex;align-items:center;text-decoration:none}

/* Uniform checkbox rows in the personal bear editor. */
#record-form .form-grid .switch-row{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:44px;font-size:1rem;font-weight:500;line-height:1.45}
#record-form .form-grid .switch-row>input[type=checkbox]{flex:0 0 22px;width:22px;height:22px;margin:0;padding:0;align-self:center}
#record-form .form-grid .switch-row>span{font:inherit;min-width:0}
#record-form #photo-help[hidden],#record-form #legacy-condition[hidden]{display:none}
