/* Calm habit tracker, inspired by the user's Halden reference. */
:root{--bg:#fff;--paper:#f5f5f4;--ink:#20211f;--muted:#737570;--green:#303b2b;--light:#eaf0e5;--line:#e8e9e5;--danger:#a23f36;font-family:'Golos Text',Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px;font-synthesis:none;color-scheme:light}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.5;cursor:not-allowed}button,a,input,select,textarea,summary{outline-offset:4px}:focus-visible{outline:2px solid #536647}a{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:38px;font-weight:500;letter-spacing:-1.6px;line-height:1.2;margin-bottom:12px}h2{font-size:23px;font-weight:500;letter-spacing:-.7px}h3{font-size:17px;font-weight:500;letter-spacing:-.35px}p{line-height:1.7}small,.muted{color:var(--muted)}.eyebrow{font-size:11px;color:var(--muted);margin-bottom:13px;letter-spacing:0;text-transform:none}.shell{min-height:100vh}.sidebar{max-width:1180px;margin:auto;padding:24px 30px;display:flex;align-items:center;gap:30px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:9px;font-weight:500;font-size:16px;letter-spacing:-.5px;white-space:nowrap}.brand-mark{background:var(--ink);color:white;border-radius:9px;width:29px;height:29px;display:grid;place-items:center;font-size:20px;letter-spacing:-1px}.nav{display:flex;gap:3px;margin:auto}.nav button{padding:10px 12px;min-height:40px;font-size:11px;border-radius:30px;background:transparent;color:var(--muted);white-space:nowrap}.nav button.active{background:var(--paper);color:var(--ink)}.nav button:hover{background:var(--paper)}.nav-icon{display:none}.sidebar-bottom{display:flex;align-items:center;gap:12px}.user-line{display:flex;align-items:center;gap:8px}.avatar{width:32px;height:32px;border-radius:50%;background:var(--light);display:grid;place-items:center;font-size:12px;flex-shrink:0}.user-line>div{display:none}.logout{background:none;color:var(--muted);font-size:11px;min-height:40px;padding:0}.sidebar-bottom .logout{font-size:0;width:25px}.sidebar-bottom .logout:after{content:none}.main{max-width:1040px;margin:0 auto;padding:25px 36px 40px}.topbar{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px;margin-bottom:38px}.badge{display:flex;align-items:center;gap:6px;font-size:10px}.dot{width:5px;height:5px;background:#65765b;border-radius:50%}.mobile-brand{display:none}.page-head{display:flex;justify-content:space-between;gap:25px;align-items:flex-end;margin-bottom:28px}.page-head p{color:var(--muted);font-size:12px;margin:0}.week-select{max-width:250px;background:var(--paper);border:0;border-radius:20px;padding:11px 14px;color:var(--ink);font-size:11px}.week-overview{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:14px}.week-calendar{background:var(--paper);border-radius:20px;padding:24px}.card{background:var(--paper);padding:24px;border-radius:18px;border:0}.week-calendar .card{padding:0;background:none}.week-calendar h3{display:none}.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin:15px 0}.day{display:flex;flex-direction:column;align-items:center;color:var(--muted);font-size:10px;gap:10px}.day .number{font-size:13px;order:1}.day-box{width:34px;height:34px;border:1px solid #dcded7;background:#fff;display:grid;place-items:center;border-radius:50%;color:#93968d;font-size:17px;order:2}.day.today .day-box{border:2px solid var(--ink);color:var(--ink)}.day.today .number{font-weight:600;color:var(--ink)}.day.done .day-box{background:var(--ink);color:#fff;border-color:var(--ink)}.legend{display:flex;gap:14px;color:var(--muted);font-size:9px;margin-top:18px}.legend i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--ink);margin-right:4px}.legend .miss i{background:#acafa6}.week-score{background:var(--paper);border-radius:20px;padding:25px;display:flex;flex-direction:column;gap:7px;justify-content:center}.week-score .eyebrow{margin:0}.week-score strong{font-size:46px;letter-spacing:-2px;font-weight:500;line-height:1.2}.week-score>span:not(.eyebrow),.week-score small{font-size:10px;color:var(--muted)}.week-caption{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;padding:12px 3px;gap:12px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:28px 0 16px}.section-title h2{margin:0;font-size:21px}.section-title small{font-size:10px}.practices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.practice{display:flex;flex-direction:column;min-height:235px;padding:22px}.practice-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.practice-icon{width:32px;height:32px;background:#fff;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:400}.weight{font-size:9px;color:var(--muted)}.practice h3{font-size:18px;margin-bottom:9px}.practice p{font-size:11px;color:var(--muted);line-height:1.7;margin-bottom:22px}.practice-foot{margin-top:auto}.checkline{display:flex;align-items:center;gap:9px;min-height:36px;font-size:12px;line-height:1.5;cursor:pointer}.checkline input{width:19px;height:19px;flex-shrink:0;margin:0;accent-color:var(--ink)}.practice .checkline{border-radius:10px;padding:11px;background:#fff;font-size:11px;min-height:44px}.counter{display:flex;align-items:center;gap:10px}.counter input{width:100%;min-width:0;padding:10px 12px;border:1px solid var(--line);background:#fff;border-radius:10px;font-size:16px;height:44px}.counter span{white-space:nowrap;font-size:11px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--ink);color:white;border-radius:25px;padding:12px 20px;min-height:44px;text-decoration:none;font-size:12px;font-weight:400}.btn:hover:not(:disabled){filter:brightness(.88)}.btn.secondary{background:#e7e9e3;color:var(--ink)}.btn.outline{background:transparent;color:var(--ink);border:1px solid #dedfd9}.btn.danger{background:#f7eae7;color:var(--danger)}.btn.full{width:100%}.btn.small{min-height:36px;font-size:11px;padding:8px 13px}.save-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:20px 0 30px}.save-row p{font-size:10px;line-height:1.8;color:var(--muted);margin:0}.week-note .card{display:grid;grid-template-columns:1fr 1fr;column-gap:45px;background:none;border:1px solid var(--line)}.week-note h3{grid-column:1;margin:0 0 12px}.week-note .note{grid-column:1;margin:0}.remaining{list-style:none;padding:0;margin:18px 0 0}.remaining li{display:flex;justify-content:space-between;padding:9px 0;font-size:12px;border-bottom:1px solid var(--line)}.remaining li:last-child{border:0}.remaining b{font-weight:500}.week-note .remaining{grid-column:2;grid-row:1/3;margin:0}.note{font-size:11px;line-height:1.8;color:var(--muted)}.lower,.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat strong{font-size:32px;font-weight:500;display:block;letter-spacing:-1.2px;margin:16px 0 7px}.stat span,.stat small{font-size:11px}.table-wrap{overflow-x:auto;padding:8px 12px}.table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.table th{font-size:10px;font-weight:400;color:var(--muted);white-space:nowrap}.table th,.table td{padding:17px 12px;border-bottom:1px solid #e3e5de}.table tr:last-child td{border:0}.table .me,.requested-application{background:#e9eee4}.name-cell{display:flex;align-items:center;gap:10px;min-width:160px}.score{font-weight:500}.pill{padding:6px 10px;background:#e6eae1;border-radius:20px;font-size:10px}.empty{text-align:center;font-size:12px;color:var(--muted);padding:25px}.achievements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.achievement h3{font-size:17px}.achievement p{font-size:11px;color:var(--muted);margin:7px 0 0}.medal{font-size:26px;background:white;border-radius:50%;width:45px;height:45px;display:grid;place-items:center;margin-bottom:22px}.achievement.locked .medal{color:#9b9f94}.success{color:#546548}.bar-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px;height:160px;padding-top:15px;align-items:end}.bar-slot{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;color:var(--muted);font-size:10px}.bar{height:var(--height);min-height:3px;width:60%;border-radius:6px;background:#67765c}.field{display:flex;flex-direction:column;gap:9px;margin-bottom:20px;font-size:12px}.field input,.field select,.field textarea{border:1px solid #e0e2dc;border-radius:10px;padding:12px;background:white;color:var(--ink);width:100%;min-height:44px}.field textarea{min-height:90px;resize:vertical}.field small{font-size:10px;line-height:1.6}.switch-row{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:15px}.switch-row input[type=time]{border:1px solid var(--line);border-radius:8px;background:white;padding:8px;color:var(--ink)}.settings-grid>.card,.settings-grid>div>.card{margin-bottom:18px}.settings-grid h3{margin-bottom:20px}.settings-grid p{font-size:12px}.admin-alert-setting{border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.admin-tabs{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:24px}.admin-tabs button{border-radius:22px;padding:10px 13px;font-size:11px;background:var(--paper);color:var(--muted);min-height:40px}.admin-tabs button.active{background:var(--ink);color:white}.admin-tabs a{margin-left:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.wide{grid-column:1/-1}.audit-detail{max-width:250px;overflow-wrap:anywhere;font-size:11px}.audit-detail pre{white-space:pre-wrap;max-height:180px;overflow:auto}.notice{background:#f3f3ec;color:#666654;border-radius:12px;padding:15px 18px;margin-bottom:22px;font-size:11px;line-height:1.7}.error{color:var(--danger)}.footer{margin-top:32px;color:#83867e;text-align:center;font-size:9px;line-height:1.8}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;max-width:540px;width:calc(100% - 36px);max-height:90vh;color:var(--ink);background:white}dialog::backdrop{background:#20251f66}.dialog-head{display:flex;justify-content:space-between;gap:18px;margin-bottom:20px}.dialog-head h2{margin:0}.close{width:34px;height:34px;border-radius:50%;background:var(--paper);font-size:20px}.member-list{max-height:200px;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:10px}.member-list label{margin:8px 0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:14px 23px;border-radius:14px;font-size:13px;z-index:100;display:none;max-width:90vw}#toast.show{display:block}#toast.error{background:var(--danger)}.loading{display:grid;place-content:center;gap:15px;height:100vh;font-size:25px}.loading span{font-size:13px;color:var(--muted)}.page-error{max-width:600px;margin:auto;padding:45px}.login-page{max-width:1100px;margin:auto;padding:28px 35px 50px;display:grid;grid-template-columns:1fr 1fr;column-gap:70px;align-items:center;min-height:100vh}.login-masthead{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;margin-bottom:45px;align-self:start}.login-masthead>span{font-size:10px;color:var(--muted)}.login-story{padding:0 20px 10px}.login-story h1{font-size:57px;line-height:1.08;letter-spacing:-2.8px;font-weight:500;margin:18px 0 23px}.story-intro{font-size:13px;color:var(--muted);line-height:1.8}.habit-preview{max-width:310px;background:var(--paper);padding:23px;border-radius:24px;margin-top:32px}.preview-title{display:flex;justify-content:space-between;font-size:14px;font-weight:500}.preview-title>span{font-size:9px;color:var(--muted);font-weight:400}.preview-days{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:21px 0}.preview-days>span{display:grid;gap:8px;text-align:center;font-size:9px;color:var(--muted)}.preview-days i{border-radius:50%;width:25px;height:25px;background:white;display:grid;place-items:center;font-style:normal;font-size:12px}.preview-days i.checked{background:var(--ink);color:white}.preview-entry{display:flex;align-items:center;gap:13px;background:white;padding:12px;border-radius:10px;margin-top:7px;font-size:12px}.preview-entry>i{font-style:normal;font-size:17px}.preview-entry small{display:block;font-size:9px;margin-top:4px}.login-panel{padding:30px;background:var(--paper);border-radius:24px}.login-inner h2{font-size:28px;letter-spacing:-1px}.login-inner>p{font-size:12px;color:var(--muted);margin-bottom:24px}.login-inner .footer{font-size:9px}.auth-divider{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px;margin:24px 0 14px}.auth-divider:before,.auth-divider:after{content:'';height:1px;background:#dddeda;flex:1}.admin-login{font-size:11px;color:var(--muted);margin-top:24px}.admin-login summary{cursor:pointer;min-height:35px}.admin-login form{margin-top:15px}.local-hint{font-size:10px;line-height:1.7;color:var(--muted);padding-top:20px;margin-top:12px;border-top:1px solid #dddeda}.local-hint code{overflow-wrap:anywhere}.contact-confirmation,.application-status{background:white;padding:20px;border-radius:14px;margin:20px 0}.contact-confirmation p{margin:10px 0 18px}.application-status small{overflow-wrap:anywhere}.status-symbol{font-size:30px}.consent{align-items:flex-start;margin:20px 0}.consent input{margin-top:2px}#application-form+.btn{margin-top:12px}.login-panel .btn+.btn{margin-top:12px}
@media(max-width:1050px){.sidebar{gap:15px;padding:22px}.nav button{font-size:10px;padding:10px}.sidebar-bottom{gap:4px}.brand{font-size:14px}.login-page{gap:35px}.login-story{padding:0}.login-story h1{font-size:48px}.main{padding:25px 28px}.practice{padding:18px}.practice h3{font-size:16px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){h1{font-size:30px;letter-spacing:-1.2px}.sidebar{position:fixed;z-index:20;bottom:0;left:0;width:100%;padding:7px 7px calc(7px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);border-bottom:0;display:block}.sidebar .brand,.sidebar-bottom{display:none}.nav{gap:2px;justify-content:space-between}.nav button{min-width:0;flex:1;white-space:normal;overflow-wrap:anywhere;font-size:8px;padding:12px 3px;min-height:46px;border-radius:12px}.main{padding:23px 20px 100px}.topbar{margin-bottom:32px;font-size:9px}.desktop-date{display:none}.mobile-brand{display:block;font-size:15px;font-weight:500;letter-spacing:-.4px}.badge{font-size:8px}.page-head{display:block;margin-bottom:22px}.page-head .eyebrow{font-size:10px}.page-head p{font-size:11px}.week-select{font-size:10px;margin-top:20px;padding:10px 12px;max-width:100%}.week-overview{grid-template-columns:1fr;gap:10px}.week-calendar{padding:18px 14px;border-radius:18px}.days{gap:7px;margin:4px 0 12px}.day{gap:8px}.day-box{width:30px;height:30px;font-size:15px}.legend{font-size:8px;gap:12px;margin-top:14px}.week-score{display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:18px 20px;border-radius:16px}.week-score .eyebrow{grid-column:1;font-size:10px}.week-score strong{grid-column:2;grid-row:1/4;font-size:37px;align-self:center}.week-score>span:not(.eyebrow),.week-score small{font-size:9px}.week-caption{font-size:8px;padding:11px 2px}.section-title{margin:24px 0 14px;align-items:flex-start}.section-title h2{font-size:20px}.section-title small{max-width:85px;text-align:right;font-size:9px;line-height:1.6}.practices{grid-template-columns:1fr;gap:10px}.practice{min-height:0;padding:18px 20px;display:grid;grid-template-columns:32px 1fr;gap:0 12px}.practice-top{display:contents}.practice-icon{grid-column:1;grid-row:1/3;background:white;font-size:20px}.weight{display:none}.practice h3{grid-column:2;grid-row:1;font-size:17px;margin:4px 0 7px}.practice p{grid-column:2;grid-row:2;font-size:11px;margin:0 0 16px}.practice-foot{grid-column:2;grid-row:3;margin:0}.practice .checkline{font-size:11px}.save-row{flex-direction:column;align-items:stretch;gap:15px;margin:17px 0 24px}.save-row .btn{width:100%}.save-row p{font-size:10px}.week-note .card{display:block}.week-note .remaining{margin-top:16px}.card{padding:20px;border-radius:16px}.lower,.settings-grid{grid-template-columns:1fr;gap:14px}.stat-grid{gap:10px}.stat strong{font-size:28px}.stat span,.stat small{font-size:10px}.achievements{grid-template-columns:1fr 1fr;gap:10px}.achievement h3{font-size:15px}.achievement p{font-size:10px}.medal{margin-bottom:16px}.table-wrap{padding:5px 8px}.table th,.table td{padding:15px 10px}.admin-tabs button{font-size:10px}.admin-tabs a{margin-left:0}.form-grid{grid-template-columns:1fr}.field input,.field select,.field textarea,.counter input{font-size:16px}.field{font-size:12px}.notice{font-size:11px;padding:14px}.login-page{display:block;padding:23px 20px 35px;min-height:100vh}.login-masthead{margin-bottom:38px}.login-masthead>span{display:none}.login-story{text-align:center;padding:0 10px 28px}.login-story h1{font-size:40px;letter-spacing:-1.7px;margin:15px 0 18px}.login-story .eyebrow{font-size:10px}.story-intro{font-size:12px;margin:0}.habit-preview{display:none}.login-panel{padding:25px 22px;border-radius:20px}.login-inner h2{font-size:26px}.login-inner>p{font-size:12px}.footer{font-size:9px}.local-hint{font-size:9px}.page-error{padding:25px}.topbar .badge{font-size:8px}}

/* Calendar states: colour plus symbols, independent of the current-day outline. */
.days{gap:9px;margin:3px 0 0}.day{position:relative;border-radius:13px;padding:13px 4px 11px;gap:8px;background:#eceee9;color:#858a80;min-width:0}.day .weekday{font-size:10px}.day .number{order:0;font-size:20px;line-height:1.2;font-weight:500;color:inherit}.day-box{order:0;width:24px;height:24px;border:0;background:transparent;color:inherit;font-size:19px;line-height:1;border-radius:0}.day.done{background:#e0efdf;color:#326343}.day.partial{background:#fff0cc;color:#916218}.day.missed{background:#f8e3df;color:#a14a40}.day.done .day-box{background:none;border:0;color:inherit}.day.today{outline:2px solid #444b40;outline-offset:2px}.day.today .day-box{border:0;color:inherit}.day.today .number{color:inherit;font-weight:600}.day.empty{background:#fff;color:#747b6e}.today-dot{position:absolute;bottom:4px;width:3px;height:3px;background:currentColor;border-radius:50%}.legend{flex-wrap:wrap;margin-top:21px;gap:10px 18px;font-size:10px}.legend i{width:7px;height:7px}.legend .complete i{background:#5d9467}.legend .partial i{background:#d5a13b}.legend .miss i{background:#cb7e72}.calendar-hint{font-size:9px;line-height:1.6;color:var(--muted);margin:10px 0 0}.week-calendar{padding:22px}.week-calendar .card{padding:0}
@media(max-width:760px){.week-calendar{padding:18px 12px}.days{gap:6px;margin:2px 0}.day{border-radius:10px;padding:11px 2px 10px;gap:7px}.day .weekday{font-size:9px}.day .number{font-size:17px}.day-box{font-size:17px;width:21px;height:21px}.day.today{outline-width:1.5px;outline-offset:2px}.legend{font-size:9px;gap:9px 12px;margin-top:17px}.calendar-hint{font-size:8px}}

.support-message{white-space:pre-wrap;overflow-wrap:anywhere}
.progress-feature{display:grid;grid-template-columns:1fr 1fr;background:var(--paper);border-radius:24px;margin-bottom:20px;overflow:hidden}.progress-main{padding:30px;text-align:center}.progress-main h2{font-size:22px;margin-bottom:12px}.progress-main>p{font-size:11px;margin:12px 0 0}.progress-practices{padding:35px;border-left:1px solid #e2e5dd}.progress-practices h3{margin-bottom:27px}.progress-gauge{position:relative;width:280px;max-width:100%;margin:0 auto}.progress-gauge svg{display:block;width:100%;height:auto;overflow:visible}.gauge-track,.gauge-fill{fill:none;stroke-width:18;stroke-linecap:round}.gauge-track{stroke:#e0e5da}.gauge-fill{stroke:#799569}.gauge-value{position:absolute;bottom:29px;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:6px}.gauge-value strong{font-size:43px;font-weight:500;letter-spacing:-2px;font-variant-numeric:tabular-nums}.gauge-value span{font-size:10px;color:var(--muted)}.gauge-scale{display:flex;justify-content:space-between;padding:0 20px;font-size:9px;color:var(--muted);margin-top:7px}.practice-breakdown{display:grid;gap:22px}.practice-meter>div{display:flex;justify-content:space-between;gap:15px;font-size:12px;margin-bottom:9px}.practice-meter b{font-weight:500}.practice-meter small{font-size:10px;color:var(--muted)}.practice-meter progress{display:block;appearance:none;width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;background:#e1e5dc;margin-bottom:7px}.practice-meter progress::-webkit-progress-bar{background:#e1e5dc}.practice-meter progress::-webkit-progress-value{background:#81976f;border-radius:8px}.practice-meter progress::-moz-progress-bar{background:#81976f;border-radius:8px}.practice-meter.tahajjud progress::-webkit-progress-value{background:#8297a4}.practice-meter.salawat progress::-webkit-progress-value{background:#baa475}.progress-stats{margin-top:20px}.history-list{display:grid;gap:10px}.history-entry{background:var(--paper);border-radius:15px;padding:0 22px}.history-entry summary{padding:20px 0;display:flex;gap:18px;align-items:center;cursor:pointer;list-style:none;font-size:12px}.history-entry summary>span:first-child{flex:1}.history-entry small{display:block;font-size:10px;margin-top:7px}.history-entry strong{font-size:22px;font-weight:500}.history-counts{display:flex;justify-content:space-between;gap:12px;padding:4px 0 22px;font-size:11px}.history-counts b{display:block;margin-top:7px;font-size:15px;font-weight:500}.ranking-personal{display:flex;justify-content:space-between;align-items:center;background:#eef2e9;border-radius:24px;padding:25px 36px;gap:25px}.ranking-personal .progress-gauge{width:215px;margin:0;flex-shrink:0}.ranking-personal .gauge-value{bottom:25px}.ranking-personal .gauge-value strong{font-size:33px}.ranking-personal .eyebrow{display:block}.ranking-personal h2{font-size:44px;letter-spacing:-2px;margin:10px 0}.ranking-personal p{font-size:12px;color:var(--muted);margin:0}.ranking-personal small{font-size:10px}.ranking-explanation{font-size:11px;color:var(--muted);margin-top:-5px;margin-bottom:20px}.ranking-list{display:grid;gap:12px}.rank-card{border:1px solid var(--line);background:var(--paper);border-radius:18px;padding:0 23px;min-width:0}.rank-card.is-me{background:#f0f4eb;border-color:#a9b79a}.rank-card summary{display:grid;grid-template-columns:40px 36px minmax(0,1fr) auto 16px;align-items:center;gap:14px;padding:21px 0 18px;list-style:none;cursor:pointer}.rank-card summary::-webkit-details-marker,.history-entry summary::-webkit-details-marker{display:none}.rank-number{font-size:22px;font-weight:500;letter-spacing:-.5px}.rank-number small{display:block;font-size:8px;color:var(--muted);font-weight:400;letter-spacing:0;margin-top:3px}.rank-identity{min-width:0}.rank-identity b{font-size:14px;font-weight:500;overflow-wrap:anywhere}.rank-identity small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.rank-score{font-size:23px;font-weight:500;letter-spacing:-1px;white-space:nowrap}.expand-chevron{font-size:17px;color:var(--muted);transition:transform .2s}.rank-card details[open] .expand-chevron,.history-entry[open] .expand-chevron{transform:rotate(180deg)}.rank-track{grid-column:3/5;height:5px;background:#e2e6dc;border-radius:6px;overflow:hidden}.rank-track>span{display:block;height:100%;background:#8da278;border-radius:6px;transform-origin:left}.rank-actions{display:flex;justify-content:flex-end;padding-bottom:16px;margin-top:-3px}.rank-actions .btn{min-height:34px;font-size:10px;padding:7px 14px;background:white}.rank-details{padding:8px 0 24px;border-top:1px solid var(--line)}.rank-details .practice-breakdown{grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;padding-top:18px}.rank-card summary:focus-visible,.history-entry summary:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:7px}
@media(max-width:760px){.progress-feature{grid-template-columns:1fr;border-radius:20px}.progress-main{padding:25px 20px}.progress-main h2{font-size:20px}.progress-gauge{width:265px}.progress-practices{padding:25px 22px;border-left:0;border-top:1px solid #e2e5dd}.progress-practices h3{font-size:16px}.ranking-personal{padding:23px 20px;gap:10px;border-radius:20px}.ranking-personal .eyebrow{font-size:9px;max-width:125px;line-height:1.6}.ranking-personal h2{font-size:35px}.ranking-personal p{font-size:10px}.ranking-personal .progress-gauge{width:155px}.ranking-personal .gauge-value strong{font-size:27px}.ranking-personal .gauge-value{bottom:22px;gap:3px}.ranking-personal .gauge-value span{font-size:8px}.ranking-personal .gauge-scale{font-size:8px;padding:0 12px}.rank-card{padding:0 15px;border-radius:16px}.rank-card summary{grid-template-columns:25px 28px minmax(0,1fr) auto 10px;gap:9px;padding:19px 0 16px}.rank-card .avatar{width:28px;height:28px;font-size:10px}.rank-number{font-size:19px}.rank-number small{font-size:7px}.rank-identity b{font-size:12px}.rank-identity small{font-size:8px}.rank-score{font-size:19px}.rank-track{grid-column:2/5}.rank-details .practice-breakdown{grid-template-columns:1fr;gap:18px}.rank-actions .btn{min-height:40px}.history-entry{padding:0 17px}.history-entry summary{font-size:10px;gap:10px}.history-entry strong{font-size:20px}.history-counts{font-size:10px}.ranking-explanation{font-size:10px}}
@media(prefers-reduced-motion:reduce){.expand-chevron{transition:none}}

.gauge-empty{visibility:hidden}

.counter-actions{display:flex;align-items:center;gap:7px;margin-top:9px;flex-wrap:wrap}.counter-actions .btn{min-height:42px;min-width:51px;padding:8px 13px;background:#fff;font-size:14px}.counter-actions small{font-size:9px;line-height:1.5;flex:1;min-width:80px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.counter-row{display:flex;gap:10px;align-items:stretch}.counter-row .counter{flex:1;min-width:0;background:white;border:1px solid #e0e2dc;border-radius:12px;padding-right:10px;gap:5px}.counter-row .counter input{height:58px;border:0;background:none;font-size:23px;padding:12px;min-width:0}.counter-plus{flex-shrink:0;min-width:66px;min-height:60px;border-radius:13px;background:#476b46;color:#fff;font-size:25px;font-weight:500;touch-action:manipulation}.counter-plus:hover:not(:disabled){background:#385837}.counter-plus:active:not(:disabled){transform:scale(.96)}.counter-help{display:block;font-size:10px;line-height:1.6;margin-top:9px}.mobile-menu-bar{display:none}#mobile-menu{padding:26px;max-width:440px;width:calc(100% - 28px);max-height:85dvh;border-radius:22px;background:#fff}#mobile-menu .dialog-head{align-items:center;margin-bottom:13px}#mobile-menu .close{width:44px;height:44px;font-size:26px}.mobile-menu-links{display:grid;gap:7px}.mobile-menu-links button{min-height:54px;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:12px;background:#f4f5f1;color:var(--ink);font-size:17px;text-align:left}.mobile-menu-links button[aria-current=page]{background:#e8efdf;color:#345135}.mobile-menu-links button>span:last-child{font-size:14px}.menu-user{font-size:12px;color:var(--muted);margin:22px 0 0}#mobile-menu .logout{font-size:14px;min-height:44px}.hamburger{display:flex;flex-direction:column;width:20px;gap:4px}.hamburger i{height:2px;width:100%;background:currentColor;border-radius:1px}
@media(max-width:760px){.sidebar{display:none}.mobile-menu-bar{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}.mobile-menu-bar>span{font-size:15px;font-weight:500}.menu-toggle{display:flex;align-items:center;justify-content:center;gap:11px;background:#252b22;color:white;border-radius:13px;min-height:48px;min-width:120px;padding:12px 18px;font-size:16px}.main{padding-bottom:110px}#mobile-menu{margin:auto auto max(12px,env(safe-area-inset-bottom));}.counter-plus{min-width:72px;min-height:62px}.counter-row .counter input{height:60px}}

.ui-icon{width:19px;height:19px;display:inline-block;vertical-align:middle;flex-shrink:0;pointer-events:none}.close{display:grid;place-items:center;color:var(--ink);appearance:none;-webkit-appearance:none}.close .ui-icon{width:21px;height:21px}.mobile-menu-links .ui-icon{width:20px;height:20px;color:#747b70}.mobile-menu-links [aria-current=page] .ui-icon{color:#345135}.sidebar-bottom .logout .ui-icon{width:20px;height:20px}.btn .ui-icon{width:16px;height:16px}

.autosave{display:flex;align-items:center;gap:12px;font-size:12px;color:#42623c}.autosave [hidden]{display:none}
