:root{--espresso:#4b241b;--brown:#6b3727;--brown2:#8b5137;--cream:#f7e8cf;--paper:#f4dfbc;--ink:#2f201a;--muted:#7a675d;--red:#d95c5c;--green:#4f9f4c;--blue:#3b84c6;--gold:#d39a24;--line:#dcc4a6;--white:#fff;--shadow:0 16px 40px rgba(67,37,25,.16);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#f6efe5;color:var(--ink)}body{overflow-x:hidden}button,input,select,textarea{font:inherit}.hidden{display:none!important}.k100-shell{min-height:100vh}.k100-toast{position:fixed;top:18px;left:50%;transform:translateX(-50%) translateY(-20px);z-index:9999;background:#2d211c;color:#fff;padding:11px 16px;border-radius:999px;opacity:0;pointer-events:none;transition:.25s;box-shadow:var(--shadow)}.k100-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.k100-login{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 16% 14%,rgba(255,255,255,.4),transparent 25%),linear-gradient(135deg,#4b241b 0,#8a5137 35%,#f0d7b4 100%);position:relative;overflow:hidden}.k100-login:before,.k100-login:after{content:"";position:absolute;width:280px;height:280px;border-radius:50%;background:radial-gradient(ellipse at center,#6f3827 0 20%,#321811 22% 30%,transparent 32%);opacity:.15;transform:rotate(25deg)}.k100-login:before{left:-70px;bottom:-90px}.k100-login:after{right:-90px;top:-110px}.login-card{width:min(440px,94vw);background:linear-gradient(180deg,rgba(255,249,238,.98),rgba(244,223,188,.98));border:1px solid rgba(91,47,34,.22);border-radius:30px;padding:28px;box-shadow:0 28px 80px rgba(41,21,15,.35);position:relative}.brand-script{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-weight:700;color:#5a261d;letter-spacing:-1px}.login-card .brand-script{font-size:36px;text-align:center}.brand-pair{text-align:center;color:#70412e;margin-top:2px}.heart{color:#d83e4f}.login-art{margin:18px auto 10px;width:180px;height:115px;position:relative}.login-art .cup{position:absolute;left:20px;right:20px;bottom:0;height:72px;background:#f8e8d4;border-radius:10px 10px 44px 44px;border:3px solid #7d4a36}.login-art .cup:after{content:"";position:absolute;right:-34px;top:16px;width:42px;height:36px;border:8px solid #f8e8d4;border-left:0;border-radius:0 30px 30px 0;filter:drop-shadow(2px 0 #7d4a36)}.login-art .coffee{position:absolute;left:31px;right:31px;bottom:58px;height:15px;border-radius:50%;background:#6b3524}.login-art .steam{position:absolute;left:55px;top:0;font-size:44px;color:#fff7eb;letter-spacing:12px;opacity:.9}.login-card label{display:block;font-weight:700;font-size:13px;margin:13px 0 6px}.login-card input,.login-card select{width:100%;border:1px solid #d8c1a6;background:#fffaf3;padding:13px 14px;border-radius:12px;outline:none}.login-card input:focus,.login-card select:focus{border-color:#8f5a3e;box-shadow:0 0 0 3px rgba(143,90,62,.12)}.primary{border:0;background:linear-gradient(180deg,#8b4e31,#5a2d20);color:white;padding:13px 18px;border-radius:12px;font-weight:800;cursor:pointer;box-shadow:0 8px 18px rgba(91,47,34,.22)}.primary.green{background:linear-gradient(180deg,#62b55e,#398d42)}.secondary{border:1px solid var(--line);background:#fff8ef;color:#5c3325;padding:12px 15px;border-radius:12px;font-weight:700;cursor:pointer}.danger{border:1px solid #e9b6b6;background:#fff2f2;color:#b13333;padding:10px 14px;border-radius:10px;font-weight:700;cursor:pointer}.login-card .primary{width:100%;margin-top:18px}.login-foot{text-align:center;color:#7a4a39;font-family:Georgia,serif;font-style:italic;margin-top:20px}.error-msg{color:#b53232;font-size:13px;min-height:20px;margin-top:10px}
.app-layout{min-height:100vh;display:grid;grid-template-columns:230px 1fr;background:#f8f3ec}.sidebar{background:linear-gradient(180deg,#5a2a1d,#743d29);color:white;padding:22px 14px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.side-brand{padding:8px 10px 20px;border-bottom:1px solid rgba(255,255,255,.15)}.side-brand .brand-script{color:white;font-size:27px}.side-brand small{display:block;margin-top:5px;color:#f3d8c5}.side-nav{display:grid;gap:7px;margin-top:18px}.nav-btn{border:0;background:transparent;color:#fff;display:flex;gap:11px;align-items:center;padding:11px 12px;border-radius:10px;text-align:left;cursor:pointer}.nav-btn.active,.nav-btn:hover{background:#fff3e5;color:#5c2a1d}.nav-btn .ico{width:22px;text-align:center}.side-footer{margin-top:auto;color:#ead1c1;font-size:12px;padding:14px 10px}.main{min-width:0}.topbar{height:68px;background:#fffdf9;border-bottom:1px solid #e6d8c8;display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:20}.topbar-title{font-weight:900;color:#4f2a20}.user-chip{display:flex;align-items:center;gap:10px}.avatar-mini{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#f1c4a3,#8a4a33);display:grid;place-items:center;color:#fff;font-weight:900}.icon-button{border:1px solid #e1d4c6;background:#fff;border-radius:10px;padding:9px 11px;cursor:pointer}.content{padding:22px;max-width:1260px;margin:auto}.screen{display:none}.screen.active{display:block}.hero-dashboard{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px}.paper-panel{background:linear-gradient(rgba(249,232,198,.94),rgba(244,220,181,.94)),url('board.svg') center/cover;border:1px solid #d3b38b;border-radius:24px;box-shadow:var(--shadow);overflow:hidden;position:relative}.board-panel{padding:22px}.board-head{text-align:center}.board-head .brand-script{font-size:38px}.pairline{font-family:Georgia,serif;font-size:18px;color:#653827}.quote{font-family:Georgia,serif;font-style:italic;color:#5b3d2f;text-align:center;margin:12px auto 16px;max-width:480px}.counter-strip{display:flex;justify-content:center;gap:28px;align-items:center;background:rgba(255,248,233,.8);border:1px solid rgba(131,84,50,.22);border-radius:16px;padding:12px;margin:0 auto 18px;max-width:520px}.counter-strip b{font-size:30px;color:#5a2b20}.counter-strip span{font-size:12px;color:#7b6254;display:block}.board-wrap{position:relative;min-height:520px}.board-svg{width:100%;height:auto;display:block}.board-path-line{fill:none;stroke:#c09a72;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;opacity:.55}.board-cell{stroke:#7b5a43;stroke-width:2;filter:drop-shadow(0 2px 2px rgba(0,0,0,.15))}.board-cell.normal{fill:#fff8e9}.board-cell.m10{fill:#5fa650}.board-cell.m20{fill:#e0a52d}.board-cell.m30{fill:#468cc7}.board-cell.done{fill:#d9b68f}.board-num{font-size:10px;font-weight:900;text-anchor:middle;dominant-baseline:middle;fill:#493226}.board-cell.m10+.board-num,.board-cell.m20+.board-num,.board-cell.m30+.board-num{fill:white}.goal-house{fill:#fff3df;stroke:#5f3425;stroke-width:3}.goal-roof{fill:#ba3f31;stroke:#5f3425;stroke-width:3}.figurines{transition:transform .65s cubic-bezier(.2,.9,.3,1)}.person-head{fill:#f5c59b;stroke:#5b2d21;stroke-width:2}.person-body.a{fill:#4f88c8}.person-body.b{fill:#c85454}.person-hair.a{fill:#3b241d}.person-hair.b{fill:#9d4c2e}.board-caption{text-align:center;font-family:Georgia,serif;font-style:italic;color:#7b3c2b;font-size:18px;margin-top:-10px}.aside-card{background:#fff;border:1px solid #e4d5c3;border-radius:22px;box-shadow:var(--shadow);padding:18px}.aside-stack{display:grid;gap:16px}.last-photo{height:190px;background:linear-gradient(135deg,#efd5b2,#fff8ed);border-radius:16px;overflow:hidden;display:grid;place-items:center;color:#85563f}.last-photo img{width:100%;height:100%;object-fit:cover}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.stat{background:#fbf4ea;border:1px solid #eadcca;border-radius:14px;padding:12px}.stat b{display:block;font-size:22px;color:#673425}.stat span{font-size:12px;color:#7f7068}.milestone{padding:12px;border-radius:14px;background:linear-gradient(135deg,#fff2d6,#f7d18d);border:1px solid #deb56f}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-title h2{margin:0;font-size:25px}.section-title p{margin:2px 0 0;color:var(--muted)}
.form-card{background:#fff;border:1px solid #e1d4c7;border-radius:20px;padding:20px;box-shadow:var(--shadow);max-width:880px;margin:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-card label{display:block;font-weight:800;font-size:13px;color:#513227}.form-card input,.form-card select,.form-card textarea{width:100%;margin-top:6px;border:1px solid #d7c9bc;border-radius:11px;padding:12px;background:#fff;outline:none}.form-card textarea{resize:vertical;min-height:110px}.span2{grid-column:1/-1}.who-row{display:flex;gap:10px}.who-btn{flex:1;border:1px solid #dec9b7;background:#fff7ee;border-radius:11px;padding:11px;cursor:pointer;font-weight:800}.who-btn.active{background:#f0d4c6;border-color:#b87a58}.map-mini{height:260px;border-radius:14px;overflow:hidden;border:1px solid #d7c9bc;margin-top:8px}.photo-drop{border:2px dashed #ceb99f;border-radius:14px;padding:18px;text-align:center;background:#fcf8f2}.photo-preview{width:130px;height:100px;border-radius:12px;object-fit:cover;margin-top:10px}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.helper{font-size:12px;color:var(--muted);margin-top:5px}.offline-banner{display:none;background:#8c4f2f;color:white;text-align:center;padding:8px;font-size:13px}.offline .offline-banner{display:block}
.map-layout{display:grid;grid-template-columns:1fr 350px;gap:16px}.big-map{height:calc(100vh - 150px);min-height:520px;border-radius:20px;overflow:hidden;border:1px solid #d7c9bc;box-shadow:var(--shadow)}.map-list{max-height:calc(100vh - 150px);overflow:auto}.visit-card{background:#fff;border:1px solid #e3d7ca;border-radius:16px;padding:12px;margin-bottom:10px;display:grid;grid-template-columns:78px 1fr;gap:12px;cursor:pointer}.visit-card img,.visit-thumb{width:78px;height:78px;border-radius:11px;object-fit:cover;background:#f0e2d3}.visit-card h3{margin:0 0 3px;font-size:16px}.visit-card .meta{font-size:12px;color:var(--muted)}.visit-card .memory{font-size:13px;margin-top:6px}.marker-num{width:34px;height:34px;border-radius:50% 50% 50% 0;background:#d93c3c;color:#fff;display:grid;place-items:center;transform:rotate(-45deg);border:2px solid white;box-shadow:0 3px 8px #0003}.marker-num span{transform:rotate(45deg);font-weight:900;font-size:12px}.history-toolbar{display:flex;gap:10px;margin-bottom:14px}.history-toolbar input{flex:1;border:1px solid #d9ccbf;border-radius:12px;padding:12px}.history-list{display:grid;gap:12px}.history-row{background:white;border:1px solid #e3d7ca;border-radius:16px;padding:12px;display:grid;grid-template-columns:96px 1fr auto;gap:14px;align-items:center}.history-row img{width:96px;height:82px;object-fit:cover;border-radius:12px;background:#efe3d5}.history-row h3{margin:0 0 4px}.history-row .sub{font-size:13px;color:var(--muted)}.history-row .note{margin-top:5px;font-size:13px}.arrow{font-size:25px;color:#876250}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.gallery-item{aspect-ratio:1/1;border-radius:14px;overflow:hidden;background:#eadaca;position:relative;cursor:pointer}.gallery-item img{width:100%;height:100%;object-fit:cover;transition:.25s}.gallery-item:hover img{transform:scale(1.035)}.gallery-badge{position:absolute;left:8px;bottom:8px;background:#2b1c16cc;color:white;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-card{background:#fff;border:1px solid #e3d7ca;border-radius:18px;padding:18px}.settings-card h3{margin-top:0}.button-row{display:flex;gap:10px;flex-wrap:wrap}.modal{position:fixed;inset:0;background:rgba(31,20,16,.58);display:none;z-index:1000;align-items:center;justify-content:center;padding:18px}.modal.open{display:flex}.modal-card{width:min(760px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:22px;box-shadow:0 28px 90px #0006}.modal-hero{height:280px;background:#ead8c3;position:relative}.modal-hero img{width:100%;height:100%;object-fit:cover}.modal-body{padding:20px}.modal-close{position:absolute;right:14px;top:14px;z-index:2;border:0;background:#fff;border-radius:50%;width:38px;height:38px;cursor:pointer;font-size:20px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.detail-map{height:240px;border-radius:14px;overflow:hidden}.milestone-pop{position:fixed;inset:0;background:rgba(62,31,22,.72);display:none;z-index:2000;place-items:center;padding:20px}.milestone-pop.show{display:grid}.milestone-card{background:linear-gradient(180deg,#fff8e8,#f5d599);border-radius:28px;padding:28px;text-align:center;width:min(480px,92vw);box-shadow:0 30px 100px #0008}.milestone-card .big{font-size:54px}.milestone-card h2{font-family:Georgia,serif;color:#713623}
.mobile-nav{display:none}.leaflet-container{font-family:inherit}.leaflet-popup-content-wrapper{border-radius:14px}.map-popup img{width:180px;height:110px;object-fit:cover;border-radius:9px;margin-top:6px}.map-popup h4{margin:0 0 4px}.map-popup .primary{padding:8px 10px;margin-top:8px;width:100%}
@media(max-width:980px){.app-layout{grid-template-columns:1fr}.sidebar{display:none}.topbar{top:0}.content{padding:16px 16px 92px}.hero-dashboard{grid-template-columns:1fr}.map-layout{grid-template-columns:1fr}.map-list{max-height:none}.big-map{height:52vh;min-height:360px}.mobile-nav{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-top:1px solid #e2d4c5;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));box-shadow:0 -8px 24px rgba(71,40,28,.08)}.mobile-nav button{border:0;background:transparent;font-size:11px;color:#5d4a40;padding:4px 2px}.mobile-nav button span{display:block;font-size:19px;margin-bottom:2px}.mobile-nav button.active{color:#7a351f;font-weight:900}.board-wrap{min-height:auto}.gallery{grid-template-columns:repeat(3,1fr)}.settings-grid{grid-template-columns:1fr}}
@media(max-width:640px){.topbar{height:58px;padding:0 12px}.topbar-title{font-size:14px}.content{padding:12px 10px 86px}.board-panel{padding:12px}.board-head .brand-script{font-size:30px}.pairline{font-size:15px}.quote{font-size:14px}.counter-strip{gap:18px;padding:9px}.counter-strip b{font-size:24px}.aside-card{padding:14px}.form-card{padding:14px;border-radius:16px}.form-grid{grid-template-columns:1fr}.span2{grid-column:auto}.who-row{flex-direction:column}.form-actions{flex-direction:column}.form-actions>*{width:100%}.big-map{height:50vh;min-height:320px;border-radius:14px}.history-row{grid-template-columns:76px 1fr}.history-row img{width:76px;height:70px}.history-row .arrow{display:none}.gallery{grid-template-columns:repeat(2,1fr)}.detail-grid{grid-template-columns:1fr}.modal-hero{height:220px}.section-title h2{font-size:21px}.stats-grid{grid-template-columns:1fr 1fr}.login-card{padding:22px 18px}.login-card .brand-script{font-size:31px}}

/* === 2.1 visual redesign based on approved concept === */
body{background:#f7f0e6}
.hero-banner{height:132px;background:url('hero-banner.jpg') center/cover no-repeat;border-bottom:1px solid #d3b38b;box-shadow:0 4px 18px rgba(67,37,25,.12)}
.app-layout{min-height:calc(100vh - 132px);grid-template-columns:208px 1fr;background:#fbf7f1}
.sidebar{height:calc(100vh - 132px);top:0;background:linear-gradient(180deg,#5c2619 0%,#743820 58%,#6a2e1c 100%);box-shadow:5px 0 22px rgba(58,29,18,.13)}
.side-brand .brand-script{font-size:30px}.side-brand small{font-size:14px}.side-cup{display:block;font-size:34px;margin-bottom:8px}
.topbar{height:58px;background:#fffdf8}.topbar-title:before{content:'🏠';margin-right:10px;font-size:24px}.content{max-width:1360px;padding:14px 18px 30px}
.paper-panel{background-image:linear-gradient(rgba(255,244,218,.18),rgba(235,198,139,.14)),url('parchment.jpg');background-size:cover;border:1px solid #c99c64;border-radius:14px}
.board-panel{padding:14px 16px 12px}.board-head.compact{position:relative;min-height:84px}.board-head.compact .counter-strip{max-width:430px;margin:0 auto 8px;background:rgba(255,249,234,.9);box-shadow:0 3px 10px rgba(84,45,26,.08)}
.paper-note{position:absolute;right:8px;top:2px;transform:rotate(-2deg);background:#f8e8c6;border:1px solid #d3ae78;padding:10px 14px;font-family:Georgia,serif;font-style:italic;color:#5b301f;box-shadow:0 5px 13px rgba(80,42,23,.12);border-radius:4px;line-height:1.35}
.board-wrap{min-height:0}.board-svg{border-radius:10px;overflow:visible}.board-path-line{stroke:#c8a06b;stroke-width:7;opacity:.6}.board-cell{stroke:#6f4c35;stroke-width:2.1;filter:drop-shadow(0 2px 2px rgba(0,0,0,.22))}.board-cell.normal{fill:#fffaf0}.board-cell.done{fill:#ecd2a2}.board-cell.milestone-cell{stroke-width:3}.board-cell.m90,.board-cell.m30{fill:#e8a81d}.board-cell.m70,.board-cell.m10{fill:#5aa63b}.board-cell.m50{fill:#3a90cb}.board-num.milestone-num{font-size:13px;fill:#fff;paint-order:stroke;stroke:#55351f;stroke-width:1.3}.goal-house{fill:#fff8e9;stroke:#5d3021;stroke-width:3}.goal-roof{fill:#c33f2f;stroke:#5d3021;stroke-width:3}.bean-decor{fill:#5d2f20}.figurines{filter:drop-shadow(0 5px 4px rgba(55,28,17,.28));transition:transform .7s cubic-bezier(.2,.8,.2,1)}.avatar-heart{color:#ef4053}.avatar-pair{display:flex;align-items:flex-end;justify-content:center;gap:-8px;position:relative}.avatar-pair .avatar-svg+ .avatar-svg{margin-left:-20px}.avatar-pair .avatar-heart{position:absolute;top:2px;left:50%;transform:translateX(-50%);font-size:28px;text-shadow:0 2px 4px #fff}.avatar-mini{width:44px;height:44px;background:transparent;overflow:visible}.avatar-mini svg{width:44px;height:44px}.user-chip span{font-weight:700;color:#5a3123}
.aside-card{border-radius:14px;padding:14px}.last-photo{height:170px;border-radius:12px}.stats-grid{gap:8px}.stat{border-radius:10px;background:#fffaf2}.milestone{border-radius:10px}
.k100-login{background:linear-gradient(rgba(63,27,18,.25),rgba(63,27,18,.25)),url('hero-banner.jpg') center top/auto 150px no-repeat,linear-gradient(180deg,#ead0aa,#f6e7ce);padding-top:135px}.login-card{width:min(390px,92vw);background:linear-gradient(rgba(255,245,224,.95),rgba(239,205,153,.96)),url('parchment.jpg') center/cover;border-radius:24px;padding:24px 24px 28px;border-color:#b98753}.login-avatar-art{height:230px;display:grid;place-items:center;margin:-4px 0 4px}.login-avatar-art .avatar-pair{transform:scale(1.18)}.login-card .brand-script{font-size:39px}.login-foot{font-size:22px}.login-card:after{content:'☕   ☕   ☕';display:block;text-align:center;margin-top:16px;font-size:30px;letter-spacing:12px;filter:sepia(1) saturate(.7)}
.avatar-settings-card{text-align:center}.avatar-settings-preview{height:150px;display:grid;place-items:center}.avatar-editor{max-width:760px;background:linear-gradient(180deg,#fffdf8,#f8ead5)}.avatar-editor-grid{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:start}.avatar-big-preview{min-height:250px;border-radius:18px;background:linear-gradient(180deg,#fff4df,#f1d4aa);display:grid;place-items:center;border:1px solid #dec19b}.avatar-label{display:block;font-weight:800;margin:14px 0 7px;color:#5b2d20}.avatar-choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.avatar-choice{border:1px solid #d6baa0;background:#fffaf3;border-radius:10px;padding:9px;cursor:pointer}.avatar-choice.active{background:#6b3424;color:white;border-color:#6b3424}.swatches{display:flex;gap:9px;flex-wrap:wrap}.swatch{width:38px;height:38px;border-radius:50%;border:3px solid white;box-shadow:0 0 0 1px #b99a80;background:var(--sw);cursor:pointer}.swatch:focus{outline:3px solid #6a3a28}
.form-card,.settings-card,.history-row,.visit-card{box-shadow:0 8px 22px rgba(76,42,26,.07)}
@media(max-width:1100px){.paper-note{display:none}.hero-dashboard{grid-template-columns:minmax(0,1fr) 330px}.content{padding:12px}}
@media(max-width:980px){.hero-banner{height:96px;background-position:center}.app-layout{min-height:calc(100vh - 96px)}.topbar{position:sticky}.paper-panel{border-radius:16px}.hero-dashboard{grid-template-columns:1fr}.sidebar{display:none}.content{padding-bottom:92px}.avatar-editor-grid{grid-template-columns:1fr}.avatar-big-preview{min-height:210px}}
@media(max-width:640px){.hero-banner{height:72px;background-size:auto 72px}.topbar-title:before{font-size:18px}.paper-panel{background-position:center}.board-panel{padding:8px}.board-head.compact{min-height:72px}.counter-strip{max-width:330px!important}.counter-strip b{font-size:23px}.board-caption{margin-top:-4px}.login-avatar-art{height:190px}.login-avatar-art .avatar-pair{transform:scale(.98)}.login-card .brand-script{font-size:34px}.avatar-editor .modal-body{padding:15px}.avatar-big-preview{min-height:190px}.swatch{width:34px;height:34px}}

/* === 2.1.2 sidebar + avatar usability refinement === */
@media(min-width:981px){
  .app-layout{grid-template-columns:208px minmax(0,1fr)}
  .sidebar{padding:14px 14px 12px;overflow:hidden}
  .side-brand{padding:2px 8px 16px;border-bottom:1px solid rgba(255,255,255,.14)}
  .side-brand .brand-script{font-size:22px!important;line-height:1.08;white-space:nowrap;letter-spacing:-.6px}
  .side-brand small{font-size:13px!important;margin-top:7px;color:#f6ded0}
  .side-nav{gap:3px;margin-top:14px}
  .nav-btn{min-height:42px;padding:9px 11px;border-radius:7px;gap:10px;font-size:14px;font-weight:500}
  .nav-btn .ico{width:22px;font-size:18px;line-height:1;color:#fff}
  .nav-btn.active .ico,.nav-btn:hover .ico{color:#6b2f20}
  .nav-btn.active,.nav-btn:hover{background:#fff4e7;color:#5b2b1f;font-weight:700}
  .nav-label{white-space:nowrap}
  .side-footer{padding:8px 8px 6px;text-align:center;color:#ead4c6;font-size:11px;line-height:1.35}
  .side-footer:before{content:"";display:block;width:92px;height:70px;margin:0 auto 7px;background:url('coffee-mark.svg') center/contain no-repeat;filter:drop-shadow(0 5px 8px rgba(20,8,4,.26))}
  .side-cup{display:none!important}
  .avatar-mini{cursor:pointer;transition:transform .18s ease}
  .avatar-mini:hover{transform:scale(1.08)}
}
.stats-page-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat-big{text-align:center;background:linear-gradient(180deg,#fffdf9,#fbf1e5)}.stat-big span{display:block;color:var(--muted);font-size:13px}.stat-big b{display:block;color:#6b3020;font-size:34px;margin-top:6px}.span-stat{grid-column:span 2}.invite-bars{display:grid;gap:10px}.invite-bars>div{display:flex;justify-content:space-between;align-items:center;background:#fbf4ea;border:1px solid #eadcca;padding:11px 13px;border-radius:12px}.invite-bars b{color:#6b3020;font-size:18px}
@media(max-width:1100px){.stats-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.span-stat{grid-column:span 2}}
@media(max-width:640px){.stats-page-grid{grid-template-columns:1fr 1fr}.stat-big b{font-size:26px}.span-stat{grid-column:1/-1}}


/* === 2.1.3 premium board + richer avatar editor === */
.board-panel{background-image:linear-gradient(rgba(255,245,220,.08),rgba(219,172,105,.08)),url('parchment.jpg');background-size:cover;box-shadow:inset 0 0 45px rgba(104,58,29,.08),0 12px 32px rgba(76,42,26,.10)}
.board-wrap{position:relative;padding:0 4px 2px}.premium-board{width:100%;height:auto;display:block;filter:drop-shadow(0 4px 5px rgba(71,38,22,.08))}.board-path-line{fill:none;stroke:#d0a770;stroke-width:6;stroke-linecap:round;stroke-linejoin:round;opacity:.55}.board-cell{stroke:#6c4933;stroke-width:2.1;filter:drop-shadow(0 2px 2px rgba(0,0,0,.20))}.board-cell.normal{fill:#fffaf0}.board-cell.done{fill:#f0d6a8}.board-cell.m90,.board-cell.m30{fill:#eca91c}.board-cell.m70,.board-cell.m10{fill:#57a53b}.board-cell.m50{fill:#318fd0}.milestone-num{font-weight:900}.board-caption{font-family:Georgia,serif;font-style:italic;font-size:28px;color:#7c3b2a;text-align:center;margin-top:-6px}.figurines{filter:drop-shadow(0 6px 5px rgba(62,31,18,.28));transition:transform .65s cubic-bezier(.2,.8,.2,1)}
.avatar-style-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.style-choice{min-height:44px}.avatar-hair-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.avatar-thumb-choice{border:1px solid #dfc8ae;background:#fffaf3;border-radius:12px;padding:6px 4px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;color:#563023}.avatar-thumb-choice.active{border:2px solid #7b3825;background:#f5e0c7;box-shadow:0 0 0 2px rgba(123,56,37,.08)}.avatar-thumb{height:68px;display:grid;place-items:center;overflow:hidden}.avatar-thumb svg{width:68px;height:68px}.avatar-thumb-choice small{font-size:11px;line-height:1.1}.avatar-preview-help{text-align:center;font-size:12px;color:#816a5b}.swatch.square{border-radius:9px}.login-card select{font-weight:700;color:#5a2d20}.login-card label{color:#5d3b30}.login-card:before{content:'Vyberte své jméno a zadejte vlastní heslo';display:block;text-align:center;font-size:12px;color:#826b5f;margin:-2px 0 8px}
@media(max-width:760px){.avatar-style-row{grid-template-columns:1fr}.avatar-hair-grid{grid-template-columns:repeat(3,1fr)}.board-caption{font-size:22px}.premium-board{min-width:720px}.board-wrap{overflow-x:auto;scrollbar-width:thin}.board-wrap:after{content:'Posuňte do strany pro celý herní plán';display:block;text-align:center;font-size:11px;color:#886c59;padding-top:4px}}
@media(max-width:430px){.avatar-hair-grid{grid-template-columns:repeat(2,1fr)}.premium-board{min-width:680px}}


/* === 2.1.4 board proportions, natural avatars, exact footer art === */
.side-footer{padding:0!important;background:transparent!important;border:0!important;display:flex;align-items:flex-end;justify-content:center;margin-top:auto}
.side-footer:before{display:none!important}
.side-footer-art{display:block;width:min(100%,171px);height:auto;object-fit:contain;margin:0 auto 2px;filter:drop-shadow(0 4px 8px rgba(25,8,3,.16))}
.board-panel{background:linear-gradient(rgba(255,246,222,.18),rgba(221,177,113,.10)),url('parchment.jpg') center/cover!important;border:1px solid #d2a76f!important;box-shadow:inset 0 0 52px rgba(105,56,28,.10),0 12px 28px rgba(74,40,24,.10)!important}
.board-head.compact{min-height:110px}.board-head.compact .counter-strip{max-width:470px;padding:10px 26px;background:rgba(255,250,236,.92);border-radius:22px}.paper-note{font-family:Georgia,serif;font-style:italic;font-size:20px;line-height:1.15;transform:rotate(-2deg);box-shadow:0 4px 9px rgba(74,43,27,.12)}
.premium-board{width:100%;max-width:900px;margin:0 auto;aspect-ratio:4/3;display:block}.board-path-line{stroke:#c9a16b;stroke-width:5.5;opacity:.53}.board-cell{stroke:#684733;stroke-width:1.8}.board-cell.normal{fill:#fffaf0}.board-cell.done{fill:#eed2a1}.board-cell.milestone-cell{stroke-width:2.6}.board-cell.m90,.board-cell.m30{fill:#eca91c}.board-cell.m70,.board-cell.m10{fill:#58a53a}.board-cell.m50{fill:#318fd0}.milestone-num{font-size:12px!important;font-weight:900;dominant-baseline:middle;text-anchor:middle}.board-caption{font-size:30px;margin-top:-28px;padding-bottom:10px;text-shadow:0 1px #fff}.figurines{filter:drop-shadow(0 5px 5px rgba(56,28,18,.26))}
.avatar-editor-v214{max-width:430px!important;width:min(94vw,430px)!important;border-radius:24px!important;overflow:hidden;background:linear-gradient(180deg,#fffdf8,#f4dec0)!important}.avatar-editor-v214 .modal-body{padding:17px!important}.avatar-editor-v214 h2{text-align:center;margin:0;font-size:22px;line-height:1.1}.avatar-subtitle{text-align:center;margin:2px 0 10px!important;font-size:14px;color:#3f2e26!important}.avatar-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:#ead1ad;border-radius:10px;padding:3px;margin-bottom:10px}.avatar-tabs button{border:0;background:transparent;padding:7px 2px;border-radius:8px;font-size:12px;color:#5d3929;cursor:pointer}.avatar-tabs button.active{background:#fff4df;box-shadow:0 1px 4px rgba(70,38,22,.15);font-weight:800}.avatar-phone-layout{display:block}.avatar-big-preview{min-height:215px!important;height:215px;border-radius:15px!important;background:linear-gradient(180deg,#fffefa,#f6ead5)!important;border:0!important;box-shadow:inset 0 0 0 1px #ead6bb;overflow:hidden}.avatar-big-preview svg{max-height:208px}.avatar-tab-panel{display:none;padding-top:8px}.avatar-tab-panel.active{display:block}.style-segment{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:9px}.style-segment button{border:1px solid #ddc3a6;background:#fff9ef;border-radius:9px;padding:7px 3px;font-size:11px;cursor:pointer}.style-segment button.active{background:#6d3422;color:#fff;border-color:#6d3422}.avatar-hair-grid.visual-grid{grid-template-columns:repeat(4,1fr)!important;gap:5px!important}.avatar-thumb-choice{padding:1px!important;border-radius:50%!important;aspect-ratio:1/1;background:#fff!important;overflow:hidden;border:2px solid #eadac7!important}.avatar-thumb-choice.active{border-color:#7a3825!important;box-shadow:0 0 0 2px #f0c9a9!important}.avatar-thumb{height:auto!important;width:100%;aspect-ratio:1/1}.avatar-thumb svg{width:100%!important;height:100%!important;transform:scale(1.12)}.swatches.centered{justify-content:center;margin:9px 0 14px}.swatch{width:34px!important;height:34px!important}.outfit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.outfit-choice{border:1px solid #dfc8ae;background:#fffaf3;border-radius:11px;padding:6px 3px;cursor:pointer}.outfit-choice.active{border:2px solid #7b3825;background:#f5e0c7}.outfit-icon{display:grid;place-items:center;height:58px;border-radius:9px;background:linear-gradient(160deg,var(--shirt),#191919);color:#fff;font-size:34px;text-shadow:0 2px 4px #0005}.outfit-choice small{font-size:10px}.extras-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.avatar-progress-note{text-align:center;font-size:11px;color:#846c5c;margin-top:8px}.avatar-actions{margin-top:9px!important}.avatar-actions .primary{background:#79391f!important}.avatar-svg{overflow:visible}
@media(max-width:980px){.premium-board{min-width:0!important;aspect-ratio:4/3}.board-wrap{overflow-x:hidden!important}.board-wrap:after{display:none!important}.board-caption{margin-top:-22px}}
@media(max-width:640px){.premium-board{min-width:620px!important}.board-wrap{overflow-x:auto!important}.board-wrap:after{content:'Posuňte herní plán do strany';display:block!important;text-align:center;font-size:11px;color:#886c59;padding-top:4px}.avatar-editor-v214{width:min(96vw,410px)!important}.avatar-hair-grid.visual-grid{grid-template-columns:repeat(4,1fr)!important}.board-caption{margin-top:-18px}}


/* === 2.2.0 reference-matched visual redesign === */
.k100-login-v220{background:linear-gradient(180deg,#f7e9d0 0,#eecda0 100%);padding:18px 10px}.k100-login-v220:before,.k100-login-v220:after{display:none}.k100-login-v220 .login-card{width:min(355px,96vw);border-radius:34px;padding:22px 18px 20px;background:linear-gradient(180deg,#fff9ed 0,#f7dfbb 100%);border:1px solid #d7af7b;box-shadow:0 22px 55px rgba(65,33,20,.28);overflow:hidden}.k100-login-v220 .brand-script{font-family:Georgia,serif;font-style:italic;font-weight:800;font-size:42px;line-height:1;color:#5d140e;text-align:center;letter-spacing:-1.3px}.k100-login-v220 .brand-pair{font-family:Georgia,serif;font-style:italic;font-size:25px;margin-top:8px;text-align:center;color:#582115}.login-hearts{text-align:center;color:#f04757;font-size:34px;line-height:1;margin:3px 0 0}.login-hearts span{font-size:17px;vertical-align:top;margin-left:7px;opacity:.6}.login-illustration{height:250px;margin:0 -4px 10px;border-radius:20px;overflow:hidden;background:#f4d3a9;box-shadow:inset 0 0 0 1px #dfbe92}.login-illustration img{width:100%;height:100%;object-fit:cover;object-position:center 45%}.k100-login-v220 form{display:grid;gap:10px}.login-field{display:grid;grid-template-columns:32px 1fr;align-items:center;background:#fff;border:1px solid #b9c3ce;border-radius:8px;min-height:45px;box-shadow:inset 0 1px 2px rgba(0,0,0,.04)}.login-field .login-icon{text-align:center;color:#111;font-size:12px}.login-field select,.login-field input{border:0!important;box-shadow:none!important;background:transparent!important;margin:0!important;padding:9px 8px!important;width:100%;font-size:16px;color:#2d241f}.remember-row{display:flex!important;align-items:center;gap:8px;font-weight:500!important;color:#2f2a26!important;margin:0!important}.remember-row input{width:18px!important;height:18px!important}.login-submit{min-height:50px;border-radius:9px!important;font-size:18px!important;background:linear-gradient(180deg,#8a421e,#6a2d16)!important;box-shadow:0 5px 12px rgba(74,31,17,.22)!important}.k100-login-v220 .login-foot{font-family:Georgia,serif;font-style:italic;font-size:27px;margin-top:16px;text-align:center;color:#4b2a20}.login-beans{text-align:center;font-size:31px;color:#542719;letter-spacing:4px;margin:8px 0 -4px;transform:rotate(-4deg)}
.board-panel{border-radius:18px!important;padding:10px!important;overflow:hidden}.board-head.compact{min-height:100px!important;align-items:flex-start}.premium-board{max-width:980px!important;aspect-ratio:4/3!important}.board-wrap{padding:0!important}.shared-token{filter:drop-shadow(0 5px 6px rgba(58,28,15,.28));transition:transform .7s cubic-bezier(.22,.8,.22,1)}.board-caption{font-family:Georgia,serif!important;font-style:italic;font-size:31px!important;color:#6f2d22!important;margin-top:-20px!important}.board-cell.normal{fill:#fffaf1!important}.board-cell.done{fill:#f2ddba!important}.board-path-line{stroke:#caa06a!important;stroke-width:5!important;opacity:.45!important}.paper-note{background:#f8e7c5!important;border:1px solid #d9b478!important;color:#6d3929!important;padding:16px 18px!important;border-radius:4px!important}.counter-strip{box-shadow:0 4px 12px rgba(102,55,30,.08)}
.avatar-editor-v214{max-width:390px!important}.avatar-editor-v214 .avatar-big-preview{height:235px!important;min-height:235px!important;background:radial-gradient(circle at 50% 42%,#fff 0,#fbf1e2 68%,#efd6b2 100%)!important;border-radius:18px!important}.avatar-editor-v214 .avatar-big-preview svg{max-height:228px!important}.avatar-hair-grid.visual-grid{grid-template-columns:repeat(4,1fr)!important;gap:7px!important}.avatar-thumb-choice{background:linear-gradient(#fff,#f9efe1)!important;box-shadow:0 2px 5px rgba(69,36,23,.07)}.avatar-thumb svg{transform:scale(1.05)!important}.avatar-tabs{background:#ecd6b7!important}.avatar-tabs button.active{background:#f8e3c3!important}.style-segment{display:none!important}.outfit-icon{border:1px solid rgba(255,255,255,.5)}
@media(max-width:640px){.k100-login-v220 .login-card{width:min(345px,96vw);padding:18px 14px}.k100-login-v220 .brand-script{font-size:38px}.login-illustration{height:230px}.premium-board{min-width:720px!important}.board-caption{font-size:25px!important}.avatar-editor-v214{width:min(96vw,380px)!important}}

/* v2.2.1 login polish: no cropped heart tip above the couple */
.login-hearts{display:none!important}.login-illustration{position:relative}.login-illustration:after{content:'';position:absolute;z-index:3;top:-1px;left:50%;transform:translateX(-50%);width:52px;height:29px;background:linear-gradient(180deg,#f7dfbb 0,#f2d3aa 100%);border-radius:0 0 22px 22px;pointer-events:none}.login-illustration img{display:block}


/* === 2.2.2 sidebar + shared avatar alignment refinement === */
@media (min-width:761px){
  .app-layout{
    grid-template-columns:280px minmax(0,1fr)!important;
    align-items:stretch;
  }
  .sidebar{
    width:280px!important;
    min-width:280px!important;
    height:100vh!important;
    min-height:100vh!important;
    position:sticky!important;
    top:0!important;
    padding:18px 18px 18px!important;
    background:
      radial-gradient(circle at 42% 88%,rgba(151,73,35,.20),transparent 26%),
      linear-gradient(180deg,#542014 0%,#642718 45%,#722f1d 100%)!important;
    box-shadow:inset -1px 0 rgba(255,255,255,.05),6px 0 18px rgba(70,31,18,.08);
  }
  .side-brand{
    padding:5px 5px 16px!important;
    border-bottom:1px solid rgba(255,255,255,.11)!important;
    text-align:left;
  }
  .side-brand .brand-script{
    color:#fff!important;
    font-family:Georgia,"Times New Roman",serif!important;
    font-style:italic!important;
    font-size:30px!important;
    line-height:1.02!important;
    font-weight:700!important;
    letter-spacing:-.8px!important;
    white-space:nowrap;
  }
  .side-brand small{
    margin-top:8px!important;
    color:#f7ddd0!important;
    font-family:Georgia,"Times New Roman",serif;
    font-size:15px!important;
  }
  .side-nav{
    gap:4px!important;
    margin-top:18px!important;
  }
  .nav-btn{
    min-height:50px!important;
    padding:11px 14px!important;
    border-radius:10px!important;
    gap:13px!important;
    font-size:16px!important;
    font-weight:500!important;
  }
  .nav-btn .ico{
    width:24px!important;
    min-width:24px!important;
    font-size:20px!important;
    display:grid;
    place-items:center;
  }
  .nav-btn.active,.nav-btn:hover{
    background:#fff6ea!important;
    color:#542418!important;
    font-weight:700!important;
    box-shadow:0 2px 8px rgba(28,10,4,.12);
  }
  .side-footer{
    margin-top:auto!important;
    padding:15px 4px 0!important;
    min-height:188px;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
  }
  .side-footer-art{
    width:205px!important;
    max-width:100%!important;
    margin:0 auto!important;
    filter:drop-shadow(0 7px 12px rgba(25,8,3,.28))!important;
  }
}
.avatar-mini-photo{
  overflow:hidden!important;
  background:#f4dec2!important;
  border:2px solid #fff4e5!important;
  box-shadow:0 2px 8px rgba(78,36,20,.16);
}
.avatar-mini-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 34%;
}
.avatar-pair-static{
  width:var(--pair-size,110px);
  max-width:100%;
  aspect-ratio:245/185;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:18px;
}
.avatar-pair-static img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* Shared token is always one joint piece: neither participant is visually in front. */
.shared-token{
  transform-origin:center bottom;
}
@media(max-width:1000px) and (min-width:761px){
  .app-layout{grid-template-columns:250px minmax(0,1fr)!important}
  .sidebar{width:250px!important;min-width:250px!important;padding-left:14px!important;padding-right:14px!important}
  .side-brand .brand-script{font-size:26px!important}
  .nav-btn{font-size:15px!important}
  .side-footer-art{width:185px!important}
}


/* === 2.2.3 MOBILE DASHBOARD REBUILD === */
@media(max-width:640px){
  html,body{width:100%;max-width:100%;overflow-x:hidden!important;background:#f8f3ec}
  .k100-shell,.main,.content,.screen,.hero-dashboard,.paper-panel,.aside-stack,.aside-card{min-width:0!important;max-width:100%!important}
  .hero-banner{
    height:84px!important;
    background-size:auto 84px!important;
    background-position:center center!important;
    border-bottom:1px solid #e3ceb4;
  }
  .app-layout{display:block!important;min-height:calc(100vh - 84px)!important}
  .sidebar{display:none!important}
  .main{width:100%!important}
  .topbar{
    height:58px!important;
    padding:0 12px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:10px!important;
    align-items:center!important;
    position:sticky!important;
    top:0!important;
    background:rgba(255,253,249,.97)!important;
    backdrop-filter:blur(10px);
  }
  .topbar-title{
    font-size:18px!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .topbar-title:before{font-size:19px!important;margin-right:7px!important}
  .user-chip{gap:0!important}
  .user-chip .avatar-mini,.user-chip>span{display:none!important}
  .user-chip .icon-button{
    width:42px!important;height:42px!important;padding:0!important;border-radius:12px!important;
    display:grid!important;place-items:center!important;font-size:20px!important
  }
  .content{
    width:100%!important;
    padding:10px 10px calc(88px + env(safe-area-inset-bottom))!important;
    margin:0!important;
  }
  .hero-dashboard{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    width:100%!important;
  }
  .board-panel{
    width:100%!important;
    padding:8px!important;
    border-radius:16px!important;
    overflow:hidden!important;
  }
  .board-head.compact{
    min-height:auto!important;
    display:block!important;
    padding:3px 3px 2px!important;
  }
  .paper-note{display:none!important}
  .counter-strip{
    width:100%!important;
    max-width:none!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:0!important;
    margin:0 0 4px!important;
    padding:10px 8px!important;
    border-radius:18px!important;
  }
  .counter-strip>div{
    min-width:0!important;
    padding:0 6px!important;
    text-align:center!important;
  }
  .counter-strip>div+div{border-left:1px solid rgba(103,68,48,.16)}
  .counter-strip span{
    display:block!important;
    font-size:12px!important;
    line-height:1.2!important;
    min-height:15px!important;
    white-space:nowrap!important;
  }
  .counter-strip b{
    display:block!important;
    margin-top:2px!important;
    font-size:25px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }
  .board-wrap{
    width:100%!important;
    overflow:hidden!important;
    padding:0!important;
    min-height:0!important;
  }
  .premium-board,.mobile-premium-board{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    aspect-ratio:auto!important;
    margin:0!important;
    display:block!important;
  }
  .board-wrap:after{display:none!important;content:none!important}
  .board-caption{
    margin:-8px 0 1px!important;
    padding:0 0 4px!important;
    font-size:23px!important;
    line-height:1.1!important;
  }
  .board-cell{stroke-width:1.5!important}
  .milestone-num{font-size:9px!important;stroke-width:.8!important}
  .aside-stack{gap:12px!important}
  .aside-card{
    width:100%!important;
    padding:14px!important;
    border-radius:17px!important;
    box-shadow:0 8px 22px rgba(69,38,24,.08)!important;
  }
  .section-title{margin-bottom:10px!important}
  .section-title h2{font-size:21px!important;line-height:1.08!important}
  .section-title p{font-size:13px!important;line-height:1.25!important}
  .last-photo{
    width:100%!important;
    height:170px!important;
    border-radius:14px!important;
  }
  .avatar-pair-static{
    --pair-size:150px!important;
    border-radius:14px!important;
  }
  .stats-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }
  .stat{padding:11px!important;min-height:88px}
  .stat b{font-size:25px!important}
  .stat span{font-size:12px!important;line-height:1.25!important}
  .aside-stack>.primary.green{
    width:100%!important;
    min-height:52px!important;
    font-size:17px!important;
    margin:0!important;
    border-radius:14px!important;
  }
  .mobile-nav{
    display:grid!important;
    grid-template-columns:repeat(5,1fr)!important;
    padding:7px 5px calc(7px + env(safe-area-inset-bottom))!important;
  }
  .mobile-nav button{
    min-width:0!important;
    font-size:10px!important;
    line-height:1.1!important;
  }
  .mobile-nav button span{font-size:18px!important}
}
/* narrow phones */
@media(max-width:380px){
  .content{padding-left:7px!important;padding-right:7px!important}
  .counter-strip b{font-size:22px!important}
  .counter-strip span{font-size:11px!important}
  .board-caption{font-size:21px!important}
  .section-title h2{font-size:20px!important}
}


/* === 2.2.4 photo source chooser === */
.photo-choice-wrap{margin-top:8px}
.photo-choice-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.photo-choice-btn{
  appearance:none;
  border:1px solid #d8c2aa;
  background:#fffaf2;
  color:#5f2819;
  min-height:48px;
  padding:10px 12px;
  border-radius:12px;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 3px 10px rgba(76,40,22,.06);
}
.photo-choice-btn:active{transform:translateY(1px)}
.photo-choice-btn.camera{background:#6b2d1d;color:#fff;border-color:#6b2d1d}
.photo-choice-btn.gallery{background:#f7e8d5}
.photo-choice-hint{
  margin-top:7px;
  color:#7b685b;
  font-size:12px;
  line-height:1.35;
}
.photo-preview-box{
  position:relative;
  margin-top:10px;
  border-radius:14px;
  overflow:hidden;
  background:#efe4d6;
  border:1px solid #dfcbb4;
}
.photo-preview-box img{
  display:block;
  width:100%;
  max-height:260px;
  object-fit:cover;
}
.photo-remove-btn{
  position:absolute;
  top:8px;
  right:8px;
  border:0;
  border-radius:999px;
  width:34px;
  height:34px;
  background:rgba(62,28,18,.82);
  color:#fff;
  font-size:17px;
  cursor:pointer;
}
@media(max-width:480px){
  .photo-choice-actions{grid-template-columns:1fr}
  .photo-choice-btn{min-height:50px;font-size:15px}
}


/* === 2.2.5 larger mobile bottom navigation === */
@media(max-width:980px){
  .mobile-nav{
    min-height:74px!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    padding:8px max(6px,env(safe-area-inset-right))
            calc(8px + env(safe-area-inset-bottom))
            max(6px,env(safe-area-inset-left))!important;
    align-items:center!important;
  }
  .mobile-nav button{
    min-height:56px!important;
    padding:4px 1px!important;
    font-size:12px!important;
    line-height:1.08!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    overflow:visible!important;
  }
  .mobile-nav button .ico,
  .mobile-nav button>span{
    display:block!important;
    font-size:28px!important;
    line-height:1!important;
    margin:0!important;
    min-height:29px!important;
  }
  .mobile-nav button small{
    display:block!important;
    font-size:12px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  .mobile-nav button.active .ico,
  .mobile-nav button.active>span{
    transform:scale(1.08);
  }
}
@media(max-width:380px){
  .mobile-nav button .ico,
  .mobile-nav button>span{font-size:25px!important}
  .mobile-nav button small{font-size:11px!important}
}


/* === 2.2.6 live transparent avatars + expanded clothing palette === */
.avatar-pair-live{
  width:var(--pair-size,110px);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:2px;
  position:relative;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.avatar-pair-live .avatar-pair-person{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  background:transparent;
}
.avatar-pair-live .avatar-pair-person svg{
  display:block;
  overflow:visible;
  filter:drop-shadow(0 3px 3px rgba(76,39,23,.15));
}
.avatar-pair-live .avatar-pair-heart{
  color:#ef4058;
  font-size:22px;
  line-height:1;
  align-self:flex-start;
  margin:8px -3px 0;
  text-shadow:0 1px 0 #fff8ef,0 0 5px rgba(239,64,88,.18);
}
.live-pair-svg{
  filter:drop-shadow(0 4px 3px rgba(75,39,23,.18));
}
.clothing-color-label{margin-top:16px!important}
.clothing-swatches{
  display:grid!important;
  grid-template-columns:repeat(6,38px)!important;
  gap:9px!important;
  justify-content:center!important;
  margin-top:9px!important;
}
.clothing-swatch{
  width:38px!important;
  height:38px!important;
  border-radius:50%!important;
  border:3px solid #fff!important;
  outline:1px solid rgba(78,46,30,.20)!important;
  box-shadow:0 2px 6px rgba(48,24,14,.12)!important;
}
.clothing-swatch.active{
  outline:3px solid #6b2d1d!important;
  transform:scale(1.08);
}
@media(max-width:480px){
  .clothing-swatches{
    grid-template-columns:repeat(6,34px)!important;
    gap:7px!important;
  }
  .clothing-swatch{width:34px!important;height:34px!important}
}
