/*
 * The building blocks of the look (TASK 12, 14.11.2026): one file for every page, so that no page keeps
 * its own copy of the look's colours again. The owner, 14.11.2026 19:07: "czy bedziemy korzystac z tego
 * samego pliku co production i reszta? zeby znowu kazda strona nie miala swojej kolorystyki".
 *
 * WHAT IS HERE. The bar, the buttons (plain, primary in the gold gradient, gold-bordered, chosen, danger,
 * small, icon-only), the large search, the switch of two to five choices, the pick button's panel (its
 * list visible at once with a search box over it, rule 6.3), the menu (TASK 14), the tabs, the tiles with a coloured left
 * edge, the pills, the table, the list of row blocks, the section label, the two-column facts, the action
 * tile, the meter, the empty card, jcu-frame (a panel with the rim and glow of the Details window) and
 * jcu-win (the same frame on a standard .modal, put on by js/jc-ui.js). Sizes and values are those of the
 * approved mockups (docs/mockups/task-12/kit.css and vivid.css).
 *
 * WHO SEES IT. Every rule starts with "html.jcu". Only a page's view script sets that class on <html>,
 * as its last step, for a company on the early list (window.jcEarly === true). A page without the class
 * is drawn exactly as before this file existed.
 *
 * COLOURS BY NAME ONLY. Every colour is a var(--name) of css/styles.css :root; css/look-skylon.css gives
 * the Skylon values where they differ. The one exception is the block between JCU-FRAME-START and
 * JCU-FRAME-END: the rim and the glow of the Details window, copied from js/project-details-look.js.
 * The page keeps its own font (css/styles.css).
 */

/* ---------- the icons (inline SVG from js/jc-ui.js) ---------- */
html.jcu .jcu-ic {
    display: block;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}
html.jcu .jcu-ic-s { width: 13px; height: 13px; }
html.jcu .jcu-ic-l { width: 20px; height: 20px; }

/* ---------- the bar and its parts ---------- */
html.jcu .jcu-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    min-height: 58px;
    padding: 11px 16px;
    background: var(--jc-bar);
    border-bottom: 1px solid var(--jc-line);
    color: var(--jc-text-strong);
}
html.jcu .jcu-bar-2 { min-height: 54px; background: var(--jc-head); }
html.jcu .jcu-grow { flex: 1 1 0; min-width: 0; }
html.jcu .jcu-sep {
    flex: 0 0 auto;
    width: 1px;
    height: 26px;
    margin: 0 6px;
    background: var(--jc-line-strong);
}
html.jcu .jcu-lab {
    margin: 0 2px;
    font-size: 13px;
    color: var(--jc-text-soft);
    white-space: nowrap;
}

/* ---------- the buttons ---------- */
html.jcu .jcu-btn {
    flex: 0 0 auto;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--jc-control-line);
    border-radius: 5px;
    background: var(--jc-control);
    color: var(--jc-text-strong);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
html.jcu .jcu-btn:hover { background: var(--jc-control-hover); }
html.jcu .jcu-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
html.jcu .jcu-btn:disabled { opacity: .5; cursor: default; }
html.jcu .jcu-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold-lightest); }
html.jcu .jcu-btn-pri,
html.jcu .jcu-btn-pri:hover {
    border-color: var(--jc-gold-pale);
    background: linear-gradient(135deg, var(--jc-gold-1) 0%, var(--jc-gold-2) 45%, var(--jc-gold-3) 100%);
    color: var(--jc-on-gold);
    font-weight: 700;
    box-shadow: 0 0 12px var(--jc-gold-glow);
}
html.jcu .jcu-btn-pri:hover { filter: brightness(1.05); }
html.jcu .jcu-btn-gb {
    border-color: var(--gold-dark);
    background: var(--jc-gold-wash);
    color: var(--jc-gold-pale);
}
html.jcu .jcu-btn-gb:hover { border-color: var(--gold); background: var(--jc-gold-wash); color: var(--gold-lightest); }
html.jcu .jcu-btn-on,
html.jcu .jcu-btn-on:hover {
    border-color: var(--gold);
    background: var(--jc-chosen);
    color: var(--gold-lightest);
}
html.jcu .jcu-btn-danger {
    border-color: var(--jc-danger-line);
    background: var(--jc-danger-wash);
    color: var(--jc-danger-text);
}
html.jcu .jcu-btn-danger:hover { background: var(--jc-danger-wash); border-color: var(--jc-danger-text); }
html.jcu .jcu-btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
html.jcu .jcu-btn-sq { width: 34px; padding: 0; }
html.jcu .jcu-btn-sm.jcu-btn-sq { width: 28px; }
html.jcu .jcu-btn-sm .jcu-ic { width: 14px; height: 14px; }

/* ---------- the large search ---------- */
html.jcu .jcu-search {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 420px;
    min-width: 0;
    max-width: 640px;
    height: 40px;
    padding: 0 8px 0 12px;
    border: 1px solid var(--jc-field-line);
    border-radius: 7px;
    background: var(--jc-ground);
    color: var(--jc-text-muted);
}
html.jcu .jcu-search:focus-within { border-color: var(--gold); }
html.jcu .jcu-search > .jcu-ic { width: 18px; height: 18px; color: var(--gold-light); }
html.jcu .jcu-search input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--jc-text-strong);
    font-family: inherit;
    font-size: 15px;
}
html.jcu .jcu-search input::placeholder { color: var(--jc-text-muted); opacity: 1; }
html.jcu .jcu-search-x {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--jc-text-muted);
    cursor: pointer;
}
html.jcu .jcu-search-x:hover { background: var(--jc-control); color: var(--jc-text-strong); }
html.jcu .jcu-search-x[hidden] { display: none; }

/* ---------- the switch of two to five choices ---------- */
html.jcu .jcu-seg {
    flex: 0 0 auto;
    display: inline-flex;
    max-width: 100%;
    border: 1px solid var(--jc-line-strong);
    border-radius: 6px;
    background: var(--jc-panel);
    overflow: hidden;
}
html.jcu .jcu-seg > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    margin: 0;
    padding: 0 14px;
    border: none;
    border-right: 1px solid var(--jc-line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--jc-text);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
html.jcu .jcu-seg > button:last-child { border-right: none; }
html.jcu .jcu-seg > button:hover { background: var(--jc-control); }
html.jcu .jcu-seg > button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
html.jcu .jcu-seg > button[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--jc-gold-1) 0%, var(--jc-gold-2) 45%, var(--jc-gold-3) 100%);
    color: var(--jc-on-gold);
    font-weight: 700;
}
html.jcu .jcu-seg em {
    font-style: normal;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--jc-text-muted);
}
html.jcu .jcu-seg > button[aria-pressed="true"] em { color: var(--jc-on-gold-soft); }

/* ---------- the pick button's panel ---------- */
html.jcu .jcu-pick-panel {
    position: fixed;
    z-index: 10050;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 24px);
    border: 1px solid var(--jc-line-strong);
    border-radius: 7px;
    background: var(--jc-panel);
    box-shadow: 0 14px 34px var(--jc-shadow);
    color: var(--jc-text);
    overflow: hidden;
}
html.jcu .jcu-pick-head {
    padding: 8px;
    border-bottom: 1px solid var(--jc-line);
}
html.jcu .jcu-pick-head input {
    box-sizing: border-box;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--jc-field-line);
    border-radius: 5px;
    background: var(--jc-ground);
    color: var(--jc-text-strong);
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
}
html.jcu .jcu-pick-head input:focus { border-color: var(--gold); }
html.jcu .jcu-pick-head input::placeholder { color: var(--jc-text-muted); opacity: 1; }
html.jcu .jcu-pick-list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px;
    overflow-y: auto;
}
html.jcu .jcu-pick-opt {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 4px 10px;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: var(--jc-text);
    font-family: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}
html.jcu .jcu-pick-opt:hover,
html.jcu .jcu-pick-opt:focus-visible { background: var(--jc-control); outline: none; }
html.jcu .jcu-pick-opt[aria-selected="true"] { background: var(--jc-chosen); color: var(--gold-lightest); font-weight: 600; }
html.jcu .jcu-pick-opt > span:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
html.jcu .jcu-pick-opt em {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 12px;
    color: var(--jc-text-muted);
}
html.jcu .jcu-pick-none {
    padding: 10px;
    font-size: 13px;
    color: var(--jc-text-muted);
}

/* ---------- the menu: a short list of actions under a button (TASK 14, js/jc-ui.js menu) ---------- */
html.jcu .jcu-menu { min-width: 240px; }
html.jcu .jcu-menu .jcu-pick-list { padding: 6px; }
html.jcu .jcu-menu-head {
    padding: 7px 10px 3px;
    color: var(--jc-text-dim);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
}
html.jcu .jcu-menu-item { min-height: 34px; gap: 10px; font-weight: 500; }
html.jcu .jcu-menu-item > .jcu-ic { color: var(--jc-gold-icon); }
html.jcu .jcu-menu-item > img { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 3px; }
html.jcu .jcu-menu-item > .jcu-menu-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
html.jcu .jcu-menu-danger,
html.jcu .jcu-menu-danger > .jcu-ic { color: var(--jc-danger-text); }

/* ---------- the tabs ---------- */
html.jcu .jcu-tabs {
    display: flex;
    gap: 2px;
    padding: 0 16px;
    background: var(--jc-bar);
    border-bottom: 1px solid var(--jc-line);
    overflow-x: auto;
}
html.jcu .jcu-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    margin: 0;
    padding: 0 14px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--jc-text-soft);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
html.jcu .jcu-tab:hover { color: var(--jc-text-strong); }
html.jcu .jcu-tab:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
html.jcu .jcu-tab[aria-selected="true"] {
    border-bottom-color: var(--gold-light);
    color: var(--jc-text-strong);
    font-weight: 700;
}
html.jcu .jcu-tab em {
    padding: 1px 7px;
    border: 1px solid var(--gold-dark);
    border-radius: 9px;
    background: var(--jc-chosen);
    color: var(--gold-lightest);
    font-style: normal;
    font-size: 11.5px;
    font-weight: 700;
}

/* ---------- the tiles ---------- */
html.jcu .jcu-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}
html.jcu .jcu-tile {
    box-sizing: border-box;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--jc-line);
    border-left: 4px solid var(--jc-line-strong);
    border-radius: 7px;
    background: var(--jc-panel);
}
html.jcu .jcu-tile-k {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--jc-text-soft);
}
html.jcu .jcu-tile-v {
    margin-top: 5px;
    font-size: 22px;
    font-weight: 700;
    color: var(--jc-text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.jcu .jcu-tile-v small {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--jc-text-muted);
}
html.jcu .jcu-tile-gold { border-left-color: var(--gold-light); }
html.jcu .jcu-tile-gold .jcu-tile-v { color: var(--gold-lightest); }
html.jcu .jcu-tile-bad { border-left-color: var(--jc-alarm); }
html.jcu .jcu-tile-bad .jcu-tile-v { color: var(--jc-danger-text); }
html.jcu .jcu-tile-warn { border-left-color: var(--jc-warn-line); }
html.jcu .jcu-tile-warn .jcu-tile-v { color: var(--jc-warn-text); }
html.jcu .jcu-tile-good { border-left-color: var(--jc-good); }
html.jcu .jcu-tile-good .jcu-tile-v { color: var(--jc-good-text); }

/* ---------- the pills ---------- */
html.jcu .jcu-pill {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border: 1px solid var(--jc-line-strong);
    border-radius: 12px;
    background: var(--jc-control);
    color: var(--jc-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
html.jcu .jcu-pill .jcu-ic { width: 13px; height: 13px; }
html.jcu .jcu-pill-ok { border-color: var(--jc-ok-line); background: var(--jc-ok-ground); color: var(--jc-ok-text); }
html.jcu .jcu-pill-warn { border-color: var(--jc-warn-line); background: var(--jc-warn-ground); color: var(--jc-warn-text); }
html.jcu .jcu-pill-bad { border-color: var(--jc-bad-line); background: var(--jc-bad-ground); color: var(--jc-bad-text); }
html.jcu .jcu-pill-gold { border-color: var(--gold); background: var(--jc-gold-ground); color: var(--gold-lightest); }
html.jcu .jcu-pill-blue { border-color: var(--jc-info-line); background: var(--jc-info-ground); color: var(--jc-info-text); }
/* TASK 45 (17.11.2026): a pill inside a row of a list is smaller than a pill elsewhere; the rows stand 11px
   apart (.jcu-list) and the action tiles 12px (.jcu-acts), so nothing in a list reads as one wall */
html.jcu .jcu-row .jcu-pill { height: 20px; padding: 0 8px; font-size: 11px; font-weight: 600; }

/* ---------- the table ---------- */
html.jcu .jcu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
html.jcu .jcu-table th {
    height: 40px;
    padding: 0 12px;
    background: var(--jc-bar);
    border-bottom: 1px solid var(--jc-line-strong);
    color: var(--jc-text-strong);
    font-size: 12.5px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}
html.jcu .jcu-table td {
    height: 44px;
    padding: 0 12px;
    border-bottom: 1px solid var(--jc-line-soft);
    color: var(--jc-text-strong);
    white-space: nowrap;
}
html.jcu .jcu-table .jcu-r { text-align: right; }
html.jcu .jcu-table tbody tr[tabindex] { cursor: pointer; }
html.jcu .jcu-table tbody tr[tabindex]:hover td { background: var(--jc-control); }
html.jcu .jcu-table tbody tr[tabindex]:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
html.jcu .jcu-table tbody tr.jcu-sel td,
html.jcu .jcu-table tbody tr.jcu-sel:hover td { background: var(--jc-chosen); }
html.jcu .jcu-table tr.jcu-sel td:first-child { box-shadow: inset 4px 0 0 var(--gold-light); }
html.jcu .jcu-table tr.jcu-total td {
    background: var(--jc-bar);
    border-top: 2px solid var(--gold-dark);
    border-bottom: none;
    font-weight: 700;
}

/* ---------- the list of row blocks ---------- */
html.jcu .jcu-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    min-width: 0;
}
html.jcu .jcu-group {
    display: flex;
    align-items: flex-end;
    height: 28px;
    padding: 0 4px 6px;
    box-sizing: border-box;
    color: var(--gold-lightest);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
html.jcu .jcu-row {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--jc-line-soft);
    border-radius: 6px;
    background: var(--jc-panel);
    color: var(--jc-text-strong);
    font-family: inherit;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
}
html.jcu .jcu-row:hover { border-color: var(--jc-line-strong); }
html.jcu .jcu-row:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 1px; }
html.jcu .jcu-row[aria-current="true"] {
    border-color: var(--gold);
    background: var(--jc-chosen);
    box-shadow: inset 4px 0 0 var(--gold-light);
}
html.jcu .jcu-row-edge {
    flex: 0 0 auto;
    width: 5px;
    height: 34px;
    border-radius: 2px;
    background: var(--jc-line-strong);
}
html.jcu .jcu-row-edge.jcu-edge-ok { background: var(--jc-ok-edge); }
html.jcu .jcu-row-edge.jcu-edge-warn { background: var(--jc-warn-edge); }
html.jcu .jcu-row-edge.jcu-edge-bad { background: var(--jc-bad-edge); }
html.jcu .jcu-row-main { flex: 1 1 auto; min-width: 0; }
html.jcu .jcu-row-title {
    display: block;
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.jcu .jcu-row-title b { font-weight: 700; }
html.jcu .jcu-row-title span { margin-left: 8px; }
html.jcu .jcu-row-sub {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--jc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.jcu .jcu-type { font-style: normal; color: var(--jc-type-text); }
html.jcu .jcu-row-side {
    flex: 0 0 auto;
    min-width: 92px;
    font-size: 12.5px;
    color: var(--jc-text-soft);
    text-align: right;
    white-space: nowrap;
}

/* ---------- the section label, the facts, the notes ---------- */
html.jcu .jcu-sec {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0;
    color: var(--gold-lightest);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
html.jcu .jcu-sec::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--jc-line-strong);
}
html.jcu .jcu-facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 26px;
}
html.jcu .jcu-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--jc-line-soft);
    font-size: 13.5px;
}
html.jcu .jcu-kv > :first-child { flex: 0 0 auto; color: var(--jc-text-muted); }
html.jcu .jcu-kv > :last-child {
    min-width: 0;
    color: var(--jc-text-strong);
    text-align: right;
    overflow-wrap: anywhere;
}
html.jcu .jcu-kv .jcu-dim,
html.jcu .jcu-dim { color: var(--jc-text-dim); }
html.jcu .jcu-tag {
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid var(--jc-line-strong);
    border-radius: 8px;
    color: var(--jc-text-muted);
    font-size: 10.5px;
    font-weight: 400;
    white-space: nowrap;
}
html.jcu .jcu-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: -1px;
    background: var(--jc-line-strong);
}
html.jcu .jcu-note {
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--jc-line);
    border-radius: 7px;
    background: var(--jc-panel);
    color: var(--jc-text-strong);
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* ---------- the action tile ---------- */
html.jcu .jcu-acts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
html.jcu .jcu-act {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 60px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--jc-line);
    border-radius: 7px;
    background: var(--jc-panel);
    color: var(--jc-text-strong);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
html.jcu .jcu-act:hover { border-color: var(--jc-line-strong); background: var(--jc-control); }
html.jcu .jcu-act:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
html.jcu .jcu-act > .jcu-ic { width: 22px; height: 22px; color: var(--jc-gold-icon); }
html.jcu .jcu-act > span { min-width: 0; }
html.jcu .jcu-act small {
    display: block;
    margin-top: 1px;
    color: var(--jc-text-muted);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.jcu .jcu-act-danger { border-color: var(--jc-danger-line); color: var(--jc-danger-text); }
html.jcu .jcu-act-danger:hover { border-color: var(--jc-danger-text); background: var(--jc-danger-wash); }
html.jcu .jcu-act-danger > .jcu-ic { color: var(--jc-danger-text); }
html.jcu .jcu-act-danger small { color: var(--jc-danger-soft); }

/* ---------- the meter ---------- */
html.jcu .jcu-meter {
    min-width: 40px;
    height: 7px;
    border-radius: 4px;
    background: var(--jc-line-soft);
    overflow: hidden;
}
html.jcu .jcu-meter > i {
    display: block;
    height: 100%;
    background: var(--jc-good);
}
html.jcu .jcu-meter-warn > i { background: var(--jc-warn-line); }
html.jcu .jcu-meter-bad > i { background: var(--jc-bad-line); }

/* ---------- the empty card ---------- */
html.jcu .jcu-empty {
    box-sizing: border-box;
    max-width: 460px;
    margin: 30px auto;
    padding: 26px 24px;
    border: 1px solid var(--jc-line);
    border-radius: 12px;
    background: var(--jc-panel);
    text-align: center;
}
html.jcu .jcu-empty > .jcu-ic { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--gold); }
html.jcu .jcu-empty h3 { margin: 0; color: var(--jc-text-strong); font-size: 19px; font-weight: 700; }
html.jcu .jcu-empty p { margin: 8px 0 16px; color: var(--jc-text-muted); font-size: 13.5px; line-height: 1.45; }
html.jcu .jcu-empty p:last-child { margin-bottom: 0; }

/* ---------- jcu-frame: a panel in the window's frame ---------- */
html.jcu .jcu-frame-in {
    position: relative;
    border-radius: 10px;
    background: var(--jc-ground);
    overflow: hidden;
}
html.jcu .jcu-frame-head {
    padding: 14px 18px;
    background: var(--jc-head);
    border-bottom: 1px solid var(--jc-line);
}
html.jcu .jcu-frame-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 18px;
}

/* ---------- jcu-win: the frame on a window ---------- */
/* js/jc-ui.js win() puts it on a window: a standard .modal (its box .modal-content) or an overlay whose box is a
   .modal-container. A window whose box has a header, a body and a footer gets the Details window's recipe: the
   box becomes the rim (2px), the header, body and footer its strips; it does not scroll itself (a scrolling box
   would cut its own glow): it is a column capped to the screen and only the body shrinks and scrolls. A window
   whose box has no .modal-body gets jcu-win-plain: the rim is drawn round its box and its inside flows as before.
   Windows write inline grounds, borders and padding, and js/menu.js writes the header's padding and the X
   button's style, so those lines need !important (the way of js/project-details-look.js and js/phase-bars.js). */
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-content,
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-container {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 2px !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: visible;
    color: var(--jc-text-strong);
}
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-content > *,
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-container > * { flex: 0 0 auto; }
html.jcu .jcu-win .modal-header {
    position: relative;
    margin: 0 !important;
    padding: 11px 46px 11px 16px !important;
    border-bottom: 1px solid var(--jc-line);
    border-radius: 10px 10px 0 0;
    background: var(--jc-head);
    color: var(--jc-text-strong);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.25;
}
html.jcu .jcu-win .modal-header .jc-modal-x {
    position: absolute !important;
    top: 50% !important;
    right: 9px !important;
    transform: translateY(-50%);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    padding: 0 !important;
    border: 1px solid var(--jc-line) !important;
    border-radius: 5px;
    background: none !important;
    color: var(--jc-text) !important;
    font-size: 13px !important;
}
html.jcu .jcu-win .modal-header .jc-modal-x:hover { border-color: var(--gold) !important; color: var(--jc-text-strong) !important; }
html.jcu .jcu-win > .modal-content > .modal-body,
html.jcu .jcu-win > .modal-container > .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 16px;
    background: var(--jc-ground);
    overflow-y: auto;
}
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-content > :last-child,
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-container > :last-child { border-radius: 0 0 10px 10px; }
html.jcu .jcu-win .modal-footer {
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid var(--jc-line-soft);
    background: var(--jc-head);
}
html.jcu .jcu-win.jcu-win-plain > .modal-content,
html.jcu .jcu-win.jcu-win-plain > .modal-container {
    position: relative;
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    overflow-y: auto;
    color: var(--jc-text-strong);
}

/* JCU-FRAME-START: the rim and the glow of the Details window (K2's one exception). The rim gradient and
   the window's shadows are copied from js/project-details-look.js; the panel's glow above its top edge is
   the approved mockup's (docs/mockups/task-12/vivid.css .frame::before). */
html.jcu .jcu-frame {
    position: relative;
    box-sizing: border-box;
    padding: 2px;
    border-radius: 12px;
    background: linear-gradient(180deg,#ffe0a4 0,#efbf6b 2px,#8d7956 6px,#485154 20px,#485154 calc(100% - 3px),#756c54 100%);
    box-shadow: 0 -1px 5px rgba(238,193,123,.63),0 -2px 14px rgba(237,185,87,.20),0 0 0 1px rgba(0,0,0,.6),0 10px 30px rgba(0,0,0,.45);
}
html.jcu .jcu-frame::before {
    content: "";
    position: absolute;
    left: 8%;
    right: 8%;
    top: -34px;
    height: 60px;
    pointer-events: none;
    background: radial-gradient(ellipse 30% 30px at 50% 34px,rgba(255,178,66,.50) 0%,rgba(255,174,62,.20) 45%,rgba(255,170,58,0) 100%),radial-gradient(ellipse 50% 56px at 50% 34px,rgba(255,174,60,.16) 0%,rgba(255,170,56,0) 100%);
}
html.jcu .jcu-frame::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,240,203,.56);
}
html.jcu .modal.jcu-win { background: rgba(5,8,10,.78); }
html.jcu .jcu-win > .modal-content,
html.jcu .jcu-win > .modal-container {
    box-shadow: 0 -1px 5px rgba(238,193,123,.63),0 -2px 14px rgba(237,185,87,.13),0 0 0 1px rgba(0,0,0,.6),0 2px 5px rgba(0,0,0,.33),0 0 30px 14px rgba(205,150,58,.115),0 0 90px 30px rgba(205,150,58,.03),0 14px 44px 4px rgba(0,0,0,.55);
}
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-content,
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-container { background: linear-gradient(180deg,#ffe0a4 0,#efbf6b 2px,#8d7956 6px,#485154 20px,#485154 calc(100% - 3px),#756c54 100%) !important; }
html.jcu .jcu-win.jcu-win-plain > .modal-content,
html.jcu .jcu-win.jcu-win-plain > .modal-container {
    background: linear-gradient(var(--jc-ground), var(--jc-ground)) padding-box, linear-gradient(180deg,#ffe0a4 0,#efbf6b 2px,#8d7956 6px,#485154 20px,#485154 calc(100% - 3px),#756c54 100%) border-box !important;
}
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-content::before,
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-container::before {
    content: "";
    position: absolute;
    left: -30%;
    right: -30%;
    top: 100%;
    height: 150px;
    pointer-events: none;
    background: linear-gradient(to bottom,rgba(3,4,3,.50) 0%,rgba(3,4,3,.84) 10%,rgba(3,4,3,.97) 24%,rgba(3,4,3,.95) 40%,rgba(3,4,3,.70) 60%,rgba(3,4,3,.22) 82%,rgba(3,4,3,0) 100%) no-repeat 50% 0 / calc(62.5% - 20px) 10px,radial-gradient(ellipse 13.9% 37px at 50% 9px,rgba(255,178,66,.62) 0%,rgba(255,176,64,.55) 11%,rgba(255,174,62,.27) 34%,rgba(255,172,60,.09) 60%,rgba(255,170,58,0) 100%),radial-gradient(ellipse 36.7% 92px at 50% 9px,rgba(255,174,60,.20) 0%,rgba(255,172,58,.155) 18%,rgba(255,170,56,.09) 42%,rgba(255,168,54,.036) 70%,rgba(255,166,52,0) 100%),radial-gradient(ellipse 46px 26px at calc(18.75% + 10px) 6px,rgba(255,176,70,.13) 0%,rgba(255,176,70,0) 100%);
}
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-content::after,
html.jcu .jcu-win:not(.jcu-win-plain) > .modal-container::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255,240,203,.56);
}
@media (max-width: 767px) {
    html.jcu .jcu-frame { box-shadow: 0 0 0 1px rgba(0,0,0,.6),0 2px 5px rgba(0,0,0,.33); }
    html.jcu .jcu-win > .modal-content,
    html.jcu .jcu-win > .modal-container { max-width: calc(100vw - 16px); box-shadow: 0 0 0 1px rgba(0,0,0,.6),0 2px 5px rgba(0,0,0,.33); }
}
/* JCU-FRAME-END */

/* ---------- the phone: no glow, the frame only ---------- */
@media (max-width: 767px) {
    html.jcu .jcu-frame::before,
    html.jcu .jcu-win > .modal-content::before,
    html.jcu .jcu-win > .modal-container::before { display: none; }
    html.jcu .jcu-bar { padding: 10px 12px; gap: 8px; }
    html.jcu .jcu-search { flex-basis: 100%; max-width: none; order: 10; }
    html.jcu .jcu-facts { grid-template-columns: minmax(0, 1fr); }
    html.jcu .jcu-acts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    html.jcu .jcu-pick-panel { left: 8px !important; right: 8px !important; max-width: none; }
}

/* ---------- TASK 13 (the Team page): the blocks it needs that this file lacked ---------- */
/* Added, not changed: none of these classes is on the Archive page, which renders as before. */

/* the initials of a person in a circle of their own colour; the colour comes from the data, set on the
   element, and js/jc-ui.js inkOn() decides the ink: jcu-ini-dark on a light colour, white on a dark one */
html.jcu .jcu-ini {
    flex: 0 0 auto;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--jc-line-strong);
    color: var(--jc-text-strong);
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .2px;
    box-shadow: 0 0 0 2px var(--jc-shadow);
}
html.jcu .jcu-ini-dark { color: var(--jc-on-gold); }
html.jcu .jcu-ini-l { width: 58px; height: 58px; font-size: 21px; }

/* a small filled gold tag beside a pill (the account's accounting access) */
html.jcu .jcu-tag-gold {
    border-color: var(--gold-light);
    background: var(--gold-light);
    color: var(--jc-on-gold);
    font-weight: 800;
}

/* a mark with a tick box that shows a setting's state; a button when it opens the place to change it */
html.jcu .jcu-tick {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--jc-line);
    border-radius: 6px;
    background: var(--jc-panel);
    color: var(--jc-text-strong);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
html.jcu button.jcu-tick { cursor: pointer; }
html.jcu button.jcu-tick:hover { border-color: var(--jc-line-strong); }
html.jcu .jcu-tick:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
html.jcu .jcu-tick > i {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--jc-field-line);
    border-radius: 4px;
    font-style: normal;
}
html.jcu .jcu-tick > i .jcu-ic { width: 12px; height: 12px; stroke-width: 3; }
html.jcu .jcu-tick-on { border-color: var(--gold); color: var(--gold-lightest); }
html.jcu .jcu-tick-on > i { border-color: var(--gold-light); background: var(--gold-light); color: var(--jc-on-gold); }
html.jcu .jcu-tick-unknown { color: var(--jc-text-dim); }

/* a strip with a coloured left edge: a closed section, a warning before an action */
html.jcu .jcu-notice {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--jc-line);
    border-left: 4px solid var(--jc-warn-line);
    border-radius: 7px;
    background: var(--jc-panel);
    color: var(--jc-text-strong);
    font-size: 13.5px;
    line-height: 1.5;
}
html.jcu .jcu-notice > .jcu-ic { width: 20px; height: 20px; color: var(--jc-warn-text); }
html.jcu .jcu-notice small { display: block; color: var(--jc-text-muted); font-size: 12.5px; }
html.jcu .jcu-notice-k { color: var(--jc-warn-text); font-weight: 700; }

/* a card with a coloured top edge and a tinted head: the sections of a window; the colour is one of six names */
html.jcu .jcu-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 0 12px 3px;
    border: 1px solid var(--jc-line);
    border-top: 3px solid var(--jc-line-strong);
    border-radius: 8px;
    background: var(--jc-panel);
}
html.jcu .jcu-card-head {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    margin: 0 -12px 12px;
    padding: 0 12px;
    border-bottom: 1px solid var(--jc-line);
    border-radius: 5px 5px 0 0;
    background: var(--jc-panel);
    color: var(--jc-text-strong);
    font-size: 14.5px;
    font-weight: 700;
}
html.jcu .jcu-card-head > i {
    flex: 0 0 auto;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--jc-line-strong);
    border-radius: 7px;
    background: var(--jc-ground);
    font-style: normal;
}
html.jcu .jcu-card-head > i .jcu-ic { width: 17px; height: 17px; stroke-width: 2.3; }
html.jcu .jcu-card-head .jcu-tag { margin-left: auto; }
html.jcu .jcu-card-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 9px;
    color: var(--jc-warn-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
html.jcu .jcu-card-sub::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--jc-line-strong); }
html.jcu .jcu-card-sub .jcu-tag { order: 2; margin-left: 0; letter-spacing: .2px; text-transform: none; }
html.jcu .jcu-card-basic { border-top-color: var(--jc-card-basic); }
html.jcu .jcu-card-basic > .jcu-card-head { background: linear-gradient(90deg, color-mix(in srgb, var(--jc-card-basic) 22%, var(--jc-panel)), var(--jc-panel) 70%); }
html.jcu .jcu-card-basic > .jcu-card-head > i { border-color: var(--jc-card-basic); background: color-mix(in srgb, var(--jc-card-basic) 30%, var(--jc-ground)); color: var(--jc-card-basic); }
html.jcu .jcu-card-emergency { border-top-color: var(--jc-card-emergency); }
html.jcu .jcu-card-emergency > .jcu-card-head { background: linear-gradient(90deg, color-mix(in srgb, var(--jc-card-emergency) 22%, var(--jc-panel)), var(--jc-panel) 70%); }
html.jcu .jcu-card-emergency > .jcu-card-head > i { border-color: var(--jc-card-emergency); background: color-mix(in srgb, var(--jc-card-emergency) 30%, var(--jc-ground)); color: var(--jc-card-emergency); }
html.jcu .jcu-card-employment { border-top-color: var(--jc-card-employment); }
html.jcu .jcu-card-employment > .jcu-card-head { background: linear-gradient(90deg, color-mix(in srgb, var(--jc-card-employment) 22%, var(--jc-panel)), var(--jc-panel) 70%); }
html.jcu .jcu-card-employment > .jcu-card-head > i { border-color: var(--jc-card-employment); background: color-mix(in srgb, var(--jc-card-employment) 30%, var(--jc-ground)); color: var(--jc-card-employment); }
html.jcu .jcu-card-dates { border-top-color: var(--jc-card-dates); }
html.jcu .jcu-card-dates > .jcu-card-head { background: linear-gradient(90deg, color-mix(in srgb, var(--jc-card-dates) 22%, var(--jc-panel)), var(--jc-panel) 70%); }
html.jcu .jcu-card-dates > .jcu-card-head > i { border-color: var(--jc-card-dates); background: color-mix(in srgb, var(--jc-card-dates) 30%, var(--jc-ground)); color: var(--jc-card-dates); }
html.jcu .jcu-card-sensitive { border-top-color: var(--jc-card-sensitive); }
html.jcu .jcu-card-sensitive > .jcu-card-head { background: linear-gradient(90deg, color-mix(in srgb, var(--jc-card-sensitive) 22%, var(--jc-panel)), var(--jc-panel) 70%); }
html.jcu .jcu-card-sensitive > .jcu-card-head > i { border-color: var(--jc-card-sensitive); background: color-mix(in srgb, var(--jc-card-sensitive) 30%, var(--jc-ground)); color: var(--jc-card-sensitive); }
html.jcu .jcu-card-notes { border-top-color: var(--jc-card-notes); }
html.jcu .jcu-card-notes > .jcu-card-head { background: linear-gradient(90deg, color-mix(in srgb, var(--jc-card-notes) 22%, var(--jc-panel)), var(--jc-panel) 70%); }
html.jcu .jcu-card-notes > .jcu-card-head > i { border-color: var(--jc-card-notes); background: color-mix(in srgb, var(--jc-card-notes) 30%, var(--jc-ground)); color: var(--jc-card-notes); }

/* a filled danger button, for the last step of an action that cannot be undone */
html.jcu .jcu-btn-bad,
html.jcu .jcu-btn-bad:hover {
    border-color: var(--jc-bad-line);
    background: var(--jc-bad-ground);
    color: var(--jc-bad-text);
}
html.jcu .jcu-btn-bad:hover { filter: brightness(1.12); }
html.jcu .jcu-btn-bad:disabled { filter: none; }
