/* ==========================================================================
   FEOS theme — sits on top of EspoCRM's "Espo" theme (top navbar).
   FEP brand: navy #0f1b26, accent blue #0a72ba (actions), sky #2090d0 (highlights),
   Hanken Grotesk throughout.
   ========================================================================== */

@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-style: normal; font-display: swap;
    src: url('../fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-style: normal; font-display: swap;
    src: url('../fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-style: normal; font-display: swap;
    src: url('../fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-style: normal; font-display: swap;
    src: url('../fonts/hanken-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 800; font-style: normal; font-display: swap;
    src: url('../fonts/hanken-grotesk-latin-800-normal.woff2') format('woff2'); }

:root {
    --feos-ink: #0f1b26;
    --feos-ink-2: #16283a;
    --feos-accent: #0a72ba;
    --feos-accent-dark: #075a93;
    --feos-accent-soft: #e8f3fb;
    --feos-sky: #2090d0;
    --feos-canvas: #f3f6f9;
    --feos-line: #e1e7ee;
    --feos-muted: #5b6875;

    --font-family: 'Hanken Grotesk', Inter, Arial, sans-serif;
    --body-bg: var(--feos-canvas);
    --panel-bg: #ffffff;
    --panel-border-radius: 12px;
    --border-radius: 8px;
    --default-border-color: var(--feos-line);
    --panel-default-border: var(--feos-line);

    --brand-primary: var(--feos-accent);
    --brand-primary-5: #0866a8;
    --brand-primary-10: var(--feos-accent-dark);
    --brand-primary-lighten-10: #3a8fcb;
    --brand-primary-lighten-30: #b9dcf2;
    --state-primary-bg: var(--feos-accent-soft);
    --state-primary-text: var(--feos-accent-dark);
    --state-primary-border: #b9dcf2;

    --btn-primary-bg: var(--feos-accent);
    --btn-primary-border: var(--feos-accent);
    --btn-primary-color: #ffffff;
    --btn-primary-hover-bg: var(--feos-accent-dark);
    --btn-primary-hover-border: var(--feos-accent-dark);
    --btn-primary-active-bg: #075a93;
    --btn-primary-active-border: #075a93;

    --link-color: var(--feos-accent);
    --link-hover-color: var(--feos-accent-dark);

    --navbar-bg: var(--feos-ink);
    --navbar-inverse-bg: var(--feos-ink);
    --navbar-inverse-bg-7: #16283a;
    --navbar-inverse-border: var(--feos-ink);
    --navbar-inverse-link-color: #e3e9ef;
    --navbar-inverse-link-hover-color: #ffffff;
    --navbar-inverse-link-hover-bg: #16283a;
    --navbar-inverse-link-active-bg: #1b3044;
    --navbar-inverse-link-icon-color: #8a96a3;
    --navbar-inverse-toggle-hover-bg: #16283a;
    --navbar-inverse-color: #c3ccd6;
    --navbar-link-color: #e3e9ef;
    --navbar-link-icon-color: #8a96a3;
    --navbar-link-hover-color: #ffffff;
    --navbar-link-hover-bg: #16283a;
    --navbar-link-active-bg: #1b3044;
}

body { font-family: var(--font-family); letter-spacing: 0.005em; }
h1, h2, h3, h4, .page-header h3 { font-family: var(--font-family); }

/* ---- Top navbar ------------------------------------------------------- */
#navbar .navbar, #navbar .navbar-inverse { background: var(--feos-ink); border-color: var(--feos-ink); box-shadow: none; }
#navbar .navbar-brand img, #navbar .navbar-logo-container img { max-height: 34px; width: auto; }
#navbar .navbar-nav > li > a { font-weight: 500; }
#navbar .tabs > li.active > a,
#navbar .tabs > li > a:focus { box-shadow: inset 0 -3px 0 var(--feos-accent); background: transparent; color: #fff; }
#navbar .tabs > li.active > a .short-label-text,
#navbar .tabs > li.active > a .full-label { color: #fff; }

/* ---- Cards, panels and page header ------------------------------------ */
.panel { border-radius: var(--panel-border-radius); border-color: var(--feos-line);
    box-shadow: 0 1px 2px rgba(17,17,17,.04), 0 4px 16px rgba(17,17,17,.04); }
.panel > .panel-heading { border-top-left-radius: var(--panel-border-radius); border-top-right-radius: var(--panel-border-radius); }
.panel-heading .panel-title { font-weight: 600; letter-spacing: .01em; }
.page-header h3, .header-title { font-weight: 700; }
.btn { border-radius: 8px; font-weight: 600; }
.btn-primary { box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.form-control { border-radius: 8px; }
.label { border-radius: 999px; font-weight: 600; padding: .3em .75em; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { box-shadow: inset 0 -3px 0 var(--feos-accent); }
.list > table > thead > tr > th { font-weight: 600; color: var(--feos-muted); }

/* ---- Hide product references that advisers don't need ------------------ */
#navbar a[href="#About"], .dropdown-menu a[href="#About"] { display: none !important; }

/* The licence notice must stay (AGPLv3 §7b, "EspoCRM" word) — kept small and discreet. */
body > footer, footer .credit { font-size: 11px; color: #9aa5b1; opacity: .8; }
body > footer a { color: inherit; }

/* ==========================================================================
   Login screen
   ========================================================================== */
body:has(.feos-login) { background: #0f1b26; }
body:has(.feos-login) > footer { position: fixed; bottom: 8px; right: 16px; left: auto; width: auto; text-align: right; z-index: 11; opacity: .6; }
.feos-login { display: flex; position: fixed; inset: 0; overflow-y: auto; z-index: 10; font-family: var(--font-family);
    background: #0f1b26 url("../img/login-bg.jpg") center / cover no-repeat; }
.feos-login::before { content: ""; position: fixed; inset: 0; background: linear-gradient(90deg, rgba(8,8,10,.55) 0%, rgba(8,8,10,.15) 55%, rgba(8,8,10,.35) 100%); pointer-events: none; }
.feos-login-hero { position: relative; flex: 1 1 55%; color: #fff; display: flex; align-items: center; padding: 64px 7vw; }
.feos-login-hero-inner { max-width: 520px; }
.feos-login-logo { width: min(420px, 80%); height: auto; margin-bottom: 36px; display: block; }
.feos-login-kicker { color: var(--feos-sky); text-transform: uppercase; letter-spacing: .32em; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.feos-login-slogan { font-size: 20px; line-height: 1.5; color: #dfe6ed; font-style: italic; margin: 0; }
.feos-login-form-side { position: relative; flex: 1 1 45%; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.feos-login-card { width: 100%; max-width: 400px; background: rgba(255,255,255,.96); border-radius: 16px; padding: 36px 32px 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,.45); border-top: 3px solid var(--feos-sky); backdrop-filter: blur(6px); }
.feos-login-card h2 { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: var(--feos-ink); }
.feos-login-sub { color: var(--feos-muted); margin: 0 0 22px; }
.feos-login-card .panel-body { padding: 0; }
.feos-login-card label { font-weight: 600; color: var(--feos-ink); }
.feos-login-card .form-control { height: 44px; font-size: 15px; }
.feos-login-card [data-role="password-input-container"] { position: relative; }
.feos-login-card [data-role="password-input-container"] a { position: absolute; right: 12px; top: 12px; }
.feos-login-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.feos-login-actions .btn-primary { height: 44px; padding: 0 28px; font-size: 15px; font-weight: 600; }
.feos-login-help { margin: 22px 0 0; color: #8a96a3; font-size: 13px; }
.feos-login-help a { color: var(--feos-accent-dark); font-weight: 600; }
@media (max-width: 860px) {
    .feos-login { flex-direction: column; }
    .feos-login-hero { padding: 40px 24px 8px; flex: 0 0 auto; }
    .feos-login-logo { width: 260px; margin-bottom: 18px; }
    .feos-login-form-side { flex: 1 0 auto; align-items: flex-start; }
}

/* ==========================================================================
   "My desk" overview dashlet
   ========================================================================== */
.feos-overview { padding: 4px 2px; }
.feos-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feos-kpi { display: block; border: 1px solid var(--feos-line); border-radius: 12px; padding: 14px 16px; background: #fff;
    color: var(--feos-ink); text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.feos-kpi:hover { border-color: var(--feos-accent); box-shadow: 0 4px 14px rgba(10,114,186,.12); }
.feos-kpi-label { font-size: 12px; font-weight: 600; color: var(--feos-muted); text-transform: uppercase; letter-spacing: .06em; }
.feos-kpi-value { font-size: 32px; font-weight: 700; line-height: 1.2; margin-top: 4px; }
.feos-kpi-sub { font-size: 12px; color: #8a96a3; }
.feos-kpi-alert .feos-kpi-value { color: var(--feos-accent-dark); }
.feos-pipeline-title { margin: 18px 0 8px; font-size: 12px; font-weight: 600; color: var(--feos-muted); text-transform: uppercase; letter-spacing: .06em; }
.feos-pipeline { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.feos-pipe { padding: 8px 6px 6px; border-radius: 10px; background: #FAF9F6; }
.feos-pipe-count { font-size: 20px; font-weight: 700; color: #c3ccd6; }
.feos-pipe.has-files .feos-pipe-count { color: var(--feos-ink); }
.feos-pipe-name { font-size: 11px; color: var(--feos-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feos-pipe-bar { height: 4px; border-radius: 4px; background: #e9eef3; margin-top: 6px; overflow: hidden; }
.feos-pipe-bar span { display: block; height: 100%; background: var(--feos-accent); border-radius: 4px; }
.feos-onhold { margin-top: 10px; font-size: 12px; color: var(--feos-muted); }
@media (max-width: 1100px) { .feos-pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); } .feos-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Case header ---------- */
.feos-file-head { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 4px 16px rgba(17,17,17,.04);
    padding: 20px 24px 18px; margin: 4px 0 18px; border-top: 4px solid var(--feos-accent); }
.feos-file-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.feos-file-kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--feos-muted); }
.feos-file-people { font-size: 24px; font-weight: 700; line-height: 1.25; margin-top: 4px; color: var(--feos-ink); }
.feos-file-people a { color: inherit; text-decoration: none; }
.feos-file-people a:hover { color: var(--feos-accent); }
.feos-amp { color: var(--feos-sky); margin: 0 10px; font-weight: 500; }
.feos-stage-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--feos-accent); color: #fff;
    font-weight: 600; font-size: 13px; white-space: nowrap; }
.feos-stage-pill.is-paused { background: #7b8794; }
.feos-file-steps { margin: 18px 0 4px; overflow-x: auto; }
.feos-steps { display: flex; min-width: 720px; }
.feos-step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.feos-step + .feos-step::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: #dfe6ed; }
.feos-step.is-done::before, .feos-step.is-current::before { background: var(--feos-accent); }
.feos-step-dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    border: 2px solid #d3dbe3; box-sizing: border-box; }
.feos-step.is-done .feos-step-dot { background: var(--feos-accent); border-color: var(--feos-accent); }
.feos-step.is-current .feos-step-dot { border: 4px solid var(--feos-accent); box-shadow: 0 0 0 4px rgba(10,114,186,.18); }
.feos-step-label { margin-top: 7px; font-size: 11px; line-height: 1.2; text-align: center; color: #96a1ad; padding: 0 2px; }
.feos-step.is-done .feos-step-label { color: var(--feos-ink); }
.feos-step.is-current .feos-step-label { color: var(--feos-ink); font-weight: 700; }
.feos-steps.is-paused { opacity: .55; }
.feos-file-reason { margin-top: 10px; font-size: 13px; color: var(--feos-muted); }
.feos-file-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
    margin-top: 16px; padding-top: 14px; border-top: 1px solid #e9eef3; }
.feos-next { border-left: 3px solid var(--feos-accent); padding-left: 12px; min-width: 240px; flex: 1 1 320px; }
.feos-next-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--feos-muted); }
.feos-next-text { font-size: 15px; font-weight: 500; color: var(--feos-ink); margin-top: 2px; }
.feos-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feos-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #F4F2EE;
    font-size: 12.5px; color: var(--feos-ink); white-space: nowrap; }
.feos-chip .fas, .feos-chip .far { font-size: 11px; opacity: .7; }
.feos-chip.is-danger { background: #FDECEA; color: #B42318; }
.feos-chip.is-warning { background: #e8f3fb; color: #075a93; }
.feos-chip.is-success { background: #E9F6EE; color: #1E7A45; }
@media (max-width: 700px) { .feos-file-top { flex-direction: column; } .feos-file-people { font-size: 20px; } .feos-file-head { padding: 16px; } }

/* ---------- UK address lookup ---------- */
.feos-postcode { margin-bottom: 8px; padding: 10px; border-radius: 10px; background: var(--feos-accent-soft); }
.feos-postcode-row { display: flex; gap: 8px; }
.feos-postcode-input { max-width: 190px; text-transform: uppercase; }
.feos-postcode-results { margin-top: 8px; }
.feos-postcode-msg { margin-top: 6px; }
.feos-postcode-input::placeholder { text-transform: none; }

/* Only mobile numbers are kept, so the phone-type picker is not needed */
.phone-number-block > .input-group-item:has(select[data-property-type="type"]) { display: none; }
.phone-number-block .phone-number, .phone-number-block input[type="text"] { border-top-left-radius: var(--border-radius, 6px); border-bottom-left-radius: var(--border-radius, 6px); }
/* Side card with nothing to show (e.g. "Adviser" while creating: it's set on save) */
.record-grid .side .panel:not(:has(.cell:not(.hidden-cell))):not(:has(.panel-heading)) { display: none; }

/* ---------- Checklists (kept for the guided fact finds) ---------- */
.feos-checklist { padding: 4px 2px 8px; }
.feos-check-note { font-size: 13px; color: var(--feos-muted); background: #f4f7fa; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.feos-check-note .fas { color: var(--feos-sky); margin-right: 6px; }
.feos-check-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--feos-muted); margin: 18px 0 10px; }
.feos-check-clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.feos-check-card { border: 1px solid var(--feos-line); border-radius: 12px; padding: 12px 14px; }
.feos-check-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.feos-check-count { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--feos-muted); background: #F4F2EE; border-radius: 999px; padding: 1px 9px; }
.feos-check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.feos-check-row { display: grid; grid-template-columns: 210px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid #e9eef3; }
.feos-check-label { font-weight: 600; color: var(--feos-ink); padding-top: 4px; }
.feos-chip-add { cursor: pointer; background: #fff; border: 1px dashed #cad3dc; color: var(--feos-muted); text-decoration: none; }
.feos-chip-add:hover, .feos-chip-add:focus { border-color: var(--feos-accent); color: var(--feos-accent-dark); text-decoration: none; }
.feos-warn { color: #075a93; }
@media (max-width: 700px) { .feos-check-row { grid-template-columns: 1fr; gap: 6px; } }

/* Opt-out and invalid toggles next to phone and email are not used at FEOS (marketing preferences are separate fields) */
.phone-number-block [data-property-type="optOut"], .phone-number-block [data-property-type="invalid"],
.email-address-block [data-property-type="optOut"], .email-address-block [data-property-type="invalid"] { display: none !important; }
.phone-number-block .phone-number, .email-address-block .email-address { border-top-right-radius: var(--border-radius, 6px) !important; border-bottom-right-radius: var(--border-radius, 6px) !important; }
.email-address-block, .phone-number-block { display: flex !important; width: 100%; }
.email-address-block > .email-address { flex: 1 1 auto; width: auto !important; }
.email-address-block > .input-group-btn { width: auto; }
.phone-number-block > .input-phone-number-item { flex: 1 1 auto; width: auto !important; }
.phone-number-block > .input-phone-number-item .iti { width: 100%; }


/* ---------- Take instructions (guided fact find) ---------- */
.feos-take { padding: 6px 0 40px; }
.feos-take-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.feos-take-back { font-size: 13px; color: var(--feos-muted); }
.feos-take-title { font-size: 24px; font-weight: 700; color: var(--feos-ink); }
.feos-take-file { font-weight: 500; color: var(--feos-muted); font-size: 18px; }
.feos-take-body { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.feos-take-steps { position: sticky; top: 70px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 4px 16px rgba(17,17,17,.04); }
.feos-take-step { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--feos-ink); text-decoration: none; font-weight: 500; cursor: pointer; }
.feos-take-step:hover { background: #f4f7fa; text-decoration: none; color: var(--feos-ink); }
.feos-take-step.is-active { background: var(--feos-accent-soft); color: var(--feos-accent-dark); }
.feos-take-num { flex: 0 0 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: #e9eef3; color: var(--feos-muted); }
.feos-take-step.is-done .feos-take-num { background: #2F9E63; color: #fff; }
.feos-take-step.is-part .feos-take-num { background: #F2C063; color: #0a4f80; }
.feos-take-step.is-active .feos-take-num { box-shadow: 0 0 0 3px rgba(10,114,186,.35); }
.feos-take-main { background: #fff; border-radius: 14px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 4px 16px rgba(17,17,17,.04); border-top: 4px solid var(--feos-accent); min-height: 400px; }
.feos-take-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--feos-sky); }
.feos-take-head h2 { margin: 2px 0 6px; font-size: 24px; font-weight: 700; }
.feos-take-head p { color: var(--feos-muted); max-width: 760px; }
.feos-take-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 10px 12px; background: #f4f7fa; border-radius: 10px; }
.feos-take-who > span:first-child { font-weight: 600; }
.feos-take-who-note { color: var(--feos-muted); font-size: 13px; margin-left: 6px; }
.feos-take-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 14px; align-items: start; }
.feos-take-box { border: 1px solid var(--feos-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.feos-take-box h4 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.feos-take-card { background: #FBFAF7; border: 1px solid #e9eef3; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.feos-take-card h4 { font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--feos-ink); }
.feos-take-card h4 .fas { color: var(--feos-accent); margin-right: 6px; }
.feos-take-card ol, .feos-take-card ul { margin: 0; padding-left: 18px; }
.feos-take-card li { margin-bottom: 6px; font-size: 13.5px; line-height: 1.45; }
.feos-take-card.is-tips { background: #FFF8EC; border-color: #F6E2BF; }
.feos-take-card.is-tips h4 .fas { color: var(--feos-sky); }
.feos-q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.feos-q-field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; color: var(--feos-ink); }
.feos-q-hint { font-size: 12px; color: var(--feos-muted); margin-top: 4px; }
.feos-q-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; margin: 6px 0; cursor: pointer; }
.feos-q-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--feos-accent); }
.feos-q-check.is-inline { display: inline-flex; margin-right: 16px; }
.feos-person-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.feos-person-name { font-weight: 700; font-size: 15px; }
.feos-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 12px; }
.feos-person-card { display: flex; justify-content: space-between; gap: 8px; border: 1px solid var(--feos-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.feos-role-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.feos-role-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef2f6; color: #3c4a58; }
.feos-role-chip a { color: inherit; opacity: .55; margin-left: 2px; text-decoration: none; }
.feos-role-chip a:hover { opacity: 1; }
.feos-role-chip.is-client { background: #111; color: #fff; }
.feos-role-chip.is-child { background: #E7F0FB; color: #1D4F8C; }
.feos-role-chip.is-exec { background: #FDEBD6; color: #9A4F06; }
.feos-role-chip.is-exec-alt { background: #FFF4E6; color: #0a72ba; }
.feos-role-chip.is-guard { background: #E6F4EC; color: #1E6B42; }
.feos-role-chip.is-guard-alt { background: #F0F8F3; color: #3F7A58; }
.feos-role-chip.is-benef { background: #F3EAFB; color: #6231A0; }
.feos-role-chip.is-warning { background: #FDECEA; color: #B42318; }
.feos-take-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.feos-adder { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.feos-adder .form-control { width: auto; min-width: 180px; flex: 1 1 180px; }
.feos-adder .feos-pct { flex: 0 0 90px; min-width: 90px; }
.feos-empty { padding: 4px 0 8px; }
.feos-take-note { background: #EEF4FF; color: #0a5f9c; border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; font-size: 13px; line-height: 1.45; }
.feos-take-note .fas { margin-right: 6px; opacity: .8; }
.feos-take-alert { background: #e8f3fb; color: #075a93; border-radius: 8px; padding: 8px 12px; margin: -6px 0 14px; font-size: 13px; }
.feos-take-ok { background: #E9F6EE; color: #1E7A45; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.feos-gift-list { margin-bottom: 6px; }
.feos-gift-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #e9eef3; }
.feos-gift-row a { color: var(--feos-muted); }
.feos-total { font-weight: 700; font-size: 13px; margin: 6px 0; }
.feos-total.is-ok { color: #1E7A45; }
.feos-total.is-bad { color: #B42318; }
.feos-take-table { width: 100%; font-size: 13.5px; }
.feos-take-table th { font-size: 12px; color: var(--feos-muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--feos-line); }
.feos-take-table td { padding: 8px 4px; border-bottom: 1px solid #eef2f6; }
.feos-finish-client { padding: 10px 0; border-bottom: 1px solid #eef2f6; }
.feos-check-msg { padding: 8px 12px; border-radius: 8px; margin: 8px 0 0; font-size: 13.5px; }
.feos-check-msg.is-error { background: #FDECEA; color: #B42318; }
.feos-check-msg.is-warn { background: #FFF6E8; color: #8A5A0B; }
.feos-finish { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.feos-take-nav { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--feos-line); }
@media (max-width: 1100px) { .feos-take-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
    .feos-take-body { grid-template-columns: 1fr; }
    .feos-take-steps { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .feos-take-step span:last-child { white-space: nowrap; }
    .feos-q-grid { grid-template-columns: 1fr; }
}
.feos-file-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
/* FEOS logo in the top bar: give it its own space so it never overlaps the first menu item */
#navbar .navbar-header { width: auto !important; min-width: 0; }
#navbar .navbar-logo-container { width: auto !important; padding: 0 22px 0 14px; display: flex; align-items: center; }
#navbar .navbar-logo-container .navbar-brand { width: auto !important; padding: 0 !important; display: flex; align-items: center; height: 100%; }
#navbar .navbar-logo-container img.logo { height: 30px !important; max-height: 30px; width: auto !important; }

/* ---------- Help centre ---------- */
.feos-help { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; padding: 6px 0 40px; }
.feos-help-nav { position: sticky; top: 70px; background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 4px 16px rgba(17,17,17,.04); max-height: calc(100vh - 90px); overflow-y: auto; }
.feos-help-title { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.feos-help-title .fas { color: var(--feos-sky); margin-right: 6px; }
.feos-help-search { margin-bottom: 10px; }
.feos-help-section { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--feos-muted); margin: 14px 0 6px; }
.feos-help-link { display: block; padding: 8px 10px; border-radius: 10px; color: var(--feos-ink); text-decoration: none; }
.feos-help-link span { display: block; font-weight: 600; }
.feos-help-link small { display: block; color: var(--feos-muted); line-height: 1.35; }
.feos-help-link:hover { background: #f4f7fa; text-decoration: none; color: var(--feos-ink); }
.feos-help-link.is-active { background: var(--feos-accent-soft); }
.feos-help-body { background: #fff; border-radius: 14px; padding: 28px 34px; box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 4px 16px rgba(17,17,17,.04); border-top: 4px solid var(--feos-sky); max-width: 980px; font-size: 15px; line-height: 1.6; }
.feos-help-body h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; }
.feos-help-body h1 + p { color: var(--feos-muted); font-size: 16px; }
.feos-help-body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; padding-top: 16px; border-top: 1px solid var(--feos-line); }
.feos-help-body h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.feos-help-body img { display: block; max-width: 100%; border-radius: 10px; border: 1px solid var(--feos-line); box-shadow: 0 6px 20px rgba(17,17,17,.08); margin: 12px 0 18px; cursor: zoom-in; }
.feos-help-body blockquote { margin: 12px 0; padding: 10px 14px; background: #FFF8EC; border-left: 4px solid var(--feos-sky); border-radius: 0 8px 8px 0; color: var(--feos-ink); }
.feos-help-body blockquote p { margin: 0; }
.feos-help-body code { background: #F4F2EE; padding: 1px 5px; border-radius: 4px; font-size: 90%; }
.feos-help-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.feos-help-body th, .feos-help-body td { border: 1px solid var(--feos-line); padding: 7px 10px; text-align: left; vertical-align: top; }
.feos-help-body th { background: #f4f7fa; }
.feos-help-body ol li, .feos-help-body ul li { margin-bottom: 6px; }
.feos-help-requests { margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--feos-line); }
.feos-help-request { display: block; padding: 7px 10px; border-radius: 10px; color: var(--feos-ink); text-decoration: none; }
.feos-help-request:hover { background: #f4f7fa; text-decoration: none; color: var(--feos-ink); }
.feos-help-request-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.feos-help-request-head b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feos-help-request small { display: block; color: var(--feos-muted); line-height: 1.35; }
.feos-help-none { font-size: 13px; line-height: 1.4; margin: 0 0 8px; }
.feos-help-all { display: block; padding: 6px 10px; font-size: 13px; }
.feos-help-ask { margin-top: 8px; }
#navbar .feos-help-icon > a { display: flex; align-items: center; height: 100%; padding: 0 10px; font-size: 18px; }
/* the notifications panel: shorter rows, so a long list is read at a glance (Peter, 3 Oct 2026) */
.notifications-panel .list-group-item, #notifications-panel .list-group-item { padding: 6px 12px; }
.notifications-panel .notification-list .item .text, #notifications-panel .item .text { line-height: 1.3; }
@media (max-width: 900px) { .feos-help { grid-template-columns: 1fr; } .feos-help-nav { position: static; max-height: none; } .feos-help-body { padding: 20px; } }
/* Top menu: tighter spacing so every item (including Academy and Help) fits on a laptop screen */
#navbar .navbar-nav.tabs > li > a { padding-left: 7px !important; padding-right: 7px !important; }
#navbar .navbar-nav.tabs > li > a .short-label, #navbar .navbar-nav.tabs > li > a .full-label { margin-left: 2px; }
.header-buttons [data-action="composeEmail"], .header-buttons [data-name="composeEmail"] { background: var(--feos-accent) !important; border-color: var(--feos-accent) !important; color: #fff !important; }

/* ---------- Take instructions: guidance on / off ---------- */
.feos-take-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feos-guide-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--feos-line, #dfe6ed); background: #fff;
    border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 13px; font-weight: 600; color: var(--feos-muted, #5b5f66); cursor: pointer; }
.feos-guide-toggle:hover { border-color: #2090d0; }
.feos-switch { width: 30px; height: 18px; border-radius: 999px; background: #cbd3dc; position: relative; transition: background .15s; }
.feos-switch span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.feos-guide-toggle.is-on { color: #111; }
.feos-guide-toggle.is-on .feos-switch { background: #0a72ba; }
.feos-guide-toggle.is-on .feos-switch span { left: 14px; }
.feos-take--quiet .feos-take-aside,
.feos-take--quiet .feos-take-head p,
.feos-take--quiet .feos-take-who-note,
.feos-take--quiet .feos-q-hint { display: none; }
.feos-take--quiet .feos-take-grid { grid-template-columns: minmax(0, 1fr); }

/* ---------- Contact: client card (partner, cases, start a case) ---------- */
.feos-client-chips { margin-top: 10px; }
.feos-client-head .feos-file-actions { gap: 8px; }
.feos-client-cases { margin-top: 16px; border-top: 1px solid var(--feos-line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.feos-client-case { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; background: #f8fafc;
    color: var(--feos-ink); text-decoration: none; }
.feos-client-case:hover, .feos-client-case:focus { background: #e8f3fb; text-decoration: none; color: var(--feos-ink); }
.feos-client-case.is-done { opacity: .7; }
.feos-client-case-name { font-weight: 600; flex: 1 1 auto; min-width: 0; }
.feos-client-case-meta { color: var(--feos-muted); font-size: 13px; }
.feos-stage-pill.is-small { padding: 3px 10px; font-size: 12px; }
@media (max-width: 700px) { .feos-client-case { flex-wrap: wrap; } .feos-client-head .feos-file-actions { align-items: stretch; } }

/* ================= Client portal (client.fepfs.co.uk) ================= */
.feos-portal { max-width: 1060px; margin: 0 auto; padding: 4px 0 30px; }
.feos-portal-loading { color: var(--feos-muted); padding: 40px 0; text-align: center; }
.feos-portal-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    background: linear-gradient(135deg, #0f1b26 0%, #16324a 100%); color: #fff; border-radius: 14px;
    border-top: 3px solid #2090d0; padding: 16px 20px; margin-bottom: 14px; }
.feos-portal-bar h1 { font-size: 22px; font-weight: 700; margin: 2px 0 0; color: #fff; }
.feos-portal-kicker { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #2090d0; }
.feos-portal-card .feos-portal-kicker { color: #0a72ba; }
.feos-portal-adviser { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feos-portal-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(32,144,208,.5); }
.feos-portal-adviser-who { display: flex; flex-direction: column; line-height: 1.3; }
.feos-portal-adviser-who strong { color: #fff; font-size: 15px; }
.feos-portal-adviser-who small { color: #c5ced8; font-size: 12px; }
.feos-portal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.feos-portal-nav { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 14px; padding: 8px;
    box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 4px 16px rgba(17,17,17,.04); position: sticky; top: 12px; }
.feos-portal-navitem { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; text-align: left;
    padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--feos-ink); cursor: pointer; }
.feos-portal-navitem .fas { width: 16px; color: #b3bec9; font-size: 13px; }
.feos-portal-navitem:hover { background: #f8fafc; }
.feos-portal-navitem.is-active { background: #e8f3fb; color: #075a93; }
.feos-portal-navitem.is-active .fas { color: #0a72ba; }
.feos-portal-navlabel { flex: 1 1 auto; }
.feos-portal-navcount { font-size: 12px; font-weight: 700; color: var(--feos-muted); background: #eef2f6; border-radius: 999px; padding: 1px 8px; }
.feos-portal-card { background: #fff; border-radius: 14px; padding: 20px 22px; margin-bottom: 14px;
    box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 4px 16px rgba(17,17,17,.04); }
.feos-portal-card h2 { font-size: 19px; font-weight: 700; margin: 4px 0 6px; color: var(--feos-ink); }
.feos-portal-card p { color: var(--feos-muted); font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.feos-portal-picker { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.feos-portal-tab { border: 1px solid var(--feos-line); background: #fff; border-radius: 999px; padding: 7px 14px;
    font-size: 13px; font-weight: 600; color: var(--feos-muted); cursor: pointer; }
.feos-portal-tab.is-active { background: #111; border-color: #111; color: #fff; }
.feos-portal-status-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.feos-portal-pill { background: #e8f3fb; color: #075a93; border-radius: 999px; padding: 5px 12px; font-size: 12px;
    font-weight: 700; white-space: nowrap; }
.feos-portal-todo { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.feos-portal-steps { list-style: none; margin: 10px 0 0; padding: 12px 0 0; display: grid; gap: 1px;
    border-top: 1px solid var(--feos-line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feos-portal-steps li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #8a96a3; padding: 3px 0; }
.feos-portal-steps li span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #d9e0e7; flex: none; }
.feos-portal-steps li.is-done { color: var(--feos-muted); }
.feos-portal-steps li.is-done span { background: #2090d0; border-color: #2090d0; }
.feos-portal-steps li.is-now { color: var(--feos-ink); font-weight: 700; }
.feos-portal-steps li.is-now span { background: #0a72ba; border-color: #0a72ba; box-shadow: 0 0 0 4px rgba(10,114,186,.16); }
.feos-portal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.feos-portal-btn { display: inline-flex; align-items: center; gap: 7px; background: #0a72ba; color: #fff; border: 1px solid #0a72ba;
    border-radius: 8px; padding: 11px 18px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.feos-portal-btn:hover, .feos-portal-btn:focus { background: var(--feos-accent-dark, #075a93); color: #fff; text-decoration: none; }
.feos-portal-btn[disabled] { opacity: .45; cursor: default; }
.feos-portal-btn.is-ghost { background: #fff; color: var(--feos-ink); border-color: var(--feos-line); }
.feos-portal-bar .feos-portal-btn.is-ghost { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.25); }
.feos-portal-btn.is-small { padding: 8px 13px; font-size: 13px; }
.feos-portal-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; background: #f8fafc;
    margin-top: 8px; color: var(--feos-ink); text-decoration: none; }
.feos-portal-row:hover { background: #e8f3fb; color: var(--feos-ink); text-decoration: none; }
.feos-portal-row.is-plain { background: transparent; border-bottom: 1px solid var(--feos-line); border-radius: 0; }
.feos-portal-row-icon { width: 30px; height: 30px; border-radius: 50%; background: #eef2f6; color: #0a72ba; flex: none;
    display: flex; align-items: center; justify-content: center; font-size: 13px; }
.feos-portal-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.feos-portal-row-main small { color: var(--feos-muted); font-size: 12px; }
.feos-portal-row-value { font-weight: 700; white-space: nowrap; }
.feos-portal-row-go { color: var(--feos-accent); }
.feos-portal-needs { display: grid; gap: 10px; margin-top: 14px; }
.feos-portal-need { display: flex; gap: 12px; padding: 14px; border: 1px solid #E4E8F0; border-radius: 12px; background: #fff; }
.feos-portal-need.is-done { background: #F6F8FB; border-color: #EDF0F5; }
.feos-portal-need-mark { flex: 0 0 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; background: #0a5f9c; color: #fff; font-size: 12px; }
.feos-portal-need.is-done .feos-portal-need-mark { background: #2E9B5B; }
.feos-portal-need-main strong { display: block; margin-bottom: 4px; }
.feos-portal-need.is-done .feos-portal-need-main strong { text-decoration: line-through; opacity: .7; }
.feos-portal-need-main p { margin: 0 0 8px; color: #55607A; font-size: 14px; line-height: 1.5; }
.feos-portal-need.is-done .feos-portal-need-main p { margin-bottom: 0; }
.feos-portal-doc { position: relative; }
.feos-portal-alt { display: inline-block; font-size: 12px; color: var(--feos-muted); margin: 2px 0 0 54px; text-decoration: underline; }
.feos-portal-empty { color: var(--feos-muted); font-size: 14px; margin: 8px 0 0; }
.feos-portal-note { font-size: 12px; color: #8a96a3; margin-top: 10px; }
/* Your financial picture: the BFC / SoL tiles and the Financial Fitness Test */
.feos-portal-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 16px; }
.feos-portal-tile { background: #f8fafc; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.feos-portal-tile small { color: #0a72ba; font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.feos-portal-tile strong { font-size: 22px; color: var(--feos-ink); margin: 2px 0; }
.feos-portal-tile span { font-size: 12px; color: var(--feos-muted); line-height: 1.35; }
.feos-portal-list { padding-left: 20px; color: var(--feos-ink); font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.feos-portal-list li { margin-bottom: 6px; }
.feos-portal-drop { display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px dashed #d5dde5;
    border-radius: 12px; padding: 20px 16px; margin: 12px 0; cursor: pointer; color: var(--feos-muted); text-align: center; }
.feos-portal-drop:hover { border-color: #0a72ba; color: var(--feos-ink); }
.feos-portal-drop .fas { font-size: 20px; color: #0a72ba; }
.feos-portal-drop input[type="file"] { display: none; }
.feos-portal-field { margin-bottom: 12px; }
.feos-portal-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.feos-portal-select, .feos-portal-textarea { width: 100%; border: 1px solid var(--feos-line); border-radius: 8px;
    padding: 11px 12px; font-size: 16px; background: #fff; }
.feos-portal-chosen { list-style: none; margin: 0 0 12px; padding: 0; }
.feos-portal-chosen li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px;
    padding: 7px 10px; background: #f8fafc; border-radius: 8px; margin-bottom: 6px; word-break: break-all; }
.feos-portal-x { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--feos-muted); cursor: pointer; }
.feos-portal-sent { margin-top: 16px; border-top: 1px solid var(--feos-line); padding-top: 10px; }
.feos-portal-switch { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--feos-line);
    font-size: 15px; font-weight: 600; cursor: pointer; margin: 0; }
.feos-portal-switch input { width: 20px; height: 20px; accent-color: #0a72ba; }
@media (max-width: 900px) {
    .feos-portal { padding: 0 0 24px; }
    .feos-portal-bar { border-radius: 12px; padding: 14px 16px; }
    .feos-portal-bar h1 { font-size: 20px; }
    .feos-portal-layout { grid-template-columns: minmax(0, 1fr); }
    .feos-portal-nav { order: -1; position: static; flex-direction: row; flex-wrap: wrap; padding: 6px; gap: 6px; }
    .feos-portal-navitem { flex: 1 1 calc(50% - 6px); justify-content: flex-start; padding: 9px 10px; font-size: 13px; background: #f8fafc; }
    .feos-portal-navitem .fas { width: auto; }
    .feos-portal-navlabel { flex: 0 1 auto; white-space: nowrap; }
    .feos-portal-card { padding: 16px; border-radius: 12px; }
    .feos-portal-steps { grid-template-columns: minmax(0, 1fr); }
    .feos-portal-adviser { width: 100%; }
    .feos-portal-actions { flex: 1 1 auto; }
    .feos-portal-actions .feos-portal-btn { flex: 1 1 90px; justify-content: center; }
}

/* ---------- Footer (both FEOS and the portal) ---------- */
body > footer.feos-footer { padding: 14px 16px 18px; background: transparent; }
.feos-footer-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.feos-footer-line { font-size: 10.5px; line-height: 1.5; color: #8294a6; margin: 0 0 4px; }
.feos-footer-line a { color: inherit; font: inherit; text-decoration: none; }
.feos-footer-line a:hover, .feos-footer-line a:focus { color: inherit; text-decoration: none; }

/* Portal sign-in extras */
.feos-login-points { margin-top: 18px; max-width: 460px; }
.feos-login-points p { color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.55; margin: 0 0 6px; }
.feos-login-cta { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 13px; color: rgba(255,255,255,.6); }
.feos-login-cta a { color: #E8A33F; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(232,163,63,.4); }
.feos-login-cta a:hover { color: #fff; border-color: #fff; text-decoration: none; }
@media (max-width: 900px) { .feos-login-points, .feos-login-cta { display: none; } }

/* ---------- FEOS watermark behind the app ---------- */
body { background-image: url("../img/feos-watermark.png"); background-repeat: no-repeat;
    background-position: center 90px; background-size: min(64vw, 720px); background-attachment: fixed; }
@media (max-width: 700px) { body { background-size: 120vw; background-position: center 140px; } }
.feos-portal-btn.is-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.feos-portal-btn.is-whatsapp:hover, .feos-portal-btn.is-whatsapp:focus { background: #1EBE5B; border-color: #1EBE5B; color: #fff; }
.feos-portal-btn .fab { font-size: 15px; }
.feos-adder-inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.feos-adder-inline select { width: auto; min-width: 150px; }
.feos-people-panel .feos-person-card { background: #f8fafc; }

/* Ask for help: one button on every Hub page, records the request in Support */
.feos-ask-btn { position: fixed; right: 18px; bottom: 18px; z-index: 1035; display: inline-flex; align-items: center;
    gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: #0a5f9c; color: #fff;
    font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(20, 35, 70, .28); cursor: pointer; }
.feos-ask-btn:hover { background: #163059; color: #fff; }
.feos-ask-btn .fas { font-size: 15px; }
@media (max-width: 640px) {
    .feos-ask-btn { right: 12px; bottom: 12px; padding: 10px; }
    .feos-ask-btn span:last-child { display: none; }
}

/* "What we need from you": the client ticks an item off themselves */
.feos-portal-need-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feos-portal-tick { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
    border: 1px solid #C9D2E2; background: #fff; color: #0a5f9c; font-size: 13px; font-weight: 600; cursor: pointer; }
.feos-portal-tick:hover { border-color: #0a5f9c; background: #F4F7FD; }
.feos-portal-tick[disabled] { opacity: .5; cursor: default; }
.feos-portal-need.is-done .feos-portal-tick { border-color: #DCE3EC; color: #55607A; font-weight: 500; }

/* ---------- First login: the five-step wizard (#FeosOnboarding) ---------- */
/* In the wizard: no tabs, no help button, no avatar — but the ⋮ menu stays, it holds Log out. */
body.feos-locked #navbar .tab-list, body.feos-locked #navbar .navbar-left-container,
body.feos-locked #navbar .global-search-container, body.feos-locked #navbar .quick-create-container,
body.feos-locked .feos-ask-btn, body.feos-locked .feos-me-avatar { display: none !important; }
body.feos-locked #navbar .menu-container .dropdown-menu > li:not(.divider) { display: none; }
body.feos-locked #navbar .menu-container .dropdown-menu > li:has(> a[data-name="logout"]),
body.feos-locked #navbar .menu-container .dropdown-menu > li:has(> a[href="#logout"]) { display: block; }

.feos-onb { max-width: 900px; margin: 0 auto 60px; }
.feos-onb-top { padding: 4px 0 18px; }
.feos-onb-brand { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #8A93A6;
    margin-bottom: 14px; }
.feos-onb-progress { display: flex; gap: 4px; }
.feos-onb-pip { flex: 1; display: flex; flex-direction: column; gap: 6px; align-items: center;
    border-top: 3px solid #E3E8F0; padding-top: 9px; color: #8A93A6; font-size: 12px; }
.feos-onb-pip.is-now { border-top-color: #0a5f9c; color: #0f1b26; font-weight: 600; }
.feos-onb-pip.is-done { border-top-color: #2090d0; color: #55607A; }
.feos-onb-pip-n { width: 22px; height: 22px; border-radius: 50%; background: #EEF1F7; color: inherit;
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.feos-onb-pip.is-now .feos-onb-pip-n { background: #0a5f9c; color: #fff; }
.feos-onb-pip.is-done .feos-onb-pip-n { background: #2090d0; color: #fff; }
@media (max-width: 640px) { .feos-onb-pip-t { display: none; } }

.feos-onb-card { background: #fff; border: 1px solid #E3E8F0; border-radius: 10px; padding: 28px 30px 24px;
    box-shadow: 0 2px 10px rgba(20, 35, 70, .05); }
.feos-onb-card h1 { margin: 0 0 8px; font-size: 26px; color: #0f1b26; }
.feos-onb-lead { font-size: 15px; color: #55607A; max-width: 62ch; margin-bottom: 22px; }
.feos-onb-sub { font-size: 13px; color: #55607A; max-width: 70ch; }
.feos-onb-h { font-size: 15px; color: #0f1b26; margin: 26px 0 10px; padding-top: 16px;
    border-top: 1px solid #EEF1F7; }
.feos-onb-actions { margin-top: 26px; padding-top: 18px; border-top: 1px solid #EEF1F7;
    display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.feos-onb-note { font-size: 13px; color: #8A93A6; }

.feos-onb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.feos-onb-field label { display: block; font-size: 13px; font-weight: 600; color: #0f1b26; margin-bottom: 4px; }
.feos-onb-field small { display: block; margin-top: 4px; font-size: 12px; }
.feos-onb-field textarea { font-family: inherit; }

.feos-onb-2fa { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 8px;
    background: #FDF6E6; border: 1px solid #F0E0B8; }
.feos-onb-2fa.is-on { background: #F1F8F2; border-color: #CFE6D3; }
.feos-onb-2fa .fas { font-size: 26px; color: #2090d0; margin-top: 2px; }
.feos-onb-2fa.is-on .fas { color: #3C8D50; }
.feos-onb-2fa p { margin: 6px 0 12px; color: #55607A; max-width: 60ch; }

.feos-onb-aside { margin-top: 24px; padding: 18px 20px; background: #F7F9FC; border-radius: 8px; }
.feos-onb-aside h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #8A93A6;
    margin: 0 0 8px; }
.feos-onb-aside h3 + ul + h3 { margin-top: 16px; }
.feos-onb-aside ul { margin: 0; padding-left: 18px; color: #55607A; font-size: 13.5px; }
.feos-onb-aside li { margin-bottom: 5px; }

.feos-onb-drop { border: 1px dashed #C9D2E2; border-radius: 8px; padding: 16px; background: #FCFDFF; }
.feos-onb-drop strong { display: block; color: #0f1b26; }
.feos-onb-drop small { display: block; margin: 4px 0 12px; }
.feos-onb-files { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.feos-onb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    background: #EEF1F7; color: #0f1b26; font-size: 12px; }
.feos-onb-chip.is-done { background: #E9F3EB; color: #2F6B3E; }

.feos-onb-docs { display: grid; gap: 18px; }
.feos-onb-doc h3 { font-size: 16px; color: #0f1b26; margin: 0 0 8px; }
.feos-onb-doc h3 small { color: #8A93A6; font-weight: 400; font-size: 12px; }
.feos-onb-doc-body { max-height: 300px; overflow-y: auto; padding: 16px 20px; background: #FCFDFF;
    border: 1px solid #E3E8F0; border-radius: 8px; font-size: 13.5px; color: #3A445C; }
.feos-onb-doc-body h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #0a5f9c;
    margin: 18px 0 6px; }
.feos-onb-doc-body h4:first-child { margin-top: 0; }
.feos-onb-doc-body p, .feos-onb-doc-body li { line-height: 1.55; }
.feos-onb-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #8A93A6; }

.feos-onb-tick { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 12px 14px;
    background: #F7F9FC; border-radius: 8px; font-weight: 500; color: #0f1b26; cursor: pointer; }
.feos-onb-tick.is-waiting { color: #8A93A6; cursor: default; }
.feos-onb-tick input { margin-top: 3px; }
.feos-onb-tick em { display: block; font-size: 12px; color: #8A93A6; font-style: normal; }

.feos-onb-sign { margin-top: 24px; padding-top: 18px; border-top: 1px solid #EEF1F7; }
.feos-onb-sign label { display: block; font-size: 13px; font-weight: 600; color: #0f1b26; margin-bottom: 6px; }
.feos-onb-signline { max-width: 420px; font-family: Georgia, 'Times New Roman', serif; font-size: 20px;
    padding: 10px 14px; height: auto; }

.feos-onb-price { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feos-onb-price-box { padding: 20px; border: 1px solid #E3E8F0; border-radius: 8px; background: #FCFDFF; }
.feos-onb-price-box.is-muted { background: #F7F9FC; }
.feos-onb-price-big { display: block; font-size: 24px; font-weight: 700; color: #0f1b26; }
.feos-onb-price-box span + span { display: block; color: #55607A; margin-top: 2px; }
.feos-onb-price-box small { display: block; margin-top: 10px; color: #8A93A6; }

.feos-onb-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feos-onb-tier { padding: 18px; border: 1px solid #E3E8F0; border-radius: 8px; background: #F7F9FC; color: #8A93A6; }
.feos-onb-tier h3 { font-size: 15px; margin: 0 0 8px; color: #55607A; }
.feos-onb-tier.is-now { background: #fff; border-color: #2090d0; color: #3A445C; }
.feos-onb-tier.is-now h3 { color: #0f1b26; }
.feos-onb-badge { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px;
    background: #2090d0; color: #fff; font-size: 11px; font-weight: 600; }

.feos-onb-done { text-align: center; }
.feos-onb-done .fa-check-circle { font-size: 44px; color: #3C8D50; margin-bottom: 12px; }
.feos-onb-done .feos-onb-lead { margin: 0 auto 8px; }
.feos-onb-done .feos-onb-actions { justify-content: center; }

/* Marketing hub (#FeosMarketing) — views/marketing.js */
.feos-mkt { padding: 4px 0 24px; }
.feos-mkt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.feos-mkt-head h1 { margin: 0 0 4px; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; color: var(--feos-ink); }
.feos-mkt-head p { margin: 0; font-size: 15px; line-height: 22px; color: var(--feos-muted); }
.feos-mkt-tabs { display: flex; gap: 4px; align-items: center; }
.feos-mkt-manage { margin-right: 12px; font-size: 13px; font-weight: 700; color: #075a93; }
.feos-mkt-tabs button { height: 40px; padding: 0 16px; border: 1px solid var(--feos-line); border-radius: 8px; background: #fff; color: #3c4a58; font-size: 14px; font-weight: 500; }
.feos-mkt-tabs button.is-active { background: var(--feos-ink); border-color: var(--feos-ink); color: #fff; font-weight: 700; }
.feos-mkt-body { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 16px; height: calc(100vh - 200px); min-height: 560px; }
.feos-mkt-find, .feos-mkt-item, .feos-mkt-other { background: #fff; border: 1px solid var(--feos-line); border-radius: 16px; display: flex; flex-direction: column; min-height: 0; }
.feos-mkt-find { overflow-y: auto; }
.feos-mkt-other { grid-column: 1 / -1; padding: 28px 32px; display: block; }
.feos-mkt-other h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.feos-mkt-other p { margin: 0; color: #3c4a58; font-size: 15px; max-width: 640px; }
.feos-mkt-filters { padding: 16px 16px 12px; border-bottom: 1px solid var(--feos-line); display: flex; flex-direction: column; gap: 12px; }
.feos-mkt-filters > label { font-size: 13px; font-weight: 700; color: #3c4a58; margin: 0 0 -6px; }
.feos-mkt-search { height: 44px; border-radius: 8px; font-size: 15px; }
.feos-mkt-groups { display: flex; flex-direction: column; gap: 12px; }
.feos-mkt-group-label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--feos-muted); margin-bottom: 6px; }
.feos-mkt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feos-mkt-chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--feos-line); background: #fff; color: #3c4a58; font-size: 13px; font-weight: 500; }
.feos-mkt-chip:hover { border-color: #c5ced8; }
.feos-mkt-chip.is-on { background: var(--feos-ink); border-color: var(--feos-ink); color: #fff; }
.feos-mkt-count { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--feos-muted); }
.feos-mkt-clear { height: 32px; padding: 0 8px; border: 0; background: transparent; color: #075a93; font-size: 13px; font-weight: 700; }
.feos-mkt-list { flex: 0 0 auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.feos-mkt-row { width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: #fff; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.feos-mkt-row:hover { background: #f4f7fa; }
.feos-mkt-row.is-current { background: var(--feos-accent-soft); }
.feos-mkt-row-top { display: flex; align-items: center; gap: 8px; width: 100%; }
.feos-mkt-row-name { flex: 1 1 auto; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--feos-ink); }
.feos-mkt-row-type { flex-shrink: 0; padding: 2px 8px; border-radius: 4px; background: #eef2f6; font-size: 11px; line-height: 16px; font-weight: 700; color: #3c4a58; }
.feos-mkt-row-sum { font-size: 13px; line-height: 18px; color: var(--feos-muted); }
.feos-mkt-empty { padding: 16px; font-size: 14px; color: var(--feos-muted); }
.feos-mkt-item-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--feos-line); display: flex; flex-direction: column; gap: 8px; }
.feos-mkt-kicker { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .24em; color: var(--feos-muted); }
.feos-mkt-item-head h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 700; color: var(--feos-ink); }
.feos-mkt-sum { font-size: 15px; line-height: 22px; color: #3c4a58; }
.feos-mkt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feos-mkt-tags span { padding: 3px 10px; border-radius: 999px; background: #eef2f6; font-size: 12px; line-height: 18px; color: #3c4a58; }
.feos-mkt-item-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.feos-mkt-note { padding: 14px 16px; border-radius: 8px; background: #FDF6E6; border: 1px solid #F0E0B8; font-size: 14px; line-height: 21px; color: #3c4a58; }
.feos-mkt-note-label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.feos-mkt-field { display: flex; flex-direction: column; gap: 6px; }
.feos-mkt-field-label { font-size: 13px; font-weight: 700; color: #3c4a58; }
.feos-mkt-subject { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--feos-line); background: #FAF9F6; font-size: 15px; line-height: 22px; }
.feos-mkt-text { padding: 16px 18px; border-radius: 8px; border: 1px solid var(--feos-line); background: #FAF9F6; font-size: 15px; line-height: 23px; white-space: pre-wrap; color: var(--feos-ink); user-select: text; }
.feos-mkt-hooks { display: flex; flex-wrap: wrap; gap: 6px; }
.feos-mkt-hooks span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--feos-line); font-size: 14px; line-height: 20px; }
.feos-mkt-tiles { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.feos-mkt-tile-wrap { display: flex; flex-direction: column; gap: 6px; }
.feos-mkt-tile { border-radius: 8px; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; }
.feos-mkt-tile-square { width: 180px; height: 180px; padding: 16px; background: #0f1b26; }
.feos-mkt-tile-story { width: 124px; height: 220px; padding: 26px 12px; background: #0f1b26; }
.feos-mkt-tile-kicker { font-size: 8px; line-height: 10px; font-weight: 700; letter-spacing: .24em; color: var(--feos-sky); }
.feos-mkt-tile-rule { width: 24px; height: 1px; background: var(--feos-sky); }
.feos-mkt-tile-head { flex: 1 1 auto; font-size: 17px; line-height: 20px; font-weight: 700; color: #fff; }
.feos-mkt-tile-story .feos-mkt-tile-head { font-size: 15px; line-height: 18px; }
.feos-mkt-tile-cta { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--feos-accent); color: #0f1b26; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.feos-mkt-tile-cap { font-size: 12px; color: var(--feos-muted); }
.feos-mkt-tile-idea { font-size: 13px; line-height: 19px; color: var(--feos-muted); max-width: 260px; }
.feos-mkt-actions { flex-shrink: 0; padding: 14px 24px; border-top: 1px solid var(--feos-line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.feos-mkt-copy { height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--feos-accent); color: #0f1b26; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.feos-mkt-copy:hover { background: var(--feos-accent-dark); }
.feos-mkt-mail { height: 48px; padding: 0 20px; border: 1px solid #c5ced8; border-radius: 8px; display: inline-flex; align-items: center; color: var(--feos-ink) !important; text-decoration: none !important; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.feos-mkt-mail:hover { background: #f4f7fa; }
.feos-mkt-id { margin-left: auto; font-size: 12px; color: var(--feos-muted); }
@media (max-width: 900px) {
    .feos-mkt-body { grid-template-columns: 1fr; height: auto; }
    .feos-mkt-find { overflow: visible; }
    .feos-mkt-list { max-height: 420px; overflow-y: auto; }
    .feos-mkt-item-body { overflow: visible; }
}
/* ==========================================================================
   My public profile and cards (#FeosMyProfile)
   ========================================================================== */
#navbar .feos-me-avatar > a { display: flex; align-items: center; height: 100%; padding: 0 10px; }
#navbar .feos-me-avatar img, #navbar .feos-me-avatar .avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--feos-sky); object-fit: cover; }
.feos-me { max-width: 1280px; }
/* one settings page, tabs on the left (Peter, 3 Oct 2026) */
.feos-me-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.feos-me-rail { position: sticky; top: 64px; background: #fff; border: 1px solid var(--feos-line); border-radius: 12px; padding: 14px 10px; }
.feos-me-who { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 4px 6px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--feos-line); }
.feos-me-who img, .feos-me-who .feos-me-nophoto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid var(--feos-sky); background: #24384a; margin-bottom: 6px; font-size: 28px; }
.feos-me-who b { font-size: 15px; } .feos-me-who small { color: var(--feos-muted); font-size: 12px; }
.feos-me-tab { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--feos-ink); text-decoration: none; margin-bottom: 2px; }
.feos-me-tab:hover { background: #f4f7fa; text-decoration: none; color: var(--feos-ink); }
.feos-me-tab.on { background: var(--feos-accent-soft); color: var(--feos-accent-dark); }
.feos-me-tab > .fas { width: 20px; text-align: center; font-size: 15px; color: var(--feos-sky); }
.feos-me-tab.on > .fas { color: var(--feos-accent-dark); }
.feos-me-tab b { display: block; font-size: 14px; } .feos-me-tab small { display: block; font-size: 11.5px; color: var(--feos-muted); line-height: 1.3; }
.feos-me-rail-note { font-size: 12px; color: var(--feos-muted); padding: 10px 12px 2px; border-top: 1px solid var(--feos-line); margin-top: 8px; }
.feos-me-welcome { background: #FFF8EC; border-left: 4px solid var(--feos-sky); border-radius: 0 10px 10px 0; padding: 12px 16px; margin-bottom: 16px; font-size: 14px; }
.feos-me-main > section[hidden] { display: none; }
@media (max-width: 900px) { .feos-me-layout { grid-template-columns: minmax(0, 1fr); } .feos-me-rail { position: static; }
    .feos-me-who { display: none; } .feos-me-tab small { display: none; } .feos-me-rail { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; } }
.feos-me-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin: 4px 0 18px; flex-wrap: wrap; }
.feos-me-head h3 { margin: 0 0 4px; font-weight: 700; }
.feos-me-sub { color: var(--feos-muted); }
.feos-me-url { margin-top: 6px; font-size: 13px; color: var(--feos-muted); }
.feos-me-badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.feos-me-badge.is-ok { background: #E9F6EE; color: #1E7A45; } .feos-me-badge.is-warn { background: #e8f3fb; color: #075a93; }
.feos-me-badge.is-muted { background: #e9eef3; color: var(--feos-muted); } .feos-me-badge.is-bad { background: #FDECEA; color: #B42318; }
.feos-me-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.feos-me-photo img, .feos-me-nophoto { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--feos-sky); background: #24384a; }
.feos-me-nophoto { display: flex; align-items: center; justify-content: center; color: #8a96a3; font-size: 40px; }
.feos-me-photo small { color: var(--feos-muted); max-width: 180px; }
.feos-me-photo input[type="file"] { display: none !important; }
.feos-me-problems { background: #e8f3fb; color: #0a4f80; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.feos-me-problems ul { margin: 6px 0 0; padding-left: 20px; }
.feos-me-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .feos-me-grid { grid-template-columns: minmax(0, 1fr); } }
.feos-me-field { margin-bottom: 14px; } .feos-me-field label { font-weight: 600; display: block; margin-bottom: 4px; }
.feos-me-field small { display: block; color: var(--feos-muted); margin-top: 4px; font-size: 12px; }
.feos-me-check label { font-weight: 500; } .feos-me-check input { margin-right: 6px; }
.feos-me-tag { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.feos-me-tag.is-ok { background: #E9F6EE; color: #1E7A45; } .feos-me-tag.is-wait { background: #e8f3fb; color: #075a93; }
.feos-me-tag.is-new { background: #FFF3DC; color: #8a5a00; } .feos-me-tag.is-muted { background: #f0f0f0; color: #666; }
.feos-me-tag.is-bad { background: #fde8e8; color: #a11; }
.feos-me-socials { display: grid; gap: 8px; margin-bottom: 14px; }
.feos-me-fixed { background: #f4f7fa; border-radius: 8px; padding: 10px 14px; margin: 6px 0 14px; font-size: 13px; }
.feos-me-fixed > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.feos-me-fixed span { color: var(--feos-muted); } .feos-me-fixed em { color: #075a93; font-style: normal; }
.feos-me-fixed small { display: block; color: var(--feos-muted); margin-top: 6px; }
.feos-me-actions { display: flex; align-items: center; gap: 12px; }
.feos-me-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 16px; }
.feos-me-card img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--feos-line); box-shadow: 0 4px 16px rgba(17,17,17,.08); display: block; background: #111; }
.feos-me-card-meta { margin: 8px 0 6px; } .feos-me-card-meta b { display: block; } .feos-me-card-meta small { color: var(--feos-muted); display: block; line-height: 1.35; }
.feos-me-card-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.feos-me-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.feos-me-link { font-size: 13px; color: var(--feos-muted); margin-bottom: 10px; } .feos-me-link code { font-size: 13px; }
.feos-me-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feos-me-static { padding: 6px 0; font-weight: 600; }
.feos-me-phone .feos-me-wa { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin-top: 6px; font-size: 13px; }
.feos-me-phone .feos-me-wa .fab { color: #25D366; font-size: 15px; }
.feos-me-radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 2px 18px 2px 0; }
.feos-me-code { background: #f4f7fa; border-radius: 8px; padding: 10px 14px; margin: -6px 0 10px; }
.feos-me-code label { font-weight: 600; display: block; margin-bottom: 6px; }
.feos-me-code-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .feos-me-code-row input { max-width: 140px; letter-spacing: .2em; font-weight: 700; }
.feos-me-copy { display: flex; gap: 8px; align-items: center; } .feos-me-copy code { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.feos-me-signature { border: 1px solid var(--feos-line); border-radius: 10px; padding: 10px; margin-bottom: 8px; overflow-x: auto; background: #fff; }
.feos-me-save-row { margin: 4px 0 26px; }
.feos-me-h { font-weight: 700; margin: 10px 0 12px; font-size: 18px; } .feos-me-h small { font-size: 13px; font-weight: 500; margin-left: 8px; }
.feos-me-note { margin: 0 0 20px; font-size: 13px; }
.feos-me-prefs { margin-top: 20px; } .feos-me-prefs .panel-body { padding-top: 0; }
.feos-me-prefs .record .detail-button-container { padding: 10px 0; }
@media (max-width: 900px) { .feos-me-details { grid-template-columns: minmax(0, 1fr); } }
.feos-me-tags { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.feos-me-tags label { font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.feos-me-styles { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px; }
.feos-me-style { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--feos-line); border-radius: 12px; padding: 8px 14px 8px 8px; text-align: left; cursor: pointer; }
.feos-me-style.is-active { border-color: var(--feos-sky); background: var(--feos-accent-soft); }
.feos-me-style b { display: block; } .feos-me-style small { display: block; color: var(--feos-muted); font-size: 12px; }
.feos-me-style-swatch { width: 44px; height: 30px; border-radius: 6px; border: 1px solid var(--feos-line); display: inline-block; }
.feos-me-style-swatch.is-classic { background: linear-gradient(180deg, #0a72ba 45%, #fff 45%); }
.feos-me-style-swatch.is-dark { background: linear-gradient(90deg, #1c2634 35%, #0f1b26 35%); }
.feos-me-consent { font-size: 13px; color: #0a4f80; background: #FFF8EC; border-left: 3px solid var(--feos-sky); padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 0; }

/* ==========================================================================
   Menu: planned modules (from Resources/modules.json) — present, grey, italic,
   with their phase, and not clickable.
   ========================================================================== */
.navbar .dropdown-menu a.feos-planned,
.navbar a.feos-planned {
    color: #9aa5b1 !important; font-style: italic; cursor: default; background: transparent !important;
}
.navbar a.feos-planned .fas, .navbar a.feos-planned .far, .navbar a.feos-planned .fab { opacity: 0.55; }
.navbar a.feos-planned .full-label::after {
    display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 9px; font-size: 10px; line-height: 16px;
    font-style: normal; font-weight: 700; letter-spacing: 0.4px; color: #7b8794; background: #eef2f6;
    vertical-align: 1px;
}
.navbar a.feos-phase-0 .full-label::after { content: "P0 · in design"; color: #0a72ba; background: #e8f3fb; }
.navbar a.feos-phase-1 .full-label::after { content: "P1"; }
.navbar a.feos-phase-2 .full-label::after { content: "P2"; }
.navbar a.feos-phase-3 .full-label::after { content: "P3"; }
.navbar a.feos-phase-4 .full-label::after { content: "P4"; }
.navbar a.feos-phase-hold .full-label::after { content: "on hold"; }
.navbar a.feos-phase-tbd .full-label::after { content: "to decide"; }
.navbar .feos-planned-group .full-label { color: #b8c2cc; }
.navbar .tab-group .dropdown-menu { min-width: 290px; }

.feos-pilot-note { margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: #e8f3fb; color: #0a4f80;
    font-size: 13px; line-height: 1.45; }

/* ==========================================================================
   Activity stream, compact: one line per event — time · icon · who did what.
   The status badge under "created task …" and the separate time line are gone;
   posts people write still show underneath.
   ========================================================================== */
li.list-group-item:has(> .stream-head-container) {
    display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px;
    padding-top: 7px; padding-bottom: 7px;
}
li.list-group-item:has(> .stream-head-container) > .stream-date-container {
    order: -1; flex: 0 0 auto; width: auto !important; min-width: 46px; margin: 0; padding: 0; line-height: 20px;
    white-space: nowrap; float: none;
}
li.list-group-item:has(> .stream-head-container) > .stream-date-container a { font-variant-numeric: tabular-nums; }
li.list-group-item:has(> .stream-head-container) > .stream-head-container {
    flex: 1 1 0; width: auto !important; min-width: 0; margin: 0; padding: 0; line-height: 20px;
}
li.list-group-item:has(> .stream-head-container) > .stream-head-container > .pull-left { display: none; }
li.list-group-item:has(> .stream-head-container) .stream-head-text-container { margin: 0; padding: 0; }
li.list-group-item:has(> .stream-head-container) > .cell-buttons { order: 3; margin-left: auto; }
li.list-group-item:has(> .stream-head-container) > .stream-post-container,
li.list-group-item:has(> .stream-head-container) > .stream-attachments-container,
li.list-group-item:has(> .stream-head-container) > .stream-details-container {
    order: 4; flex: 1 0 100%; margin: 2px 0 0 56px; padding: 0;
}
/* the status badge on "created …" notes: already visible on the record itself */
li.list-group-item:has(> .stream-head-container) > .stream-post-container:has(> .label:only-child) { display: none; }

/* 0.3 — statement lines panel: count and total in the heading (green when they add up) */
.feos-panel-total { margin-left: 8px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
  background: #eef2f6; color: #3d4b5c; white-space: nowrap; }
.feos-panel-total.feos-ok { background: #e3f4ea; color: #1d6b3c; }
.feos-panel-total.feos-off { background: #fdeaea; color: #9b1c1c; }
/* 0.3 — "Find the client" dialog */
.feos-match-table td { vertical-align: middle !important; }
/* 0.3 — FEOS dialogs (Espo.Ui.dialog): a title, text read left to right */
.feos-dialog .modal-body { text-align: left; }
.feos-dialog .modal-body p:last-child { margin-bottom: 0; }

/* ---- Checkpoints (feos:checkpoint-ui) ---- */
.feos-cp-dialog .feos-cp-meta { margin-bottom: 10px; color: #555; }
.feos-cp-dialog .feos-cp-meta .label { font-size: 90%; margin-right: 4px; }
.feos-cp-dialog .feos-cp p { margin-bottom: 8px; }
.feos-cp-dialog .feos-cp-confirm { background: #f4f8fb; border-left: 3px solid #0a5f9c; padding: 8px 10px; margin: 12px 0; }
.feos-cp-dialog .feos-cp-confirm label { font-weight: 600; line-height: 1.4; }
.feos-cp-dialog .feos-cp-left { margin-top: 12px; }
.feos-cp-popup .modal-footer .btn { margin-bottom: 4px; }

/* ---- Lists: the row under the mouse is highlighted, on every list and related-records panel (Peter, 29 Sep) ---- */
.list table.table > tbody > tr:hover > td,
.list-container table.table > tbody > tr:hover > td,
.panel .list table > tbody > tr:hover > td { background-color: #d9e9f7 !important; transition: background-color .08s; }
.list table.table > tbody > tr:hover > td a.link { text-decoration: underline; }

/* ---- Review: history rounds folded away (feos:views/review/history) ---- */
.feos-review-history details { border: 1px solid #e3e8ee; border-radius: 4px; margin-bottom: 8px; background: #fbfcfd; }
.feos-review-history details[open] { background: #fff; }
.feos-review-history summary { cursor: pointer; padding: 7px 10px; font-weight: 600; list-style: none; }
.feos-review-history summary::-webkit-details-marker { display: none; }
.feos-review-history summary:before { content: "\25B8"; display: inline-block; width: 1.1em; transition: transform .15s; }
.feos-review-history details[open] > summary:before { transform: rotate(90deg); }
.feos-review-history .feos-rh-body { padding: 0 12px 10px 28px; }
.feos-review-history .feos-rh-event { margin: 4px 0; }
.feos-review-history .feos-rh-when { color: #777; font-size: 90%; margin-right: 6px; }
.feos-review-history .feos-rh-note { white-space: pre-wrap; margin: 2px 0 6px 0; padding-left: 10px; border-left: 3px solid #d5dde6; }
.feos-review-history .label { margin-left: 6px; }

/* ---- Record pages: each section its own card, folded below the first (feos:panel-folds) ---------------------- */
.record .detail .record-grid .middle > .panel,
.record .edit .record-grid .middle > .panel,
.record .detail .record-grid .side > .panel:has(> .panel-heading),
.record .edit .record-grid .side > .panel:has(> .panel-heading) {
    border-radius: var(--panel-border-radius) !important;
    border: 1px solid var(--feos-line) !important;
    margin-bottom: 14px !important;
}
.record .detail .record-grid .middle > .panel > .panel-heading,
.record .edit .record-grid .middle > .panel > .panel-heading {
    border-top-left-radius: var(--panel-border-radius); border-top-right-radius: var(--panel-border-radius);
}
.feos-foldable > .panel-heading { cursor: pointer; user-select: none; position: relative; padding-right: 36px; }
.feos-foldable > .panel-heading:after {
    content: "\f078"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: 11px;
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(0deg); color: var(--feos-muted);
    transition: transform .15s;
}
.feos-foldable.feos-folded > .panel-heading:after { transform: translateY(-50%) rotate(-90deg); }
.feos-foldable.feos-folded > .panel-body { display: none; }
.feos-foldable.feos-folded { background: var(--feos-canvas); box-shadow: none; }
.feos-foldable.feos-folded > .panel-heading { border-bottom: 0; border-radius: var(--panel-border-radius); }
.feos-foldable > .panel-heading:hover .panel-title { color: var(--feos-accent); }

/* ---- "Ask for help" window: the form only (no side column) ---- */
.feos-ask-modal .record-grid > .side, .feos-ask-modal .side { display: none !important; }
.feos-ask-modal .record-grid > .left { width: 100% !important; flex: 1 1 100% !important; max-width: 100% !important; }

/* ---- Review list: quick filter buttons next to the search (feos:views/review/list) ---- */
.feos-review-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.feos-review-chip { border-radius: 16px !important; padding: 4px 12px; }
.feos-review-chip .feos-chip-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px;
    border-radius: 9px; background: var(--feos-canvas, #eef2f6); color: var(--feos-muted, #667); font-size: 11px; }
.feos-review-chip.active { background: var(--feos-accent, #0a5f9c); border-color: var(--feos-accent, #0a5f9c); color: #fff; }
.feos-review-chip.active .feos-chip-count { background: rgba(255, 255, 255, .25); color: #fff; }
/* an expiry date that has passed or is close */
.feos-expiry-label { margin-left: 4px; font-size: 10px; vertical-align: 1px; }

/* ---- Vulnerability: each driver its own soft colour; what was noticed in the colour of its driver ---- */
.label.label-feos-v-health { background: #fde8e8; color: #9b2c2c; }
.label.label-feos-v-life-events { background: #e6effd; color: #1e4e8c; }
.label.label-feos-v-resilience { background: #fff1d2; color: #7d5200; }
.label.label-feos-v-capability { background: #e3f5ea; color: #1d6536; }
.label.label-feos-v-other { background: #eef0f3; color: #4a5260; }
.label[class*="label-feos-v-"] { font-weight: 500; display: inline-block; margin: 0 4px 4px 0; white-space: normal; text-align: left; }
.field[data-name="drivers"] .selectize-input > .item, .field[data-name="characteristics"] .selectize-input > .item { border-radius: 4px; }
.selectize-input > .item[data-value^="Health"] { background: #fde8e8 !important; color: #9b2c2c !important; }
.selectize-input > .item[data-value^="Life events"] { background: #e6effd !important; color: #1e4e8c !important; }
.selectize-input > .item[data-value^="Resilience"] { background: #fff1d2 !important; color: #7d5200 !important; }
.selectize-input > .item[data-value^="Capability"] { background: #e3f5ea !important; color: #1d6536 !important; }
.selectize-dropdown .option[data-value^="Health"] { border-left: 4px solid #f3b4b4; }
.selectize-dropdown .option[data-value^="Life events"] { border-left: 4px solid #a9c4f5; }
.selectize-dropdown .option[data-value^="Resilience"] { border-left: 4px solid #f5d27a; }
.selectize-dropdown .option[data-value^="Capability"] { border-left: 4px solid #9fd8b4; }

/* ---- Menu: headings inside a dropdown (Compliance: Registers, Reports, Databases) ----
   Since 5 Oct 2026 each heading is one row with an arrow; its items open in a panel beside it (navbar.js markSections). */
.dropdown-menu:has(> li.feos-menu-section-li) { overflow: visible !important; max-height: none !important; }
.dropdown-menu li.feos-menu-section-li { position: relative; border-top: 1px solid var(--feos-line, #e3e8ee); margin-top: 4px; padding-top: 4px; }
.dropdown-menu li.feos-menu-section-li + li.feos-menu-section-li { border-top: 0; margin-top: 0; padding-top: 0; }
.dropdown-menu li.feos-menu-section-li > a.feos-menu-section {
    cursor: pointer; display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
    font-weight: 600; color: var(--feos-ink, #1d2733) !important;
}
.dropdown-menu li.feos-menu-section-li > a.feos-menu-section .short-label { display: none; }
.dropdown-menu li.feos-menu-section-li > a.feos-menu-section::after {
    content: "\203A"; font-size: 18px; line-height: 1; color: var(--feos-muted, #6b7785); margin-left: auto;
}
.dropdown-menu li.feos-menu-section-li.open > a.feos-menu-section,
.dropdown-menu li.feos-menu-section-li > a.feos-menu-section:hover { background: var(--feos-hover, #f2f6fa) !important; }
.feos-flyout {
    display: none; position: absolute; top: -6px; left: 100%; z-index: 1001; min-width: 270px; max-height: 80vh; overflow-y: auto;
    list-style: none; margin: 0 0 0 2px; padding: 6px 0; background: #fff; border: 1px solid var(--feos-line, #e3e8ee);
    border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 27, 38, .16);
}
.feos-flyout-left > .feos-flyout { left: auto; right: 100%; margin: 0 2px 0 0; }
li.feos-menu-section-li.open > .feos-flyout { display: block; }
.feos-flyout > li > a { display: block; padding: 7px 16px; white-space: nowrap; color: var(--feos-ink, #1d2733); }
.feos-flyout > li > a:hover { background: var(--feos-hover, #f2f6fa); text-decoration: none; }
@media (max-width: 767px) {
    .feos-flyout { position: static; box-shadow: none; border: 0; border-radius: 0; margin: 0; padding: 0 0 4px 12px; max-height: none; }
    .feos-flyout-left > .feos-flyout { right: auto; }
}

/* Product features for a policy, on the product page (feos:views/product/features-panel) */
.feos-features-table { margin-bottom: 0; }
.feos-features-table td { vertical-align: top; }
.feos-feature-option + .feos-feature-option { margin-top: 6px; }
.feos-features-badge { margin-left: 4px; font-size: 85%; font-weight: normal; }

/* a right-column section with no field the person may see (feos:panel-folds) */
.record .record-grid .side > .panel.feos-empty-panel { display: none; }

/* ---- Advice Process (0.6): stage line, requirements, wizard ---------------------------------------------------- */
.feos-ap-eyebrow { font-size: 11px; letter-spacing: .08em; color: #6b7a8c; margin-bottom: 2px; }
.feos-ap-headline { font-size: 16px; margin-bottom: 12px; }
.feos-ap-headline .label { margin-left: 6px; vertical-align: middle; }
.feos-ap-track { margin: 6px 0 10px; }
.feos-ap-track-name { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6b7a8c; margin-bottom: 4px; }
.feos-ap-line { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; }
.feos-ap-step { flex: 1 1 0; min-width: 92px; position: relative; padding-top: 18px; font-size: 12px; color: #6b7a8c; text-align: center; }
.feos-ap-step::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: #d9dee5; }
.feos-ap-step:first-child::before { left: 50%; }
.feos-ap-step:last-child::before { right: 50%; }
.feos-ap-dot { position: absolute; top: 2px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%;
    background: #fff; border: 2px solid #c3cbd6; z-index: 1; }
.feos-ap-done { color: #1d6b3a; }
.feos-ap-done .feos-ap-dot { background: #2e8b57; border-color: #2e8b57; }
.feos-ap-done::before { background: #2e8b57; }
.feos-ap-missed { color: #9a6200; }
.feos-ap-missed .feos-ap-dot { background: #f0ad4e; border-color: #f0ad4e; }
.feos-ap-n\/a { color: #b8c0cb; text-decoration: line-through; }
.feos-ap-current { font-weight: 600; color: #0a5f9c; }
.feos-ap-current .feos-ap-dot { box-shadow: 0 0 0 4px rgba(10, 95, 156, .18); border-color: #0a5f9c; }
.feos-ap-next { background: #f2f7fb; border-left: 3px solid #0a5f9c; padding: 8px 12px; margin: 8px 0 12px; }
.feos-ap-reqs td .label { white-space: normal; }
.feos-ap-reqs .btn-xs { margin-left: 4px; }
.feos-ap-gaps-box summary { cursor: pointer; color: #9a6200; }
.feos-apw-step { border-top: 1px solid #e6e9ee; padding-top: 10px; margin-top: 10px; }
.feos-apw-step:first-of-type { border-top: 0; margin-top: 0; }
.feos-apw-step h5 { font-weight: 600; margin: 0 0 6px; }
.feos-apw-n { display: inline-block; width: 22px; height: 22px; line-height: 22px; border-radius: 50%; background: #0a5f9c;
    color: #fff; text-align: center; font-size: 12px; margin-right: 6px; }
.feos-ap-wide .modal-dialog { max-width: 720px; }
.feos-shares .feos-share-row { margin-bottom: 8px; }
.feos-shares .feos-share-row .label { margin-left: 4px; }
.cell[data-name="stageLine"] > label.control-label { display: none; }

/* People from BIOS: decide with one click on the list (T S H L; feos:views/bios/fields/quick) */
.feos-bq { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; white-space: nowrap; }
.feos-bq-btn { min-width: 28px; height: 26px; padding: 0 7px; border: 1px solid #cfd8e3; border-radius: 6px; background: #fff;
  font-weight: 600; font-size: 12px; line-height: 24px; color: #3d4b5c; cursor: pointer; }
.feos-bq-btn:hover { background: #eef4fb; }
.feos-bq-btn.proposed { border-width: 2px; line-height: 22px; }
.feos-bq-T.proposed { border-color: #2e8b57; color: #2e8b57; }
.feos-bq-S.proposed { border-color: #0a5f9c; color: #0a5f9c; }
.feos-bq-H.proposed { border-color: #5b7fa6; color: #5b7fa6; }
.feos-bq-L.proposed { border-color: #8a96a3; color: #6b7785; }
.feos-bq-btn.chosen { background: #0a5f9c; border-color: #0a5f9c; color: #fff; }
.feos-bq-ask { font-size: 12px; color: #6b7785; margin-right: 2px; }
.feos-bq-role { font-weight: 500; }
.feos-bq-cancel { min-width: 22px; padding: 0 5px; color: #8a96a3; }

/* portal: Your policies (ip-compare.md 5f) */
.feos-portal-policy { border: 1px solid var(--feos-line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.feos-portal-policy-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.feos-portal-policy-facts { display: block; color: #5f6b78; margin: 4px 0 6px; }
.feos-portal-pill { background: #e8f3fb; color: #0a5f9c; border-radius: 999px; padding: 2px 10px; font-size: 12px; white-space: nowrap; }
.feos-portal-row-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.feos-portal-policy .feos-portal-row.is-plain:last-child { border-bottom: 0; }

/* ---- Two-factor first (Peter, 4 Oct 2026): feos:two-factor-gate — a full screen nothing can be clicked past ---- */
body.feos-2fa-gate { overflow: hidden; }
.feos-gate { position: fixed; inset: 0; z-index: 3000; overflow-y: auto; padding: 32px 16px 48px;
  background: radial-gradient(1200px 600px at 20% -10%, #14466f 0%, transparent 60%), linear-gradient(160deg, #0f1b26 0%, #0b2740 100%);
  font-family: inherit; color: #1b2733; }
.feos-gate-card { max-width: 940px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 32px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.feos-gate-top { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.feos-gate-shield { flex: 0 0 52px; height: 52px; border-radius: 14px; background: #0a72ba; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; }
.feos-gate-done .feos-gate-shield { width: 56px; height: 56px; margin: 0 auto 14px; }
.feos-gate-shield.is-on { background: #1f8a4c; }
.feos-gate code { font-style: normal; }
.feos-gate-kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #8a93a6; font-weight: 600; }
.feos-gate h1 { font-size: 26px; line-height: 1.25; margin: 4px 0 0; color: #0f1b26; font-weight: 700; }
.feos-gate h2 { font-size: 18px; margin: 0 0 8px; color: #0f1b26; display: flex; align-items: center; gap: 10px; }
.feos-gate h3 { font-size: 14px; margin: 8px 0 4px; color: #0f1b26; }
.feos-gate p { margin: 0 0 8px; line-height: 1.55; }
.feos-gate-lead { font-size: 15px; color: #33404d; margin-bottom: 18px !important; }
.feos-gate-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.feos-gate-tile { background: #f3f6f9; border-radius: 12px; padding: 14px 16px; font-size: 13px; }
.feos-gate-tile > .fas { color: #0a72ba; font-size: 18px; }
.feos-gate-tile ul { margin: 4px 0 0; padding-left: 18px; }
.feos-gate-step { border-top: 1px solid #e3e8ee; padding: 18px 0 6px; }
.feos-gate-step.is-locked { opacity: .5; }
.feos-gate-n { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #0f1b26; color: #fff; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; }
.feos-gate-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.feos-gate-app { border: 1px solid #e3e8ee; border-radius: 12px; padding: 12px 14px; }
.feos-gate-app-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.feos-gate-by { color: #8a93a6; font-size: 12px; }
.feos-gate-badge { background: #e6f2fb; color: #0a72ba; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; }
.feos-gate-stores { display: flex; gap: 14px; }
.feos-gate-store { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #33404d; text-align: center; }
.feos-gate-store:hover { text-decoration: none; color: #0a72ba; }
.feos-gate-qr { display: block; width: 128px; height: 128px; background: #f3f6f9; border-radius: 6px; }
.feos-gate-qr img, .feos-gate-qr canvas, .feos-gate-totp img, .feos-gate-totp canvas { display: block; }
.feos-gate-row { display: flex; gap: 10px; max-width: 460px; margin: 8px 0 4px; }
.feos-gate-row .form-control { height: 40px; font-size: 15px; }
.feos-gate-code { letter-spacing: .25em; font-size: 20px !important; max-width: 180px; }
.feos-gate-msg { min-height: 20px; font-size: 13px; }
.feos-gate-msg.is-bad { color: #b42318; }
.feos-gate-msg.is-ok { color: #1f8a4c; }
.feos-gate-secret { display: flex; gap: 20px; align-items: flex-start; margin: 12px 0 4px; background: #f8fafc;
  border-radius: 12px; padding: 16px; }
.feos-gate-secret[hidden] { display: none; }
.feos-gate-totp { flex: 0 0 200px; height: 200px; background: #fff; padding: 0; }
.feos-gate-key { display: inline-block; font-size: 15px; letter-spacing: .08em; padding: 6px 10px; background: #fff;
  border: 1px solid #e3e8ee; border-radius: 6px; word-break: break-all; }
.feos-gate-small { font-size: 12px; color: #6b7685; }
.feos-gate-foot { border-top: 1px solid #e3e8ee; margin-top: 18px; padding-top: 14px; display: flex; gap: 14px;
  flex-wrap: wrap; align-items: baseline; font-size: 13px; color: #33404d; }
.feos-gate-done { text-align: center; padding: 26px 10px 10px; max-width: 620px; margin: 0 auto; font-size: 15px; }
.feos-gate-done .btn { margin-top: 12px; }
@media (max-width: 760px) {
  .feos-gate-card { padding: 22px 18px; }
  .feos-gate h1 { font-size: 21px; }
  .feos-gate-why, .feos-gate-apps { grid-template-columns: 1fr; }
  .feos-gate-qr { display: none; }              /* on the phone itself the store links, not codes to scan */
  .feos-gate-store { flex-direction: row; border: 1px solid #e3e8ee; border-radius: 8px; padding: 8px 10px; }
  .feos-gate-secret { flex-direction: column; }
}

/* ---- PDF CC (#FeosPdfCc, feos:views/pdf-cc): the tool's own page in a frame under the menu ---- */
.feos-pdfcc { margin: 0 -15px; }
.feos-pdfcc-frame { display: block; width: 100%; border: 0; background: #f3f6f9; min-height: 520px; }

/* The first steps (Tools/Profile/FirstSteps, views/site/navbar checkFirstSteps): only My profile until they are done;
   "Ask for help" stays */
body.feos-first-steps #navbar .tab-list, body.feos-first-steps #navbar .navbar-left-container,
body.feos-first-steps #navbar .global-search-container, body.feos-first-steps #navbar .quick-create-container,
body.feos-first-steps #navbar .navbar-right > li:has(> a[title="Last Viewed"]),
body.feos-first-steps .feos-me-avatar { display: none !important; }
body.feos-first-steps #navbar .menu-container .dropdown-menu > li:not(.divider) { display: none; }
body.feos-first-steps #navbar .menu-container .dropdown-menu > li:has(> a[data-name="logout"]),
body.feos-first-steps #navbar .menu-container .dropdown-menu > li:has(> a[href="#logout"]) { display: block; }
.feos-first { border: 1px solid #b9d3ea; background: #f2f8fd; border-radius: 10px; padding: 16px 18px; margin: 0 0 18px; }
.feos-first-head { display: flex; gap: 14px; align-items: flex-start; }
.feos-first-head > .fas { font-size: 26px; color: #0a72ba; margin-top: 2px; }
.feos-first-title { font-size: 16px; display: block; margin-bottom: 3px; }
.feos-first-head small { display: block; color: #4b5563; line-height: 1.5; }
.feos-first-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.feos-first-list li { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #dfe8f1;
    border-radius: 8px; padding: 9px 12px; }
.feos-first-list li > div { flex: 1; min-width: 0; }
.feos-first-list li b { display: block; }
.feos-first-list li small { display: block; color: #6b7280; }
.feos-first-mark { font-size: 18px; color: #c4ccd6; }
.feos-first-list li.is-done { background: #f6fbf7; border-color: #d3eadb; }
.feos-first-list li.is-done .feos-first-mark { color: #1e8e4e; }
.feos-first-list li.is-done small { display: none; }
.feos-first-flash { outline: 3px solid #f59e0b; outline-offset: 3px; transition: outline-color .4s; }
.feos-me-doc { display: grid; gap: 4px; justify-items: start; margin-bottom: 14px; }
.feos-me-doc > label:first-child { margin: 0; }
@media (max-width: 600px) {
    .feos-first { padding: 12px; }
    .feos-first-head > .fas { display: none; }
    .feos-first-list li { flex-wrap: wrap; }
    .feos-me-copy code, .feos-me-signature { overflow-wrap: anywhere; min-width: 0; }
    .feos-me-signature { overflow-x: auto; }
}

/* FEOS Start link on the sign-in card (EntryPoints/FeosStart) */
.feos-login-start { margin: 14px 0 0; padding: 10px 12px; border-radius: 8px; background: #eef5fb; color: #1d2733;
    font-size: 14px; line-height: 1.45; }
.feos-login-start .fas { color: #0a72ba; margin-right: 4px; }
.feos-login-start a { font-weight: 700; }

/* My profile 0.7 (Peter, 4 Oct 2026): the firm being joined, each section's own save, the starter sets */
.feos-me-joining { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 4px 8px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--feos-line); }
.feos-me-joining img { max-width: 150px; max-height: 48px; object-fit: contain; margin-bottom: 6px; }
.feos-me-joining small { color: var(--feos-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.feos-me-joining b { font-size: 13px; }
.feos-me-section-save { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--feos-line); }
.feos-me-section-save .feos-me-saved { font-size: 12px; }
.feos-me-save-row .btn-success { font-weight: 600; }
.feos-me-sets p { margin-bottom: 10px; }
.feos-me-set-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feos-me-set { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--feos-line); border-radius: 10px; padding: 12px; background: #fff; }
.feos-me-set.is-used { border-color: #1E7A45; box-shadow: 0 0 0 1px #1E7A45 inset; }
.feos-me-set > small { color: var(--feos-muted); font-size: 12px; }
.feos-me-set-head { font-weight: 600; color: #075a93; font-size: 13px; }
.feos-me-set-quote { font-size: 13px; font-style: italic; margin: 0; }
.feos-me-set details summary { cursor: pointer; font-size: 12px; color: #075a93; }
.feos-me-set-text { font-size: 12.5px; margin-top: 8px; line-height: 1.45; }
.feos-me-set .btn, .feos-me-set .feos-me-tag { align-self: flex-start; margin-top: auto; margin-left: 0; }
@media (max-width: 900px) { .feos-me-set-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .feos-me-joining { display: none; } }
