/* Professional finish for the whole application: depth, rhythm, buttons, tables, focus, footer. Loaded last. */
:root { --p-ink: #14303f; --p-line: #dde7ec; --p-shadow: 0 1px 2px rgba(16, 42, 67, .05), 0 10px 28px rgba(16, 42, 67, .06); --p-shadow-hover: 0 2px 4px rgba(16, 42, 67, .06), 0 14px 34px rgba(16, 42, 67, .1); }
html { scroll-behavior: smooth; }
body { background: #f3f6f8; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: Manrope, 'DM Sans', sans-serif; letter-spacing: -.01em; color: var(--p-ink); }
::selection { background: #bfe0f3; color: #0b2a3b; }
:focus-visible { outline: 3px solid #3d9bd4; outline-offset: 2px; border-radius: 6px; }

/* surfaces */
.card, .panel, .question, .diagnosis-bar, .filters, .scopebar { border-color: var(--p-line) !important; box-shadow: var(--p-shadow); border-radius: 16px; }
.card, .panel { transition: box-shadow .25s ease; }
.card:hover, .panel:hover { box-shadow: var(--p-shadow-hover); }
details.card summary { font-weight: 600; cursor: pointer; }
.notice { border-radius: 12px; }

/* controls */
button, .button, a.btn, .btn { transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease; }
button:not(:disabled):hover, .button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 66, 122, .16); }
button:not(:disabled):active, .button:active, .btn:active { transform: translateY(0); box-shadow: none; }
button:disabled { cursor: not-allowed; opacity: .6; }
input, select, textarea { border-radius: 10px !important; border: 1px solid #cdd9e0; transition: border-color .2s, box-shadow .2s; }
input:hover, select:hover, textarea:hover { border-color: #9fb6c3; }
input:focus, select:focus, textarea:focus { border-color: #2a86c4; box-shadow: 0 0 0 3px rgba(42, 134, 196, .18); outline: none; }

/* tables */
table { border-collapse: collapse; }
table th { text-transform: uppercase; letter-spacing: .05em; font-size: 11px; color: #4c6574; background: #f4f8fa; font-weight: 700; }
table td, table th { border-bottom: 1px solid #e6edf1; }
table tbody tr:hover td { background: #f6fafc; }

/* application header and footer */
header { box-shadow: 0 1px 0 #fff, 0 10px 30px rgba(15, 46, 64, .07); }
.brand { letter-spacing: .06em; }
footer { background: #0f2c3d; color: #b9ccd6; border-top: 0; margin-top: 56px; }
footer b { color: #fff; }
footer a { color: #8fd0f2; }
footer .footer-brand img { filter: brightness(0) invert(1); opacity: .9; }
footer.atlas-footer { background: #0f2c3d; border-top: 0; color: #b9ccd6; }
footer.atlas-footer a { color: #8fd0f2; }
footer.atlas-footer b { color: #fff; }
footer.atlas-footer .footer-brand img { filter: brightness(0) invert(1); opacity: .9; }


@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { footer { display: none !important; } }

/* ---- calmer titles ---- */
.newhero h1, .home-layout .newhero h1, .wrap > .intro h1, [data-view=results] .results-hero h1, .evolvewrap .intro h1, .methodpage .intro h1,
#framework-dimensions .intro h1, .mx-hero h1 { font-size: clamp(26px, 2.6vw, 35px) !important; letter-spacing: -.025em !important; line-height: 1.2 !important; margin: 6px 0 8px !important; }
.newhero h1 em { font-size: inherit !important; }
main h2, #app h2 { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.25; }
.wrap > .intro, .results-hero { padding-block: 26px !important; }
.wrap > .intro p, .newhero p { font-size: 15px; max-width: 760px; }
.eyebrow, .eyebrow-s { letter-spacing: .12em; font-size: 11px; }
.eyebrow::before { content: ""; display: inline-block; width: 16px; height: 2px; margin-right: 8px; background: currentColor; vertical-align: middle; opacity: .65; }

/* ---- header: compact, underline navigation ---- */
header, .atlas-header { min-height: 66px !important; padding-block: 8px !important; }
header .unicc-logo, .atlas-header .unicc-logo { width: 42px !important; height: 46px !important; }
header .brand, .atlas-header .brand { font-size: 20px !important; }
header nav a, .atlas-header nav a { border-radius: 0 !important; padding: 10px 14px !important; background: transparent !important; color: #35505f !important; font-weight: 600; box-shadow: inset 0 -3px 0 transparent; transition: color .2s, box-shadow .2s; }
header nav a:hover, .atlas-header nav a:hover { color: var(--u-blue, #005FAB) !important; box-shadow: inset 0 -3px 0 #b9d6ee; }
header nav a.active, .atlas-header nav a.active { color: var(--u-navy, #00427A) !important; box-shadow: inset 0 -3px 0 var(--u-blue, #005FAB); font-weight: 700; }

/* ---- surfaces and controls ---- */
.card, .panel, .question, .diagnosis-bar, .filters, .scopebar { border-radius: 14px; }
a.button, .button, button.diagnosis-btn, .btn { border-radius: 10px; }
.scopebar { background: #fff; padding: 16px 18px; margin-bottom: 18px; border: 1px solid var(--p-line); }
.scope-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.scope-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 6px; }
.scope-row .field { margin: 0; min-width: 220px; }
.scope-row[hidden] { display: none; }
.subnav.admin a { border-radius: 8px; }
body > header nav a.active, body > header.atlas-header nav a.active { color: #00427A !important; background: transparent !important; box-shadow: inset 0 -3px 0 #005FAB !important; }
body > header nav a:hover { background: transparent !important; }
body > header nav a:not(.active) { color: #35505f !important; }

/* ---- organisations table, administrator view, comparison ---- */
.tablewrap { overflow-x: auto; }
.orgtable, .cmp-table, .heat-table { width: 100%; font-size: 13.5px; }
.orgtable th, .orgtable td, .cmp-table th, .cmp-table td { padding: 9px 10px; text-align: left; white-space: nowrap; vertical-align: middle; }
.orgtable td:nth-child(2) { white-space: normal; }
.orgtable tr.me td { background: #eaf3fb; font-weight: 600; }
.orgtable .named { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: #e3f2ec; color: #1f6a52; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.lvl-pill.small { font-size: 11.5px; padding: 3px 10px; }
.mini-dims { display: inline-flex; gap: 2px; }
.mini-dims i { width: 11px; height: 18px; border-radius: 3px; display: block; }
.tools-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.inline { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.notassessed { margin-top: 12px; font-size: 13px; color: #4c6574; }
.notassessed summary { cursor: pointer; font-weight: 600; }

.admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.admin-kpis .kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.admin-kpis .kpi > span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #4c6574; font-weight: 700; }
.admin-kpis .kpi strong { font: 800 34px Manrope, sans-serif; color: #14303f; line-height: 1.1; }
.admin-kpis .kpi strong em { font-size: 16px; font-style: normal; color: #52707f; }
.admin-kpis .kpi small { color: #62808f; font-size: 12.5px; }
.admin-kpis .levels div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.admin-kpis .levels b { display: flex; flex-direction: column; font: 800 24px Manrope, sans-serif; color: var(--lc); }
.admin-kpis .levels b small { font: 600 10.5px 'DM Sans', sans-serif; color: #62808f; }
@media (max-width: 900px) { .admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cmp-grid { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 24px; align-items: start; margin: 12px 0 16px; }
.cmp-pick { display: flex; flex-direction: column; gap: 2px; max-height: 360px; overflow: auto; padding-right: 6px; }
.cmp-table .sw { margin-right: 6px; }
.cmp-view { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cmp-radar { width: min(420px, 100%); height: auto; }
.cmp-key { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 13px; font-weight: 600; }
.cmp-key span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-table td.best { font-weight: 800; color: #1f6a52; background: #eaf6f1; }
.cmp-table tr.total td { background: #f4f8fa; }
.cmp-table .dot, .heat-table .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 800px) { .cmp-grid { grid-template-columns: 1fr; } }

.heat-table th, .heat-table td { padding: 4px 6px; text-align: center; }
.heat-table th:first-child, .heat-table td:first-child { text-align: left; padding-left: 10px; white-space: nowrap; font-weight: 600; }
.heat-table td.hc { min-width: 40px; font-size: 12px; font-weight: 700; border: 2px solid #fff; border-radius: 6px; }
.results-hero .light { background: #fff; color: #00427A; }
.lvl-pill.small { display: inline-block !important; font-size: 11px !important; padding: 2px 10px !important; min-width: 0 !important; line-height: 1.5 !important; box-shadow: none !important; }
.cmp-radar .rg { fill: none; stroke: #d3dfe6; stroke-width: .6; }
.cmp-radar .rg.half { stroke: #9fb3be; stroke-dasharray: 2 2; }
.cmp-radar text { font-size: 7px; font-weight: 800; stroke: #fff; stroke-width: 2px; paint-order: stroke; }
.filters select { min-width: 150px; }

footer span, footer.atlas-footer span { color: #b9ccd6; }
footer > span:last-child { color: #8fb3c6 !important; }

/* ---- administrator: landscape beside a summary, one-organisation comparison, organisation panel ---- */
.land-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.land svg { width: 100%; max-height: 400px; height: auto; }
.land .plotbox { margin: 0; }
.land-side h3 { font-size: 14px; margin: 4px 0 10px; }
.d-row { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr 30px; gap: 8px; align-items: center; margin: 6px 0; font-size: 12.5px; }
.d-bar { position: relative; height: 8px; border-radius: 6px; background: #e3ebf0; }
.d-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.d-bar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #14303f; text-decoration: none; border-radius: 1px; }
.d-row b { text-align: right; }
.cmp-card { display: flex; flex-direction: column; gap: 4px; margin: 14px 0; padding: 12px 14px; border: 1px solid #f0d4bf; background: #fdf5ee; border-radius: 12px; font-size: 13px; }
.cmp-card button, .cmp-card a { align-self: flex-start; margin-top: 6px; }
.cmp-table td.up { color: #1f6a52; font-weight: 700; }
.cmp-table td.down { color: #a42236; font-weight: 700; }
button.small { padding: 4px 10px; font-size: 12px; }
.rowact { white-space: nowrap; }
.d-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.d-kpis > div { background: #f4f8fa; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.d-kpis span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #4c6574; font-weight: 700; }
.d-kpis b { font: 800 22px Manrope, sans-serif; color: #14303f; }
.d-facts { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; margin: 14px 0; font-size: 13px; }
.d-facts dt { color: #62808f; }
.d-facts dd { margin: 0; font-weight: 600; }
.d-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 900px) { .land-grid { grid-template-columns: 1fr; } }
.cmp-radar { width: min(340px, 100%) !important; }
.notice select { font-size: 13px; padding: 3px 8px; margin: 0 2px; }

/* ---- organisation summary: a pop-up over the page ---- */
.org-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(10, 30, 45, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s ease; }
.org-modal.open { opacity: 1; }
.org-modal-card { width: min(560px, 100%); max-height: min(86vh, 760px); display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(8, 28, 44, .45); transform: translateY(14px) scale(.98); transition: transform .22s ease; }
.org-modal.open .org-modal-card { transform: none; }
.org-modal-card header { position: static !important; height: auto !important; min-height: 0 !important; display: flex !important; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px 16px !important; background: linear-gradient(135deg, #00427A, #005FAB) !important; color: #fff; box-shadow: none !important; border: 0 !important; }
.org-modal-card header small { color: #bcdaf6; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.org-modal-card header h3 { color: #fff; font-size: 22px; margin: 2px 0 0; }
.drawer-close { background: transparent !important; color: #fff !important; border: 0 !important; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; box-shadow: none !important; }
.drawer-body { padding: 18px 24px 24px; overflow-y: auto; }
body.modal-open { overflow: hidden; }
code { background: #eef3f6; padding: 1px 6px; border-radius: 6px; }

/* ---- hover summary of an organisation ---- */
.org-pop { position: fixed; z-index: 250; width: min(360px, 92vw); background: #fff; border-radius: 14px; overflow: hidden; pointer-events: none; box-shadow: 0 18px 50px rgba(8, 28, 44, .35); border: 1px solid #dde7ec; }
.org-pop header { position: static !important; height: auto !important; min-height: 0 !important; display: block !important; padding: 12px 16px !important; background: linear-gradient(135deg, #00427A, #005FAB) !important; box-shadow: none !important; border: 0 !important; }
.org-pop header small { color: #bcdaf6; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.org-pop header h3 { color: #fff; font-size: 18px; margin: 2px 0 0; }
.org-pop .drawer-body { padding: 12px 16px 14px; overflow: visible; }
.org-pop .d-kpis b { font-size: 18px; }
.org-pop .d-facts { margin: 10px 0 6px; font-size: 12.5px; }
.org-pop h4 { margin: 10px 0 4px; }
.org-pop .d-row { margin: 4px 0; font-size: 12px; }


/* ---- configuration ---- */
.cfg-card { margin-bottom: 20px; }
.cfg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cfg-head h2 { margin: 2px 0 0; }
.cfg-count { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: 99px; background: #eaf2fa; color: #00427A; font: 700 14px 'DM Sans', sans-serif; vertical-align: middle; }
.cfg-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cfg-search { min-width: 240px; padding: 9px 12px; }
.cfg-add { background: #005FAB; color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
.cfg-add:hover { background: #00427A; }
.cfg-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 16px; padding: 16px; background: #f4f8fa; border: 1px dashed #b9cdd8; border-radius: 12px; }
.cfg-form[hidden] { display: none; }
.cfg-form .field { margin: 0; min-width: 190px; flex: 1 1 190px; }
.cfg-form-actions { display: flex; gap: 8px; }
.cfg-list { display: flex; flex-direction: column; border: 1px solid #e3ebef; border-radius: 12px; overflow: hidden; }
.cfg-row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(200px, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; background: #fff; transition: background .15s; }
.cfg-row + .cfg-row { border-top: 1px solid #edf2f5; }
.cfg-row:hover { background: #f7fafc; }
.cfg-row[hidden] { display: none; }
.cfg-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cfg-main b { font-size: 15px; color: #14303f; }
.cfg-main span { font-size: 12.5px; color: #62808f; }
.cfg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 99px; background: #eef3f6; color: #4c6574; font-size: 11.5px; font-weight: 600; }
.chip.demo { background: #fdf0dd; color: #8a5a14; }
.chip.real { background: #e3eefa; color: #00427A; }
.chip.ok { background: #e3f2ec; color: #1f6a52; }
.cfg-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.cbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid #c4d3da; background: #fff; color: #35505f; font: 600 13px 'DM Sans', sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.cbtn:hover { background: #eaf2fa; border-color: #9fc0de; color: #00427A; transform: none; box-shadow: none; }
.cbtn.warn { color: #8a5a14; border-color: #ebcf9f; background: #fffaf1; }
.cbtn.warn:hover { background: #f5b94c; border-color: #f5b94c; color: #3d2706; }
.cbtn.danger { color: #a42236; border-color: #ecb9c1; background: #fff7f8; }
.cbtn.danger:hover { background: #c8283f; border-color: #c8283f; color: #fff; }
.cbtn:disabled { opacity: .45; cursor: not-allowed; }
.cfg-demo { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 900px) { .cfg-row { grid-template-columns: 1fr; } .cfg-actions { justify-content: flex-start; } }

/* ---- confirmation dialog and submission ---- */
.confirm-modal { z-index: 400; }
.confirm-card { width: min(460px, 100%); }
.confirm-body { padding: 26px 28px 22px; }
.confirm-body h3 { margin: 0 0 8px; font-size: 20px; }
.confirm-body p { margin: 0 0 20px; color: #46606e; line-height: 1.55; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.confirm-actions button.solid-danger { background: #c8283f; border-color: #c8283f; color: #fff; }
.confirm-actions button.solid-danger:hover { background: #a42236; }
.submitbox { margin: 14px 0 10px; padding: 12px; border-radius: 12px; background: #f1f7fb; border: 1px solid #d8e6ee; }
.submitbox button { width: 100%; padding: 10px; background: #1f6a52; border: 0; color: #fff; border-radius: 10px; font-weight: 700; cursor: pointer; }
.submitbox button:hover { background: #17503e; }
.submitbox p { margin: 0 0 6px; }
.sub-ok { color: #1f6a52; font-weight: 700; }

/* ---- assessment sidebar: progress and what is missing ---- */
.dimensionnav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.sb-index { padding: 12px 14px; margin-bottom: 10px; border-radius: 12px; background: linear-gradient(135deg, #eef5fb, #f8fbfd); border: 1px solid #d8e6ee; }
.sb-index small { text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: #4c6574; font-size: 11px; }
.sb-num { display: flex; align-items: baseline; gap: 4px; margin: 2px 0; }
.sb-num strong { font: 800 34px Manrope, sans-serif; color: #00427A; line-height: 1.1; }
.sb-num em { font-style: normal; color: #62808f; }
.dimensionnav button[data-step] { position: relative; display: grid; grid-template-columns: 28px 1fr auto auto; gap: 6px 8px; align-items: center; text-align: left; padding: 8px 10px 12px; }
.dimensionnav button[data-step="0"] { display: block; padding: 8px 10px; }
.sb-name { font-weight: 600; font-size: 13px; line-height: 1.25; }
.sb-count { color: #4c6574; font-size: 12px; font-weight: 700; }
.sb-st { font-style: normal; font-size: 12px; width: 16px; text-align: center; color: #9db0bb; }
.sb-st.ok { color: #1f6a52; font-weight: 800; }
.sb-st.prov { color: #d79c49; }
.sb-bar { position: absolute; left: 46px; right: 10px; bottom: 4px; height: 4px; border-radius: 3px; background: #e3ebf0; overflow: hidden; }
.sb-bar u { position: absolute; left: 0; top: 0; bottom: 0; text-decoration: none; border-radius: 3px; }
.sb-total { margin: 12px 0 4px; }
.sb-legend { margin: 4px 0 8px; font-size: 11.5px; color: #62808f; }
.sb-missing { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: #fffaf1; border: 1px solid #f0dcb6; }
.sb-missing h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #8a5a14; }
.sb-missing ul { margin: 0 0 8px; padding-left: 18px; font-size: 13px; color: #35505f; }
.sb-missing .sb-ok { margin: 0; color: #1f6a52; font-weight: 700; font-size: 13px; }
.sb-next { width: 100%; padding: 9px 10px; background: #005FAB; color: #fff; border: 0; border-radius: 10px; font-weight: 700; cursor: pointer; }
.sb-next:hover { background: #00427A; }
.sb-prof { margin: 8px 0; font-size: 12.5px; }
.sb-prof summary { cursor: pointer; font-weight: 700; color: #35505f; }
.sb-prof > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #edf2f5; }
.sb-prof small { display: block; color: #62808f; }
/* question states */
.qstat { margin-left: auto; padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: #eef3f6; color: #4c6574; }
.qstat.done { background: #e3f2ec; color: #1f6a52; }
.qstat.todo { background: #fdf0dd; color: #8a5a14; }
.qstat.skip { background: #e8eef6; color: #3b5a7a; }
.question.q-todo { border-left: 4px solid #e9b25b; }
.question.q-done { border-left: 4px solid #5fb596; }
.question.q-skip { border-left: 4px solid #9db8d6; }
.qmeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.na-reason { margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #cfe3d9; background: #f4faf7; }
.na-reason.missing { border-color: #e9b25b; background: #fff8ec; }
.na-reason label { display: block; margin-bottom: 6px; font-size: 13.5px; }
.na-reason textarea { width: 100%; }
.na-hint { margin: 6px 0 0; font-size: 12.5px; color: #8a5a14; }
.na-reason:not(.missing) .na-hint { color: #1f6a52; }

.sb-clear { width: 100%; justify-content: center; margin-top: 8px; }
.sb-clear-note { margin: 4px 0 10px; }

/* ---- administrator filter bar: the organisation search looks like the other filters ---- */
.filters input[type=search], [data-view=results] .filters input[type=search] {
  box-sizing: border-box; width: 100%; min-width: 210px; height: 42px; padding: 10px 14px 10px 38px; border: 1px solid #cfdde3; border-radius: 30px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362808f' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 14px center / 16px no-repeat;
  font: 400 13px 'DM Sans', sans-serif; letter-spacing: 0; text-transform: none; color: #203946; -webkit-appearance: none; appearance: none;
}
.filters input[type=search]::placeholder { color: #8196a2; }
.filters input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.filters label:has(input[type=search]) { min-width: 230px; }

.scope-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.saved-list li { gap: 14px; }
.saved-actions { flex-wrap: wrap; justify-content: flex-end; }

.view-note { margin: 12px 0 0; padding: 10px 16px; border-radius: 12px; background: #eef5fb; border-left: 4px solid #005FAB; font-size: 13.5px; color: #1d3c4d; }
.view-note a { font-weight: 700; }
/* demo data buttons: the same size */
.cfg-demo { align-items: stretch; }
.cfg-demo > button { height: 44px; padding: 0 20px; font: 700 14px 'DM Sans', sans-serif; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; }
.cfg-demo > button:not(.cbtn) { background: #005FAB; color: #fff; border: 1px solid #005FAB; cursor: pointer; }
.cfg-demo > button:not(.cbtn):hover { background: #00427A; }

/* the submit buttons are green: the one under the questions and the one in the sidebar */
button.btn-submit { background: #1f6a52 !important; border: 0 !important; color: #fff !important; font-weight: 700; padding: 12px 22px; border-radius: 10px; cursor: pointer; }
button.btn-submit:hover { background: #17503e !important; }

/* ---- account menu (sign-in on) and password boxes ---- */
.pw-box { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; background: #f1f7fb; border: 1px solid #d8e6ee; }
.pw-box code { flex: 1; font: 700 17px ui-monospace, Consolas, monospace; letter-spacing: .04em; background: transparent; padding: 0; word-break: break-all; user-select: all; }
.pw-msg { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #fdeeee; color: #9b2335; font-size: 13px; }
.confirm-body .field { margin-bottom: 12px; display: block; font-weight: 600; font-size: 13px; }
.confirm-body .field input { display: block; width: 100%; margin-top: 5px; }

/* ---- one account menu in the header ---- */
.atlas-tools details.account { position: relative; }
.atlas-tools details.account > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid #c4d3da; border-radius: 99px; background: #fff; font-weight: 700; color: #1d3c4d; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atlas-tools details.account > summary::-webkit-details-marker { display: none; }
.atlas-tools details.account > summary::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #e3eefa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005FAB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='3.5'/%3E%3Cpath d='M5 20c1.2-3.6 4-5 7-5s5.8 1.4 7 5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.atlas-tools details.account > summary::after { content: "⌄"; color: #5b7686; margin-left: 2px; }
.atlas-tools details.account > summary:hover, .atlas-tools details.account[open] > summary { background: #eaf2fa; }
.atlas-tools details.account > summary.on { background: #00427A; border-color: #00427A; color: #fff; }
.atlas-tools details.account > summary.on::after { color: #bcdaf6; }
.atlas-tools details.account > summary.acting { background: #fff4e0; border-color: #ebcf9f; color: #6f4a0d; }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; padding: 8px; background: #fff; border: 1px solid #dde7ec; border-radius: 14px; box-shadow: 0 16px 38px rgba(15, 46, 64, .2); z-index: 60; display: flex; flex-direction: column; gap: 2px; }
.am-head { padding: 8px 10px 10px; border-bottom: 1px solid #edf2f5; margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.am-head b { color: #14303f; font-size: 14px; }
.am-head small { color: #62808f; font-size: 12px; overflow-wrap: anywhere; }
.am-field { display: flex; flex-direction: column; gap: 5px; padding: 6px 10px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: #62808f; }
.am-field select { max-width: none !important; width: 100%; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 13px; }
.atlas-tools .account-menu a.am-link { display: block; border: 0 !important; background: transparent !important; padding: 9px 10px !important; border-radius: 8px; font-weight: 600; color: #1d3c4d; text-decoration: none; }
.atlas-tools .account-menu a.am-link:hover { background: #eaf2fa !important; }

/* the hidden attribute must win over the layout of form fields (e.g. organisation choice for a new administrator) */
.field[hidden] { display: none !important; }

/* ---------- Evolve: recommendations written by the generative AI model ---------- */
.ai-status { display: flex; align-items: center; gap: 9px; margin: 14px 0 4px; font-size: 13px; font-weight: 600; }
.ai-status.busy { color: #0f6f8f; }
.ai-status.failed { color: #7a5a1c; font-weight: 500; }
.ai-status.done { color: #62808f; font-weight: 500; font-size: 12px; }
.ai-spin { width: 14px; height: 14px; border: 2px solid #cfe6ef; border-top-color: #0f6f8f; border-radius: 50%; animation: ai-spin .8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ai-spin { animation-duration: 2.4s; } }
.recommend .rec-ai { border-left: 2px solid #9fd3e2; padding-left: 10px; }
.recommend .rec-ai-sum { margin: 4px 0 8px; font-weight: 600; color: #14303f; }
.recommend .rec-why { margin: 4px 0 6px; font-size: 12px; color: #48616e; }
/* a service that starts at this step stands out from the ones carried over from lower steps */
.recommend .rec-service.rec-new { border-left: 3px solid #0f6f8f; padding-left: 9px; }
.recommend .rec-from { color: #62808f; font-size: 11px; letter-spacing: .02em; }
.recommend .rec-area { margin: 2px 0 4px; font-size: 11px; color: #62808f; }

/* Results: while the reading of a score is being written, and the opening paragraph of the section */
.ai-pending { display: inline-flex; align-items: center; gap: 7px; color: #62808f; font-style: italic; }
.score-overall { margin-top: 2px; }

/* a line saying what a UNICC service is, under its name */
.svc-desc, .rec-desc { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.4; color: #5b7686; }
.rec-desc { margin: 4px 0 0; }
.rec-service li { margin: 6px 0; }
.bundle-grid li { margin: 6px 0; }

/* Where generated text appears: the notice on the use of AI, small and plain */
p.ai-notice, #your-comparison p.ai-notice { margin: 4px 0 8px; font-size: 11px; line-height: 1.4; color: #6b7f8a; }

/* Configuration: the prompts sent to the generative AI model */
.pa-kinds .cbtn.on { background: #005FAB; border-color: #005FAB; color: #fff; }
.pa-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0; }
.pa-row .field { margin: 0; min-width: 220px; }
.pa-row .pa-note { flex: 1 1 320px; }
.pa-row .pa-note input { width: 100%; }
.pa-check { display: inline-flex; align-items: center; gap: 7px; height: 34px; font-size: 13px; font-weight: 600; color: #35505f; }
.pa-meta { margin: 0 0 10px; }
.pa-field { display: block; margin: 12px 0 4px; font-weight: 600; font-size: 13px; }
.pa-text { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: 12px/1.5 Consolas, 'Courier New', monospace; color: #1d3340; border: 1px solid #c4d3da; border-radius: 10px; background: #fbfdfe; resize: vertical; box-sizing: border-box; }
.pa-text:focus { outline: 2px solid #9fc0de; border-color: #005FAB; }
.pa-help { margin: 4px 0 8px; font-size: 12px; color: #4b6573; }
.pa-help summary { cursor: pointer; font-weight: 600; }
.pa-help ul { margin: 6px 0 0; padding-left: 18px; }
.pa-help li { margin: 2px 0; }
.pa-help code { font-size: 12px; color: #00427A; }
.pa-preview-opts { margin-top: 16px; }
.pa-out { max-height: 520px; overflow: auto; margin: 6px 0 0; padding: 12px; font: 11.5px/1.5 Consolas, 'Courier New', monospace; white-space: pre-wrap; word-break: break-word; background: #f4f8fa; border: 1px solid #dbe6ea; border-radius: 10px; }

/* Configuration: progress of the demo text being written */
.cfg-progress { height: 8px; margin: 14px 0 6px; border-radius: 99px; background: #dbe6ea; overflow: hidden; }
.cfg-progress span { display: block; height: 100%; border-radius: 99px; background: #005FAB; transition: width .6s ease; }

/* Configuration: the UNICC service catalogue */
.sv-text { min-height: 360px; }
.sv-problems ul { margin: 6px 0 0; padding-left: 18px; }
.sv-problems li { margin: 2px 0; }
.sv-card .notice .micro { margin: 6px 0 0; }
