/*
 * shell.css: the May look's primitives (btn, card, chip, tile, input, tabs, top bar), copied whole for fos/.
 * Source: wb-modules-core foundry/ui/css/shell.css at 7038ae7, unchanged.
 */

/*
 * shell.css: the shell of the screens (pb-69), in the May fosFoundry look (TopNav.tsx, SubNav.tsx, rockhopper.css and cloud-theme.css at
 * 4fd78cb8ee). Colours come from the tokens (tokens.css) only; sizes are the ones the ticket names. Layout checks are pb-70.
 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }

/* The top bar: 52 px on --bg-2, 1 px --line below, padding 0 22px, gap 24px. */
.topbar { display: flex; align-items: center; gap: 24px; padding: 0 22px; height: 52px; background: var(--bg-2); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.brand { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; min-height: var(--tap-min); min-width: var(--tap-min); }
.brand .mark { font-size: 18px; }
.brand .name { font-size: 14px; font-weight: 600; color: var(--text); }
.brand .env { font-family: var(--mono); font-size: 10px; color: var(--text-3); background: var(--bg-3); padding: 1px 6px; border-radius: 3px; }

/* The section tabs: 13px text, the current one weight 600 with a 2px accent underline. */
.tabs { display: flex; gap: 18px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.brand, .chip, .theme-toggle, .menu-button { flex-shrink: 0; }
.tab { flex-shrink: 0; color: var(--text-2); text-decoration: none; font-size: 13px; font-weight: 400; padding: 6px 0; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap-min); min-width: var(--tap-min); box-sizing: border-box; }
.tab.current { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }

/* The user chip: a pill with a gradient avatar, the name and, for an admin, a mono gold badge. */
.chip { display: flex; align-items: center; gap: 8px; background: var(--bg-3); padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); }
.chip .avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.chip .who { font-size: 12px; color: var(--text); }
.chip .badge-admin { font-family: var(--mono); font-size: 9px; color: var(--rockhopper); background: color-mix(in srgb, var(--rockhopper) 10%, transparent); border: 1px solid var(--rockhopper); padding: 1px 5px; border-radius: 3px; }

.theme-toggle, .menu-button { background: transparent; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 7px; min-width: var(--tap-min); min-height: var(--tap-min); font-size: 16px; cursor: pointer; }
.theme-toggle:hover, .menu-button:hover { color: var(--text); background: var(--bg-3); }
.menu-button { display: none; }

/* The sub-nav: the touch floor tall (--tap-min, 44 px; it was May's 36 px until pb-523) on --bg-2, 1 px --line below, padding 0 24px, gap 4px, 12px text; every
   link is 44 px or more each way at every width and pointer; active weight 500 in --text, no fill; inactive weight 400 in --text-3. */
.subnav { height: var(--tap-min); background: var(--bg-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 24px; gap: 4px; font-size: 12px; overflow-x: auto; white-space: nowrap; }
.subnav a { color: var(--text-3); text-decoration: none; padding: 4px 10px; border-radius: 6px; font-weight: 400; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: var(--tap-min); min-width: var(--tap-min); }
.subnav a:hover { color: var(--text-2); background: var(--bg-3); }
.subnav a.current { color: var(--text); font-weight: 500; }

/* The page. */
.page { padding: 20px 24px; }
.page h1 { font-size: 20px; font-weight: 600; margin: 0 0 4px; color: var(--text); }
.page p { font-size: 13px; color: var(--text-3); margin: 0 0 12px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.card-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 10px; }

/* Buttons: 7 px radius, 13px, weight 500. */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 7px; font-size: 13px; font-family: var(--sans); font-weight: 500; cursor: pointer; border: 1px solid transparent; background: transparent; color: var(--text); min-height: var(--tap-min); box-sizing: border-box; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled, .btn-primary.disabled { background: var(--bg-3); color: var(--text-3); border-color: var(--line-2); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--bg-3); }
.btn-outline { background: var(--bg-2); color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { background: var(--bg-3); }

/* Under 720 px (the JS folds at width < 720, so the css stops just short of 720) the tabs fold into the menu. */
.mobile-nav { display: none; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; border-radius: 8px; color: var(--text); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav a.current { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
@media (max-width: 719.98px) {
  .tabs { display: none; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .brand .name, .brand .env { display: none; }
  .subnav { padding: 0 14px; }
  .topbar .spacer { flex: 1; }
  .btn, .tab, input, select { min-height: var(--tap-min); }
  .chip { min-width: var(--tap-min); min-height: var(--tap-min); justify-content: center; }
}

/* Home (pb-72): the greeting, the tiles, and the sections of links. Every link is a touch target. */
.greeting { font-size: 20px; font-weight: 600; margin: 0 0 14px; color: var(--text); }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.tile { min-height: var(--tap-min); }
.page .card { margin-bottom: 16px; }
.where-to-go .section { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 0; }
.where-to-go .section-name { font-size: 13px; font-weight: 600; color: var(--text); min-width: 96px; text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap-min); gap: 8px; }
.soon { font-size: 11px; color: var(--text-3); font-weight: 400; margin-left: 6px; }
.soon-item { color: var(--text-3); cursor: default; }
/* Home's "Active now" (pb-178): one group per kind, each row a link to the object's control page with its state chip and summary. It reads like a
   control page's list: the block's own --cp-row-* and --cp-chip-bg, set here from the tokens, plus --cp-kind-* for the kind heading; Silky's design
   system changes the look by setting these properties and nothing else. */
.active-now { --cp-row-bg: transparent; --cp-row-line: var(--line); --cp-chip-bg: var(--bg-3); --cp-kind-head-color: var(--text); --cp-kind-head-size: 13px; }
.active-now .object-kind { padding: 6px 0; border-top: 1px solid var(--cp-row-line); }
.active-now .object-kind:first-of-type { border-top: 0; }
.active-now .object-kind-head { font-size: var(--cp-kind-head-size); font-weight: 600; color: var(--cp-kind-head-color); margin: 4px 0; }
.active-now .object-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: var(--tap-min); justify-content: flex-start; text-align: left; background: var(--cp-row-bg); }
.active-now .object-name { font-weight: 500; color: var(--text); }
.active-now .object-state { font-size: 11px; font-family: var(--mono); color: var(--text-3); background: var(--cp-chip-bg); padding: 1px 8px; border-radius: 3px; }
.active-now .object-summary { font-size: 12px; color: var(--text-2); }
.active-now .object-reason { font-size: 12px; color: var(--text-3); margin: 4px 0; }
/* The failed-read strip every screen shows above what it kept (pb-178 makes it one rule for Home, Roster and Runners). */
.page .status-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 12px; border: 1px solid var(--warn); border-radius: 8px; background: color-mix(in srgb, var(--warn) 10%, transparent); color: var(--text); font-size: 13px; }
.page .status-strip .try-again { min-height: var(--tap-min); }
