/* receipt {"source":"kasten/platform/js/friends.css","source_sha":"bcaf8b5270a5","why":"platform code, new_car_sow_001 scope item 9 SCREEN + WINDOW STACK (NEW-D-003)","writer":"kasten/platform/factory.py","writer_sha":"1a878b7c75b6"} */
/* Kasten friends: the Friends screen (new_car_sow_022 AMENDMENT-05 group F, FS0248-FS0265). The old car's surface/friends.html:10-98: a
   phone is ONE column and the list is the one box that scrolls, the Deal in bar right above the foot (CG-D-386, Carl 2026-10-07 "friends
   list needs to be able to scroll, like all lists, the page shouldn't get bigger"); off the phone, two columns: your list left, bring
   someone in and Played with right, Deal in at its foot (CG-D-610 P3). Colours are the look rows' tokens; this file names no look. */
#app:has(> .friends.page) { max-width: 960px; }
.friends.page { display: flex; flex-direction: column; gap: 12px; text-align: left; flex: 1; }
.friends h1 { margin: 0; font-size: 2rem; }
.friends .sub { margin: 0; font-size: 1.05rem; }
.friends .lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.8; margin-top: 4px; }
.friends .fit { margin: 0; opacity: 0.9; }
.friends .fcols { display: flex; flex-direction: column; gap: 16px; }
.friends .fcol { display: flex; flex-direction: column; gap: 10px; }
.friends .deal, .friends .ghost { min-height: 48px; padding: 12px 20px; font-size: 1.1rem; border-radius: 999px; text-align: center; text-decoration: none;
  font-weight: 600; }
.friends .ghost { border: 0; background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.friends .tlink { border: 0; background: none; color: inherit; text-decoration: underline; padding: 6px 0; font-size: 1rem; text-align: left; }
.friends .link.inline { padding: 0 2px; color: var(--accent); }
.friends .fadd-form { display: flex; gap: 8px; }
.friends .fadd-form input, .friends .fsearch { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.2);
  background: var(--sheet); color: var(--sheet_ink); }
.friends .fadd-form button { flex: none; padding: 0 18px; }
.friends .fmsg { min-height: 1.4em; text-align: left; }
.friends .flist { display: flex; flex-direction: column; gap: 4px; }
/* the one box that scrolls: the page never grows past the screen on a phone */
.friends .flist.scroll { max-height: 48dvh; overflow-y: auto; overscroll-behavior: contain; }
.friends .frow { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 6px; border-radius: 10px; flex-wrap: wrap; }
.friends .frow b { font-weight: 700; }
.friends .frow .at, .friends .frow small, .friends .frow span { opacity: 0.85; }
.friends .frow small { margin-left: auto; }
.friends .frow.tap { cursor: pointer; }
.friends .frow.on { background: rgba(255, 255, 255, 0.08); }
.friends .frow.full { opacity: 0.45; }
.friends .tick { width: 28px; height: 28px; flex: none; border-radius: 6px; box-shadow: inset 0 0 0 2px currentColor; display: grid; place-content: center; font-weight: 800; }
.friends .frow.on .tick { background: var(--accent); color: var(--accent_ink); box-shadow: none; }
.friends .frow .more { border: 0; background: none; font-size: 1.4rem; padding: 4px 10px; min-height: 44px; }
.friends .pill { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 0; background: transparent; box-shadow: inset 0 0 0 2px currentColor; font-weight: 600; }
.friends .pill.gold { background: var(--accent); color: var(--accent_ink); box-shadow: none; }
.friends .frow .pill { margin-left: auto; }
.friends .frow .pill + .pill { margin-left: 0; }
.friends .tapname { border: 0; background: none; padding: 0; text-decoration: underline dotted; text-underline-offset: 3px; }
.friends .fsheet { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 6px 10px; }
.friends .fsheet button { flex: 1; min-width: 120px; }
.friends .quiet { margin: 0; font-size: 1.05rem; }
.friends .quiet a { color: var(--accent); }
.fvouchhead { display: grid; gap: 4px; justify-items: center; }
.fvouchhead b { font-size: 1.6rem; }
.fvouch { text-align: center; display: grid; gap: 8px; padding: 8px 0 0; }
/* the Deal in bar: stuck at the foot, the felt behind it (the door's .form .foot); dim does nothing */
.friends .dealbar { position: sticky; bottom: 0; z-index: var(--z-chrome); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--felt);
  box-shadow: 0 -10px 10px -6px rgba(0, 0, 0, 0.25); display: grid; }
.friends .dealbar .deal.off { opacity: 0.45; pointer-events: none; }
@media (min-width: 760px) {
  .friends .fcols { flex-direction: row; align-items: flex-start; }
  .friends .fcols > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
  .friends .flist.scroll { max-height: 60dvh; }
  .friends.page.has .dealbar { margin-left: calc(50% + 8px); }
}
