/* Business 360 workspace and charts (4.17). Hairlines instead of shadows, colour only for data,
   one dark band (the pulse) per page. */

.ukch-site .ukch-ws{
	--ws-canvas:#f4f7f6;
	--ws-line:#d9e2e1;
	--ws-grid:#e6eceb;
	--ws-ink:var(--ukch-ink,#0e2f3a);
	--ws-text:var(--ukch-text,#1b292e);
	--ws-muted:var(--ukch-muted,#56676c);
	--ws-accent:var(--ukch-marigold,#f4b23a);
	--ws-s1:#0f7aa0;
	--ws-good:#1f7356;
	--ws-warn:#a8720c;
	--ws-low:#b3473a;
	--ws-r:6px;
	color:var(--ws-text);
	font-variant-numeric:normal;
}
.ukch-site .ukch-page:has(> .ukch-ws){padding-top:clamp(16px,2.4vw,28px)}

/* ---------- Header bar */
.ukch-site .ukch-ws__bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:var(--ws-ink);color:#fff;border-radius:var(--ws-r) var(--ws-r) 0 0;padding:14px 20px}
.ukch-site .ukch-ws__name{margin:0;font-family:var(--ukch-display);font-size:1.35rem;font-weight:600;line-height:1.2;letter-spacing:-.01em}
.ukch-site .ukch-ws__org{margin:2px 0 0;font-size:.9rem;color:#b9cdd2}
.ukch-site a.ukch-ws__pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;font-size:.875rem;font-weight:700;text-decoration:none;border:1px solid rgba(255,255,255,.28);color:#fff}
.ukch-site a.ukch-ws__pill:hover{border-color:#fff}
.ukch-site .ukch-ws__pill--paid::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ws-accent)}
.ukch-site .ukch-ws__pill--trial{border-color:var(--ws-accent)}

/* ---------- Layout */
.ukch-site .ukch-ws__layout{display:grid;grid-template-columns:220px minmax(0,1fr);border:1px solid var(--ws-line);border-top:0;border-radius:0 0 var(--ws-r) var(--ws-r);background:var(--ws-canvas);min-height:60vh}
.ukch-site .ukch-ws__menu{border-right:1px solid var(--ws-line);background:#fff;padding:12px 0 20px;border-radius:0 0 0 var(--ws-r)}
.ukch-site .ukch-ws__menu > summary{display:none}
.ukch-site .ukch-ws__menu nav ul{list-style:none;margin:0;padding:0}
.ukch-site .ukch-ws__group{margin:14px 20px 2px;font-size:.8125rem;font-weight:700;color:var(--ws-muted)}
.ukch-site .ukch-ws__menu a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 20px;color:var(--ws-text);text-decoration:none;font-size:.95rem;border-left:3px solid transparent}
.ukch-site .ukch-ws__menu a:hover{background:var(--ws-canvas);color:var(--ws-ink)}
.ukch-site .ukch-ws__menu a[aria-current]{border-left-color:var(--ws-accent);background:var(--ws-canvas);color:var(--ws-ink);font-weight:700}
.ukch-site .ukch-ws__menu .ukch-tabs__lock{width:13px;height:13px;fill:currentColor;opacity:.55}
.ukch-site .ukch-ws__main{min-width:0;padding:24px clamp(16px,2.6vw,32px) 36px}
.ukch-site .ukch-ws__head{margin-bottom:20px}
.ukch-site .ukch-ws__title{font-family:var(--ukch-display);font-size:clamp(1.6rem,2.6vw,2.1rem);font-weight:600;color:var(--ws-ink);line-height:1.15;margin:0}
.ukch-site .ukch-ws__head p{margin:4px 0 0;color:var(--ws-muted)}
.ukch-site .ukch-ws .ukch-b360__body > * + *{margin-top:16px}
.ukch-site .ukch-ws .ukch-b360__body > .ukch-btiles + *,.ukch-site .ukch-ws .ukch-b360__body > .ukch-pulse + *{margin-top:16px}

@media (max-width:899px){
	.ukch-site .ukch-ws__bar{border-radius:var(--ws-r) var(--ws-r) 0 0;padding:12px 16px}
	.ukch-site .ukch-ws__layout{grid-template-columns:1fr}
	.ukch-site .ukch-ws__menu{border-right:0;border-bottom:1px solid var(--ws-line);padding:0;border-radius:0}
	.ukch-site .ukch-ws__menu > summary{display:flex;align-items:center;gap:10px;padding:12px 16px;cursor:pointer;list-style:none;font-weight:700;color:var(--ws-ink)}
	.ukch-site .ukch-ws__menu > summary::-webkit-details-marker{display:none}
	.ukch-site .ukch-ws__menu > summary span{font-weight:400;color:var(--ws-muted)}
	.ukch-site .ukch-ws__menu > summary::after{content:"";margin-left:auto;width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-3px);transition:transform .15s}
	.ukch-site .ukch-ws__menu[open] > summary::after{transform:rotate(-135deg) translateY(-1px)}
	.ukch-site .ukch-ws__menu nav{padding:0 0 12px;columns:2;column-gap:0}
	.ukch-site .ukch-ws__menu nav ul,.ukch-site .ukch-ws__group{break-inside:avoid}
	.ukch-site .ukch-ws__group{margin:12px 16px 2px}
	.ukch-site .ukch-ws__menu a{padding:8px 16px}
	.ukch-site .ukch-ws__main{padding:20px 14px 28px}
}
@media (max-width:420px){.ukch-site .ukch-ws__menu nav{columns:1}}

/* ---------- Cards and grids */
.ukch-site .ukch-bcard{background:#fff;border:1px solid var(--ws-line);border-radius:var(--ws-r);padding:18px 20px;min-width:0}
.ukch-site .ukch-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ukch-site .ukch-grid-2 > .ukch-bcard{margin:0}
@media (max-width:1080px){.ukch-site .ukch-grid-2{grid-template-columns:1fr}}
.ukch-site .ukch-ws .ukch-bcard .ukch-mini-list li{padding:9px 0}
.ukch-site .ukch-ws .ukch-callout{margin:0;padding:12px 16px;border-left:3px solid var(--ws-s1);background:#fff;border-radius:0 var(--ws-r) var(--ws-r) 0;font-size:.925rem;color:var(--ws-muted)}

/* ---------- The pulse: one dark band with the headline number */
.ukch-site .ukch-pulse{display:grid;grid-template-columns:minmax(200px,.8fr) minmax(0,2fr);gap:24px;align-items:end;background:var(--ws-ink);color:#fff;border-radius:var(--ws-r);padding:22px 24px}
.ukch-site .ukch-pulse__label{margin:0;font-size:.95rem;color:#b9cdd2}
.ukch-site .ukch-hero-n{margin:2px 0 6px;font-family:var(--ukch-body);font-size:clamp(3rem,6vw,4.25rem);font-weight:700;line-height:1;letter-spacing:-.02em}
.ukch-site .ukch-hero-n small{font-size:.45em;font-weight:700;margin-left:2px}
.ukch-site .ukch-pulse .ukch-delta{margin:0;background:rgba(255,255,255,.1);color:#dbe7ea}
.ukch-site .ukch-pulse .ukch-delta--up{background:rgba(110,214,160,.16);color:#9fe3bf}
.ukch-site .ukch-pulse .ukch-delta--down{background:rgba(255,150,130,.16);color:#ffc2b5}
.ukch-site .ukch-pulse__links{margin:14px 0 0}
.ukch-site .ukch-pulse__links a{color:#fff;font-weight:700}
@media (max-width:760px){.ukch-site .ukch-pulse{grid-template-columns:1fr;gap:12px;padding:18px}}

/* ---------- Stat tiles */
.ukch-site .ukch-btiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px}
.ukch-site .ukch-btile{display:flex;flex-direction:column;gap:2px;padding:14px 16px;background:#fff;border:1px solid var(--ws-line);border-radius:var(--ws-r);text-decoration:none;color:var(--ws-text);transition:border-color .15s}
.ukch-site a.ukch-btile:hover{border-color:var(--ws-ink)}
.ukch-site .ukch-btile__label{font-size:.875rem;color:var(--ws-muted)}
.ukch-site .ukch-btile__val{font-size:1.9rem;font-weight:700;color:var(--ws-ink);line-height:1.15}
.ukch-site .ukch-btile__val small{font-size:.55em;color:var(--ws-muted);font-weight:700}
.ukch-site .ukch-btile__sub{font-size:.85rem;color:var(--ws-muted)}
.ukch-site .ukch-btile.is-warn{border-left:3px solid var(--ws-accent)}
.ukch-site .ukch-btile.is-warn .ukch-btile__sub{color:var(--ws-warn);font-weight:700}

/* ---------- Charts */
.ukch-site .ukch-viz{margin:0;min-width:0}
.ukch-site .ukch-viz + .ukch-viz{margin-top:22px}
.ukch-site .ukch-viz__title{display:block;margin:0 0 12px;font-family:var(--ukch-body);font-size:1rem;font-weight:700;color:var(--ws-ink);line-height:1.3}
.ukch-site .ukch-viz__title span{display:block;font-weight:400;font-size:.875rem;color:var(--ws-muted);margin-top:1px}
.ukch-site .ukch-viz__empty{color:var(--ws-muted);margin:0;font-size:.95rem}
.ukch-site .ukch-viz__plot{position:relative;height:var(--h,180px);margin-left:34px}
.ukch-site .ukch-viz__grid span{position:absolute;left:0;right:0;border-top:1px solid var(--ws-grid)}
.ukch-site .ukch-viz__grid em{position:absolute;right:calc(100% + 8px);top:-.65em;font-style:normal;font-size:.75rem;color:var(--ws-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.ukch-site .ukch-viz__cols{position:absolute;inset:0;display:flex;align-items:flex-end}
.ukch-site .ukch-viz__band{flex:1 1 0;height:100%;display:flex;align-items:flex-end;justify-content:center;outline-offset:-2px}
.ukch-site .ukch-viz__col{position:relative;display:block;width:min(24px,64%);min-height:0;background:var(--ws-s1);border-radius:4px 4px 0 0;opacity:.55}
.ukch-site .ukch-viz__col.is-current{opacity:1}
.ukch-site .ukch-viz__band:hover .ukch-viz__col,.ukch-site .ukch-viz__band:focus-visible .ukch-viz__col{opacity:1}
.ukch-site .ukch-viz__col b{position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);font-size:.8rem;font-weight:700;color:var(--ws-text);white-space:nowrap}
.ukch-site .ukch-viz__x{display:flex;margin:6px 0 0 34px}
.ukch-site .ukch-viz__x span{flex:1 1 0;text-align:center;font-size:.75rem;color:var(--ws-muted);white-space:nowrap;overflow:visible;min-width:0}
.ukch-site .ukch-viz__svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ukch-site .ukch-viz__line{fill:none;stroke:var(--ws-s1);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.ukch-site .ukch-viz__area{fill:var(--ws-s1);opacity:.1}
.ukch-site .ukch-viz__dot{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--ws-s1);box-shadow:0 0 0 2px #fff}
.ukch-site .ukch-viz__dot::before{content:"";position:absolute;inset:-9px;border-radius:50%}
.ukch-site .ukch-viz__dot b{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);font-size:.8rem;font-weight:700;color:var(--ws-text);white-space:nowrap}
.ukch-site .ukch-viz [tabindex]:focus-visible{outline:2px solid var(--ws-ink);outline-offset:2px;border-radius:4px}

/* Dark theme: the pulse chart */
.ukch-site .ukch-viz--dark .ukch-viz__title{color:#dbe7ea;font-weight:400;font-size:.875rem}
.ukch-site .ukch-viz--dark .ukch-viz__grid span{border-top-color:rgba(255,255,255,.12)}
.ukch-site .ukch-viz--dark .ukch-viz__grid em,.ukch-site .ukch-viz--dark .ukch-viz__x span{color:#9fb7bd}
.ukch-site .ukch-viz--dark .ukch-viz__col{background:#6f97a2;opacity:1}
.ukch-site .ukch-viz--dark .ukch-viz__col.is-current{background:var(--ws-accent)}
.ukch-site .ukch-viz--dark .ukch-viz__band:hover .ukch-viz__col{background:#9cc0c9}
.ukch-site .ukch-viz--dark .ukch-viz__col b{color:#fff}
.ukch-site .ukch-viz--dark [tabindex]:focus-visible{outline-color:#fff}
.ukch-site .ukch-viz--dark .ukch-viz__table summary{color:#b9cdd2}
.ukch-site .ukch-viz--dark .ukch-viz__table table{background:#fff;color:var(--ws-text);border-radius:4px}

/* Horizontal bars */
.ukch-site .ukch-viz__hbars{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ukch-site .ukch-viz__hbars li{display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr) 64px;align-items:center;gap:12px;outline-offset:3px}
.ukch-site .ukch-viz__hl{font-size:.925rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ukch-site .ukch-viz__hl a{color:var(--ws-text)}
.ukch-site .ukch-viz__track{display:block;height:10px;background:var(--ws-grid);border-radius:4px;overflow:hidden}
.ukch-site .ukch-viz__hbar{display:block;height:100%;background:var(--ws-s1);border-radius:0 4px 4px 0}
.ukch-site .ukch-viz__hbar.is-good{background:var(--ws-good)}
.ukch-site .ukch-viz__hbar.is-low{background:#d1506a}
.ukch-site .ukch-viz__hv{font-size:.875rem;font-weight:700;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
@media (max-width:520px){.ukch-site .ukch-viz__hbars li{grid-template-columns:1fr 56px;row-gap:4px}.ukch-site .ukch-viz__hl{grid-column:1 / -1}}

/* Segmented bar */
.ukch-site .ukch-viz__seg{display:flex;gap:2px;height:28px}
.ukch-site .ukch-viz__seg span{display:flex;align-items:center;padding-left:8px;min-width:4px;border-radius:4px;font-size:.8rem;font-weight:700;white-space:nowrap;overflow:hidden;outline-offset:2px}
.ukch-site .ukch-viz__legend{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px}
.ukch-site .ukch-viz__legend li{display:flex;align-items:center;gap:6px;font-size:.875rem}
.ukch-site .ukch-viz__legend i{width:10px;height:10px;border-radius:3px;flex:none}
.ukch-site .ukch-viz__legend span{color:var(--ws-muted);font-variant-numeric:tabular-nums}

/* Table view */
.ukch-site .ukch-viz__table{margin-top:10px}
.ukch-site .ukch-viz__table summary{cursor:pointer;font-size:.8125rem;color:var(--ws-muted);width:max-content}
.ukch-site .ukch-viz__table table{margin-top:8px;font-size:.875rem;width:100%}
.ukch-site .ukch-viz__table td{font-variant-numeric:tabular-nums}

/* Tooltip */
.ukch-viz-tip{position:absolute;z-index:9999;display:none;max-width:260px;padding:6px 10px;border-radius:4px;background:#0e2f3a;color:#fff;font:600 .8125rem/1.35 var(--ukch-body,system-ui);pointer-events:none;box-shadow:0 4px 14px rgba(14,47,58,.25)}

/* Spark line */
.ukch-site .ukch-spark{display:block;width:100%;height:28px}
.ukch-site .ukch-spark polyline{fill:none;stroke:var(--ws-s1);stroke-width:2}

/* ---------- Compliance */
.ukch-site .ukch-bchips{display:flex;flex-wrap:wrap;gap:6px}
.ukch-site .ukch-bchips a{padding:6px 12px;border:1px solid var(--ws-line);border-radius:999px;background:#fff;color:var(--ws-text);text-decoration:none;font-size:.9rem}
.ukch-site .ukch-bchips a[aria-current]{background:var(--ws-ink);border-color:var(--ws-ink);color:#fff;font-weight:700}
.ukch-site .ukch-cqc-top{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr);gap:16px}
@media (max-width:900px){.ukch-site .ukch-cqc-top{grid-template-columns:1fr}}
.ukch-site .ukch-cqc-hero{background:var(--ws-ink);color:#fff;border-radius:var(--ws-r);padding:20px 22px;display:flex;flex-direction:column}
.ukch-site .ukch-cqc-hero__label{margin:0;color:#b9cdd2;font-size:.95rem}
.ukch-site .ukch-cqc-hero__sub{margin:0;color:#dbe7ea}
.ukch-site .ukch-cqc-hero__sub strong{color:var(--ws-accent)}
.ukch-site .ukch-cqc-hero__actions{margin:auto 0 0;padding-top:18px;display:flex;flex-wrap:wrap;gap:8px}
.ukch-site .ukch-ws .ukch-cqc-hero .ukch-btn--primary{background:var(--ws-accent);border-color:var(--ws-accent);color:var(--ws-ink)}
.ukch-site .ukch-ws .ukch-cqc-hero .ukch-btn--ghost{background:transparent;border-color:rgba(255,255,255,.5);color:#fff}
.ukch-site .ukch-cqc-sec{background:#fff;border:1px solid var(--ws-line);border-radius:var(--ws-r)}
.ukch-site .ukch-cqc-sec + .ukch-cqc-sec{margin-top:10px}
.ukch-site .ukch-cqc-sec > summary{display:grid;grid-template-columns:auto 1fr auto;align-items:baseline;gap:4px 14px;padding:14px 18px;cursor:pointer;list-style:none}
.ukch-site .ukch-cqc-sec > summary::-webkit-details-marker{display:none}
.ukch-site .ukch-cqc-sec__name{font-weight:700;font-size:1.05rem;color:var(--ws-ink)}
.ukch-site .ukch-cqc-sec__desc{color:var(--ws-muted);font-size:.9rem}
.ukch-site .ukch-cqc-sec__score{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:600px){.ukch-site .ukch-cqc-sec > summary{grid-template-columns:1fr auto}.ukch-site .ukch-cqc-sec__desc{grid-column:1 / -1;grid-row:2}}
.ukch-site .ukch-cqc-sec form{padding:0 18px 16px}
.ukch-site .ukch-cqc-list{list-style:none;margin:0 0 14px;padding:0;border-top:1px solid var(--ws-line)}
.ukch-site .ukch-cqc-item{display:grid;grid-template-columns:1fr auto;align-items:start;gap:4px 12px;padding:10px 0;border-bottom:1px solid var(--ws-line)}
.ukch-site .ukch-cqc-item__main{display:flex;gap:10px;align-items:flex-start;cursor:pointer}
.ukch-site .ukch-cqc-item__main input{width:20px;height:20px;margin-top:2px;accent-color:var(--ws-good);flex:none}
.ukch-site .ukch-cqc-item.is-done .ukch-cqc-item__main span{color:var(--ws-muted)}
.ukch-site .ukch-cqc-st{font-size:.78rem;font-weight:700;padding:2px 9px;border-radius:999px;white-space:nowrap}
.ukch-site .ukch-cqc-st--done{background:#e1f2ea;color:var(--ws-good)}
.ukch-site .ukch-cqc-st--review{background:#fbf3e1;color:#7a4f00}
.ukch-site .ukch-cqc-item__more{grid-column:1 / -1;margin-left:30px}
.ukch-site .ukch-cqc-item__more > summary{cursor:pointer;font-size:.85rem;color:var(--ws-s1);width:max-content}
.ukch-site .ukch-cqc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin-top:10px}
.ukch-site .ukch-cqc-fields__wide{grid-column:1 / -1;margin:0}
@media (max-width:600px){.ukch-site .ukch-cqc-fields{grid-template-columns:1fr}.ukch-site .ukch-cqc-item__more{margin-left:0}}
.ukch-site .ukch-cqc-evidence > summary{cursor:pointer;margin:0}

/* ---------- Print: just the content */
@media print{
	.ukch-site .ukch-ws__menu,.ukch-site .ukch-ws__pill,.ukch-site .ukch-viz__table,.ukch-site .ukch-cqc-hero__actions{display:none!important}
	.ukch-site .ukch-ws__layout{display:block;border:0;background:#fff}
	.ukch-site .ukch-ws__bar,.ukch-site .ukch-pulse,.ukch-site .ukch-cqc-hero{background:#fff!important;color:#000!important;border:1px solid #999}
}
@media (forced-colors:active){.ukch-site .ukch-viz__col,.ukch-site .ukch-viz__hbar,.ukch-site .ukch-viz__seg span,.ukch-site .ukch-viz__dot{forced-color-adjust:none}}
@media (prefers-reduced-motion:reduce){.ukch-site .ukch-ws *{transition:none!important}}

.ukch-site .ukch-cqc-plan th[scope="row"]{width:52%;font-weight:400}
.ukch-site .ukch-cqc-plan td{white-space:nowrap}
.ukch-site .ukch-cqc-more{margin-top:8px}
.ukch-site .ukch-cqc-more > summary{cursor:pointer;color:var(--ws-s1);font-weight:700;font-size:.9rem;width:max-content}
.ukch-site .ukch-ws .ukch-mini-list .ukch-status{flex:none;align-self:flex-start;white-space:nowrap;border-radius:999px}
@media (max-width:560px){.ukch-site .ukch-viz__x span.is-minor{visibility:hidden}}
/* Older stat boxes inside the workspace take the tile style */
.ukch-site .ukch-ws .ukch-stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px;margin:0}
.ukch-site .ukch-ws .ukch-stat{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:2px;background:#fff;border:1px solid var(--ws-line);border-radius:var(--ws-r);padding:14px 16px}
.ukch-site .ukch-ws .ukch-stat strong{font-family:var(--ukch-body);font-size:1.9rem;font-weight:700;line-height:1.15}
.ukch-site .ukch-ws .ukch-stat span{font-size:.875rem}
.ukch-site .ukch-ws .ukch-stat--warn{border-left:3px solid var(--ws-accent)}
.ukch-site .ukch-ws .ukch-stat span::first-letter{text-transform:uppercase}

/* Review invitations and badge */
.ukch-site .ukch-inv-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.ukch-site .ukch-inv-qr__row{display:flex;gap:18px;align-items:flex-start}
.ukch-site .ukch-inv-qr__img{flex:none;padding:6px;border:1px solid var(--ws-line);border-radius:6px;background:#fff;line-height:0}
.ukch-site .ukch-inv-qr__row p{margin:0}
@media (max-width:520px){.ukch-site .ukch-inv-qr__row{flex-direction:column}}
.ukch-site .ukch-badge__row{display:flex;gap:24px;align-items:flex-start;flex-wrap:wrap}
.ukch-site .ukch-badge__preview{flex:none;padding:18px;border-radius:6px;line-height:0;background:var(--ws-canvas)}
.ukch-site .ukch-badge__preview--dark{background:#d8e2e0}
.ukch-site .ukch-badge__code{flex:1 1 280px;min-width:0}
.ukch-site .ukch-badge__code textarea{font:13px/1.45 ui-monospace,Menlo,Consolas,monospace;width:100%}

/* ---------- Welcome panel (4.19) */
.ukch-site .ukch-today{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:4px 0 2px}
.ukch-site .ukch-today__greet{margin:0;font-family:var(--ukch-display);font-size:clamp(1.45rem,2.4vw,1.9rem);font-weight:600;color:var(--ws-ink);line-height:1.2}
.ukch-site .ukch-today__hello p{margin:4px 0 0;color:var(--ws-muted)}
.ukch-site a.ukch-datecard{flex:none;display:flex;flex-direction:column;align-items:center;width:104px;border:1px solid var(--ws-line);border-radius:var(--ws-r);background:#fff;overflow:hidden;text-decoration:none;color:var(--ws-ink);transition:border-color .15s}
.ukch-site a.ukch-datecard:hover{border-color:var(--ws-ink)}
.ukch-site .ukch-datecard__m{display:block;width:100%;text-align:center;background:var(--ws-ink);color:#fff;font-size:.75rem;font-weight:700;padding:5px 4px}
.ukch-site .ukch-datecard__d{font-size:2.4rem;font-weight:700;line-height:1;margin:8px 0 2px}
.ukch-site .ukch-datecard__w{font-size:.8rem;color:var(--ws-muted);margin-bottom:8px}
.ukch-site .ukch-today__add{margin:12px 0 0}
@media (max-width:560px){.ukch-site .ukch-today{align-items:flex-start}.ukch-site a.ukch-datecard{width:84px}.ukch-site .ukch-datecard__d{font-size:2rem}}

/* Lists: agenda and notifications */
.ukch-site .ukch-agenda{list-style:none;margin:0;padding:0}
.ukch-site .ukch-agenda__item{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-top:1px solid var(--ws-line)}
.ukch-site .ukch-agenda__item:first-child{border-top:0;padding-top:2px}
.ukch-site .ukch-agenda__text{min-width:0;flex:1}
.ukch-site .ukch-agenda__text a{color:var(--ws-text);font-weight:700;text-decoration:none}
.ukch-site .ukch-agenda__text a:hover{text-decoration:underline}
.ukch-site .ukch-agenda__text span{display:block;font-size:.85rem;color:var(--ws-muted)}
.ukch-site .ukch-agenda__item.is-done .ukch-agenda__text a{color:var(--ws-muted);font-weight:400;text-decoration:line-through}
.ukch-site .ukch-agenda__item.is-urgent .ukch-agenda__tag{background:#fbf3e1;color:#7a4f00}
.ukch-site .ukch-agenda__tag{flex:none;margin-top:1px;padding:2px 8px;border-radius:999px;background:#eef3f5;color:#33484e;font-size:.75rem;font-weight:700;white-space:nowrap}
.ukch-site .ukch-agenda__item--openday .ukch-agenda__tag{background:#fdf0dd;color:#7a4f00}
.ukch-site .ukch-agenda__item--compliance .ukch-agenda__tag{background:#e1f2ea;color:var(--ws-good)}
.ukch-site .ukch-agenda__item--plan .ukch-agenda__tag{background:#efe8f8;color:#5d3a91}
.ukch-site .ukch-agenda__tick{margin:0;flex:none}
.ukch-site .ukch-tickbox{width:22px;height:22px;border:2px solid #8ea3a8;border-radius:6px;background:#fff;cursor:pointer;padding:0;display:grid;place-items:center}
.ukch-site .ukch-tickbox:hover{border-color:var(--ws-good)}
.ukch-site .ukch-tickbox.is-on{background:var(--ws-good);border-color:var(--ws-good)}
.ukch-site .ukch-tickbox.is-on::after{content:"";width:10px;height:6px;border-left:2.5px solid #fff;border-bottom:2.5px solid #fff;transform:rotate(-45deg) translate(1px,-1px)}
.ukch-site .ukch-notes{list-style:none;margin:0;padding:0}
.ukch-site .ukch-notes li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--ws-line)}
.ukch-site .ukch-notes li:first-child{border-top:0;padding-top:2px}
.ukch-site .ukch-notes a{color:var(--ws-text);text-decoration:none;min-width:0}
.ukch-site .ukch-notes a:hover{text-decoration:underline}
.ukch-site .ukch-notes li.is-new a{font-weight:700}
.ukch-site .ukch-notes time{flex:none;font-size:.8rem;color:var(--ws-muted);white-space:nowrap}
.ukch-site .ukch-notes__new{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;background:var(--ws-accent);color:var(--ws-ink);font-size:.72rem;font-weight:700;vertical-align:1px}
.ukch-site .ukch-viz__title span a{color:var(--ws-s1)}

/* ---------- Calendar */
.ukch-site .ukch-cal-wrap{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:16px;align-items:start}
@media (max-width:1080px){.ukch-site .ukch-cal-wrap{grid-template-columns:1fr}}
.ukch-site .ukch-cal__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.ukch-site .ukch-cal__head .ukch-viz__title{margin:0;font-size:1.15rem}
.ukch-site .ukch-cal__nav{display:flex;gap:4px}
.ukch-site .ukch-cal__nav a{display:grid;place-items:center;min-width:36px;height:34px;padding:0 10px;border:1px solid var(--ws-line);border-radius:6px;color:var(--ws-ink);text-decoration:none;font-weight:700}
.ukch-site .ukch-cal__nav a:hover{border-color:var(--ws-ink)}
.ukch-site .ukch-cal__grid{border:1px solid var(--ws-line);border-radius:6px;overflow:hidden}
.ukch-site .ukch-cal__row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.ukch-site .ukch-cal__row + .ukch-cal__row{border-top:1px solid var(--ws-line)}
.ukch-site .ukch-cal__dow span{padding:6px 8px;font-size:.75rem;font-weight:700;color:var(--ws-muted);background:var(--ws-canvas)}
.ukch-site a.ukch-cal__day{display:flex;flex-direction:column;gap:2px;min-height:92px;padding:6px;border-left:1px solid var(--ws-line);text-decoration:none;color:var(--ws-text);min-width:0}
.ukch-site a.ukch-cal__day:first-child{border-left:0}
.ukch-site a.ukch-cal__day:hover{background:var(--ws-canvas)}
.ukch-site a.ukch-cal__day.is-out{background:#fafbfb;color:#9aa8ab}
.ukch-site a.ukch-cal__day.is-sel{box-shadow:inset 0 0 0 2px var(--ws-ink)}
.ukch-site .ukch-cal__n{font-size:.85rem;font-weight:700;width:26px;height:26px;display:grid;place-items:center;border-radius:50%}
.ukch-site .ukch-cal__day.is-today .ukch-cal__n{background:var(--ws-accent);color:var(--ws-ink)}
.ukch-site .ukch-cal__ev{display:block;font-size:.72rem;line-height:1.3;padding:2px 5px;border-radius:4px;background:#e3f0f5;color:#0b4f68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ukch-site .ukch-cal__ev--openday{background:#fdf0dd;color:#7a4f00}
.ukch-site .ukch-cal__ev--compliance{background:#e1f2ea;color:#1f5c45}
.ukch-site .ukch-cal__ev--plan{background:#efe8f8;color:#5d3a91}
.ukch-site .ukch-cal__ev.is-done{text-decoration:line-through;opacity:.6}
.ukch-site .ukch-cal__more{font-size:.72rem;color:var(--ws-muted);padding-left:4px}
.ukch-site .ukch-cal__dots{display:none}
.ukch-site .ukch-cal__key{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;margin:10px 0 0;padding:0;font-size:.8rem;color:var(--ws-muted)}
.ukch-site .ukch-cal__key li{display:flex;align-items:center;gap:6px}
.ukch-site .ukch-cal__key i{width:10px;height:10px;border-radius:3px;background:#e3f0f5;border:1px solid #0f7aa0}
.ukch-site .ukch-cal__key i.k-openday{background:#fdf0dd;border-color:#e8962a}
.ukch-site .ukch-cal__key i.k-compliance{background:#e1f2ea;border-color:#2f9e78}
.ukch-site .ukch-cal__key i.k-plan{background:#efe8f8;border-color:#8a5cc7}
@media (max-width:700px){
	.ukch-site a.ukch-cal__day{min-height:52px;padding:4px;align-items:center}
	.ukch-site .ukch-cal__ev,.ukch-site .ukch-cal__more{display:none}
	.ukch-site .ukch-cal__dots{display:flex;gap:3px}
	.ukch-site .ukch-cal__dots i{width:5px;height:5px;border-radius:50%;background:var(--ws-s1)}
	.ukch-site .ukch-cal__dow span{padding:6px 2px;text-align:center}
}
.ukch-site .ukch-cal-day .ukch-viz__title{font-size:1.1rem}
.ukch-site .ukch-cal-add{margin-top:14px;border-top:1px solid var(--ws-line);padding-top:12px}
.ukch-site .ukch-cal-add > summary{cursor:pointer;font-weight:700;color:var(--ws-s1)}
.ukch-site .ukch-cal-form{margin-top:10px}
.ukch-site .ukch-cal-form__row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:420px){.ukch-site .ukch-cal-form__row{grid-template-columns:1fr}}
.ukch-site .ukch-cal-form__btns{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0}

/* ---------- Setup guide */
.ukch-site .ukch-guidebar{position:relative;display:flex;align-items:center;gap:12px 16px;flex-wrap:wrap;padding:12px 16px 12px;background:#fff;border:1px solid var(--ws-line);border-left:3px solid var(--ws-accent);border-radius:0 var(--ws-r) var(--ws-r) 0;overflow:hidden}
.ukch-site .ukch-guidebar__track{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--ws-grid)}
.ukch-site .ukch-guidebar__track span{display:block;height:100%;background:var(--ws-accent)}
.ukch-site .ukch-guidebar__text{margin:0;flex:1 1 320px;font-size:.95rem}
.ukch-site .ukch-guidebar__actions{display:flex;gap:6px;flex-wrap:wrap}
.ukch-site .ukch-guidebar__f{margin:0}
.ukch-site .ukch-guidebar__btn,.ukch-site a.ukch-guidebar__btn{display:inline-block;font:inherit;font-size:.875rem;font-weight:700;padding:6px 12px;border-radius:4px;border:1px solid var(--ws-line);background:#fff;color:var(--ws-ink);cursor:pointer;text-decoration:none}
.ukch-site .ukch-guidebar__btn.is-primary{background:var(--ws-ink);border-color:var(--ws-ink);color:#fff}
.ukch-site .ukch-guide > summary{cursor:pointer;list-style:none;margin:0}
.ukch-site .ukch-guide > summary::-webkit-details-marker{display:none}
.ukch-site .ukch-guide__list{margin:12px 0 0;padding:0;list-style:none;counter-reset:g}
.ukch-site .ukch-guide__list li{counter-increment:g;display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--ws-line)}
.ukch-site .ukch-guide__list li::before{content:counter(g);flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--ws-canvas);font-weight:700;font-size:.85rem;color:var(--ws-ink)}
.ukch-site .ukch-guide__list li.is-done::before{content:"✓";background:#e1f2ea;color:var(--ws-good)}
.ukch-site .ukch-guide__list a{flex:1;min-width:0;text-decoration:none;color:var(--ws-text)}
.ukch-site .ukch-guide__list a span{display:block;font-size:.875rem;color:var(--ws-muted)}
.ukch-site .ukch-guide__list li.is-done a strong{color:var(--ws-muted)}
.ukch-site .ukch-guide__foot{margin:10px 0 0;font-size:.875rem}
.ukch-site .ukch-link-btn{background:none;border:0;padding:0;font:inherit;color:var(--ws-s1);text-decoration:underline;cursor:pointer}

/* ---------- Onboarding */
.ukch-site .ukch-onb{background:#fff;border:1px solid var(--ws-line);border-radius:var(--ws-r);padding:clamp(20px,3vw,32px)}
.ukch-site .ukch-onb__intro p{max-width:62ch;color:var(--ws-muted);margin:8px 0 0}
.ukch-site .ukch-onb__goals{border:0;margin:20px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:10px}
.ukch-site .ukch-onb__goal{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid var(--ws-line);border-radius:var(--ws-r);cursor:pointer;transition:border-color .15s,background .15s}
.ukch-site .ukch-onb__goal:hover{border-color:var(--ws-ink)}
.ukch-site .ukch-onb__goal:has(input:checked){border-color:var(--ws-ink);background:#f3f8f9;box-shadow:inset 0 0 0 1px var(--ws-ink)}
.ukch-site .ukch-onb__goal input{width:20px;height:20px;margin-top:2px;accent-color:var(--ws-ink);flex:none}
.ukch-site .ukch-onb__goal strong{display:block;color:var(--ws-ink)}
.ukch-site .ukch-onb__goal small{display:block;color:var(--ws-muted);font-size:.875rem;margin-top:2px}
.ukch-site .ukch-onb__btns{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 8px}

/* ---------- Ask UK CareHomes */
.ukch-site .ukch-kb-ask__row{display:flex;gap:8px}
.ukch-site .ukch-kb-ask__row input{flex:1;min-width:0}
.ukch-site .ukch-kb-ask__sugs{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0}
.ukch-site .ukch-kb-ask__sugs a{padding:5px 11px;border:1px solid var(--ws-line);border-radius:999px;font-size:.85rem;color:var(--ws-text);text-decoration:none;background:#fff}
.ukch-site .ukch-kb-ask__sugs a:hover{border-color:var(--ws-ink)}
.ukch-site .ukch-kb-answer{border-left:3px solid var(--ws-s1)}
.ukch-site .ukch-kb-answer__q{margin:0 0 6px;color:var(--ws-muted);font-size:.9rem}
.ukch-site .ukch-kb__name{margin:0;font-family:var(--ukch-body);font-size:1.15rem;color:var(--ws-ink)}
.ukch-site .ukch-kb__plan{margin:2px 0 8px;font-size:.8rem;font-weight:700;color:var(--ws-good)}
.ukch-site .ukch-kb-answer h4,.ukch-site .ukch-kb__body h4{margin:14px 0 4px;font-family:var(--ukch-body);font-size:.95rem;color:var(--ws-ink)}
.ukch-site .ukch-kb-answer ol,.ukch-site .ukch-kb__body ol{margin:0;padding-left:1.3em}
.ukch-site .ukch-kb-related{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:16px}
.ukch-site .ukch-kb-related .ukch-kb__name{font-size:1rem}
.ukch-site .ukch-kb-group + .ukch-kb-group{margin-top:18px}
.ukch-site .ukch-kb-group__name{margin:0 0 8px;font-family:var(--ukch-body);font-size:.9rem;color:var(--ws-muted)}
.ukch-site .ukch-kb + .ukch-kb{margin-top:8px}
.ukch-site .ukch-kb > summary{cursor:pointer;list-style:none;display:flex;flex-direction:column;gap:2px}
.ukch-site .ukch-kb > summary::-webkit-details-marker{display:none}
.ukch-site .ukch-kb > summary strong{color:var(--ws-ink)}
.ukch-site .ukch-kb > summary span{font-size:.9rem;color:var(--ws-muted)}
.ukch-site .ukch-kb__body{margin-top:12px;padding-top:12px;border-top:1px solid var(--ws-line)}
.ukch-site .ukch-kb__body .ukch-kb__name{display:none}
.ukch-site details.ukch-guide{display:block}
.ukch-site .ukch-guide > summary{display:block}

/* ---------- Checklist template choice (4.20) */
.ukch-site .ukch-cqc-tpl fieldset{border:0;margin:0;padding:0}
.ukch-site .ukch-cqc-tpl__opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}
.ukch-site .ukch-cqc-tpl .ukch-note{margin:10px 0 0}

/* ---------- Safety check */
.ukch-site .ukch-sc-hero{background:var(--ws-ink);color:#fff;border-radius:var(--ws-r);padding:20px 22px;display:flex;flex-direction:column;border-top:6px solid #9fe3bf}
.ukch-site .ukch-sc-hero.is-warn{border-top-color:var(--ws-accent)}
.ukch-site .ukch-sc-hero.is-act{border-top-color:#ff9a86}
.ukch-site .ukch-sc-hero__verdict{display:flex;align-items:center;gap:10px;margin:10px 0 0;font-size:1.25rem;font-weight:700}
.ukch-site .ukch-sc-icon{display:grid;place-items:center;min-width:30px;height:30px;padding:0 6px;border-radius:999px;background:#9fe3bf;color:var(--ws-ink);font-size:.95rem;font-weight:700}
.ukch-site .ukch-sc-hero.is-warn .ukch-sc-icon{background:var(--ws-accent)}
.ukch-site .ukch-sc-hero.is-act .ukch-sc-icon{background:#ff9a86}
.ukch-site .ukch-sc-hero .ukch-hero-n{margin-top:10px}
.ukch-site .ukch-sc-st{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.78rem;font-weight:700;white-space:nowrap}
.ukch-site .ukch-sc-st--ok{background:#e1f2ea;color:var(--ws-good)}
.ukch-site .ukch-sc-st--warn{background:#fbf3e1;color:#7a4f00}
.ukch-site .ukch-sc-st--act{background:#fbe7e3;color:#9a3a2c}
.ukch-site .ukch-sc-list{list-style:none;margin:0;padding:0 18px 12px;border-top:1px solid var(--ws-line)}
.ukch-site .ukch-sc-list li{display:grid;grid-template-columns:88px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--ws-line)}
.ukch-site .ukch-sc-list li:last-child{border-bottom:0}
.ukch-site .ukch-sc-list p{margin:2px 0 0}
.ukch-site .ukch-sc-advice{background:var(--ws-canvas);padding:8px 12px;border-radius:6px;margin-top:8px!important}
@media (max-width:560px){.ukch-site .ukch-sc-list li{grid-template-columns:1fr;gap:4px}}
.ukch-site .ukch-sc-fs{border:1px solid var(--ws-line);margin:0}
.ukch-site .ukch-sc-fs + .ukch-sc-fs{margin-top:12px}
.ukch-site .ukch-sc-fs legend{float:left;width:100%;margin-bottom:12px}
.ukch-site .ukch-sc-grid{clear:both;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px 18px}
.ukch-site .ukch-sc-grid .ukch-field{margin:0}
.ukch-site .ukch-sc-yn{border:0;padding:0;margin:0}
.ukch-site .ukch-sc-yn legend{font-weight:700;margin-bottom:4px;padding:0}
.ukch-site .ukch-sc-yn div{display:flex;gap:16px;flex-wrap:wrap;margin-top:6px}
.ukch-site .ukch-sc-yn label{display:flex;gap:6px;align-items:center;font-weight:400}
.ukch-site .ukch-sc-yn input{width:18px;height:18px;accent-color:var(--ws-ink)}
.ukch-site .ukch-sc-list li > .ukch-sc-st{align-self:start;justify-self:start}
.ukch-site .ukch-ws .ukch-sc-hero .ukch-btn--primary{background:var(--ws-accent);border-color:var(--ws-accent);color:var(--ws-ink)}
.ukch-site .ukch-ws .ukch-sc-hero .ukch-btn--ghost{background:transparent;border-color:rgba(255,255,255,.5);color:#fff}
.ukch-site .ukch-sc-hero .ukch-cqc-hero__actions{margin-top:auto}
.ukch-site .ukch-viz__hbar.is-warn{background:#c98a1a}

.ukch-site details.ukch-cqc-tpl > summary{cursor:pointer;list-style:none;margin:0}
.ukch-site details.ukch-cqc-tpl > summary::-webkit-details-marker{display:none}
.ukch-site details.ukch-cqc-tpl > summary span{color:var(--ws-s1);text-decoration:underline}
.ukch-site details.ukch-cqc-tpl[open] > summary{margin-bottom:10px}
.ukch-site .ukch-cqc-tpl form .ukch-note{margin:0 0 10px}

/* ---------- Improvement plan (4.22) */
.ukch-site .ukch-agenda__item--improve .ukch-agenda__text span{color:var(--ws-muted)}
.ukch-site .ukch-agenda__item--checks .ukch-agenda__tag{background:#e3f0f5;color:#0b4f68}
.ukch-site .ukch-cal__ev--improve{background:#fbf3e1;color:#7a4f00}
.ukch-site .ukch-cal__ev--checks{background:#eef3f5;color:#33484e}
.ukch-site .ukch-cal__key i.k-improve{background:#fbf3e1;border-color:#c98a1a}
.ukch-site .ukch-ip-list{padding:0 18px 10px;border-top:1px solid var(--ws-line)}
.ukch-site .ukch-ip-late{color:#9a3a2c}
.ukch-site .ukch-agenda__text a:not([href]){cursor:default;text-decoration:none}
.ukch-site .ukch-viz__hbars li{grid-template-columns:minmax(90px,1fr) minmax(0,2fr) minmax(56px,auto)}
@media (max-width:520px){.ukch-site .ukch-viz__hbars li{grid-template-columns:1fr minmax(56px,auto)}}
@supports (grid-template-columns:subgrid){
	.ukch-site .ukch-viz__hbars{grid-template-columns:minmax(90px,1fr) minmax(0,2fr) minmax(56px,auto);column-gap:12px}
	.ukch-site .ukch-viz__hbars li{grid-column:1 / -1;grid-template-columns:subgrid}
	@media (max-width:520px){.ukch-site .ukch-viz__hbars{grid-template-columns:minmax(0,1fr) minmax(56px,auto)}}
}
