/* The Twelve Houses v3.1 — the look (Nov 23, 2026): built to match the Facebook, Messenger and iOS screens Will sent.
   Light like Facebook, dark when the phone is set to dark (like Messenger and Coinbase). Solid rounded buttons, grey filter
   pills, a floating icon tab bar, centered page titles with a back arrow, white cards on a grey page. */
:root {
  /* Will's colors (Nov 23): deep space navy and gold, from the eye artwork. Layout and type from real apps. */
  --bg: #06081A; --card: #0F1330; --surface: #1D2347; --field: #161B3B; --hover: #171C3D;
  --ink: #F1EADF; --muted: #A3A1B8; --line: rgba(232,220,200,.14); --line-soft: rgba(232,220,200,.08);
  --primary: #E3B67F; --primary-hover: #EEC793; --on-primary: #1A1206; --soft: rgba(235,192,142,.14); --soft-ink: #F6D9A8;
  --gold: #EBC08E; --good: #5FD08A; --bad: #FF6B81; --warn: #F2C14E; --date: #F0A35E;
  --sky: #070A1C; --shadow: none; --lift: 0 16px 40px rgba(0,0,0,.55);
  --r: 12px; --r-lg: 16px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: var(--sans);
  color-scheme: dark;
}
html, body { background: radial-gradient(1100px 650px at 50% -10%, #17204A 0%, #0B0F2A 38%, #06081A 72%) fixed, #06081A; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; color: var(--ink); font: 16px/1.4 var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0 0 .35em; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 800; } h2 { font-size: 1.3rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .7em; } img { max-width: 100%; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .tiny { font-size: .78rem; } .center { text-align: center; } .italic { font-style: italic; color: var(--muted); }
.serif { font-family: var(--serif); } .big { font-size: 1.25rem; line-height: 1.4; } .lead { font-size: 1.08rem; line-height: 1.5; }
.grow { flex: 1; min-width: 0; } .row { display: flex; gap: 8px; align-items: center; } .row.between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 8px; } .center-row { justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; } @media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.err { color: var(--bad); font-size: .9rem; margin: 8px 0 0; } .err:empty { display: none; }
.help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
svg { stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.inl { width: 14px; height: 14px; vertical-align: -2px; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1px solid transparent; border-radius: var(--r); padding: 12px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); background: var(--card); box-shadow: 0 0 0 3px var(--soft); }
textarea { min-height: 96px; resize: vertical; } input[type=file] { padding: 10px; font-size: .9rem; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
label.chk { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 12px 0; }
.pwwrap { position: relative; } .pwwrap input { padding-right: 48px; }
.pwwrap .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pwwrap .eye svg { width: 20px; height: 20px; } .pwwrap .eye.on { color: var(--primary); }
.aifilled { box-shadow: 0 0 0 3px var(--soft) !important; border-color: var(--primary) !important; }

/* ---------------------------------------------------------------- buttons (Facebook: solid, rounded, no outlines) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink); font: 600 .95rem var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .12s, background .12s; }
.btn:hover { filter: brightness(.96); } .btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--primary); color: var(--on-primary); } .btn.primary:hover { background: var(--primary-hover); filter: none; }
.btn.soft { background: var(--soft); color: var(--soft-ink); }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.danger { background: transparent; color: var(--bad); } .btn.ghost.danger { color: var(--bad); }
.btn.block { display: flex; width: 100%; } .btn.sm { min-height: 34px; padding: 6px 12px; font-size: .88rem; border-radius: 8px; } .btn.lg { min-height: 48px; font-size: 1.02rem; padding: 10px 20px; border-radius: 12px; }
.btn.icon { padding: 0; width: 40px; } .btn[disabled] { opacity: .5; cursor: default; }
.btnrow { display: flex; gap: 8px; } .btnrow > .btn { flex: 1; } .btnrow > .btn.icon { flex: 0 0 44px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--primary); font: 600 .95rem var(--sans); cursor: pointer; }

/* pills: grey filter pills and the light-blue active tab pill */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; } .pills.scroll::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer; white-space: nowrap; text-decoration: none; }
.pill.on { background: var(--soft); color: var(--soft-ink); } .pill.solid { background: var(--primary); color: var(--on-primary); } .pill small { color: var(--muted); font-weight: 600; }
.pill .ar { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; }
.fpill { position: relative; } .fpill select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .78rem; font-weight: 600; }
.chip.warm { background: var(--soft); color: var(--soft-ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); display: inline-block; }

/* ---------------------------------------------------------------- the shell */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); background: rgba(6,8,26,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); min-width: 0; }
.brand .mark { width: 36px; height: 36px; border-radius: 50%; }
.brand-text { min-width: 0; overflow: hidden; }
.brand-text b { display: block; font: 800 1.12rem/1.1 var(--sans); letter-spacing: -.02em; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text .the { display: none; }
@media (min-width: 420px) { .brand-text b { font-size: 1.3rem; } .brand-text .the { display: inline; } }
@media (max-width: 520px) { .brand-text { display: none; } }  /* phones: the logo alone, so the buttons fit (Nov 24, the name was cut to "Twel") */
.brand-text small { display: none; }
.nav { display: none; flex: 1; justify-content: center; gap: 4px; }
.topright { display: flex; align-items: center; gap: 0; margin-left: auto; flex-shrink: 0; }
.ib { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.ib svg { width: 24px; height: 24px; } .ib:hover { background: var(--hover); }
.ib.help { color: var(--bad); }
.badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 .7rem/18px var(--sans); text-align: center; border: 2px solid var(--card); box-sizing: content-box; }
.app { max-width: 680px; margin: 0 auto; padding: 12px 16px calc(110px + env(safe-area-inset-bottom)); }
/* the floating tab bar (Facebook iOS) */
.tabs { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around; padding: 6px; border-radius: 30px; background: rgba(16,20,48,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--lift); border: 1px solid var(--line-soft); max-width: 560px; margin: 0 auto; }
.tabs:empty { display: none; }
.tabs a { position: relative; flex: 1; height: 50px; display: grid; place-items: center; border-radius: 24px; color: var(--ink); }
.tabs a .ic svg { width: 27px; height: 27px; }
.tabs a.on { background: var(--soft); color: var(--gold); } .tabs a.on .ic svg { stroke-width: 2.3; }
.tabs a .lbl { display: none; }
.tabs .avatar { width: 34px; height: 34px; font-size: .8rem; } .tabs a.on .avatar { box-shadow: 0 0 0 2px var(--primary); }
.tabs .badge { top: 4px; right: calc(50% - 24px); border-color: var(--card); }
@media (min-width: 1000px) {
  .top { padding: 0 16px; height: 60px; }
  .nav { display: flex; align-self: stretch; }
  .nav a { position: relative; display: grid; place-items: center; width: 104px; color: var(--muted); border-radius: 8px; margin: 4px 0; }
  .nav a:hover { background: var(--hover); } .nav a svg { width: 28px; height: 28px; }
  .nav a.on { color: var(--gold); border-radius: 0; margin: 0; } .nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }
  .nav .badge { top: 8px; right: 30px; }
  .topright { gap: 8px; } .ib { width: 40px; height: 40px; background: var(--surface); } .ib svg { width: 22px; height: 22px; }
  .tabs { display: none; } .app { padding-bottom: 40px; }
  .brand .mark { width: 40px; height: 40px; }
}
/* page header for sub-pages: back arrow, centered title, icons right */
.subhead { position: sticky; top: 56px; z-index: 20; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; margin: -12px -16px 10px; padding: 6px 8px; background: rgba(6,8,26,.9); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line-soft); }
.subhead h1 { margin: 0; font-size: 1.15rem; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subhead .back { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; } .subhead .back svg { width: 26px; height: 26px; transform: rotate(180deg); }
.subhead .sright { display: flex; gap: 2px; min-width: 44px; justify-content: flex-end; } .subhead .sright .ib svg { width: 22px; height: 22px; }
@media (min-width: 1000px) { .subhead { top: 60px; } }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 12px; } .pagehead h1 { margin: 0; }
.sechead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; } .sechead h2 { margin: 0; font-size: 1.25rem; font-weight: 800; } .sechead a, .sechead .linkbtn { font-weight: 600; font-size: .95rem; }
.backlink { display: none; }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--card); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card.flat { background: var(--card); } .card > h3:first-child { margin-top: 0; }
.card.warn { background: #2B2410; }
.card.safety { background: #3B1622; }
.card.mini { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); } .card.mini b { display: block; } .card.mini small { display: block; color: var(--muted); }
.card.mini .chev svg { width: 18px; height: 18px; color: var(--muted); } .card.mini.accent { background: var(--soft); }
.empty { text-align: center; padding: 28px 14px; color: var(--muted); } .empty .big { font-size: 2.2rem; margin-bottom: 6px; }
.fi { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--soft); color: var(--primary); }
.fi svg { width: 22px; height: 22px; }
.rows { background: var(--card); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); }
.rowlink { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; color: var(--ink); font: 600 1rem var(--sans); text-align: left; cursor: pointer; text-decoration: none; position: relative; }
.rowlink + .rowlink::before { content: ''; position: absolute; top: 0; left: 64px; right: 0; border-top: 1px solid var(--line-soft); }
.rowlink:hover { background: var(--hover); }
.rowlink .ri { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); flex: none; } .rowlink .ri svg { width: 20px; height: 20px; }
.rowlink .ri.rn { font: 700 .85rem var(--serif); }
.rowlink .rt { flex: 1; min-width: 0; } .rowlink .rt small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowlink .chev { color: var(--muted); } .rowlink .chev svg { width: 18px; height: 18px; } .rowlink.danger { color: var(--bad); }
.listitem { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); } .listitem + .listitem { border-top: 1px solid var(--line-soft); } .listitem b { font-weight: 700; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #2A3170, #4A3466); color: var(--soft-ink); font-weight: 700; font-size: .9rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xs { width: 32px; height: 32px; font-size: .7rem; } .avatar.sm { width: 36px; height: 36px; } .avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar.xl { width: 168px; height: 168px; font-size: 3rem; border: 4px solid var(--card); } .avatar.square { border-radius: 22%; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 10px; }
.stat { background: var(--card); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow); } .stat b { display: block; font-size: 1.6rem; font-weight: 800; } .stat span { color: var(--muted); font-size: .85rem; }
.toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast { background: #F1EADF; color: #1A1206 !important; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: .95rem; box-shadow: var(--lift); animation: pop .2s ease-out; } .toast.bad { background: var(--bad); }
@keyframes pop { from { transform: translateY(-8px); opacity: 0; } }

/* sheets: centered title, round X, bottom sheet on phones */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: grid; place-items: end center; }
.modal[hidden] { display: none; }
.sheet { position: relative; width: min(100vw, 560px); max-height: 92vh; overflow: auto; background: var(--card); color: var(--ink); border-radius: 18px 18px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .22s cubic-bezier(.2,.8,.2,1); }
.sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 2px auto 8px; }
.sheet > h2:first-of-type { text-align: center; font-size: 1.15rem; margin: 0 -16px 12px; padding: 4px 56px 12px; border-bottom: 1px solid var(--line-soft); }
.sheet .sx { position: absolute; top: 14px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 2; } .sheet .sx svg { width: 18px; height: 18px; }
.sheet .asheet { position: absolute; top: 14px; left: 12px; z-index: 2; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
@media (min-width: 700px) { .modal { place-items: center; } .sheet { border-radius: 14px; box-shadow: var(--lift); } .sheet::before { display: none; } .sheet > h2:first-of-type { padding-top: 10px; } }

/* the assistant */
#assist { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; } #assist[hidden] { display: none; }
#assist .abox { background: var(--card); width: min(560px, 100%); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { #assist { align-items: center; } #assist .abox { border-radius: 14px; } }
#assist .ahead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } #assist .ahead b { flex: 1; font-size: 1.1rem; } #assist .aico svg { width: 22px; height: 22px; color: var(--primary); }
#assist textarea { margin: 8px 0 10px; } #assist #anote { margin-top: 8px; } #assist #anote.bad { color: var(--bad); }

/* ---------------------------------------------------------------- home and the feed */
.greet { display: none; }
.composer { display: flex; align-items: center; gap: 10px; background: var(--card); margin: 0 0 4px; padding: 12px 14px; border-radius: var(--r-lg); }
.composer .cinput { flex: 1; text-align: left; padding: 10px 16px; border-radius: 999px; border: 0; background: var(--field); color: var(--muted); font: 1rem var(--sans); cursor: pointer; }
.composer .cbtn, .cbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--good); display: grid; place-items: center; cursor: pointer; } .cbtn svg { width: 26px; height: 26px; }
.herocard { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 18px; margin: 12px 0; color: #fff; background: radial-gradient(420px 220px at 100% 0%, rgba(120,110,255,.55), transparent 70%), linear-gradient(135deg, #1A2366, #070A1C); }
.herocard .eyebrow { color: rgba(255,255,255,.75); } .herocard h2 { color: #fff; margin: 6px 0 4px; } .herocard p { color: rgba(255,255,255,.85); }
.herocard p.serif { font-size: 1.25rem; line-height: 1.4; margin: 8px 0 14px; color: #fff; }
.herocard .btn { background: rgba(255,255,255,.12); color: #fff; } .herocard .btn.primary { background: var(--primary); color: var(--on-primary); }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; } .hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; }
.post { background: var(--card); margin: 0 0 10px; padding: 12px 0 4px; border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 700px) { .post { margin: 0 0 12px; border-radius: var(--r-lg); box-shadow: var(--shadow); } }
.phead { display: flex; gap: 10px; align-items: center; padding: 0 16px; } .phead a { color: var(--ink); } .phead b { font-weight: 700; }
.phead .tiny { display: flex; align-items: center; gap: 4px; } .phead .tiny svg { width: 12px; height: 12px; }
.pbody { padding: 10px 16px 4px; white-space: pre-wrap; line-height: 1.45; font-size: 1rem; }
.pmedia { margin-top: 8px; } .pmedia img, .pmedia video { width: 100%; max-height: 620px; object-fit: cover; display: block; }
.pevent { padding: 6px 16px 0; }
.pfoot { display: flex; gap: 22px; padding: 10px 16px 6px; color: var(--muted); }
.pact { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: 600 .95rem var(--sans); cursor: pointer; padding: 4px 0; } .pact svg { width: 24px; height: 24px; }
.pcomments { padding: 0 16px; }
.comment { display: flex; gap: 8px; margin: 8px 0; } .cbody { background: var(--field); padding: 8px 12px; border-radius: 18px; font-size: .95rem; } .cbody a { color: var(--ink); font-weight: 700; }
.cform { display: flex; gap: 8px; align-items: center; margin: 8px 0 10px; } .cform input { border-radius: 999px; padding: 10px 16px; } .cform .btn { border-radius: 50%; width: 40px; padding: 0; }
.pcard { flex: 0 0 160px; background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); text-align: left; padding: 0 0 10px; }
.pcard > a { display: block; color: var(--ink); } .pcard .pcimg { height: 150px; display: grid; place-items: center; background: var(--surface); }
.pcard .pcimg .avatar { width: 100%; height: 100%; border-radius: 0; font-size: 2.2rem; } .pcard b { display: block; padding: 8px 10px 0; } .pcard small { display: block; padding: 0 10px; color: var(--muted); }
.pcard .btn { margin: 8px 10px 0; width: calc(100% - 20px); }
.etcard { flex: 0 0 280px; }

/* ---------------------------------------------------------------- profiles (Facebook profile) */
.fbhead { margin: -10px -16px 0; padding: 0 16px 14px; border-bottom: 1px solid var(--line-soft); }
.fbhead .cover { position: relative; height: 210px; margin: 0 -16px; background: radial-gradient(500px 220px at 75% 20%, rgba(143,134,255,.45), transparent), linear-gradient(135deg, #1B2257, #3A2A55 60%, #6B4B2A); overflow: hidden; }
.fbhead .cover img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; } .fbhead .cover .blur { display: none; }
.covbtn, .avbtn { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.covbtn { right: 14px; bottom: 14px; } .avbtn { right: 8px; bottom: 10px; } .covbtn svg, .avbtn svg { width: 20px; height: 20px; }
.fbhead .avwrap { position: relative; width: 176px; margin: -96px 0 10px; }
.fbhead .avwrap .avatar.xl { border-color: #0B0F2A; box-shadow: 0 0 0 3px var(--primary); }
.fbhead h1 { font-size: 1.9rem; font-weight: 800; margin: 0; }
.fbnums { margin-top: 4px; font-size: 1rem; color: var(--muted); } .fbnums b { color: var(--ink); }
.signs { margin-top: 8px; display: inline-flex; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--soft-ink); font-weight: 600; font-size: .9rem; }
.fbbtns { display: flex; gap: 8px; margin-top: 14px; } .fbbtns > .btn { flex: 1; } .fbbtns > .btn.icon { flex: 0 0 48px; }
.ptabs { display: flex; gap: 6px; margin: 12px 0 4px; } .ptabs button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 700 1rem var(--sans); color: var(--ink); cursor: pointer; } .ptabs button.on { background: var(--soft); color: var(--soft-ink); }
.pgrid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 1000px) { .pgrid { grid-template-columns: 360px 1fr; } .app:has(.pgrid), .app:has(.chartgrid), .app:has(.pgrid2) { max-width: 1100px; } .fbhead .cover { height: 320px; } }
.details { display: grid; gap: 12px; } .details .dl { display: flex; gap: 12px; align-items: flex-start; } .details .dl svg { width: 24px; height: 24px; color: var(--muted); flex: none; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.fgrid a { color: var(--ink); background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-soft); }
.fgrid .avatar { width: 100%; height: auto; aspect-ratio: 1; border-radius: 0; font-size: 1.6rem; } .fgrid b { display: block; padding: 6px 8px 8px; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minifaces { display: inline-flex; vertical-align: middle; margin-right: 6px; } .minifaces .avatar { width: 22px; height: 22px; font-size: .55rem; border: 2px solid var(--card); margin-left: -6px; } .minifaces .avatar:first-child { margin-left: 0; }

/* people list (Facebook Suggested Pages) */
.plist .person { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 14px 0; }
.plist .person + .person { border-top: 1px solid var(--line-soft); }
.plist .person .avatar { width: 84px; height: 84px; font-size: 1.6rem; }
.plist .person b { font-size: 1.1rem; color: var(--ink); } .plist .person .meta { color: var(--muted); font-size: .9rem; margin: 2px 0 8px; }
.searchbar { position: relative; margin: 2px 0 12px; } .searchbar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.searchbar input { border-radius: 999px; padding: 12px 16px 12px 44px; background: var(--surface); }

/* ---------------------------------------------------------------- the Healing Center (Facebook Jobs / Marketplace grid) */
.healhead { display: none; }
.toolrow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 6px; padding: 2px 16px; } .toolrow::-webkit-scrollbar { display: none; }
.toolrow > * { flex: none; }
.nearhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 14px 0 10px; }
.nearhead h2 { margin: 0; font-size: 1.25rem; font-weight: 800; } .nearhead a, .nearhead button { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; font-size: .95rem; color: var(--primary); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nearhead svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.pgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } @media (min-width: 760px) { .pgrid2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.ptile { display: block; background: var(--card); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); box-shadow: 0 0 0 1px var(--line-soft), var(--shadow); }
.pimg { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(200px 120px at 70% 10%, rgba(130,120,255,.5), transparent), linear-gradient(135deg, #1A2366, #3E2B6B); }
.pimg > img:not(.plogo) { width: 100%; height: 100%; object-fit: cover; display: block; }
.pglyph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; }
.plogo { position: absolute; left: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; background: #fff; }
.ptile .pbody { padding: 10px 12px 12px; display: grid; gap: 2px; white-space: normal; } .ptile .pbody b { font-size: 1.02rem; line-height: 1.25; } .ptile .pbody small { font-size: .85rem; color: var(--ink); } .ptile .pbody small.muted { color: var(--muted); }
.ptile .pbody .chip { justify-self: start; margin-top: 6px; }
.hscroll.tiles .ptile { flex: 0 0 66%; max-width: 260px; }
.gchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 4px; padding: 2px 16px; } .gchips::-webkit-scrollbar { display: none; }
.gchip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; } .gchip.on { background: var(--soft); color: var(--soft-ink); }
.catpills { margin: 6px 0 4px; }
/* events: Facebook event rows and cards */
.elist { background: var(--card); border-radius: var(--r-lg); padding: 4px 14px; box-shadow: var(--shadow); }
.etile { display: flex; gap: 12px; align-items: center; color: var(--ink); padding: 10px 0; } .elist .etile + .etile { border-top: 1px solid var(--line-soft); }
.edate { flex: none; width: 52px; height: 56px; border-radius: 10px; background: var(--card); box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; align-content: center; overflow: hidden; }
.edate small { order: -1; width: 100%; text-align: center; background: var(--date); color: var(--on-primary); font: 800 .66rem/1.6 var(--sans); text-transform: uppercase; letter-spacing: .05em; }
.edate b { font: 800 1.3rem/1.2 var(--sans); }
.ebody { display: grid; min-width: 0; } .ebody b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ebody small { font-size: .85rem; color: var(--muted); }
.ebody small:first-of-type { color: var(--date); font-weight: 700; }
.etcard { background: var(--card); border-radius: var(--r-lg); padding: 4px 12px; box-shadow: 0 0 0 1px var(--line-soft); }
.enjoy { display: grid; gap: 16px; } .eghead { font-weight: 800; margin-bottom: 8px; }
.stickybar { position: sticky; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 12px 0 0; }
@media (min-width: 1000px) { .stickybar { bottom: 12px; } }
.perk { padding: 10px 0; } .perk + .perk { border-top: 1px solid var(--line-soft); } .perk.off { opacity: .5; }
.formcard label { margin-top: 14px; } #catpick { margin-top: 4px; }
.eventpage .ecover { margin: 0 0 10px; border-radius: var(--r-lg); overflow: hidden; } .eventpage .ecover img { width: 100%; max-height: 340px; object-fit: cover; display: block; }
.eventpage .card { border-radius: var(--r-lg); margin: 0 0 12px; } @media (min-width: 700px) { .eventpage .card { margin: 0 0 12px; border-radius: var(--r-lg); } }
.eventpage .when { color: var(--date); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .03em; }
.eventpage h1 { margin: 6px 0; font-size: 1.6rem; } .edatebig { display: none; }

/* ---------------------------------------------------------------- Messenger */
.clist { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; }
.crow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); } .crow:hover { background: var(--hover); }
.crow .avatar.lg { width: 56px; height: 56px; }
.crow .cname { font-weight: 600; font-size: 1.02rem; } .crow .cprev { font-size: .92rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow.unread .cname, .crow.unread .cprev { color: var(--ink); font-weight: 700; }
.crow .cside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; } .crow .ctime { font-size: .8rem; color: var(--muted); }
.cdot { min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; background: var(--primary); color: var(--on-primary); font: 700 .72rem/20px var(--sans); text-align: center; }
.cico { width: 56px; height: 56px; border-radius: 50%; background: var(--soft); color: var(--primary); display: grid; place-items: center; flex: none; } .cico svg { width: 26px; height: 26px; }
.cgroup h3 { margin: 8px 0 4px; }
.chatpage { display: flex; flex-direction: column; height: calc(100dvh - 56px); margin: -12px -16px calc(-110px - env(safe-area-inset-bottom)); background: var(--bg); }
@media (min-width: 1000px) { .chatpage { height: calc(100dvh - 60px); margin-bottom: -40px; } }
.chead { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); } .chead a { color: var(--ink); }
.cback { width: 36px; height: 36px; display: grid; place-items: center; color: var(--primary) !important; } .cback svg { width: 26px; height: 26px; transform: rotate(180deg); stroke-width: 2.4; }
.cbar { display: flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--soft); flex-wrap: wrap; } .cbar .small { flex: 1 1 180px; }
.cthread { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 3px; }
.cday { text-align: center; color: var(--muted); font-size: .78rem; margin: 12px 0 6px; font-weight: 600; }
.msg { display: flex; gap: 6px; align-items: flex-end; max-width: 78%; } .msg.me { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 18px; font-size: 1rem; line-height: 1.35; word-break: break-word; }
.msg.me .bubble { background: var(--primary); color: var(--on-primary); }
.bubble.pic { padding: 0; overflow: hidden; background: none; } .bubble.pic img, .bubble.pic video { display: block; max-width: 260px; max-height: 340px; border-radius: 18px; } .bubble.pic div { padding: 6px 12px; }
.ccomposer { display: flex; align-items: center; gap: 4px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: var(--card); }
.ccomposer .cbtn { color: var(--primary); width: 38px; height: 38px; } .ccomposer .cbtn svg { width: 26px; height: 26px; }
.ccomposer input { flex: 1; border-radius: 999px; padding: 10px 16px; background: var(--field); }
.csend { width: 40px; height: 40px; border: 0; background: none; color: var(--primary); display: grid; place-items: center; cursor: pointer; } .csend svg { width: 26px; height: 26px; fill: currentColor; }
body:has(.chatpage) .tabs { display: none; }

/* ---------------------------------------------------------------- More menu (iOS tile grid) */
.tilegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-lg); background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 700; position: relative; }
.tile .ti { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; } .tile .ti svg { width: 24px; height: 24px; stroke-width: 2.2; }
.tile small { position: absolute; top: 16px; right: 16px; font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.mehead { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); color: var(--ink); margin-bottom: 14px; }
.mehead b { font-size: 1.1rem; display: block; } .mehead small { color: var(--muted); }

/* ---------------------------------------------------------------- auth and the signed-out home */
.authcard { max-width: 440px; margin: 18px auto; } .authlogo { display: block; width: 84px; height: 84px; margin: 4px auto 12px; border-radius: 50%; }
.hero.dark { text-align: center; padding: 30px 8px 24px; color: #fff; }
.hero.dark h1 { font-size: 2.4rem; margin: 8px 0; color: #fff; } .hero.dark p { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 520px; margin: 0 auto 16px; }
.hero.dark .eyebrow { color: rgba(255,255,255,.7); } .hero.dark .btn { background: rgba(255,255,255,.12); color: #fff; } .hero.dark .btn.primary { background: var(--primary); color: var(--on-primary); }
.heroeye { width: 140px; height: 140px; border-radius: 50%; box-shadow: 0 0 70px rgba(120,110,255,.55); animation: drift 30s linear infinite; } @keyframes drift { to { transform: rotate(360deg); } }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; } .feat { margin: 0; } .feat b { display: block; margin: 10px 0 2px; }
.legal h1 { margin-top: 0; } .legal h2 { margin-top: 18px; font-size: 1.1rem; }

/* ---------------------------------------------------------------- the journal */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; } @media (min-width: 760px) { .doors { grid-template-columns: repeat(3, 1fr); } }
.door { position: relative; display: grid; gap: 2px; padding: 14px; border-radius: var(--r-lg); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.door .rn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem var(--serif); color: var(--on-primary); background: linear-gradient(135deg, #F2CD98, #D9A86A); margin-bottom: 6px; }
.door .nm { font-weight: 800; font-size: 1.02rem; } .door .th { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.door .ct { position: absolute; top: 14px; right: 14px; font-size: 1rem; font-weight: 600; color: var(--muted); }
h1.prompt { font: italic 400 1.6rem/1.3 var(--serif); margin: 6px 0; }
textarea.write { min-height: 46vh; font: 1.1rem/1.65 var(--serif); padding: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); margin: 10px 0; }
.entrytext { white-space: pre-wrap; font: 1.1rem/1.65 var(--serif); }
.lockline { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .85rem; margin: 0 0 10px; } .lockline svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- the plan */
.hero-plan { text-align: center; } .hero-plan img { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 8px; }
.focus { display: flex; gap: 14px; } .fnum { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--on-primary); background: var(--primary); }
.focus h3 { font-size: 1.2rem; margin: 6px 0 2px; }
.focus blockquote { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: var(--field); font: italic 1.02rem/1.5 var(--serif); }
.focus blockquote small { display: block; font: 700 .7rem var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.steps { margin: 6px 0 10px; padding-left: 20px; } .steps li { margin: 4px 0; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (max-width: 560px) { .twocol { grid-template-columns: 1fr; } } .daily p { margin: 6px 0 0; }
.plancta { display: flex; gap: 14px; align-items: center; margin-top: 16px; } .plancta b { display: block; font-size: 1.05rem; }
.picklist { display: grid; gap: 6px; max-height: 46vh; overflow: auto; margin: 10px 0; }
.pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--field); cursor: pointer; font-weight: 400; margin: 0; }
.pick input { margin-top: 2px; } .pick small { display: block; font-size: .84rem; } .pick span { min-width: 0; }

/* ---------------------------------------------------------------- the chart (v2 wheel; the wheel keeps its night sky in both themes) */
.birthcard form { display: none; margin-top: 10px; } .birthcard.open form { display: block; }
.bsum { all: unset; display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.bsum .edit { padding: 7px 14px; border-radius: 8px; background: var(--surface); font-weight: 600; font-size: .9rem; }
.cityres { display: grid; background: var(--card); border-radius: var(--r); box-shadow: var(--lift); overflow: hidden; margin-top: 4px; }
.cityres button { all: unset; cursor: pointer; padding: 11px 14px; display: flex; justify-content: space-between; gap: 10px; } .cityres button + button { border-top: 1px solid var(--line-soft); } .cityres button:hover { background: var(--hover); } .cityres button span { color: var(--muted); font-size: .85rem; }
.lens { display: flex; gap: 6px; justify-content: center; margin: 12px 0 6px; } .lens button { border: 0; padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer; } .lens button.on { background: var(--soft); color: var(--soft-ink); }
.chartgrid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 8px; }
.chartcenter { min-width: 0; grid-row: 1; }
.eyewheel { position: relative; overflow: hidden; background: radial-gradient(circle at 50% 50%, #141A45, var(--sky) 70%); border-radius: 24px; }
.eyewheel svg { width: 100% !important; height: auto !important; max-width: 560px; display: block; margin: 0 auto; }
.chartcol { min-width: 0; display: grid; gap: 8px; align-content: start; }
.pl { padding: 12px 14px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); }
.pl-head { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; } .pl-glyph { color: var(--gold); font-size: 1.1rem; }
.pl-house { font-size: .8rem; color: var(--primary); font-weight: 600; margin-top: 2px; } .note { font-size: .86rem; color: var(--muted); margin-top: 5px; line-height: 1.5; }
.rising { text-align: center; margin-top: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; margin-top: 8px; font-size: .82rem; } .legend label.chk { margin: 0; font-size: .82rem; }
.chartcenter .pills { justify-content: center; margin-top: 8px; }
.apill { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); }
.crosscard { margin-top: 14px; text-align: center; background: linear-gradient(135deg, #1A2366, #070A1C); color: #fff; }
.crosscard .eyebrow { color: #F3C77C; } .crosspts { font: 400 1.1rem var(--serif); color: #F3C77C; margin-top: 6px; } .crosspts span { color: rgba(255,255,255,.6); } .crosscard p { color: rgba(255,255,255,.85); }
.question { background: var(--soft); } .question .eyebrow { color: var(--soft-ink); }
.hlist { display: grid; gap: 8px; } .hdet { border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.hdet summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; } .hdet summary > * { min-width: 0; } .hdet summary::-webkit-details-marker { display: none; }
.hdet .num { font: 700 .95rem var(--serif); color: var(--primary); width: 30px; text-align: center; } .hdet .grow { flex: 1; } .hdet .m { display: block; color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdet .glyphs { color: var(--gold); } .hdet .chev { color: var(--muted); transition: transform .2s; } .hdet[open] .chev { transform: rotate(90deg); }
.hbody { padding: 0 16px 16px 56px; } .hprompt { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--field); color: var(--ink); font-style: italic; }
.ewtw { animation: ewtw 3.6s ease-in-out infinite; } @keyframes ewtw { 0%, 100% { opacity: .15; } 50% { opacity: .9; } }
@media (min-width: 1000px) { .chartgrid { grid-template-columns: 1fr minmax(380px, 540px) 1fr; gap: 16px; align-items: start; } .chartcenter { grid-row: auto; } }

/* ---------------------------------------------------------------- events, like the Facebook Events page */
.evcards { display: grid; gap: 12px; } @media (min-width: 760px) { .evcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.evcard { background: var(--card); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); display: block; }
.evcard .evimg { aspect-ratio: 16 / 8; background: radial-gradient(300px 140px at 75% 10%, rgba(143,134,255,.5), transparent), linear-gradient(135deg, #1B2257, #3A2A55); display: grid; place-items: center; font-size: 2.4rem; overflow: hidden; }
.evcard .evimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evcard .evbody { padding: 12px 14px 14px; }
.evcard .evwhen { color: var(--date); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; }
.evcard h3 { margin: 4px 0 2px; font-size: 1.1rem; } .evcard .evwhere, .evcard .evcount { color: var(--muted); font-size: .9rem; }
.evcard .btnrow { margin-top: 12px; }

/* ---- big screens: scale the whole app up so it reads like a normal laptop screen (Will's display is 2560 wide at 100%) */
@media (min-width: 1700px) { html { zoom: 1.2; } }
@media (min-width: 2200px) { html { zoom: 1.4; } }
/* ---- Facebook desktop profile header: photo left over the cover, name beside it, buttons on the right */
@media (min-width: 1000px) {
  .fbhead { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto auto auto; column-gap: 20px; padding: 0 24px 18px; margin: -12px -16px 0; }
  .fbhead .cover { grid-column: 1 / -1; grid-row: 1; margin: 0 -24px; border-radius: 0 0 14px 14px; height: 360px; }
  .fbhead .avwrap { grid-column: 1; grid-row: 2 / 5; margin: -70px 0 0; align-self: start; }
  .fbhead h1 { grid-column: 2; grid-row: 2; align-self: end; margin-top: 18px; font-size: 2.1rem; }
  .fbhead .fbnums { grid-column: 2; grid-row: 3; }
  .fbhead .signs { grid-column: 2; grid-row: 4; justify-self: start; align-self: start; }
  .fbhead .fbbtns { grid-column: 3; grid-row: 2 / 5; align-self: end; margin: 0; }
  .fbhead .fbbtns > .btn { flex: none; padding: 0 16px; } .fbhead .fbbtns > .btn.icon { width: 44px; padding: 0; }
  .pgrid aside { position: sticky; top: 72px; align-self: start; }
}
/* Intro card (Facebook) */
.intro { text-align: center; white-space: pre-wrap; line-height: 1.5; margin: 6px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.intro.muted { white-space: normal; }

/* ---- no sideways-scrolling bubbles: filters and groups wrap on phones */
.toolrow, .gchips { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.gchip .gi { font-size: 1rem; }
/* ---- Healing Center on a computer: filters in a left sidebar, results on the right (like ED and Facebook Marketplace) */
@media (min-width: 1000px) {
  .app:has(.hgrid) { max-width: 1240px; }
  .hgrid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
  .hside { position: sticky; top: 72px; background: var(--card); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow); max-height: calc(100vh - 96px); overflow-y: auto; }
  .hside .pagehead h1 { font-size: 1.5rem; margin: 0 0 4px; }
  .hside .toolrow { flex-direction: column; align-items: stretch; gap: 8px; margin: 10px 0 14px; }
  .hside .toolrow > * { justify-content: center; }
  .hside .gchips { flex-direction: column; gap: 2px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }
  .hside .gchip { background: none; border-radius: 10px; padding: 10px 10px; font-size: .98rem; }
  .hside .gchip:hover { background: var(--hover); }
  .hside .gchip .gi { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
  .hside .gchip.on { background: var(--soft); } .hside .gchip.on .gi { background: var(--primary); }
  .hmain .nearhead { margin-top: 4px; }
}
/* ---- top bar like ED: words next to the icons on a computer */
.nav .nlbl, .tlbl { display: none; }
@media (min-width: 1000px) {
  .nav a { width: auto; padding: 0 16px; display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .98rem; }
  .nav a svg { width: 24px; height: 24px; } .nav a .avatar.sm { width: 28px; height: 28px; font-size: .7rem; }
  .nav .nlbl { display: inline; } .nav .badge { top: 8px; right: 4px; }
  .ib.lab { width: auto; padding: 0 16px 0 12px; border-radius: 999px; gap: 6px; display: inline-flex; font: 600 .95rem var(--sans); }
  .ib.lab .tlbl { display: inline; } .ib#ai { background: var(--primary); color: var(--on-primary); }
}
@media (min-width: 1000px) and (max-width: 1280px) { .nav .nlbl { display: none; } .nav a { padding: 0 22px; } }
/* ---- Messenger on a computer: chats left, conversation right */
@media (min-width: 1000px) {
  .app:has(.mwrap) { max-width: none; padding: 0; }
  .mwrap { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 380px 1fr; }
  .mlist { overflow-y: auto; padding: 14px 10px 24px; border-right: 1px solid var(--line-soft); background: var(--card); }
  .mlist .pagehead { padding: 0 6px; } .mlist .pagehead h1 { font-size: 1.5rem; margin: 0; }
  .mlist .searchbar { margin: 8px 6px 10px; }
  .mlist .clist { box-shadow: none; background: transparent; border-radius: 0; }
  .mlist .crow { border-radius: 10px; } .mlist .crow.cur { background: var(--soft); }
  .mlist .cgroup h3, .mlist .cgroup p, .mlist .sechead { padding: 0 6px; }
  .mpane { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
  .mpane .chatpage { flex: 1; height: auto; min-height: 0; margin: 0; }
  .mpane .cback { display: none; }
  .mpane .chead { padding: 10px 16px; } .mpane .cthread { padding: 16px 24px; }
  .mempty { margin: auto; text-align: center; } .mempty .big { font-size: 2.6rem; }
}
.ccomposer .gif { font-size: .72rem; border: 2px solid currentColor; border-radius: 5px; padding: 1px 3px; line-height: 1; }
.toolrow .pill svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 1000px) { .nav .badge { position: static; margin-left: -2px; border: 0; } }
/* ---- Search results (Facebook): one card per kind, rows with buttons on the right */
.sres { padding: 14px 16px; } .sres h2 { font-size: 1.2rem; margin: 0 0 4px; }
.srow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.sres .row + .srow { border-top: 0; }
.srow b { font-size: 1.02rem; color: var(--ink); } .srow .meta { color: var(--muted); font-size: .9rem; } .srow .chip { margin-top: 4px; background: var(--soft); color: var(--soft-ink); }
.srow .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sbtns { display: flex; gap: 8px; flex: none; }
.gchip .gi svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .srow { flex-wrap: wrap; } .sbtns { width: 100%; } .sbtns > * { flex: 1; } }
/* event rows with the event's picture (date label on it) */
.ethumb { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; flex: none; background: var(--surface); }
.ethumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ethumb span { position: absolute; left: 4px; bottom: 4px; background: rgba(6,8,26,.82); color: var(--date); font: 800 .7rem/1 var(--sans); padding: 3px 5px; border-radius: 6px; text-transform: uppercase; }
/* a cover of any shape shows whole over a blurred copy of itself (ED) */
.eventpage .ecover .evimg { position: relative; }
.eventpage .ecover .evimg img { position: relative; object-fit: contain; z-index: 1; }
.eventpage .ecover .evimg .blurbg { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) brightness(.6); z-index: 0; }
@media (min-width: 1000px) { .eventpage .ecover .evimg { aspect-ratio: 16 / 7; } .app:has(.eventpage) { max-width: 940px; } }

/* ===== Nov 23, ED patterns ===== */
/* phone tab bar: labels under the icons (ED) */
.tabs a { display: flex; flex-direction: column; gap: 2px; height: 56px; justify-content: center; align-items: center; }
.tabs a .lbl { display: block; font: 600 .68rem/1 var(--sans); color: var(--muted); }
.tabs a.on .lbl { color: var(--gold); }
.tabs a .ic svg { width: 24px; height: 24px; } .tabs .avatar { width: 26px; height: 26px; font-size: .62rem; }
.tabs .badge { top: 2px; }
/* top bar: gold Network pill on every page, Feedback, More (ED) */
.ib.lab.net { width: auto; padding: 0 12px 0 10px; border-radius: 999px; gap: 6px; display: inline-flex; background: var(--soft); color: var(--gold); font: 700 .88rem var(--sans); margin-right: 4px; }
.ib.lab.net svg { width: 20px; height: 20px; }
.tlbl.always { display: inline !important; }
@media (max-width: 999px) { body.signedin .brand-text { display: none; } }
@media (max-width: 479px) { .ib svg { width: 22px; height: 22px; } .ib { width: 36px; height: 36px; } .top { gap: 6px; padding-left: 12px; padding-right: 10px; } }
@media (min-width: 1000px) and (max-width: 1599px) { .nav .nlbl { display: none !important; } .nav a { padding: 0 20px; } }
@media (min-width: 1000px) { .ib.lab.net { padding: 0 16px 0 12px; font-size: .95rem; } }
/* row icons as tinted rounded squares (ED) */
.rowlink .ri { border-radius: 10px; background: var(--soft); color: var(--gold); }
.rowlink.danger .ri { background: rgba(255,107,129,.14); color: var(--bad); }
/* Home greeting (ED) */
.greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.greet h1 { margin: 2px 0 0; font-size: 2rem; } .greet .muted { font-size: .95rem; }
/* banner cards: icon, words, one button (ED's network / install cards) */
.bcard { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 12px; }
.bcard .fi { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--gold); flex: none; } .bcard .fi svg { width: 22px; height: 22px; }
.bcard b { display: block; font-size: 1.02rem; } .bcard small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.bcard.gold { background: linear-gradient(135deg, rgba(235,192,142,.16), rgba(235,192,142,.06)); border: 1px solid rgba(235,192,142,.25); }
.bcard .btn { flex: none; }
.xbtn { border: 0; background: none; color: var(--muted); width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; flex: none; } .xbtn svg { width: 18px; height: 18px; }
.sechead .arr { color: var(--gold); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; } .sechead .arr:hover { background: var(--hover); } .sechead .arr svg { width: 22px; height: 22px; }
/* outline buttons (ED's Edit / Add) */
.btn.outline { background: transparent; border: 1.5px solid rgba(235,192,142,.45); color: var(--soft-ink); border-radius: 999px; }
.btn.outline:hover { background: var(--soft); }
/* Me: section cards (ED) */
.msec { padding: 14px 16px; margin-bottom: 10px; }
.mshead { display: flex; align-items: center; gap: 12px; }
.mshead .ri { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--gold); flex: none; } .mshead .ri svg { width: 20px; height: 20px; }
.mshead b { display: block; font-size: 1.02rem; } .mshead small { display: block; color: var(--muted); font-size: .86rem; }
.msbody { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.msbody .intro { text-align: left; border: 0; margin: 0; padding: 0; }
.msbody .signs { margin-top: 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; line-height: 1.4; background: var(--field); padding: 12px; border-radius: 10px; }
label.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.pgrid > *, .hgrid > * { min-width: 0; } .mshead .grow { min-width: 0; } .mshead small { overflow-wrap: anywhere; }
.btn { max-width: 100%; } .stack > .btn, .fbbtns > .btn, .sbtns > .btn { white-space: normal; text-align: center; line-height: 1.2; } .stack { min-width: 0; }
.bcard.gold { background: var(--card); border: 1px solid rgba(235,192,142,.4); }
/* page numbers above and below long lists */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 12px; }
.pager .pg { min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--surface); color: var(--ink); font-weight: 700; font-size: .95rem; }
.pager .pg:hover { background: var(--hover); } .pager .pg.on { background: var(--primary); color: var(--on-primary); }
.pager .pg.gap { background: none; min-width: 20px; padding: 0; color: var(--muted); }
.pager .pgcount { margin-left: auto; color: var(--muted); font-size: .88rem; }
/* the locked journal */
.protect { padding: 0; margin: 10px 0 14px; overflow: hidden; }
.protect summary { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer; }
.protect summary::-webkit-details-marker { display: none; }
.protect .pic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--gold); flex: none; } .protect .pic svg { width: 20px; height: 20px; }
.protect b { display: block; margin-bottom: 4px; } .protect .pline { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; margin-top: 3px; }
.protect .pline::before { content: '✓ '; color: var(--gold); font-weight: 700; }
.protect .more { color: var(--gold); font-weight: 700; font-size: .9rem; flex: none; } .protect[open] .more { visibility: hidden; }
.protect ul { margin: 0 16px 8px 66px; padding: 0; color: var(--ink); font-size: .92rem; line-height: 1.5; } .protect ul li { margin: 4px 0; }
.protect > a { display: block; margin: 0 16px 14px 66px; }
.lockcard { padding: 22px 20px; } .lockcard h2 { margin: 6px 0 8px; } .lockcard .bigic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); color: var(--gold); } .lockcard .bigic svg { width: 28px; height: 28px; }
.reckey { margin: 14px 0; padding: 16px; border-radius: 12px; background: var(--field); border: 1px dashed rgba(235,192,142,.5); font: 700 1.15rem/1.6 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; text-align: center; word-break: break-all; user-select: all; }

/* Nov 23: membership, the daily page, the twelve Houses and the mirror */
.paywall { text-align: center; } .paywall img { width: 64px; margin: 6px auto 10px; display: block; }
.memhero { text-align: center; background: linear-gradient(160deg, #1B2150, #0F1330); } .memhero h1 { font-size: 1.5rem; margin: 6px 0 12px; }
.prices { display: flex; justify-content: center; gap: 28px; margin: 4px 0 14px; } .prices b { display: block; font-size: 2rem; color: var(--gold); } .prices small { color: var(--muted); }
.rewards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0; } .rewards div { background: var(--surface); border-radius: var(--r); padding: 10px 4px; text-align: center; }
.rewards b { display: block; font-size: 1.2rem; color: var(--gold); } .rewards small { color: var(--muted); }
.big3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 12px; } .big3 div { background: var(--card); border-radius: var(--r); padding: 10px; text-align: center; }
.big3 small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; } .big3 b { color: var(--gold); font-size: 1rem; }
.daypage p { font-size: 1.02rem; line-height: 1.55; margin: 6px 0 0; }
.hwheel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin: 4px 0 12px; }
.hw { text-align: center; font-size: .72rem; font-weight: 700; padding: 7px 0; border-radius: 8px; background: var(--card); color: var(--muted); }
.hw.past { color: var(--gold); } .hw.on { background: var(--primary); color: var(--on-primary); }
.hhero h2 { margin: 6px 0; } .hbar { position: relative; height: 10px; border-radius: 6px; background: var(--surface); overflow: hidden; margin: 4px 0 10px; }
.hbar span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #C99654, var(--gold)); border-radius: 6px; } .hbar i { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.25); }
.hrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .hph { width: 58px; flex: none; font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hcells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; flex: 1; min-width: 0; }
.hstep { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .72rem; font-weight: 700; background: var(--surface); color: var(--muted); }
.hstep.open { border: 1.5px solid var(--primary); color: var(--ink); } .hstep.done { background: var(--soft); color: var(--gold); } .hstep.mirrored { background: var(--primary); color: var(--on-primary); }
.hstep.locked { opacity: .45; pointer-events: none; }
.mirrorbtn { display: block; width: 100%; margin: 12px 0; padding: 18px; border: 1px solid rgba(235,192,142,.35); border-radius: var(--r-lg); background: radial-gradient(120% 140% at 50% 0%, #2A2F63, #0F1330); color: var(--ink); text-align: center; cursor: pointer; position: relative; overflow: hidden; font: inherit; }
.mirrorbtn b { display: block; font-size: 1.15rem; color: var(--gold); } .mirrorbtn small { color: var(--muted); }
.mirrorbtn .glass { display: block; width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8e6, #EBC08E 45%, #8a6332); box-shadow: 0 0 18px rgba(235,192,142,.55); }
.mirrorbtn.shine::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent); animation: mshine 2.8s ease-in-out infinite; }
@keyframes mshine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .mirrorbtn.shine::after { animation: none; } }
.mirrorout { border: 1px solid rgba(235,192,142,.35); } .mirrorout p { font-size: 1.05rem; line-height: 1.5; }
.growth .gline { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line-soft); } .growth .gline:last-child { border-bottom: 0; }
.growth .gline p { margin: 0; } .growth .gline small { display: block; margin-top: 2px; } .growth .rn { flex: none; width: 34px; color: var(--gold); font-weight: 700; }
/* chart readings (Nov 23): dignity tags, the personal reading, significant placements */
.dig { font-size: .72rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: var(--surface); color: var(--muted); white-space: nowrap; }
.dig.domicile, .dig.exaltation { color: var(--good); } .dig.detriment, .dig.fall { color: var(--warn); } .dig.rx { color: #a78bfa; }

.reading { margin-top: 14px; text-align: left; } .reading p { line-height: 1.55; } .sigrow { border-top: 1px solid var(--line-soft); padding-top: 8px; margin-top: 8px; } .sigrow b { color: var(--gold); }
.libnote { line-height: 1.5; }
/* Nov 23: bigger type on the chart page and the daily page (Will: "the font gets small") */
.pl { padding: 14px 16px; } .pl-head b { font-size: 1.12rem; } .pl-house { font-size: .9rem; }
.note, .libnote { font-size: 1rem; color: var(--ink); opacity: .92; line-height: 1.55; }
.reading p { font-size: 1.04rem; } .reading .small, .sigrow .small { font-size: .98rem; }
.dig { font-size: .8rem; }
.dlist { margin: 6px 0 0; padding-left: 18px; } .dlist li { margin: 0 0 12px; font-size: 1.04rem; line-height: 1.55; } .dlist li:last-child { margin-bottom: 0; } .dlist b { color: var(--gold); }
.skyraw { white-space: pre-wrap; font-size: .82rem; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
.apill { font-size: .9rem !important; padding: 5px 11px !important; } .legend, .legend label.chk { font-size: .9rem; }
/* Nov 23 evening: the Houses game and the Life Story Journal */
.hsteps { padding: 4px 0; } .hsrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.hsrow:last-child { border-bottom: 0; } .hsic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface); font-size: 1.05rem; }
.hsrow.done .hsic { background: var(--primary); color: var(--on-primary); font-weight: 800; } .hsrow.locked { opacity: .5; pointer-events: none; }
.hstx { flex: 1; min-width: 0; } .hstx b { display: block; font-size: 1rem; } .hstx small { color: var(--muted); }
.moonc { display: flex; gap: 14px; align-items: center; } .moong { font-size: 2.6rem; line-height: 1; }
.teams .team { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; margin: 4px 0; border-radius: 8px; overflow: hidden; font-size: .95rem; }
.teams .team i { position: absolute; inset: 0 auto 0 0; background: rgba(235,192,142,.14); z-index: 0; } .teams .team span, .teams .team b { position: relative; z-index: 1; } .teams .team.mine { outline: 1px solid rgba(235,192,142,.5); }
.trivq p { font-size: 1.02rem; } .tropt { display: block; width: 100%; text-align: left; margin: 6px 0; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.tropt.on { border-color: var(--gold); background: rgba(235,192,142,.12); } .tropt.right { border-color: var(--good); background: rgba(74,222,128,.12); } .tropt.wrong { border-color: var(--warn); background: rgba(248,113,113,.12); }
.wrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); } .wrow:last-child { border-bottom: 0; } .wrow small { display: block; }
textarea.write.short { min-height: 150px; }
.tl .tlrow { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); } .tl .tlrow:last-child { border-bottom: 0; } .tlrow p { margin: 3px 0; line-height: 1.5; }
.tlrow .rn { flex: none; width: 34px; color: var(--gold); font-weight: 700; } .tlrow.mine .rn { color: var(--primary); }
.cite { color: var(--gold); font-size: .85rem; } .srcbox { white-space: pre-wrap; max-height: 55vh; overflow: auto; background: var(--surface); padding: 12px; border-radius: var(--r); font-size: .95rem; line-height: 1.55; }
.answer .ansbody { line-height: 1.6; font-size: 1.02rem; } .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hsrow > svg { width: 18px; height: 18px; flex: none; opacity: .6; }
.stabs { display: flex; gap: 6px; margin: 4px 0 14px; overflow-x: auto; } .stabs a { padding: 8px 16px; border-radius: 999px; background: var(--card); color: var(--muted); font-weight: 700; white-space: nowrap; }
.stabs a.on { background: var(--primary); color: var(--on-primary); }
.tlrow.mine p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* Nov 23 night: kind words and the connector */
.kindline { font: italic 400 1.08rem var(--serif); color: var(--gold); opacity: .92; margin: 6px 2px 14px; line-height: 1.45; }
.bcard.near { display: flex; color: var(--ink); } .bcard.near b { display: block; font-size: 1.02rem; } .bcard.near small { display: block; }
.bcard.glow { border: 1px solid rgba(235,192,142,.35); }
.warmcard { border: 1px solid rgba(235,192,142,.3); }
.teams.small { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 2px 4px; font-size: .9rem; }
.tchip { padding: 3px 10px; border-radius: 999px; background: var(--card); } .tchip.mine { outline: 1px solid rgba(235,192,142,.5); }

/* ---------------------------------------------------------------- the Synchronicity Center (Nov 23 late) */
.synchead { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 8px; }
.synchead .eyebrow { margin: 0; color: var(--gold, #c9a227); letter-spacing: .08em; }
.kindrow { margin: 10px -16px 0; } .kindrow .pill { font-size: .88rem; padding: 7px 12px; }
.pkind { display: inline-block; margin: 0 16px 6px; padding: 3px 10px; border-radius: 999px; font: 700 .78rem var(--sans); background: var(--soft); color: var(--soft-ink); }
.pkind.k-sync { background: rgba(201,162,39,.18); color: #e6c55a; } .pkind.k-win { background: rgba(110,190,130,.16); color: #8fd19e; }
.pkind.k-reflect { background: rgba(140,150,230,.16); color: #b3bbf0; } .pkind.k-seeking { background: rgba(230,140,100,.16); color: #f0a988; }
.pfoot { display: flex; gap: 22px; } .pact.metoo .mti { font-size: 1.15rem; line-height: 1; } .pact.metoo.on { color: var(--ink); }
.pcard.sync small.why, .etcard.sync small.why { display: block; color: var(--ink); font-size: .82rem; line-height: 1.3; padding: 4px 10px 0; opacity: .85; }
.etcard.sync { display: flex; flex-direction: column; } .etcard.sync small.why { padding: 6px 4px 0; }
.pcard.sync { flex-basis: 170px; display: flex; flex-direction: column; } .pcard.sync > a { flex: 1; }
.hscroll.synrow { align-items: flex-start; } .pcard.sync .pcimg { height: 96px; } .pcard.sync .pcimg .avatar { font-size: 1.8rem; }
.etcard.sync { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding-bottom: 10px; } .etcard.sync > a { box-shadow: none; }
.etcard.sync .pimg { height: 110px; } .etcard.sync small.why { padding: 6px 12px 0; }
.etcard.sync > a { width: 100%; }

/* ---------------------------------------------------------------- the chart page, calmer (Nov 24: "cluttered and rough") */
.app:has(.chartpage) { max-width: 1000px; }
.chartpage { margin-top: 8px; }
.charttop { max-width: 600px; margin: 0 auto; }
.charttop .rising { margin-top: 12px; font-size: 1.05rem; }
.charttop .legend { margin-top: 10px; }
#natalSlot { max-width: 760px; margin: 0 auto; }
#natalSlot .reading { margin-top: 22px; padding: 22px 24px; }
.chartsec { margin: 34px 0 12px; font-size: 1.25rem; }
.plgrid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .plgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .plgrid { grid-template-columns: 1fr 1fr 1fr; } }
.plgrid .pl { padding: 14px 16px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line-soft, rgba(255,255,255,.08)); }
.plgrid details.pl > summary { list-style: none; cursor: pointer; } .plgrid details.pl > summary::-webkit-details-marker { display: none; }
.pl-head { align-items: baseline; } .pl-head b { font-size: 1.08rem; } .pl-sign { color: var(--muted); font-size: .92rem; }
.pl-star { display: none; color: var(--gold); margin-left: auto; font-size: 1rem; } .pl.sig .pl-star { display: inline; }
.pl-house { font-size: .86rem; margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pl-house .dig { font-size: .74rem; padding: 1px 8px; border-radius: 999px; background: rgba(235,192,142,.14); color: var(--gold); font-weight: 600; }
.pl-house .dig.rx { background: rgba(167,139,250,.16); color: #c4b5fd; }
.plgrid .pl .note { font-size: .96rem; margin-top: 8px; color: var(--ink); opacity: .9; }
.plmore { display: none; font-size: .82rem; color: var(--gold); margin-top: 6px; font-weight: 600; }
.pl.hasmore:not([open]) .plmore { display: inline-block; }
.pl[open] .plmore { display: none; }
.plrest:empty { display: none; }
.todayline { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--card); color: var(--ink); text-decoration: none; font-size: .95rem; box-shadow: var(--shadow); }
.todayline .go { color: var(--gold); font-weight: 600; white-space: nowrap; }
details.fold { margin-top: 18px; padding: 14px 18px; } details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
details.fold > summary::-webkit-details-marker { display: none; } details.fold > summary .chev { margin-left: auto; transition: transform .2s; } details.fold[open] > summary .chev { transform: rotate(90deg); }
details.fold .crosscard { margin-top: 14px; } .aspills { justify-content: center; margin-top: 14px; }
.charttop .eyewheel { max-width: 560px; margin: 0 auto; background: #020108; border-radius: 28px; box-shadow: 0 0 0 1px rgba(235,192,142,.18), 0 18px 50px rgba(0,0,0,.45); }
.charttop .eyewheel svg { border-radius: 28px; outline: none; border: 0; }

/* Nov 24: the journal as the center: Today and Journal */
.jadd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 12px; }
.todaygrid .jadd { grid-template-columns: repeat(3, 1fr); }
.jbtn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; font: 600 .78rem var(--sans); text-align: center; }
.jbtn svg { width: 20px; height: 20px; } .jbtn .jg { font-size: 1.2rem; line-height: 20px; }
.jviews { margin-bottom: 10px; }
.jsrc { font-size: 1.05rem; }
.jrow .skyline, .skyline { display: block; color: var(--primary); font-size: .74rem; font-weight: 600; margin-top: 2px; }
.filterline { font-size: .85rem; margin: 4px 0 8px; color: var(--muted); } .filterline a { margin-left: 6px; font-weight: 600; }
.moods { display: flex; gap: 8px; justify-content: space-between; margin: 8px 0; }
.mood { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 14px; border: 2px solid transparent; background: var(--surface); color: var(--ink); cursor: pointer; font: 600 .74rem var(--sans); }
.mood { position: relative; } .mood input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; left: 0; top: 0; }
.mood.on, .mood:has(input:checked) { border-color: var(--primary); }
.moodot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 .85rem var(--sans); color: #071230; }
.moodot.m1 { background: #6f86b8; } .moodot.m2 { background: #57a7c9; } .moodot.m3 { background: #3ee0f2; } .moodot.m4 { background: #ffc34d; } .moodot.m5 { background: #ff9a3d; }
.moodbig { display: flex; align-items: center; gap: 10px; font: 600 1.1rem var(--sans); margin: 10px 0; }
.skystamp .steps { margin: 6px 0; }
.card.tq form { display: grid; gap: 8px; margin-top: 8px; } .card.tq .serif { font-size: 1.1rem; }
.card.glow form { display: grid; gap: 8px; }
.plansteps .pstep { margin-top: 8px; } .plansteps .steps { margin: 2px 0 0; }
.why { display: block; color: var(--muted); font-size: .76rem; margin: 2px 0 8px; }
.todaygrid { display: grid; gap: 12px; }
@media (min-width: 900px) { .todaygrid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.discrow { margin-bottom: 12px; } .discrow svg { width: 16px; height: 16px; }
html[data-look] .herocard p.heroline, .herocard p.heroline { font: 500 .95rem/1.45 var(--sans); margin: 4px 0 12px; opacity: .92; text-shadow: none; }
.entrydate { color: var(--muted); font-size: .85rem; margin: 2px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* our own art where an event has no picture */
.evimg { position: relative; overflow: hidden; }
.evimg .artfill { position: absolute; inset: -2px; background-size: cover; background-position: center; }
.evimg .artfill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,10,36,.05), rgba(5,10,36,.45)); }
.evimg .articon { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(5,10,36,.45); backdrop-filter: blur(6px); font-size: 1.5rem; }
/* Today: the reading sits on a plain card so it is easy to read */
.readcard p { font: 400 1rem/1.6 var(--sans); margin: 6px 0 8px; }
.card .btnrow:has(> :nth-child(3)) { flex-wrap: wrap; } .card .btnrow:has(> :nth-child(3)) > .btn { flex: 1 1 140px; }
.stockcredit { position: absolute; right: 8px; bottom: 6px; z-index: 2; font-size: .68rem; color: #fff; background: rgba(5,10,36,.55); padding: 2px 8px; border-radius: 999px; text-decoration: none; }
.pimg, .ethumb { position: relative; } .pimg > img, .ethumb > img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Step 1 (Nov 24): welcome, tap to talk, Connect to my stars */
.welcome { max-width: 560px; margin: 0 auto; }
.welcome h1 { margin: 6px 0 4px; }
.wdots { display: flex; gap: 6px; justify-content: center; margin: 6px 0 14px; }
.wdots span { width: 28px; height: 5px; border-radius: 3px; background: var(--surface); }
.wdots span.on { background: var(--primary); }
.micbtn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 4px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .82rem var(--sans); cursor: pointer; }
.micbtn.on { background: #ff9a3d; color: #071230; border-color: transparent; animation: micpulse 1.2s ease-in-out infinite; }
@keyframes micpulse { 50% { box-shadow: 0 0 0 6px rgba(255, 154, 61, .25); } }
.conncard p { margin: 6px 0; line-height: 1.55; }
.conncard.empty .btn { margin-top: 4px; }
a.card.link { display: block; color: inherit; text-decoration: none; }
.jadd.two { grid-template-columns: 1fr 1fr; }
.keptline { text-align: center; font-weight: 600; }
.plansteps p { margin: 4px 0; }

/* Step 2: Talk it through, Bonds */
.ttypes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 12px; }
@media (max-width: 520px) { .ttypes { grid-template-columns: repeat(2, 1fr); } }
.ttype { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; background: var(--surface); cursor: pointer; border: 1px solid transparent; }
.ttype input { position: absolute; opacity: 0; pointer-events: none; } .ttype span { font-size: 1.5rem; } .ttype b { font-size: .92rem; }
.ttype:has(input:checked) { border-color: var(--gold); background: var(--soft); }
.tside2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; } .tside2 .card { margin: 0; }
.tstep .row { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.syncgrade { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--gold); }
.grades { display: grid; gap: 8px; margin: 6px 0 12px; } .grades label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface); cursor: pointer; }
.grades label small { display: block; color: var(--muted); } .grades label:has(input:checked) { outline: 1px solid var(--gold); }

.ttype { position: relative; overflow: hidden; }
.grades label input { width: auto; flex: none; margin: 3px 0 0; } .grades label span { flex: 1; text-align: left; }

/* Nov 24: birth date/time drop-downs and the picked city */
.dtrow { display: grid; gap: 8px; margin-bottom: 6px; } .dtrow.three { grid-template-columns: 1.4fr 1fr 1.1fr; } .dtrow.off { opacity: .45; }
.dtrow select { width: 100%; min-width: 0; }
.citypick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--soft); border: 1px solid var(--hair); }
.citypick .cp { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .citypick svg { width: 18px; height: 18px; color: var(--gold); }
.citypick .cx { border: 0; background: var(--surface); color: var(--ink); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; flex: none; }
.cityres[hidden], .citypick[hidden], .cityfield input[hidden] { display: none !important; }

/* Nov 24: Me sections fold */
details.msec > summary { list-style: none; cursor: pointer; } details.msec > summary::-webkit-details-marker { display: none; }
.mschev { flex: none; color: var(--muted); display: grid; place-items: center; transition: transform .2s; } .mschev svg { width: 18px; height: 18px; }
details.msec[open] .mschev { transform: rotate(90deg); }

/* Nov 24: the Timeline */
.tline { width: 100%; height: auto; display: block; margin: 6px 0; }
.tl-grid { stroke: var(--line-soft, rgba(255,255,255,.08)); stroke-width: 1; } .tl-ax { fill: var(--muted); font-size: 11px; }
.tl-line { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; opacity: .75; }
.tl-dot { stroke: var(--bg); stroke-width: 1.5; fill: var(--gold); } .tl-dot.m1 { fill: #f687b3; } .tl-dot.m2 { fill: #f6ad55; } .tl-dot.m4 { fill: #68d391; } .tl-dot.m5 { fill: #4fd1c5; }
.tl-mark { font-size: 13px; } .tl-moon { fill: var(--muted); font-size: 12px; }
.rowlink.feature .rt { font-weight: 700; } .rowlink.feature .ri { color: var(--gold); }
.talkcard { display: flex; align-items: center; gap: 14px; padding: 18px; margin: 4px 0 14px; color: var(--ink); background: linear-gradient(135deg, rgba(79,209,197,.16), rgba(235,192,142,.12)); border: 1px solid var(--hair); }
.talkcard .tci { font-size: 2rem; flex: none; } .talkcard b { display: block; font-size: 1.15rem; } .talkcard small { display: block; color: var(--muted); line-height: 1.4; margin-top: 2px; } .talkcard .chev svg { width: 20px; height: 20px; color: var(--muted); }
.hnote { padding: 10px 0; border-top: 1px solid var(--line-soft); } .hnote:first-of-type { border-top: 0; }
.jadd.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.avatar { position: relative; } .avatar .odot { position: absolute; right: 2%; bottom: 2%; width: 26%; height: 26%; min-width: 9px; min-height: 9px; max-width: 18px; max-height: 18px; border-radius: 50%; background: #31d158; border: 2px solid var(--bg); box-sizing: border-box; }
.avatar:has(.odot) { overflow: visible; } .avatar:has(.odot) > img { border-radius: inherit; }
.reshead { padding: 8px 14px; font-size: .8rem; color: var(--muted); font-weight: 600; } .cityres button b { display: flex; align-items: center; gap: 8px; } .cityres .avatar.sm { width: 26px; height: 26px; font-size: .65rem; }
.howhouses .steps li { margin-bottom: 6px; }

/* Phones: every window and form opens full screen (Will, Nov 25: "all windows and forms should") */
@media (max-width: 699px) {
  .modal { place-items: stretch; }
  .sheet { width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; padding-top: calc(8px + env(safe-area-inset-top)); }
  .sheet::before { display: none; }
  .sheet .sx, .sheet .asheet { top: calc(14px + env(safe-area-inset-top)); }
}
.plfull .pl-head b { display: none; } .plfull .pl-head { font-size: 1.15rem; } .plfull .pl-star { display: none; } .plfull p { font-size: 1.05rem; line-height: 1.6; margin-top: 14px; }

/* Dec 1, 2026: the install steps and Admin → Activity, ported from Essential Dignities v3 (Nov 23 and 25). */
.istep{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line-soft)}.istep:last-of-type{border-bottom:0}
.istep .inum{width:26px;height:26px;border-radius:50%;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;font-weight:700;font-size:.85rem;flex:none}
.stepic{width:34px;height:34px;flex:none;padding:6px;border-radius:10px;background:var(--surface);stroke:var(--ink);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;box-sizing:border-box}
.stepic.txt{display:grid;place-items:center;font-weight:700;font-size:.78rem;color:var(--primary);padding:0}
.chartcard{padding:14px 14px 8px}.chartcard h3{margin:0 0 6px;font-size:.95rem}.chart{position:relative;max-width:100%;touch-action:pan-y}.chart svg{display:block;max-width:100%;height:auto}
.cgrid{stroke:var(--line);stroke-width:1}.cgrid.base{stroke:var(--muted);stroke-opacity:.5}.ctick{font-size:11px;fill:var(--muted)}.cline{fill:none;stroke:var(--primary);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.cdotm{fill:var(--primary);stroke:var(--bg);stroke-width:2}.ccross{stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3}.chover{fill:var(--primary);stroke:var(--bg);stroke-width:2}
.ctip{position:absolute;pointer-events:none;background:var(--surface);backdrop-filter:blur(8px);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:6px 9px;font-size:.8rem;white-space:nowrap;line-height:1.25}.ctip span{display:block;opacity:.75;font-size:.72rem}
.chart svg [hidden]{display:none}.statsm{font-size:1rem!important;line-height:1.25;padding:4px 0}.actrange .pill{padding:7px 14px;font-size:.82rem}.actrange{flex:none;max-width:100%}
.tablewrap{overflow-x:auto;border-radius:var(--r-lg);background:var(--card)}.atable{width:100%;border-collapse:collapse;font-size:.9rem}.atable th,.atable td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--line-soft);white-space:nowrap}.atable th{color:var(--muted);font-weight:600;font-size:.8rem}.atable tr.muted td{color:var(--muted)}.atable a{color:var(--primary)}
