/* ==========================================================================
   WWN Adviser Hub theme — sits on top of EspoCRM's "Espo" theme (top navbar).
   Brand: dark #111111, white, orange #E8821A (actions), gold #C49A2A (accent),
   DM Sans throughout.
   ========================================================================== */

@font-face { font-family: 'DM Sans'; font-weight: 400; font-style: normal; font-display: swap;
    src: url('../fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-style: normal; font-display: swap;
    src: url('../fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-style: normal; font-display: swap;
    src: url('../fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-style: normal; font-display: swap;
    src: url('../fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }

:root {
    --wwn-ink: #111111;
    --wwn-ink-2: #1c1c1c;
    --wwn-orange: #E8821A;
    --wwn-orange-dark: #C96D0E;
    --wwn-orange-soft: #FDF1E4;
    --wwn-gold: #C49A2A;
    --wwn-canvas: #F6F5F2;
    --wwn-line: #E7E4DD;
    --wwn-muted: #6B6760;

    --font-family: 'DM Sans', Inter, sans-serif;
    --body-bg: var(--wwn-canvas);
    --panel-bg: #ffffff;
    --panel-border-radius: 12px;
    --border-radius: 8px;
    --default-border-color: var(--wwn-line);
    --panel-default-border: var(--wwn-line);

    --brand-primary: var(--wwn-orange);
    --brand-primary-5: #E07714;
    --brand-primary-10: var(--wwn-orange-dark);
    --brand-primary-lighten-10: #EE9B45;
    --brand-primary-lighten-30: #F6CFA5;
    --state-primary-bg: var(--wwn-orange-soft);
    --state-primary-text: var(--wwn-orange-dark);
    --state-primary-border: #F6CFA5;

    --btn-primary-bg: var(--wwn-orange);
    --btn-primary-border: var(--wwn-orange);
    --btn-primary-color: #ffffff;
    --btn-primary-hover-bg: var(--wwn-orange-dark);
    --btn-primary-hover-border: var(--wwn-orange-dark);
    --btn-primary-active-bg: #B25F0A;
    --btn-primary-active-border: #B25F0A;

    --link-color: #B8620C;
    --link-hover-color: var(--wwn-ink);

    --navbar-bg: var(--wwn-ink);
    --navbar-inverse-bg: var(--wwn-ink);
    --navbar-inverse-bg-7: #262626;
    --navbar-inverse-border: var(--wwn-ink);
    --navbar-inverse-link-color: #E9E6E0;
    --navbar-inverse-link-hover-color: #ffffff;
    --navbar-inverse-link-hover-bg: #232323;
    --navbar-inverse-link-active-bg: #2A2A2A;
    --navbar-inverse-link-icon-color: #9A958C;
    --navbar-inverse-toggle-hover-bg: #232323;
    --navbar-inverse-color: #C8C3BA;
    --navbar-link-color: #E9E6E0;
    --navbar-link-icon-color: #9A958C;
    --navbar-link-hover-color: #ffffff;
    --navbar-link-hover-bg: #232323;
    --navbar-link-active-bg: #2A2A2A;
}

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(--wwn-ink); border-color: var(--wwn-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(--wwn-orange); 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(--wwn-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(--wwn-orange); }
.list > table > thead > tr > th { font-weight: 600; color: var(--wwn-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: #A9A49B; opacity: .8; }
body > footer a { color: inherit; }

/* ==========================================================================
   Login screen
   ========================================================================== */
body:has(.wwn-login) { background: #0e0f12; }
body:has(.wwn-login) > footer { position: fixed; bottom: 8px; right: 16px; left: auto; width: auto; text-align: right; z-index: 11; opacity: .6; }
.wwn-login { display: flex; position: fixed; inset: 0; overflow-y: auto; z-index: 10; font-family: var(--font-family);
    background: #0e0f12 url("../img/login-bg.jpg") center / cover no-repeat; }
.wwn-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; }
.wwn-login-hero { position: relative; flex: 1 1 55%; color: #fff; display: flex; align-items: center; padding: 64px 7vw; }
.wwn-login-hero-inner { max-width: 520px; }
.wwn-login-logo { width: min(420px, 80%); height: auto; margin-bottom: 36px; display: block; }
.wwn-login-kicker { color: var(--wwn-gold); text-transform: uppercase; letter-spacing: .32em; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.wwn-login-slogan { font-size: 20px; line-height: 1.5; color: #E6E2DA; font-style: italic; margin: 0; }
.wwn-login-form-side { position: relative; flex: 1 1 45%; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.wwn-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(--wwn-gold); backdrop-filter: blur(6px); }
.wwn-login-card h2 { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: var(--wwn-ink); }
.wwn-login-sub { color: var(--wwn-muted); margin: 0 0 22px; }
.wwn-login-card .panel-body { padding: 0; }
.wwn-login-card label { font-weight: 600; color: var(--wwn-ink); }
.wwn-login-card .form-control { height: 44px; font-size: 15px; }
.wwn-login-card [data-role="password-input-container"] { position: relative; }
.wwn-login-card [data-role="password-input-container"] a { position: absolute; right: 12px; top: 12px; }
.wwn-login-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.wwn-login-actions .btn-primary { height: 44px; padding: 0 28px; font-size: 15px; font-weight: 600; }
.wwn-login-help { margin: 22px 0 0; color: #9A958C; font-size: 13px; }
.wwn-login-help a { color: var(--wwn-orange-dark); font-weight: 600; }
@media (max-width: 860px) {
    .wwn-login { flex-direction: column; }
    .wwn-login-hero { padding: 40px 24px 8px; flex: 0 0 auto; }
    .wwn-login-logo { width: 260px; margin-bottom: 18px; }
    .wwn-login-form-side { flex: 1 0 auto; align-items: flex-start; }
}

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

/* ---------- Case header ---------- */
.wwn-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(--wwn-orange); }
.wwn-file-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wwn-file-kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wwn-muted); }
.wwn-file-people { font-size: 24px; font-weight: 700; line-height: 1.25; margin-top: 4px; color: var(--wwn-ink); }
.wwn-file-people a { color: inherit; text-decoration: none; }
.wwn-file-people a:hover { color: var(--wwn-orange); }
.wwn-amp { color: var(--wwn-gold); margin: 0 10px; font-weight: 500; }
.wwn-stage-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--wwn-orange); color: #fff;
    font-weight: 600; font-size: 13px; white-space: nowrap; }
.wwn-stage-pill.is-paused { background: #8A857C; }
.wwn-file-steps { margin: 18px 0 4px; overflow-x: auto; }
.wwn-steps { display: flex; min-width: 720px; }
.wwn-step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; position: relative; }
.wwn-step + .wwn-step::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: #E6E2DA; }
.wwn-step.is-done::before, .wwn-step.is-current::before { background: var(--wwn-orange); }
.wwn-step-dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #fff;
    border: 2px solid #D6D1C7; box-sizing: border-box; }
.wwn-step.is-done .wwn-step-dot { background: var(--wwn-orange); border-color: var(--wwn-orange); }
.wwn-step.is-current .wwn-step-dot { border: 4px solid var(--wwn-orange); box-shadow: 0 0 0 4px rgba(232,130,26,.18); }
.wwn-step-label { margin-top: 7px; font-size: 11px; line-height: 1.2; text-align: center; color: #A39E94; padding: 0 2px; }
.wwn-step.is-done .wwn-step-label { color: var(--wwn-ink); }
.wwn-step.is-current .wwn-step-label { color: var(--wwn-ink); font-weight: 700; }
.wwn-steps.is-paused { opacity: .55; }
.wwn-file-reason { margin-top: 10px; font-size: 13px; color: var(--wwn-muted); }
.wwn-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 #EFECE6; }
.wwn-next { border-left: 3px solid var(--wwn-orange); padding-left: 12px; min-width: 240px; flex: 1 1 320px; }
.wwn-next-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--wwn-muted); }
.wwn-next-text { font-size: 15px; font-weight: 500; color: var(--wwn-ink); margin-top: 2px; }
.wwn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wwn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #F4F2EE;
    font-size: 12.5px; color: var(--wwn-ink); white-space: nowrap; }
.wwn-chip .fas, .wwn-chip .far { font-size: 11px; opacity: .7; }
.wwn-chip.is-danger { background: #FDECEA; color: #B42318; }
.wwn-chip.is-warning { background: #FFF3E3; color: #A5570B; }
.wwn-chip.is-success { background: #E9F6EE; color: #1E7A45; }
@media (max-width: 700px) { .wwn-file-top { flex-direction: column; } .wwn-file-people { font-size: 20px; } .wwn-file-head { padding: 16px; } }

/* ---------- UK address lookup ---------- */
.wwn-postcode { margin-bottom: 8px; padding: 10px; border-radius: 10px; background: var(--wwn-orange-soft); }
.wwn-postcode-row { display: flex; gap: 8px; }
.wwn-postcode-input { max-width: 190px; text-transform: uppercase; }
.wwn-postcode-results { margin-top: 8px; }
.wwn-postcode-msg { margin-top: 6px; }
.wwn-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; }

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

/* Opt-out and invalid toggles next to phone and email are not used at WWN (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) ---------- */
.wwn-take { padding: 6px 0 40px; }
.wwn-take-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.wwn-take-back { font-size: 13px; color: var(--wwn-muted); }
.wwn-take-title { font-size: 24px; font-weight: 700; color: var(--wwn-ink); }
.wwn-take-file { font-weight: 500; color: var(--wwn-muted); font-size: 18px; }
.wwn-take-body { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.wwn-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); }
.wwn-take-step { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--wwn-ink); text-decoration: none; font-weight: 500; cursor: pointer; }
.wwn-take-step:hover { background: #F7F5F1; text-decoration: none; color: var(--wwn-ink); }
.wwn-take-step.is-active { background: var(--wwn-orange-soft); color: var(--wwn-orange-dark); }
.wwn-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: #EFECE6; color: var(--wwn-muted); }
.wwn-take-step.is-done .wwn-take-num { background: #2F9E63; color: #fff; }
.wwn-take-step.is-part .wwn-take-num { background: #F2C063; color: #6B4A06; }
.wwn-take-step.is-active .wwn-take-num { box-shadow: 0 0 0 3px rgba(232,130,26,.35); }
.wwn-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(--wwn-orange); min-height: 400px; }
.wwn-take-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wwn-gold); }
.wwn-take-head h2 { margin: 2px 0 6px; font-size: 24px; font-weight: 700; }
.wwn-take-head p { color: var(--wwn-muted); max-width: 760px; }
.wwn-take-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; padding: 10px 12px; background: #F7F5F1; border-radius: 10px; }
.wwn-take-who > span:first-child { font-weight: 600; }
.wwn-take-who-note { color: var(--wwn-muted); font-size: 13px; margin-left: 6px; }
.wwn-take-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 14px; align-items: start; }
.wwn-take-box { border: 1px solid var(--wwn-line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.wwn-take-box h4 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.wwn-take-card { background: #FBFAF7; border: 1px solid #EFECE6; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.wwn-take-card h4 { font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--wwn-ink); }
.wwn-take-card h4 .fas { color: var(--wwn-orange); margin-right: 6px; }
.wwn-take-card ol, .wwn-take-card ul { margin: 0; padding-left: 18px; }
.wwn-take-card li { margin-bottom: 6px; font-size: 13.5px; line-height: 1.45; }
.wwn-take-card.is-tips { background: #FFF8EC; border-color: #F6E2BF; }
.wwn-take-card.is-tips h4 .fas { color: var(--wwn-gold); }
.wwn-q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.wwn-q-field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; color: var(--wwn-ink); }
.wwn-q-hint { font-size: 12px; color: var(--wwn-muted); margin-top: 4px; }
.wwn-q-check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; margin: 6px 0; cursor: pointer; }
.wwn-q-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--wwn-orange); }
.wwn-q-check.is-inline { display: inline-flex; margin-right: 16px; }
.wwn-person-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wwn-person-name { font-weight: 700; font-size: 15px; }
.wwn-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 12px; }
.wwn-person-card { display: flex; justify-content: space-between; gap: 8px; border: 1px solid var(--wwn-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.wwn-role-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.wwn-role-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #F1EFEA; color: #4A4640; }
.wwn-role-chip a { color: inherit; opacity: .55; margin-left: 2px; text-decoration: none; }
.wwn-role-chip a:hover { opacity: 1; }
.wwn-role-chip.is-client { background: #111; color: #fff; }
.wwn-role-chip.is-child { background: #E7F0FB; color: #1D4F8C; }
.wwn-role-chip.is-exec { background: #FDEBD6; color: #9A4F06; }
.wwn-role-chip.is-exec-alt { background: #FFF4E6; color: #9A6A2E; }
.wwn-role-chip.is-guard { background: #E6F4EC; color: #1E6B42; }
.wwn-role-chip.is-guard-alt { background: #F0F8F3; color: #3F7A58; }
.wwn-role-chip.is-benef { background: #F3EAFB; color: #6231A0; }
.wwn-role-chip.is-warning { background: #FDECEA; color: #B42318; }
.wwn-take-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.wwn-adder { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.wwn-adder .form-control { width: auto; min-width: 180px; flex: 1 1 180px; }
.wwn-adder .wwn-pct { flex: 0 0 90px; min-width: 90px; }
.wwn-empty { padding: 4px 0 8px; }
.wwn-take-note { background: #EEF4FF; color: #1F3C77; border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; font-size: 13px; line-height: 1.45; }
.wwn-take-note .fas { margin-right: 6px; opacity: .8; }
.wwn-take-alert { background: #FFF3E3; color: #A5570B; border-radius: 8px; padding: 8px 12px; margin: -6px 0 14px; font-size: 13px; }
.wwn-take-ok { background: #E9F6EE; color: #1E7A45; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
.wwn-gift-list { margin-bottom: 6px; }
.wwn-gift-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #EFECE6; }
.wwn-gift-row a { color: var(--wwn-muted); }
.wwn-total { font-weight: 700; font-size: 13px; margin: 6px 0; }
.wwn-total.is-ok { color: #1E7A45; }
.wwn-total.is-bad { color: #B42318; }
.wwn-take-table { width: 100%; font-size: 13.5px; }
.wwn-take-table th { font-size: 12px; color: var(--wwn-muted); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--wwn-line); }
.wwn-take-table td { padding: 8px 4px; border-bottom: 1px solid #F1EFEA; }
.wwn-finish-client { padding: 10px 0; border-bottom: 1px solid #F1EFEA; }
.wwn-check-msg { padding: 8px 12px; border-radius: 8px; margin: 8px 0 0; font-size: 13.5px; }
.wwn-check-msg.is-error { background: #FDECEA; color: #B42318; }
.wwn-check-msg.is-warn { background: #FFF6E8; color: #8A5A0B; }
.wwn-finish { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wwn-take-nav { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--wwn-line); }
@media (max-width: 1100px) { .wwn-take-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
    .wwn-take-body { grid-template-columns: 1fr; }
    .wwn-take-steps { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .wwn-take-step span:last-child { white-space: nowrap; }
    .wwn-q-grid { grid-template-columns: 1fr; }
}
.wwn-file-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
/* WWN 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 ---------- */
.wwn-help { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; padding: 6px 0 40px; }
.wwn-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; }
.wwn-help-title { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.wwn-help-title .fas { color: var(--wwn-gold); margin-right: 6px; }
.wwn-help-search { margin-bottom: 10px; }
.wwn-help-section { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wwn-muted); margin: 14px 0 6px; }
.wwn-help-link { display: block; padding: 8px 10px; border-radius: 10px; color: var(--wwn-ink); text-decoration: none; }
.wwn-help-link span { display: block; font-weight: 600; }
.wwn-help-link small { display: block; color: var(--wwn-muted); line-height: 1.35; }
.wwn-help-link:hover { background: #F7F5F1; text-decoration: none; color: var(--wwn-ink); }
.wwn-help-link.is-active { background: var(--wwn-orange-soft); }
.wwn-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(--wwn-gold); max-width: 980px; font-size: 15px; line-height: 1.6; }
.wwn-help-body h1 { font-size: 28px; font-weight: 700; margin: 0 0 6px; }
.wwn-help-body h1 + p { color: var(--wwn-muted); font-size: 16px; }
.wwn-help-body h2 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; padding-top: 16px; border-top: 1px solid var(--wwn-line); }
.wwn-help-body h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.wwn-help-body img { display: block; max-width: 100%; border-radius: 10px; border: 1px solid var(--wwn-line); box-shadow: 0 6px 20px rgba(17,17,17,.08); margin: 12px 0 18px; cursor: zoom-in; }
.wwn-help-body blockquote { margin: 12px 0; padding: 10px 14px; background: #FFF8EC; border-left: 4px solid var(--wwn-gold); border-radius: 0 8px 8px 0; color: var(--wwn-ink); }
.wwn-help-body blockquote p { margin: 0; }
.wwn-help-body code { background: #F4F2EE; padding: 1px 5px; border-radius: 4px; font-size: 90%; }
.wwn-help-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.wwn-help-body th, .wwn-help-body td { border: 1px solid var(--wwn-line); padding: 7px 10px; text-align: left; vertical-align: top; }
.wwn-help-body th { background: #F7F5F1; }
.wwn-help-body ol li, .wwn-help-body ul li { margin-bottom: 6px; }
@media (max-width: 900px) { .wwn-help { grid-template-columns: 1fr; } .wwn-help-nav { position: static; max-height: none; } .wwn-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: 9px !important; padding-right: 9px !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(--wwn-orange) !important; border-color: var(--wwn-orange) !important; color: #fff !important; }

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

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

/* ================= Client portal (client.mywwn.co.uk) ================= */
.wwn-portal { max-width: 1060px; margin: 0 auto; padding: 4px 0 30px; }
.wwn-portal-loading { color: var(--wwn-muted); padding: 40px 0; text-align: center; }
.wwn-portal-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    background: linear-gradient(135deg, #111 0%, #1d1a16 100%); color: #fff; border-radius: 14px;
    border-top: 3px solid #C49A2A; padding: 16px 20px; margin-bottom: 14px; }
.wwn-portal-bar h1 { font-size: 22px; font-weight: 700; margin: 2px 0 0; color: #fff; }
.wwn-portal-kicker { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #C49A2A; }
.wwn-portal-card .wwn-portal-kicker { color: #A98A2F; }
.wwn-portal-adviser { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wwn-portal-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(196,154,42,.5); }
.wwn-portal-adviser-who { display: flex; flex-direction: column; line-height: 1.3; }
.wwn-portal-adviser-who strong { color: #fff; font-size: 15px; }
.wwn-portal-adviser-who small { color: #C9C4BB; font-size: 12px; }
.wwn-portal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
.wwn-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; }
.wwn-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(--wwn-ink); cursor: pointer; }
.wwn-portal-navitem .fas { width: 16px; color: #B9B2A6; font-size: 13px; }
.wwn-portal-navitem:hover { background: #FAF8F5; }
.wwn-portal-navitem.is-active { background: #FFF3E3; color: #A5570B; }
.wwn-portal-navitem.is-active .fas { color: #E8821A; }
.wwn-portal-navlabel { flex: 1 1 auto; }
.wwn-portal-navcount { font-size: 12px; font-weight: 700; color: var(--wwn-muted); background: #F1ECE2; border-radius: 999px; padding: 1px 8px; }
.wwn-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); }
.wwn-portal-card h2 { font-size: 19px; font-weight: 700; margin: 4px 0 6px; color: var(--wwn-ink); }
.wwn-portal-card p { color: var(--wwn-muted); font-size: 14px; line-height: 1.55; margin: 0 0 10px; }
.wwn-portal-picker { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.wwn-portal-tab { border: 1px solid var(--wwn-line); background: #fff; border-radius: 999px; padding: 7px 14px;
    font-size: 13px; font-weight: 600; color: var(--wwn-muted); cursor: pointer; }
.wwn-portal-tab.is-active { background: #111; border-color: #111; color: #fff; }
.wwn-portal-status-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wwn-portal-pill { background: #FFF3E3; color: #A5570B; border-radius: 999px; padding: 5px 12px; font-size: 12px;
    font-weight: 700; white-space: nowrap; }
.wwn-portal-todo { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.wwn-portal-steps { list-style: none; margin: 10px 0 0; padding: 12px 0 0; display: grid; gap: 1px;
    border-top: 1px solid var(--wwn-line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wwn-portal-steps li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #9A958C; padding: 3px 0; }
.wwn-portal-steps li span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #DCD7CE; flex: none; }
.wwn-portal-steps li.is-done { color: var(--wwn-muted); }
.wwn-portal-steps li.is-done span { background: #C49A2A; border-color: #C49A2A; }
.wwn-portal-steps li.is-now { color: var(--wwn-ink); font-weight: 700; }
.wwn-portal-steps li.is-now span { background: #E8821A; border-color: #E8821A; box-shadow: 0 0 0 4px rgba(232,130,26,.16); }
.wwn-portal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wwn-portal-btn { display: inline-flex; align-items: center; gap: 7px; background: #E8821A; color: #fff; border: 1px solid #E8821A;
    border-radius: 8px; padding: 11px 18px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.wwn-portal-btn:hover, .wwn-portal-btn:focus { background: var(--wwn-orange-dark, #C96C11); color: #fff; text-decoration: none; }
.wwn-portal-btn[disabled] { opacity: .45; cursor: default; }
.wwn-portal-btn.is-ghost { background: #fff; color: var(--wwn-ink); border-color: var(--wwn-line); }
.wwn-portal-bar .wwn-portal-btn.is-ghost { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.25); }
.wwn-portal-btn.is-small { padding: 8px 13px; font-size: 13px; }
.wwn-portal-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; background: #FAF8F5;
    margin-top: 8px; color: var(--wwn-ink); text-decoration: none; }
.wwn-portal-row:hover { background: #FFF3E3; color: var(--wwn-ink); text-decoration: none; }
.wwn-portal-row.is-plain { background: transparent; border-bottom: 1px solid var(--wwn-line); border-radius: 0; }
.wwn-portal-row-icon { width: 30px; height: 30px; border-radius: 50%; background: #F1ECE2; color: #A98A2F; flex: none;
    display: flex; align-items: center; justify-content: center; font-size: 13px; }
.wwn-portal-row-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.wwn-portal-row-main small { color: var(--wwn-muted); font-size: 12px; }
.wwn-portal-row-value { font-weight: 700; white-space: nowrap; }
.wwn-portal-row-go { color: var(--wwn-orange); }
.wwn-portal-needs { display: grid; gap: 10px; margin-top: 14px; }
.wwn-portal-need { display: flex; gap: 12px; padding: 14px; border: 1px solid #E4E8F0; border-radius: 12px; background: #fff; }
.wwn-portal-need.is-done { background: #F6F8FB; border-color: #EDF0F5; }
.wwn-portal-need-mark { flex: 0 0 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; background: #1F3C77; color: #fff; font-size: 12px; }
.wwn-portal-need.is-done .wwn-portal-need-mark { background: #2E9B5B; }
.wwn-portal-need-main strong { display: block; margin-bottom: 4px; }
.wwn-portal-need.is-done .wwn-portal-need-main strong { text-decoration: line-through; opacity: .7; }
.wwn-portal-need-main p { margin: 0 0 8px; color: #55607A; font-size: 14px; line-height: 1.5; }
.wwn-portal-need.is-done .wwn-portal-need-main p { margin-bottom: 0; }
.wwn-portal-doc { position: relative; }
.wwn-portal-alt { display: inline-block; font-size: 12px; color: var(--wwn-muted); margin: 2px 0 0 54px; text-decoration: underline; }
.wwn-portal-empty { color: var(--wwn-muted); font-size: 14px; margin: 8px 0 0; }
.wwn-portal-note { font-size: 12px; color: #9A958C; margin-top: 10px; }
.wwn-portal-drop { display: flex; align-items: center; justify-content: center; gap: 10px; border: 2px dashed #D8D2C7;
    border-radius: 12px; padding: 20px 16px; margin: 12px 0; cursor: pointer; color: var(--wwn-muted); text-align: center; }
.wwn-portal-drop:hover { border-color: #E8821A; color: var(--wwn-ink); }
.wwn-portal-drop .fas { font-size: 20px; color: #E8821A; }
.wwn-portal-drop input[type="file"] { display: none; }
.wwn-portal-field { margin-bottom: 12px; }
.wwn-portal-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.wwn-portal-select, .wwn-portal-textarea { width: 100%; border: 1px solid var(--wwn-line); border-radius: 8px;
    padding: 11px 12px; font-size: 16px; background: #fff; }
.wwn-portal-chosen { list-style: none; margin: 0 0 12px; padding: 0; }
.wwn-portal-chosen li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px;
    padding: 7px 10px; background: #FAF8F5; border-radius: 8px; margin-bottom: 6px; word-break: break-all; }
.wwn-portal-x { border: 0; background: none; font-size: 18px; line-height: 1; color: var(--wwn-muted); cursor: pointer; }
.wwn-portal-sent { margin-top: 16px; border-top: 1px solid var(--wwn-line); padding-top: 10px; }
.wwn-portal-switch { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--wwn-line);
    font-size: 15px; font-weight: 600; cursor: pointer; margin: 0; }
.wwn-portal-switch input { width: 20px; height: 20px; accent-color: #E8821A; }
@media (max-width: 900px) {
    .wwn-portal { padding: 0 0 24px; }
    .wwn-portal-bar { border-radius: 12px; padding: 14px 16px; }
    .wwn-portal-bar h1 { font-size: 20px; }
    .wwn-portal-layout { grid-template-columns: minmax(0, 1fr); }
    .wwn-portal-nav { order: -1; position: static; flex-direction: row; flex-wrap: wrap; padding: 6px; gap: 6px; }
    .wwn-portal-navitem { flex: 1 1 calc(50% - 6px); justify-content: flex-start; padding: 9px 10px; font-size: 13px; background: #FAF8F5; }
    .wwn-portal-navitem .fas { width: auto; }
    .wwn-portal-navlabel { flex: 0 1 auto; white-space: nowrap; }
    .wwn-portal-card { padding: 16px; border-radius: 12px; }
    .wwn-portal-steps { grid-template-columns: minmax(0, 1fr); }
    .wwn-portal-adviser { width: 100%; }
    .wwn-portal-actions { flex: 1 1 auto; }
    .wwn-portal-actions .wwn-portal-btn { flex: 1 1 90px; justify-content: center; }
}

/* ---------- Self-guided will (portal, wwn:portal-will) ----------
   Phone first: one question per screen on a cream ground. From 900px the sections sit in a rail on the left
   and the question in a card. Navy = chosen, orange = the one thing to press, gold = "good to know". */
.wwn-portal.is-will { max-width: 1060px; }
.wwn-sg { --sg-ink: #111111; --sg-navy: #16264A; --sg-cream: #F6F1EA; --sg-line: #E7E4DD; --sg-muted: #6B6760;
    --sg-soft: #4A4640; --sg-gold-bg: #FDF6E6; --sg-gold-line: #F0E0B8; --sg-gold-ink: #9A6A2E; --sg-ok: #1E7A45;
    --sg-ok-bg: #E9F6EE; --sg-orange: #E8821A; --sg-orange-dark: #C96D0E;
    font-family: 'DM Sans', system-ui, sans-serif; color: var(--sg-ink); }
.wwn-sg *, .wwn-sg *::before, .wwn-sg *::after { box-sizing: border-box; }
.wwn-sg-loading { padding: 60px 20px; text-align: center; color: #6B6760; }
.wwn-sg-card { background: var(--sg-cream); border-radius: 0; min-height: calc(100vh - 120px); display: flex; flex-direction: column;
    margin: 0 -10px; }
.wwn-sg-rail { display: none; }

/* progress bar */
.wwn-sg-bar { padding: 10px 20px 0; position: sticky; top: 0; z-index: 2; background: var(--sg-cream); }
/* EspoCRM's top bar is fixed from 768px (static below), so sticky parts sit under it there */
@media (min-width: 768px) {
    .wwn-portal-will { scroll-margin-top: calc(var(--navbar-height, 40px) + 12px); }
    .wwn-sg-bar { top: var(--navbar-height, 40px); }
}
.wwn-sg-bar-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--sg-muted); }
.wwn-sg-back { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: -12px;
    border: 0; background: none; border-radius: 8px; color: var(--sg-ink); cursor: pointer; }
.wwn-sg-back:hover, .wwn-sg-back:focus-visible { background: rgba(17,17,17,.06); }
.wwn-sg-back-spacer { width: 32px; }
.wwn-sg-segs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 6px 0 10px; }
.wwn-sg-segs span { height: 4px; border-radius: 2px; background: var(--sg-line); }
.wwn-sg-segs span.is-on { background: var(--sg-navy); }

/* body */
.wwn-sg-body { flex: 1 1 auto; padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.wwn-sg-body h1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: -.01em; color: var(--sg-ink); outline: none; }
.wwn-sg-body h1.wwn-sg-serif, .wwn-sg-serif { font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif; font-weight: 400; font-size: 34px; line-height: 40px; }
.wwn-sg-body h2 { margin: 8px 0 0; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--sg-ink); }
.wwn-sg-body h2.wwn-sg-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sg-muted); margin-top: 6px; }
.wwn-sg-body h2.wwn-sg-label small { font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.wwn-sg-body p { margin: 0; font-size: 16px; line-height: 24px; color: var(--sg-soft); }
.wwn-sg-body p strong, .wwn-sg-body li strong { color: var(--sg-ink); }
.wwn-sg-kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #A5570B; }
.wwn-sg-body p.wwn-sg-lead { font-size: 18px; line-height: 27px; color: var(--sg-ink); }
.wwn-sg-body p.wwn-sg-small, .wwn-sg-small { font-size: 13px; line-height: 18px; color: var(--sg-muted); }
.wwn-sg-body p.wwn-sg-muted, .wwn-sg-muted { font-size: 14px; line-height: 20px; color: var(--sg-muted); }
.wwn-sg-body p.is-ok { color: var(--sg-ok); font-weight: 600; }
.wwn-sg-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* options: radios, people (checkboxes), ages */
.wwn-sg-options { display: flex; flex-direction: column; gap: 10px; }
.wwn-sg-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 12px 14px;
    border: 1px solid var(--sg-line); border-radius: 16px; background: #fff; cursor: pointer; font-weight: 400; color: var(--sg-ink);
    transition: border-color .12s, box-shadow .12s; }
.wwn-sg-option:hover { border-color: #C9C4BB; }
.wwn-sg-option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.wwn-sg-option.is-on { border: 2px solid var(--sg-navy); padding: 11px 13px; }
.wwn-sg-option:focus-within { box-shadow: 0 0 0 3px rgba(22,38,74,.22); }
.wwn-sg-option.is-off { background: #F1EFEA; cursor: default; }
.wwn-sg-option.is-off strong { color: var(--sg-soft); }
.wwn-sg-option-text { display: flex; flex-direction: column; min-width: 0; }
.wwn-sg-option-text strong { font-size: 16px; line-height: 22px; font-weight: 700; }
.wwn-sg-option-text small { font-size: 13px; line-height: 18px; color: var(--sg-muted); margin-top: 1px; }
.wwn-sg-radio { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #8E8A82; position: relative; background: #fff; }
.wwn-sg-option.is-on .wwn-sg-radio { border-color: var(--sg-navy); }
.wwn-sg-option.is-on .wwn-sg-radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--sg-navy); }
.wwn-sg-box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid #8E8A82; display: flex;
    align-items: center; justify-content: center; color: transparent; background: #fff; }
.wwn-sg-option.is-on .wwn-sg-box { background: var(--sg-navy); border-color: var(--sg-navy); color: #fff; }
.wwn-sg-option.is-off .wwn-sg-box { border-color: #C9C4BB; background: transparent; }
.wwn-sg-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sg-gold-line); display: flex;
    align-items: center; justify-content: center; font-weight: 700; color: var(--sg-soft); font-size: 14px; }
.wwn-sg-option.is-off .wwn-sg-avatar { background: var(--sg-line); }
.wwn-sg-ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wwn-sg-age { display: flex; align-items: center; justify-content: center; height: 64px; margin: 0; border: 1px solid var(--sg-line);
    border-radius: 16px; background: #fff; font-size: 24px; font-weight: 800; cursor: pointer; color: var(--sg-ink); }
.wwn-sg-age input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wwn-sg-age.is-on { background: var(--sg-navy); border-color: var(--sg-navy); color: #fff; }
.wwn-sg-age:focus-within { box-shadow: 0 0 0 3px rgba(22,38,74,.22); }

/* ticks */
.wwn-sg-tick { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 10px 0; font-size: 16px; line-height: 22px;
    font-weight: 500; color: var(--sg-ink); cursor: pointer; }
.wwn-sg-tick input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--sg-navy); }
.wwn-sg-tick small { display: block; font-size: 13px; color: var(--sg-muted); margin-top: 2px; }
.wwn-sg-tick.is-card { background: #fff; border: 1px solid var(--sg-line); border-radius: 16px; padding: 14px; }
.wwn-sg-tick.is-card:has(input:checked) { border: 2px solid var(--sg-navy); padding: 13px; }

/* fields */
.wwn-sg-field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 400; min-width: 0; }
.wwn-sg-field > span { font-size: 14px; font-weight: 600; color: var(--sg-ink); }
.wwn-sg-field input, .wwn-sg-field select, .wwn-sg-field textarea { width: 100%; min-height: 48px; padding: 11px 14px;
    border: 1px solid #C9C4BB; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: var(--sg-ink); }
.wwn-sg-field textarea { min-height: 88px; resize: vertical; }
.wwn-sg-field input:focus, .wwn-sg-field select:focus, .wwn-sg-field textarea:focus { outline: none; border-color: var(--sg-navy);
    box-shadow: 0 0 0 3px rgba(22,38,74,.18); }
.wwn-sg-row2, .wwn-sg-row3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.wwn-sg-children { display: flex; flex-direction: column; gap: 10px; }
.wwn-sg-child { border: 1px solid var(--sg-line); border-radius: 16px; background: #fff; padding: 14px; margin: 0; min-width: 0; }

/* add someone */
.wwn-sg-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border: 1px dashed #C9C4BB;
    border-radius: 16px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--sg-ink); cursor: pointer; }
.wwn-sg-add:hover { border-color: var(--sg-navy); background: rgba(255,255,255,.6); }
.wwn-sg-adder { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--sg-line); border-radius: 16px; padding: 14px; }
.wwn-sg-adder-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* shares */
.wwn-sg-shares { display: flex; flex-direction: column; gap: 8px; }
.wwn-sg-share { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 14px;
    background: #fff; border: 1px solid var(--sg-line); border-radius: 16px; font-weight: 400; }
.wwn-sg-share > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.wwn-sg-share small { font-size: 13px; color: var(--sg-muted); }
.wwn-sg-pct { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.wwn-sg-pct input { width: 76px; height: 44px; text-align: right; padding: 0 10px; border: 1px solid #C9C4BB; border-radius: 10px; font: inherit; font-size: 16px; }

/* good to know, alerts */
.wwn-sg-good { background: var(--sg-gold-bg); border: 1px solid var(--sg-gold-line); border-radius: 16px; padding: 0; }
.wwn-sg-good summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; font-weight: 700; color: var(--sg-gold-ink);
    cursor: pointer; list-style: none; }
.wwn-sg-good summary::-webkit-details-marker { display: none; }
.wwn-sg-good > div { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.wwn-sg-good p { font-size: 15px; line-height: 22px; }
.wwn-sg-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #fff;
    border: 1px solid var(--sg-line); font-size: 15px; line-height: 22px; color: var(--sg-soft); }
.wwn-sg-alert svg { flex: none; margin-top: 2px; }
.wwn-sg-alert.is-warn { background: #FFF3E3; border-color: #F6CFA5; color: #6E3A06; }
.wwn-sg-alert.is-warn svg { color: #A5570B; }
.wwn-sg-alert.is-ok { background: var(--sg-ok-bg); border-color: #BFE3CC; color: #14532F; }
.wwn-sg-alert.is-error { background: #FDECEC; border-color: #F3B8B8; color: #8A1C1C; }
.wwn-sg-told { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--sg-ok-bg);
    color: #14532F; font-size: 15px; line-height: 22px; }
.wwn-sg-told svg { flex: none; margin-top: 4px; color: var(--sg-ok); }
.wwn-sg-told small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* lists and steps */
.wwn-sg-how, .wwn-sg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: sg; }
.wwn-sg-how li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--sg-line); border-radius: 16px; padding: 14px; }
.wwn-sg-how li > span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sg-navy); color: #fff; font-weight: 800;
    display: flex; align-items: center; justify-content: center; }
.wwn-sg-how li div { display: flex; flex-direction: column; }
.wwn-sg-how li strong { font-size: 16px; }
.wwn-sg-how li small { font-size: 14px; line-height: 20px; color: var(--sg-muted); }
.wwn-sg-steps li { counter-increment: sg; position: relative; padding-left: 38px; min-height: 26px; font-size: 15px; line-height: 22px; color: var(--sg-soft); }
.wwn-sg-steps li::before { content: counter(sg); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid var(--sg-navy); color: var(--sg-navy); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.wwn-sg-list { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; color: var(--sg-soft); }

/* figures */
.wwn-sg-figure { margin: 4px 0; }
.wwn-sg-figure figcaption { font-size: 13px; color: var(--sg-muted); margin-top: 8px; }
.wwn-sg-mirror { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
.wwn-sg-swap { display: flex; align-items: center; }
.wwn-sg-mirror figcaption { grid-column: 1 / -1; }
.wwn-sg-doc { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--sg-line); border-top: 4px solid var(--sg-navy);
    border-radius: 12px; padding: 12px; font-size: 14px; line-height: 19px; min-width: 0; }
.wwn-sg-doc small { font-size: 12px; color: var(--sg-muted); }
.wwn-sg-swap { color: var(--sg-navy); }
.wwn-sg-flow { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.wwn-sg-flowbar { background: #fff; border: 1px solid var(--sg-line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column;
    font-size: 15px; color: var(--sg-soft); }
.wwn-sg-flowbar small { font-size: 13px; color: var(--sg-muted); }
.wwn-sg-flowbar strong { color: var(--sg-ink); }
.wwn-sg-flowbar.is-final { background: var(--sg-navy); border-color: var(--sg-navy); }
.wwn-sg-flowbar.is-final strong, .wwn-sg-flowbar.is-final small { color: #fff; }
.wwn-sg-flowarrow { display: flex; justify-content: center; color: var(--sg-muted); }
.wwn-sg-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wwn-sg-pair > div { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--sg-line); border-radius: 16px;
    padding: 12px; font-size: 14px; line-height: 19px; color: var(--sg-soft); }
.wwn-sg-pair > div > strong { font-size: 15px; color: var(--sg-ink); }
.wwn-sg-house { display: flex; gap: 3px; width: 44px; height: 30px; margin-bottom: 4px; }
.wwn-sg-house i { flex: 1; background: var(--sg-navy); clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
.wwn-sg-house.is-split i:last-child { background: #C49A2A; }
.wwn-sg-house:not(.is-split) i { clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
.wwn-sg-chain { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 14px; }
.wwn-sg-chain span { background: #fff; border: 1px solid var(--sg-gold-line); border-radius: 10px; padding: 8px 12px; width: 100%; text-align: center; }
.wwn-sg-chain span.is-dark { background: var(--sg-navy); border-color: var(--sg-navy); color: #fff; font-weight: 700; }
.wwn-sg-chain svg { color: var(--sg-gold-ink); }

/* summary, next, invite */
.wwn-sg-summary { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wwn-sg-summary > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; background: #fff; border: 1px solid var(--sg-line);
    border-radius: 16px; padding: 14px; }
.wwn-sg-summary dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sg-muted); grid-column: 1; }
.wwn-sg-summary dd { margin: 0; font-size: 16px; line-height: 23px; color: var(--sg-ink); grid-column: 1; }
.wwn-sg-summary .wwn-sg-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.wwn-sg-next { background: #fff; border: 1px solid var(--sg-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wwn-sg-next h2 { margin: 0; }
.wwn-sg-invite { background: #fff; border: 2px solid var(--sg-navy); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wwn-sg-invite h2 { margin: 0; }
.wwn-sg-invite.is-soft { border: 1px solid var(--sg-gold-line); background: var(--sg-gold-bg); }
.wwn-sg-invite.is-soft .wwn-sg-btn { align-self: flex-start; }
.wwn-sg-person { display: flex; align-items: center; gap: 10px; float: none; width: auto; margin: 0 0 12px; padding: 0; border: 0;
    font-size: 16px; color: var(--sg-ink); }
.wwn-sg-child { display: flex; flex-direction: column; gap: 12px; }
.wwn-sg-field input[readonly] { background: #F1EFEA; color: var(--sg-soft); }

/* buttons */
.wwn-sg-foot { padding: 14px 20px 28px; display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    position: sticky; bottom: 0; background: linear-gradient(rgba(246,241,234,0), var(--sg-cream) 18px); }
.wwn-sg-cta { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: 8px;
    background: var(--sg-orange); color: var(--sg-ink); font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; cursor: pointer; }
.wwn-sg-cta:hover, .wwn-sg-cta:focus-visible { background: var(--sg-orange-dark); color: var(--sg-ink); }
.wwn-sg-cta:focus-visible, .wwn-sg-btn:focus-visible, .wwn-sg-link:focus-visible, .wwn-sg-add:focus-visible { outline: 3px solid rgba(22,38,74,.4); outline-offset: 2px; }
.wwn-sg-cta[disabled] { opacity: .6; cursor: progress; }
.wwn-sg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 8px;
    background: var(--sg-navy); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.wwn-sg-btn:hover { background: #0E1A35; }
.wwn-sg-btn[disabled] { opacity: .6; }
.wwn-sg-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 6px; border: 0; background: none;
    font: inherit; font-size: 15px; font-weight: 600; color: #A5570B; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.wwn-sg-link:hover { color: #B25F0A; }

/* phone: the will fills the screen (no portal header or footer), with the progress bar on top */
@media (max-width: 899px) {
    body:has(.wwn-portal.is-will) > footer.wwn-footer { display: none; }
    .wwn-portal.is-will { padding: 0; }
}

/* desktop: rail on the left, the question in a card */
@media (min-width: 900px) {
    .wwn-sg { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
    .wwn-sg-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--navbar-height, 40px) + 16px); background: var(--sg-navy); color: #fff;
        border-radius: 16px; padding: 22px 20px; }
    .wwn-sg-rail-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 24px; line-height: 28px; }
    .wwn-sg-rail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
    .wwn-sg-rail li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 15px; color: rgba(255,255,255,.62); }
    .wwn-sg-rail li.is-now { color: #fff; font-weight: 700; }
    .wwn-sg-rail li.is-done { color: rgba(255,255,255,.85); }
    .wwn-sg-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); display: flex;
        align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
    .wwn-sg-rail li.is-now .wwn-sg-dot { background: var(--sg-orange); border-color: var(--sg-orange); color: var(--sg-ink); }
    .wwn-sg-rail li.is-done .wwn-sg-dot { background: rgba(255,255,255,.14); border-color: transparent; color: #fff; }
    .wwn-sg-rail-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; font-size: 13px; line-height: 18px; color: rgba(255,255,255,.75); }
    .wwn-sg-rail-note svg { flex: none; }
    .wwn-sg-rail .wwn-sg-link { color: #F6CFA5; justify-content: flex-start; padding: 0; }
    .wwn-sg-card { margin: 0; min-height: 0; border-radius: 16px; max-width: 720px; width: 100%; overflow: visible;
        box-shadow: 0 1px 2px rgba(17,17,17,.05), 0 4px 16px rgba(17,17,17,.05); }
    .wwn-sg-bar { padding: 16px 36px 0; border-radius: 16px 16px 0 0; }
    .wwn-sg-body { padding: 24px 36px 8px; gap: 14px; }
    .wwn-sg-body h1 { font-size: 32px; line-height: 38px; }
    .wwn-sg-body h1.wwn-sg-serif { font-size: 40px; line-height: 46px; }
    .wwn-sg-foot { position: static; background: none; flex-direction: row-reverse; justify-content: space-between; align-items: center;
        padding: 18px 36px 28px; }
    .wwn-sg-cta { width: auto; min-width: 220px; padding: 0 28px; }
    .wwn-sg-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wwn-sg-row3 { grid-template-columns: 1fr 1fr 170px; }
    .wwn-sg-options:not([data-max]) .wwn-sg-option { min-height: 60px; }
    .wwn-sg-how { flex-direction: row; }
    .wwn-sg-how li { flex: 1 1 0; flex-direction: column; }
}

/* Portal: the start card for the self-guided will */
.wwn-portal-willcard { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    border-left: 4px solid #16264A; }
.wwn-portal-willcard > div { flex: 1 1 260px; }
.wwn-portal-willcard.is-sent { border-left-color: #1E7A45; }

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

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

/* ---------- WWN watermark behind the app ---------- */
body { background-image: url("../img/wwn-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; } }
.wwn-portal-btn.is-whatsapp { background: #25D366; border-color: #25D366; color: #fff; }
.wwn-portal-btn.is-whatsapp:hover, .wwn-portal-btn.is-whatsapp:focus { background: #1EBE5B; border-color: #1EBE5B; color: #fff; }
.wwn-portal-btn .fab { font-size: 15px; }
.wwn-adder-inline { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wwn-adder-inline select { width: auto; min-width: 150px; }
.wwn-people-panel .wwn-person-card { background: #FAF8F5; }

/* Ask for help: one button on every Hub page, records the request in Support */
.wwn-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: #1F3C77; color: #fff;
    font-size: 13px; font-weight: 600; box-shadow: 0 6px 18px rgba(20, 35, 70, .28); cursor: pointer; }
.wwn-ask-btn:hover { background: #163059; color: #fff; }
.wwn-ask-btn .fas { font-size: 15px; }
@media (max-width: 640px) {
    .wwn-ask-btn { right: 12px; bottom: 12px; padding: 10px; }
    .wwn-ask-btn span:last-child { display: none; }
}

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

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

.wwn-onb { max-width: 900px; margin: 0 auto 60px; }
.wwn-onb-top { padding: 4px 0 18px; }
.wwn-onb-brand { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #8A93A6;
    margin-bottom: 14px; }
.wwn-onb-progress { display: flex; gap: 4px; }
.wwn-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; }
.wwn-onb-pip.is-now { border-top-color: #1F3C77; color: #16264A; font-weight: 600; }
.wwn-onb-pip.is-done { border-top-color: #C49A2A; color: #55607A; }
.wwn-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; }
.wwn-onb-pip.is-now .wwn-onb-pip-n { background: #1F3C77; color: #fff; }
.wwn-onb-pip.is-done .wwn-onb-pip-n { background: #C49A2A; color: #fff; }
@media (max-width: 640px) { .wwn-onb-pip-t { display: none; } }

.wwn-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); }
.wwn-onb-card h1 { margin: 0 0 8px; font-size: 26px; color: #16264A; }
.wwn-onb-lead { font-size: 15px; color: #55607A; max-width: 62ch; margin-bottom: 22px; }
.wwn-onb-sub { font-size: 13px; color: #55607A; max-width: 70ch; }
.wwn-onb-h { font-size: 15px; color: #16264A; margin: 26px 0 10px; padding-top: 16px;
    border-top: 1px solid #EEF1F7; }
.wwn-onb-actions { margin-top: 26px; padding-top: 18px; border-top: 1px solid #EEF1F7;
    display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wwn-onb-note { font-size: 13px; color: #8A93A6; }

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

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

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

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

.wwn-onb-docs { display: grid; gap: 18px; }
.wwn-onb-doc h3 { font-size: 16px; color: #16264A; margin: 0 0 8px; }
.wwn-onb-doc h3 small { color: #8A93A6; font-weight: 400; font-size: 12px; }
.wwn-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; }
.wwn-onb-doc-body h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #1F3C77;
    margin: 18px 0 6px; }
.wwn-onb-doc-body h4:first-child { margin-top: 0; }
.wwn-onb-doc-body p, .wwn-onb-doc-body li { line-height: 1.55; }
.wwn-onb-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #8A93A6; }

.wwn-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: #16264A; cursor: pointer; }
.wwn-onb-tick.is-waiting { color: #8A93A6; cursor: default; }
.wwn-onb-tick input { margin-top: 3px; }
.wwn-onb-tick em { display: block; font-size: 12px; color: #8A93A6; font-style: normal; }

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

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

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

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

/* Marketing hub (#WwnMarketing) — views/marketing.js */
.wwn-mkt { padding: 4px 0 24px; }
.wwn-mkt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.wwn-mkt-head h1 { margin: 0 0 4px; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.01em; color: var(--wwn-ink); }
.wwn-mkt-head p { margin: 0; font-size: 15px; line-height: 22px; color: var(--wwn-muted); }
.wwn-mkt-tabs { display: flex; gap: 4px; align-items: center; }
.wwn-mkt-manage { margin-right: 12px; font-size: 13px; font-weight: 700; color: #A5570B; }
.wwn-mkt-tabs button { height: 40px; padding: 0 16px; border: 1px solid var(--wwn-line); border-radius: 8px; background: #fff; color: #4A4640; font-size: 14px; font-weight: 500; }
.wwn-mkt-tabs button.is-active { background: var(--wwn-ink); border-color: var(--wwn-ink); color: #fff; font-weight: 700; }
.wwn-mkt-body { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 16px; height: calc(100vh - 200px); min-height: 560px; }
.wwn-mkt-find, .wwn-mkt-item, .wwn-mkt-other { background: #fff; border: 1px solid var(--wwn-line); border-radius: 16px; display: flex; flex-direction: column; min-height: 0; }
.wwn-mkt-find { overflow-y: auto; }
.wwn-mkt-other { grid-column: 1 / -1; padding: 28px 32px; display: block; }
.wwn-mkt-other h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.wwn-mkt-other p { margin: 0; color: #4A4640; font-size: 15px; max-width: 640px; }
.wwn-mkt-filters { padding: 16px 16px 12px; border-bottom: 1px solid var(--wwn-line); display: flex; flex-direction: column; gap: 12px; }
.wwn-mkt-filters > label { font-size: 13px; font-weight: 700; color: #4A4640; margin: 0 0 -6px; }
.wwn-mkt-search { height: 44px; border-radius: 8px; font-size: 15px; }
.wwn-mkt-groups { display: flex; flex-direction: column; gap: 12px; }
.wwn-mkt-group-label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wwn-muted); margin-bottom: 6px; }
.wwn-mkt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wwn-mkt-chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--wwn-line); background: #fff; color: #4A4640; font-size: 13px; font-weight: 500; }
.wwn-mkt-chip:hover { border-color: #C9C4BB; }
.wwn-mkt-chip.is-on { background: var(--wwn-ink); border-color: var(--wwn-ink); color: #fff; }
.wwn-mkt-count { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--wwn-muted); }
.wwn-mkt-clear { height: 32px; padding: 0 8px; border: 0; background: transparent; color: #A5570B; font-size: 13px; font-weight: 700; }
.wwn-mkt-list { flex: 0 0 auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.wwn-mkt-row { width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: #fff; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.wwn-mkt-row:hover { background: #F7F5F1; }
.wwn-mkt-row.is-current { background: var(--wwn-orange-soft); }
.wwn-mkt-row-top { display: flex; align-items: center; gap: 8px; width: 100%; }
.wwn-mkt-row-name { flex: 1 1 auto; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--wwn-ink); }
.wwn-mkt-row-type { flex-shrink: 0; padding: 2px 8px; border-radius: 4px; background: #F1EFEA; font-size: 11px; line-height: 16px; font-weight: 700; color: #4A4640; }
.wwn-mkt-row-sum { font-size: 13px; line-height: 18px; color: var(--wwn-muted); }
.wwn-mkt-empty { padding: 16px; font-size: 14px; color: var(--wwn-muted); }
.wwn-mkt-item-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--wwn-line); display: flex; flex-direction: column; gap: 8px; }
.wwn-mkt-kicker { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .24em; color: var(--wwn-muted); }
.wwn-mkt-item-head h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 700; color: var(--wwn-ink); }
.wwn-mkt-sum { font-size: 15px; line-height: 22px; color: #4A4640; }
.wwn-mkt-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wwn-mkt-tags span { padding: 3px 10px; border-radius: 999px; background: #F1EFEA; font-size: 12px; line-height: 18px; color: #4A4640; }
.wwn-mkt-item-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 18px; }
.wwn-mkt-note { padding: 14px 16px; border-radius: 8px; background: #FDF6E6; border: 1px solid #F0E0B8; font-size: 14px; line-height: 21px; color: #4A4640; }
.wwn-mkt-note-label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.wwn-mkt-field { display: flex; flex-direction: column; gap: 6px; }
.wwn-mkt-field-label { font-size: 13px; font-weight: 700; color: #4A4640; }
.wwn-mkt-subject { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--wwn-line); background: #FAF9F6; font-size: 15px; line-height: 22px; }
.wwn-mkt-text { padding: 16px 18px; border-radius: 8px; border: 1px solid var(--wwn-line); background: #FAF9F6; font-size: 15px; line-height: 23px; white-space: pre-wrap; color: var(--wwn-ink); user-select: text; }
.wwn-mkt-hooks { display: flex; flex-wrap: wrap; gap: 6px; }
.wwn-mkt-hooks span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--wwn-line); font-size: 14px; line-height: 20px; }
.wwn-mkt-tiles { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.wwn-mkt-tile-wrap { display: flex; flex-direction: column; gap: 6px; }
.wwn-mkt-tile { border-radius: 8px; display: flex; flex-direction: column; gap: 8px; box-sizing: border-box; }
.wwn-mkt-tile-square { width: 180px; height: 180px; padding: 16px; background: #111111; }
.wwn-mkt-tile-story { width: 124px; height: 220px; padding: 26px 12px; background: #2B1D14; }
.wwn-mkt-tile-kicker { font-size: 8px; line-height: 10px; font-weight: 700; letter-spacing: .24em; color: var(--wwn-gold); }
.wwn-mkt-tile-rule { width: 24px; height: 1px; background: var(--wwn-gold); }
.wwn-mkt-tile-head { flex: 1 1 auto; font-size: 17px; line-height: 20px; font-weight: 700; color: #fff; }
.wwn-mkt-tile-story .wwn-mkt-tile-head { font-size: 15px; line-height: 18px; }
.wwn-mkt-tile-cta { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--wwn-orange); color: #111111; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.wwn-mkt-tile-cap { font-size: 12px; color: var(--wwn-muted); }
.wwn-mkt-tile-idea { font-size: 13px; line-height: 19px; color: var(--wwn-muted); max-width: 260px; }
.wwn-mkt-actions { flex-shrink: 0; padding: 14px 24px; border-top: 1px solid var(--wwn-line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wwn-mkt-copy { height: 48px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--wwn-orange); color: #111111; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.wwn-mkt-copy:hover { background: var(--wwn-orange-dark); }
.wwn-mkt-mail { height: 48px; padding: 0 20px; border: 1px solid #C9C4BB; border-radius: 8px; display: inline-flex; align-items: center; color: var(--wwn-ink) !important; text-decoration: none !important; font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.wwn-mkt-mail:hover { background: #F7F5F1; }
.wwn-mkt-id { margin-left: auto; font-size: 12px; color: var(--wwn-muted); }
@media (max-width: 900px) {
    .wwn-mkt-body { grid-template-columns: 1fr; height: auto; }
    .wwn-mkt-find { overflow: visible; }
    .wwn-mkt-list { max-height: 420px; overflow-y: auto; }
    .wwn-mkt-item-body { overflow: visible; }
}
/* ==========================================================================
   My public profile and cards (#WwnMyProfile)
   ========================================================================== */
#navbar .wwn-me-avatar > a { display: flex; align-items: center; height: 100%; padding: 0 10px; }
#navbar .wwn-me-avatar img, #navbar .wwn-me-avatar .avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--wwn-gold); object-fit: cover; }
.wwn-me { max-width: 1180px; }
.wwn-me-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin: 4px 0 18px; flex-wrap: wrap; }
.wwn-me-head h3 { margin: 0 0 4px; font-weight: 700; }
.wwn-me-sub { color: var(--wwn-muted); }
.wwn-me-url { margin-top: 6px; font-size: 13px; color: var(--wwn-muted); }
.wwn-me-badge { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.wwn-me-badge.is-ok { background: #E9F6EE; color: #1E7A45; } .wwn-me-badge.is-warn { background: #FFF3E3; color: #A5570B; }
.wwn-me-badge.is-muted { background: #EFECE6; color: var(--wwn-muted); } .wwn-me-badge.is-bad { background: #FDECEA; color: #B42318; }
.wwn-me-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.wwn-me-photo img, .wwn-me-nophoto { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--wwn-gold); background: #3A3631; }
.wwn-me-nophoto { display: flex; align-items: center; justify-content: center; color: #9A958C; font-size: 40px; }
.wwn-me-photo small { color: var(--wwn-muted); max-width: 180px; }
.wwn-me-photo input[type="file"] { display: none !important; }
.wwn-me-problems { background: #FFF3E3; color: #6B4A06; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.wwn-me-problems ul { margin: 6px 0 0; padding-left: 20px; }
.wwn-me-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .wwn-me-grid { grid-template-columns: 1fr; } }
.wwn-me-field { margin-bottom: 14px; } .wwn-me-field label { font-weight: 600; display: block; margin-bottom: 4px; }
.wwn-me-field small { display: block; color: var(--wwn-muted); margin-top: 4px; font-size: 12px; }
.wwn-me-check label { font-weight: 500; } .wwn-me-check input { margin-right: 6px; }
.wwn-me-tag { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
.wwn-me-tag.is-ok { background: #E9F6EE; color: #1E7A45; } .wwn-me-tag.is-wait { background: #FFF3E3; color: #A5570B; }
.wwn-me-socials { display: grid; gap: 8px; margin-bottom: 14px; }
.wwn-me-fixed { background: #F7F5F1; border-radius: 8px; padding: 10px 14px; margin: 6px 0 14px; font-size: 13px; }
.wwn-me-fixed > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.wwn-me-fixed span { color: var(--wwn-muted); } .wwn-me-fixed em { color: #A5570B; font-style: normal; }
.wwn-me-fixed small { display: block; color: var(--wwn-muted); margin-top: 6px; }
.wwn-me-actions { display: flex; align-items: center; gap: 12px; }
.wwn-me-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 16px; }
.wwn-me-card img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--wwn-line); box-shadow: 0 4px 16px rgba(17,17,17,.08); display: block; background: #111; }
.wwn-me-card-meta { margin: 8px 0 6px; } .wwn-me-card-meta b { display: block; } .wwn-me-card-meta small { color: var(--wwn-muted); display: block; line-height: 1.35; }
.wwn-me-card-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.wwn-me-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.wwn-me-link { font-size: 13px; color: var(--wwn-muted); margin-bottom: 10px; } .wwn-me-link code { font-size: 13px; }
.wwn-me-consent { font-size: 13px; color: #6B4A06; background: #FFF8EC; border-left: 3px solid var(--wwn-gold); padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 0; }

/* ---- Getting started: the new adviser's checklist (dashlet on the desk, or the whole home page) */
.wwn-gs{font-size:13px}
.wwn-gs-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:12px}
.wwn-gs-title{font-size:18px;font-weight:600;color:#111}
.wwn-gs-sub{color:#6B665E;margin-top:2px}
.wwn-gs-bar{flex:0 0 160px;height:6px;background:#E2DACB;border-radius:3px;overflow:hidden}
.wwn-gs-bar span{display:block;height:100%;background:#C49A2A;border-radius:3px}
.wwn-gs.is-done .wwn-gs-bar span{background:#1E7B45}
.wwn-gs-list{list-style:none;margin:0;padding:0}
.wwn-gs-item{display:flex;gap:12px;padding:9px 0;border-top:1px solid #EFE9DF}
.wwn-gs-item:first-child{border-top:0}
.wwn-gs-mark{flex:0 0 26px;height:26px;border-radius:50%;background:#111;color:#C49A2A;font-weight:600;font-size:12px;display:flex;align-items:center;justify-content:center}
.wwn-gs-item.is-done .wwn-gs-mark{background:#1E7B45;color:#fff}
.wwn-gs-item.is-waiting .wwn-gs-mark{background:#F3E3C3;color:#8A5A00}
.wwn-gs-item.is-done .wwn-gs-item-title{color:#6B665E;text-decoration:line-through}
.wwn-gs-item.is-done .wwn-gs-item-detail{color:#8A8F96}
.wwn-gs-item-title{font-weight:600;color:#111}
.wwn-gs-item-title em{font-style:normal;font-weight:400;font-size:11px;color:#8A5A00;background:#F3E3C3;border-radius:10px;padding:1px 8px;margin-left:6px}
.wwn-gs-item-detail{color:#444;margin-top:1px}
.wwn-gs-link{display:inline-block;margin-top:3px;color:#B8730E;font-weight:600}
.wwn-gs-foot{margin-top:12px;padding-top:10px;border-top:1px solid #EFE9DF;color:#6B665E;font-size:12px}
.wwn-gs-page{padding:32px 16px 48px}
.wwn-gs-page-inner{max-width:760px;margin:0 auto}
.wwn-gs-kicker{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#C49A2A;font-weight:600}
.wwn-gs-h{font-size:28px;margin:6px 0 8px;color:#111}
.wwn-gs-lead{font-size:15px;color:#444;margin:0 0 20px}
.wwn-gs-card{background:#fff;border-radius:8px;border-top:3px solid #C49A2A;padding:20px 22px;box-shadow:0 4px 18px rgba(0,0,0,.06)}

/* LPA screen (#WwnClientFile/lpa/{id}) */
.wwn-lpa-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.wwn-lpa-options { display: grid; gap: 8px; }
.wwn-lpa-option { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--wwn-line); border-radius: 10px;
    padding: 10px 12px; cursor: pointer; font-weight: 400; margin: 0; }
.wwn-lpa-option input { margin-top: 3px; }
.wwn-lpa-option strong { display: block; }
.wwn-lpa-option small { display: block; color: #5B5F66; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.wwn-lpa-option.is-on { border-color: var(--wwn-orange); background: #FFF8EC; }
.wwn-lpa-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wwn-lpa-examples .btn { white-space: normal; text-align: left; max-width: 100%; }
.wwn-role-chip.is-ok { background: #E7F6EC; color: #1E7A3C; }
.wwn-role-chip.is-danger { background: #FDECEA; color: #B42318; }
.wwn-role-chip.is-amber { background: #FFF3E3; color: #A5570B; }

/* Orders: the price list and the invoice preview */
.wwn-lines-table { width: 100%; border-collapse: collapse; margin: 0 0 10px 0; }
.wwn-lines-table td { padding: 4px 6px; border-bottom: 1px solid var(--default-border-color, #e5e5e5); vertical-align: top; }
.wwn-lines-price { text-align: right; white-space: nowrap; }
.wwn-lines-sum td { font-weight: bold; border-bottom: none; }
.wwn-lines-group { margin: 0 0 10px 0; }
.wwn-lines-group-name { font-weight: bold; color: #1F3C77; margin: 6px 0 4px 0; }
.wwn-lines-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 3px 0; font-weight: normal; cursor: pointer; }
.wwn-lines-row input { width: 64px; flex: 0 0 64px; }
.wwn-lines-row .wwn-lines-name { flex: 1 1 auto; }
.wwn-lines-row.is-on .wwn-lines-name { font-weight: bold; }
.wwn-lines-total { margin-top: 8px; padding: 8px 10px; background: #F6F1EA; border-radius: 4px; }
.wwn-raise ul { margin: 4px 0 0 18px; padding: 0; }

/* Two-factor first: one full-screen panel, nothing behind it can be clicked */
body.wwn-gated { overflow: hidden; }
.wwn-gate { position: fixed; inset: 0; z-index: 1040; background: rgba(17, 17, 17, .92); display: flex;
    align-items: flex-start; justify-content: center; overflow-y: auto; padding: 40px 16px; }
.wwn-gate.is-behind { z-index: 1030; }
.wwn-gate-card { background: #fff; max-width: 640px; width: 100%; border-radius: 8px; padding: 32px; color: #222;
    border-top: 4px solid #E8821A; }
.wwn-gate-card h1 { font-size: 24px; line-height: 30px; color: #1F3C77; margin: 6px 0 14px 0; }
.wwn-gate-kicker { text-transform: uppercase; letter-spacing: .8px; font-size: 12px; color: #C49A2A; font-weight: bold; }
.wwn-gate-steps { padding-left: 20px; margin: 16px 0; }
.wwn-gate-steps li { margin: 0 0 10px 0; line-height: 1.5; }
.wwn-gate-actions { display: flex; gap: 12px; align-items: center; margin: 20px 0 10px 0; }
.wwn-gate-help { font-size: 13px; color: #6B665E; margin: 0; }

/* Policies and procedures */
.wwn-pol-intro { max-width: 760px; color: #555; }
.wwn-pol-h { margin: 22px 0 8px 0; color: #1F3C77; }
.wwn-pol-list { background: #fff; border-radius: 6px; border: 1px solid var(--default-border-color, #e5e5e5); }
.wwn-pol-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 14px;
    border-bottom: 1px solid var(--default-border-color, #eee); }
.wwn-pol-row:last-child { border-bottom: none; }
.wwn-pol-name { font-weight: bold; font-size: 15px; }
.wwn-pol-sub, .wwn-pol-counts { font-size: 12.5px; color: #6B665E; margin-top: 2px; }
.wwn-pol-side { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.wwn-pol-other { background: #FFF6EA; border-left: 3px solid #E8821A; padding: 10px 14px; margin: 10px 0; border-radius: 4px; }
@media (max-width: 700px) { .wwn-pol-row { flex-direction: column; align-items: flex-start; } }

/* The reader */
.wwn-reader-dialog .modal-dialog { max-width: 860px; width: calc(100% - 24px); }
.wwn-reader-meta { font-size: 12.5px; color: #6B665E; margin: 0 0 10px 0; }
.wwn-reader-changes { background: #F6F1EA; border-radius: 4px; padding: 8px 12px; margin: 0 0 12px 0; }
.wwn-reader-body { max-height: 65vh; overflow-y: auto; padding: 4px 6px 4px 2px; line-height: 1.6; font-size: 14.5px; }
.wwn-reader-body h2 { font-size: 19px; color: #1F3C77; margin: 18px 0 8px 0; }
.wwn-reader-body h3 { font-size: 16px; margin: 14px 0 6px 0; }
.wwn-reader-end { text-align: center; color: #6B665E; font-size: 12px; text-transform: uppercase; letter-spacing: .8px;
    border-top: 1px solid #ddd; margin: 22px 0 14px 0; padding-top: 8px; }
.wwn-reader-sign { background: #FFF6EA; border: 1px solid #F1C998; border-radius: 6px; padding: 14px; margin: 0 0 16px 0; }
.wwn-reader-tick { display: flex; gap: 8px; font-weight: normal; margin: 0 0 10px 0; align-items: flex-start; }
.wwn-reader-tick input { margin-top: 4px; }
.wwn-reader-code { display: flex; gap: 8px; max-width: 360px; margin-bottom: 6px; }
.wwn-reader-code input { letter-spacing: 3px; font-size: 16px; }
.wwn-reader-done { color: #1E7B34; font-weight: bold; margin: 0 0 16px 0; }
.wwn-reader-held { color: #6B665E; margin: 0 0 16px 0; }
.wwn-reader-appendix summary { cursor: pointer; font-weight: bold; color: #1F3C77; margin: 8px 0; }
.wwn-decl-list { padding-left: 20px; }
.wwn-decl-list li { margin: 0 0 12px 0; }
.wwn-decl-yn { display: flex; gap: 18px; margin-top: 4px; }
.wwn-decl-yn label { font-weight: normal; }
.wwn-decl-code { max-width: 300px; margin-top: 8px; letter-spacing: 3px; }
body.wwn-gated .wwn-ask-btn { display: none; }

/* Onboarding started by the Hub: four stages and the per cent (Tools/Onboarding/Journey, 30 Oct 2026) */
.wwn-onb-progress:has(.wwn-onb-stages) { display: block; }
.wwn-onb-stages { display: flex; gap: 4px; }
.wwn-onb-pip.is-locked { color: #A9B0BF; }
.wwn-onb-pip.is-locked .wwn-onb-pip-n { background: #F3F5F9; color: #A9B0BF; }
.wwn-onb-meter { height: 6px; background: #EEF1F7; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.wwn-onb-meter span { display: block; height: 100%; background: #C49A2A; border-radius: 3px; transition: width .4s; }
.wwn-onb-meter-t { font-size: 12px; color: #55607A; margin-top: 4px; text-align: right; }
.wwn-onb-plan { padding-left: 20px; margin: 0 0 14px; }
.wwn-onb-plan li { margin-bottom: 8px; font-size: 15px; color: #16264A; }
.wwn-onb-courses { list-style: none; padding: 0; margin: 0 0 18px; border: 1px solid #E3E8F0; border-radius: 8px; }
.wwn-onb-course { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid #EEF1F7; }
.wwn-onb-course:first-child { border-top: 0; }
.wwn-onb-course > .fas { margin-top: 3px; color: #A9B0BF; }
.wwn-onb-course.is-done > .fas { color: #2E7D4F; }
.wwn-onb-course small { display: block; }

/* The office's onboarding panel on the adviser record */
.wwn-op-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.wwn-op-stage { border: 1px solid #E3E8F0; border-radius: 8px; padding: 10px 12px; background: #fff; }
.wwn-op-stage b { display: block; font-size: 13px; color: #16264A; }
.wwn-op-stage small { color: #55607A; }
.wwn-op-stage.is-done { border-color: #C49A2A; background: #FBF7EC; }
.wwn-op-stage.is-now { border-color: #1F3C77; box-shadow: inset 3px 0 0 #1F3C77; }
.wwn-op-stage.is-locked { opacity: .6; }
.wwn-op-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.wwn-op-box h5 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #55607A; }
.wwn-op-box ul { list-style: none; padding: 0; margin: 0; }
.wwn-op-box li { padding: 4px 0; border-bottom: 1px dashed #EEF1F7; font-size: 13px; }
.wwn-op-ok { color: #2E7D4F; } .wwn-op-wait { color: #B07A00; } .wwn-op-no { color: #A9B0BF; }
.wwn-op-note { background: #F7F8FB; border-radius: 6px; padding: 8px 10px; margin-bottom: 6px; font-size: 13px; white-space: pre-wrap; }
.wwn-op-note small { display: block; color: #55607A; }
.wwn-progress-cell { display: flex; align-items: center; gap: 6px; }
.wwn-progress-cell i { flex: 1; height: 5px; background: #EEF1F7; border-radius: 3px; overflow: hidden; min-width: 40px; }
.wwn-progress-cell i b { display: block; height: 100%; background: #C49A2A; }
@media (max-width: 760px) { .wwn-op-stages { grid-template-columns: 1fr 1fr; } }

/* "Client portal" on the client's page (Tools/Portal/Activation) */
.wwn-pp-status { display: inline-block; font-weight: 600; font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-bottom: 6px; }
.wwn-pp-on { background: #E5F3EA; color: #2E7D4F; } .wwn-pp-wait { background: #FFF4D6; color: #8A6100; }
.wwn-pp-off { background: #F6E3E3; color: #9B2C2C; } .wwn-pp-none { background: #EEF1F7; color: #55607A; }
.wwn-pp-actions { margin-top: 8px; }

/* Client portal in the FEOS layout (30 Oct 2026): the menu in the header band, Home with To do and shortcuts */
.wwn-portal-bar.is-menu { display: block; padding: 18px 22px 12px; }
.wwn-portal-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 10px; }
.wwn-portal-menu { display: flex; justify-content: space-between; gap: 8px; }
.wwn-portal-menu-left, .wwn-portal-menu-right { display: flex; gap: 4px; flex-wrap: wrap; }
.wwn-portal-menuitem { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: #E9E4D8;
    font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.wwn-portal-menuitem:hover { background: rgba(255,255,255,.08); color: #fff; }
.wwn-portal-menuitem.is-active { background: #fff; color: #16130F; }
.wwn-portal-menuitem.is-active .fas { color: #C49A2A; }
.wwn-portal-menuitem .wwn-portal-navcount { margin-left: 2px; }
.wwn-portal-home { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 14px; align-items: start; }
.wwn-portal-home-side .wwn-portal-card { border-top: 3px solid #C49A2A; }
.wwn-portal-todo-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.wwn-portal-todo-row { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; background: #fff;
    border: 1px solid #ECE6DA; border-left: 4px solid #C49A2A; border-radius: 10px; padding: 14px 16px; cursor: pointer; }
.wwn-portal-todo-row:hover { border-color: #C49A2A; }
.wwn-portal-todo-ico { width: 34px; height: 34px; border-radius: 8px; background: #FBF4E2; color: #A98A2F;
    display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wwn-portal-todo-t { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.wwn-portal-todo-t small { color: #6B665E; font-size: 13px; }
.wwn-portal-todo-go { color: #A98A2F; font-weight: 600; white-space: nowrap; }
.wwn-portal-empty { color: #6B665E; margin: 8px 0 0; }
.wwn-portal-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.wwn-portal-tile { display: flex; flex-direction: column; gap: 6px; text-align: left; background: #fff; border: 1px solid #ECE6DA;
    border-radius: 14px; padding: 18px; cursor: pointer; }
.wwn-portal-tile:hover { border-color: #C49A2A; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.wwn-portal-tile .fas { color: #C49A2A; font-size: 20px; }
.wwn-portal-tile strong { font-size: 16px; color: #16130F; margin-top: 6px; }
.wwn-portal-tile small { color: #6B665E; font-size: 13px; }
.wwn-portal-write { position: fixed; right: 22px; bottom: 22px; z-index: 50; background: #16130F; color: #fff !important;
    border-radius: 999px; padding: 12px 18px; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,.2); text-decoration: none !important; }
.wwn-portal-write .fas { color: #C49A2A; margin-right: 6px; }
@media (max-width: 900px) {
    .wwn-portal-home { grid-template-columns: minmax(0, 1fr); }
    .wwn-portal-menu { overflow-x: auto; }
    .wwn-portal-menu-left, .wwn-portal-menu-right { flex-wrap: nowrap; }
    .wwn-portal-menuitem { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
    .wwn-portal-write { right: 14px; bottom: 14px; padding: 10px 14px; }
}
.wwn-portal-home-side .wwn-portal-todo { display: none; }

/* Two-factor in the wizard, three steps (30 Oct 2026) */
.wwn-onb-2steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.wwn-onb-2steps > li { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid #E3E8F0; border-radius: 10px; background: #FAFBFD; opacity: .55; }
.wwn-onb-2steps > li.is-open { opacity: 1; background: #fff; }
.wwn-onb-2steps p { margin: 4px 0 8px; color: #55607A; }
.wwn-onb-2n { width: 28px; height: 28px; border-radius: 50%; background: #1F3C77; color: #fff; font-weight: 700; flex: none;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.wwn-onb-stores { display: flex; gap: 8px; flex-wrap: wrap; }
.wwn-onb-store { border: 1px solid #D7DDE8; border-radius: 8px; padding: 7px 12px; font-size: 13px; color: #16264A !important; text-decoration: none !important; }
.wwn-onb-store:hover { border-color: #1F3C77; }
.wwn-onb-2row { display: flex; gap: 8px; margin-top: 10px; max-width: 460px; }
.wwn-onb-2row .form-control { flex: 1; }
.wwn-onb-code { letter-spacing: .2em; font-size: 18px; }
.wwn-onb-2qr { display: flex; gap: 18px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.wwn-onb-qr { background: #fff; padding: 8px; border: 1px solid #E3E8F0; border-radius: 8px; }
.wwn-onb-key { display: block; margin-top: 6px; font-size: 15px; letter-spacing: .06em; }
.wwn-onb-2msg.is-bad { color: #A12E2E; margin-top: 6px; } .wwn-onb-2msg.is-ok { color: #2E7D4F; margin-top: 6px; }

/* The office's review window for one onboarding check */
.modal-dialog:has(.wwn-rv) { width: min(1100px, 96vw); max-width: 96vw; }
.wwn-rv { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; }
.wwn-rv-facts { width: 100%; margin-bottom: 10px; } .wwn-rv-facts th { width: 40%; color: #55607A; font-weight: 500; padding: 4px 8px 4px 0; vertical-align: top; }
.wwn-rv-facts td { padding: 4px 0; font-weight: 600; }
.wwn-rv h5 { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #55607A; }
.wwn-rv-notes { white-space: pre-wrap; font-size: 12px; color: #55607A; background: #F7F8FB; border-radius: 6px; padding: 8px; max-height: 140px; overflow: auto; }
.wwn-rv-tick { display: flex; gap: 8px; font-weight: 400; margin: 4px 0; }
.wwn-rv-right { background: #F3F5F9; border-radius: 8px; padding: 10px; min-height: 420px; display: flex; flex-direction: column; gap: 10px; }
.wwn-rv-right img { max-width: 100%; border-radius: 4px; display: block; }
.wwn-rv-right iframe { width: 100%; height: 560px; border: 0; background: #fff; }
.wwn-op-bad { color: #A12E2E; } .wwn-op-ready { background: #E5F3EA; color: #2E7D4F; padding: 8px 10px; border-radius: 6px; }
.wwn-op-waiting { background: #FFF4D6; color: #8A6100; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.wwn-op-box li .btn-xs { margin-left: 6px; }
@media (max-width: 860px) { .wwn-rv { grid-template-columns: 1fr; } }
.wwn-onb-checks { text-align: left; max-width: 560px; margin: 18px auto; }
.wwn-onb-done .wwn-onb-aside { text-align: left; }
.wwn-onb-redo { text-align: left; border: 1px solid #F0D9A8; background: #FFFBF1; border-radius: 10px; padding: 16px 18px; margin: 14px 0; }
.wwn-onb-redo h3 { margin: 0 0 6px; font-size: 16px; color: #16264A; }
.wwn-onb-why { color: #8A4B00; }
.wwn-onb-radio { display: flex; gap: 8px; font-weight: 400; margin: 6px 0; align-items: center; }
.wwn-onb-choice { margin-bottom: 8px; }
.wwn-op-bad { color: #A12E2E; }
.wwn-onb-if[hidden] { display: none !important; }
.wwn-onb-rowbtn { margin-left: auto; align-self: center; }
.wwn-onb-signall { width: 100%; background: #F7F8FB; border-radius: 10px; padding: 14px 16px; }
.wwn-reader-onb { background: #E5F3EA; color: #2E7D4F; padding: 12px 14px; border-radius: 8px; margin: 12px 0; }
.wwn-rv { text-align: left; } .modal-dialog:has(.wwn-rv) { margin-top: 48px; }
.wwn-op-box li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .wwn-op-btn { margin-left: auto; }
.modal-dialog:has(.wwn-sl-url) { margin-top: 48px; } .modal-body:has(.wwn-sl-url) { text-align: left; }

/* The menu (Tools/Hub/Menu, 31 Oct 2026): one row on a laptop too — slimmer tabs and a narrower search box. */
@media (min-width: 768px) {
    #navbar ul.tabs > li.tab > a { padding-left: 7px; padding-right: 7px; }
    #navbar .navbar-form.global-search-container, #navbar .navbar-form.global-search-container .input-group { width: 150px !important; }
    #navbar .navbar-form.global-search-container input.global-search-input { width: 100% !important; }
}

/* Every file of a client in one place (#Contact/files/{id}, views/files/browser; 31 Oct 2026) */
.wwn-fb { padding: 4px 0 24px; }
.wwn-fb-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.wwn-fb-head h3 { margin: 4px 0 0; } .wwn-fb-head h3 small { font-size: 14px; margin-left: 6px; }
.wwn-fb-back { font-size: 13px; }
.wwn-fb-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wwn-fb-tools .wwn-fb-q { width: 220px; } .wwn-fb-tools .wwn-fb-kind { width: 130px; }
.wwn-fb-tip { margin: 8px 0 12px; font-size: 12px; }
.wwn-fb-body { display: grid; grid-template-columns: minmax(320px, 2fr) 3fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .wwn-fb-body { grid-template-columns: 1fr; } }
.wwn-fb-folder { background: var(--panel-bg, #fff); border: 1px solid #e6e1d8; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.wwn-fb-folder.is-over { border-color: #E8821A; box-shadow: 0 0 0 3px rgba(232, 130, 26, .25); }
.wwn-fb-fhead { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; background: #faf7f2; }
.wwn-fb-fhead .fa-folder, .wwn-fb-fhead .fa-folder-open { color: #C49A2A; }
.wwn-fb-fhead b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wwn-fb-count { font-size: 12px; color: #888; }
.wwn-fb-folder.is-folded .wwn-fb-files { display: none; }
.wwn-fb-file { display: grid; grid-template-columns: 22px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; padding: 8px 12px;
    border-top: 1px solid #f0ece5; cursor: pointer; }
.wwn-fb-file:hover { background: #fdf8f0; } .wwn-fb-file.is-on { background: #fbeedc; }
.wwn-fb-file[draggable="true"] { cursor: grab; }
.wwn-fb-icon { grid-row: 1 / 3; color: #9a8f80; padding-top: 3px; }
.wwn-fb-name { font-weight: 500; word-break: break-word; }
.wwn-fb-meta { grid-column: 2; font-size: 12px; color: #888; }
.wwn-fb-status { grid-column: 3; grid-row: 1; font-size: 11px; padding: 1px 7px; border-radius: 9px; background: #eee; color: #555; align-self: start; }
.wwn-fb-status.is-approved, .wwn-fb-status.is-signed, .wwn-fb-status.is-done { background: #e3f3e6; color: #2c7a3c; }
.wwn-fb-status.is-in-check, .wwn-fb-status.is-new { background: #fff1db; color: #a35d00; }
.wwn-fb-status.is-returned { background: #fde3e1; color: #b3261e; }
.wwn-fb-status.is-sent { background: #e2edfb; color: #1f5fa8; }
.wwn-fb-new { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: #fff;
    background: #E8821A; border-radius: 8px; padding: 0 6px; vertical-align: middle; }
.wwn-fb-lock { margin-left: 6px; color: #b3261e; font-size: 11px; }
.wwn-fb-empty { padding: 10px 12px; font-size: 13px; border-top: 1px solid #f0ece5; }
.wwn-fb-add { padding: 12px; border-top: 1px solid #f0ece5; background: #fffaf2; display: grid; gap: 8px; }
.wwn-fb-add ul { margin: 0; padding-left: 18px; font-size: 13px; } .wwn-fb-add label { font-weight: normal; display: grid; gap: 4px; }
.wwn-fb-add-btns { display: flex; gap: 8px; }
.wwn-fb-view { position: sticky; top: 70px; background: var(--panel-bg, #fff); border: 1px solid #e6e1d8; border-radius: 10px; min-height: 420px; overflow: hidden; }
.wwn-fb-none { text-align: center; padding: 120px 20px; } .wwn-fb-none .far { font-size: 40px; opacity: .4; }
.wwn-fb-vhead { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid #f0ece5; flex-wrap: wrap; }
.wwn-fb-vhead small { display: block; color: #777; } .wwn-fb-vnote { white-space: pre-wrap; }
.wwn-fb-vbtns { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; } .wwn-fb-vbtns .wwn-fb-move { width: auto; max-width: 220px; }
.wwn-fb-show { background: #f4f1ec; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.wwn-fb-show iframe { width: 100%; height: 72vh; border: 0; background: #fff; }
.wwn-fb-show img { max-width: 100%; max-height: 72vh; display: block; margin: 0 auto; }
.wwn-fb-show p { padding: 40px; }
.wwn-fp p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .wwn-fp-open { margin-left: auto; }
.wwn-fp-list { list-style: none; padding: 0; margin: 0; } .wwn-fp-list li { padding: 4px 0; border-top: 1px solid #f0ece5; }
/* CPD (My CPD, My desk, the annual declaration) and Performance — 31 Oct 2026 */
.wwn-cpd-summary { margin: 0 0 16px; }
.wwn-cpd-me, .wwn-cpd-all { border: 1px solid var(--wwn-line, #e3ddd2); border-radius: 12px; background: #fff; padding: 14px 16px; }
.wwn-cpd-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.wwn-cpd-head select { width: auto; }
.wwn-cpd-figure { font-size: 15px; margin-bottom: 6px; }
.wwn-cpd-figure b { font-size: 22px; }
.wwn-cpd-bar { display: block; height: 8px; border-radius: 4px; background: #eee8dd; overflow: hidden; margin: 4px 0 6px; }
.wwn-cpd-bar > span { display: block; height: 100%; border-radius: 4px; background: #2e7d5b; }
.wwn-cpd-bar > span.behind { background: #e8821a; }
.wwn-cpd-tabs { margin-bottom: 10px; }
.wwn-cpd-table td.r, .wwn-cpd-table th.r { text-align: right; }
.wwn-cpd-card { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--wwn-line, #e3ddd2); padding: 10px 0; }
.wwn-cpd-card-main { flex: 1; min-width: 0; }
.wwn-cpd-card-buttons { white-space: nowrap; }
.wwn-cpd-on-approve .list-container { display: none; }
.wwn-desk-cpd { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 14px; border: 1px solid var(--wwn-line, #e3ddd2);
    border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.wwn-desk-cpd:hover { text-decoration: none; border-color: #2e7d5b; }
.wwn-desk-cpd .wwn-cpd-bar { flex: 1; margin: 0; }
.wwn-desk-cpd-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.wwn-decl-cpd { padding: 8px 12px; border-radius: 8px; background: #fbf3e6; }
.wwn-decl-cpd.is-ok { background: #eaf5ef; }
.wwn-perf-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.wwn-perf-bar select { width: auto; }
.wwn-perf-bar .wwn-perf-csv { margin-left: auto; }
.wwn-perf-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.wwn-perf-card { border: 1px solid var(--wwn-line, #e3ddd2); border-radius: 12px; background: #fff; padding: 14px 16px; }
.wwn-perf-label { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: #6b6458; }
.wwn-perf-value { font-size: 28px; font-weight: 600; margin: 4px 0; }
.wwn-perf-sub { font-size: 12px; color: #6b6458; }
.wwn-perf-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--wwn-line, #e3ddd2); border-radius: 12px; margin-bottom: 18px; }
.wwn-perf-table { margin: 0; }
.wwn-perf-table th.r, .wwn-perf-table td.r { text-align: right; white-space: nowrap; }
.wwn-perf-table td.wwn-perf-ok { color: #2e7d5b; font-weight: 600; }
.wwn-perf-reasons { background: #fff; border: 1px solid var(--wwn-line, #e3ddd2); border-radius: 12px; padding: 12px 12px 12px 32px; }
@media (max-width: 900px) { .wwn-perf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Website forms (Tools/Leads, 31 Oct 2026): the Candidates panel on Advisers, the WhatsApp window */
.wwn-cand { margin-bottom: 16px; }
.wwn-cand-head { display: flex; align-items: baseline; gap: 14px; }
.wwn-cand-head .wwn-cand-all { margin-left: auto; }
.wwn-cand .panel-title .badge { margin-left: 6px; }
.wwn-cand td { vertical-align: top !important; padding: 10px 15px !important; }
.wwn-cand .label { margin-left: 6px; font-weight: 500; }
.wwn-wa-list { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.wwn-wa-pick { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 10px; border: 1px solid #ddd;
    border-radius: 16px; font-weight: 400; cursor: pointer; }
.wwn-wa-pick:has(input:checked) { border-color: #25D366; background: rgba(37, 211, 102, .1); }
/* Announcements (wwn:announcements-ui, 31 Oct 2026): the megaphone in the top bar and the banner at the top of the page. */
#navbar .wwn-ann-btn > a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 10px; color: #E6E6E6; }
#navbar .wwn-ann-btn.has-unread > a { color: var(--wwn-gold, #DDBB63); }
#navbar .wwn-ann-count { position: absolute; top: 8px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: #E8821E; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.wwn-ann-banner { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; padding: 12px 16px; border-radius: 10px;
    background: #FBF4E2; border: 1px solid #E9D7A6; border-left: 4px solid #C49A2A; }
.wwn-ann-banner.is-important { background: #FDEDE4; border-color: #F2C3A6; border-left-color: #E8821E; }
.wwn-ann-banner > .fas { font-size: 20px; color: #C49A2A; }
.wwn-ann-banner.is-important > .fas { color: #E8821E; }
.wwn-ann-b-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wwn-ann-b-text span { color: #5b564e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wwn-ann-modal p { line-height: 1.55; }
.wwn-ann-imp { color: #C0561A; font-weight: 700; }
.wwn-ann-list { list-style: none; margin: 0; padding: 0; }
.wwn-ann-list li a { display: block; padding: 10px 4px; border-bottom: 1px solid #EEE6D6; color: inherit; }
.wwn-ann-list li a small { display: block; color: #7a746a; margin-top: 2px; }
.wwn-ann-list li.is-read strong { font-weight: 500; }
.wwn-ann-list .label { margin-left: 6px; }
@media (max-width: 600px) { .wwn-ann-banner { flex-wrap: wrap; } }

/* The client survey on the case (wwn:views/client-file/panels/surveys) */
.wwn-sv-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.wwn-sv-stars { color: #E8A317; letter-spacing: 1px; }
.wwn-sv-flag { padding: 1px 8px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.wwn-sv-flag.is-green { background: #E3F2E5; color: #2E6B36; }
.wwn-sv-flag.is-amber { background: #FDF0D5; color: #8A5A00; }
.wwn-sv-flag.is-red { background: #FBE3E3; color: #A12E2E; }
.wwn-sv-table th { font-weight: 500; color: #5b564e; padding: 2px 14px 2px 0; }
.wwn-sv-comment { margin: 8px 0; padding: 8px 12px; border-left: 3px solid #C49A2A; background: #FBF8F1; white-space: pre-wrap; font-size: 14px; }
/* Writing to a client from the Hub (handlers/mail/compose, 31 Oct 2026) */
.wwn-cmp-dialog .modal-dialog { width: 760px; max-width: calc(100% - 32px); margin: 30px auto !important; left: auto !important; right: auto !important; }
.wwn-cmp-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wwn-cmp-row > label { width: 64px; flex: 0 0 64px; margin: 0; color: #5b6470; font-weight: 600; }
.wwn-cmp-from { font-weight: 600; }
.wwn-cmp-tools { display: flex; gap: 6px; margin: 4px 0 6px 74px; flex-wrap: wrap; }
.wwn-cmp-attach { margin: 0; cursor: pointer; }
.wwn-cmp-body { min-height: 180px; height: auto; max-height: 45vh; overflow: auto; margin-left: 74px; width: calc(100% - 74px); }
.wwn-cmp-files { margin: 6px 0 0 74px; display: flex; gap: 6px; flex-wrap: wrap; }
.wwn-cmp-foot { margin: 10px 0 0 74px; padding-top: 8px; border-top: 1px dashed #d4d8de; opacity: .75; pointer-events: none; max-height: 220px; overflow: hidden; }
.wwn-cmp-quote { margin: 10px 0 0 74px; max-height: 160px; overflow: auto; font-size: 12px; color: #5b6470; }
@media (max-width: 600px) {
    .wwn-cmp-row { flex-wrap: wrap; } .wwn-cmp-row > label { width: auto; flex-basis: 100%; }
    .wwn-cmp-tools, .wwn-cmp-body, .wwn-cmp-files, .wwn-cmp-foot, .wwn-cmp-quote { margin-left: 0; width: 100%; }
}
/* Online signing on the case (wwn:views/client-file/panels/esign) */
.wwn-es-never { font-size: 13px; color: #5b564e; background: #FBF6EA; border-left: 4px solid #C49A2A; border-radius: 6px; padding: 8px 10px; }
.wwn-es-warn { font-size: 13px; color: #7a4b00; background: #FFF4E0; border-radius: 6px; padding: 8px 10px; }
.wwn-es-send { display: grid; grid-template-columns: minmax(220px, 1.4fr) 1fr auto; gap: 14px; align-items: start; margin: 10px 0 16px; }
.wwn-es-btns { padding-top: 20px; }
.wwn-es-send label { font-weight: 600; font-size: 12px; color: #5b564e; display: block; margin-bottom: 4px; }
.wwn-es-who { display: block !important; font-weight: 400 !important; font-size: 13px !important; color: inherit !important; }
.wwn-es-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.wwn-es-table td { vertical-align: top; }
.wwn-es-act { white-space: nowrap; text-align: right; }
.wwn-es-status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.wwn-es-wait { background: #FFF1D6; color: #8A5A00; } .wwn-es-ok { background: #E3F2E7; color: #2F7A45; }
.wwn-es-off { background: #EEE; color: #666; } .wwn-es-bad { background: #F8E1E1; color: #A12E2E; }
@media (max-width: 900px) { .wwn-es-send { grid-template-columns: 1fr; } .wwn-es-act { white-space: normal; text-align: left; } }
