/*
 * The interim visual refresh — the whole of it, in one file.
 *
 * A temporary pass over the Bootstrap 5 app while a full design is worked on.
 * Everything here is prefixed `o-` and is meant to be deleted in one go: remove
 * this file, its import in assets/app.js, and put templates/base.html.twig's
 * header and footer back. Nothing else in the app depends on these classes.
 *
 * Rules of thumb, from the design handover: the page is WHITE, and separation
 * comes from 1px borders and hairline dividers, never from a tinted canvas or a
 * drop shadow; radii are 2–3px; the amber accent appears in tiny doses (board
 * dot, focus ring, link hover) and never as a button fill; no Bootstrap blue
 * anywhere. Aeonik Fono ("mono") carries the wordmark, buttons, eyebrows,
 * counts and the footer; RM Neue everything else.
 *
 * Load order matters in one place. This file is imported after app.css, but
 * board.css belongs to the board entrypoint and is linked AFTER it, so the
 * board overrides at the bottom are written as `body.orb-board-page …` — one
 * class more specific than anything in board.css.
 */

:root {
    --o-sans: 'RM Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --o-mono: 'Aeonik Fono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --o-ink: #17181a;        /* text, header bar, primary buttons */
    --o-ink-2: #2c2e31;      /* primary button hover */
    --o-body: #54565a;       /* body copy */
    --o-muted: #6f7175;      /* labels, secondary */
    --o-faint: #8a8b87;      /* eyebrows, footer */
    --o-bg: #ffffff;         /* page — deliberately white */
    --o-surface: #ffffff;    /* cards, rows, inputs */
    --o-line: #e2e2dc;       /* card borders */
    --o-line-2: #f1f1ed;     /* row dividers */
    --o-hover: #f7f7f3;      /* row hover */
    --o-input-line: #d6d6d0;
    --o-accent: oklch(0.66 0.13 70);  /* amber */
    --o-danger: oklch(0.50 0.17 27);
    --o-radius: 2px;
    --o-radius-card: 3px;
    --o-subbar: #ececea;     /* the board's grey second bar */

    /* ONE measure shared by header, main and footer on every page, so the
       header never jumps between pages; see .o-wrap. The board page alone
       sets it to none. */
    --o-measure: 1400px;

    /* Bootstrap hooks. --bs-body-bg rather than a background on <body>, so a
       board's colour wash (.orb-wash-*, set on <body>) still wins. */
    --bs-body-bg: var(--o-bg);
    --bs-body-color: var(--o-ink);
    --bs-secondary-color: var(--o-muted);
    --bs-secondary-color-rgb: 111, 113, 117;
    --bs-link-color: var(--o-ink);
    --bs-link-hover-color: var(--o-accent);
    --bs-border-color: var(--o-line);
    --bs-border-radius: var(--o-radius);
}

a { color: var(--o-ink); }
a:hover { color: var(--o-accent); }
::placeholder { color: #9a9b98; }

/* Bootstrap's blue focus glow, gone everywhere; the accent ring instead. */
.form-control,
.form-select { border-color: var(--o-input-line); border-radius: var(--o-radius); }
.form-control:focus,
.form-select:focus,
.o-input:focus,
.btn:focus-visible,
.o-btn:focus-visible,
a:focus-visible,
button:focus-visible { outline: 2px solid var(--o-accent); outline-offset: 0; box-shadow: none; border-color: var(--o-input-line); }
.btn:focus-visible,
.o-btn:focus-visible,
a:focus-visible { outline-offset: 2px; }
.btn { border-radius: var(--o-radius); }
.card { border-color: var(--o-line); border-radius: var(--o-radius-card); box-shadow: none; }

/* Alerts on the tokens: a white box with a coloured edge, not a tinted band. */
.o-page .alert { background: var(--o-surface); color: var(--o-ink); border: 1px solid var(--o-line); border-left-width: 3px; border-radius: var(--o-radius-card); padding: 12px 16px; font-size: 14px; }
.o-page .alert-danger { border-left-color: var(--o-danger); }
.o-page .alert-success { border-left-color: var(--o-accent); }
.o-page .alert-info { border-left-color: var(--o-ink); }

/* ------------------------------------------------------------ measure */

/* Header bar and footer rule are full-bleed; their contents, and the page
   body, share this one wrapper so the logo lines up with the <h1> and Sign
   out with the primary button. */
.o-wrap { width: 100%; max-width: var(--o-measure); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.o-main { padding-top: 26px; padding-bottom: 44px; }

/* ------------------------------------------------------------- header */

.o-header { position: sticky; top: 0; z-index: 5; flex: none; height: 48px; background: var(--o-ink); color: #fbfbf9; }
.o-header > .o-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.o-header__left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.o-header__right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex: none; }
/* With something in the middle (the board's or the dashboard's search), the two sides share what
   is left equally, which is what keeps the middle in the middle of the bar
   rather than wherever the logo happens to end. */
.o-header__center { flex: 0 1 560px; min-width: 0; display: flex; justify-content: center; }
.o-header:has(.o-header__center) .o-header__left,
.o-header:has(.o-header__center) .o-header__right { flex: 1 1 0; }

/* The logo: an inline SVG mark and a text wordmark (see
   _partials/_logo.html.twig), both sized off one height. currentColor throughout. */
.o-logo { --o-logo-h: 28px; display: inline-flex; align-items: center; gap: calc(var(--o-logo-h) * 0.375); color: inherit; }
.o-logo__mark { display: block; flex: none; width: var(--o-logo-h); height: var(--o-logo-h); }
.o-logo__word { display: block; flex: none; font-family: var(--o-mono); font-weight: 700; font-size: calc(var(--o-logo-h) * 0.68); line-height: 1; letter-spacing: -0.01em; }

.o-brand { display: flex; align-items: center; flex: none; color: #fbfbf9; text-decoration: none; transition: color 0.1s; }
.o-brand:hover { color: oklch(0.78 0.12 70); }

/* Breadcrumb segments. Truncate, never wrap: the bar must stay 48px. */
.o-crumb-sep { flex: none; color: #5a5c5f; font-size: 13px; }
.o-crumb { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 13px/1.2 var(--o-sans); letter-spacing: 0; color: #c9cacc; text-decoration: none; }
a.o-crumb:hover { color: #fbfbf9; }
.o-crumb--current { color: #fbfbf9; }

/*
 * The account menu: the signed-in person's face in the bar, and a <details>
 * panel under it with their name, a client's "Your profile" and Sign out. It
 * is the only control in the bar's right group at any width, so unlike the
 * row of buttons it replaced there is no phone copy of anything.
 */
.o-account { position: relative; flex: none; }
.o-account__button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #3a3c3f; color: #fbfbf9; font: 400 11px/1 var(--o-mono); letter-spacing: 0.04em; list-style: none; cursor: pointer; overflow: hidden; }
.o-account__button::-webkit-details-marker { display: none; }
.o-account__button:hover,
.o-account[open] > .o-account__button { box-shadow: 0 0 0 2px #fbfbf9; }
.o-account__img { width: 100%; height: 100%; object-fit: cover; }

/*
 * A dropdown panel off a <details>: the account menu above, and the board's
 * "..." menu in its grey bar. A light card hanging off whatever opened it.
 */
.o-menu__panel { position: absolute; top: calc(100% + 8px); right: 0; min-width: 12rem; padding: 6px; background: var(--o-surface); color: var(--o-ink); border: 1px solid var(--o-line); border-radius: var(--o-radius-card); box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; }
.o-menu__item { display: block; width: 100%; padding: 10px 14px; border: 0; border-radius: var(--o-radius); background: transparent; color: var(--o-ink); font: 400 14px/1.3 var(--o-sans); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.o-menu__item:hover { background: var(--o-hover); color: var(--o-ink); }
/* The signed-in name, at the top of the account menu. The login tests assert
   on .o-user. */
.o-user { display: block; max-width: 28ch; margin-bottom: 4px; padding: 8px 14px 10px; border-bottom: 1px solid var(--o-line-2); font-family: var(--o-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--o-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/*
 * The search pill, in the middle of the bar. On a board the field is the
 * title search and the button at its right-hand end opens the rest of the
 * filter (assets/vue/Board/FilterPopover.js), whose popover is positioned off
 * this. The dashboard's is the same pill without that button
 * (dashboard_filter_controller.js).
 */
.o-search-slot { width: 100%; }
.o-search { position: relative; display: flex; align-items: center; gap: 4px; width: 100%; height: 36px; padding: 0 4px 0 12px; border-radius: 18px; background: #3a3c3f; color: #fbfbf9; transition: background-color 0.1s; }
.o-search:focus-within,
.o-search--open { background: #45474a; }
.o-search__icon { display: flex; flex: none; color: #c9cacc; }
.o-search__input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 4px; border: 0; background: transparent; color: #fbfbf9; font: 400 14px/1 var(--o-sans); }
.o-search__input::placeholder { color: #9a9c9f; }
.o-search__input:focus { outline: none; }
.o-search__clear,
.o-search__filter { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; height: 28px; min-width: 28px; padding: 0 6px; border: 0; border-radius: 14px; background: transparent; color: #c9cacc; cursor: pointer; }
.o-search__clear:hover,
.o-search__filter:hover { background: #55575a; color: #fbfbf9; }
.o-search__filter[aria-expanded="true"] { background: #55575a; color: #fbfbf9; }
/* On while any facet behind it is — the button says the board is filtered. */
.o-search__filter--on,
.o-search__filter--on:hover,
.o-search__filter--on[aria-expanded="true"] { padding: 0 9px 0 7px; background: #fbfbf9; color: var(--o-ink); }
.o-search__count { font: 400 11px/1 var(--o-mono); font-variant-numeric: tabular-nums; }

/*
 * A page's second bar, full-bleed under the header — only the board has one:
 * its trail (the last segment is the page's <h1>), the people who can see it
 * and its "..." menu. Positioned so it paints above a board's fixed backdrop,
 * and given a z-index so its menu panel paints above the lanes, which are
 * positioned too and come later; it holds nothing a card panel has to get out
 * of. flex: none keeps it a fixed-height link in the board's flex chain.
 */
.o-subbar { position: relative; z-index: 4; flex: none; height: 48px; background: var(--o-subbar); color: var(--o-ink); }
.o-subbar > .o-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.o-subbar__trail { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.o-subbar__crumb { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 15px/1.3 var(--o-sans); letter-spacing: 0; color: var(--o-muted); text-decoration: none; }
a.o-subbar__crumb { flex: 0 1 auto; }
a.o-subbar__crumb:hover { color: var(--o-ink); }
.o-subbar__crumb--current { flex: 0 1 auto; color: var(--o-ink); }
.o-subbar__sep { flex: none; color: var(--o-ink); font-size: 15px; }
.o-subbar__right { display: flex; align-items: center; flex: none; }
/* The faces' ring is the bar's grey, so overlapping circles read as cut out
   of it rather than outlined in white. */
.o-subbar .o-faces { margin: 0; }
.o-subbar .o-face { box-shadow: 0 0 0 2px var(--o-subbar); }
.o-subbar .o-face--more { box-shadow: 0 0 0 2px var(--o-subbar), inset 0 0 0 1px var(--o-input-line); }
.o-subbar #board-people:not(:empty) { margin-right: 14px; padding-right: 14px; border-right: 1px solid var(--o-input-line); }

.o-menu { position: relative; flex: none; }
.o-menu__button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--o-radius); color: var(--o-ink); list-style: none; cursor: pointer; }
.o-menu__button::-webkit-details-marker { display: none; }
.o-menu__button:hover,
.o-menu[open] > .o-menu__button { background: rgba(0, 0, 0, 0.07); }

/* ------------------------------------------------------------ buttons */

.o-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 9px 14px; border: 1px solid var(--o-ink); border-radius: var(--o-radius); background: var(--o-ink); color: #fbfbf9; font-family: var(--o-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.1s, color 0.1s, border-color 0.1s; }
.o-btn:hover { background: var(--o-ink-2); border-color: var(--o-ink-2); color: #fbfbf9; }
.o-btn--outline { background: var(--o-surface); border-color: var(--o-input-line); color: var(--o-ink); }
.o-btn--outline:hover { background: var(--o-surface); border-color: var(--o-ink); color: var(--o-ink); }
.o-btn--invert { background: var(--o-surface); color: var(--o-ink); }
.o-btn--invert:hover { background: var(--o-ink); border-color: var(--o-ink); color: #fbfbf9; }
.o-btn--danger { background: transparent; border-color: var(--o-danger); color: var(--o-danger); }
.o-btn--danger:hover { background: var(--o-danger); border-color: var(--o-danger); color: #ffffff; }
.o-btn--ghost { min-height: 0; padding: 6px 10px; background: transparent; border-color: #45474a; color: #fbfbf9; }
.o-btn--ghost:hover { background: transparent; border-color: #fbfbf9; color: #fbfbf9; }
.o-btn--lg { width: 100%; padding: 12px 16px; font-size: 12px; letter-spacing: 0.12em; }

/* --------------------------------------------------------------- type */

.o-eyebrow { margin: 0; font: 400 11px/1.4 var(--o-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--o-faint); }
.o-meta { font-family: var(--o-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--o-faint); font-variant-numeric: tabular-nums; }
.o-stat { flex: none; font-family: var(--o-mono); font-size: 11px; color: #9a9b98; white-space: nowrap; font-variant-numeric: tabular-nums; }
.o-title { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; overflow-wrap: anywhere; }
.o-lede { margin: 0; font-size: 14px; line-height: 1.55; color: var(--o-muted); max-width: 62ch; text-wrap: pretty; }
.o-link-muted { font-size: 13px; color: var(--o-muted); text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------- forms */

.o-field { margin-bottom: 16px; }
.o-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--o-muted); }
.o-input { display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--o-input-line); border-radius: var(--o-radius); background: var(--o-surface); color: var(--o-ink); font: inherit; font-size: 15px; line-height: 1.3; }
.o-input--md { padding: 10px 12px; font-size: 14px; }
.o-input--sm { padding: 9px 11px; font-size: 13px; width: 240px; max-width: 46vw; }
/* A field shown for reference and not for editing — the client profile page's
   email address. It has to READ as fixed, or somebody types into it, cannot,
   and concludes the page is broken rather than that the setting is deliberate. */
.o-input:disabled { background: var(--o-hover); color: var(--o-muted); cursor: not-allowed; }
.o-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.o-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ------------------------------------------------------------ sign in */

/* One form wide: the page shows the client's or the staff one, never both. */
.o-signin { max-width: 440px; margin: 6vh auto 0; }
.o-signin__brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 36px; }
.o-wordmark { margin: 0; color: var(--o-ink); line-height: 1; }
.o-wordmark .o-logo { --o-logo-h: 48px; }
/* White panels in one bordered box; the 1px gap over the box's own
   background is the divider. Sign-in shows one at a time. */
.o-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--o-line); border: 1px solid var(--o-line); border-radius: var(--o-radius-card); overflow: hidden; }
.o-panel { background: var(--o-surface); padding: 30px 30px 34px; }
.o-panel > .o-eyebrow { margin-bottom: 18px; }
.o-panel__intro { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--o-body); max-width: 34ch; text-wrap: pretty; }
.o-panel__foot { margin: 14px 0 0; }
.o-panel__foot--split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.o-panel .o-field--last { margin-bottom: 22px; }

/* ---------------------------------------------- dashboard and project */

.o-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
/* Wraps: on a phone the filter box and two buttons do not fit one line. */
.o-pagehead__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.o-titleblock { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #e0e0da; }
/* The flex row that puts a project's logo to the left of its name. With no
   logo the partial renders nothing and one child sits exactly where it used
   to, so this is safe on every page using .o-titleblock. */
.o-titleblock__text { display: flex; align-items: center; gap: 14px; min-width: 0; }
.o-titleblock__lines { min-width: 0; }
.o-titleblock .o-title { font-size: 26px; margin-bottom: 6px; }
/*
 * The project page's heading is the dashboard's project panel heading at page
 * scale, and follows its rules for the same reasons: BASELINE alignment, so
 * the description's first line sits on the project's name rather than
 * floating in the gap above its counts; the logo opting out of that with
 * align-self, because an image's baseline is its bottom edge; and the actions
 * pushed right by margin rather than by space-between, so a project with no
 * description still has its button on the right edge.
 *
 * The name column shrink-wraps here where the dashboard's is a fixed 200px.
 * That column exists to line every description on the page up at the same x;
 * there is one project on this page and nothing under it to line up with.
 */
.o-titleblock--project { justify-content: flex-start; align-items: baseline; gap: 10px 28px; }
.o-titleblock--project > .orb-project-logo { flex: none; align-self: center; }
.o-titleblock--project .o-titleblock__lines { flex: 0 1 auto; }
.o-titleblock--project .o-actions { align-self: center; margin-left: auto; }
/* A caption beside the name, not a lede under it — so it is narrower than
   .o-lede: two short lines beside the name read faster than one long one
   running most of the way to the button. */
.o-titleblock__desc { flex: 0 1 auto; min-width: 0; margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--o-muted); text-wrap: pretty; }
.o-actions { display: flex; gap: 8px; flex: none; }

/* A client record's Artifacts | Settings tabs. They sit on the titleblock's
   rule, so --tabbed gives the rule to the tab bar instead, and the current
   tab is underlined over it. The rule is an inset shadow, not a border, so
   the underline can cover it without a negative margin that overflow-x
   would clip; it scrolls sideways rather than wrapping if a third tab ever
   makes it too wide for a phone. */
.o-titleblock--tabbed { border-bottom: 0; }
.o-tabs { display: flex; gap: 24px; margin-bottom: 20px; box-shadow: inset 0 -1px 0 #e0e0da; overflow-x: auto; scrollbar-width: none; }
.o-tab { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 0 8px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--o-muted); text-decoration: none; white-space: nowrap; }
.o-tab:hover { color: var(--o-ink); }
.o-tab--current { color: var(--o-ink); border-bottom-color: var(--o-ink); }
.o-tab .o-stat { font-weight: 400; }
.o-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 10px; }
.o-section-title { margin: 34px 0 10px; }

/* A bordered white box: the project page's and the board settings page's
   sections, the archived list. It is no longer the dashboard's project card —
   that is .o-project below — so it is always padded in practice; --pad is kept
   separate because the archived list puts rows to the box's own edges. */
.o-card { display: flex; flex-direction: column; background: var(--o-surface); border: 1px solid var(--o-line); border-radius: var(--o-radius-card); overflow: hidden; transition: border-color 0.1s; }
.o-card:hover { border-color: #cfcfc8; }
.o-card--pad { padding: 20px; }

/* A board in a list. Long names WRAP — the dot and the stat pin to the first
   line — because "Velodrome PlayLab — Internal Build Project" has to stay
   readable. No nowrap or ellipsis on a board or project name anywhere. */
.o-rows { display: flex; flex-direction: column; }
.o-row { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--o-line-2); color: var(--o-ink); text-decoration: none; font-size: 14px; line-height: 1.35; transition: background-color 0.1s; }
.o-row:last-child { border-bottom: 0; }
/* ...and the last one a search has left showing (search_controller.js hides
   rows with `hidden`), so a filtered list does not end in a double rule. */
.o-row:not(:has(~ .o-row:not([hidden]))) { border-bottom: 0; }
a.o-row:hover { background: var(--o-hover); color: var(--o-ink); }
.o-row--lg { gap: 14px; padding: 14px 16px; font-size: 15px; font-weight: 400; }
.o-dot { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--o-accent); }
.o-row--lg .o-dot { margin-top: 7px; }
.o-row__name { flex: 1 1 auto; min-width: 0; text-wrap: pretty; overflow-wrap: anywhere; }
.o-row .o-stat { margin-top: 2px; }
.o-row--add { display: block; font-family: var(--o-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--o-faint); }
a.o-row--add:hover { color: var(--o-ink); }
.o-row--empty { font-size: 13px; color: var(--o-muted); font-style: italic; }
/* A row that is not itself a link: a name link and a Restore form side by side. */
.o-row--static { align-items: center; }
.o-row--static .o-row__name { flex: 1 1 auto; color: var(--o-ink); text-decoration: none; }
.o-row--static .o-row__name:hover { text-decoration: underline; }
.o-row--static form { flex: none; }
.o-dot--muted { opacity: 0.35; }
/* A client's Spacecamp logo: a square crop (Spacecamp's ClientLogoUploader),
   in a row where the dot would be, or beside the client's name in a title.
   White behind it for transparent PNGs, and a hairline drawn over the edge so
   a white logo still has one. */
.o-client-logo { flex: none; display: block; width: 22px; height: 22px; margin: -1px 0; border-radius: 5px; object-fit: cover; background: #ffffff; outline: 1px solid var(--o-line); outline-offset: -1px; }
.o-client-logo--lg { width: 56px; height: 56px; margin: 0; border-radius: 10px; }
.o-row--static .o-dot { margin-top: 0; }
.o-btn--xs { min-height: 0; padding: 5px 10px; }
/* A person in the project page's Clients list, and the add form under the list. */
.o-row--person .o-row__name { line-height: 1.4; }
.o-row__meta { font-size: 12px; color: var(--o-muted); }
.o-row__warn { color: var(--o-danger); }
.o-card__foot { padding: 16px; border-top: 1px solid var(--o-line-2); }
.o-card__foot-title { margin: 0 0 4px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.o-card__foot-help { margin: 0 0 14px; font-size: 13px; color: var(--o-muted); max-width: 62ch; }
.o-label__opt { color: var(--o-faint); }
/* The collapsed "Archived boards" block on a project page. */
.o-archived-boards { margin-top: 14px; }
.o-archived-boards > summary { cursor: pointer; list-style: none; color: var(--o-muted); }
.o-archived-boards > summary::-webkit-details-marker { display: none; }
/* The disclosure caret is Phosphor's caret-right (assets/icons/phosphor/),
   painted through a mask so it takes the summary's colour, and turned a
   quarter when open rather than swapped for caret-down. */
.o-archived-boards > summary::before { content: ''; display: inline-block; width: 12px; height: 12px; flex: none; align-self: center; margin-right: 8px; background-color: currentColor; -webkit-mask: url("../icons/phosphor/caret-right-qypISww.svg") center / contain no-repeat; mask: url("../icons/phosphor/caret-right-qypISww.svg") center / contain no-repeat; forced-color-adjust: none; transition: transform 0.1s; }
.o-archived-boards[open] > summary::before { transform: rotate(90deg); }
.o-archived-boards[open] > summary { border-bottom: 1px solid var(--o-line-2); }
.o-tile-add { display: flex; align-items: center; justify-content: center; min-height: 132px; border: 1px dashed #cdcdc6; border-radius: var(--o-radius-card); background: transparent; color: var(--o-faint); font-family: var(--o-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: border-color 0.1s, color 0.1s; }
.o-tile-add:hover { border-color: var(--o-ink); color: var(--o-ink); }
.o-empty { margin: 24px 0 0; font-size: 13px; color: var(--o-muted); }

/* ------------------------------------------------- dashboard: projects */

/*
 * A project is a full-width panel with its boards tiled across it, rather than
 * a narrow card with its boards stacked as rows inside it. Down the page for
 * projects, across it for boards.
 *
 * These two radii are larger than --o-radius-card, and deliberately: the
 * design handover draws the panel and its tiles softer than the rest of the
 * interim chrome, which stays square. They are tokens rather than literals so
 * the two cannot drift.
 */
.o-projects { display: flex; flex-direction: column; gap: 18px; --o-radius-panel: 8px; --o-radius-tile: 10px; }
.o-project { background: var(--o-surface); border: 1px solid var(--o-line); border-radius: var(--o-radius-panel); }

/*
 * One row: logo, name and counts, description, faces. It WRAPS — below about
 * 900px the description drops under the name and the faces follow it — and the
 * faces are pushed right by margin rather than by a spacer, so a project with
 * no description still has them on the right edge.
 *
 * BASELINE, not centre. The description reads as a second column of the same
 * paragraph as the name, so its first line has to sit on the project name's
 * own line — centred, a one-line description floats into the gap between the
 * name and the counts under it, and a two-line one straddles both. Baseline
 * alignment does it without a magic offset: .o-project__id is a plain block,
 * so its first baseline is the name's, and the description's is its first
 * line's. (A flex item whose own items are CENTRED exposes no baseline and the
 * browser synthesises one from its bottom edge — which is why .o-project__id
 * must stay a block and not become a flex column.)
 *
 * The logo and the faces opt out: neither has anything to sit on a text
 * baseline, and an image's baseline is its bottom edge, which would hang the
 * logo off the name's line.
 */
.o-project__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px; padding: 18px 20px; }
/* A FIXED column, so every description on the page starts at the same x
   whatever the names above them are — a shrink-to-fit column puts "TRENZ"'s
   description 90px left of "Velodrome PlayLab Programme"'s and the page reads
   as ragged. A long name wraps inside the column instead (the panel gets
   taller, which nothing else depends on) and a single unbreakable word is
   caught by the overflow-wrap below. */
.o-project__id { flex: 0 0 200px; min-width: 0; }
.o-project__name { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; text-wrap: pretty; overflow-wrap: anywhere; }
.o-project__name a { color: inherit; text-decoration: none; }
.o-project__name a:hover { color: var(--o-accent); }
/* Narrow on purpose: a description here is a caption, and two short lines
   beside the name read faster than one long one running most of the way to the
   faces. `pretty` then balances the last line. */
.o-project__desc { flex: 0 1 auto; min-width: 0; margin: 0; max-width: 38ch; font-size: 14px; line-height: 1.5; color: var(--o-muted); text-wrap: pretty; }
/* The logo is drawn by _partials/_project_logo.html.twig and is often absent;
   nothing here may depend on its being there, which is why this is a flex row
   and not a four-column grid. */
.o-project__head .orb-project-logo { flex: none; align-self: center; }

/* The people on the project, overlapping right to left. The ring is the
   panel's own surface colour, so the circles read as separate at any size. */
.o-faces { display: flex; align-items: center; align-self: center; flex: none; margin: 0 0 0 auto; padding: 0; list-style: none; }
.o-face { display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--o-ink); color: #fbfbf9; font-family: var(--o-mono); font-size: 10px; letter-spacing: 0.04em; line-height: 1; overflow: hidden; box-shadow: 0 0 0 2px var(--o-surface); }
/* Barely overlapped, as the design has them. At -8px a 30px circle lost a
   third of its neighbour and two initials became one legible letter and a
   sliver; the overlap only has to say "these belong together". */
.o-face + .o-face { margin-left: -4px; }
/* Hovering one lifts it above its neighbours so the whole face shows — the
   same as Spacecamp's in-the-office row. Positioned so the z-index applies;
   1 keeps it under every menu, bar and panel. */
.o-face { position: relative; }
.o-face:hover { z-index: 1; }
/* The seam between the Satellite cluster and the clients' — a gap instead of
   the overlap, so the row reads as two groups without inventing a second
   colour for a circle. Kept well clear of the 4px overlap above, or the seam
   reads as nothing more than a slightly wider join. */
.o-face + .o-face--split { margin-left: 10px; }
.o-face__img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.o-face--more { background: var(--o-hover); color: var(--o-muted); box-shadow: 0 0 0 2px var(--o-surface), inset 0 0 0 1px var(--o-line); }

/* ------------------------------------------------ dashboard: board tiles */

/* min(360px, 100%) rather than a bare 360px: auto-fill's minimum is a floor
   the track cannot go under, so on a phone the tile would be 360px wide inside
   a 318px panel and hang over its right edge. */
.o-boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; }
/* The padding belongs to the PANEL, not the grid: the project page draws the
   same tiles with no panel around them, flush to the measure like every other
   section on it. */
.o-project > .o-boards { padding: 0 20px 20px; }
.o-boards__empty { grid-column: 1 / -1; margin: 0; font-size: 13px; font-style: italic; color: var(--o-muted); }

.o-btile { display: flex; flex-direction: column; border: 1px solid var(--o-line); border-radius: var(--o-radius-tile); overflow: hidden; background: var(--o-surface); color: var(--o-ink); text-decoration: none; transition: border-color 0.1s; }
.o-btile:hover { border-color: var(--o-tile, var(--o-ink)); color: var(--o-ink); }
/* The tint fills whatever height the row settles at, so the foot of every tile
   in a row lines up however long the names are. */
.o-btile__head { display: flex; flex: 1 1 auto; align-items: flex-start; gap: 10px; padding: 14px 16px; background: var(--o-tile-tint, transparent); }
.o-btile__name { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.35; text-wrap: pretty; overflow-wrap: anywhere; }
.o-btile .o-dot { margin-top: 7px; background: var(--o-tile, var(--o-accent)); }
.o-btile__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; }
/* Uppercase here and nowhere else .o-stat is used: on a tile it is a caption
   under a headline and wants to read as one, where in a project page's row it
   sits on the same line as the name and would shout over it. */
.o-btile .o-stat { text-transform: uppercase; letter-spacing: 0.08em; }
.o-btile__go { flex: none; color: #b6b7b3; transition: color 0.1s; }
.o-btile:hover .o-btile__go { color: var(--o-tile, var(--o-ink)); }

/*
 * A tile wears its board's OWN colour, named from App\Entity\BoardColour —
 * the same ten colours as its labels, its lanes and its background wash, which
 * are declared once on :root in app.css. Referred to, never copied: a second
 * set of values here is exactly how the "blue" board and the "blue" label stop
 * being the same blue.
 *
 * A board with a background PICTURE gets no class at all, so it falls through
 * to the plain surface — see _partials/_board_tile.html.twig for why.
 */
.o-btile--red    { --o-tile: var(--orb-red-strong); --o-tile-tint: var(--orb-red-tint); }
.o-btile--orange { --o-tile: var(--orb-orange-strong); --o-tile-tint: var(--orb-orange-tint); }
.o-btile--yellow { --o-tile: var(--orb-yellow-strong); --o-tile-tint: var(--orb-yellow-tint); }
.o-btile--lime   { --o-tile: var(--orb-lime-strong); --o-tile-tint: var(--orb-lime-tint); }
.o-btile--green  { --o-tile: var(--orb-green-strong); --o-tile-tint: var(--orb-green-tint); }
.o-btile--teal   { --o-tile: var(--orb-teal-strong); --o-tile-tint: var(--orb-teal-tint); }
.o-btile--blue   { --o-tile: var(--orb-blue-strong); --o-tile-tint: var(--orb-blue-tint); }
.o-btile--purple { --o-tile: var(--orb-purple-strong); --o-tile-tint: var(--orb-purple-tint); }
.o-btile--pink   { --o-tile: var(--orb-pink-strong); --o-tile-tint: var(--orb-pink-tint); }
.o-btile--grey   { --o-tile: var(--orb-grey-strong); --o-tile-tint: var(--orb-grey-tint); }

.o-btile--red,
.o-btile--orange,
.o-btile--yellow,
.o-btile--lime,
.o-btile--green,
.o-btile--teal,
.o-btile--blue,
.o-btile--purple,
.o-btile--pink,
.o-btile--grey {
    /* The tint is the design's own, which carries body text; the border is the
       strong shade let down so the tile still reads as a tile, not a badge. */
    border-color: color-mix(in srgb, var(--o-tile) 30%, var(--o-surface));
}

.o-btile--add { align-items: center; justify-content: center; min-height: 92px; border-style: dashed; border-color: #cdcdc6; color: var(--o-faint); font-family: var(--o-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.o-btile--add:hover { border-color: var(--o-ink); color: var(--o-ink); }

/* "+ New project" closes the list rather than sitting in a grid of its own. */
.o-projects > .o-tile-add { min-height: 72px; }

/*
 * The settings shape, shared by the project page and a board's settings page.
 * Above 992px a 7/5 split: the lists and the things people do most on the
 * left, the one-off configuration on the right; below it one column. The
 * archive strip sits outside the grid so it is always full width. Only
 * `.o-cols--split` makes two columns; the plain one is the single-column
 * fallback, which nothing asks for today — a client's project page used to,
 * and now renders no grid at all, since everything left in it is staff's.
 */
.o-cols { display: grid; gap: 0 24px; align-items: start; }
.o-cols > * { min-width: 0; }
@media (min-width: 992px) {
    .o-cols--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
/* Help copy inside a settings card: before a form, or as a note after one. */
.o-help { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--o-muted); max-width: 62ch; text-wrap: pretty; }
.o-help--after { margin: 14px 0 0; }
.o-help code { font-size: 12px; color: var(--o-ink); }
/* A one-field form with its button alongside: rename a board. */
/* The artifact form's upload progress (assets/controllers/upload_controller.js). */
.o-upload { margin: 4px 0 16px; }
.o-upload__track { height: 8px; border-radius: 999px; background: var(--o-line); overflow: hidden; }
.o-upload__fill { width: 0; height: 100%; background: var(--o-ink); transition: width 0.2s linear; }
.o-upload__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.o-upload__text { margin: 0; font: 400 12px/1.4 var(--o-mono); color: var(--o-muted); font-variant-numeric: tabular-nums; }
.o-upload.is-error .o-upload__fill { background: var(--o-danger); }
.o-upload.is-error .o-upload__text { color: var(--o-danger); }
.o-upload.is-error .o-btn { display: none; }

.o-field-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.o-field-row > :first-child { flex: 1 1 200px; }
.o-field-row .o-label { margin-bottom: 6px; }
/* Bootstrap's check boxes on the tokens — the board settings people list. */
.o-page .form-check-input { border-color: var(--o-input-line); border-radius: var(--o-radius); }
.o-page .form-check-input:checked { background-color: var(--o-ink); border-color: var(--o-ink); }
/* Bootstrap's check labels inherit the body's 16px, which on an o- page is
   larger than the eyebrow above the card they sit in. Was scoped to the board
   settings people list; it wants to be every one of them — the background's
   "Remove it" and the profile page's email switch had the same problem. */
.o-page .form-check-label { font-size: 14px; }
.o-page .form-check-input:focus { box-shadow: none; outline: 2px solid var(--o-accent); outline-offset: 1px; border-color: var(--o-input-line); }
/* The settings page's label rows and its stand-in preview, on the tokens. */
.o-page .orb-label-row .o-input { flex: 1 1 8rem; width: auto; max-width: none; }
.o-page .orb-wash-preview,
.o-page .orb-wash-preview span,
.o-page .orb-bg-preview { border-radius: var(--o-radius-card); }
.o-page .orb-wash-preview span { box-shadow: none; }

.o-danger-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 16px 20px; background: var(--o-surface); border: 1px solid var(--o-line); border-left: 3px solid var(--o-danger); border-radius: var(--o-radius-card); }
.o-danger-strip h2 { margin: 0 0 3px; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.o-danger-strip p { margin: 0; font-size: 13px; color: var(--o-muted); }

/* ------------------------------------------------------------- footer */

.o-footer { flex: none; border-top: 1px solid #e0e0da; font-family: var(--o-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--o-faint); }
.o-footer > .o-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.o-footer a { color: inherit; text-decoration: none; }
.o-footer a:hover { color: var(--o-ink); }

/* -------------------------------------------------------------- board */

/*
 * The board page. The header keeps the same 1400px measure as every other
 * page, so Sign out and Settings never move; only the LANE STRIP is full
 * width. board.css already does that with a spacer (`.orb-lanes::before`)
 * that lines lane one up with a container edge and shrinks to nothing before
 * the strip scrolls — it is re-aimed here at the header's content edge, 20px
 * inside the measure, instead of Bootstrap's `.container`. The in-page head
 * row is gone (trail and Settings are in the header), so the lanes start
 * straight under the bar.
 */
body.orb-board-page { --o-lane: #ececea; }
body.orb-board-page .o-main { max-width: none; padding-left: 0; padding-right: 0; }
body.orb-board-page .alert { position: relative; }  /* above the fixed backdrop */
body.orb-board-page .orb-lanes { margin: 0; padding: 0 0 12px; }
/* The header's inset is 20px and the strip's gap is 0.75rem, hence the 8px. */
body.orb-board-page .orb-lanes::before { flex-basis: calc((100vw - min(100vw, var(--o-measure))) / 2 + 8px); }
body.orb-board-page .orb-lane { background: var(--o-lane); border-radius: var(--o-radius-card); }
body.orb-board-page .orb-lane-tinted { background: var(--orb-lane-tint); }
body.orb-board-page .orb-lane-add { background: transparent; }
body.orb-board-page .orb-lane-title,
body.orb-board-page .orb-lane-title-input,
body.orb-board-page .orb-lane-collapsed-name { font-size: 14px; font-weight: 700; }
body.orb-board-page .orb-lane-count,
body.orb-board-page .orb-lane-header .btn-link { font-family: var(--o-mono); font-size: 11px; color: var(--o-faint); text-decoration: none; }
/* The folded list's count is a badge on the strip, so it keeps ink rather than the faint grey. */
body.orb-board-page .orb-lane-collapsed-count { color: var(--o-ink); }
body.orb-board-page .orb-lane-add-card { font-family: var(--o-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--o-faint); }
body.orb-board-page .orb-lane-add-card:hover { color: var(--o-ink); }
body.orb-board-page .orb-card { background: var(--o-surface); border: 1px solid var(--o-line); border-radius: var(--o-radius-card); box-shadow: none; }
body.orb-board-page .orb-card:hover { background: var(--o-hover); }

/* -------------------------------------------------------------- phones */

/*
 * The boss runs Trello from an iPhone, so the interim pass has to hold up
 * there too. Two kinds of rule, on two kinds of query, and the difference
 * matters: WIDTH decides layout (the header cannot hold its buttons on a
 * narrow screen whatever the input device), POINTER decides ergonomics (a
 * finger on a laptop touch-screen has the same problems as a finger on a
 * phone). Neither is the board's own phone layout, which is in board.css.
 */

@media (max-width: 767.98px) {
    /* The bar: logo, one crumb, the account menu. The trail keeps only its
       current segment. On the board and the dashboard the middle is the search box, which needs
       the room more than the wordmark does, so the logo drops to its mark. */
    .o-header__left { gap: 10px; }
    .o-header__left a.o-crumb,
    .o-header__left .o-crumb-sep { display: none; }
    .o-header > .o-wrap { gap: 10px; }
    .o-header:has(.o-header__center) .o-logo__word { display: none; }
    .o-header:has(.o-header__center) .o-header__left,
    .o-header:has(.o-header__center) .o-header__right { flex: none; }
    .o-header__center { flex: 1 1 auto; }
    .o-header__right { gap: 8px; }
    .o-actions { gap: 8px; }

    /* The board's grey bar: the project crumb goes, like the header's, and
       the faces go with it — the board menu is what that bar is for on a
       phone, and the settings page lists everybody. */
    .o-subbar__trail a.o-subbar__crumb,
    .o-subbar__sep,
    .o-subbar #board-people { display: none; }

    /* The dashboard's project heading stacks: name, description, faces. The
       logo stays beside the name — it is 120px wide and the name has to keep
       whatever is left, so the two share the first line and everything else
       goes under them. */
    .o-project__head { align-items: flex-start; gap: 10px 16px; padding: 16px; }
    /* The 200px column that lines descriptions up down the page is more than
       there is room for here; without dropping it the 120px logo wraps onto a
       line of its own above the name. Nothing is left to line up with anyway,
       since the description is on its own line below. */
    .o-project__id { flex: 1 1 auto; }
    .o-project__desc { flex-basis: 100%; }
    .o-faces { margin-left: 0; }
    .o-project > .o-boards { padding: 0 16px 16px; }

    /* The project page's heading stacks the same way, and for the same
       reason: the logo is 120px wide, so it and the name share the first line
       and the description and the button go under them. */
    .o-titleblock--project { align-items: flex-start; gap: 10px 16px; }
    .o-titleblock--project .o-titleblock__lines { flex: 1 1 auto; }
    .o-titleblock--project .o-titleblock__desc { flex-basis: 100%; }
    .o-titleblock--project .o-actions { margin-left: 0; }
}

/*
 * iOS Safari zooms the page to any focused field whose text is under 16px, and
 * on the board — a page that is overflow:hidden and never scrolls itself —
 * that zoom leaves the lanes offset and does not fully come back on blur. So
 * on a coarse pointer every text field is 16px, Bootstrap's small variants
 * included. `body.o-page` for specificity: the interim board block above sets
 * the lane rename box at 14px with two classes, and this has to win. The
 * one-time-code fields are ids at 1.5rem and are untouched. Not
 * `maximum-scale=1` in the viewport meta, which suppresses the same zoom but
 * is a pinch-zoom setting being used for something else.
 */
@media (pointer: coarse) {
    body.o-page .form-control,
    body.o-page .form-control-sm,
    body.o-page .form-select,
    body.o-page .form-select-sm,
    body.o-page .o-input,
    body.o-page .o-search__input,
    body.o-page .orb-lane-title-input { font-size: 16px; }
}

/* ------------------------------------------------------------- badges */

.o-badge { flex: none; display: inline-block; padding: 3px 6px; border-radius: var(--o-radius); font: 400 10px/1 var(--o-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.o-badge--draft { background: var(--o-accent); color: var(--o-ink); }

/* ------------------------------------------------------ artifact viewer */

/*
 * The artifact page (artifact/show.html.twig): the conversation in a column
 * on the left and the artifact filling the rest, like a design tool. The page
 * is exactly the window (body.vh-100 overflow-hidden); the column and the
 * iframe each scroll on their own, and the header stays the one 48px bar.
 */
.o-viewer-page .o-main { display: flex; flex-direction: column; min-height: 0; max-width: none; padding: 0; }
.o-viewer { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
.o-viewer__column { display: flex; flex-direction: column; flex: none; width: 360px; min-height: 0; border-right: 1px solid var(--o-line); background: var(--o-surface); }
.o-viewer__about { flex: none; padding: 18px 20px 16px; border-bottom: 1px solid var(--o-line-2); }
.o-viewer__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; overflow-wrap: anywhere; }
.o-viewer__desc { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: var(--o-body); max-height: 9em; overflow-y: auto; overflow-wrap: anywhere; }
.o-viewer__meta { margin: 0; font: 400 11px/1.4 var(--o-mono); letter-spacing: 0.06em; color: var(--o-faint); }
.o-viewer__frame { display: block; flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; border: 0; background: #ffffff; }
.o-viewer__toggle { display: none; }
/* A video artifact: letterboxed on black in the same space as the iframe. */
.o-viewer__stage { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-width: 0; padding: 24px; background: #0b0b0c; }
.o-viewer__video { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; background: #000000; }
.o-viewer__notice { max-width: 420px; color: #e9e9ea; font-size: 14px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.o-viewer__notice p { margin: 0 0 10px; }
.o-viewer__notice .o-btn--outline { color: #ffffff; border-color: rgba(255, 255, 255, 0.5); }

/* A phone: the artifact gets the whole width, and the column is a drawer
   over it, opened from the header (assets/controllers/viewer_controller.js). */
@media (max-width: 767.98px) {
    .o-viewer__toggle { display: inline-flex; }
    .o-viewer__column { position: absolute; inset: 0 auto 0 0; z-index: 4; width: min(360px, 92vw); box-shadow: 0 0 24px rgba(0, 0, 0, 0.18); transform: translateX(-105%); transition: transform 0.18s ease-out; }
    .o-viewer.is-open .o-viewer__column { transform: none; }
    .o-viewer__stage { padding: 0; }
    .o-viewer-page .o-header__right .o-btn--ghost:not(.o-viewer__toggle) { display: none; }
}

/* ------------------------------------------------------------ comments */

/* The column under the artifact's title (artifact/_comments.html.twig): a
   list that scrolls, and the box to write in pinned under it. */
.o-comments { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.o-comments__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 0; overscroll-behavior: contain; }
.o-comments__empty { margin: 0; padding: 18px 20px; font-size: 13px; color: var(--o-muted); font-style: italic; }
.o-comments__composer { flex: none; padding: 12px 16px 14px; border-top: 1px solid var(--o-line); background: var(--o-surface); }
.o-comments__input { resize: vertical; min-height: 0; padding: 9px 11px; font-size: 14px; line-height: 1.45; }
.o-comments__actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.o-comments__hint { margin-right: auto; font: 400 10px/1 var(--o-mono); letter-spacing: 0.06em; color: var(--o-faint); }
.o-comments__error { margin: 6px 0 0; font-size: 12px; color: var(--o-danger); }
.o-comments__off { flex: none; margin: 0; padding: 12px 20px; border-top: 1px solid var(--o-line); font-size: 12px; color: var(--o-muted); background: var(--o-hover); }

.o-thread { padding: 10px 16px 8px; border-bottom: 1px solid var(--o-line-2); }
.o-thread:last-child { border-bottom: 0; }
.o-thread__replies { margin: 4px 0 0 38px; padding-left: 10px; border-left: 2px solid var(--o-line-2); }
.o-thread__reply { margin: 2px 0 0 38px; }
.o-thread__reply > summary { display: inline-block; padding: 2px 0; font: 400 10px/1.4 var(--o-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--o-faint); list-style: none; cursor: pointer; }
.o-thread__reply > summary::-webkit-details-marker { display: none; }
.o-thread__reply > summary:hover { color: var(--o-ink); }
.o-thread__reply[open] > summary { display: none; }

.o-comment { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; }
.o-comment__face { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.o-comment__face--initials { display: flex; align-items: center; justify-content: center; background: #3a3c3f; color: #fbfbf9; font: 400 10px/1 var(--o-mono); letter-spacing: 0.04em; }
.o-thread__replies .o-comment__face { width: 22px; height: 22px; font-size: 9px; }
.o-comment__main { flex: 1 1 auto; min-width: 0; }
.o-comment__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; }
.o-comment__name { font-size: 13px; font-weight: 700; color: var(--o-ink); }
.o-comment__tag { font: 400 9px/1.4 var(--o-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--o-accent); }
.o-comment__time { font: 400 10px/1.4 var(--o-mono); letter-spacing: 0.04em; color: var(--o-faint); }
.o-comment__body { margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--o-body); overflow-wrap: anywhere; }
.o-comment__tools { margin-top: 2px; }
.o-comment__delete { padding: 0; border: 0; background: none; font: 400 10px/1.4 var(--o-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--o-faint); cursor: pointer; }
.o-comment__delete:hover { color: var(--o-danger); }
.o-comment--deleted { padding: 4px 0; }
.o-comment__gone { margin: 0; font-size: 12px; font-style: italic; color: var(--o-faint); }

/* ------------------------------------------------------ artifact cards */

/* The dashboards' artifacts (artifact/_card.html.twig): a 16:10 thumbnail,
   the client's brand colour behind the title's initials when there is no
   picture, and the title and description under it. The whole card is the link. */
.o-acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.o-acards > .o-row--empty { grid-column: 1 / -1; }
.o-acard { display: flex; flex-direction: column; min-width: 0; background: var(--o-surface); border: 1px solid var(--o-line); border-radius: var(--o-radius-card); overflow: hidden; color: var(--o-ink); text-decoration: none; transition: border-color 0.1s, box-shadow 0.1s; }
.o-acard:hover { border-color: #cfcfc8; box-shadow: 0 6px 18px rgba(23, 24, 26, 0.08); color: var(--o-ink); }
.o-acard__thumb { --o-acard-tint: var(--o-ink); position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--o-acard-tint); border-bottom: 1px solid var(--o-line-2); overflow: hidden; }
.o-acard__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.o-acard__initials { font: 700 34px/1 var(--o-mono); letter-spacing: 0.02em; color: #ffffff; opacity: 0.92; mix-blend-mode: difference; }
.o-acard__badge { position: absolute; top: 10px; left: 10px; }
/* A video's length, where a player would put it. */
.o-acard__length { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: var(--o-radius); background: rgba(0, 0, 0, 0.72); color: #ffffff; font: 400 11px/1 var(--o-mono); letter-spacing: 0.04em; }
.o-acard__length::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent currentColor; }
.o-acard__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.o-acard__client { margin: 0; font: 400 10px/1.4 var(--o-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--o-faint); }
.o-acard__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.o-acard:hover .o-acard__title { text-decoration: underline; text-underline-offset: 3px; }
.o-acard__desc { margin: 0; font-size: 13px; line-height: 1.45; color: var(--o-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.o-acard__meta { margin: 4px 0 0; font: 400 10px/1.4 var(--o-mono); letter-spacing: 0.06em; color: var(--o-faint); }
