/* FRDM site shell, row dp-022: app links strip directly under the existing top bar. TEST only, no real value. */
/* The strip scrolls sideways inside itself, so it can never widen the page at 390 px. */
.frdm-applinks{display:flex;align-items:center;gap:8px;box-sizing:border-box;max-width:100%;padding:6px 24px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;background:var(--top,transparent);border-bottom:1px solid var(--line,rgba(127,127,127,.25))}
.frdm-applinks::-webkit-scrollbar{display:none}
.frdm-applinks a.frdm-applink,.frdm-applinks button.frdm-applink{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;min-height:44px;min-width:44px;padding:0 14px;border-radius:999px;border:1px solid var(--line-2,rgba(127,127,127,.4));background:transparent;color:var(--ink,inherit);font:600 14px var(--ui,"Segoe UI",system-ui,sans-serif);text-decoration:none;white-space:nowrap;cursor:pointer}
.frdm-applinks a.frdm-applink:hover,.frdm-applinks button.frdm-applink:hover{background:var(--card-2,rgba(127,127,127,.12))}
.frdm-applinks .frdm-applink[aria-current=page]{border-color:var(--brand,currentColor)}
.frdm-applinks-test{font:700 10px var(--ui,"Segoe UI",system-ui,sans-serif);letter-spacing:.1em;color:var(--brand-ink,inherit);border:1px solid currentColor;border-radius:4px;padding:1px 5px}
@media(max-width:600px){
.frdm-applinks{gap:6px;padding:4px max(8px,env(safe-area-inset-right,0px)) 4px max(8px,env(safe-area-inset-left,0px))}
.frdm-applinks a.frdm-applink,.frdm-applinks button.frdm-applink{padding:0 12px;font-size:13px}
}
/* The notification control shares the compact top bar; its accessible name stays on aria-label. */
@media(max-width:600px){
.top .frdm-notifications{min-width:0;position:relative}
.top .frdm-notification-bell{width:44px;min-width:44px;max-width:44px;height:44px;padding:0;font-size:0;position:relative}
.top .frdm-notification-bell::before{content:"\1F514";font-size:20px;line-height:1}
.top .frdm-notification-bell .badge{font-size:11px}
}

/* decision 460 item 3: one bell on phones */
@media (max-width: 600px) { .top .frdm-notification-bell::before { content: none; } }

/* Owner 16 Nov: the app-links strip is gone; LedgerX now has its own top-bar icon, so eight icons share a phone top bar.
   At 400 px and below they are 40 px (8 x 40 + gaps fit 360 px phones) so the bar never widens the page. html body = wins over app.css / responsive.css (same specificity, loaded later). */
@media (max-width: 400px) {
html body .top .ib, html body .top .me-btn { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
html body .top .frdm-notification-bell { width: 40px; min-width: 40px; max-width: 40px; height: 40px; }
}

/* DESIGN LEAD 18 Nov: app.js's availability line ("Coming to Freedom. Status: Planned.") had no style and touched the screen
   edge on phones. Same quiet look as the site's other status notes; the text is unchanged and nothing is hidden. */
main [data-frdm-scope-banner] { box-sizing: border-box; width: fit-content; max-width: calc(100% - 32px); margin: 12px 16px 8px; padding: 7px 14px; border: 1px solid var(--line-2, rgba(127,127,127,.3)); border-radius: 12px; background: var(--card, transparent); color: var(--ink-2, inherit); font: 600 13px/1.4 var(--ui, system-ui, sans-serif); }

/* DESIGN LEAD 19 Nov: the two blocks added to Meets after the approved design (Scheduled meetings, Spaces) sat bare between
   the approved hero card and the room list (labels glued to the line above, empty lines centred in a 420 px box). Same card
   as the Meets hero / aside, quiet labels, and the approved dashed empty box. Words, buttons and rows are unchanged. */
main .comms :is(.frdm-meets-plan, .frdm-spaces) { padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--card); }
main .comms :is(.frdm-meets-plan, .frdm-spaces) > h2 { margin: 0 0 6px; }
main .comms :is(.frdm-meets-plan, .frdm-spaces) > p.subtle:not(.empty) { margin: 0; max-width: 62ch; }
main .comms .frdm-spaces > h3 { margin: 18px 0 8px; font: 700 11px/1.4 var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
main .comms :is(.frdm-meets-plan, .frdm-spaces) .empty { margin: 0; padding: 14px 16px; max-width: none; max-inline-size: none !important; text-align: left; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--card-2); color: var(--ink-2); }
main .comms .frdm-meets-plan > .empty { margin-top: 16px; }
main .comms .frdm-spaces > p.subtle:not(.empty):last-child { margin-top: 16px; }
main .comms .frdm-meets-plan > .room-row:last-child { border-bottom: 0; padding-bottom: 4px; }
@media (min-width: 521px) { main .comms :is(.frdm-meets-plan, .frdm-spaces) .room-row .row-actions { max-width: 50%; } }
@media (max-width: 600px) { main .comms :is(.frdm-meets-plan, .frdm-spaces) { padding: 18px 16px; border-radius: 14px; } }

/* DESIGN LEAD 19 Nov: Pages (pages.html, Pages v2) in the approved profile look - the approved initials tile instead of a
   per-Page rainbow tile, the approved h2 for "From Pages you follow" / "Posts", and the approved pressed button for
   "Liked" (was pink on the near-white button, 1.8:1). Words, buttons and behaviour unchanged; nothing hidden. */
#social span.pg-icon, #social span.pg-icon-big { background: var(--card-3) !important; color: var(--ink) !important; }
#social h2.pg-feed-h { font: 600 22px var(--serif); margin: 4px 0 14px; }
#social .pg-post .pg-post-foot button[aria-pressed="true"] { color: var(--canvas); }

/* DESIGN LEAD 19 Nov 04:28: signed-out walk of tonight's pages (1440 + 375). The signed-out header on phones and tablets
   wrapped Sign up / Sign in onto a THIRD row (sticky header 163 px tall at 375, a fifth of the screen). The approved
   v2.3.21 header and the signed-in header are two rows: icons, then Search with one item beside it. Same here: Search,
   Sign up and Sign in share row 2 (163 -> 104 px at 375, 167 -> 101 px at 768). Signed-in header unchanged; nothing hidden. */
@media (max-width: 900px) {
  header.top > .frdm-auth:has(> [data-auth-action="login"]) { width: auto; padding: 0; }
}
@media (max-width: 600px) {
  header.top:has(> .frdm-auth > [data-auth-action="login"]) > .search { grid-area: 2 / 1 / auto / -1; justify-self: start; width: calc(100% - 172px) !important; min-width: 0; }
  header.top > .frdm-auth:has(> [data-auth-action="login"]) { grid-area: 2 / 1 / auto / -1; justify-self: end; align-self: center; margin: 0; gap: 6px; }
}
/* Save heart (heart-1) on listing cards: a saved card's heart was pink on the grey circle, 2.2:1 over the light
   product photos. Saved = the approved white-on-accent pair (the Sign up and Search buttons): 4.5:1 (5.3:1 light),
   and the red circle still reads as saved at a glance. Not saved, size, place and behaviour unchanged. */
html .mk-heart[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* DESIGN LEAD 19 Nov 04:54: small phones (320-359 px). The header's 7 columns had a 44 px minimum (326 px) and the 8
   header icons made a 345 px row, so the page was 353 px wide: the bell, Sign out and the bottom bar's Wallet tab sat
   off screen (MEETS LEAD finding). Below 360 px the columns may shrink and the 8 icons are 36 px wide, so the top and
   bottom bars fit the screen. Same icons, same order, nothing hidden; 360 px and up unchanged. */
@media (max-width: 359px) {
  html body header.top { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  html body header.top > .frdm-header-actions { grid-column: 1 / -1; width: auto; gap: 2px; }
  html body header.top .frdm-header-actions > :is(.ib, .me-btn, .frdm-notifications),
  html body header.top .frdm-notifications > :is(button, a) { width: 36px; min-width: 36px; height: 40px; min-height: 40px; }
}

/* DESIGN LEAD 19 Nov 06:25 (PC-TUFBOOK demo walk 0604 c): on a page that has its own menu item (Explorer, Digital rails,
   Safe Deal ...) the menu lit BOTH that item and its section (WEB3, Payment Systems): two identical lit rows. app.js marks
   both as current on purpose; the approved v2.3.21 does the same. Here only the page's own item is painted; the section
   row is painted again on its own hub page. Words, links and aria-current unchanged; nothing hidden. */
aside.rail:has(a[aria-current="page"]:not(:is([href^="web3.html"], [href^="payments.html"], [href^="services.html"], [href^="market.html"], [href^="businesses.html"], [href^="wallet.html"], [href^="clubs.html"], [href^="events.html"]))) a[aria-current="page"]:is([href^="web3.html"], [href^="payments.html"], [href^="services.html"], [href^="market.html"], [href^="businesses.html"], [href^="wallet.html"], [href^="clubs.html"], [href^="events.html"]) { background: transparent; box-shadow: none; }

/* DESIGN LEAD 19 Nov 06:44: Photos v2.1 on the profile - the pressed "Your photos" / "Albums" toggle had accent text on the
   approved near-white pressed button (1.8:1 blue and dark, 2.7:1 light). Back to the approved pressed button (ink with
   canvas text), as everywhere else in #social. Words and behaviour unchanged. */
#social .ps-photo-tabs button[aria-pressed="true"] { color: var(--canvas); border-color: var(--ink); }

/* DESIGN LEAD 19 Nov 08:36: the profile Events tab - the pressed Upcoming / Hosting / Past toggle and the pressed Going /
   Maybe / No answer had accent text on the approved near-white pressed button (1.8:1), and its count ("Upcoming 0")
   was muted ink on near-white (1:1). Back to the approved pressed button (ink with canvas text); a count inside any
   pressed profile toggle reads. Words and behaviour unchanged. */
#social :is(.ev-views, .ev-rsvp) button[aria-pressed="true"] { color: var(--canvas); border-color: var(--ink); }
#social :is(.ev-views, .ev-rsvp, .ps-photo-tabs) button[aria-pressed="true"] .muted { color: inherit; opacity: .8; }

/* DESIGN LEAD 19 Nov 10:12: Page "Reviews" (recommendations) in the approved look - reviewer avatars use the approved
   initials tile (not a per-name colour), the chosen "Yes" / "No" uses the approved pressed button (it was dark text on a
   dark button, 1.2:1), and an error line uses the site's --accent-ink (it was dark red on the card, 2.6:1). Words and
   behaviour unchanged. */
#social span.pgr-av { background: var(--card-3) !important; color: var(--ink) !important; }
html #social .pgr-yn button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
html #social .pgr-err { color: var(--accent-ink); }

/* DESIGN LEAD 19 Nov 10:19: the newest Pages pieces in the approved look - the Invite dialog's member avatars and Page icons
   use the approved initials tile (not a per-name colour); the Insights dialog's chosen day range uses the approved pressed
   button (it hardly showed); rating stars use the approved --brand (v2.3.21 kit .ln-stars), not red or a fixed gold.
   Words and behaviour unchanged. */
:is(.pgi-dialog, .pgn-dialog) span.pg-icon, span.pgi-av { background: var(--card-3) !important; color: var(--ink) !important; }
html .pgn-dialog .pgn-ranges button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
html .mk-stars, html #social .rv-stars, html .psr .psr-stars { color: var(--brand); }

/* DESIGN LEAD 19 Nov 10:55: Community feed "Preview" tags keep their word whole. They sat inside headings that use
   overflow-wrap: anywhere and broke mid-word ("PREVI / EW"); the heading still wraps between words. */
html #social .feed-preview-tag { overflow-wrap: normal; word-break: normal; white-space: nowrap; }
