:root {
  --green: #32b34c;         /* CFlo brand green – primary */
  --green-hover: #2aa042;
  --green-deep: #1d7a35;    /* headings, emphasis */
  --green-tint: #eaf7ec;
  --amber: #f0b429;
  --red: #e05243;
  --bg: #f0f3ee;            /* same canvas as the emails */
  --ink: #1f2d25;
  --muted: #68766d;
  --line: #e4e9e2;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(30, 60, 40, .08);
  --grad: linear-gradient(120deg, #135029 0%, #1d7a35 45%, #2ea44a 100%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 14px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 {
  font-size: 24px; margin: 0; color: var(--green-deep);
  letter-spacing: -.01em; font-weight: 700;
}
h1::after {
  content: ""; display: block; width: 44px; height: 4px;
  background: var(--green); border-radius: 2px; margin-top: 9px;
}
h2 { font-size: 16px; margin: 0; }
h3 { font-size: 15px; margin: 0 0 8px; color: var(--green-deep); }
h4 { margin: 0 0 12px; color: var(--green-deep); font-size: 12px;
     text-transform: uppercase; letter-spacing: .09em; }
.card > h3 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 12px;
}
.subtitle { color: var(--muted); margin: 10px 0 24px; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.warn { color: var(--red); }

/* ------------------------------------------------ nav – the email header band */
.topnav {
  display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap;
  background: var(--grad); padding: 10px 24px; min-height: 62px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 18px rgba(19, 80, 41, .35);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 36px; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.25)); }
/* same wordmark as the login page – single colour, same weight; reversed white */
.brand-name {
  font-size: 19px; color: #fff; font-weight: 700; letter-spacing: -.01em;
}
.brand-divider {
  width: 1px; height: 34px; background: rgba(255, 255, 255, .35);
  margin: 0 2px;
}
.brand-stack { display: flex; flex-direction: column; line-height: 1.15; }
.brand-tag {
  font-size: 8.5px; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(255, 255, 255, .72);
}
.navlinks { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.navlinks a {
  color: rgba(255, 255, 255, .92); padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.navlinks a:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.navlinks a.active {
  background: #fff; color: var(--green-deep); font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .22);
}
.navuser { display: flex; gap: 14px; align-items: center; font-size: 13px; white-space: nowrap; }
.navname { font-weight: 700; color: #fff; }
.logout {
  color: rgba(255, 255, 255, .85); display: inline-flex; align-items: center;
  gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35); font-weight: 600;
}
.logout:hover { background: rgba(255, 255, 255, .15); text-decoration: none; }
.door-icon { width: 15px; height: 15px; }
.fy-select {
  border: none; border-radius: 999px; padding: 7px 12px;
  font: inherit; font-size: 12.5px; background: rgba(255, 255, 255, .95);
  color: var(--green-deep); font-weight: 700;
}
.archive-banner {
  background: #fdf2d0; color: #7a5c0d; padding: 9px 22px; font-size: 13px;
  border-bottom: 1px solid #f0e0aa;
}
.nav-select { display: none; }

.container { max-width: 1420px; margin: 26px auto 40px; padding: 0 22px; }

/* ------------------------------------------------ hero band (dashboard / leader) */
.hero {
  background: var(--grad); border-radius: 20px; color: #fff;
  padding: 28px 30px 24px; margin-bottom: 22px;
  box-shadow: 0 14px 34px rgba(19, 80, 41, .30);
  position: relative; overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.hero h1::after { background: var(--amber); }
.hero .subtitle { color: rgba(255, 255, 255, .88); margin-bottom: 20px; }
.hero .stat-row { margin-bottom: 14px; }
.hero .stat {
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: none; backdrop-filter: blur(6px);
}
.hero .stat-n { color: #fff; }
.hero .stat-l { color: rgba(255, 255, 255, .78); }
.hero .dist-row { color: rgba(255, 255, 255, .92); margin-bottom: 0; }
.hero .hint {
  background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.hero .leader-head { margin-bottom: 14px; }
.hero .subtitle, .hero .leader-head .subtitle { color: rgba(255, 255, 255, .85); }
.footer { text-align: center; color: #9aa89e; font-size: 11.5px; padding: 20px; }
.footer-legal { font-size: 9.5px; color: #b3bfb5; margin-top: 4px; }
.ver-chip {
  display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .85);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; vertical-align: middle;
}

/* ------------------------------------------------ cards & stats – email card look */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stat {
  background: var(--card); border-radius: var(--radius);
  padding: 13px 20px; text-align: center; min-width: 104px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.stat-n { font-size: 23px; font-weight: 700; color: var(--green); letter-spacing: -.02em; }
.stat-l { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.dist-row { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 4px; margin: 0 3px -1px 6px; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }
.dot-grey { background: #cfd5d0; }

/* ------------------------------------------------ tables */
.table-scroll { overflow-x: auto; }
.tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.tbl th {
  text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px;
  white-space: nowrap; background: var(--card); position: sticky; top: 0; font-weight: 700;
}
.tbl td { border-bottom: 1px solid #eef1ec; padding: 9px 8px; vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.num { text-align: center !important; }
.rowlink { cursor: pointer; }
.rowlink:hover td { background: #f4faf4; }

/* ------------------------------------------------ badges & pills – vibrant email chips */
.badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; white-space: nowrap; color: #fff;
}
.badge-lg { font-size: 13px; padding: 6px 16px; }
.badge-OnTrack { background: var(--green); }
.badge-AtRisk { background: var(--amber); }
.badge-OffTrack { background: var(--red); }
.badge-NotScored { background: #c2ccc4; }
.pill {
  display: inline-block; background: var(--green-tint); color: var(--green-deep);
  border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 700;
}
.pill-top { background: #fdf0ce; color: #916708; }
.pill-hidden { background: #fbe4e0; color: #a33a28; }
.pill-tracked { background: #eef0ed; color: #8b978e; font-weight: 600; }
.stat-of { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-warn { color: var(--red) !important; }
.flag {
  display: inline-block; border-radius: 999px; padding: 2px 9px;
  font-size: 10.5px; font-weight: 700; margin: 1px 2px 1px 0; white-space: nowrap;
}
.flag-red { background: #fbe4e0; color: #a33a28; border: 1px solid #efc3bb; }
.flag-amber { background: #fcf0d2; color: #8a6410; border: 1px solid #ecd9a0; }
.flag-soft { background: #f0f2ef; color: #7d8a80; border: 1px dashed #ccd4cc; }
.note-item {
  border-left: 3px solid var(--green); background: #f8fbf7;
  border-radius: 0 10px 10px 0; padding: 9px 13px; margin-bottom: 9px; cursor: pointer;
}
.note-item:hover { background: var(--green-tint); }
.note-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.note-time { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }
.note-text {
  font-size: 13px; margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-item.expanded .note-text { -webkit-line-clamp: unset; }
.note-extra { display: none; }
.note-go {
  font-weight: 800; font-size: 15px; color: var(--green-deep);
  padding: 0 4px; flex-shrink: 0;
}

/* live tracker hero: pulsing dot + compliance donut */
.live-dot {
  display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  background: #7dff9b; margin-left: 8px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(125, 255, 155, .7);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 255, 155, .65); }
  70% { box-shadow: 0 0 0 12px rgba(125, 255, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 255, 155, 0); }
}
.hero h1 .live-dot { margin-bottom: 6px; }
.tracker-hero-row {
  display: flex; gap: 30px; align-items: center; flex-wrap: wrap; margin-top: 4px;
}
.donut-wrap { display: flex; gap: 18px; align-items: center; }
.donut {
  width: 172px; height: 172px; border-radius: 50%; position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); flex-shrink: 0;
}
.donut-hole {
  position: absolute; inset: 22px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.donut-hole b { font-size: 34px; font-weight: 800; color: var(--green-deep); line-height: 1; }
.donut-hole span {
  font-size: 8.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); margin-top: 4px; max-width: 90px;
}
.donut-legend { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: #fff; }
.donut-legend span { display: flex; align-items: center; gap: 7px; }
.donut-legend i {
  width: 11px; height: 11px; border-radius: 4px; display: inline-block; flex-shrink: 0;
}
.donut-legend b { margin-left: 2px; }
.tracker-stats { flex: 1; min-width: 260px; margin-bottom: 0; }
@media (max-width: 760px) {
  .tracker-hero-row { gap: 18px; }
  .donut { width: 140px; height: 140px; }
  .donut-hole { inset: 18px; }
  .donut-hole b { font-size: 27px; }
}
.ceo-tag {
  font-size: 10px; background: var(--green-tint); color: var(--green-deep);
  border-radius: 999px; padding: 2px 8px; vertical-align: middle; font-weight: 700;
}

/* ------------------------------------------------ leader page */
.leader-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.leader-head .subtitle { margin: 6px 0 0; }
.leader-score { display: flex; align-items: center; gap: 14px; }
.hint {
  background: var(--green-tint); border: 1px solid #cdebd3; padding: 10px 15px;
  border-radius: 10px; color: #24603a; font-size: 13px;
}
.obj-card { border-left: 4px solid var(--green); }
.obj-card.is-hidden { opacity: .65; outline: 1px dashed #c9d3ca; }
.obj-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.obj-head h2, .obj-head h3 { flex: 1; color: var(--green-deep); font-size: 15px; }
.kr-tbl td { padding: 6px; }
.kr-code { white-space: nowrap; font-weight: 700; font-size: 12px; }
.top-star { color: var(--amber); margin-right: 2px; }
.upd-count {
  background: var(--green); color: #fff; font-size: 10px; border-radius: 999px;
  padding: 0 6px; margin-left: 4px; vertical-align: middle; font-weight: 700;
}
.kr-desc { min-width: 280px; max-width: 430px; cursor: pointer; }
.kr-desc:hover .kr-d { color: var(--green); }
.kr-d { font-weight: 500; }
.kr-t { color: var(--muted); font-size: 12px; white-space: pre-line; }
.mcol-h, .qcol-h { text-align: center !important; font-size: 9.5px !important; }
.qcol-h { background: #ecf3ec !important; }
.mcell {
  width: 30px; min-width: 30px; height: 30px; cursor: pointer;
  border-left: 1px solid #eef1ec; text-align: center; position: relative;
}
.mcell-lg { width: 44px; min-width: 44px; }
.mcell:hover { outline: 2px solid var(--green-deep); outline-offset: -2px; border-radius: 4px; }
.rag-cell-none { background: #fafcf8; }
.rag-cell-green { background: var(--green); }
.rag-cell-amber { background: var(--amber); }
.rag-cell-red { background: var(--red); }
.rag-cell-nd { background: #e7ebe6; }
.cur-month { box-shadow: inset 0 0 0 2px rgba(29, 122, 53, .5); }
.note-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(20, 40, 25, .25);
}
.rag-cell-none .note-dot { background: rgba(20, 40, 25, .45); box-shadow: none; }
.qcell { background: #ecf3ec; text-align: center; min-width: 52px; }
/* quarterly RAG = a colour dot (circle), unmistakably NOT a score box */
.qrag {
  width: 26px; height: 26px; border-radius: 50%; margin: 0 auto;
  border: 2px dashed #b9c6b8; background: transparent !important;
}
.qrag.rag-cell-green { background: var(--green) !important; border: none; }
.qrag.rag-cell-amber { background: var(--amber) !important; border: none; }
.qrag.rag-cell-red { background: var(--red) !important; border: none; }
.qrag.rag-cell-nd {
  background: #e7ebe6 !important; border: 2px solid #cfd5d0;
  position: relative;
}
.qrag.rag-cell-nd::after {
  content: 'ND'; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800; color: #7d877f; letter-spacing: .04em;
}
.qrag:hover { outline: 2px solid var(--green-deep); outline-offset: 1px; }
.score-in {
  width: 48px; text-align: center; border: 1px solid var(--line);
  border-radius: 7px; padding: 4px; font-weight: 700; background: #fff;
}
.score-in:disabled { background: #e7ebe6; color: #99a59c; }
.score-ro { font-weight: 700; }
.score-empty { color: #b6c1b5; font-weight: 400; }
/* beautiful score chips on read-only (leader) scorecards */
.score-chip {
  display: inline-flex; align-items: baseline; gap: 1px;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.score-chip b { font-size: 13px; font-weight: 800; }
.score-chip small { font-size: 9px; font-weight: 700; opacity: .75; }
.score-chip em { font-style: normal; font-size: 9px; font-weight: 700; margin-left: 4px; }
.band-on { background: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(50, 179, 76, .35); }
.band-risk { background: var(--amber); color: #fff; box-shadow: 0 2px 6px rgba(240, 180, 41, .35); }
.band-off { background: var(--red); color: #fff; box-shadow: 0 2px 6px rgba(224, 82, 67, .35); }
.chip-pending {
  border: 1.5px dashed #c2ccc1; color: #a8b3a7;
  font-size: 10.5px; font-weight: 600;
}
.chip-due {
  border: 1.5px solid var(--amber); color: #916708; background: #fdf0ce;
  font-size: 10.5px; font-weight: 700;
}
.chip-trophy { font-size: 11px; margin-left: 3px; }
.mini-score.mini-due { border-color: var(--amber); color: #916708; background: #fdf0ce; }
.mini-band-on { background: var(--green); color: #fff; border-color: var(--green); }
.mini-band-risk { background: var(--amber); color: #fff; border-color: var(--amber); }
.mini-band-off { background: var(--red); color: #fff; border-color: var(--red); }

/* celebration confetti */
.confetti-wrap {
  position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden;
}
.confetti-wrap i {
  position: absolute; top: -14px; display: block; border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(108vh) rotate(720deg); }
}
.confetti-msg {
  position: absolute; top: 26%; left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--green-deep); font-weight: 800; font-size: 19px;
  padding: 14px 28px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  animation: msg-pop .4s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes msg-pop {
  from { transform: translateX(-50%) scale(.5); opacity: 0; }
}
/* leaders see their own action (progress log) first in the KR panel */
.modal-cols.log-first #ciSection { order: 2; }
.is-hidden td { opacity: .55; }
.lock-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.lock-item { user-select: none; }

/* ------------------------------------------------ login – the email card itself */
.login-wrap { display: flex; justify-content: center; padding: 54px 0; }
.login-card {
  background: var(--card); border-radius: 16px; width: 410px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(30, 60, 40, .14); padding: 0;
}
.login-head { background: var(--grad); padding: 24px 34px; position: relative; }
.head-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.head-close:hover { background: rgba(255, 255, 255, .3); text-decoration: none; }
.head-close svg { width: 16px; height: 16px; }
.login-head img { height: 46px; display: block; }
.login-body { padding: 26px 34px 30px; }
.login-brand { font-size: 25px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.login-sub { color: var(--muted); margin: 4px 0 22px; }
.login-note { color: var(--muted); font-size: 12px; margin-top: 16px; }
.otp-in { font-size: 24px; letter-spacing: 12px; text-align: center; font-weight: 700; }
.pw-details {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px 16px;
}
.pw-details .btn { box-shadow: none; }
.pw-details summary {
  cursor: pointer; font-weight: 700; color: var(--green-deep); font-size: 13.5px;
  user-select: none;
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 6px; display: flex; align-items: center;
}
.pw-eye:hover { color: var(--green-deep); }
.pw-eye svg { width: 20px; height: 20px; }
.alert {
  background: #fbe4e0; color: #a33a28; padding: 10px 13px; border-radius: 9px;
  margin-bottom: 14px; font-size: 13px;
}
.alert-ok { background: var(--green-tint); color: var(--green-deep); }
.alert-info { background: #fcf0d2; color: #8a6410; }

/* ------------------------------------------------ forms & buttons – email CTA */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
input[type=email], input[type=password], input[type=text], input[type=number],
textarea, select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(50, 179, 76, .4); border-color: var(--green);
}
textarea { resize: vertical; }
select { width: auto; }
.inline-in { padding: 6px 9px !important; font-size: 13px; }
.btn {
  background: linear-gradient(120deg, #2aa042, #32b34c); color: #fff;
  border: none; border-radius: 10px;
  padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer;
  box-shadow: 0 3px 10px rgba(50, 179, 76, .35);
  transition: filter .12s, transform .08s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-ghost { background: #fff; color: var(--green-deep); border: 1.5px solid var(--green); box-shadow: none; }
.btn-ghost:hover { background: var(--green-tint); filter: none; }
.btn-danger { background: var(--red); box-shadow: 0 3px 10px rgba(224, 82, 67, .3); }
.btn-danger:hover { background: #c8402f; filter: none; }
.btn-danger-ghost { color: var(--red) !important; border-color: #f0b9b1 !important; }
.btn-danger-ghost:hover { background: #fdefec !important; }
.msg { margin-left: 10px; font-size: 13px; color: var(--green-deep); font-weight: 600; }
.toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.btn-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text] { max-width: 420px; }
.grid-form {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px; margin-bottom: 8px;
}
.role-select { font-size: 12.5px; padding: 5px 7px; }

/* ------------------------------------------------ people */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.person-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--card); border-radius: var(--radius);
  padding: 16px; color: var(--ink) !important; box-shadow: var(--shadow);
  transition: transform .1s, box-shadow .1s;
}
.person-card:hover {
  text-decoration: none !important; transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(30, 60, 40, .14);
}
.person-card.inactive { opacity: .6; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--green);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0; object-fit: cover;
}
.avatar-sm { width: 32px; height: 32px; font-size: 11px; }
.avatar-lg { width: 60px; height: 60px; font-size: 20px; }
.avatar-nav {
  width: 26px; height: 26px; display: inline-flex; vertical-align: middle;
  margin-right: 6px; border: 2px solid rgba(255, 255, 255, .8);
}
.photo-cell { cursor: pointer; display: inline-block; }
.photo-cell:hover .avatar { outline: 2px solid var(--green); outline-offset: 2px; }
.leader-id, .account-id { display: flex; align-items: center; gap: 16px; }
.person-name { font-weight: 700; }
.person-title { font-size: 12.5px; color: var(--muted); }
.person-rep { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ------------------------------------------------ modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(18, 32, 22, .5); z-index: 100;
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px;
  overflow-y: auto; backdrop-filter: blur(2px);
}
.modal {
  background: #fff; border-radius: 16px; width: 900px; max-width: 100%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28); overflow: hidden;
}
.modal-sm { width: 540px; }
.modal-xs { width: 430px; }
.z-top { z-index: 130; }

/* score dialog */
.score-body { text-align: center; padding-bottom: 24px; }
.score-big { font-size: 48px; font-weight: 800; line-height: 1.1; margin: 8px 0 4px; }
.score-band {
  display: inline-block; color: #fff; border-radius: 999px; padding: 3px 16px;
  font-size: 12px; font-weight: 700; margin-bottom: 16px;
}
#scSlider { width: 100%; height: 36px; cursor: pointer; }
.score-track {
  height: 8px; border-radius: 4px; margin: 2px 8px 4px;
  /* 1-5 scale: off track [1,2) 25%, at risk [2,3.5) 62.5%, on track >=3.5 */
  background: linear-gradient(to right,
    var(--red) 0%, var(--red) 25%, var(--amber) 25%, var(--amber) 62.5%,
    var(--green) 62.5%, var(--green) 100%);
}
.score-scale {
  display: flex; justify-content: space-between; color: var(--muted);
  font-size: 10.5px; margin: 4px 8px 0;
}
.score-actions { justify-content: center; margin-top: 18px; }

/* score buttons in the grid / KR panel */
.score-btn {
  min-width: 52px; padding: 6px 8px; border-radius: 8px;
  border: 1.5px solid var(--green); background: #fff; font: inherit;
  font-weight: 700; color: var(--green-deep); cursor: pointer;
}
.score-btn:hover { background: var(--green-tint); }
.score-btn-empty {
  border-style: dashed; border-color: #bfcabe; color: #a8b3a7;
  font-weight: 600; font-size: 11px;
}
.score-btn-due {
  border-color: var(--amber); color: #916708; background: #fdf0ce;
  font-weight: 700; font-size: 11px;
}
.score-btn-due:hover { background: #fbe6ab; }
.score-btn:disabled { opacity: .55; cursor: default; }
.ka-top {
  display: block; background: #fdf7e3; border: 1px solid #f0e4bb;
  border-radius: 10px; padding: 11px 13px; font-size: 13px; margin-bottom: 12px;
  cursor: pointer; user-select: none;
}
.ka-top input { width: auto; margin-right: 6px; }
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px; background: var(--grad);
}
.modal-head .pill { background: rgba(255, 255, 255, .95); }
.modal-head .pill-top { background: #ffe9a8; }
.close-btn { background: none; border: none; font-size: 26px; cursor: pointer; color: #fff; line-height: 1; }
.modal-body { padding: 20px 22px; }
.modal-body > h3 { margin-bottom: 6px; color: var(--green-deep); font-size: 16px; }
.target { color: var(--muted); white-space: pre-line; font-size: 13px; margin: 0 0 16px; }
.modal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 720px) { .modal-cols { grid-template-columns: 1fr; } }
.mcol { min-width: 0; }
.rag-picker { display: flex; gap: 8px; }
.rag {
  width: 36px; height: 30px; border: 2px solid transparent; border-radius: 8px; cursor: pointer;
}
.rag-green { background: var(--green); }
.rag-amber { background: var(--amber); }
.rag-red { background: var(--red); }
.rag-none { background: #fafcf8; border-color: var(--line) !important; color: var(--muted); }
.rag.sel { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(50, 179, 76, .4); }
.rag:disabled { cursor: default; opacity: .55; }
.updates { max-height: 300px; overflow-y: auto; margin-top: 10px; }
.update-item { border-left: 3px solid var(--green); padding: 7px 11px; margin-bottom: 8px; background: #f6fbf5; border-radius: 0 8px 8px 0; }
.update-meta { font-size: 11px; color: var(--muted); }
.link-btn {
  background: none; border: none; padding: 0; margin-left: 8px; cursor: pointer;
  font-size: 11px; color: var(--green-deep); text-decoration: underline;
}
.link-danger { color: var(--red); }
.admin-row { margin-top: 16px; padding-top: 13px; border-top: 1px dashed var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.sub-panel {
  margin-top: 12px; padding: 14px; background: #f5faf4;
  border: 1px solid var(--line); border-radius: 10px;
}
.hidden-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #eef1ec; font-size: 13px;
}
.editable { min-height: 20px; border-bottom: 1px dashed var(--line); outline: none; }
.editable:focus { background: #fbfdf9; }

/* ------------------------------------------------ quarterly entry in KR panel */
.q-section { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.q-grid { display: grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); gap: 12px; max-width: 430px; }
.q-cell { text-align: center; }
.q-cell label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.q-cell input { text-align: center; font-weight: 700; }
.q-cell .qrag { margin: 0 auto; width: 34px; height: 34px; }

/* ------------------------------------------------ mobile KR cards */
.kr-cards { display: none; }
.kr-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 13px;
  margin-bottom: 10px; cursor: pointer; background: #fff;
}
.kr-card:active { background: var(--green-tint); }
.kr-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.kr-card-top .spacer { flex: 1; }
.kr-card-desc { font-size: 13.5px; font-weight: 500; margin-bottom: 9px; line-height: 1.4; }
.kr-card-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mini-dot {
  width: 13px; height: 13px; border-radius: 4px; display: inline-block;
  border: 1px solid #e0e5de;
}
.mini-dot.mini-cur { outline: 2px solid var(--green-deep); outline-offset: 0; }
.mini-q {
  font-size: 10px; font-weight: 700; color: #fff; border-radius: 999px; padding: 3px 8px;
}
.mini-q.rag-cell-none {
  color: #8b978e; background: transparent; border: 1.5px dashed #c2ccc1;
}
.mini-score {
  font-size: 10.5px; font-weight: 700; border: 1.5px solid var(--green);
  color: var(--green-deep); border-radius: 999px; padding: 2px 8px;
}
.meta-label {
  font-size: 9.5px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-right: 3px;
}
.tap-hint { margin-left: auto; color: var(--green-deep); font-size: 12px; font-weight: 700; }

/* ------------------------------------------------ mobile card lists (dashboard / company) */
.leader-cards, .co-cards { display: none; }
.leader-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border-radius: 12px; padding: 12px 14px;
  margin-bottom: 10px; box-shadow: var(--shadow); color: var(--ink) !important;
}
.leader-card:active { background: var(--green-tint); }
.lc-main { flex: 1; min-width: 0; }
.lc-name { font-weight: 700; }
.lc-role {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lc-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.lc-right { text-align: center; flex-shrink: 0; }
.lc-score { font-size: 19px; font-weight: 800; color: var(--green-deep); }
.co-card {
  background: var(--card); border-radius: 12px; padding: 13px 14px;
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.co-title { font-weight: 700; margin-bottom: 3px; }
.co-detail { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.co-rags { display: flex; gap: 6px; }
.co-rags .mini-q { font-size: 11px; padding: 5px 12px; }
.co-comments {
  font-size: 12px; color: var(--muted); margin-top: 8px;
  border-top: 1px dashed var(--line); padding-top: 7px;
}

/* ------------------------------------------------ Vision 2030 floating countdown */
.v2030 {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 252px;
  background: var(--grad); color: #fff; border-radius: 16px;
  box-shadow: 0 12px 34px rgba(19, 80, 41, .45);
  cursor: grab; touch-action: none; user-select: none;
}
.v2030.dragging { cursor: grabbing; opacity: .92; }
.v2030-full { padding: 13px 16px 14px; }
.v2030-head { display: flex; align-items: center; justify-content: space-between; }
.v2030-title {
  font-size: 11px; font-weight: 800; letter-spacing: .18em;
  color: #ffd54f;
}
.v2030-min {
  background: rgba(255, 255, 255, .18); border: none; color: #fff;
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.v2030-min:hover { background: rgba(255, 255, 255, .3); }
.v2030-nums { display: flex; gap: 6px; margin: 10px 0 10px; }
.v2030-nums div {
  flex: 1; text-align: center; background: rgba(255, 255, 255, .12);
  border-radius: 10px; padding: 7px 2px 5px;
}
.v2030-nums b {
  display: block; font-size: 21px; font-weight: 800; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.v2030-nums span {
  font-size: 8.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255, 255, 255, .75);
}
.v2030-bar {
  height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden;
}
.v2030-bar i {
  display: block; height: 100%; background: #ffd54f; border-radius: 4px;
  transition: width .5s;
}
.v2030-sub { font-size: 9.5px; color: rgba(255, 255, 255, .65); margin-top: 5px; }
.v2030-tick {
  margin-top: 9px; display: flex; align-items: baseline; gap: 6px;
}
.v2030-tick span {
  font-size: 21px; font-weight: 800; color: #ffd54f;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.v2030-tick em {
  font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .75);
}
.v2030-mini { display: none; }
.v2030.mini { width: auto; border-radius: 999px; }
.v2030.mini .v2030-full { display: none; }
.v2030.mini .v2030-mini {
  display: block; background: none; border: none; color: #fff; cursor: pointer;
  padding: 10px 16px; font: inherit; font-size: 13px; font-weight: 700;
}
.v2030.mini .v2030-mini b { color: #ffd54f; font-variant-numeric: tabular-nums; }
.v2030.mini .v2030-mini span { font-size: 10px; color: rgba(255, 255, 255, .8); }
@media (max-width: 760px) {
  .v2030 { right: 10px; bottom: 12px; width: 224px; }
  .v2030-big b { font-size: 30px; }
}

/* ------------------------------------------------ tablet & mobile */
.table-scroll { -webkit-overflow-scrolling: touch; }

@media (max-width: 1024px) {
  .container { padding: 0 16px; }
  .kr-desc { min-width: 250px; max-width: 340px; }
}

@media (max-width: 760px) {
  .topnav {
    padding: 10px 14px 12px; gap: 8px 8px;
    border-radius: 0 0 18px 18px;          /* rounded masthead, app-style */
  }
  .brand-logo { height: 26px; }
  .brand-name { font-size: 15px; }
  .brand-tag { font-size: 7px; }
  /* nav links collapse into a single dropdown on phones */
  .navlinks { display: none; }
  .nav-select {
    display: block; order: 3; flex: 0 0 100%; width: 100%;
    background: rgba(255, 255, 255, .96); color: var(--green-deep);
    font-weight: 700; font-size: 14px; border: none; border-radius: 11px;
    padding: 10px 12px;
  }
  .navuser { margin-left: auto; gap: 8px; font-size: 12px; }
  .navname { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .logout span { display: none; }           /* icon-only logout on phones */
  .logout { padding: 7px 9px; }
  .fy-select { padding: 5px 8px; font-size: 11px; }
  .archive-banner { padding: 8px 14px; }

  .container { margin: 14px auto 28px; padding: 0 10px; }
  h1 { font-size: 20px; }
  .subtitle { margin: 8px 0 16px; font-size: 13px; }
  .hero { padding: 16px 14px 14px; border-radius: 15px; margin-bottom: 14px; }
  .stat-row { gap: 8px; margin-bottom: 12px; }
  .stat { min-width: 0; flex: 1 1 28%; padding: 9px 8px; }
  .stat-n { font-size: 18px; }
  .stat-l { font-size: 9px; }
  .dist-row { gap: 10px 14px; font-size: 12px; }
  .card { padding: 13px 12px; border-radius: 12px; margin-bottom: 12px; }
  .obj-head { flex-wrap: wrap; }
  .kr-desc { min-width: 200px; max-width: 240px; }
  .kr-t { display: none; }                  /* target hidden on phones – full text in the KR panel */
  .leader-head { gap: 10px; }
  .leader-id { gap: 10px; }
  .avatar-lg { width: 46px; height: 46px; font-size: 16px; }
  .leader-score { width: 100%; }
  .people-grid { grid-template-columns: 1fr; }
  .login-wrap { padding: 20px 0; }
  .login-card { width: 100%; }
  .login-body { padding: 20px 20px 24px; }
  /* KR panel becomes a bottom sheet; wide tables become tap cards */
  .kr-cards { display: block; }
  .obj-card .table-scroll { display: none; }
  .leader-cards, .co-cards { display: block; }
  .dash-table, .co-table, .co-list { display: none; }
  .modal { width: 100%; }
  .modal-sm, .modal-xs { width: 100%; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 94vh; overflow-y: auto; }
  .modal-body { padding: 14px 14px 26px; }
  .modal-cols { gap: 16px; }
  .rag { width: 52px; height: 40px; }
  .q-grid { max-width: none; }
  .btn-row, .inline-form { gap: 8px; }
  .toolbar { flex-wrap: wrap; gap: 10px; }

  /* prevent iOS focus-zoom: fields must be >=16px on phones */
  input[type=email], input[type=password], input[type=text], input[type=number],
  textarea, select { font-size: 16px; }
  .score-in { width: 44px; font-size: 14px; }
}


/* ---- alignment + search (v1.8.0) ---- */
.pill-align {
  background: #eaf6ec; color: #1d7a35; border: 1px solid #bfe3c8;
  text-decoration: none; white-space: nowrap;
}
.align-select {
  font-size: 11.5px; padding: 4px 6px; border: 1px solid #d7ddd6; border-radius: 7px;
  max-width: 240px; color: #5b675e; background: #fff;
}
.align-co { display: flex; gap: 14px; align-items: flex-start; }
.align-co-num {
  flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--grad, #1d7a35);
  background: linear-gradient(135deg, #135029, #2ea44a); color: #fff; font-weight: 800;
  font-size: 17px; display: flex; align-items: center; justify-content: center;
}
.align-co-num-grey { background: #aab4ac; }
.align-co-text { flex: 1; min-width: 0; }
.align-co-text h3 { margin: 2px 0 3px; }
.align-co-rags { display: flex; gap: 4px; align-items: center; padding-top: 8px; }
.mini-rag { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.align-list { margin-top: 10px; border-top: 1px solid #eef1ec; }
.align-row {
  display: flex; gap: 12px; align-items: center; padding: 9px 4px;
  border-bottom: 1px solid #eef1ec; text-decoration: none; color: inherit; flex-wrap: wrap;
}
.align-row:hover { background: var(--green-tint, #f2f9f3); }
.align-row b { flex: 0 0 170px; font-size: 13px; }
.align-obj-title { flex: 1; min-width: 200px; font-size: 13px; }
.align-meta { display: flex; gap: 8px; align-items: center; }
.align-empty { margin: 8px 0 0; }
.search-big { display: flex; gap: 8px; margin-top: 12px; max-width: 480px; }
.search-big input {
  flex: 1; padding: 10px 14px; border: none; border-radius: 10px; font-size: 15px;
}
.srch-row {
  display: flex; gap: 12px; align-items: baseline; padding: 8px 4px;
  border-bottom: 1px solid #eef1ec; text-decoration: none; color: inherit; flex-wrap: wrap;
}
.srch-row:hover { background: var(--green-tint, #f2f9f3); }
.srch-row b { flex: 0 0 170px; font-size: 13px; }
.srch-row > span { flex: 1; min-width: 200px; font-size: 13px; }
.srch-row .note-time { flex: 0 0 auto; min-width: 0; }
@media (max-width: 760px) {
  .align-row b, .srch-row b { flex: 0 0 100%; }
}

/* ---- v2030 widget docks in the dashboard hero's reserved space (v2.1.0) ---- */
@media (min-width: 1025px) {
  .hero-dash { padding-right: 310px; min-height: 228px; }
}

/* ---- display-only measure + AI RAG hint (v2.2.0) ---- */
.ai-hint {
  display: inline-block; font-size: 11px; font-weight: bold; border-radius: 9px;
  padding: 2px 9px; margin: 0 0 6px; border: 1px dashed;
}
.ai-hint-green { color: #1d7a35; border-color: #7fce93; background: #f0f7f1; }
.ai-hint-amber { color: #8a6414; border-color: #ecc95e; background: #fdf6e3; }
.ai-hint-red { color: #a03428; border-color: #eb9086; background: #fdefed; }

/* ---- progress strip: display-only, from recorded RAG (v2.2.0) ---- */
.prog-section {
  margin: 10px 0 4px; padding: 12px 14px; border: 1px solid #e6eae4;
  border-radius: 12px; background: #fafcf9;
}
.prog-head { display: flex; align-items: baseline; gap: 10px; }
.prog-head h4 { margin: 0; font-size: 13px; }
.prog-sub { font-size: 11.5px; color: #8b978e; }
.prog-strip { display: flex; gap: 4px; margin-top: 10px; }
.prog-seg { flex: 1; text-align: center; min-width: 0; }
.prog-seg i { display: block; height: 14px; border-radius: 5px; background: #e7ebe6; }
.prog-seg b { display: block; font-size: 9px; color: #8b978e; margin-top: 3px; font-weight: 600; }
.prog-green i { background: var(--green); }
.prog-amber i { background: #f0b429; }
.prog-red i { background: #e05243; }
.prog-none i { background: #dfe4de; }
.prog-nd i {
  background: repeating-linear-gradient(45deg, #e7ebe6 0 4px, #d5dbd4 4px 8px);
}
.prog-future i { background: #f5f7f4; border: 1px dashed #d8ded7; height: 12px; }
.prog-cur i { outline: 2px solid #1d7a35; outline-offset: 1px; }
.prog-cur b { color: #1d7a35; font-weight: 800; }

/* ---- modern app dialogs (v2.3.0) ---- */
.ud-backdrop {
  position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(15, 30, 20, .45); backdrop-filter: blur(3px);
  animation: udFade .15s ease;
}
.ud-card {
  background: #fff; border-radius: 18px; padding: 26px 26px 20px;
  width: 100%; max-width: 400px; text-align: center;
  box-shadow: 0 24px 60px rgba(10, 40, 20, .35);
  animation: udPop .18s ease;
}
@keyframes udFade { from { opacity: 0; } }
@keyframes udPop { from { opacity: 0; transform: scale(.92) translateY(8px); } }
.ud-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
}
.ud-info { background: #eaf6ec; color: #1d7a35; }
.ud-warn { background: #fdf6e3; color: #b07d10; }
.ud-danger { background: #fdefed; color: #d24334; }
.ud-card h3 { margin: 0 0 6px; font-size: 17px; color: #1f2d25; }
.ud-card p {
  margin: 0 0 6px; font-size: 13.5px; line-height: 1.55; color: #5b675e;
  white-space: pre-line; text-align: left;
}
.ud-card p:empty { display: none; }
#udInput {
  width: 100%; margin: 10px 0 4px; padding: 10px 12px; font-size: 14px;
  border: 1.5px solid #d7ddd6; border-radius: 10px;
}
#udInput:focus { border-color: var(--green); outline: none; }
.ud-btns { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.ud-btns .btn { min-width: 110px; }

/* ---- Company Scorecard redesign (v2.4.0) ---- */
.co-list { display: flex; flex-direction: column; gap: 14px; }
.co-row {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border: 1px solid #e6eae4; border-radius: 16px;
  padding: 18px 20px; box-shadow: 0 2px 10px rgba(30, 60, 40, .05);
  transition: box-shadow .15s, transform .15s;
}
.co-row:hover { box-shadow: 0 8px 24px rgba(30, 60, 40, .1); transform: translateY(-1px); }
.co-row .co-num {
  flex: 0 0 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, #135029, #2ea44a); color: #fff;
  font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.co-main { flex: 1 1 34%; min-width: 0; }
.co-obj { font-weight: 700; font-size: 14.5px; color: #1f2d25; }
.co-main .co-detail { font-size: 12px; color: #6b776e; margin-top: 3px; }
.co-target {
  margin-top: 8px; font-size: 12px; color: #1d7a35; background: #f0f7f1;
  border: 1px solid #d9ecdd; border-radius: 9px; padding: 6px 10px; line-height: 1.5;
}
.co-quarters { flex: 0 0 208px; display: flex; gap: 10px; padding-top: 2px; }
.co-q { text-align: center; }
.co-q-chip {
  display: block; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, .05); transition: transform .12s;
}
.co-q-chip:hover { transform: scale(1.12); }
.co-q b {
  display: block; font-size: 10px; color: #8b978e; margin-top: 4px;
  font-weight: 700; letter-spacing: .04em;
}
.co-comment { flex: 0 0 24%; min-width: 190px; }
.co-comment-edit, .co-comment-text {
  font-size: 12.5px; line-height: 1.55; color: #4c574f;
  background: #fafbf9; border: 1px dashed #d8ded7; border-radius: 10px;
  padding: 9px 12px; min-height: 40px;
}
.co-comment-text { border-style: solid; }
.co-comment-edit:focus {
  outline: none; border: 1.5px solid var(--green); background: #fff;
}
.co-comment-edit:empty::before {
  content: attr(data-placeholder); color: #aab4ac;
}
.co-card .co-num {
  display: inline-flex; width: 24px; height: 24px; border-radius: 7px;
  background: linear-gradient(135deg, #135029, #2ea44a); color: #fff;
  font-weight: 800; font-size: 12px; align-items: center; justify-content: center;
  margin-right: 4px; vertical-align: -5px;
}
@media (max-width: 1024px) {
  .co-row { flex-wrap: wrap; }
  .co-comment { flex: 1 1 100%; }
  .co-quarters { flex: 0 0 auto; }
}
@media (max-width: 760px) {
  .co-list { display: none; }
}

/* ---- Summary page redesign (v2.5.0) ---- */
.viz-row { display: flex; gap: 16px; margin-bottom: 16px; }
.viz-card { flex: 1; min-width: 0; }
.viz-card h3 { margin: 0 0 2px; }
.viz-donut-wrap { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.viz-donut {
  width: 128px; height: 128px; border-radius: 50%; flex: 0 0 128px;
  display: flex; align-items: center; justify-content: center;
}
.viz-donut-hole {
  width: 82px; height: 82px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 1px 6px rgba(30, 60, 40, .12) inset;
}
.viz-donut-hole b { font-size: 21px; color: #1f2d25; line-height: 1; }
.viz-donut-hole span { font-size: 9.5px; color: #8b978e; margin-top: 3px; }
.viz-legend { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: #4c574f; }
.viz-legend i {
  display: inline-block; width: 11px; height: 11px; border-radius: 4px;
  margin-right: 7px; vertical-align: -1px;
}
.viz-legend b { margin-left: 4px; }
.viz-bars { display: flex; gap: 7px; align-items: flex-end; margin-top: 16px; height: 128px; }
.viz-col { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.viz-stack {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: 6px; overflow: hidden; background: #f2f4f1;
}
.viz-stack i { display: block; width: 100%; }
.vz-green { background: var(--green); }
.vz-amber { background: #f0b429; }
.vz-red { background: #e05243; }
.vz-none { height: 3px; background: #e2e7e1; }
.viz-col b {
  text-align: center; font-size: 9.5px; color: #8b978e; margin-top: 5px; font-weight: 600;
}
.viz-col b.vz-cur { color: #1d7a35; font-weight: 800; }

.ld-list { display: flex; flex-direction: column; gap: 12px; }
.ld-row {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border: 1px solid #e6eae4; border-radius: 16px;
  padding: 14px 18px; text-decoration: none; color: inherit;
  box-shadow: 0 2px 10px rgba(30, 60, 40, .05);
  transition: box-shadow .15s, transform .15s;
}
.ld-row:hover { box-shadow: 0 8px 24px rgba(30, 60, 40, .1); transform: translateY(-1px); }
.ld-rank {
  flex: 0 0 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #135029, #2ea44a); color: #fff;
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.ld-avatar { flex: 0 0 42px; width: 42px; height: 42px; }
.ld-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ld-main b { font-size: 14px; color: #1f2d25; }
.ld-role { font-size: 12px; color: #6b776e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-meta { font-size: 11px; color: #98a29a; }
.ld-qs { display: flex; gap: 8px; }
.ld-q {
  width: 46px; padding: 5px 0 4px; border-radius: 10px; text-align: center;
  background: #f5f7f4; border: 1px solid #e6eae4;
}
.ld-q b { display: block; font-size: 13px; color: #8b978e; line-height: 1.1; }
.ld-q span { display: block; font-size: 9px; color: #98a29a; font-weight: 700; letter-spacing: .05em; }
.ld-q-on { background: #eaf6ec; border-color: #bfe3c8; }
.ld-q-on b { color: #1d7a35; }
.ld-q-risk { background: #fdf6e3; border-color: #ecc95e; }
.ld-q-risk b { color: #8a6414; }
.ld-q-off { background: #fdefed; border-color: #eb9086; }
.ld-q-off b { color: #a03428; }
.ld-year { text-align: center; width: 56px; }
.ld-year b { display: block; font-size: 19px; color: #1f2d25; line-height: 1.1; }
.ld-year span { font-size: 9px; color: #98a29a; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 1024px) {
  .viz-row { flex-direction: column; }
  .ld-qs { display: none; }
}
@media (max-width: 760px) {
  .ld-list, .viz-row { display: none; }
}

/* ---- Admin Console redesign (v2.6.0) ---- */
.adm-nav {
  display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px;
}
.adm-nav a {
  padding: 7px 16px; border-radius: 20px; background: #fff;
  border: 1px solid #e6eae4; font-size: 12.5px; font-weight: 700;
  color: #1d7a35; text-decoration: none; transition: all .15s;
}
.adm-nav a:hover { background: #eaf6ec; border-color: #bfe3c8; }
.adm-card-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-card-head h3 { margin: 0; }
.adm-role-tag {
  display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #1d7a35; background: #eaf6ec;
  border-radius: 6px; padding: 1px 7px; margin-top: 3px;
}
.adm-lock { margin-right: 6px; }

/* toggle switch */
.sw { position: relative; display: inline-block; width: 38px; height: 22px; vertical-align: middle; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw i {
  position: absolute; inset: 0; background: #d7ddd6; border-radius: 22px;
  transition: background .18s; cursor: pointer;
}
.sw i::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: transform .18s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.sw input:checked + i { background: var(--green); }
.sw input:checked + i::after { transform: translateX(16px); }
.sw input:disabled + i { opacity: .45; cursor: not-allowed; }

.adm-add { border-top: 1px solid #eef1ec; margin-top: 16px; padding-top: 14px; }
.adm-add h4 { margin: 0 0 10px; font-size: 13.5px; color: #1d7a35; }

.adm-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.adm-action {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid #eef1ec; border-radius: 12px; padding: 11px 14px;
  background: #fafbf9;
}
.adm-action-ico {
  flex: 0 0 38px; height: 38px; border-radius: 10px; background: #eaf6ec;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.adm-action-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.adm-action-main b { font-size: 13.5px; color: #1f2d25; }
.adm-action-main span { font-size: 11.5px; color: #6b776e; }
.adm-action select { font-size: 12.5px; padding: 6px 8px; border: 1px solid #d7ddd6; border-radius: 8px; }

.adm-exp-row { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-top: 6px; }
.adm-exp-q { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; color: #6b776e; justify-content: center; }
.adm-exp-q select { padding: 8px 10px; border: 1px solid #d7ddd6; border-radius: 9px; font-size: 13px; }
.adm-exp {
  flex: 1; min-width: 190px; display: flex; flex-direction: column; gap: 3px;
  border: 1px solid #e6eae4; border-radius: 14px; padding: 14px 16px;
  text-decoration: none; color: inherit; background: #fff;
  transition: box-shadow .15s, transform .15s;
}
.adm-exp:hover { box-shadow: 0 8px 24px rgba(30, 60, 40, .1); transform: translateY(-1px); }
.adm-exp b { font-size: 13.5px; color: #1f2d25; }
.adm-exp-ico {
  align-self: flex-start; font-size: 10px; font-weight: 800; letter-spacing: .05em;
  color: #fff; border-radius: 7px; padding: 4px 9px; margin-bottom: 5px;
}
.exp-pdf { background: #d24334; }
.exp-ppt { background: #cd5f27; }
.exp-xls { background: #1d7a35; }

.adm-two { display: flex; gap: 16px; align-items: flex-start; }
.adm-two .card { flex: 1; min-width: 0; }
@media (max-width: 1024px) {
  .adm-two { flex-direction: column; }
  .adm-two .card { width: 100%; }
}

/* ---- My Scorecard redesign (v2.7.0) ---- */
.obj-num { flex: 0 0 34px; height: 34px; font-size: 15px; border-radius: 10px; }
.obj-head h2 { flex: 1; min-width: 200px; }
.mstrip-h { min-width: 216px; }
.mstrip-hsub { display: block; font-size: 9px; font-weight: 500; opacity: .75; }
.mstrip { display: flex; gap: 3px; }
.mseg {
  position: relative; width: 15px; height: 20px; border-radius: 5px;
  cursor: pointer; transition: transform .1s;
}
.mseg:hover { transform: scale(1.2); }
.mseg.rag-cell-none { background: #e9ede8; }
.mseg.rag-cell-green { background: var(--green); }
.mseg.rag-cell-amber { background: var(--amber); }
.mseg.rag-cell-red { background: var(--red); }
.mseg-cur { outline: 2px solid #1d7a35; outline-offset: 1px; }
.mseg-future { background: #f5f7f4 !important; border: 1px dashed #dde3dc; }
.mseg-dot {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}
.mstrip-card { margin: 8px 0 2px; }
.mstrip-card .mseg { flex: 1; height: 9px; cursor: default; }
.mstrip-card .mseg:hover { transform: none; }
.mstrip-card .mseg-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; }

/* footer year switcher (moved out of the masthead) */
.fy-foot-wrap { color: #98a29a; font-size: 11.5px; }
.fy-foot {
  border: none; background: transparent; color: #6b776e; font-size: 11.5px;
  cursor: pointer; padding: 1px 2px;
}
.fy-foot:focus { outline: 1px solid #cfd5d0; border-radius: 4px; }
.star-slot { display: inline-block; width: 15px; }

/* ---- tighter Team table + editable name (v2.8.0) ---- */
.adm-tbl td { padding: 7px 8px; vertical-align: middle; }
.adm-tbl .inline-in { font-size: 12px; padding: 5px 8px; }
.adm-member { display: flex; gap: 9px; align-items: center; border-bottom: none; }
.adm-stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adm-name-row { display: flex; gap: 6px; align-items: center; }
.adm-name { font-weight: 700; min-width: 150px; }
.adm-stack .inline-in { width: 185px; }
.adm-act { white-space: nowrap; }
.adm-act .btn-sm { padding: 5px 9px; font-size: 11.5px; }
.adm-lock { margin-right: 4px; font-size: 10.5px; }

/* ---- missed check-ins appear closed (v2.8.0) ---- */
.mseg.mseg-missed { background: #dfe4de; }
.mseg.mseg-missed::after {
  content: '✕'; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 700; color: #98a29a;
}
.prog-missed i { background: #dfe4de; position: relative; }
.prog-missed i::after {
  content: '✕'; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #98a29a;
}
.mstrip-card .mseg { height: 13px; }
.mstrip-card .mseg.mseg-missed::after { font-size: 8px; }
.adm-field { display: flex; align-items: center; gap: 7px; }
.adm-field > span {
  flex: 0 0 38px; font-size: 9px; font-weight: 800; letter-spacing: .05em;
  color: #98a29a; text-transform: uppercase; text-align: right;
}
.adm-field .inline-in { width: 160px; }
.adm-field > span { flex-basis: 80px; }
/* roomier admin inputs – long designations were clipping */
.adm-member { min-width: 330px; }
.adm-stack { flex: 1; }
.adm-field { flex: 1; }
.adm-field .inline-in { flex: 1; width: auto; min-width: 210px; }
.adm-name { width: 100%; min-width: 170px; }
/* reclaim space so Role / Reporting-to get real room */
.adm-tbl td { padding: 6px 6px; }
.adm-tbl .inline-in { font-size: 11.5px; }
.adm-field .inline-in { min-width: 240px; }
.adm-field > span { flex-basis: 68px; }
.adm-lock { margin-right: 3px; font-size: 10px; }
.adm-act .btn-sm { padding: 4px 7px; font-size: 11px; }
.role-select { font-size: 11.5px; }
.adm-sws { white-space: nowrap; }
.adm-sws .sw { margin-right: 7px; }

/* ---- editable Company Scorecard (v2.9.0) ---- */
.co-tools { margin-left: 8px; }
.co-tools .btn-sm { padding: 3px 9px; font-size: 11px; }
.co-edit {
  margin-top: 10px; padding: 12px; border: 1px dashed #cde7d3;
  border-radius: 10px; background: #fafcf9;
  display: flex; flex-direction: column; gap: 8px;
}
.co-edit label { font-size: 11px; font-weight: 700; color: #5b675e; display: flex; flex-direction: column; gap: 4px; }
.co-edit input, .co-edit textarea {
  font-size: 13px; padding: 7px 10px; border: 1px solid #d7ddd6; border-radius: 8px;
  font-weight: 400; font-family: inherit;
}
.co-edit .btn-sm { align-self: flex-start; }
.obj-title-edit { cursor: pointer; }
.obj-title-edit:hover { color: #1d7a35; text-decoration: underline dotted 1.5px; text-underline-offset: 4px; }
#udTextarea {
  width: 100%; margin: 10px 0 4px; padding: 10px 12px; font-size: 13.5px;
  border: 1.5px solid #d7ddd6; border-radius: 10px; font-family: inherit;
  line-height: 1.5; resize: vertical; min-height: 110px;
}
#udTextarea:focus { border-color: var(--green); outline: none; }
.ud-card.ud-wide { max-width: 560px; }
.co-edit-btns { display: flex; gap: 8px; }

/* ---- check-in count chip on the Summary rows (v2.9.4) ---- */
.ld-checkins {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  background: var(--green); color: #fff; border-radius: 14px;
  padding: 5px 12px; font-size: 12px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(50, 179, 76, .35);
}
.ld-checkins small { font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }
.ld-checkins-none { background: #cfd5d0; box-shadow: none; }
.lc-meta .ld-checkins { padding: 2px 9px; font-size: 11px; margin-left: 6px; }

/* ---- World Cup 2030 theme for the Vision 2030 countdown (v2.10.0) ---- */
.wc-ball { display: inline-block; animation: wcNudge 12s ease-in-out infinite; }
@keyframes wcNudge {
  0%, 90%, 100% { transform: translateY(0) rotate(0); }
  92% { transform: translateY(-4px) rotate(80deg); }
  94% { transform: translateY(0) rotate(160deg); }
  96% { transform: translateY(-2px) rotate(260deg); }
  98% { transform: translateY(0) rotate(360deg); }
}
.wc-cup { display: inline-block; animation: wcShine 12s ease-in-out infinite; }
@keyframes wcShine {
  0%, 88%, 100% { filter: brightness(1); transform: scale(1); }
  93% { filter: brightness(1.6) drop-shadow(0 0 6px rgba(255, 213, 79, .9)); transform: scale(1.18); }
}
#wcIntro { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.wc-intro-ball {
  position: absolute; left: -70px; top: 62vh; font-size: 44px; line-height: 1;
  animation: wcFly 1.85s cubic-bezier(.32, .12, .35, 1) forwards;
  filter: drop-shadow(0 6px 10px rgba(10, 40, 20, .35));
}
@keyframes wcFly {
  0% { transform: translate(0, 0) rotate(0) scale(1.15); }
  55% { transform: translate(calc((var(--wc-x, 60vw) + 70px) * .6), calc((var(--wc-y, 20vh) - 62vh) * .35 - 26vh)) rotate(660deg) scale(1.05); }
  100% { transform: translate(calc(var(--wc-x, 60vw) + 70px), calc(var(--wc-y, 20vh) - 62vh)) rotate(1180deg) scale(.62); }
}
.v2030.wc-land { animation: wcLand .9s ease; }
@keyframes wcLand {
  0% { transform: scale(1); }
  25% { transform: scale(1.12) rotate(-2deg); }
  55% { transform: scale(.95) rotate(1deg); }
  80% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ---- the countdown card as a goalpost (v2.10.1) ---- */
.v2030:not(.mini) {
  border: 6px solid #fff;          /* the posts and crossbar */
  border-bottom: none;             /* open at the goal line */
  border-radius: 8px 8px 16px 16px;
  box-shadow: 0 12px 34px rgba(19, 80, 41, .5), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.v2030:not(.mini) .v2030-full { position: relative; }
.v2030:not(.mini) .v2030-full::before {
  /* the net */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .085) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(65deg, rgba(255, 255, 255, .085) 0 1px, transparent 1px 12px);
  border-radius: 2px 2px 12px 12px;
}
.v2030:not(.mini) .v2030-full::after {
  /* the goal line */
  content: ''; position: absolute; left: -6px; right: -6px; bottom: -3px; height: 3px;
  background: rgba(255, 255, 255, .9); border-radius: 2px;
  box-shadow: 0 1px 5px rgba(255, 255, 255, .5);
}

/* ---- real goal frame: zebra-striped posts and crossbar (v2.11.0) ---- */
.v2030:not(.mini) {
  border-width: 7px 7px 0 7px; border-style: solid;
  border-image: repeating-linear-gradient(45deg, #ffffff 0 9px, #26302a 9px 18px) 7;
  border-radius: 0 0 14px 14px;   /* square top corners like a real frame */
  cursor: pointer;
}

/* ---- league table framing (v2.13.0) ---- */
.ld-rank-1 { background: linear-gradient(135deg, #b8860b, #ffd54f); box-shadow: 0 2px 8px rgba(255, 213, 79, .5); }
.ld-rank-2 { background: linear-gradient(135deg, #7d858c, #c9d1d9); }
.ld-rank-3 { background: linear-gradient(135deg, #8c5a2b, #d29a5b); }
.ld-form { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.ld-form em {
  font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #98a29a; margin-right: 2px;
}
.ld-form i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.lf-green { background: var(--green); }
.lf-amber { background: #f0b429; }
.lf-red { background: #e05243; }
.lf-miss { background: #e2e7e1; position: relative; }
.lf-miss::after {
  content: '✕'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 7px; color: #98a29a; font-weight: 700;
}
.gb-badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  background: linear-gradient(135deg, #b8860b, #ffd54f); color: #3a2c00;
  border-radius: 14px; padding: 6px 14px; font-size: 12.5px; font-weight: 800;
  box-shadow: 0 2px 10px rgba(255, 213, 79, .45);
}
.potm-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 213, 79, .55);
  color: #fff; border-radius: 20px; padding: 7px 16px; font-size: 13px;
}
.potm-chip b { color: #ffd54f; }
.pill-done {
  background: #e8f6ec; color: #1d7a35; border: 1px solid #bfe5c8;
  font-weight: 800; white-space: nowrap;
}
.adm-locked-note {
  background: #f4f8f3; border: 1px solid #d5e5d8; border-radius: 8px;
  padding: 8px 12px; font-size: 12.5px; color: #4a5a50; margin-bottom: 12px;
}
.adm-totp {
  margin-top: 14px; padding: 14px 16px; border: 1px dashed #cbd6c9;
  border-radius: 10px; background: #fbfdfa;
}
.adm-totp h4 { margin: 0 0 4px; font-size: 14px; }
.totp-on { color: #1d7a35; }
.totp-off { color: #b0762a; }
.totp-qr img { width: 168px; height: 168px; image-rendering: pixelated;
  border: 6px solid #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(10,40,20,.12); }
.totp-key {
  font-family: ui-monospace, Menlo, monospace; background: #eef3ec;
  padding: 2px 7px; border-radius: 6px; letter-spacing: 1px; font-size: 12.5px;
}
.ud-check {
  display: flex; gap: 8px; align-items: flex-start; text-align: left;
  margin: 12px 0 0; font-size: 13px; color: #444; cursor: pointer;
}
.ud-check input { margin-top: 2px; accent-color: #32b34c; }
.gb-chip {
  margin-left: 8px;
  background: linear-gradient(135deg, rgba(184, 134, 11, .5), rgba(255, 213, 79, .28));
  border-color: rgba(255, 213, 79, .85);
}

/* ---- Vision 2030 lighthouse: ribbon + roadmap page (v2.14.0) ---- */
.brand-ribbon {
  display: block; text-align: center; text-decoration: none;
  background: #0f3d20; color: #ffd54f;
  font-size: 10.5px; font-weight: 800; letter-spacing: .22em;
  padding: 6px 10px; transition: background .15s, letter-spacing .2s;
}
.brand-ribbon:hover { background: #135029; letter-spacing: .26em; }
.vis-ribbon-hero {
  display: inline-block; margin: 4px 0 14px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 213, 79, .6); color: #ffd54f; border-radius: 20px;
  padding: 8px 20px; font-size: 13px; font-weight: 800; letter-spacing: .18em;
}
.vis-grid { display: flex; gap: 16px; margin-bottom: 16px; }
.vis-card { flex: 1; min-width: 0; }
.vis-item {
  display: flex; flex-direction: column; gap: 2px; position: relative;
  padding: 11px 90px 11px 0; border-bottom: 1px solid #eef1ec;
}
.vis-item:last-child { border-bottom: none; }
.vis-item b { font-size: 13.5px; color: #1f2d25; }
.vis-item span { font-size: 12px; color: #6b776e; }
.vis-item em {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-style: normal; font-weight: 800; font-size: 13px; color: #1d7a35;
  background: #eaf6ec; border: 1px solid #bfe3c8; border-radius: 10px; padding: 4px 10px;
}
.vis-art-card { padding: 10px; }
.vis-art { display: block; width: 100%; max-width: 1100px; margin: 0 auto; border-radius: 10px; }
.vis-org-card { margin-top: 16px; }
.vis-org-head { margin-bottom: 12px; }
.vis-org-head h3 { margin: 0 0 2px; }
.vis-org-link { display: block; }
.vis-org-img {
  display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid #e6eae4; background: #fff;
  box-shadow: 0 8px 24px rgba(10, 40, 20, .12);
}
.vis-org-hint { display: block; margin-top: 8px; text-align: center; }
/* Level-2 KPIs */
.kpi-add { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.kpi-add input[type=text] { flex: 1 1 200px; }
.kpi-scores { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 4px; }
.kpi-q { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.kpi-q label { font-size: 11px; color: #8b978e; font-weight: 700; }
.kpi-log { margin-top: 14px; border-top: 1px solid #eef1ec; padding-top: 12px; }
.kpi-log h4 { margin: 0 0 8px; font-size: 13px; }
.kpi-log .note-item { padding: 7px 0; border-bottom: 1px solid #f0f3ee; }
.kpi-log .note-time { font-size: 11px; color: #8b978e; }
.kpi-log .note-body { font-size: 13px; margin-top: 2px; }
.l2-card { margin-top: 16px; }
.l2-card .viz-donut-wrap { flex-wrap: wrap; }          /* stats drop below when tight */
.viz-legend span { white-space: nowrap; }              /* never break "On Track 0" */
.l2-stats { margin-left: auto; }
@media (max-width: 1024px) {
  .l2-stats { margin-left: 0; }
}
@media (max-width: 760px) {
  .l2-card .viz-donut-wrap { gap: 16px; }
  .l2-stats { width: 100%; margin-bottom: 0; }
  .l2-stats .stat { flex: 1; min-width: 84px; padding: 10px 8px; }
  /* My Team + member cards: let header chips/buttons wrap on small screens */
  .obj-head { flex-wrap: wrap; }
  .obj-head h2 { flex: 1 1 100%; }
  /* team tables scroll sideways inside their card (existing convention) */
  .kpi-add input[type=text], .kpi-add .align-select { flex: 1 1 100%; }
}
.vis-hero-org {
  display: flex; width: fit-content; align-items: center; gap: 12px; margin-top: 16px;
  padding: 8px 14px 8px 8px; border-radius: 14px; text-decoration: none;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  max-width: 100%; transition: background .15s ease;
}
.vis-hero-org:hover { background: rgba(255, 255, 255, .24); }
.vis-hero-org-thumb {
  flex: 0 0 92px; width: 92px; min-width: 92px; height: 52px;
  object-fit: cover; object-position: top center;
  border-radius: 8px; background: #fff; border: 1px solid rgba(255, 255, 255, .5);
}
.vis-hero-org-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.vis-hero-org-txt b { color: #fff; font-size: 14px; }
.vis-hero-org-txt span { color: rgba(255, 255, 255, .85); font-size: 11.5px; }
.vis-hero-org-go { color: #ffd54f; font-size: 18px; font-weight: 800; margin-left: 4px; }
@media (max-width: 600px) { .vis-hero-org { width: 100%; } }
@media (max-width: 1024px) { .vis-grid { flex-direction: column; } }
.form-legend { margin: 0 0 10px 4px; }
.form-legend .lf-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  vertical-align: -1px; margin: 0 1px 0 4px; position: relative;
}
.form-legend .lf-miss::after { font-size: 6.5px; }
/* W/D/L form chips – football style */
.lf-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 4px; margin: 0 1px;
  font-size: 9.5px; font-weight: 800; color: #fff; font-style: normal;
}
.lf-chip.lf-green { background: var(--green); }
.lf-chip.lf-amber { background: #f0b429; }
.lf-chip.lf-red { background: #e05243; }
.lf-chip.lf-miss { background: #d5dbd6; color: #7b857d; }
.lf-chip.lf-miss::after { content: none; }
.form-legend .lf-chip { vertical-align: -3px; margin: 0 2px 0 4px; }

/* ---- goal tally: a ball per green check-in (v2.15.0) ---- */
.ld-goals { display: inline-flex; align-items: center; gap: 1px; margin-top: 4px; }
.ld-goals i { font-style: normal; font-size: 12.5px; line-height: 1; }
.ld-goals b { font-size: 11px; color: #1d7a35; margin-left: 4px; }
.lc-goals { font-size: 11px; font-weight: 700; color: #1d7a35; margin-left: 6px; white-space: nowrap; }

/* ---- Admin tabs (v2.16.0) ---- */
.adm-nav a.active { background: var(--green); color: #fff; border-color: var(--green); }
.adm-panel[hidden] { display: none; }

/* ---- Team tab: member picker + editor (v2.17.0) ---- */
.tm-pick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tm-pick label { font-size: 12px; font-weight: 800; color: #5b675e; text-transform: uppercase; letter-spacing: .05em; }
.tm-pick select {
  min-width: 280px; padding: 10px 14px; font-size: 14.5px; font-weight: 600;
  border: 1.5px solid #cde7d3; border-radius: 10px; background: #fafcf9; color: #1f2d25;
}
.tm-editor { border: 1px solid #e6eae4; border-radius: 14px; padding: 18px 20px; background: #fafbf9; }
.tm-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tm-head-main { display: flex; flex-direction: column; gap: 2px; }
.tm-head-main b { font-size: 16px; }
.tm-head-main .adm-role-tag { align-self: flex-start; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 16px; }
.tm-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 800;
  color: #5b675e; text-transform: uppercase; letter-spacing: .04em; }
.tm-grid label .muted { font-weight: 500; text-transform: none; letter-spacing: 0; }
.tm-grid .inline-in, .tm-grid .role-select { width: 100%; font-size: 13.5px; padding: 8px 10px; }
.tm-switches { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px; margin: 16px 0; }
.tm-sw { display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid #eef1ec; border-radius: 10px; padding: 10px 12px; }
.tm-sw > div { display: flex; flex-direction: column; }
.tm-sw b { font-size: 12.5px; }
.tm-sw span { font-size: 11px; color: #6b776e; }
.tm-locks { justify-content: space-between; }
.tm-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Vision 2030 podcast (v2.18.0) ---- */
.vis-podcast { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.vis-pod-ico {
  flex: 0 0 54px; height: 54px; border-radius: 14px; font-size: 26px;
  background: linear-gradient(135deg, #135029, #2ea44a);
  display: flex; align-items: center; justify-content: center;
}
.vis-pod-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vis-pod-main b { font-size: 15px; color: #1f2d25; }
.vis-pod-main audio { width: 100%; max-width: 560px; margin-top: 6px; }
.vis-video-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.vis-video {
  width: 100%; max-width: 760px; margin-top: 8px; border-radius: 12px;
  background: #0f2417; box-shadow: 0 8px 24px rgba(10, 40, 20, .18);
}
@media (max-width: 600px) {
  .vis-podcast, .vis-video-card { flex-direction: column; align-items: flex-start; }
}

/* ---- thumbs-up on saved check-in (v2.19.3) ---- */
.thumb-pop {
  position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%);
  z-index: 500; background: #fff; border-radius: 18px; padding: 22px 34px;
  box-shadow: 0 20px 50px rgba(10, 40, 20, .3); text-align: center;
  animation: thumbPop 1.8s ease forwards; pointer-events: none;
}
.thumb-pop i { display: block; font-style: normal; font-size: 46px; line-height: 1.1; }
.thumb-pop b { display: block; margin-top: 6px; font-size: 13.5px; color: #1d7a35; }
@keyframes thumbPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  20% { transform: translate(-50%, -50%) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -56%) scale(.96); }
}
.kr-hide-btn { display: block; margin-top: 5px; padding: 2px 8px; font-size: 10.5px; }

/* ---- whitelist chips (v2.23.0) ---- */
.vw-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.vw-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eaf6ec; border: 1px solid #bfe3c8; color: #1d7a35;
  border-radius: 14px; padding: 5px 6px 5px 12px; font-size: 12.5px; font-weight: 600;
}
.vw-chip button {
  border: none; background: #d7ede0; color: #1d7a35; width: 18px; height: 18px;
  border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1;
}
.vw-chip button:hover { background: #e05243; color: #fff; }
.vw-add { display: flex; gap: 8px; align-items: center; }
.vw-add input {
  width: 280px; padding: 8px 11px; border: 1px solid #d7ddd6;
  border-radius: 9px; font-size: 13px;
}
.vw-people { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.vw-person {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid #eef1ec; border-radius: 10px; padding: 10px 14px; background: #fafbf9;
}
.vw-person-act { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.vw-person-id { display: flex; flex-direction: column; gap: 3px; }
.vw-person-id .inline-in { max-width: 240px; font-weight: 700; }

/* ---------------------------------------------------------------- The Square */

.sq-coming h3, .sq-awards h3, .sq-people h3 { margin-top: 0; }
.sq-events { display: flex; flex-wrap: wrap; gap: 10px; }
.sq-event {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 14px 8px 8px; background: #fafbf9;
  min-width: 220px; flex: 1 1 220px; max-width: 340px;
}
.sq-ev-date {
  display: flex; flex-direction: column; align-items: center;
  background: var(--green-tint); color: var(--green-deep);
  border-radius: 8px; padding: 4px 10px; line-height: 1.1; min-width: 46px;
}
.sq-ev-date b { font-size: 1.15rem; }
.sq-ev-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; }
.sq-ev-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sq-ev-holiday .sq-ev-date { background: #fdf0ce; color: #916708; }
.sq-ev-friday .sq-ev-date { background: #e8f1fb; color: #2c5f9e; }

.sq-post > h3 {
  margin: 6px 0 4px; font-size: 17px; text-transform: none;
  letter-spacing: normal; color: var(--ink);
}
.sq-post-head { display: flex; align-items: center; gap: 8px; }
.sq-post-head .spacer { flex: 1; }
.sq-post-type {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--green-deep);
}
.sq-post-body { white-space: pre-line; margin: 4px 0 0; }
.sq-post-img {
  display: block; max-width: 100%; border-radius: 10px; margin-top: 10px;
  border: 1px solid var(--line);
}
.sq-pinned { border: 1px solid #e8d9a0; background: #fffdf4; }
.sq-post-project {
  border: 1px solid #bfe3c6;
  background: linear-gradient(180deg, #f2fbf2 0%, #ffffff 70%);
}
.sq-post-project .sq-post-type { color: #1d7a35; }
.sq-yt {
  position: relative; padding-top: 56.25%; margin-top: 10px;
  border-radius: 10px; overflow: hidden; background: #000;
}
.sq-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.sq-winner-row { display: flex; flex-wrap: wrap; gap: 14px; }
.sq-winner {
  flex: 1 1 190px; max-width: 240px; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 12px;
  background: #fffdf6; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.sq-w-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid #e8d9a0; margin-bottom: 4px;
}
.sq-w-initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--green-tint); color: var(--green-deep);
  font-weight: 700; font-size: 1.3rem;
}
.sq-w-cat { font-size: .78rem; font-weight: 700; color: #916708; }
.sq-w-cite { font-size: .85rem; color: var(--muted); font-style: italic; margin: 4px 0 0; }
.sq-auto-awards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.sq-people-cols { display: flex; flex-wrap: wrap; gap: 28px; }
.sq-people-cols > div { flex: 1 1 240px; }
.sq-people-cols h4 { margin: 0 0 8px; }
.sq-person { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.sq-person > div { display: flex; flex-direction: column; line-height: 1.25; }

.sq-ref-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin: 16px 0;
}
.sq-ref {
  display: flex; flex-direction: column; gap: 4px; margin: 0;
  padding: 14px 16px; text-decoration: none; color: inherit;
}
.sq-ref b { color: var(--green-deep); }
.sq-ref span { font-size: .85rem; color: var(--muted); }
a.sq-ref:hover { box-shadow: 0 4px 14px rgba(30, 60, 40, .14); }
.sq-ref-safety { border: 1px solid #f0b9b1; background: #fff8f6; }
.sq-ref-safety b { color: #a33a28; }

.sq-suggest-teaser {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.sq-suggest-teaser .btn-sm { margin-left: auto; }

.sq-m-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.sq-m-row:last-child { border-bottom: none; }
.sq-m-row .spacer { flex: 1; }

@media (max-width: 640px) {
  .sq-suggest-teaser .btn-sm { margin-left: 0; }
  .sq-winner { max-width: none; }
}

.sq-form-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px;
}
.sq-form-row input[type="url"], .sq-form-row input[type="text"] { flex: 1 1 240px; }
.sq-form-row .btn { flex: 0 0 auto; margin-left: auto; }
.sq-opt { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sq-opt input[type="file"] { max-width: 220px; }

/* potm-chip was designed for the dark hero – recolour it on the white card
   and let the text wrap naturally on phones */
.sq-auto-awards .potm-chip {
  color: var(--ink); background: #fdf6e0; border: 1px solid #e8d9a0;
  display: inline-block; line-height: 1.6;
}
.sq-auto-awards .potm-chip b { color: #916708; }

/* safety page */
.sq-contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.sq-contact {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  text-decoration: none; color: inherit; background: #fafbf9;
}
a.sq-contact:hover { border-color: #f0b9b1; background: #fff8f6; }
.sq-contact-phone { color: #a33a28; font-weight: 700; font-size: .9rem; margin-top: 3px; }
.sq-instructions { margin: 0; padding-left: 20px; }
.sq-instructions li { margin: 6px 0; }
.sq-map { display: block; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; }

/* SOS footer button – every signed-in page */
.sos-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 7px;
  background: #fff; color: #a33a28; border: 1px solid #f0b9b1;
  border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px;
  text-decoration: none; box-shadow: 0 2px 10px rgba(160, 50, 30, .18);
}
.sos-fab:hover { background: #fff8f6; }
@media (max-width: 640px) { .sos-fab { padding: 8px 11px; } .sos-fab span { display: none; } }

/* suggestion box */
.sq-sugg { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sq-sugg:last-child { border-bottom: none; }
.sq-sugg .sq-m-row { border-bottom: none; padding-bottom: 2px; }
.sq-sugg-text { margin: 4px 0 2px; white-space: pre-line; }
.sq-st-received { background: #eef0ed; color: #68766d; }
.sq-st-review { background: #fdf0ce; color: #916708; }
.sq-st-implemented { background: #eaf7ec; color: #1d7a35; }
.sq-st-not-now { background: #fbe4e0; color: #a33a28; }
.sq-anon-card { border: 1px solid #e8d9a0; }

/* Great Place To Work badge */
.gptw-hero { position: absolute; top: 18px; right: 22px; display: block; }
.gptw-hero img { height: 92px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.gptw-foot { display: inline-block; vertical-align: middle; margin-right: 10px; }
.gptw-foot img { height: 40px; width: auto; display: block; }
.gptw-login {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 12px; text-align: left; line-height: 1.45;
}
.gptw-login img { height: 56px; width: auto; }
@media (max-width: 640px) {
  .gptw-hero img { height: 64px; }
}

/* new feed card flavours */
.sq-referral {
  margin: 10px 0 0; padding: 9px 12px; border-radius: 8px;
  background: #fdf6e0; border: 1px solid #e8d9a0; font-size: .88rem;
}
.sq-post-hiring { border: 1px solid #cfe0f5; background: linear-gradient(180deg, #f3f8fe 0%, #ffffff 65%); }
.sq-post-hiring .sq-post-type { color: #2c5f9e; }
.sq-post-customer { border: 1px solid #bfe3c6; background: linear-gradient(180deg, #f2fbf2 0%, #ffffff 65%); }
.sq-post-doctorsand { border: 1px solid #e5d9c8; background: linear-gradient(180deg, #faf6ef 0%, #ffffff 65%); }
.sq-post-doctorsand .sq-post-type { color: #8a6d3b; }
.sq-ref-csr b { color: #1d7a35; }

/* ---------------------------------------------------------------- The Square v2 hero */
.sq-hero2 {
  position: relative; overflow: hidden; text-align: center;
  padding: 44px 28px 36px;
  /* slightly darker light-end than --grad so 13px white labels pass AA */
  background: linear-gradient(120deg, #135029 0%, #1d7a35 45%, #237f39 100%);
}
.sq-hero2 .sq-date {
  margin: 0 0 6px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .95); text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  position: relative; z-index: 2;
}
.sq-hero2 .sq-welcome {
  margin: 0; font-size: clamp(30px, 5vw, 44px); letter-spacing: -.5px;
  position: relative; z-index: 2;
}
.sq-hero2 .sq-tagline { margin: 8px 0 0; position: relative; z-index: 2; }
.sq-hero2 .gptw-hero { z-index: 3; }

/* decorative geometry – brand greens + a touch of gold, HUB-style */
.sq-deco { position: absolute; pointer-events: none; z-index: 1; }
.sq-deco-1 {
  width: 220px; height: 220px; left: -60px; top: -60px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
}
.sq-deco-2 {
  width: 130px; height: 130px; left: 90px; bottom: -55px;
  border-radius: 50% 50% 0 50%; background: rgba(255, 213, 79, .18);
}
.sq-deco-3 {
  width: 260px; height: 260px; right: -80px; bottom: -140px; border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, .10); background: transparent;
}
.sq-deco-4 {
  width: 72px; height: 72px; right: 190px; top: 26px;
  border-radius: 0 50% 50% 50%; background: rgba(255, 255, 255, .12);
}
.sq-deco-5 {
  width: 44px; height: 44px; left: 26%; top: 30px; border-radius: 50%;
  background: rgba(46, 164, 74, .55); box-shadow: 0 0 0 10px rgba(255, 255, 255, .06);
}

/* quick-launch circles */
.sq-apps {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 26px 30px; margin-top: 28px;
}
.sq-app {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 13px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: transform .15s;
}
.sq-app:hover { transform: translateY(-4px); }
.sq-app-ico {
  display: flex; align-items: center; justify-content: center;
  width: 66px; height: 66px; border-radius: 50%; font-size: 27px;
  background: rgba(255, 255, 255, .13); border: 2px solid rgba(255, 255, 255, .35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: background .15s, border-color .15s;
}
.sq-app:hover .sq-app-ico { background: rgba(255, 255, 255, .24); border-color: #ffd54f; }
.sq-app-sos { background: rgba(224, 82, 67, .8); border-color: rgba(255, 255, 255, .55); }
.sq-app:hover .sq-app-sos { background: rgba(224, 82, 67, .95); }

/* section tabs (not sticky: html/body overflow-x:hidden kills sticky app-wide,
   and "fixing" that would suddenly pin the top nav on every page) */
.sq-tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 18px 0 14px; padding: 6px 4px 2px; background: var(--bg);
  border-bottom: 2px solid var(--line);
}
.sq-tabs::-webkit-scrollbar { display: none; }
.sq-tab {
  appearance: none; background: none; border: none; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14.5px; color: #5c6b61;
  padding: 10px 16px 12px; white-space: nowrap; position: relative;
  border-radius: 8px 8px 0 0; transition: color .12s, background .12s;
}
.sq-tab:hover { color: var(--green-deep); background: #e9efe7; }
.sq-tab.active { color: var(--green-deep); }
.sq-tab.active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -2px;
  height: 3px; border-radius: 2px; background: var(--green);
}
.sq-panel { animation: sq-fade .18s ease-out; }
@keyframes sq-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .sq-hero2 { padding: 30px 16px 26px; }
  .sq-hero2 .gptw-hero { position: absolute; top: 12px; right: 12px; }
  .sq-hero2 .gptw-hero img { height: 54px; }
  .sq-apps { gap: 18px 20px; margin-top: 22px; }
  .sq-app-ico { width: 56px; height: 56px; font-size: 23px; }
  .sq-app { font-size: 12px; }
  .sq-deco-3, .sq-deco-4 { display: none; }
}

/* centre the gold h1 accent under the centred greeting */
.sq-hero2 .sq-welcome::after { margin-left: auto; margin-right: auto; }

/* screen-reader-only headings for the tab panels */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* keep long greetings clear of the absolute GPTW badge */
@media (max-width: 900px) {
  .sq-hero2 .sq-welcome { padding: 0 78px; }
}

/* Vision 2030 cap on the brand ribbon */
.brand-ribbon {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  position: relative;
}
.ribbon-cap {
  height: 46px; width: auto; display: block; margin: -9px 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
  transition: transform .15s;
}
.brand-ribbon:hover .ribbon-cap { transform: rotate(-6deg) scale(1.06); }
@media (max-width: 640px) { .ribbon-cap { height: 36px; margin: -7px 0; } }

/* full-bleed post pictures */
.sq-post-img {
  margin: 12px -22px 0; width: calc(100% + 44px); max-width: none;
  border: none; border-radius: 0;
}
.sq-post-img:last-child { margin-bottom: -18px; border-radius: 0 0 var(--radius) var(--radius); }

/* placeholder ("slot") states – dashed, quietly asking to be filled */
.sq-slot { border-style: dashed; border-color: #cdd6cd; background: #fbfcfa; }
.sq-slot-ico {
  background: #eef2ec; color: var(--muted); font-size: 21px;
  display: flex; align-items: center; justify-content: center; min-height: 46px;
}
.sq-nudge { margin: 12px 0 0; font-size: 13px; }
.sq-nudge a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.sq-nudge a:hover { text-decoration: underline; }
.sq-winner-slot { border-style: dashed; border-color: #e2d9bd; background: #fffef9; }
.sq-w-art { border: none; border-radius: 0; object-fit: contain; }
.sq-slot-person .sq-slot-avatar {
  background: #eef2ec; color: var(--muted); border: 1.5px dashed #cdd6cd;
}
.sq-ref-slot { border: 1.5px dashed #cdd6cd; background: #fbfcfa; box-shadow: none; }
.sq-ref-slot b { color: var(--muted); }
.sq-ref-slot a { color: var(--green-deep); }

/* compact hero variant for the Manage console */
.sq-hero-mg { padding: 30px 24px 26px; }
.sq-hero-mg .sq-welcome { font-size: clamp(24px, 4vw, 32px); }
.sq-hero-link { color: #ffd54f; }

/* per-unit map placeholder on the safety page */
.sq-map-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 44px 20px; text-align: center;
  border: 1.5px dashed #cdd6cd; border-radius: 10px; background: #fbfcfa;
}
.sq-map-slot > span[aria-hidden] { font-size: 34px; }
.sq-map-slot b { color: var(--muted); }
