:root{color-scheme:light;--ink:#182f32;--muted:#52635f;--paper:#f8f5ec;--white:#fffdf6;--line:#d4d7c9;--dark:#123a39;--green:#1c514b;--mint:#d7e8d8;--rose:#efb093;--danger:#8b352e;--radius:14px;font:16px/1.5 "DM Sans","Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;min-width:300px}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{touch-action:manipulation}button{cursor:pointer}a{color:var(--green)}:focus-visible{outline:3px solid #a94c35;outline-offset:4px}button:disabled{opacity:.62;cursor:wait}.skip{position:absolute;left:1rem;top:-6rem;padding:12px;background:white;z-index:5}.skip:focus{top:0}header,footer,main{width:min(1180px,calc(100% - 64px));margin:auto}.mast{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:84px}.brand{display:flex;align-items:center;gap:10px;font:600 28px/1 Georgia,serif;letter-spacing:-1.4px}.brand i{position:relative;width:36px;height:25px;border-radius:50% 50% 0 0;background:repeating-linear-gradient(to top,var(--green) 0 3px,transparent 3px 6px);border-bottom:3px solid var(--green)}#account{font-size:.9rem;color:var(--muted);overflow-wrap:anywhere}nav{display:flex;gap:5px;flex-wrap:wrap;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px 0}nav[hidden]{display:none}nav button,.link{border:0;background:transparent;color:var(--green);padding:9px 13px;border-radius:8px;font-weight:650}nav button[aria-pressed=true]{background:var(--mint);color:var(--ink)}nav button[aria-current=page]{background:var(--green);color:white}.link{text-decoration:underline;text-underline-offset:3px}.btn:hover,nav button:hover,.link:hover{filter:brightness(.92)}main{min-height:calc(100vh - 199px);padding:35px 0 54px}main:focus{outline:0}footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:var(--muted);padding:19px 0 28px;border-top:1px solid var(--line);font-size:.81rem}footer span:first-child{font-weight:700}
h1,h2,h3,p{margin:0}h1,h2,h3{font-family:"DM Serif Text",Georgia,serif;font-weight:400;line-height:1.04;letter-spacing:-.045em}h1{font-size:clamp(2.6rem,6.2vw,5rem)}h2{font-size:clamp(1.85rem,4vw,2.8rem)}h3{font-size:1.55rem}.lead,.hint{color:var(--muted)}.lead{font-size:1.05rem;max-width:62ch}.hint,small{font-size:.88rem;line-height:1.45}.pagehead{display:grid;gap:12px;margin:6px 0 24px}.auth{display:grid;grid-template-columns:1.11fr .89fr;min-height:560px;border-radius:24px;overflow:hidden;background:var(--white);border:1px solid var(--line)}.hero{background:#173e3c;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:9rem;padding:clamp(32px,5vw,70px);color:#fff9e9}.hero h1{max-width:8em}.hero p{font-size:1.04rem;max-width:29ch;color:#f2f1de}.horizon{position:absolute;z-index:-1;inset:0;overflow:hidden;background:radial-gradient(ellipse at 92% 66%,#417866 0%,transparent 52%)}.horizon:before,.horizon:after{content:"";position:absolute}.horizon:before{width:28%;aspect-ratio:1;border-radius:50%;right:11%;bottom:24%;background:repeating-linear-gradient(to bottom,#eab18a 0 8px,#db9e73 8px 9px)}.horizon:after{inset:60% -15% -14% -22%;border-radius:50% 50% 0 0;transform:rotate(-12deg);background:repeating-radial-gradient(ellipse at 48% 108%,#204b44 0 12px,#507364 13px,#204b44 14px 23px)}.authform{padding:clamp(24px,4.6vw,65px);align-self:center;display:grid;gap:23px}.switch{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;width:fit-content}.switch button{padding:8px 15px;border:none;background:var(--white);color:var(--muted);font-weight:650}.switch button[aria-pressed=true]{background:var(--mint);color:var(--ink)}
.panel,.card,.empty{padding:clamp(20px,3vw,36px);background:var(--white);border:1px solid var(--line);border-radius:var(--radius)}.panel,.card,.empty,.stack,form{display:grid;align-content:start;gap:16px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.wide{max-width:770px}.field{display:grid;gap:5px;min-width:0}.field>span,legend{font-weight:650;font-size:.92rem}fieldset{margin:0;min-width:0;border:1px solid var(--line);border-radius:9px;padding:12px}legend{padding:0 5px}.choices,.actions,.chips,.meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.check{display:flex;align-items:flex-start;gap:9px;cursor:pointer}.check input{width:18px;height:18px;flex:none;margin:3px 0 0;accent-color:var(--green)}.choices .check{padding:5px 9px;border:1px solid var(--line);border-radius:7px}.field input,.field select,.field textarea{width:100%;border:1px solid #899a8e;border-radius:7px;background:#fffef9;color:var(--ink);padding:10px 11px}.field textarea{resize:vertical;min-height:80px}.btn{background:var(--green);color:white;border:1px solid var(--green);border-radius:8px;padding:10px 17px;font-weight:680;min-height:43px;width:fit-content}.btn.secondary{color:var(--ink);border-color:#a4afa4;background:transparent}.btn.danger{color:var(--danger);border-color:#b77b70;background:transparent}.chip{font-size:.83rem;background:var(--mint);color:var(--dark);border-radius:20px;padding:4px 10px}.meta{color:var(--muted);font-size:.9rem}.empty{background:#e7ecdf;max-width:780px}.actions{align-self:start}.rule{border:0;border-top:1px solid var(--line);width:100%;margin:4px 0}.error{color:#79271e;background:#f9e3d9;padding:10px 14px;border-radius:8px}.error:empty{display:none}.card p,.panel p,.message{overflow-wrap:anywhere}.card details, .panel details{border-top:1px solid var(--line);padding-top:12px}summary{color:var(--green);cursor:pointer;font-weight:650}details[open]>summary{margin-bottom:12px}ul{margin:0;padding-left:20px}.avatar{width:50px;height:50px;display:grid;place-items:center;border-radius:50% 50% 40% 40%;background:var(--mint);font:1.65rem Georgia,serif;color:var(--green)}.person{display:flex;gap:14px;align-items:center}.person>div{min-width:0}.person h2{font-size:1.65rem}.person h2,.person h3{overflow-wrap:anywhere}.messages{display:flex;flex-direction:column;gap:12px;max-height:50vh;overflow:auto;padding:8px}.message{max-width:84%;align-self:flex-start;background:#eeeede;padding:10px 14px;border-radius:12px;white-space:pre-wrap}.message.mine{align-self:flex-end;background:var(--mint)}.message small{display:block;color:var(--muted)}#notice:not(:empty){position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:min(90vw,640px);background:var(--dark);color:white;padding:12px 20px;border-radius:10px;z-index:8;box-shadow:0 4px 18px #132d3026}
@media(max-width:760px){header,footer,main{width:min(100% - 30px,660px)}.mast{min-height:68px}.brand{font-size:24px}.auth,.grid{grid-template-columns:1fr}.hero{min-height:236px;gap:22px;padding:26px}.hero h1{max-width:8em;font-size:3rem}.hero p{max-width:24ch;font-size:.93rem}.horizon:before{width:17%;right:9%;bottom:26%}.horizon:after{inset:74% -8% -38% 12%}.authform{padding:24px}.auth{min-height:0}.pagehead{margin-top:0}main{padding:22px 0 36px}nav{gap:2px}nav button{padding:8px 9px;font-size:.87rem}.grid .grid{gap:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Closed <details> must never render or occupy space: author display rules on
   menu bodies otherwise defeat the native closed-state hiding (phantom menus). */
details:not([open]) > *:not(summary){display:none!important}
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.photo { display: grid; align-content: start; gap: .5rem; }
.photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: .5rem; }
shortlist-search article[hidden] { display: none; }

.connector-consent [hidden] { display: none; }

.hero .origin-story { position: relative; z-index: 1; display: grid; gap: 1.2rem; align-content: start; }
.hero .origin-story p { max-width: 40ch; font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.55; margin: 0; color: inherit; }
@media (max-width:760px) { .hero .origin-story { gap: .85rem; } .hero:has(.origin-story) { gap: 1.4rem; } }

footer nav{border:0;padding:0;gap:12px}

.google-auth{margin-top:16px}
.google-signin{display:inline-flex;border:0;background:transparent;padding:0;border-radius:5px}
.google-signin img{display:block;height:auto;max-width:100%}
.google-signup{max-width:520px;margin-inline:auto}

/* The account entrance borrows the record sleeve from the public profile sample. */
body:has(.auth) { background: #f7f0ff; --ink: #301b40; --mint: #e5cafa; --line: #c7b5cd; --muted: #624f69; }
.auth .hero { color: #fff9ff; background: #50226d; }
.auth .hero p { color: #fff2ff; }
.auth .horizon { background: linear-gradient(145deg,#54246d,#733f94); }
.auth .horizon:before { width: 12rem; right: -5rem; bottom: 16%; background: radial-gradient(circle,#35233c 0 2%,#ffd783 2% 17%,transparent 18%),repeating-radial-gradient(circle,#33263c 0 3px,#56425f 4px 5px); }
.auth .horizon:after { inset: auto -3% 0; height: 12px; border-radius: 0; transform: none; background: repeating-linear-gradient(125deg,#ac83e7 0 20px,#ffa2c1 20px 40px,#ffda95 40px 60px); }
.auth h1,.auth h2,body:has(.auth) .brand { font-family: "Bricolage Grotesque","Arial Black",system-ui,sans-serif; font-weight: 850; }
.auth .hero p { position: relative; z-index: 1; }
@media(max-width:760px) { .auth .horizon:before { width: 7rem; right: -5rem; } }
.auth > .authform { color: #301b40; background: #fffaff; min-width: 0; } .authform .hint { color: #594762; }

#nav:has(.social-nav-primary) { align-items: center; gap: .55rem 1rem; border-top: 0; padding-block: .35rem .8rem; }
.social-nav-primary, .social-nav-tools, .match-menu > div { display: flex; gap: .25rem; flex-wrap: wrap; }
.social-nav-primary button { color: #40254e; font-weight: 750; }
.social-nav-primary button[aria-current=page], .social-nav-tools button[aria-current=page] { background: #54296b; color: white; }
.social-nav-tools button, .match-menu summary { font-size: .9rem; }
.match-menu summary { color: #543664; padding: .5rem; }
.match-menu[open] { width: 100%; }
.match-menu > div { margin-top: .35rem; padding: .5rem; background: #f2ebf5; border-radius: .6rem; }
@media(max-width:760px) { .social-nav-primary { width: 100%; } }
.profile-page-actions { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; background:#fffaff; border:0; border-radius:.8rem; padding:.9rem 1.1rem; } .profile-page-actions a { color:#48245e; font-weight:700; }

body:has(community-feed) { background: #f7f0fb; color: #302039; }
community-feed { max-width: 48rem; margin-inline: auto; }
community-feed > header, community-feed article > header { width: 100%; margin: 0; }
community-feed > header { padding: 1.15rem 0 .8rem; }
community-feed h1, community-feed h2 { font-family: "Bricolage Grotesque",system-ui,sans-serif; font-weight: 820; letter-spacing: -.045em; }
community-feed h1 { font-size: clamp(2.6rem,7vw,4.5rem); }
community-feed > header p { max-width: 52ch; color: #604d67; margin-top: .65rem; }
community-feed .panel { padding: clamp(1.05rem,3vw,1.7rem); background: #fffcff; border-color: #ddcde4; }
community-feed > section:has([data-community="post"]) { border-top: .35rem solid #ad77cf; }
community-feed .btn:not(.secondary) { background: #5e2e77; border-color: #5e2e77; }
community-feed article > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
community-feed article [data-community="author"] { background: #f3e8fb; color: #512869; border: 0; padding: .35rem .8rem; min-height: 2.4rem; }
community-feed article > p { line-height: 1.55; font-size: 1.09rem; white-space: pre-wrap; overflow-wrap: anywhere; }
community-feed [role="status"]:empty,community-feed [role="alert"]:empty { display: none; }
#account { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.35rem .75rem; } #account .btn { min-height:44px; font-size:.9rem; white-space:nowrap; }

#account .notice-bell {display:inline-flex;align-items:center;justify-content:center;gap:.25rem;min-width:44px}
.notice-count:not([hidden]) {display:inline-grid;place-items:center;min-width:1.35rem;border-radius:1rem;background:#73264d;color:white;font-size:.8rem;padding:0 .25rem;font-weight:700}
.photo-thumbnail { display: block; width: 100%; padding: .25rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--white); }
.photo-thumbnail img { display: block; }
.photo-dialog { width: min(42rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: clamp(1rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--white); }
.photo-dialog::backdrop { background: #102626c9; }
.photo-dialog img { display: block; width: 100%; height: min(51dvh, 30rem); object-fit: contain; background: var(--paper); border-radius: .5rem; }
.photo-dialog button[aria-disabled="true"] { opacity: .55; cursor: default; }

.wizard-network {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem .75rem;align-items:start}
.wizard-network .field,.wizard-network .error {grid-column:1/-1}
.meta-link-group{display:grid;gap:12px}.meta-link-heading{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap}.meta-link-heading h3{margin:0}.meta-link-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}.contact-notice{border-left:3px solid var(--green);padding:8px 10px;background:#eef2e9}
.wizard-link-help {min-width:0}
.wizard-link-help summary {width:fit-content;padding:.6rem .2rem;text-decoration:underline;cursor:pointer}
.wizard-link-help code {overflow-wrap:anywhere}

.mast a.brand { color: inherit; text-decoration: none; min-height: 44px; }
.mast a.brand:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

page-checklist {display:block;margin-block:1rem}
.setup-tasks {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:1rem;margin:0;padding-inline-start:1.5rem}
.setup-tasks li {padding-inline:.25rem}
.setup-tasks li strong,.setup-tasks li span {display:block}
.setup-tasks li span {margin-block:.2rem .5rem;font-size:.875rem}

#account .account-name { background: transparent; border: 0; min-height: 44px; color: inherit; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
[data-account-data] h2 { scroll-margin-top: 1rem; }

@media (max-width: 650px) {
 body:has(#nav:not([hidden]) .social-nav-primary) { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
 #nav:not([hidden]) .social-nav-primary { position: fixed; z-index: 6; inset: auto 0 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: stretch; gap: .12rem; padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); background: #fffaf2; border-top: 1px solid #d6cddd; }
 #nav .social-nav-primary button { min-width: 0; padding: .4rem .1rem; min-height: 46px; font-size: .78rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 body:has(#nav:not([hidden]) .social-nav-primary) #notice:not(:empty) { bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 650px) {
  .mast:has(.account-name) { display: grid; gap: 0; padding-block: .25rem; }
  .mast:has(.account-name) .brand { justify-self: start; }
  #account:has(.account-name) { display: flex; flex-wrap: wrap; justify-content: start; min-width: 0; gap: .35rem; }
  #account .account-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
  #nav .social-nav-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem; width: 100%; }
  #nav .social-nav-tools button, #nav .match-menu summary { min-height: 44px; }
  #nav .social-nav-primary { scroll-margin-bottom: 5rem; }
  .setup-tasks { gap: .75rem; }
  .setup-tasks li { border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
  html:has(.social-nav-primary) { scroll-padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 650px) {
  .auth > .authform { grid-row: 1; padding: 1.25rem; gap: 1rem; }
  .auth > .hero { grid-row: 2; min-height: 0; }
}

@media (max-width:650px) {
 #nav:has(.page-tools-menu) { align-items:start; justify-content:space-between; gap:.2rem; }
 #nav .page-tools-menu, #nav .match-menu { width:auto; margin:0; }
 #nav .page-tools-menu summary, #nav .match-menu summary { display:list-item; padding:.65rem .3rem; min-height:44px; font-size:.875rem; cursor:pointer; }
 #nav .page-tools-menu[open], #nav .match-menu[open] { flex-basis:100%; }
 #nav .page-tools-menu > div { display:flex; flex-wrap:wrap; }
}
#nav .page-tools-menu > div { display:flex; flex-wrap:wrap; gap:.25rem; }
#nav .page-tools-menu summary { padding:.5rem; cursor:pointer; }
#nav details:has([aria-current="page"]) > summary { color:#54296b; font-weight:bold; }
@media (max-width:650px) {
  #nav:not([hidden]) .social-nav-primary { grid-template-columns:repeat(5,minmax(0,1fr)); }
}

.hosted-methods,.hosted-methods [data-methods]{display:grid;gap:.7rem}
.hosted-methods [data-methods]{width:100%}
.hosted-methods .provider-google,.hosted-methods .provider-x{width:100%;min-height:52px;padding:4px 12px;display:flex;justify-content:center;align-items:center;gap:.75rem;border:1px solid #747775;border-radius:8px;background:#fff;color:#171717;font:600 1rem/1.3 system-ui;cursor:pointer}
.hosted-methods .provider-x{background:#121212;color:#fff;border-color:#121212}
.hosted-methods .provider-x span{font-size:1.35rem}
.hosted-methods button:disabled{opacity:.6;cursor:default}
.hosted-methods button:focus-visible{outline:3px solid #7829a1;outline-offset:3px}
.hosted-methods [hidden],.hosted-methods [role=status]:empty{display:none}

invite-contacts [data-invite-note]{box-sizing:border-box;width:100%;min-height:9rem;resize:vertical;line-height:1.5}
invite-contacts #invite-note-count{font-variant-numeric:tabular-nums}

/* The app shell uses the plum record-sleeve palette from the BsideMe mark. */
body:has(#nav:not([hidden])) {
  --paper: #f7f3f8;
  --white: #fffcff;
  --ink: #302039;
  --muted: #614f69;
  --line: #d9cedd;
  --dark: #442453;
  --green: #54296b;
  --mint: #efe3f4;
  background: var(--paper);
  color: var(--ink);
}
.mast .brand, #content > .pagehead h1 {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-weight: 760;
  letter-spacing: -.045em;
}
.mast .brand img { border-radius: 22%; }
#content > .pagehead { gap: .55rem; margin-bottom: 1.25rem; }
#content > .pagehead h1 { font-size: clamp(2.25rem, 4.4vw, 3.65rem); line-height: 1.06; }
#nav details > summary { color: var(--green); font-weight: 650; }
#nav button, #nav summary { min-height: 44px; }
body:has(#nav:not([hidden])) .empty { background: var(--mint); }
body:has(#nav:not([hidden])) .field :is(input, select, textarea) {
  background: var(--white);
  border-color: #9d90a3;
}
.library-toolbar, .library-toolbar .actions { display: flex; flex-wrap: wrap; align-items: center; }
.library-toolbar {
  justify-content: space-between;
  gap: .65rem 1.5rem;
  border-block: 1px solid var(--line);
  padding-block: .65rem;
  margin-bottom: 1rem;
}
.library-count { font-variant-numeric: tabular-nums; font-weight: 650; }
.library-layout { display: grid; grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.5fr); gap: clamp(1rem, 2.6vw, 2rem); align-items: start; }
.library-layout > section { min-width: 0; gap: .9rem; padding: clamp(1rem, 2.2vw, 1.75rem); }
.library-layout h2, .connect-panel h2 { font: 700 clamp(1.4rem, 2.7vw, 2rem)/1.16 "Bricolage Grotesque", "Segoe UI", sans-serif; letter-spacing: -.035em; }
.library-layout :is(p, small) { max-width: 65ch; }
.library-sources :is(facebook-photo-import, social-photo-import, export-photo-picker) { display: block; min-width: 0; }
.library-sources details > summary { padding-block: .55rem; }
.library-sources :is(input, select, button) { max-width: 100%; }
.library-saved > .photo-grid { margin: .35rem 0 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.library-saved .photo { min-width: 0; gap: .65rem; }
.library-saved .photo form { gap: .45rem; }
.library-saved .photo-thumbnail { background: var(--paper); padding: 0; overflow: hidden; }
.library-saved .photo > .btn { font-size: .88rem; }
.library-empty { padding-block: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.connect-panel { max-width: 64rem; }
.connect-panel setup-wizard [data-step]:not([hidden]) { display: grid; gap: 1rem; }
.connect-panel [data-step="networks"] > .choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.75rem), 1fr));
  gap: 0 1.5rem;
}
.connect-panel [data-step="networks"] > .choices > div {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .15rem .35rem; padding: .4rem 0; min-width: 0; border-bottom: 1px solid var(--line);
}
.connect-panel .choices .check { align-items: center; min-height: 44px; padding: .3rem; border: 0; font-weight: 600; }
.connect-panel .choices network-connect { font-size: .83rem; color: var(--muted); }
.connect-panel .choices network-connect button { font-size: inherit; min-height: 44px; padding-inline: .55rem; }
.connect-panel .choices > .facebook-network-row { grid-column: 1 / -1; display: grid !important; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .25rem .6rem; }
.connect-panel .facebook-tools { grid-column: 1 / -1; display: grid; gap: .55rem; padding: .25rem .3rem .75rem; }
.connect-panel .facebook-tools > p { margin: 0; max-width: 65ch; color: var(--muted); font-size: .9rem; }
.connect-panel .facebook-tools .actions { gap: .5rem; }
@media (max-width:760px) {
  .connect-panel .choices > .facebook-network-row { grid-template-columns: minmax(0,1fr); }
  .connect-panel .choices > .facebook-network-row network-connect { grid-column: 1 / -1; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .library-layout { grid-template-columns: minmax(0, 1fr); }
  .library-saved > .photo-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.25rem), 1fr)); }
  .library-toolbar { align-items: start; }
  .library-toolbar .btn { font-size: .875rem; }
}
@media (max-width:650px) {
  #nav:not([hidden]) .social-nav-primary { background: #fffcff; }
  #nav .social-nav-primary button[aria-current="page"] { background: var(--green); }
}


/* Phone tools stay compact without hiding actions or replacing native details. */
@media (max-width:650px) {
  #nav:has(.page-tools-menu) { padding-block:.25rem .4rem; }
  #nav .page-tools-menu[open] {
    display:grid;
    grid-template-columns:4.75rem minmax(0,1fr);
    align-items:start;
    gap:.25rem;
  }
  #nav .page-tools-menu[open] > summary {
    margin-bottom:0;
    padding:.6rem .2rem;
    font-size:.875rem;
    line-height:1.25;
  }
  #nav .page-tools-menu > div {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:.25rem;
    min-width:0;
  }
  #nav .page-tools-menu > div button {
    width:100%;
    min-width:0;
    min-height:52px;
    padding:.4rem .25rem;
    font-size:.875rem;
    line-height:1.2;
  }
  #nav .social-nav-primary button {
    min-height:52px;
    padding:.45rem .15rem;
    font-size:.875rem;
    line-height:1.25;
  }
  .library-sources :is(button,summary) { min-height:48px; }
  .library-saved :is(input,select,button,summary) {
    scroll-margin-block:1rem calc(5.5rem + env(safe-area-inset-bottom));
  }
}
@media (max-width:420px) {
  .library-toolbar > .actions {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:100%;
    gap:.5rem;
  }
  .library-toolbar .actions .btn {
    width:100%;
    min-height:48px;
    padding:.5rem .6rem;
    white-space:normal;
    text-align:center;
  }
}

/* Community feed cards: only the author's publicly published page palette, scoped per card. */
community-feed article.community-themed-post {
  background:var(--post-surface);
  color:var(--post-ink);
  border-color:var(--post-accent);
}
community-feed article.community-themed-post :is(p,summary,label,span,time) { color:var(--post-ink); }
community-feed article.community-themed-post .meta { color:var(--post-ink); opacity:1; }
community-feed article.community-themed-post .btn.secondary {
  background:var(--post-surface); color:var(--post-ink); border-color:var(--post-accent);
}
community-feed article.community-themed-post [data-community="react"][aria-pressed="true"] {
  background:var(--post-accent); color:var(--post-accent-ink);
}
community-feed article.community-themed-post .btn[data-community="author"] {
  background:var(--post-accent); color:var(--post-accent-ink); border-color:var(--post-accent);
}
community-feed article.community-themed-post textarea {
  background:var(--post-surface); color:var(--post-ink); border-color:var(--post-accent);
}
community-feed article.community-themed-post :is(button,textarea,summary,a):focus-visible {
  outline:3px solid var(--post-ink); outline-offset:2px;
}
people-hub [data-public-profile-direct] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
}


/* People navigation rhythm and mobile touch sizing. */
#nav:has(.social-nav-primary) {
  align-items: center;
  justify-content: flex-start;
  gap: .35rem .55rem;
  padding-block: .35rem .6rem;
}
#nav:has(.social-nav-primary) .social-nav-primary,
#nav:has(.social-nav-primary) .page-tools-menu,
#nav:has(.social-nav-primary) .match-menu { margin: 0; }
#nav:has(.social-nav-primary) .social-nav-primary { align-items: center; gap: .2rem; }
#nav:has(.social-nav-primary) :is(button, summary) { min-height: 44px; line-height: 1.2; }
#nav:has(.social-nav-primary) .social-nav-primary button,
#nav:has(.social-nav-primary) > button[data-action="goto"],
#nav:has(.social-nav-primary) .page-tools-menu > summary,
#nav:has(.social-nav-primary) .match-menu > summary {
  box-sizing: border-box;
  margin: 0;
  padding: .55rem .75rem;
}
#nav:has(.social-nav-primary) details:has([aria-current="page"]) > summary {
  color: var(--dark);
  background: var(--mint);
  border-radius: 8px;
  font-weight: 700;
}
@media (max-width: 650px) {
  #nav:has(.social-nav-primary) {
    align-items: center;
    justify-content: flex-start;
    gap: .15rem .3rem;
    padding-block: .25rem .4rem;
  }
  #nav:has(.social-nav-primary) .page-tools-menu > summary,
  #nav:has(.social-nav-primary) .match-menu > summary,
  #nav:has(.social-nav-primary) > button[data-action="goto"] {
    padding-inline: .45rem;
    font-size: .875rem;
  }
  #nav:not([hidden]) .social-nav-primary { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #nav .social-nav-primary button {
    min-height: 52px;
    padding: .45rem .1rem;
    font-size: .875rem;
    line-height: 1.25;
  }
}

/* Desktop shell polish 2026-12-05: readable measures and consistent editor hierarchy.
   Deliberately excludes member-designed profile content and all mobile breakpoints. */
@media (min-width: 761px) {
  #content > .pagehead { gap: .65rem; margin-block: .25rem 1.5rem; }
  #content > .pagehead h1,
  #content > .panel > h1,
  #content > people-hub h1,
  #content > people-enrollment h1,
  #content > community-feed > header h1 {
    font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(2.4rem, 3.8vw, 3.3rem);
    font-weight: 780;
    line-height: 1.12;
    letter-spacing: -.045em;
  }
  #content :is(.panel, .card, .empty) > h2:not(.profile-theme *):not(.community-themed-post *) {
    font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    font-size: clamp(1.45rem, 2.1vw, 1.9rem);
    font-weight: 730;
    line-height: 1.2;
    letter-spacing: -.035em;
  }
  #content :is(.pagehead, .panel, .card, .empty) > p:not(.profile-theme *):not(.community-themed-post *) {
    max-width: 72ch;
    line-height: 1.6;
  }
  #content a.btn:not(.profile-theme *):not(.community-themed-post *) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
  }
  #content [data-account-data] > section {
    display: grid;
    justify-items: start;
    gap: .75rem;
  }
  #content [data-account-data] h3 {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.015em;
  }
  #content [data-account-data] > :is(email-security, social-signin) {
    display: block;
    min-width: 0;
  }
  #content [data-account-data] > h2:not(:first-child) {
    margin-top: .5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
  }
  #content :is(.actions, .choices):not(.profile-theme *):not(.community-themed-post *) { row-gap: .65rem; }
}

/* Keep the app-shell field treatment from overriding a themed feed comment box. */
body:has(#nav:not([hidden])) #content community-feed article.community-themed-post .field textarea {
  color: var(--post-ink);
  background: var(--post-surface);
  border-color: var(--post-accent);
}
body:has(#nav:not([hidden])) #content community-feed article.community-themed-post .field textarea::placeholder {
  color: var(--post-ink);
  opacity: 1;
}
body:has(#nav:not([hidden])) #content community-feed article.community-themed-post community-post-comments :is(p,summary,label,strong,time) {
  color: var(--post-ink);
}
@media (max-width: 650px) {
  #nav:not([hidden]) .social-nav-primary.first-run-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
