/* The platform's only stylesheet of its own. Everything visual comes from the brand kit (kit/css/family.css).
   This file does one job: lets the kit's app frame fill the browser instead of sitting in a drawn phone.
   Brand tokens only: no hex values, no font stacks (CLAUDE.md, Brand). */
html, body { margin: 0; height: 100%; }
body.app .fam-phone[data-fam-app] { width: 100%; max-width: none; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }
body.app .fam-phone__status, body.app .fam-webbar { display: none !important; }
@media (min-width: 1000px) {
  body.app [data-fam-app][data-frame="web"] { max-width: none; height: 100dvh; border-radius: 0; box-shadow: none; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "head body" "rail body"; }
  body.app [data-fam-app][data-frame="web"][data-kind="focus"], body.app [data-fam-app][data-frame="web"][data-bare] { grid-template-columns: minmax(0, 1fr); grid-template-areas: "body" "body"; }
  body.app [data-fam-app][data-frame="web"] nav.fam-tabbar a.fam-tabbar__foot { margin-top: auto; }
}
body.app [data-fam-app][data-bare] .fam-apphead, body.app [data-fam-app][data-bare] nav.fam-tabbar { display: none !important; }
body.app .fam-phone__body { scrollbar-width: thin; }
/* A pick that is a real radio or checkbox (so it works with no script): the kit's selected look, from the input's own state. */
label.fam-pick { cursor: pointer; }
.fam-pick:has(input:checked) { background: var(--app-tint); border-color: var(--app-tint-line); padding-left: 12px; }
.fam-pick:has(input:checked) .fam-icon { display: inline; }
.fam-pick:has(input:focus-visible) { outline: 3px solid var(--fam-sun); outline-offset: 2px; }
/* "Another card" is a link here (it works with no script); the kit styles only the button. Same look. */
.fam-dailycard__acts a { width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, currentColor 16%, transparent); color: inherit; display: grid; place-items: center; }
/* Forms that are really one button. */
form.inline { display: contents; }
form.stack { display: flex; flex-direction: column; gap: 12px; }
button.fam-item { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
a.fam-modeswitch__go { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; color: var(--brand-muted); font-size: 14px; font-weight: 700; text-decoration: none; }
a.fam-modeswitch__go:hover { color: var(--brand-text); }
a.fam-modeswitch__go .fam-icon { width: 16px; height: 16px; }
.app-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--app-tint); border: 1px solid var(--app-tint-line); }
.app-notice p { margin: 0; }
.app-notice button { margin-left: auto; border: 0; background: none; font: inherit; font-weight: 800; color: var(--brand-link); cursor: pointer; white-space: nowrap; }
.app-preview { padding: 6px 14px; background: var(--brand-ground); color: var(--brand-muted); font-size: 12px; font-weight: 700; text-align: center; flex: none; grid-column: 1 / -1; }
.app-preview a { color: inherit; }
.app-player { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--brand-ground); }
.app-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.app-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.app-kv dt { color: var(--brand-muted); } .app-kv dd { margin: 0; font-weight: 700; }
.app-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.app-table th, .app-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--brand-line); vertical-align: top; }
.app-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-muted); }
.app-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.app-fields label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.fam-feed .fam-feedcard__keepform { display: contents; }
/* The certificate prints as a page. */
@media print { body.app .fam-apphead, body.app nav.fam-tabbar, body.app .fam-navbar, .no-print, .app-preview { display: none !important; }
  body.app .fam-phone[data-fam-app] { height: auto; display: block; } body.app .fam-phone__body { overflow: visible; } }
