/*
 * The tracker's own chrome round Fieldia's list: a bar across the top, the project's menu down the start
 * side, and the page's head with its buttons and pivots. Its colours light and dark; the list and the
 * popup take theirs from the tokens the app gives Fieldia (main.ts).
 */
.bl {
  --bl-ink: #1a1a1a;
  --bl-muted: #707070;
  --bl-bar: #ffffff;
  --bl-bar-line: #e7e8e7;
  --bl-nav: #eaeaea;
  --bl-nav-line: #d5d5d5;
  --bl-nav-open: #dedede;
  --bl-nav-current: #d2d2d2;
  --bl-nav-bar: #b7b7b7;
  --bl-page: #f8f8f8;
  --bl-fill: #ebebeb;
  --bl-fill-hover: #e0e0e0;
  --bl-accent: #0078d4;
  --bl-tile: #2e7d6b;
  --bl-star: #ae6d3a;
  --bl-story: #009ccc;
  --bl-faint: #a8a8a8;
  --bl-shadow: 0 3.2px 7.2px rgba(0, 0, 0, 0.132), 0 0.6px 1.8px rgba(0, 0, 0, 0.108);
  font: 14px/1.43 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Helvetica, Ubuntu, Arial, "Noto Sans Arabic", sans-serif;
  color: var(--bl-ink);
  background: var(--bl-page);
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--bl-above, 0px));
}
.bl[data-scheme="dark"] {
  --bl-ink: #f3f2f1;
  --bl-muted: #a19f9d;
  --bl-bar: #252423;
  --bl-bar-line: #3b3a39;
  --bl-nav: #292827;
  --bl-nav-line: #3b3a39;
  --bl-nav-open: #323130;
  --bl-nav-current: #3b3a39;
  --bl-nav-bar: #605e5c;
  --bl-page: #1b1a19;
  --bl-fill: #323130;
  --bl-fill-hover: #3b3a39;
  --bl-accent: #2899f5;
  --bl-star: #f2b43c;
  --bl-story: #3ab5e0;
  --bl-faint: #797775;
  --bl-shadow: 0 3.2px 7.2px rgba(0, 0, 0, 0.4), 0 0.6px 1.8px rgba(0, 0, 0, 0.3);
}
/* The page is the whole width: the demos' frame keeps its own header above it. */
#app.bl { max-width: none; margin: 0; padding: 0; }
.bl :focus-visible { outline: 2px solid var(--bl-accent); outline-offset: -2px; }
.bl-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* The finer icons: one-pixel lines on their own grid, square ends, crisp at their size. */
.bl-icon.bl-fine { stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }

/* ---- the bar across the top: 48px and its line, white; the mark 14px in, the product's name in bold, then the
   organisation's in grey with no slash, then the slashes, light, 15px each side (measured on 08_18) ---- */
.bl-top { display: flex; align-items: center; gap: 12px; height: 49px; flex: none; box-sizing: border-box; padding-inline: 14px 16px; background: var(--bl-bar); border-block-end: 1px solid var(--bl-bar-line); }
.bl-mark { width: 20px; height: 20px; border-radius: 4px; background: var(--bl-accent); flex: none; margin-inline-end: 2px; }
.bl-product { flex: none; margin-inline-end: -2px; color: var(--bl-ink); font-weight: 600; text-decoration: none; }
.bl-product:hover { text-decoration: underline; }
.bl-crumbs { min-width: 0; flex: 1; }
.bl-crumbs ol { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; white-space: nowrap; overflow: hidden; }
.bl-crumbs li { display: flex; align-items: center; min-width: 0; }
.bl-crumbs li + li::before { content: '/'; padding-inline: 15px; color: var(--bl-faint); }
.bl-crumbs a { color: var(--bl-muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
.bl-crumbs a:hover { text-decoration: underline; }
/* A search box 200px by 32, then the person's four tools 32px each, 3px apart, then their picture (measured on 08_19). */
.bl-search { display: flex; align-items: center; gap: 8px; width: 200px; height: 32px; box-sizing: border-box; padding-inline: 8px; border: 1px solid var(--bl-muted); border-radius: 2px; color: var(--bl-muted); }
.bl-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; color: var(--bl-ink); }
.bl-search input::placeholder { color: var(--bl-muted); opacity: 1; }
.bl-top-tools { display: flex; align-items: center; gap: 3px; margin-inline-start: 3px; }
.bl-me { display: grid; place-items: center; width: 32px; height: 32px; flex: none; margin-inline-start: -2px; border-radius: 50%; object-fit: cover; background: #8764b8; color: #fff; font-size: 12px; font-weight: 600; }
/* User settings' menu: the languages, the one shown ticked. */
.bl-user { position: relative; display: inline-flex; }
.bl-menu { position: absolute; z-index: 40; inset-inline-end: 0; top: calc(100% + 4px); min-width: 180px; padding-block: 4px; background: var(--bl-bar); border-radius: 4px; box-shadow: var(--bl-shadow); }
.bl-menu[hidden] { display: none; }
.bl-menu-heading { margin: 0; padding: 6px 12px 4px; color: var(--bl-muted); font-size: 12px; font-weight: 600; }
.bl-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding-inline: 12px; border: 0; background: none; color: var(--bl-ink); font: inherit; text-align: start; cursor: pointer; }
.bl-menu-item::before { content: ''; width: 14px; flex: none; }
.bl-menu-item[aria-checked="true"]::before { content: '✓'; color: var(--bl-accent); }
.bl-menu-item:hover, .bl-menu-item:focus { background: var(--bl-fill); outline: none; box-shadow: inset 0 0 0 1px var(--bl-accent); }
.bl-menu-item:hover:not(:focus) { box-shadow: none; }

/* ---- the project's menu: 260px, grey ---- */
.bl-frame { display: flex; flex: 1; min-height: 0; }
/* 259px and its line, as measured on the tracker's backlog (the list's card then starts at 292). */
.bl-nav { display: flex; flex-direction: column; width: 260px; flex: none; box-sizing: border-box; background: var(--bl-nav); border-inline-end: 1px solid var(--bl-nav-line); }
/* The project: its tile 12px in, its name at 48px, a press to create at its end; 48px with its line under it. */
.bl-project { display: flex; align-items: center; gap: 12px; height: 47px; margin-inline: 8px; padding-inline: 4px 0; border-block-end: 1px solid var(--bl-nav-line); font-weight: 600; }
.bl-project > span:nth-child(2) { flex: 1; }
.bl-project > .bl-tool { margin-inline-end: -4px; }
.bl-tile { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 2px; background: var(--bl-tile); color: #fff; font-size: 13px; }
.bl-nav ul { margin: 4px 0 0; padding: 0; list-style: none; }
/* Each part's lead in a 24px slot 12px in, its words at 48px: a top part 48px tall with a tile of its colour, a part
   under it 40px with a 14px drawing (measured on 08_18). */
.bl-nav-item { display: flex; align-items: center; gap: 12px; height: 48px; padding-inline: 12px; color: var(--bl-ink); text-decoration: none; }
.bl-nav-sub { height: 40px; }
.bl-nav-glyph { display: grid; place-items: center; width: 24px; height: 24px; flex: none; }
.bl-tile-icon { width: 24px; height: 24px; }
.bl-nav-sub .bl-icon { width: 16px; height: 16px; }
/* The part open, with what is under it: a darker ground and a 3px bar down its start; the page shown, a darker one still
   and the bar in the accent. */
.bl-nav-group, .bl-nav-in { background: var(--bl-nav-open); box-shadow: inset 3px 0 var(--bl-nav-bar); }
.bl[dir="rtl"] :is(.bl-nav-group, .bl-nav-in) { box-shadow: inset -3px 0 var(--bl-nav-bar); }
.bl-nav-open { font-weight: 600; }
.bl-nav-item:hover { background: var(--bl-nav-current); }
.bl-nav-item[aria-current="page"] { background: var(--bl-nav-current); box-shadow: inset 3px 0 var(--bl-accent); font-weight: 600; }
.bl[dir="rtl"] .bl-nav-item[aria-current="page"] { box-shadow: inset -3px 0 var(--bl-accent); }
.bl-nav-foot { display: flex; align-items: center; margin-block-start: auto; margin-inline: 8px; border-block-start: 1px solid var(--bl-nav-line); }
.bl-nav-foot .bl-nav-item { flex: 1; padding-inline: 4px; }
.bl-nav-foot .bl-icon { width: 14px; height: 14px; }

/* ---- the page: its head, its pivots, then Fieldia's list ---- */
.bl-page { flex: 1; min-width: 0; box-sizing: border-box; padding: 18px 32px 17px; padding-inline: 32px 32px; background: var(--bl-page); }
.bl-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 48px; }
/* The team's levels icon 18px by 14 at the page's start, its name 16px after it, the teams' chevron close (08_18). */
.bl-head-icon { display: grid; place-items: center; width: 20px; color: var(--bl-ink); }
.bl-head-icon .bl-icon { width: 18px; height: 14px; }
.bl-team { margin-block: 0; margin-inline: 10px 0; font-size: 20px; font-weight: 600; line-height: 28px; }
.bl-team + .bl-tool { margin-inline-start: -4px; }
/* The head's buttons 10px apart, their icons 12px before their words, the last 4px in from the page's end. */
.bl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-inline: auto 4px; }
.bl-button { display: inline-flex; align-items: center; gap: 12px; height: 32px; padding-inline: 12px; border: 0; border-radius: 2px; background: var(--bl-fill); color: var(--bl-ink); font: inherit; font-weight: 600; cursor: pointer; }
.bl-button:hover { background: var(--bl-fill-hover); }
.bl-tool { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--bl-ink); cursor: pointer; }
.bl-tool:hover { background: var(--bl-fill); }
/* The favourite's star in a light orange line (08_18). */
.bl-star { color: var(--bl-star); }
/* The pivots' underline at the head's foot, 19px above the filter bar, as measured. */
.bl-pivots-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 53px; margin-block-end: 8px; }
.bl-pivots { display: flex; gap: 4px; }
/* Each pivot's words 3px in, the next 18px after them; the underline as wide as the words, 3px up (08_18: "Backlog" 296–347
   over its line at 295–348, "Analytics" from 367). */
.bl-pivots a { position: relative; padding: 8px 3px; margin-inline-end: 8px; color: var(--bl-ink); text-decoration: none; }
.bl-pivots a[aria-current="page"] { font-weight: 600; }
.bl-pivots a[aria-current="page"]::after { content: ''; position: absolute; inset-inline: 3px; bottom: 3px; height: 2px; background: var(--bl-accent); }
/* The level's button, then its tools 32px wide and 12px apart, 15px in from the page's end; the level's icon in its
   kind's colour, the cog small (08_18). */
.bl-tools { display: flex; align-items: center; gap: 12px; margin-inline: auto 15px; }
.bl-tools .bl-icon-gear { width: 13px; height: 13px; stroke-width: 1.8; }
.bl-level { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding-inline: 8px 10px; border: 0; background: none; color: var(--bl-ink); font: inherit; font-weight: 600; cursor: pointer; }
.bl-level .bl-icon:first-child { color: var(--bl-story); margin-inline-end: 3px; }
.bl-level:hover { background: var(--bl-fill); }
/* Fieldia's list fills the page: the page's own room round it is the app's, over the theme's own. */
#app .bl-list > .fd-form > .fd-content { padding: 0; }
#app .bl-list > .fd-form { background: none; }
/* The backlog's card fills the window down to 17px above its foot, however few its rows, as the tracker's (08_18, 08_19):
   its top is 242px down the app, 17px under it the page's own room. */
#app.bl .bl-list .fd-list-scroll { min-height: calc(100dvh - var(--bl-above, 0px) - 259px); box-sizing: border-box; }

/* A press on a part this demo does not have: a note that goes by itself. */
.bl-note { position: fixed; inset-inline-start: 50%; bottom: 24px; z-index: 50; margin: 0; padding: 10px 16px; border-radius: 4px; background: var(--bl-ink); color: var(--bl-page); box-shadow: var(--bl-shadow); translate: -50% 12px; opacity: 0; pointer-events: none; transition: opacity 0.15s, translate 0.15s; }
.bl[dir="rtl"] .bl-note { translate: 50% 12px; }
.bl-note.bl-note-on { opacity: 1; translate: -50% 0; }
.bl[dir="rtl"] .bl-note.bl-note-on { translate: 50% 0; }
@media (prefers-reduced-motion: reduce) { .bl-note { transition: none; } }

/* ---- narrower windows: the menu goes, then the bar keeps its words short; a phone keeps 16px each side ---- */
@media (max-width: 1100px) { .bl-nav { display: none; } .bl-search { width: 140px; } }
@media (max-width: 1100px) { #app.bl .bl-list .fd-list-scroll { min-height: 0; } }
@media (max-width: 760px) {
  .bl-search, .bl-crumbs li:not(:last-child) { display: none; }
  .bl-crumbs li:last-child::before { content: none; }
  .bl-page { padding: 12px 16px 24px; }
  .bl-actions { margin-inline-start: 0; width: 100%; }
  .bl-actions .bl-button span { font-size: 13px; }
  .bl-tools { margin-inline-start: 0; }
}
