
/* ═══ DASHBOARD REFRESH (Nov 2026) ═══
   Same cards, same order. Brief gets the weather + chips, Up Next is
   grouped by day with a weather icon per event, a Family Chat card shows
   only when there are unread messages, the Weather card is a "mini sky"
   (Apple WeatherKit, same feed as the Weather tool), a Reminders row
   (birthdays etc.) shows what the server sends, Weight says what the
   number means, Activity reads "1,300 of 2,000 cal", and Quick Access
   matches the iPhone. Undo: re-upload the previous dashboard/index.html. */

/* Stacked cards on phones keep their own height (they used to share it
   equally, which would squeeze the taller weather card) */
@media(max-width:760px){.right-stack>.card{flex:none}}
body.nr-app .right-stack>.card{flex:none}

/* Brief chips */
.brief-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px;position:relative;z-index:1}
.brief-chips[hidden]{display:none}
.brief-chip{display:inline-flex;align-items:center;gap:5px;font-size:13px;font-weight:700;color:#fff;background:rgba(255,255,255,.16);border-radius:20px;padding:5px 11px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brief-chip:hover{background:rgba(255,255,255,.26)}
body.nr-app .brief-chips{margin-top:9px;gap:6px}
body.nr-app .brief-chip{font-size:11.5px;padding:4px 9px}

/* Up Next grouped by day */
.ev-day{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--sage);margin:12px 4px 0}
.ev-day:first-child{margin-top:0}
.ev-day.f{color:var(--muted)}
.ev .wx{margin-left:auto;flex:none;font-size:13.5px;font-weight:700;color:var(--ink);white-space:nowrap}
.ev .wx i{font-style:normal;margin-right:4px}
body.nr-app .ev-day{font-size:10.5px;margin:7px 0 1px}
body.nr-app .ev-day:first-child{margin-top:0}
body.nr-app .ev .wx{font-size:12px;color:#1A293C}

/* Family Chat card (only with unread messages) */
.card.chatc{display:flex;align-items:center;gap:12px}
.card.chatc[hidden]{display:none!important}
.chatc .av{width:40px;height:40px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:16px;background:var(--sage)}
.chatc .tx{min-width:0;flex:1}
.chatc .t{font-size:15px;font-weight:700}
.chatc .s{font-size:13.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.chatc .nb{flex:none;background:#FF2D55;color:#fff;font-size:12px;font-weight:800;border-radius:12px;padding:4px 10px;white-space:nowrap}
body.nr-app .chatc{gap:10px}
body.nr-app .chatc .av{width:34px;height:34px;font-size:14px}
body.nr-app .chatc .t{font-size:14px;color:#1A293C}
body.nr-app .chatc .s{font-size:12px;color:#6B6D68}
body.nr-app .chatc .nb{font-size:11px;padding:3px 8px}

/* Mini sky weather card */
.card.wx-sky{position:relative;overflow:hidden;color:#fff;border:none;background:linear-gradient(180deg,var(--sk-top,#2C6FB8) 0%,var(--sk-bot,#6AA6DD) 100%);text-shadow:0 1px 2px rgba(0,0,0,.14)}
.card.wx-sky[data-sky="sunny"]{--sk-top:#2C6FB8;--sk-bot:#6AA6DD}
.card.wx-sky[data-sky="cloudy"]{--sk-top:#4F6A87;--sk-bot:#879DB5}
.card.wx-sky[data-sky="rainy"]{--sk-top:#34465C;--sk-bot:#5E748F}
.card.wx-sky[data-sky="storm"]{--sk-top:#232833;--sk-bot:#474F5F}
.card.wx-sky[data-sky="snow"]{--sk-top:#4A6B91;--sk-bot:#85A0BF}
.card.wx-sky[data-sky="mist"]{--sk-top:#5C6B7B;--sk-bot:#8E9BA9}
.card.wx-sky[data-sky="night"]{--sk-top:#121A33;--sk-bot:#313D66}
.card.wx-sky[data-sky="nightwet"]{--sk-top:#1A212E;--sk-bot:#3A4556}
.wsx-in{position:relative;z-index:1}
.wsx-top{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:14px;align-items:center}
.wsx-now{display:grid;grid-template-columns:auto auto;column-gap:10px;align-items:center;padding-right:14px;border-right:1px solid rgba(255,255,255,.28)}
.wsx-ico{grid-row:1/3;font-size:34px;line-height:1}
.wsx-temp{font-size:40px;font-weight:600;line-height:1}
.wsx-cond{font-size:13px;font-weight:600;color:rgba(255,255,255,.9);white-space:nowrap;margin-top:3px}
.wsx-strip{display:flex}
.wsx-slot{flex:1;text-align:center;min-width:0}
.wsx-slot .t{font-size:11px;font-weight:700;color:rgba(255,255,255,.88);white-space:nowrap}
.wsx-slot .i{font-size:17px;line-height:22px;margin-top:3px}
.wsx-slot .p{font-size:10.5px;font-weight:800;color:#D6ECFF;height:13px;line-height:13px}
.wsx-slot .d{font-size:14px;font-weight:700}
.wsx-note{margin-top:12px}
.wsx-note .h{font-size:14.5px;font-weight:700}
.wsx-note .b{font-size:13px;color:rgba(255,255,255,.9);margin-top:3px;line-height:1.4}
.wsx-foot{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:11px;color:rgba(255,255,255,.75)}
.wsx-foot a{color:rgba(255,255,255,.88);text-decoration:underline}
.wsx-foot .more{margin-left:auto;font-size:13px;font-weight:800;color:#fff;text-decoration:none}
.wsx-drops{position:absolute;left:0;right:0;top:-46px;bottom:0;pointer-events:none;background:repeating-linear-gradient(105deg,transparent 0 22px,rgba(255,255,255,.16) 22px 23.5px,transparent 23.5px 46px);-webkit-mask-image:linear-gradient(180deg,#000 30%,transparent 95%);mask-image:linear-gradient(180deg,#000 30%,transparent 95%);animation:wsxDrops 1.4s linear infinite}
@keyframes wsxDrops{from{transform:translate(0,0)}to{transform:translate(-12px,46px)}}
body.nr-app .card.wx-sky{display:block}
body.nr-app .wsx-top{column-gap:12px}
body.nr-app .wsx-now{column-gap:9px;padding-right:12px}
body.nr-app .wsx-ico{font-size:30px}
body.nr-app .wsx-temp{font-size:28px}
body.nr-app .wsx-cond{font-size:11.5px;margin-top:1px}
body.nr-app .wsx-slot .t{font-size:9.5px;font-weight:600}
body.nr-app .wsx-slot .i{font-size:15px;line-height:20px}
body.nr-app .wsx-slot .p{font-size:9.5px;height:12px;line-height:12px}
body.nr-app .wsx-slot .d{font-size:12px}
body.nr-app .wsx-note{margin-top:10px}
body.nr-app .wsx-note .h{font-size:13px}
body.nr-app .wsx-note .b{font-size:11.5px;line-height:1.35}
/* Mini sky v2 (Nov 4 2026): soft daytime skies with dark text, faint big
   weather picture in the corner. Night keeps the navy sky + white text. */
.card.wx-sky[data-sky="sunny"]{--sk-top:#CBE6FB;--sk-bot:#FFF3D1}
.card.wx-sky[data-sky="cloudy"]{--sk-top:#D9E2EC;--sk-bot:#F2F5F8}
.card.wx-sky[data-sky="mist"]{--sk-top:#DDE3E9;--sk-bot:#F4F6F8}
.card.wx-sky[data-sky="rainy"]{--sk-top:#C3D0DE;--sk-bot:#E7ECF2}
.card.wx-sky[data-sky="storm"]{--sk-top:#B4C0CE;--sk-bot:#DFE5EC}
.card.wx-sky[data-sky="snow"]{--sk-top:#DCE5EF;--sk-bot:#F7F9FC}
.card.wx-sky[data-sky="night"]{--sk-top:#1E2C4A;--sk-bot:#3A4D74}
.card.wx-sky{background:linear-gradient(160deg,var(--sk-top) 0%,var(--sk-bot) 100%)}
.card.wx-sky::after{content:attr(data-art);position:absolute;right:-12px;bottom:-30px;font-size:104px;line-height:1;opacity:.28;pointer-events:none;z-index:0}
.card.wx-sky:not([data-sky^="night"]){color:#1A293C;text-shadow:none}
.card.wx-sky:not([data-sky^="night"]) .wsx-now{border-right-color:rgba(0,0,0,.09)}
.card.wx-sky:not([data-sky^="night"]) .wsx-cond,
.card.wx-sky:not([data-sky^="night"]) .wsx-slot .t,
.card.wx-sky:not([data-sky^="night"]) .wsx-note .b,
.card.wx-sky:not([data-sky^="night"]) .wsx-foot{color:#4E5A66}
.card.wx-sky:not([data-sky^="night"]) .wsx-slot .p{color:#1F6FC2}
.card.wx-sky:not([data-sky^="night"]) .wsx-note .h{color:#2E6B4F}
.card.wx-sky.wsx-wet:not([data-sky^="night"]) .wsx-note .h{color:#1F6FC2}
.card.wx-sky:not([data-sky^="night"]) .wsx-foot a,
.card.wx-sky:not([data-sky^="night"]) .wsx-foot .more{color:#2E6B4F}
.card.wx-sky:not([data-sky^="night"]) .wsx-drops{background:repeating-linear-gradient(105deg,transparent 0 22px,rgba(47,139,234,.16) 22px 23.5px,transparent 23.5px 46px)}
.card.wx-sky[data-sky^="night"] .wsx-note .h{color:#FFE08A}
/* Town under the condition, e.g. "Orlando, FL" (Nov 4 2026) */
.wsx-ico{grid-row:1/4}
.wsx-place{grid-column:2;font-size:11.5px;font-weight:600;color:rgba(255,255,255,.8);white-space:nowrap;margin-top:1px}
.card.wx-sky:not([data-sky^="night"]) .wsx-place{color:#6B7480}
body.nr-app .wsx-place{font-size:10.5px}
/* White cloud emoji vanish on light skies: give them a soft gray edge */
.card.wx-sky:not([data-sky^="night"]) .wsx-ico,
.card.wx-sky:not([data-sky^="night"]) .wsx-slot .i{filter:drop-shadow(0 0 .6px rgba(55,70,92,.75)) drop-shadow(0 1px 1.5px rgba(55,70,92,.3))}
.card.wx-sky:not([data-sky^="night"])::after{filter:drop-shadow(0 0 1.5px rgba(55,70,92,.5))}
@media (prefers-reduced-motion:reduce){.wsx-drops{animation:none}}
body.nr-app .wsx-foot{margin-top:8px;font-size:10px}
body.nr-app .wsx-foot .more{font-size:12px}
/* Phone browsers get the same compact sizes as the app */
@media(max-width:600px){
  .wsx-top{column-gap:12px}
  .wsx-now{column-gap:9px;padding-right:12px}
  .wsx-ico{font-size:30px}
  .wsx-temp{font-size:28px}
  .wsx-cond{font-size:11.5px;margin-top:1px}
  .wsx-slot .t{font-size:9.5px;font-weight:600}
  .wsx-slot .i{font-size:15px;line-height:20px}
  .wsx-slot .p{font-size:9.5px;height:12px;line-height:12px}
  .wsx-slot .d{font-size:12px}
  .wsx-note{margin-top:10px}
  .wsx-note .h{font-size:13px}
  .wsx-note .b{font-size:11.5px;line-height:1.35}
  .wsx-foot{margin-top:8px;font-size:10px}
  .wsx-foot .more{font-size:12px}
}

/* Reminders row (birthdays and other heads-ups from the server) */
.rem{grid-column:1/-1;display:flex;gap:12px;overflow-x:auto;padding:2px;margin:-2px;scrollbar-width:none}
.rem[hidden]{display:none!important}
.rem::-webkit-scrollbar{display:none}
.rem-t{flex:1 0 220px;max-width:360px;background:#fff;border-radius:16px;padding:12px 14px;box-shadow:var(--shadow);border:1px solid var(--line);border-left:4px solid var(--rc,#F2A93B);display:block}
.rem-t .h{font-size:14px;font-weight:700}
.rem-t .b{font-size:12.5px;color:var(--muted);margin-top:3px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.nr-app .rem{gap:10px}
body.nr-app .rem-t{flex:0 0 212px;border:none;border-left:4px solid var(--rc,#F2A93B);box-shadow:0 4px 10px rgba(0,0,0,.06);padding:11px 12px}
body.nr-app .rem-t .h{font-size:13px;color:#1A293C}
body.nr-app .rem-t .b{font-size:11.5px;color:#6B6D68}
/* Nov 12 2026: tiles fill the card. One tile = full width; on phones and in
   the apps several tiles stack full width instead of a half-width scroll row. */
#remRow .rem-t:only-child{flex:1 1 100%;max-width:none}
@media (max-width:760px){#remRow.rem{flex-direction:column;overflow-x:visible}#remRow .rem-t{flex:none;max-width:none;width:auto}}
body.nr-app #remRow.rem{flex-direction:column;overflow-x:visible}
body.nr-app #remRow .rem-t{flex:none;max-width:none;width:auto}

/* Weight: one slim line until there's a weigh-in (app look) */
body.nr-app .card.weight.is-empty{grid-column:1/-1;display:flex;align-items:center;padding:12px 14px}
body.nr-app .card.weight.is-empty .card-label{display:none}
body.nr-app .card.weight.is-empty .wt-empty{flex-direction:row;align-items:center;gap:10px;width:100%;padding:0}
body.nr-app .card.weight.is-empty .wt-empty b{font-size:14px;color:#1A293C}
body.nr-app .card.weight.is-empty .wt-empty b::before{content:"\2696\FE0F  "}
body.nr-app .card.weight.is-empty .wt-empty a{margin-left:auto;font-size:12.5px;white-space:nowrap}
body.nr-app .dash-grid.wt-none .activity{grid-column:1/-1}

/* Weight: the change wraps under the number when the card is narrow */
.wt-top{flex-wrap:wrap}
.wt-delta{white-space:nowrap}
body.nr-app .wt-top{row-gap:6px}
body.nr-app .wt-delta{margin-left:0}

/* Activity: calories + steps rings, body fat and fat as small boxes */
.lg .v .of{font-weight:600;color:var(--muted);font-size:12.5px}
.act-mini{display:flex;gap:7px;margin-top:4px}
.act-mini span{flex:1;background:#F3F4F1;border-radius:10px;padding:6px 8px;font-size:11px;color:var(--muted);text-align:center;line-height:1.25;white-space:nowrap}
.act-mini b{display:block;font-size:14px;color:var(--ink)}
body.nr-app .activity:not(.is-locked) .act-row{flex-direction:column;align-items:stretch;gap:8px;margin-top:0}
body.nr-app .activity:not(.is-locked) .rings{width:92px;height:92px;margin:0 auto}
body.nr-app .activity:not(.is-locked) .lg>span:last-child{flex-direction:row;align-items:baseline;gap:4px}
body.nr-app .activity:not(.is-locked) .lg .dot{margin-top:0;align-self:center}
body.nr-app .lg .v .of{font-size:11px;color:#6B6D68}
body.nr-app .act-mini span{font-size:10px;padding:5px 6px}
body.nr-app .act-mini b{font-size:13px;color:#1A293C}

/* Quick Access: unread badge on Chat */
.qa .qa-badge{position:absolute;top:6px;right:8px;background:#FF2D55;color:#fff;font-size:10.5px;font-weight:800;border-radius:10px;padding:1px 6px;line-height:1.4}
body.nr-app .qa .qa-badge{top:-5px;right:calc(50% - 30px)}

/* Phone browsers: Karl waits in the bottom-right corner, and the page
   leaves room under the last card so he never hides it. (The apps
   don't show this Karl.) */
@media(max-width:600px){
  body.nr-home #helpbot-toggle{margin-left:auto!important;margin-right:-6px!important;width:60px!important}
  body.nr-home .dash-wrap{padding-bottom:104px}
}
