/* Personal hub: private details together, with compact existing shortcuts. */
:is(#dashboard-standard,#personal-space) .simple-heading{margin-bottom:18px}
:is(#dashboard-standard,#personal-space) .simple-heading .eyebrow{margin:0 0 7px}
:is(#dashboard-standard,#personal-space) .simple-heading h1{font-size:clamp(30px,7.5vw,44px);line-height:1.15;margin:0 0 8px}
:is(#dashboard-standard,#personal-space) .simple-heading>p:last-child{font-size:16px;line-height:1.5;margin:0}
:is(#dashboard-standard,#personal-space) .personal-hub-card{padding:18px;border-radius:24px;background:linear-gradient(125deg,#fbe5d5 0%,#f5dce8 49%,#e7def2 100%);border:1px solid #e2cdd9;box-shadow:0 6px 20px #81526908}
:is(#dashboard-standard,#personal-space) .hub-identity{display:flex;align-items:center;gap:12px}
:is(#dashboard-standard,#personal-space) .hub-portrait{width:58px;height:58px;flex:0 0 58px;border-radius:50%;overflow:hidden;border:2px solid #fff9;background:#fff6;color:#80566e;font:26px Georgia,serif;padding:0;cursor:pointer}
:is(#dashboard-standard,#personal-space) .hub-portrait img{display:block;width:100%;height:100%;object-fit:cover}
:is(#dashboard-standard,#personal-space) .hub-identity-copy{min-width:0;flex:1}
:is(#dashboard-standard,#personal-space) .hub-private{display:block;color:#79596e;font-size:10px;font-weight:700;letter-spacing:1.1px;margin-bottom:4px}
:is(#dashboard-standard,#personal-space) #home-weight-heading{font:normal clamp(23px,6vw,30px)/1.15 Georgia,serif;overflow-wrap:anywhere;margin:0 0 3px}
:is(#dashboard-standard,#personal-space) .hub-identity-copy>[data-personal-country]{font-size:12px;color:#725d6d}
:is(#dashboard-standard,#personal-space) .hub-edit{font-size:12px;line-height:1.4;text-align:right;max-width:62px;padding:7px 0;flex-shrink:0}
:is(#dashboard-standard,#personal-space) .hub-details{display:flex;gap:24px;border-top:1px solid #fff9;margin:14px 0 12px;padding-top:12px}
:is(#dashboard-standard,#personal-space) .hub-details>div{display:flex;gap:7px;align-items:baseline;flex-wrap:wrap}
:is(#dashboard-standard,#personal-space) .hub-details dt{font-size:12px;color:#795f71}
:is(#dashboard-standard,#personal-space) .hub-details dd{font-size:14px;font-weight:600;margin:0;color:#54424f}
:is(#dashboard-standard,#personal-space) .hub-weights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
:is(#dashboard-standard,#personal-space) .hub-weights>div{padding:10px 8px;border-radius:14px;background:#fff7;min-width:0}
:is(#dashboard-standard,#personal-space) .hub-weights .dashboard-weight-start{background:#fff5}
:is(#dashboard-standard,#personal-space) .hub-weights .dashboard-weight-now{background:#fff9}
:is(#dashboard-standard,#personal-space) .hub-weights .hub-weight-goal{background:#f8f3ff99}
:is(#dashboard-standard,#personal-space) .hub-weights .dashboard-label{font-size:12px;line-height:1.4;margin:0 0 4px;color:#705b6a}
:is(#dashboard-standard,#personal-space) .hub-weights .dashboard-weight-number{display:flex;gap:3px;align-items:baseline;font:normal clamp(22px,6vw,32px)/1.2 Georgia,serif;color:#594350;flex-wrap:wrap}
:is(#dashboard-standard,#personal-space) .hub-weights .dashboard-weight-number small{font:12px/1.2 Inter,Arial,sans-serif;color:#795f71}
:is(#dashboard-standard,#personal-space) .hub-progress-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}
:is(#dashboard-standard,#personal-space) .hub-progress-footer .dashboard-change{font-size:13px;line-height:1.4;margin:0}
:is(#dashboard-standard,#personal-space) .hub-progress-footer .dashboard-progress-link{font-size:13px;white-space:nowrap;margin:0}
:is(#dashboard-standard,#personal-space) .member-dashboard-grid{gap:12px}
:is(#dashboard-standard,#personal-space) .home-checkin-card,:is(#dashboard-standard,#personal-space) .home-activity-card,:is(#dashboard-standard,#personal-space) .home-body-preview,:is(#dashboard-standard,#personal-space) .home-meal-link{padding:15px 18px!important}
:is(#dashboard-standard,#personal-space) .home-checkin-card p,:is(#dashboard-standard,#personal-space) .home-body-preview p,:is(#dashboard-standard,#personal-space) .home-meal-link em{font-size:13px;line-height:1.5;margin-top:5px}
:is(#dashboard-standard,#personal-space) #home-checkin-card h2,:is(#dashboard-standard,#personal-space) .home-activity-card h2,:is(#dashboard-standard,#personal-space) .home-body-preview h2,:is(#dashboard-standard,#personal-space) .home-meal-link strong{font-size:23px;line-height:1.2}
@media(min-width:760px){:is(#dashboard-standard,#personal-space) .personal-hub-card{grid-column:1/-1}:is(#dashboard-standard,#personal-space) .hub-edit{max-width:none}:is(#dashboard-standard,#personal-space) .hub-details{gap:32px}:is(#dashboard-standard,#personal-space) .hub-weights .dashboard-weight-number{font-size:34px}}
@media(max-width:350px){:is(#dashboard-standard,#personal-space) .personal-hub-card{padding:14px}:is(#dashboard-standard,#personal-space) .hub-identity{gap:8px}:is(#dashboard-standard,#personal-space) .hub-portrait{width:46px;height:46px;flex-basis:46px}:is(#dashboard-standard,#personal-space) .hub-private{font-size:9px;letter-spacing:.7px}:is(#dashboard-standard,#personal-space) .hub-details{gap:14px}:is(#dashboard-standard,#personal-space) .hub-progress-footer{align-items:flex-start;flex-direction:column;gap:6px}}
/* BMI stays compact; step history has one quiet chart and one entry row. */
:is(#dashboard-standard,#personal-space) .hub-details{gap:18px;justify-content:space-between;margin-bottom:6px}
:is(#dashboard-standard,#personal-space) .hub-details>div{display:block}
:is(#dashboard-standard,#personal-space) .hub-details dd{margin-top:3px}
:is(#dashboard-standard,#personal-space) .hub-bmi-note{font-size:11px;line-height:1.5;color:#735a6c;margin:0 0 12px}
:is(#dashboard-standard,#personal-space) .hub-bmi-note button{font-size:inherit;padding:0;text-decoration:underline}
:is(#dashboard-standard,#personal-space) .hub-steps-card{grid-column:1/-1;min-width:0;border:1px solid #e5d7e0;border-radius:22px;background:linear-gradient(135deg,#fffaf5,#f8f1f7);padding:18px;box-shadow:0 4px 15px #80556905}
.hub-steps-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hub-steps-heading .eyebrow{font-size:9px;letter-spacing:1.2px;margin:0 0 4px;color:#8a6b80}
.hub-steps-heading h2{font:normal 26px/1.2 Georgia,serif;margin:0;color:#5f4558}
.hub-steps-private{font-size:11px;background:#eee4f3;border-radius:20px;padding:5px 10px;color:#806585}
.hub-steps-week{display:flex;align-items:center;justify-content:center;gap:15px;margin:10px 0 0}
.hub-steps-week p{font-size:13px;color:#735c6d;margin:0}
.hub-steps-week button{font:24px/1 Arial,sans-serif;color:#80556d;background:transparent;border:0;min-width:36px;min-height:36px;cursor:pointer;border-radius:50%}
.hub-steps-week button:disabled{opacity:.3;cursor:default}
.hub-steps-chart svg{display:block;width:100%;height:auto;max-height:280px;overflow:visible}
.steps-axis{font:14px Inter,Arial,sans-serif;fill:#85727e}
.steps-day-label{font:15px Inter,Arial,sans-serif;fill:#6e5969}
.steps-value{font:600 14px Inter,Arial,sans-serif;fill:#75546b}
.hub-steps-total{font-size:12px;color:#806d7a;margin:0 0 14px}
.hub-steps-form{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:8px;align-items:end}
.hub-steps-form label{display:block;font-size:12px;font-weight:500;color:#705768;margin:0}
.hub-steps-form select,.hub-steps-form input{display:block;width:100%;min-width:0;box-sizing:border-box;height:44px;margin:5px 0 0;padding:8px;border:1px solid #ddcdd7;border-radius:11px;background:#fffdfb;color:#54424f;font:14px Inter,Arial,sans-serif}
.hub-steps-form .button{height:44px;min-height:44px;padding:8px 13px;border-radius:11px;font-size:13px}
.hub-steps-status{font-size:12px;line-height:1.5;margin:8px 0 0;color:#79536d}
.hub-steps-status:empty{display:none}
@media(max-width:350px){.hub-steps-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hub-steps-form>.button{grid-column:1/-1}.hub-steps-heading h2{font-size:24px}}

/* Home holds only the entry panel. The private hub has its own screen. */
.personal-space-content{display:grid;gap:14px;max-width:760px;margin:0 auto}
.home-space-link{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #e2cdd9;border-radius:22px;background:linear-gradient(120deg,#fbe5d5,#f5dce8 50%,#e7def2);color:#604859;text-decoration:none}
.home-space-portrait{width:52px;height:52px;flex:0 0 52px;border-radius:50%;overflow:hidden;background:#fff7;display:grid;place-items:center;font:24px Georgia,serif}
.home-space-portrait img{width:100%;height:100%;object-fit:cover}
.home-space-link>span:nth-child(2){flex:1;min-width:0}
.home-space-link small{display:block;font-size:9px;letter-spacing:1px;margin-bottom:5px;color:#805e75}
.home-space-link strong{display:block;font:normal 27px/1.2 Georgia,serif;overflow-wrap:anywhere}
.home-space-link em{display:block;font-size:12px;font-style:normal;line-height:1.5;margin-top:5px;color:#806a79}
.home-space-arrow{font-size:24px}
#personal-space>.simple-heading{margin-bottom:18px}
/* V117: a single hub owns the progress tools. */
#personal-space .hub-weight-details{min-width:0;border:1px solid #e2cedb;border-radius:20px;background:#fffaf6;overflow:hidden}
#personal-space .hub-weight-details>summary{padding:17px 18px;min-height:50px;box-sizing:border-box;font:22px/1.3 Georgia,serif;color:#6d4c64;cursor:pointer;background:linear-gradient(110deg,#f7e4e9,#eee5f4)}
#personal-space .hub-weight-details>.progress-detail{padding:16px}
#personal-space .hub-weight-details .progress-panel{border:0;box-shadow:none;background:transparent;padding:0;margin:0 0 16px}
#personal-space .hub-weight-details .panel-top h2{font-size:21px;margin:0}
#personal-space .hub-weight-details .progress-caption{font-size:12px;margin:12px 0}
#personal-space .graph-range{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:12px 0;font-size:13px}
#personal-space .graph-range select{width:auto;min-height:40px;padding:8px;margin:0}
#personal-space .weight-history summary{font-size:13px;min-height:40px;align-content:center}
#personal-space .chart-note,#personal-space .chart-labels{font-size:12px;line-height:1.5}
#personal-space .hub-progress-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
#personal-space .hub-progress-tools>a{margin:0;min-width:0}
#personal-space .hub-progress-tools .home-body-preview{grid-column:1/-1}
#personal-space .hub-progress-tools .button{grid-column:1/-1;font-size:14px}
#personal-space .hub-progress-tools .home-checkin-card,#personal-space .hub-progress-tools .home-activity-card{padding:15px!important}
#personal-space .hub-progress-tools .home-panel-heading{grid-template-columns:1fr 18px;gap:8px}
#personal-space .hub-progress-tools .home-panel-icon{display:none}
#personal-space .hub-progress-tools h2{font-size:23px!important}
#personal-space .hub-progress-tools p{font-size:12px;line-height:1.5;margin:6px 0 0}
#personal-space .simple-note,#personal-space .progress-week-details{font-size:12px;line-height:1.6;margin:12px 0}
@media(max-width:350px){#personal-space .hub-progress-tools{grid-template-columns:1fr}}

/* V119: distinct actions with no shared upload box. Calendar and check-in cards are withdrawn. */
#personal-space .hub-progress-tools{grid-template-columns:1fr}
.hub-contribution-entries{display:grid;gap:12px}
.hub-entry{display:flex;align-items:center;gap:12px;padding:17px;border:1px solid #e5cfdc;border-radius:20px;text-decoration:none;color:#65495e;min-width:0}
.hub-entry-recipes{background:#f9e7d7}.hub-entry-words{background:#f6e1e9}.hub-entry-club{background:#ece3f5}
.hub-entry-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;background:#fff7;border-radius:13px;font:30px/1 Georgia,serif;color:#90647e}
.hub-entry-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.hub-entry-club-mark{font:700 10px/1 Inter,Arial,sans-serif;letter-spacing:.5px}
.hub-entry>span:nth-child(2){flex:1;min-width:0}
.hub-entry strong{display:block;font:25px/1.2 Georgia,serif;overflow-wrap:anywhere}
.hub-entry small{display:block;font-size:12px;line-height:1.5;margin-top:5px;color:#806b7b}
.hub-entry-arrow{flex:0 0 18px;font-size:23px}
@media(max-width:350px){.hub-entry{padding:14px;gap:9px}.hub-entry strong{font-size:22px}}

/* V120: one scales tile opens the existing weight entry and graph. */
#personal-space .hub-weight-details{border:0;background:transparent;overflow:visible}
#personal-space .hub-weight-details>summary{list-style:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:176px;height:176px;padding:14px;border:1px solid #dec7d7;border-radius:24px;background:linear-gradient(135deg,#fae4d4,#f3dfe9 55%,#e9def3);box-shadow:0 5px 18px #8d617c0c}
#personal-space .hub-weight-details>summary::-webkit-details-marker{display:none}
#personal-space .hub-weight-details>summary:focus-visible{outline:3px solid #85576f;outline-offset:4px}
.weigh-scale{display:block;position:relative;width:140px;height:110px}
.weigh-scale svg{display:block;width:100%;height:100%}
.weigh-scale-reading{position:absolute;left:40px;top:17px;width:60px;height:30px;display:flex;align-items:center;justify-content:center;gap:3px;font:600 17px/1 Arial,sans-serif;font-variant-numeric:tabular-nums;color:#644c60}
.weigh-scale-reading small{font:10px/1 Arial,sans-serif}
.weigh-tile-label{font:600 16px/1.2 Arial,sans-serif}
#personal-space .hub-weight-details[open]>.progress-detail{margin-top:14px;border:1px solid #e2cedb;border-radius:20px;background:#fffaf6}
