/* ===== v836 layout pass: one page width and one side margin on every screen, no dead header strip,
   no stranded cards. Loaded after newlook.css. Switch off with ?look=classic (same as the Sage look). ===== */

html[data-look]{--pg:1320px;--pad:clamp(16px,2.4vw,40px);--navh:68px}

/* ---------- 1. Header strip: the status pills move up into the top navigation ---------- */
@media(min-width:1100px){
  html[data-look] body #apphd{
    position:fixed;top:0;height:var(--navh);z-index:45;
    right:calc(clamp(16px,3vw,44px) + 156px);left:auto;
    padding:0!important;margin:0;display:flex;align-items:center;justify-content:flex-end;gap:8px;
    pointer-events:none}
  html[data-look] body #apphd>*{pointer-events:auto}
  html[data-look] body #apphd>.flex:first-child,html[data-look] body #apphd #tabbar{display:none}
  html[data-look] body #apphd>.flex:last-child{margin:0}
  /* nav: logo, then the tabs from the left; labels only on the open tab until there is real room */
  html[data-look] #app-shell #sidebar .sb-nav{justify-content:flex-start;margin-left:12px}
  html[data-look] #app-shell #sidebar{z-index:40}
}
@media(min-width:1200px) and (max-width:1699px){
  html[data-look] #app-shell #sidebar .sb-nav .sb-item:not(.on) .sb-label{display:none}
  html[data-look] #app-shell #sidebar .sb-nav .sb-item{padding:.5rem .7rem}
}
@media(min-width:1700px){
  html[data-look] #app-shell #sidebar .sb-nav{justify-content:flex-start}
}
/* narrower windows: the pills stay a slim single row, right aligned, no empty band */
@media(min-width:768px) and (max-width:1099px){
  html[data-look] body #apphd{padding:.3rem var(--pad) 0!important;min-height:0;justify-content:flex-end}
  html[data-look] body #apphd>.flex:first-child,html[data-look] body #apphd #tabbar{display:none}
}
/* signed-in / backup strip sits flush under the navigation */
html[data-look] .wb{margin:0;padding:.4rem var(--pad)}

/* ---------- 2. One width, one margin ---------- */
@media(min-width:768px){
  html[data-look] #app-shell main>section:not(#sec-notes){padding:var(--pad)}
  html[data-look] #app-shell main>section#sec-chat{padding:6px var(--pad) var(--pad)!important}
  html[data-look] #app-shell main>section:not(#sec-notes)>:is(.hm,.sc-tab,#cmPage,#labv,#cdv,.max-w-4xl,.max-w-3xl,.max-w-5xl){
    width:100%;max-width:var(--pg)!important;margin-inline:auto}
  html[data-look] #sec-store #cmPage{padding:.4rem 0 3rem}
  html[data-look] .hm{max-width:var(--pg)}
  html[data-look] #sec-health>*,html[data-look] #sec-sched>*{max-width:var(--pg);margin-inline:auto}
  html[data-look] #lib{padding:var(--pad)}
  html[data-look] #lib .max-w-4xl{max-width:var(--pg)!important}
  /* segmented switches (Study Lab / Flashcards, Chat / Schedule, Time tracker / Tasks) sit tight to the page */
  html[data-look] .lseg,html[data-look] .ttseg,html[data-look] .scseg{margin-top:0;margin-bottom:.85rem}
}

/* ---------- 3. Study Lab: bigger tiles, banner and title line up with the grid ---------- */
html[data-look] .lbw .lbh{padding-inline:0}
html[data-look] #okbar{margin:0 0 1rem}
html[data-look] .lb-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));gap:1.1rem}
html[data-look] .lb-grid>*{min-height:200px}
html[data-look] .lbh-hd{margin-bottom:1.1rem}

/* ---------- 4. Notes library: folders fill the page width ---------- */
html[data-look] #lib .a4grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr));gap:28px 24px;justify-items:center}
html[data-look] #lib .a4grid>.a4wrap{width:100%;max-width:230px}
html[data-look] #lib .l4q{max-width:none}

/* ---------- 5. Chat: a proper rounded panel on the page grid ---------- */
@media(min-width:768px){
  html[data-look] #sec-chat .ch-app{width:100%;max-width:var(--pg);margin-inline:auto;border:1px solid var(--k-line);border-radius:24px;
    height:calc(100% - 3.6rem);min-height:24rem}
  html[data-look] #sec-chat .ch-app .ch-side{width:clamp(300px,30%,400px)}
}

/* ---------- 6. Wide screens: let the main columns use the room ---------- */
@media(min-width:1500px){
  html[data-look]{--pg:1440px}
}

/* ---------- 7. Plain text lists become real components ---------- */
/* Health > Jarvis care: four tiles with an icon badge, a title, one line of text and the action */
html[data-look] #hl-care{padding:1.25rem}
html[data-look] #hl-care.hl-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html[data-look] #hl-care>.hl-t,html[data-look] #hl-care>.hl-note{grid-column:1/-1}
html[data-look] #hl-care>.hl-t{margin:0 0 2px}
html[data-look] #hl-care>.hl-note{margin:2px 0 0;opacity:.65;font-size:.78rem}
html[data-look] #hl-care .cr{position:relative;display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid var(--k-line)!important;border-radius:20px;background:var(--sbtn);min-height:104px;transition:background .15s,border-color .15s}
html[data-look] #hl-care .cr:hover{background:var(--sbh)}
html[data-look] #hl-care .cr::before{content:"";flex:none;width:42px;height:42px;border-radius:14px;background:rgba(var(--a1r),.16);
  -webkit-mask:none;mask:none;background-repeat:no-repeat;background-position:center;background-size:22px;
  background-image:var(--ci,none)}
html[data-look] #hl-care .cr>div{min-width:0}
html[data-look] #hl-care .cr b{font-size:1rem;margin-bottom:2px}
html[data-look] #hl-care .cr p{font-size:.88rem;line-height:1.45;margin:.1rem 0 .6rem;opacity:.8}
html[data-look] #hl-care .cr .hl-sw{margin-left:auto;align-self:center;flex:none}
html[data-look] #hl-care .cr.k-burn{--ci:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e7e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2s5 4.5 5 10a5 5 0 0 1-10 0c0-2 1-3.5 2-4.5 0 2 1 3 2 3 0-3-1-6 1-8.5z'/%3E%3C/svg%3E")}
html[data-look] #hl-care .cr.k-reb{--ci:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h18M13 6l6 6-6 6'/%3E%3C/svg%3E")}
html[data-look] #hl-care .cr.k-nap{--ci:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 13A9 9 0 1 1 11 3a7 7 0 0 0 10 10z'/%3E%3C/svg%3E")}
html[data-look] #hl-care .cr.k-best{--ci:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fbf8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
html[data-look] #hl-care .cr.k-brk{--ci:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 8h1a4 4 0 0 1 0 8h-1M3 8h14v7a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4z'/%3E%3C/svg%3E")}
@media(max-width:700px){html[data-look] #hl-care.hl-card{grid-template-columns:minmax(0,1fr)}}

/* every card title: a small accent bar instead of bare uppercase text */
html[data-look] .hl-t>span:first-child{display:inline-flex;align-items:center;gap:.55rem}
html[data-look] .hl-t>span:first-child::before{content:"";width:4px;height:16px;border-radius:4px;background:var(--a1)}

/* empty-state and hint paragraphs: calmer, padded, never a bare line on the page */
html[data-look] :is(.sc-hint,.hl-note){line-height:1.5}
html[data-look] .card :is(p.hm-line,p.sc-hint){opacity:.82}
html[data-look] .ch-app :is(.ch-empty,.ch-ph){max-width:26rem}

/* ---------- 8. Health: fix the stranded and empty areas ---------- */
/* Measurements: with no chart the list uses the whole card, not the right half */
html[data-look] .hl-meas:not(:has(>svg))>:is(.hl-list,.hl-empty){grid-column:1/-1!important}
/* Body mass index: content packed under the title, scale and legend fill the card */
html[data-look] .hl-rc-bmi{justify-content:flex-start}
html[data-look] .hl-rc-bmi>.hl-t{margin-bottom:1.4rem}
html[data-look] .hl-rc-bmi>:last-child{margin-bottom:0}
html[data-look] .hl-rc-bmi .hl-big{font-size:clamp(3rem,5vw,4.4rem)}
html[data-look] .hl-rc-bmi .hl-bmi{height:14px;margin:56px 0 10px}
html[data-look] .hl-rc-bmi .hl-bmi b{top:-10px;height:34px}
.hl-bmk{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:1.4rem}
.hl-bmk span{display:flex;flex-direction:column;gap:2px;padding:.6rem .8rem;border-radius:14px;border:1px solid var(--k-line,rgba(128,128,128,.2));border-left:4px solid var(--c);font-weight:700;font-size:.88rem}
.hl-bmk small{font-weight:500;opacity:.7;font-size:.74rem}
@media(max-width:520px){.hl-bmk{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* hints and notes: a soft callout instead of loose grey text */
html[data-look] .hl-hint{margin-top:12px;padding:.7rem .95rem;border-radius:14px;background:var(--sbtn);border:1px solid var(--k-line);border-left:3px solid var(--a1);font-size:.85rem;line-height:1.5;opacity:1;color:var(--mut)}
html[data-look] .hl-prs+.hl-hint{margin-top:14px}
/* the Training side column follows the list while you scroll */
@media(min-width:1100px){html[data-look] .hl-tr-side,html[data-look] .hl-tr-g>div:last-child{align-self:start}}
/* rows in lists: roomier, clear tap targets */
html[data-look] .hl-row{padding-block:.7rem}

/* ===== v838 spacing pass: smaller side margins, no band above the content, wider page cap ===== */
html[data-look]{--pad:clamp(10px,1.3vw,22px);--pg:1680px}
@media(min-width:1500px){html[data-look]{--pg:1880px}}
@media(min-width:768px){
  /* sections that sit under the Time tracker / Study Lab / Chat switch: pull the content up to it */
  html[data-look] #app-shell main>section:not(#sec-notes){padding-top:10px}
  html[data-look] #app-shell main>section#sec-chat{padding:2px var(--pad) var(--pad)!important}
  /* the switch row itself: slimmer */
  html[data-look] #layout-members{padding:.3rem var(--pad) .1rem;border-bottom:0}
  html[data-look] .lseg,html[data-look] .ttseg,html[data-look] .scseg{margin-bottom:.5rem}
  html[data-look] #okbar{margin-bottom:.6rem}
  html[data-look] #sec-store #cmPage{padding:.2rem 0 2rem}
}
/* the "notes are only on this device" strip sits flush with the page margin and is slimmer */
html[data-look] .wb{padding:.25rem var(--pad)}

/* ===== v838 tablet pass: iPad landscape and large tablets (1000-1199px) put the status pills in the navigation, like desktop;
   the wordmark is dropped so the tabs, pills and buttons fit on one line. Portrait tablets keep a slim pill row. ===== */
@media(min-width:1100px) and (max-width:1199px){
  html[data-look] #app-shell #sidebar .sb-brand h1{display:none}
  html[data-look] #app-shell #sidebar .sb-panel{gap:10px}
}
@media(min-width:768px) and (max-width:1099px){
  html[data-look] body #apphd{padding:.25rem var(--pad) 0!important;gap:6px}
  html[data-look] body #apphd :is(.btn,.chipx,.pill){padding-block:.25rem}
  html[data-look] #app-shell #sidebar .sb-panel{gap:8px;padding-inline:var(--pad)}
  html[data-look] #app-shell #sidebar .sb-brand h1{display:none}
}

/* ===== v840 polish pass ===== */
/* Social, signed out: the sign-in banner leads and the Friends card sits under it at full width (it used to float alone in the right column) */
@media(min-width:1100px){
  html[data-look] #sec-social .sc-tab:has(>#scProf>.sc-hero)>#scProf{grid-column:1/-1;grid-row:3}
  html[data-look] #sec-social .sc-tab:has(>#scProf>.sc-hero)>.sc-fcard{grid-column:1/-1;grid-row:4;margin-top:1rem}
}
/* Chat: the empty / signed-out panel takes the mint surface instead of plain white (light theme) */
html[data-look][data-theme=light] #sec-chat .ch-app{background:var(--s1)}
/* Home hero on phones: the avatar sits centred above the date instead of on top of it */
@media(max-width:767px){
  html[data-look] body #sec-home .hm-hero{padding-top:4.3rem!important}
  html[data-look] body #sec-home .hm-hero .hm-av{position:absolute!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;top:.9rem!important;width:48px!important;height:48px!important}
  /* never a sideways scroll on a phone */
  html[data-look] #app-shell main>section{overflow-x:hidden}
}

/* nav: below 1400px the wordmark gives way so the open tab's label never runs into the status pills */
@media(min-width:1200px) and (max-width:1399px){
  html[data-look] #app-shell #sidebar .sb-brand h1{display:none}
}

/* ===== v841 text components: bare grey paragraphs become real, calm components =====
   .hl-note / .sbx-note = soft callout with an icon (info by default; .tip, .warn, .caf, .lock variants)
   .hl-intro / .sbx-lead = lead paragraph in a tinted panel; .sbx-feats = tick list in two columns; .sbx-empty = empty state */
html[data-look] :is(.hl-note,.sbx-note,.sc-hint,.yh-cap,.hl-rdp){
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E");
  --nc:var(--a1);
  position:relative;display:block;margin:12px 0 0;padding:.7rem .95rem .7rem 2.6rem;border-radius:16px;
  background:var(--sbtn);border:1px solid var(--k-line);color:var(--mut);font-size:.86rem;line-height:1.5;opacity:1}
html[data-look] :is(.hl-note,.sbx-note,.sc-hint,.yh-cap,.hl-rdp)::before{
  content:"";position:absolute;left:.9rem;top:.78rem;width:18px;height:18px;background:var(--nc);
  -webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
html[data-look] :is(.hl-note,.sbx-note).tip{--nc:#d97706;--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9zM19 16l.7 1.8L21.5 18.5l-1.8.7L19 21l-.7-1.8-1.8-.7 1.8-.7z'/%3E%3C/svg%3E")}
html[data-look] :is(.hl-note,.sbx-note).caf{--nc:#b45309;--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 8h1a4 4 0 0 1 0 8h-1M3 8h14v7a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4zM7 2v3M11 2v3'/%3E%3C/svg%3E")}
html[data-look] :is(.hl-note,.sbx-note).warn{--nc:#d97706;background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.35);color:var(--tx);--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E")}
html[data-look] :is(.hl-note,.sbx-note).lock{--nc:#b98716;--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E")}
html[data-look] .hl-note+.hl-note{margin-top:8px}
html[data-look] #hl-drst .hl-note{margin-top:10px}
html[data-look] #hl-drst .hl-note .hl-btn{margin-top:8px;display:inline-flex}
/* the closing "not medical advice" line is a quiet footer, not a callout */
html[data-look] #hl-care>.hl-note{background:none;border:0;padding:.2rem 0 0 1.6rem;font-size:.78rem}
html[data-look] #hl-care>.hl-note::before{left:0;top:.28rem;width:15px;height:15px}
/* readiness empty text: callout-sized, no icon crowding the heading */
html[data-look] .hl-rdp{margin:0 0 12px!important}

/* lead paragraphs */
html[data-look] .hl-intro,html[data-look] .sbx-lead{margin:0 0 .9rem;padding:.9rem 1.1rem;border-radius:18px;
  background:linear-gradient(135deg,rgba(var(--a1r),.10),rgba(var(--a1r),.03));border:1px solid rgba(var(--a1r),.18);
  color:var(--tx);font-size:.92rem;line-height:1.6}
/* tick list in two columns */
html[data-look] .sbx-feats{list-style:none;margin:0 0 1rem;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
html[data-look] .sbx-feats>li{position:relative;padding:.6rem .8rem .6rem 2.3rem;border-radius:14px;background:var(--sbtn);border:1px solid var(--k-line);font-size:.86rem;line-height:1.45;color:var(--tx)}
html[data-look] .sbx-feats>li::before{content:"";position:absolute;left:.75rem;top:.72rem;width:16px;height:16px;border-radius:50%;
  background:rgba(var(--a1r),.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat}
@media(max-width:700px){html[data-look] .sbx-feats{grid-template-columns:minmax(0,1fr)}}
html[data-look] .sc-pk+.sbx-note,html[data-look] .sbx-feats+.sc-pk{margin-top:.2rem}
html[data-look] .sc-pk+.sbx-note{margin-top:12px}

/* empty states */
html[data-look] .sbx-empty{margin:.4rem 0;padding:1.4rem 1rem;border:1.5px dashed var(--k-line2);border-radius:18px;text-align:center;color:var(--mut)!important;font-size:.9rem;background:var(--sbtn)}
html[data-look] .hl-empty{border-radius:16px;background:var(--sbtn);border:1px dashed var(--k-line2);padding:1rem 1.1rem;color:var(--mut);line-height:1.5}

/* ===== v842 Calm mode: only study stays on screen ===== */
html[data-calm="1"] :is([data-tab],[data-layout-group]):is([data-tab="store"],[data-tab="social"],[data-tab="health"],[data-tab="premium"],[data-layout-group="store"],[data-layout-group="social"],[data-layout-group="health"],[data-layout-group="premium"]),
html[data-calm="1"] #tab-store,html[data-calm="1"] #tab-social,html[data-calm="1"] #tab-health,html[data-calm="1"] #tab-premium,
html[data-calm="1"] .lseg [data-seg="chat"],html[data-calm="1"] [data-sb-premium],
html[data-calm="1"] #app-shell [onclick*="'premium'"],html[data-calm="1"] #app-shell [data-open="premium"]{display:none!important}
.calm-pill{background:rgba(var(--a1r),.16)!important;color:var(--a1)!important;border-color:rgba(var(--a1r),.35)!important;font-weight:700}
.sbx-calm-row{display:inline-flex;gap:6px;white-space:nowrap;align-items:center}

/* ===== v843 one spacing system + a signature ground =====
   --gap = space between cards, --rad = card corner. Desktop 16 / 22, tablet 14 / 22, phone 12 / 20. */
html[data-look]{--gap:16px;--rad:22px}
@media(max-width:1099px){html[data-look]{--gap:14px}}
@media(max-width:767px){html[data-look]{--gap:12px;--rad:20px}}
html[data-look] .hm{gap:var(--gap)}
html[data-look] #sec-tracker>.max-w-4xl{gap:var(--gap)!important;row-gap:var(--gap)!important}
html[data-look] #sec-tracker>.max-w-4xl>*{margin-top:0!important}
@media(max-width:767px){html[data-look] #sec-tracker>.max-w-4xl{display:grid;grid-template-columns:minmax(0,1fr)}}
html[data-look] .tdgrid,html[data-look] .tdmain,html[data-look] .tdrail{gap:var(--gap)}
html[data-look] .sc-wrap>.card{margin-bottom:var(--gap)}
html[data-look] :is(.card,.hl-card,.sc-blk):not(.sc-hero):not(.hm-c12){border-radius:var(--rad)}
/* signature: a faint notebook dot grid on the ground, and cards that sit on it like paper */
html[data-look][data-theme=light] body{background-image:radial-gradient(rgba(31,59,48,.10) 1px,transparent 1.2px);background-size:22px 22px;background-position:11px 11px}
html[data-look][data-theme=dark] body{background-image:radial-gradient(rgba(255,255,255,.05) 1px,transparent 1.2px);background-size:22px 22px;background-position:11px 11px}
html[data-look][data-theme=light] :is(.card,.hl-card,.sc-blk):not(.sc-hero):not(.hm-c12){box-shadow:0 1px 0 rgba(255,255,255,.95) inset,0 12px 30px -20px rgba(31,59,48,.38)}

/* Social, signed in: two balanced columns. Profile on the left, requests / friends / privacy stacked on the right,
   tops and bottoms line up, and empty request rows take no space. */
@media(min-width:1100px){
  html[data-look] body #sec-social .sc-tab{grid-template-columns:minmax(0,1.3fr) minmax(24rem,1fr)!important;column-gap:var(--gap)!important}
  html[data-look] body #sec-social .sc-tab>#scReq:not(:has(*)),html[data-look] body #sec-social .sc-tab>#scInv:not(:has(*)){display:none}
  html[data-look] body #sec-social .sc-tab>#scProf>.sc-id{margin-bottom:var(--gap)!important;align-self:stretch}
  html[data-look] body #sec-social .sc-tab>.sc-fcard{margin-bottom:var(--gap)}
  html[data-look] body #sec-social .sc-tab>#scProf>.sc-pset{grid-row:6/8!important;margin-bottom:var(--gap)!important;align-self:stretch}
}

/* ===== v845: full-screen notes. The status pills (Dark, account, sync, timer) used to sit on top of the notebook toolbar and its right-hand buttons.
   Now the toolbar moves left and the pills take the free space between it and the right-hand buttons. A small script (end of index.html) measures the
   widths and, on narrower windows, hides the Dark pill, then the account pill, then the whole strip, so nothing ever overlaps. ===== */
@media(min-width:1100px){
  html[data-look] body.nbfull #apphd{top:calc(8px + env(safe-area-inset-top,0px));height:49px;right:calc(12px + var(--nbr,302px) + 14px)}
  body.nbfull #nbx-tools{margin:0;max-width:max(300px,calc(100vw - 24px - 44px - var(--nbr,302px) - var(--nbp,401px) - 36px))}
  body.nbfull #nbx-right{margin-left:auto}
  body.nbpl1 #apphd #thb{display:none!important}
  body.nbpl2 #apphd #thb,body.nbpl2 #apphd #acb{display:none!important}
  body.nbpl3 #apphd #thb,body.nbpl3 #apphd #acb,body.nbpl3 #apphd #syd{display:none!important}
  body.nbpl4 #apphd{display:none!important}
}
