/* GRChub-branded GRC Console snippets — layouts/names match specsavers-grc.html */
.grc-ui{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:12px;color:#12152B;background:#F5F6FB;line-height:1.45}
.grc-ui *{box-sizing:border-box}
.grc-ui__shell{border:1px solid #E4E6F0;border-radius:16px;overflow:hidden;background:#F5F6FB;box-shadow:0 28px 70px -36px rgba(18,21,43,.45)}
.grc-ui__header{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;background:#fff;border-bottom:1px solid #E4E6F0;gap:12px}
.grc-ui__header-brand{display:flex;align-items:center;gap:10px;min-width:0}
.grc-ui__header-mark{width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#4338CA,#7C5CFC);flex-shrink:0}
.grc-ui__header-title{font-family:"Space Grotesk",system-ui,sans-serif;font-weight:600;font-size:13px;line-height:1.2}
.grc-ui__header-sub{font-size:10px;color:#5A6178;margin-top:1px}
.grc-ui__header-actions{display:flex;gap:6px;flex-shrink:0}
.grc-ui__header-btn{font-size:10px;padding:5px 8px;border-radius:8px;border:1px solid #E4E6F0;background:#fff;color:#5A6178}
.grc-ui__frame{display:grid;grid-template-columns:148px 1fr;min-height:340px}
.grc-ui__nav{background:#1a1640;padding:12px 10px;display:flex;flex-direction:column;gap:2px;font-size:11px}
.grc-ui__nav-group{margin-bottom:10px}
.grc-ui__nav-group-title{font-family:"IBM Plex Mono",monospace;font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:#8B90B8;padding:4px 8px 4px;margin-bottom:2px}
.grc-ui__nav-item{display:block;padding:7px 8px;border-radius:8px;color:#C9CDEC;margin-bottom:1px}
.grc-ui__nav-item.is-on{background:#4338CA;color:#fff;font-weight:600;box-shadow:0 4px 12px rgba(67,56,202,.35)}
.grc-ui__nav-stats{margin-top:auto;padding-top:10px;border-top:1px solid rgba(255,255,255,.12)}
.grc-ui__nav-stats-title{font-family:"IBM Plex Mono",monospace;font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:#8B90B8;padding:4px 8px;margin-bottom:4px}
.grc-ui__nav-stat{display:flex;justify-content:space-between;padding:4px 8px;font-size:10px;color:#C9CDEC}
.grc-ui__nav-stat b{color:#fff;font-weight:600}
.grc-ui__nav-stat b.is-warn{color:#FFD591}
.grc-ui__main{padding:12px;background:#F5F6FB;overflow:hidden}
.grc-ui__hero{background:linear-gradient(135deg,#12152B 0%,#2E2270 100%);border-radius:12px;padding:12px 14px;margin-bottom:10px;color:#fff}
.grc-ui__hero-ey{font-family:"IBM Plex Mono",monospace;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:#C9CDEC;margin-bottom:4px}
.grc-ui__hero-title{font-family:"Space Grotesk",system-ui,sans-serif;font-size:15px;font-weight:600;margin-bottom:4px}
.grc-ui__hero-sub{font-size:10.5px;color:#C9CDEC;line-height:1.45}
.grc-ui__sec-head{margin-bottom:10px}
.grc-ui__sec-title{font-family:"Space Grotesk",system-ui,sans-serif;font-size:16px;font-weight:600;line-height:1.15;color:#12152B}
.grc-ui__sec-sub{font-size:10.5px;color:#5A6178;margin-top:3px}
.grc-ui__metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:8px}
.grc-ui__metrics--5{grid-template-columns:repeat(5,1fr)}
.grc-ui__metric{border:1px solid transparent;border-radius:10px;padding:8px 10px;background:#fff;box-shadow:0 2px 8px rgba(18,21,43,.06)}
.grc-ui__metric-label{font-size:9px;color:#5A6178;margin-bottom:2px;line-height:1.3}
.grc-ui__metric-val{font-family:"Space Grotesk",system-ui,sans-serif;font-size:16px;font-weight:600;line-height:1}
.grc-ui__metric-val--warn{color:#B54A3F}
.grc-ui__metric-sub{font-size:9px;color:#5A6178;margin-top:2px}
.grc-ui__panel{border:1px solid transparent;border-radius:10px;background:#fff;padding:10px 12px;margin-bottom:8px;box-shadow:0 2px 8px rgba(18,21,43,.06)}
.grc-ui__panel-head{font-family:"Space Grotesk",system-ui,sans-serif;font-size:11px;font-weight:600;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.grc-ui__panel-head--muted{font-size:9px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#5A6178}
.grc-ui__row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid #EEF0F6;font-size:10px}
.grc-ui__row:last-child{border-bottom:0}
.grc-ui__pill{font-family:"IBM Plex Mono",monospace;font-size:8px;padding:2px 6px;border-radius:999px;font-weight:600;white-space:nowrap}
.grc-ui__pill--ok{background:rgba(67,56,202,.12);color:#4338CA}
.grc-ui__pill--warn{background:rgba(176,106,0,.12);color:#8A5500}
.grc-ui__pill--bad{background:rgba(255,107,92,.15);color:#B54A3F}
.grc-ui__pill--solid{background:#4338CA;color:#fff}
.grc-ui__grid-2{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.grc-ui__country{display:flex;justify-content:space-between;align-items:flex-start;padding:8px;border:1px solid #EEF0F6;border-radius:8px;background:#fff;margin-bottom:6px}
.grc-ui__country-flag{font-size:14px;line-height:1}
.grc-ui__country-name{font-size:11px;font-weight:600;margin-top:2px}
.grc-ui__country-brand{font-size:9px;color:#5A6178}
.grc-ui__country-count{font-family:"Space Grotesk",system-ui,sans-serif;font-size:18px;font-weight:600;text-align:right}
.grc-ui__country-count-label{font-size:9px;color:#5A6178;text-align:right}
.grc-ui__health{display:flex;gap:4px;margin-bottom:8px}
.grc-ui__health-bar{flex:1;font-size:9px}
.grc-ui__health-bar span{display:block;color:#5A6178;margin-bottom:3px}
.grc-ui__health-track{height:6px;background:#EEF0F6;border-radius:4px;overflow:hidden}
.grc-ui__health-fill{height:100%;border-radius:4px}
.grc-ui__matrix{display:grid;grid-template-columns:repeat(5,1fr);gap:2px}
.grc-ui__cell{aspect-ratio:1;border-radius:3px;display:grid;place-items:center;font-size:9px;font-weight:700;color:#12152B;min-height:18px}
.grc-ui__cell--empty{opacity:.2;background:#E4E6F0}
.grc-ui__bands{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:8px}
.grc-ui__band{background:#fff;border-radius:8px;padding:8px 6px;border-top:3px solid #4338CA;box-shadow:0 2px 6px rgba(18,21,43,.06);min-width:0}
.grc-ui__band-val{font-family:"Space Grotesk",system-ui,sans-serif;font-size:18px;font-weight:700;line-height:1}
.grc-ui__band-label{font-size:8px;color:#5A6178;text-transform:uppercase;letter-spacing:.04em;font-weight:600;margin-top:4px}
.grc-ui__band-sub{font-size:8px;color:#5A6178;margin-top:2px;line-height:1.3}
.grc-ui__dash-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:8px;margin-bottom:8px}
.grc-ui__dash-card{background:#fff;border-radius:10px;padding:10px;box-shadow:0 2px 8px rgba(18,21,43,.06)}
.grc-ui__dash-card-title{font-size:9px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#5A6178;margin-bottom:8px}
.grc-ui__legend{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.grc-ui__legend span{font-size:9px;color:#5A6178;display:flex;align-items:center;gap:4px}
.grc-ui__legend i{width:8px;height:8px;border-radius:2px;display:inline-block}
.grc-ui__top-list{list-style:none;margin:0;padding:0}
.grc-ui__top-item{display:grid;grid-template-columns:28px 1fr auto;gap:6px;align-items:center;padding:5px 0;border-bottom:1px solid #EEF0F6;font-size:10px}
.grc-ui__top-item:last-child{border-bottom:0}
.grc-ui__top-score{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:22px;border-radius:6px;color:#fff;font-weight:700;font-size:11px}
.grc-ui__top-title{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grc-ui__top-meta{font-size:9px;color:#5A6178}
.grc-ui__top-delta{font-size:9px;color:#5A6178;white-space:nowrap}
.grc-ui__reduce{margin-top:8px;padding-top:8px;border-top:1px solid #EEF0F6;font-size:9px;color:#5A6178}
.grc-ui__reduce strong{color:#12152B;font-weight:600}
.grc-ui__seg{display:inline-flex;border:1px solid #E4E6F0;border-radius:999px;padding:2px;gap:2px;margin-bottom:8px;background:#fff}
.grc-ui__seg-btn{font:inherit;font-size:10px;font-weight:600;padding:5px 12px;border-radius:999px;border:none;background:transparent;color:#5A6178}
.grc-ui__seg-btn.is-on{background:#4338CA;color:#fff}
.grc-ui__stack{display:flex;height:12px;border-radius:6px;overflow:hidden;background:#EEF0F6;margin-bottom:6px}
.grc-ui__stack span{display:block;height:100%}
.grc-ui__cat-row{margin-bottom:8px}
.grc-ui__cat-top{display:flex;justify-content:space-between;font-size:10px;margin-bottom:3px;gap:6px}
.grc-ui__cat-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.grc-ui__cat-count{color:#5A6178;white-space:nowrap;font-size:9px}
.grc-ui__cat-bar{height:6px;border-radius:4px;background:#EEF0F6;overflow:hidden}
.grc-ui__cat-fill{height:100%;border-radius:4px}
.grc-ui__heat-wrap{display:grid;grid-template-columns:12px 1fr;grid-template-rows:auto 12px;gap:3px;align-items:center}
.grc-ui__heat-ylab{grid-row:1;grid-column:1;writing-mode:vertical-rl;transform:rotate(180deg);font-size:8px;color:#5A6178;text-align:center}
.grc-ui__heat-plot{grid-row:1;grid-column:2}
.grc-ui__heat-xlab{grid-row:2;grid-column:2;font-size:8px;color:#5A6178;text-align:center}
.grc-ui__store-flag{font-size:14px;margin-right:4px}
@media(max-width:720px){
  .grc-ui__frame{grid-template-columns:120px 1fr}
  .grc-ui__metrics--5{grid-template-columns:repeat(3,1fr)}
  .grc-ui__bands{grid-template-columns:repeat(3,1fr)}
  .grc-ui__dash-grid,.grc-ui__grid-2{grid-template-columns:1fr}
}
