/* Onboarding pages — shared styles, ob- prefixed (the Acquisitions page vocabulary, which began as
   this service's checklist look). One plain stylesheet rather than per-component CSS isolation, so
   the rail, the staff pages and the customer surface share one set of status shapes and tones. */

/* ── Status tones: theme-aware; icons, badges and counts take their colour from these ── */
:root {
    --ob-tone-done: #1b7f3b;
    --ob-tone-ready: #3b6ea5;
    --ob-tone-progress: #6f42c1;
    --ob-tone-failed: #b3261e;
    --ob-tone-unknown: #b26b00;
    --ob-tone-muted: #7a8793;
}

:root[data-theme='dark'] {
    --ob-tone-done: #5cc98a;
    --ob-tone-ready: #7fb2e5;
    --ob-tone-progress: #b79cf0;
    --ob-tone-failed: #ff8a80;
    --ob-tone-unknown: #ffc46b;
    --ob-tone-muted: #8ba1b3;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --ob-tone-done: #5cc98a;
        --ob-tone-ready: #7fb2e5;
        --ob-tone-progress: #b79cf0;
        --ob-tone-failed: #ff8a80;
        --ob-tone-unknown: #ffc46b;
        --ob-tone-muted: #8ba1b3;
    }
}

.ob-tone-done, .ob-tone-manual { color: var(--ob-tone-done); }
.ob-tone-ready, .ob-tone-notstarted { color: var(--ob-tone-ready); }
.ob-tone-inprogress { color: var(--ob-tone-progress); }
.ob-tone-failed { color: var(--ob-tone-failed); }
.ob-tone-unknown { color: var(--ob-tone-unknown); }
.ob-tone-blocked, .ob-tone-notapplicable, .ob-tone-skipped { color: var(--ob-tone-muted); }

.ob-status-active { color: var(--ob-tone-done); }
.ob-status-closed { color: var(--ob-tone-ready); }
.ob-status-cancelled { color: var(--ob-tone-muted); }

/* ── Status icons: the Rewst app's checkbox vocabulary (Bootstrap Icons shapes), drawn as masks so
   they take currentColor — the rail recolours them for its dark band, the pages use the tones. ── */
.ob-si {
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask: var(--ob-si-shape) center / contain no-repeat;
    mask: var(--ob-si-shape) center / contain no-repeat;
}

/* check-square-fill */
.ob-si-done { --ob-si-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm10.03 4.97a.75.75 0 0 1 .011 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.75.75 0 0 1 1.08-.022z'/%3E%3C/svg%3E"); }
/* check-square */
.ob-si-manual { --ob-si-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z'/%3E%3Cpath d='M10.97 4.97a.75.75 0 0 1 1.071 1.05l-3.992 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z'/%3E%3C/svg%3E"); }
/* square */
.ob-si-ready, .ob-si-notstarted { --ob-si-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z'/%3E%3C/svg%3E"); }
/* dash-square */
.ob-si-blocked { --ob-si-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z'/%3E%3Cpath d='M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8'/%3E%3C/svg%3E"); }
/* slash-square */
.ob-si-notapplicable { --ob-si-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z'/%3E%3Cpath d='M11.354 4.646a.5.5 0 0 0-.708 0l-6 6a.5.5 0 0 0 .708.708l6-6a.5.5 0 0 0 0-.708'/%3E%3C/svg%3E"); }
/* arrow-right-square */
.ob-si-skipped { --ob-si-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M15 2a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1zM0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm4.5 5.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5z'/%3E%3C/svg%3E"); }
/* hourglass-split */
.ob-si-inprogress { --ob-si-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 15a.5.5 0 1 1 0-1h1v-1a4.5 4.5 0 0 1 2.557-4.06c.29-.139.443-.377.443-.59v-.7c0-.213-.154-.451-.443-.59A4.5 4.5 0 0 1 3.5 3V2h-1a.5.5 0 0 1 0-1h11a.5.5 0 0 1 0 1h-1v1a4.5 4.5 0 0 1-2.557 4.06c-.29.139-.443.377-.443.59v.7c0 .213.154.451.443.59A4.5 4.5 0 0 1 12.5 13v1h1a.5.5 0 0 1 0 1zm2-13v1c0 .537.12 1.045.337 1.5h6.326c.216-.455.337-.963.337-1.5V2zm3 6.35c0 .701-.478 1.236-1.011 1.492A3.5 3.5 0 0 0 4.5 13s.866-1.299 3-1.48zm1 0v3.17c2.134.181 3 1.48 3 1.48a3.5 3.5 0 0 0-1.989-3.158C8.978 9.586 8.5 9.052 8.5 8.351z'/%3E%3C/svg%3E"); }
/* x-square-fill */
.ob-si-failed { --ob-si-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm3.354 4.646L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 1 1 .708-.708'/%3E%3C/svg%3E"); }
/* question-square */
.ob-si-unknown { --ob-si-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z'/%3E%3Cpath d='M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94'/%3E%3C/svg%3E"); }

/* ── Page furniture ── */
/* The layout's content area is a fixed-height flex column that scrolls. A section that clips its own
   overflow (.ob-steps does, for its rounded corners) gets a minimum height of zero there, so the
   column squeezed it and cut rows off instead of scrolling. Page sections keep their natural height. */
article.content > * { flex-shrink: 0; }

.ob-page-head, .ob-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ob-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ob-check { display: inline-flex; align-items: center; gap: .4rem; margin: 0; white-space: nowrap; }
.ob-muted { font-size: .85em; opacity: .7; }
.ob-meta { font-size: .9em; opacity: .85; margin-top: .25rem; }
.ob-warn { color: var(--ob-tone-unknown); }
.ob-notice { padding: .75rem 1rem; border: 1px solid rgba(200, 120, 0, .5); border-radius: .4rem; background: rgba(200, 120, 0, .08); }
.ob-badge { display: inline-block; padding: .1rem .5rem; border-radius: 1rem; font-size: .85em; border: 1px solid currentColor; white-space: nowrap; }
.ob-title { font-size: 1.5rem; margin: 0; line-height: 1.2; }
.ob-section { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 .6rem; }
.ob-head-brand { display: flex; align-items: flex-start; gap: 1rem; min-width: 0; }
.ob-logo { display: flex; align-items: center; justify-content: center; flex: none; width: 4.5rem; height: 4.5rem; border-radius: .6rem;
           font-size: 1.1rem; font-weight: 700; letter-spacing: .05em; color: var(--cn-muted-foreground, #5b7183);
           background: var(--cn-card-background, #fff); border: 1px solid rgba(128, 128, 128, .3); }
.ob-step-icon { font-size: 2.25rem; margin-top: .1rem; }
.ob-table td, .ob-table th { vertical-align: top; }

.ob-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin: 1rem 0 .75rem; }
.ob-counts > div { padding: .6rem .8rem; border: 1px solid rgba(128, 128, 128, .3); border-radius: .5rem; display: flex; flex-direction: column;
                   background: var(--cn-card-background, #fff); }
.ob-num { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.ob-num-of { font-size: 1rem; font-weight: 400; opacity: .7; }

.ob-progress { height: .35rem; border-radius: .2rem; background: rgba(128, 128, 128, .15); overflow: hidden; margin-top: .25rem; }
.ob-bar { height: 100%; background: var(--cn-clickable, #1398b2); }

/* ── The overview's step list: the rail's rows, with room for the description ── */
.ob-steps { display: flex; flex-direction: column; border: 1px solid rgba(128, 128, 128, .3); border-radius: .5rem; overflow: hidden; }
.ob-step-row { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem .9rem; color: inherit; text-decoration: none;
               border-top: 1px solid rgba(128, 128, 128, .2); background: var(--cn-card-background, #fff); }
.ob-step-row:first-child { border-top: 0; }
.ob-step-row:hover { background: var(--cn-clickable-hover-bg, #eaf0f6); color: inherit; text-decoration: none; }
.ob-step-row > .ob-si { font-size: 1.15rem; margin-top: .15rem; }
.ob-step-row-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1 1 auto; }
.ob-step-row-name { font-weight: 600; }
.ob-step-row.ob-dim .ob-step-row-body { opacity: .6; }
.ob-step-desc { font-size: .85em; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-step-warning { font-size: .85em; color: var(--ob-tone-unknown); }
.ob-step-error { font-size: .85em; color: var(--ob-tone-failed); }

/* ── The step page ── */
.ob-callout { padding: .6rem .9rem; border-radius: .4rem; margin: 0 0 .75rem; }
.ob-callout-warning { color: var(--ob-tone-unknown); border: 1px solid currentColor; background: rgba(200, 120, 0, .06); }
.ob-callout-error { color: var(--ob-tone-failed); border: 1px solid currentColor; background: rgba(179, 38, 30, .06); }
.ob-desc { white-space: pre-line; margin: 0 0 1rem; }
.ob-layout { display: grid; grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 1fr); gap: 1rem; align-items: start; }
/* Tabs (2026-09-16): a page's sections, one at a time — the customer view and settings. */
.ob-tabs { display: flex; gap: .15rem; margin: .5rem 0 1rem; border-bottom: 1px solid var(--cn-border, #d0d7de);
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.ob-tabs::-webkit-scrollbar { display: none; }
.ob-tab { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: -1px; padding: .55rem .95rem;
    border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-weight: 600; white-space: nowrap;
    color: var(--cn-muted-foreground, #5b7183); cursor: pointer; border-radius: .35rem .35rem 0 0; }
.ob-tab:hover { color: var(--cn-foreground, inherit); background: var(--cn-clickable-hover-bg, #eaf0f6); }
.ob-tab[aria-selected="true"] { color: var(--cn-clickable, #1398b2); border-bottom-color: var(--cn-clickable, #1398b2); }
.ob-tab:focus-visible { outline: 2px solid var(--cn-clickable, #1398b2); outline-offset: -2px; }
.ob-tab-count { padding: .05rem .45rem; border-radius: 1rem; font-size: .72em; font-weight: 700;
    background: rgba(127, 127, 127, .16); color: inherit; }
.ob-tab-dirty { width: .45rem; height: .45rem; border-radius: 50%; background: var(--cn-bold-orange, #f37321); }
/* Two panels meant to be read as a pair: the same height, whichever says more. */
.ob-layout-even { align-items: stretch; }
.ob-layout-even > .ob-panel { margin-bottom: 0; }
/* The customer view's page content, full width: the two long texts side by side, then the two links. */
.ob-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; align-items: start; }
@media (max-width: 1000px) { .ob-content-grid { grid-template-columns: 1fr; } }
/* The customer view's allowed accounts, one row each. */
.ob-account-list { list-style: none; margin: .3rem 0 .5rem; padding: 0; border: 1px solid var(--cn-border, #d0d7de); border-radius: .4rem; }
.ob-account-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .2rem .25rem .2rem .6rem; }
.ob-account-list li + li { border-top: 1px solid var(--cn-border, #d0d7de); }
.ob-account-address { overflow-wrap: anywhere; }
.ob-account-remove { flex: none; padding-top: 0; padding-bottom: 0; }
.ob-account-add { display: flex; gap: .4rem; margin-top: .3rem; }
.ob-account-add .form-control { min-width: 0; }
@media (max-width: 1000px) { .ob-layout { grid-template-columns: 1fr; } }
.ob-panel { padding: 1rem; border: 1px solid rgba(128, 128, 128, .3); border-radius: .5rem; margin-bottom: 1rem; background: var(--cn-card-background, #fff); }
.ob-panel > .ob-section:first-child { margin-top: 0; }
.ob-panel h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 .4rem; }
.ob-kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.ob-kv dt { font-weight: 600; }
.ob-kv dd { margin: 0; overflow-wrap: anywhere; }
.ob-prereq { display: inline-flex; align-items: center; gap: .35rem; margin-right: .9rem; white-space: nowrap; }
.ob-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .5rem 0 0; }
.ob-form .form-control { max-width: 28rem; flex: 1 1 16rem; }
.ob-facts { max-height: 28rem; overflow: auto; font-size: .8em; padding: .75rem; margin: 0; border-radius: .4rem; background: rgba(128, 128, 128, .08); }
.ob-events { margin-top: 1rem; }
.ob-search { display: flex; gap: .5rem; max-width: 40rem; margin-bottom: 1rem; }

/* ── The home page's tiles (the Acquisitions portfolio) ── */
.ob-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; margin-top: .5rem; }
.ob-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem; border: 1px solid rgba(128, 128, 128, .3); border-radius: .75rem;
           background: var(--cn-card-background, #fff); color: inherit; text-decoration: none; transition: border-color .12s ease-out, box-shadow .12s ease-out; }
.ob-tile:hover { border-color: var(--cn-clickable, #1398b2); box-shadow: 0 4px 16px rgba(0, 0, 0, .08); color: inherit; text-decoration: none; }
.ob-tile-logo { flex: none; width: 5rem; height: 5rem; display: flex; align-items: center; justify-content: center; border-radius: .6rem;
                background: rgba(128, 128, 128, .08); border: 1px solid rgba(128, 128, 128, .2); }
.ob-tile-code { font-size: 1.1rem; font-weight: 700; letter-spacing: .05em; color: var(--cn-muted-foreground, #5b7183); }
.ob-tile-body { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: .35rem; }
.ob-tile-name { font-size: 1.15rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-tile-meta { font-size: .9em; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.ob-tile-meta .ob-muted { font-size: 1em; }
.ob-tile-stats { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .85em; opacity: .85; }

/* ── The customer surface (/welcome): rendered outside the app shell, so it carries its own frame —
   the sign-in splash's card, on the brand background. ── */
.ob-welcome { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--cn-background, #f5f7f9); }
.ob-welcome-card { max-width: 32rem; text-align: center; background: var(--cn-card-background, #fff); border: 1px solid var(--cn-border, rgba(128, 128, 128, .3));
                   border-radius: .75rem; padding: 3rem 2.5rem; box-shadow: 0 4px 24px rgba(33, 51, 67, .08); }
.ob-welcome-logo { width: 4rem; height: auto; margin-bottom: 1.5rem; }
.ob-welcome-card h1 { font-size: 1.35rem; margin-bottom: .75rem; }

/* ── The device list (2026-09-14): one row per hostname, NinjaRMM beside Entra ID ── */
.ob-devices-icon { display: block; width: 2.2rem; height: 2.2rem; background-color: currentColor;
                   -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.5 3a.5.5 0 0 1 .5.5V11H2V3.5a.5.5 0 0 1 .5-.5zm-11-1A1.5 1.5 0 0 0 1 3.5V12h14V3.5A1.5 1.5 0 0 0 13.5 2zM0 12.5h16a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5'/%3E%3C/svg%3E") center / contain no-repeat;
                   mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' %3E%3Cpath d='M13.5 3a.5.5 0 0 1 .5.5V11H2V3.5a.5.5 0 0 1 .5-.5zm-11-1A1.5 1.5 0 0 0 1 3.5V12h14V3.5A1.5 1.5 0 0 0 13.5 2zM0 12.5h16a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 0 12.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.ob-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; margin: 0 0 1rem; }
.ob-source { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem; border: 1px solid rgba(128, 128, 128, .3);
             border-radius: .5rem; background: var(--cn-card-background, #fff); }
.ob-source-name { font-weight: 600; }
.ob-source .ob-num { font-size: 1.4rem; }
.ob-source-error { border-color: var(--ob-tone-failed); }
.ob-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.ob-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .75rem; border-radius: 1rem;
           border: 1px solid rgba(128, 128, 128, .4); background: transparent; color: inherit; font-size: .9em; cursor: pointer; }
.ob-chip:hover { border-color: var(--cn-clickable, #1398b2); }
.ob-chip.active { background: var(--cn-clickable, #1398b2); border-color: var(--cn-clickable, #1398b2); color: #fff; }
.ob-chip-count { font-weight: 700; opacity: .85; }
.ob-devices-wrap { overflow-x: auto; border: 1px solid rgba(128, 128, 128, .3); border-radius: .5rem; background: var(--cn-card-background, #fff); }
.ob-devices { margin: 0; }
.ob-devices th { white-space: nowrap; }
/* The row's status as a bar down its left edge, so discrepancies read at a glance while scrolling. */
.ob-devices tbody td:first-child { box-shadow: inset 4px 0 0 var(--ob-row-tone, transparent); padding-left: .9rem; }
.ob-device-entra { --ob-row-tone: var(--ob-tone-failed); }
.ob-device-ninja, .ob-device-dup { --ob-row-tone: var(--ob-tone-unknown); }
.ob-device-ok { --ob-row-tone: var(--ob-tone-done); }
.ob-device-mobile { --ob-row-tone: var(--ob-tone-muted); }
.ob-device-name { font-weight: 600; white-space: nowrap; }
.ob-device-name .ob-badge { margin-left: .35rem; font-weight: 400; }
.ob-device-entry { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; }
.ob-device-entry + .ob-device-entry { margin-top: .25rem; padding-top: .25rem; border-top: 1px dashed rgba(128, 128, 128, .35); }
.ob-dot { display: inline-block; flex: none; width: .55rem; height: .55rem; border-radius: 50%; }
.ob-dot-on { background: var(--ob-tone-done); }
.ob-dot-off { background: var(--ob-tone-muted); }
.ob-directory { padding: .7rem .9rem; margin-bottom: .75rem; border: 1px solid rgba(128, 128, 128, .3); border-radius: .5rem;
                background: var(--cn-card-background, #fff); }
.ob-directory-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .35rem; }
.ob-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .35rem 1.25rem; margin: 0; }
.ob-directory-grid dt { font-size: .8em; font-weight: 600; opacity: .7; }
.ob-directory-grid dd { margin: 0; overflow-wrap: anywhere; }
.ob-directory-wide { grid-column: 1 / -1; }

/* ── The customer view editor (2026-09-14) ── */
.ob-customer-icon { display: block; width: 2.2rem; height: 2.2rem; background-color: currentColor;
                    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8M1.173 8a13 13 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5s-3.879-1.168-5.168-2.457A13 13 0 0 1 1.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0'/%3E%3C/svg%3E") center / contain no-repeat;
                    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8M1.173 8a13 13 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5s-3.879-1.168-5.168-2.457A13 13 0 0 1 1.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.ob-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.ob-panel-head .ob-section { margin: 0; }
.ob-field { display: flex; flex-direction: column; gap: .3rem; margin: 0; font-weight: 600; }
.ob-field .form-control, .ob-field .ob-muted { font-weight: 400; }
/* The synopsis box (2026-09-16): its label on the left, Draft it / Clear on the right. */
.ob-synopsis-head { display: flex; align-items: center; justify-content: space-between; gap: .3rem 1rem; flex-wrap: wrap; margin-bottom: .25rem; }
.ob-synopsis-actions { display: inline-flex; align-items: center; gap: .25rem; font-weight: 400; }
.ob-share code { display: block; margin-top: .3rem; padding: .4rem .6rem; border-radius: .35rem; background: rgba(128, 128, 128, .1); overflow-wrap: anywhere; }
.ob-people-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 2rem; }
.ob-people-columns h3 { margin-top: 0; }
.ob-person-row { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; margin: 0; cursor: pointer; }
.ob-person-photo { flex: none; width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.ob-person-initials { display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; background: rgba(128, 128, 128, .18); }
.ob-cv-tasks { margin: 0; }
.ob-cv-tasks th { white-space: nowrap; }
.ob-cv-hidden td:not(:first-child) { opacity: .5; }
.ob-cv-note { min-width: 18rem; max-width: 32rem; }
.ob-cv-latest { font-size: .9em; }
/* ── The staff interview (2026-09-16): one question at a time, in plain words, beside the list of sections. ── */
.ob-iv { display: grid; grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .ob-iv { grid-template-columns: 1fr; } }
.ob-iv-side { position: sticky; top: 1rem; }
.ob-iv-progress { height: .5rem; border-radius: 1rem; background: rgba(128, 128, 128, .2); overflow: hidden; }
.ob-iv-progress-bar { height: 100%; border-radius: 1rem; background: var(--cn-clickable, #1398b2); transition: width .25s ease; }
.ob-iv-count { margin: .4rem 0 .75rem; font-size: .85rem; opacity: .75; }
.ob-iv-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.ob-iv-task { display: flex; flex-direction: column; padding: .4rem .6rem; border-radius: .45rem; border-left: 3px solid transparent; }
.ob-iv-task.is-current { background: rgba(19, 152, 178, .1); border-left-color: var(--cn-clickable, #1398b2); }
.ob-iv-task.is-quiet { opacity: .6; }
.ob-iv-task-name { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; text-align: left; }
button.ob-iv-task-name:hover { text-decoration: underline; }
.ob-iv-task-state { font-size: .8rem; opacity: .75; }
.ob-iv-card { padding: 1.5rem 1.75rem; border: 1px solid rgba(128, 128, 128, .3); border-radius: .75rem; background: var(--cn-card-background, #fff); }
.ob-iv-where { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; opacity: .75; }
.ob-iv-question { margin: .5rem 0 .4rem; font-size: 1.5rem; line-height: 1.3; }
.ob-iv-help { margin: 0 0 .75rem; opacity: .8; }
.ob-iv-status { display: inline-block; margin: 0 0 .75rem; padding: .3rem .7rem; border-radius: .4rem; font-size: .9rem; }
.ob-iv-status.is-done { color: var(--ob-tone-done); background: rgba(27, 127, 59, .14); }
.ob-iv-status.is-ask { color: var(--cn-clickable, #1398b2); background: rgba(19, 152, 178, .14); }
.ob-iv-status.is-off { background: rgba(128, 128, 128, .15); }
.ob-iv-answer { margin: .75rem 0 1.25rem; }
.ob-iv-text { max-width: 32rem; font-size: 1.1rem; padding: .6rem .8rem; }
.ob-iv-yesno { display: flex; gap: .5rem; }
.ob-iv-yesno .btn { min-width: 6rem; }
.ob-iv-choices { display: flex; flex-direction: column; gap: .35rem; max-width: 36rem; }
.ob-iv-choices.is-compact { gap: .1rem; }
.ob-iv-choice { display: flex; align-items: center; gap: .6rem; padding: .45rem .7rem; border: 1px solid rgba(128, 128, 128, .3);
                border-radius: .45rem; cursor: pointer; }
.ob-iv-choices.is-compact .ob-iv-choice { padding: .15rem .1rem; border: 0; }
.ob-iv-choice:has(input:checked) { border-color: var(--cn-clickable, #1398b2); background: rgba(19, 152, 178, .08); font-weight: 600; }
.ob-iv-choice input { width: 1.05rem; height: 1.05rem; flex: none; }
.ob-iv-group, .ob-iv-row-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .75rem 1rem; }
.ob-iv-field { display: flex; flex-direction: column; gap: .25rem; margin: 0; }
.ob-iv-field-label { font-size: .85rem; font-weight: 600; }
.ob-iv-rows { display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.ob-iv-row { align-self: stretch; padding: .75rem 1rem; border: 1px solid rgba(128, 128, 128, .3); border-radius: .6rem; }
.ob-iv-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-weight: 700; }
.ob-iv-explain { max-width: 40rem; margin: 0; }
.ob-iv-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ob-iv-nav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap;
             margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid rgba(128, 128, 128, .2); }
.ob-iv-skip-task { font-size: .85rem; opacity: .8; }
.ob-iv-summary { margin: .5rem 0 1.25rem; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .4rem; }

/* The preview keeps the customer page's fixed light look, even inside a dark staff theme. */
.ob-cv-frame { padding: 1.5rem; border: 1px solid rgba(128, 128, 128, .3); border-radius: .5rem; background: #f3f5f7; color: #243746; }

.ob-welcome-list { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .5rem; text-align: left; }
.ob-welcome-list a { display: block; padding: .65rem 1rem; border: 1px solid rgba(128, 128, 128, .3); border-radius: .5rem; font-weight: 600; text-decoration: none; }
.ob-welcome-list a:hover { border-color: var(--cn-clickable, #1398b2); }

/* ── The customer's page (/welcome/{key}): a fixed light look in the logo's navy and orange, the same
   inside the staff preview, so what staff publish is what the customer sees. ── */
.cv-body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; background: #f3f5f7; color: #243746; }
.cv-header { background: #fff; border-bottom: 3px solid #dc6b2c; box-shadow: 0 1px 10px rgba(36, 55, 70, .06); }
.cv-header-inner { max-width: 74rem; margin: 0 auto; padding: .85rem 1.5rem; display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; }
.cv-header-logo { height: 3rem; width: auto; }
.cv-header-title { font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; }
.cv-header-company { margin-left: auto; font-size: 1.05rem; font-weight: 600; color: #5b7183; }
.cv-main { flex: 1 0 auto; width: 100%; max-width: 74rem; margin: 0 auto; padding: 2rem 1.5rem 2.5rem; }
.cv-footer { width: 100%; max-width: 74rem; margin: 0 auto; padding: 1rem 1.5rem 2rem; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.5rem;
             font-size: .85rem; color: #5b7183; border-top: 1px solid #dde3e8; }
.cv-footer form { margin: 0 0 0 auto; }
.cv-footer .btn-link { padding: 0; font-size: inherit; color: #5b7183; }

.cv { color: #243746; }
/* Beats the staff app's circuit heading rule, so the preview spaces titles like the customer page. */
.cv :is(.cv-card, .cv-section) > h2 { font-size: 1.05rem; line-height: 1.3; font-weight: 700; color: #243746; margin: 0 0 1rem; }
.cv-intro { background: #fff; border: 1px solid #dde3e8; border-radius: .75rem; padding: 1.25rem 1.5rem;
            box-shadow: 0 2px 12px rgba(36, 55, 70, .05); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1rem; }
.cv-intro p { max-width: 60rem; }
.cv-intro p:last-child { margin-bottom: 0; }
/* The synopsis (2026-09-16): "Where we're at", a box of its own with a marker in it, under the welcome. Teal, the
   page's link colour — orange is kept for the block that asks the customer to do something. */
.cv-synopsis { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; padding: 1.15rem 1.5rem;
               background: #eaf6f9; border: 1px solid #c3e3eb; border-radius: .75rem; font-size: 1.05rem; line-height: 1.6; }
.cv-synopsis-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
                    color: #0f7a90; background: #fff; border: 1px solid #c3e3eb; border-radius: .55rem; }
.cv-synopsis-body { min-width: 0; }
.cv .cv-synopsis-body h2 { margin: .45rem 0 .35rem; font-size: 1.05rem; line-height: 1.3; font-weight: 700; color: #243746; }
.cv-synopsis p { max-width: 60rem; }
.cv-synopsis p:last-child { margin-bottom: 0; }
.cv-done { padding: .75rem 1rem; border-radius: .5rem; background: #e5f3ea; color: #1b7f3b; font-weight: 600; }
.cv-cards { display: grid; grid-template-columns: minmax(15rem, .8fr) 1fr 1fr; gap: 1rem; }
@media (max-width: 960px) { .cv-cards { grid-template-columns: 1fr; } }
.cv-card, .cv-section { background: #fff; border: 1px solid #dde3e8; border-radius: .75rem; padding: 1.25rem 1.5rem; box-shadow: 0 2px 12px rgba(36, 55, 70, .05); }
.cv-section { margin-top: 1rem; }
.cv-progress { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cv-progress h2 { align-self: stretch; text-align: left; }
.cv-gauge { width: 100%; max-width: 13rem; height: auto; overflow: visible; }
.cv-gauge-track, .cv-gauge-fill { fill: none; stroke-width: 11; stroke-linecap: round; }
.cv-gauge-track { stroke: #e6ebef; }
.cv-gauge-fill { stroke: #dc6b2c; }
.cv-percent { margin-top: -2.6rem; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.cv-percent span { font-size: 1.2rem; margin-left: .1rem; }
.cv-muted { margin-top: .6rem; font-size: .9rem; color: #5b7183; }
.cv-empty { margin: 0; color: #5b7183; }
.cv-people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.cv-person { display: flex; align-items: center; gap: .9rem; }
.cv-avatar { flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
             font-size: 1rem; font-weight: 700; letter-spacing: .03em; color: #fff; background: #243746; object-fit: cover; }
.cv-avatar-alt { background: #dc6b2c; }
img.cv-avatar { background: #e6ebef; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #dde3e8; }
.cv-person-name { display: block; font-weight: 600; }
.cv-person-role { display: block; font-size: .875rem; color: #5b7183; }
.cv-section-lead { margin: -.5rem 0 1rem; color: #5b7183; }
.cv-installers { display: flex; flex-wrap: wrap; gap: .75rem; }
.cv-installer { display: inline-flex; align-items: baseline; gap: .4rem; padding: .6rem 1.15rem; border-radius: .5rem; background: #243746; color: #fff; font-weight: 600; text-decoration: none; }
.cv-installer:hover { background: #dc6b2c; color: #fff; }
.cv-installer span { font-weight: 400; opacity: .8; }
.cv-table-wrap { overflow-x: auto; margin: 0 -1.5rem -1.25rem; }
.cv-table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.cv-table th { padding: .6rem 1rem; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
               color: #5b7183; background: #f7f9fa; border-top: 1px solid #e6ebef; border-bottom: 1px solid #e6ebef; }
.cv-table td { padding: .75rem 1rem; vertical-align: top; border-bottom: 1px solid #eef2f5; }
.cv-table th:first-child, .cv-table td:first-child { padding-left: 1.5rem; }
.cv-table th:last-child, .cv-table td:last-child { padding-right: 1.5rem; }
.cv-table tbody tr:last-child td { border-bottom: 0; }
.cv-task { min-width: 14rem; font-weight: 600; }
.cv-nowrap { white-space: nowrap; }
.cv-notes { min-width: 16rem; max-width: 34rem; color: #3d5163; }
.cv-closed .cv-task, .cv-closed .cv-notes { color: #7a8793; }
.cv-status { display: inline-block; padding: .15rem .6rem; border-radius: 1rem; font-size: .8rem; font-weight: 600; white-space: nowrap; background: #fbeee5; color: #a44d17; }
.cv-status-done { background: #e5f3ea; color: #1b7f3b; }

/* ── Step run forms (2026-09-14) ── */
.ob-run-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .6rem 1rem; margin: .25rem 0 .75rem; }
.ob-changes { margin: 0 0 .75rem; padding-left: 1.2rem; font-size: .9em; }
.ob-pre { white-space: pre-line; }

/* Who was chosen from a searchable multi-select (2026-09-16: the onboarding chat's invitations), each removable. */
.ob-picked { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .5rem; padding: 0; list-style: none; }
.ob-picked li { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .3rem .2rem .7rem; border-radius: 1rem;
                border: 1px solid rgba(128, 128, 128, .4); font-size: .9em; }
.ob-picked button { border: 0; background: transparent; color: inherit; padding: 0 .3rem; line-height: 1; cursor: pointer; opacity: .6; }
.ob-picked button:hover { opacity: 1; color: var(--cn-clickable, #1398b2); }

/* ── Technical info and the audit log (2026-09-14) ── */
.ob-tech > summary.ob-section { cursor: pointer; margin: 0; }
.ob-tech[open] > summary.ob-section { margin-bottom: .6rem; }
.ob-audit-icon { display: block; width: 2.2rem; height: 2.2rem; background-color: currentColor;
                 -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 10.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5'/%3E%3Cpath d='M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2'/%3E%3Cpath d='M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1z'/%3E%3C/svg%3E") center / contain no-repeat;
                 mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 10.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5'/%3E%3Cpath d='M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2'/%3E%3Cpath d='M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.ob-audit { margin: 0; }
.ob-audit th { white-space: nowrap; }
.ob-audit-filter { width: auto; min-width: 12rem; }

/* ── A step's tickets and their notes and time entries (2026-09-15) ── */
.ob-tickets { list-style: none; margin: 0; padding: 0; }
.ob-tickets li + li { margin-top: .15rem; }
.ob-ticket-pick { width: auto; max-width: 100%; }
.ob-ticket-title { font-weight: 600; margin: 0 0 .6rem; }
.ob-activity { list-style: none; margin: 0; padding: 0; max-height: 30rem; overflow-y: auto; border: 1px solid rgba(128, 128, 128, .25); border-radius: .4rem; }
.ob-activity li { padding: .55rem .75rem; border-top: 1px solid rgba(128, 128, 128, .2); }
.ob-activity li:first-child { border-top: 0; }
.ob-activity-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-size: .85em; margin-bottom: .25rem; }
.ob-activity-meta .ob-muted { font-size: 1em; }
.ob-activity-text { overflow-wrap: anywhere; font-size: .92em; }

/* Ticket notes as Markdown (2026-09-16; Components/NoteMarkdown.cs). Sized for a table cell or an activity row: a
   heading in a note is emphasis, not a page title, and the first and last blocks sit flush with the cell. */
.ob-md { overflow-wrap: anywhere; }
.ob-md > :first-child { margin-top: 0; }
.ob-md > :last-child { margin-bottom: 0; }
.ob-md p, .ob-md ul, .ob-md ol, .ob-md pre, .ob-md blockquote, .ob-md table { margin: 0 0 .45em; }
.ob-md ul, .ob-md ol { padding-left: 1.25em; }
.ob-md li > p { margin: 0; }
.ob-md h1, .ob-md h2, .ob-md h3, .ob-md h4, .ob-md h5, .ob-md h6 { font-size: 1em; font-weight: 700; margin: .35em 0 .2em; }
.ob-md blockquote { padding-left: .6em; border-left: 3px solid var(--cn-border, #d0d7de); color: inherit; opacity: .85; }
.ob-md code { font-size: .9em; padding: .05em .3em; border-radius: .25em; background: rgba(127, 127, 127, .15); }
.ob-md pre { padding: .5em .6em; border-radius: .35em; background: rgba(127, 127, 127, .12); overflow-x: auto; white-space: pre; }
.ob-md pre code { padding: 0; background: none; }
.ob-md table { border-collapse: collapse; font-size: .95em; }
.ob-md th, .ob-md td { border: 1px solid var(--cn-border, #d0d7de); padding: .2em .45em; text-align: left; vertical-align: top; }
.ob-md hr { margin: .5em 0; }
.ob-md .task-list-item { list-style: none; margin-left: -1.1em; }
.ob-md .task-list-item-checkbox { margin-right: .35em; }

/* A note folded to three lines (Chris, 2026-09-16; Components/NoteText.razor, js/note-fold.js). The checkbox is the
   state and the label is the control, so it opens without a round trip; the label appears only on a note that is
   longer than its three lines, and a long one fades out at the bottom rather than stopping mid-word. */
.ob-note-fold { position: relative; }
.ob-note-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ob-note-body { line-height: 1.45; max-height: calc(3em * 1.45); overflow: hidden; }
.ob-note-body p, .ob-note-body ul, .ob-note-body ol { margin-bottom: .15em; }
.ob-note-fold[data-overflow] .ob-note-body { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.ob-note-toggle:checked ~ .ob-note-body { max-height: none; -webkit-mask-image: none; mask-image: none; }
.ob-note-more { display: none; align-items: center; gap: .25em; margin-top: .1em; cursor: pointer; user-select: none;
    font-size: .82em; font-weight: 600; color: var(--cn-clickable, #1398b2); }
.ob-note-more::after { content: ""; width: .45em; height: .45em; border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor; transform: translateY(-.1em) rotate(45deg); }
.ob-note-fold[data-overflow] .ob-note-more, .ob-note-toggle:checked ~ .ob-note-more { display: inline-flex; }
.ob-note-toggle:checked ~ .ob-note-more::after { transform: translateY(.1em) rotate(-135deg); }
.ob-note-more-close { display: none; }
.ob-note-toggle:checked ~ .ob-note-more .ob-note-more-open { display: none; }
.ob-note-toggle:checked ~ .ob-note-more .ob-note-more-close { display: inline; }
.ob-note-toggle:focus-visible ~ .ob-note-more { outline: 2px solid var(--cn-clickable, #1398b2); outline-offset: 2px; border-radius: .2em; }
@media print { .ob-note-body { max-height: none; -webkit-mask-image: none; mask-image: none; } .ob-note-more { display: none !important; } }
.ob-ticket-add { display: flex; flex-direction: column; gap: .5rem; }
.ob-ticket-add .ob-run-grid { margin: 0; }
.ob-ticket-flags { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.ob-ticket-status { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
.ob-ticket-status label { font-weight: 600; margin: 0; }
.ob-ticket-status .form-select { width: auto; min-width: 12rem; max-width: 100%; }

/* ── The GDAP invitation link (2026-09-15) ── */
.ob-invite { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; margin: 0 0 .35rem; }
.ob-invite-label { font-weight: 600; }
.ob-invite a { overflow-wrap: anywhere; }

/* ── Searchable drop-downs (2026-09-15) ── */
.ob-search-select { position: relative; font-weight: 400; }
.ob-search-select > input { cursor: pointer; }
.ob-search-select > input:focus { cursor: text; }
.ob-search-select-list { position: absolute; z-index: 30; top: calc(100% + 2px); left: 0; right: 0; max-height: 18rem; overflow-y: auto;
                         margin: 0; padding: .25rem 0; list-style: none; font-size: .875rem;
                         color: var(--cn-foreground, inherit); background: var(--cn-input-background, #fff);
                         border: 1px solid var(--cn-border, rgba(128, 128, 128, .4)); border-radius: .4rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.ob-search-select-list li { padding: .3rem .65rem; cursor: pointer; overflow-wrap: anywhere; }
.ob-search-select-list li.active { background: var(--cn-clickable-hover-bg, #eaf0f6); }
.ob-search-select-list li.selected { font-weight: 600; }
.ob-search-select-list li.ob-search-select-empty { cursor: default; opacity: .7; }
.ob-search-select-hint { margin-left: .4rem; font-weight: 400; opacity: .65; font-size: .9em; }

/* ── The company's icon (2026-09-15): wherever the monogram would be ── */
.ob-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: .5rem; }
.ob-tile-img { width: 3.5rem; height: 3.5rem; object-fit: contain; }
/* A company's own icon stands on its own (Chris, 2026-09-15): the tile the monogram needs would otherwise
   show through a logo with a transparent background. */
.ob-logo-image { background: none; border-color: transparent; }
/* The overview's logo IS the control: clicking it opens the little menu of ways to set the icon. */
.ob-logo-menu { position: relative; flex: none; }
.ob-logo-button { padding: 0; cursor: pointer; transition: border-color .12s ease-out, box-shadow .12s ease-out; }
.ob-logo-button:hover:not(:disabled) { border-color: var(--cn-clickable, #1398b2); box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.ob-logo-button:focus-visible { border-color: var(--cn-clickable, #1398b2); outline: 2px solid var(--cn-clickable, #1398b2); outline-offset: 2px; }
.ob-logo-button:disabled { opacity: .6; cursor: progress; }
/* Out of sight, still reachable: the label above opens it. */
.ob-file { position: absolute; width: 1px; height: 1px; opacity: 0; clip-path: inset(50%); }

/* ── A small menu hung off a control (2026-09-15) ── */
.ob-menu-backdrop { position: fixed; inset: 0; z-index: 40; }
.ob-menu { position: absolute; z-index: 41; top: calc(100% + 4px); left: 0; min-width: 14rem; margin: 0; padding: .25rem 0;
           list-style: none; font-size: .875rem; white-space: nowrap;
           color: var(--cn-foreground, inherit); background: var(--cn-input-background, #fff);
           border: 1px solid var(--cn-border, rgba(128, 128, 128, .4)); border-radius: .4rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.ob-menu-item { display: block; width: 100%; margin: 0; padding: .35rem .75rem; text-align: left; cursor: pointer;
                color: inherit; background: none; border: 0; }
.ob-menu-item:hover, .ob-menu-item:focus-visible { background: var(--cn-clickable-hover-bg, #eaf0f6); }

/* ── The overview page (2026-09-15) ── */
.ob-overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 0 1rem; align-items: start; }
.ob-overview-wide { grid-column: 1 / -1; }
.ob-overview-grid .ob-kv code { font-size: .85em; overflow-wrap: anywhere; }
.ob-table-wrap { overflow-x: auto; }
.ob-overview-table { margin-bottom: .5rem; }
.ob-overview-table th { white-space: nowrap; }
.ob-overview-table .ob-num-col { text-align: right; white-space: nowrap; }
.ob-overview-table tr.ob-muted-row td { opacity: .6; }

/* ── The assistant's ask box on Home (2026-09-16, ported from Sales' agent-first landing) ──
   Host chrome, not the widget: submitting mounts <agent-chat> in the side panel with this text as
   its opening message. Wider than a search field and sitting above the tiles, because it is the
   first thing on the page rather than a filter on what follows. */
/* Home's top (Chris, 2026-09-16, after Sales): a greeting, then the ask box and its suggestions, centred in a
   column of their own above the portfolio. */
.ob-home { max-width: 44rem; margin: 0 auto; padding: 2rem 0 1.5rem; }
.ob-home-head { text-align: center; margin-bottom: 1.75rem; }
.ob-home-head h1 { font-size: 2rem; font-weight: 600; margin: 0; }
.ob-home-sub { margin: .35rem 0 0; color: var(--cn-muted-foreground, #5b7183); }
.ob-home .ob-ask { max-width: none; margin-bottom: .75rem; }
.ob-home .ob-ask-attachments { justify-content: center; }
.ob-home .ob-ask-suggestions { justify-content: center; min-height: 1.9rem; margin-bottom: 0; }
.ob-home-flight { align-items: center; border-top: 1px solid var(--cn-border, #d0d7de); padding-top: 1.25rem; }
.ob-ask-suggestion-wait { display: inline-block; width: 16rem; height: 1.75rem; border-style: dashed; opacity: .55;
    animation: ob-wait 1.4s ease-in-out infinite; }
.ob-ask-suggestion-wait-short { width: 11rem; }
@keyframes ob-wait { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ob-ask-suggestion-wait { animation: none; } }
@media (max-width: 40rem) { .ob-ask-suggestion-wait { width: 45%; } }
.ob-ask { display: flex; gap: .5rem; max-width: 46rem; margin: 0 0 .6rem; }
/* The border lives on the FIELD, not the text input: the paperclip sits inside the same box, so
   the two have to read as one control rather than a button parked next to a pill. */
.ob-ask-field { display: flex; flex: 1; min-width: 0; align-items: center; gap: .25rem; padding-right: .6rem;
                background: var(--cn-card-background, #fff); border: 1px solid var(--cn-border, rgba(128, 128, 128, .35)); border-radius: .6rem; }
.ob-ask-field:focus-within { border-color: var(--cn-clickable, #1398b2); }
.ob-ask-input { flex: 1; min-width: 0; font: inherit; color: var(--cn-foreground, inherit); background: transparent; border: 0; padding: .7rem .4rem .7rem 1rem; }
.ob-ask-input:focus { outline: none; }
.ob-ask-clip { display: flex; align-items: center; padding: .35rem; border-radius: .4rem; cursor: pointer; color: var(--cn-muted-foreground, #5b7183); }
.ob-ask-clip:hover { background: var(--cn-clickable-hover-bg, #eaf0f6); color: var(--cn-foreground, inherit); }
/* Keyboard users reach the file input, not the label — so the focus ring has to be drawn on the
   label when the input it names has focus. */
.ob-ask-field:has(.ob-ask-picker:focus-visible) .ob-ask-clip { outline: 2px solid var(--cn-clickable, #1398b2); outline-offset: 1px; }
.ob-ask-clip-label { position: absolute; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; clip-path: inset(50%); }
/* Not display:none — an input hidden that way cannot receive focus, and the keyboard path to the
   picker would go with it. */
.ob-ask-picker { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ob-ask-go { padding-left: 1.4rem; padding-right: 1.4rem; }
.ob-ask-go:disabled { opacity: .45; }

/* Picked files. Sized and named, because "5 MB limit" is only useful next to the number that broke
   it. */
.ob-ask-attachments { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .6rem; }
.ob-attachment { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; font-size: .8rem;
                 padding: .25rem .3rem .25rem .75rem; border: 1px solid var(--cn-border, rgba(128, 128, 128, .35)); border-radius: 1rem;
                 background: var(--cn-card-background, #fff); }
.ob-attachment-reading { padding-right: .75rem; color: var(--cn-muted-foreground, #5b7183); }
.ob-attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-attachment-size { flex: none; color: var(--cn-muted-foreground, #5b7183); }
.ob-attachment-drop { flex: none; font: inherit; font-size: .75rem; line-height: 1; padding: .25rem .4rem;
                      color: var(--cn-muted-foreground, #5b7183); background: none; border: 0; border-radius: 1rem; cursor: pointer; }
.ob-attachment-drop:hover { background: var(--cn-clickable-hover-bg, #eaf0f6); color: var(--cn-foreground, inherit); }
.ob-attachment-error { font-size: .8rem; color: var(--ob-tone-failed); }

/* Openers built from the onboardings in flight — shortcuts for typing that sentence, not a menu. */
.ob-ask-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.ob-ask-suggestion { font: inherit; font-size: .8rem; text-align: left; padding: .3rem .8rem; border-radius: 1rem; cursor: pointer;
                     color: var(--cn-muted-foreground, #5b7183); background: transparent; border: 1px solid var(--cn-border, rgba(128, 128, 128, .35)); }
.ob-ask-suggestion:hover { color: var(--cn-foreground, inherit); background: var(--cn-clickable-hover-bg, #eaf0f6); border-color: var(--cn-clickable, #1398b2); }

/* ═══ Customer forms (2026-09-16, design doc §8.5) ═══════════════════════════════════════════════
   Two surfaces, one block. The staff half lives on the Forms, Prepare and "Why we ask" pages beside
   the rest of the portal's furniture; the customer half is its own page under /welcome, which is a
   fixed light brand look with no portal chrome, so it borrows the cv- palette rather than the
   portal's.

   Rewritten 2026-09-16 (Chris: "the forms UI is super jank"). The first thing that was wrong was not
   a spacing choice: the customer's <form> wore the class `ob-form`, which the STEP pages use for a row
   of controls (`display:flex; flex-wrap:wrap; align-items:center`), so every section of a long
   interview was a shrink-wrapped flex item on a wrapping row. The sheet is `ob-form-sheet` now and
   `ob-form` means one thing again. The rest of this block is the ordinary work: one rhythm for labels
   and fields, groups that look like groups, rows that lay out in columns when there is room and stack
   on a phone, and controls big enough to hit with a thumb — customers fill these in on phones. */

/* The customer surface's palette, named once. These are the values already in the cv- block; a form
   is part of that page and must not drift from it. The staff preview frame gets them too, so an
   embedded customer view inside a dark staff theme stays the customer's page. */
.cv-body, .ob-cv-frame {
    --ob-ink: #243746;
    --ob-quiet: #5b7183;
    --ob-line: #dde3e8;
    --ob-paper: #fff;
    --ob-page: #f3f5f7;
    --ob-accent: #dc6b2c;
    --ob-accent-ink: #a44d17;
    --ob-accent-soft: #fbeee5;
    --ob-accent-line: #f0cdb2;
    --ob-good: #1b7f3b;
    --ob-good-soft: #e5f3ea;
    --ob-bad: #b3261e;
}

/* Said for the eye by a colour or a glyph, and for a screen reader by this. */
.ob-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
              clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ── Staff: the Forms page, Prepare, and "Why we ask" ── */
.ob-form-create { display: flex; align-items: flex-end; gap: .75rem; flex-wrap: wrap; }
.ob-form-create .ob-field { flex: 1; min-width: 18rem; }
.ob-form-blurb { margin: .5rem 0 0; font-size: .85rem; }
.ob-forms-table td { vertical-align: top; }
/* The task's name is the way into its Prepare page (2026-09-16), so it reads as a link without shouting. */
.ob-forms-task-link { display: inline-block; font-weight: 600; text-decoration: none; }
.ob-forms-task-link:hover, .ob-forms-task-link:focus-visible { text-decoration: underline; }
.ob-forms-table .ob-badge + .ob-badge { margin-left: .35rem; }
/* The task's name and purpose is the column being read; without a floor it loses every pixel to the
   four short columns beside it and wraps to five lines. */
.ob-forms-table th:first-child, .ob-forms-table td:first-child { min-width: 13rem; }
.ob-forms-answers > td { background: var(--cn-clickable-hover-bg, #f6f8fa); }
.ob-forms-answers h3 { font-size: .9rem; margin: .75rem 0 .35rem; }
.ob-forms-answers h3:first-child { margin-top: 0; }
/* A task nobody is being asked is dimmed, not hidden: the row still has to say why. */
.ob-forms-row-off td:first-child { opacity: .7; }
/* Who decided this task's fate, and on what. Capped, because a rule's reason is a sentence. */
.ob-forms-decider { min-width: 8rem; max-width: 20rem; }
.ob-forms-decider .ob-muted { display: block; margin-top: .25rem; }
/* "saved 2026-09-16 00:32" wraps between the verb and the stamp rather than forcing the table wider
   than the content area and hiding the Publish button off the right edge. */
.ob-forms-prepared, .ob-forms-changed { min-width: 6rem; }
.ob-forms-prepared span, .ob-forms-changed span { overflow-wrap: anywhere; }
.ob-forms-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .35rem; }
/* Label above value rather than beside it: an interview answer is often a paragraph, and a two-column
   grid would set every one of them in a column three words wide. */
.ob-forms-answer-list { display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: .2rem 1rem; margin: 0; }
.ob-forms-answer-list dt { font-weight: 600; font-size: .85rem; }
.ob-forms-answer-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
    .ob-forms-answer-list { grid-template-columns: 1fr; }
    .ob-forms-answer-list dd { margin-bottom: .5rem; }
}

/* Who owns a task: a person, or the set's own rule (the cascade, 2026-09-16). It sits above the
   decision it explains, so nobody changes a task's fate without reading who holds it. */
.ob-decider { margin: 0 0 .9rem; padding: .6rem .75rem; border: 1px solid rgba(128, 128, 128, .3);
              border-radius: .5rem; background: rgba(128, 128, 128, .05); }
.ob-decider-head { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .6rem; margin-bottom: .35rem; }
.ob-decider-release { padding: 0; font-size: .85rem; }
.ob-decider-rule, .ob-rules-rule { display: inline-block; margin-top: .35rem; padding: .15rem .45rem; font-size: .85em;
                                   border-radius: .25rem; background: rgba(128, 128, 128, .14); overflow-wrap: anywhere; }
.ob-rules-table td { vertical-align: top; }
.ob-rules-table td:nth-child(3) { min-width: 18rem; }

/* Prepare. A row per question: what we decided, and what we hold or answered instead. A row that is not
   being asked is dimmed rather than hidden — staff need to see the whole question set to decide. */
.ob-prepare-table td { vertical-align: top; }
.ob-prepare-table .form-select, .ob-prepare-table .form-control { min-width: 9rem; }
.ob-prepare-page td { font-weight: 600; background: var(--cn-clickable-hover-bg, #f6f8fa); }
.ob-prepare-asked { margin: 0; padding-left: 1.3rem; font-size: .9rem; }
.ob-prepare-asked li { padding: .1rem 0; }
.ob-prepare-off td:not(:first-child) { opacity: .55; }
.ob-prepare-choices { display: flex; flex-direction: column; gap: .1rem; max-height: 14rem; overflow-y: auto;
    padding: .25rem .5rem; border: 1px solid var(--cn-border, #d0d7de); border-radius: .375rem; }
.ob-prepare-choices .form-check { margin: 0; font-size: .875rem; }
.ob-prepare-choices .ob-callout { margin: .25rem 0 0; font-size: .8rem; }
/* The decision's tone as a bar beside it, so a column of four identical drop-downs reads as a column
   of four decisions. The bar is on the wrapper, not the <select>: Bootstrap owns a select's colour. */
.ob-prepare-decision { display: block; position: relative; padding-left: .6rem; }
.ob-prepare-decision::before { content: ""; position: absolute; left: 0; top: .15rem; bottom: .15rem;
                               width: 4px; border-radius: 2px; background: currentColor; }
.ob-prepare-decision .form-select { color: var(--cn-foreground, inherit); }

/* ── Customer: the task list, on the status page and on its own page ──
   On the status page this is the CALL TO ACTION (Chris, 2026-09-16: "it's being buried way down the
   page"). It is the only block there drawn in the brand orange, and it appears only when something is
   actually outstanding. */
.ob-forms-title { margin: 0 0 1rem; font-size: 1.6rem; color: var(--ob-ink); }
.ob-forms-cta { margin: 0 0 1rem; padding: 1.15rem 1.5rem 1.25rem; color: var(--ob-ink); background: var(--ob-paper);
                border: 1px solid var(--ob-line); border-top: 4px solid var(--ob-accent); border-radius: .75rem;
                box-shadow: 0 4px 18px rgba(36, 55, 70, .09); }
.ob-forms-cta-head { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; flex-wrap: wrap; }
.ob-forms-cta-head h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ob-ink); }
.ob-forms-cta-count { padding: .2rem .6rem; border-radius: 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em;
                      text-transform: uppercase; white-space: nowrap; color: var(--ob-accent-ink); background: var(--ob-accent-soft); }
.ob-forms-cta-lead { margin: .4rem 0 .9rem; color: var(--ob-quiet); }
.ob-forms-cta-sent { margin: .8rem 0 0; font-size: .875rem; color: var(--ob-quiet); }
.ob-forms-panel-lead, .ob-forms-none { margin: 0 0 .9rem; color: var(--ob-quiet); }

.ob-forms-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ob-forms-item { margin: 0; }
.ob-forms-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .75rem .9rem;
                color: var(--ob-ink); background: var(--ob-paper); border: 1px solid var(--ob-line); border-radius: .6rem;
                text-decoration: none; }
a.ob-forms-row { transition: border-color .12s ease-out, box-shadow .12s ease-out, background .12s ease-out; }
a.ob-forms-row:hover, a.ob-forms-row:focus-visible { color: var(--ob-ink); text-decoration: none; background: #fffaf6;
                                                     border-color: var(--ob-accent); box-shadow: 0 2px 10px rgba(36, 55, 70, .08); }
.ob-forms-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ob-forms-name { font-weight: 600; }
.ob-forms-purpose { font-size: .85rem; color: var(--ob-quiet); }
.ob-forms-state { font-size: .8rem; color: var(--ob-quiet); }
.ob-forms-go { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; white-space: nowrap;
               color: var(--ob-accent-ink); }
.ob-forms-go-arrow { transition: transform .12s ease-out; }
a.ob-forms-row:hover .ob-forms-go-arrow { transform: translateX(3px); }
/* Already sent: still listed on the tasks page, but plainly not something to do again. */
.ob-forms-item-sent .ob-forms-row { background: transparent; border-style: dashed; }
.ob-forms-item-sent .ob-forms-name { color: var(--ob-quiet); }
.ob-forms-state-sent { flex: none; font-weight: 600; white-space: nowrap; color: var(--ob-good); }

/* ── Customer: the form itself ──
   One long scroll rather than a wizard: someone filling this in on a phone should not also be
   navigating pages. Generous target sizes for the same reason. */
.ob-form-sheet { max-width: 46rem; margin: 0 auto; color: var(--ob-ink); }
.ob-form-back { margin: 0 0 1rem; font-size: .9rem; }
.ob-form-back a { font-weight: 600; color: var(--ob-quiet); text-decoration: none; }
.ob-form-back a:hover { color: var(--ob-accent-ink); text-decoration: underline; }

.ob-form-head { margin-bottom: .5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--ob-line); }
.ob-form-head h1 { margin: 0 0 .35rem; font-size: 1.75rem; line-height: 1.2; }
.ob-form-intro { margin: 0 0 .5rem; font-size: 1.05rem; }
.ob-form-help { margin: 0 0 .45rem; font-size: .875rem; color: var(--ob-quiet); }
.ob-form-sheet .ob-callout { margin: 0 0 1.25rem; padding: .9rem 1.1rem; border-radius: .6rem; }
.ob-form-sheet .ob-callout ul { margin: .4rem 0 .6rem; padding-left: 1.2rem; }
/* The preview notice closes the head, whose own padding already spaces it from what follows. */
.ob-form-head > .ob-callout { margin: .75rem 0 0; }

.ob-form-section { margin: 1.75rem 0; }
.ob-form-section + .ob-form-section { padding-top: 1.5rem; border-top: 1px solid var(--ob-line); }
.ob-form-section > h2 { margin: 0 0 .5rem; font-size: 1.2rem; font-weight: 700; }

/* The interview (2026-09-16): one step of the form at a time, with a count and a bar above it and Back / Next in
   the foot. The whole form is still on the page; only the current step shows. */
.ob-guide { margin: .5rem 0 1rem; }
.ob-guide-top { display: flex; align-items: baseline; gap: 1rem; }
.ob-guide-count { font-size: .9rem; font-weight: 600; color: var(--ob-quiet); }
.ob-guide-switch { margin-left: auto; padding: 0; border: 0; background: none; font: inherit; font-size: .875rem;
                   color: #0f7a90; text-decoration: underline; cursor: pointer; }
.ob-guide-progress { height: .4rem; margin-top: .45rem; border-radius: 1rem; background: var(--ob-line); overflow: hidden; }
.ob-guide-progress > span { display: block; width: 0; height: 100%; border-radius: 1rem; background: var(--ob-accent); transition: width .2s ease; }
.ob-guided .ob-form-section:not(.is-current) { display: none; }
.ob-guided .ob-form-section { margin-top: .5rem; padding-top: 0; border-top: 0; min-height: 10rem; }
.ob-guided .ob-form-section > [data-step]:not(.is-step) { display: none; }
.ob-guided .ob-form-section > .ob-form-q.is-step:not(.ob-form-other) > .ob-form-label,
.ob-guided .ob-form-section > .is-step > .ob-form-group-label:not(.ob-sr-only),
.ob-guided .ob-form-section > fieldset.is-step > legend { font-size: 1.25rem; }
.ob-form-foot-go { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; }
.ob-form-step { font: inherit; padding: .55rem 1.1rem; border-radius: .5rem; cursor: pointer;
                color: var(--ob-ink); background: var(--ob-paper); border: 1px solid var(--ob-line); }
.ob-form-step:disabled { opacity: .45; cursor: not-allowed; }
.ob-form-step-next { font-weight: 600; color: #fff; background: var(--ob-accent); border-color: var(--ob-accent); }
.ob-form-step:focus-visible { outline: 2px solid var(--ob-accent); outline-offset: 2px; }
.ob-form-foot [hidden] { display: none; }

.ob-form-q { margin: 0 0 1.25rem; }
.ob-form-label { display: block; margin: 0 0 .3rem; font-weight: 600; line-height: 1.35; }
.ob-form-group-label { font-size: 1.05rem; }
.ob-form-required { margin-left: .15rem; color: var(--ob-bad); }
.ob-form-html { margin: 1rem 0; color: var(--ob-quiet); }
.ob-form-html p:last-child { margin-bottom: 0; }
/* SurveyJS templates centre their notes with <center>; in a card, a note reads as the lead under its caption. */
.ob-form-html center { text-align: inherit; }
.ob-form-row > .ob-form-html { margin: 0 0 .75rem; }

.ob-form-input { display: block; width: 100%; min-height: 2.75rem; font: inherit; padding: .6rem .75rem;
                 color: var(--ob-ink); background: var(--ob-paper); border: 1px solid #c9d4dd; border-radius: .45rem; }
.ob-form-input:hover { border-color: #a9b9c6; }
.ob-form-input:focus { outline: 2px solid var(--ob-accent); outline-offset: 1px; border-color: var(--ob-accent); }
textarea.ob-form-input { min-height: 5rem; line-height: 1.5; resize: vertical; }
/* A field as wide as the answer it expects: a headcount in a 46rem box reads as a mistake. */
.ob-form-input-narrow { max-width: 9rem; }
.ob-form-input-mid { max-width: 18rem; }

.ob-form-choices { display: grid; grid-template-columns: repeat(var(--ob-cols, 1), minmax(0, 1fr)); gap: .15rem .75rem; }
.ob-form-choices-inline { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.ob-form-choice { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .45rem .6rem; min-height: 2.5rem;
                  cursor: pointer; border: 1px solid transparent; border-radius: .45rem; }
.ob-form-choice:hover { background: #f1f5f8; }
.ob-form-choice input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--ob-accent); }
/* A yes/no the template draws as one tick box ("Use my primary contacts"): as wide as its words. */
.ob-form-tick { display: inline-flex; margin-left: -.6rem; }
/* The chosen one is visibly chosen without reading the control — the difference between a list of
   options and an answer. */
.ob-form-choice:has(input:checked) { font-weight: 600; background: var(--ob-accent-soft); border-color: var(--ob-accent-line); }
.ob-form-choice:has(input:focus-visible) { outline: 2px solid var(--ob-accent); outline-offset: 1px; }
/* Whatever colCount a template asked for, a narrow window gets one column. */
@media (max-width: 34rem) { .ob-form-choices { grid-template-columns: 1fr; } }

/* A plain panel groups on screen only, so it is drawn as a rule down the side rather than a box: a box
   would suggest it owns its own answers, which it does not. */
.ob-form-group { margin: 1.5rem 0; padding: 0 0 0 1rem; border: 0; border-left: 3px solid var(--ob-line); }
.ob-form-group > legend { float: none; width: auto; margin: 0 0 .5rem; padding: 0; font-size: 1.1rem; font-weight: 700;
                          color: var(--ob-ink); }

/* A multipletext DOES own a namespace, so it is a box. Its items are short, so they sit in columns. */
.ob-form-multi { margin: 1.25rem 0; padding: .9rem 1rem .25rem; background: var(--ob-paper);
                 border: 1px solid var(--ob-line); border-radius: .6rem; }
.ob-form-multi > .ob-form-group-label { margin-bottom: .6rem; }
.ob-form-multi-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1rem; }
.ob-form-multi-items .ob-form-q { margin-bottom: .9rem; }

/* Repeating groups. The row number is the only thing that tells someone which of five identical
   blocks of fields they are typing into, so it is a badge rather than a grey digit. */
.ob-form-panel { margin: 1.5rem 0; }
.ob-form-rows { display: flex; flex-direction: column; gap: .75rem; }
.ob-form-row { padding: .65rem .9rem 1rem; background: var(--ob-paper); border: 1px solid var(--ob-line); border-radius: .6rem; }
.ob-form-row-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem;
                    margin: 0 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--ob-line); }
/* A row's title — its caption ("Firewall · Fortinet · Main firewall", "After Hours") or its kind and number
   ("Device 2"). One line; a long one is cut short rather than wrapped. */
.ob-form-row-number { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
                      font-size: 1rem; font-weight: 700; line-height: 1.6rem; color: var(--ob-ink); }
.ob-form-empty { margin: .25rem 0 0; font-size: .9rem; font-style: italic; color: var(--ob-quiet); }
.ob-form-panel:has(> .ob-form-rows > .ob-form-row) > .ob-form-empty { display: none; }

.ob-form-row-remove, .ob-form-add { font: inherit; font-size: .85rem; padding: .4rem .9rem; border-radius: 1.2rem; cursor: pointer;
                                    color: var(--ob-quiet); background: transparent; border: 1px solid var(--ob-line); }
.ob-form-row-remove:hover:not(:disabled) { color: var(--ob-bad); background: #fdf1f0; border-color: #e5b6b2; }
.ob-form-add { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; min-height: 2.5rem; font-weight: 600;
               color: var(--ob-accent-ink); background: var(--ob-accent-soft); border-color: var(--ob-accent-line); }
.ob-form-add:hover:not(:disabled) { background: #f7ddc9; }
.ob-form-add-sign { font-size: 1.15em; line-height: 1; }
.ob-form-row-remove:disabled, .ob-form-add:disabled { opacity: .45; cursor: not-allowed; }
.ob-form-row-remove:focus-visible, .ob-form-add:focus-visible { outline: 2px solid var(--ob-accent); outline-offset: 1px; }

/* A password (design doc §8.5): a masked box with a Show button beside it, and one line saying it is sent
   only on Submit. The page's own note about passwords is a calm box, not a warning — it is information. */
.ob-form-secret-box { display: flex; align-items: stretch; gap: .5rem; max-width: 26rem; }
.ob-form-secret-box .ob-form-input { flex: 1; min-width: 0; }
.ob-form-reveal { flex: none; font: inherit; font-size: .85rem; font-weight: 600; padding: 0 .9rem; border-radius: .45rem; cursor: pointer;
                  color: var(--ob-accent-ink); background: var(--ob-accent-soft); border: 1px solid var(--ob-accent-line); }
.ob-form-reveal:focus-visible { outline: 2px solid var(--ob-accent); outline-offset: 1px; }
.ob-form-secret-note { margin: .3rem 0 0; font-size: .8rem; color: var(--ob-quiet); }
/* The password assurance: a box with a key in it (Chris, 2026-09-16). */
.ob-form-keybox { display: flex; align-items: flex-start; gap: .9rem; margin: 0 0 1.25rem; padding: .9rem 1.1rem;
                  color: var(--ob-ink); background: var(--ob-good-soft); border: 1px solid #bfe0ca; border-radius: .6rem; }
.ob-form-keybox-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem;
                       color: var(--ob-good); background: var(--ob-paper); border: 1px solid #bfe0ca; border-radius: .55rem; }
.ob-form-keybox p { align-self: center; }
.ob-form-vault { color: var(--ob-ink); background: var(--ob-paper); border: 1px solid var(--ob-line); border-left: 4px solid var(--ob-good); }

/* "Other" is a follow-on to the question above it, not a question of its own. */
.ob-form-other[hidden] { display: none; }
.ob-form-other { margin-top: -.65rem; margin-left: 1.5rem; padding-left: .85rem; border-left: 2px solid var(--ob-line); }
.ob-form-other .ob-form-label { font-size: .875rem; font-weight: 400; color: var(--ob-quiet); }
.ob-form-other .ob-form-input { max-width: 26rem; }

/* A row's cells in columns when there is room. Seven address fields one under the other is a page of
   scrolling for one location; on a phone they stack, which is the right answer there. Anything that
   opens a namespace of its own — a nested group, a multipletext — takes the whole width. */
@media (min-width: 40rem) {
    .ob-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1rem; align-items: start; }
    /* Side by side, fields line up part by part (Chris, 2026-09-16): each field takes four rows of the grid it sits
       in — label, help, box, and the note under a box — so a longer label or help, or a note under one box (the
       password's), never moves a neighbour's box. A field with no help or no note leaves that row empty. */
    .ob-form-row > .ob-form-q, .ob-form-multi-items > .ob-form-q {
        display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
    :is(.ob-form-row, .ob-form-multi-items) > .ob-form-q > * { grid-row: 3; }
    :is(.ob-form-row, .ob-form-multi-items) > .ob-form-q > .ob-form-label { grid-row: 1; align-self: end; }
    :is(.ob-form-row, .ob-form-multi-items) > .ob-form-q > .ob-form-help { grid-row: 2; }
    :is(.ob-form-row, .ob-form-multi-items) > .ob-form-q > .ob-form-secret-note { grid-row: 4; }
    .ob-form-row > .ob-form-row-head, .ob-form-row > .ob-form-group, .ob-form-row > .ob-form-panel,
    .ob-form-row > .ob-form-multi, .ob-form-row > .ob-form-html { grid-column: 1 / -1; }
    .ob-form-row > .ob-form-q { margin-bottom: .9rem; }
    .ob-form-row > .ob-form-q:has(textarea), .ob-form-row > .ob-form-q:has(.ob-form-choices) { grid-column: 1 / -1; }
}

/* The foot sticks so the save state and the Submit button stay in view down a long interview. It is
   opaque and full width: it used to be a shrink-wrapped island with the page showing through beside it. */
.ob-form-foot { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
                gap: 1rem; margin: 2rem -1rem 0; padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom, 0px));
                background: var(--ob-page); border-top: 1px solid var(--ob-line); box-shadow: 0 -6px 16px rgba(36, 55, 70, .07); }
.ob-form-status { display: inline-flex; align-items: center; gap: .45rem; min-height: 1.3rem; font-size: .875rem; color: var(--ob-quiet); }
.ob-form-status::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; opacity: 0; }
.ob-form-status:not([data-state="idle"])::before { opacity: 1; }
.ob-form-status[data-state="saving"], .ob-form-status[data-state="dirty"] { color: var(--ob-accent-ink); }
.ob-form-status[data-state="saved"] { color: var(--ob-good); }
/* A save that failed is the one thing on this page the customer must not miss. */
.ob-form-status[data-state="error"] { font-weight: 700; color: var(--ob-bad); }

.ob-form-submit { font: inherit; font-weight: 700; min-height: 2.9rem; padding: .65rem 1.8rem; border-radius: .45rem; cursor: pointer;
                  color: #fff; background: var(--ob-accent); border: 1px solid var(--ob-accent); }
.ob-form-submit:hover { background: #c65c22; border-color: #c65c22; }
.ob-form-submit:focus-visible { outline: 2px solid var(--ob-ink); outline-offset: 2px; }
.ob-form-cancel { font: inherit; min-height: 2.9rem; padding: .65rem 1.2rem; border-radius: .45rem; cursor: pointer;
                  color: var(--ob-ink); background: transparent; border: 1px solid var(--ob-line); }
.ob-form-cancel:hover { background: #eef2f5; }

/* The confirmation, in our own words. A <dialog> nobody has opened is display:none, so a browser
   without JavaScript simply posts the form as it always did. */
.ob-form-confirm { width: calc(100% - 2rem); max-width: 26rem; padding: 1.5rem; color: var(--ob-ink); background: var(--ob-paper);
                   border: 0; border-radius: .75rem; box-shadow: 0 18px 50px rgba(36, 55, 70, .3); }
.ob-form-confirm::backdrop { background: rgba(36, 55, 70, .45); }
.ob-form-confirm h2 { margin: 0 0 .6rem; font-size: 1.2rem; font-weight: 700; }
.ob-form-confirm p { margin: 0 0 1.25rem; color: var(--ob-quiet); }
.ob-form-confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }

.ob-form-done { max-width: 34rem; margin: 3rem auto; padding: 2.5rem 2rem; text-align: center; color: var(--ob-ink);
                background: var(--ob-paper); border: 1px solid var(--ob-line); border-radius: .75rem;
                box-shadow: 0 2px 12px rgba(36, 55, 70, .05); }
.ob-form-done h1 { margin: 0 0 .6rem; font-size: 1.6rem; }
.ob-form-done p { color: var(--ob-quiet); }
.ob-form-done-mark { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
                     margin-bottom: 1rem; font-size: 1.5rem; color: var(--ob-good); background: var(--ob-good-soft); border-radius: 50%; }
.ob-form-done-back { margin-bottom: 0; }
.ob-form-done-quiet .ob-form-done-mark { display: none; }

/* ── Form tasks on the staff side (2026-09-16) ──
   The interview became a SET of small tasks, and staff decide per question what the customer is asked
   before it is published. */
.ob-form-set { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
               padding: .9rem 0; border-top: 1px solid var(--cn-border, rgba(128, 128, 128, .25)); }
.ob-form-set:first-of-type { border-top: 0; }
.ob-form-set-tasks { margin: .5rem 0 0; padding-left: 1.2rem; font-size: .875rem; }
/* Tasks a set has gained since this onboarding's were created: an offer, set apart from the list it would add to. */
.ob-form-set.ob-form-topup { margin-bottom: .9rem; padding: .75rem .9rem; border: 1px solid var(--cn-clickable, #1398b2);
    border-radius: .45rem; background: var(--cn-clickable-hover-bg, #eaf0f6); }
/* The credentials a customer sent (design doc §8.5): what each one asks of the technician. */
.ob-credentials-table td { vertical-align: top; }
.ob-credential-todo { max-width: 32rem; }

/* ── "Request an update" on the customer page (design doc §8.7, 2026-09-16) ──
   A thin bar where the reporting begins: the date the page was last updated, and a small outlined button beside
   it. The button is a <details> summary, so the optional message opens without script. */
.cv-update { margin: 0 0 1rem; }
.cv-update-bar { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.cv-update-asof { padding-top: .3rem; font-size: .9rem; color: #5b7183; }
.cv-update-ask { flex: 0 1 26rem; }
.cv-update-ask[open] { flex-basis: 26rem; }
.cv-update-button { border: 1px solid #243746; color: #243746; background: #fff; font-weight: 600; }
.cv-update-ask > summary { list-style: none; float: right; }
.cv-update-ask > summary::-webkit-details-marker { display: none; }
.cv-update-button:hover, .cv-update-ask[open] > summary { border-color: #dc6b2c; color: #dc6b2c; }
.cv-update-button:disabled { opacity: .55; }
.cv-update-form { clear: both; display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; padding: .9rem 1rem;
                  background: #fff; border: 1px solid #dde3e8; border-radius: .75rem; box-shadow: 0 2px 12px rgba(36, 55, 70, .05); }
.cv-update-form label { font-weight: 600; font-size: .925rem; }
.cv-update-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.cv-update-send { background: #243746; color: #fff; font-weight: 600; }
.cv-update-send:hover { background: #dc6b2c; color: #fff; }
.cv-update-note { margin: .4rem 0 0; font-size: .9rem; color: #243746; }
.cv-muted-inline { font-weight: 400; font-size: .85rem; color: #5b7183; }

/* ── The customer surface at phone width (2026-09-16) ──
   A 16px gutter rather than 24px, and the cards' own padding with it, so a form field is not squeezed
   into the middle third of a 390px screen. The task table's negative margins follow the padding. */
@media (max-width: 36rem) {
    .cv-header-inner, .cv-main, .cv-footer { padding-left: 1rem; padding-right: 1rem; }
    .cv-card, .cv-section, .ob-forms-cta { padding-left: 1rem; padding-right: 1rem; }
    .cv-table-wrap { margin-left: -1rem; margin-right: -1rem; }
    .cv-table th:first-child, .cv-table td:first-child { padding-left: 1rem; }
    .cv-table th:last-child, .cv-table td:last-child { padding-right: 1rem; }
    .cv-main { padding-top: 1.5rem; }
    .ob-form-head h1 { font-size: 1.5rem; }
    .ob-form-foot { margin-left: -1rem; margin-right: -1rem; }
    .ob-form-submit { flex: 1; text-align: center; }
    .ob-forms-row { flex-wrap: wrap; }
    /* A phone has one column; a mid-width field there is only a ragged right edge. A count stays
       narrow, because 9rem still says "a number, not a sentence". */
    .ob-form-input-mid { max-width: 100%; }
}
