/* ISD design system — derived from isd-brand-styling (ISD Brandbook 2025).
   Primary: Dark Gray text, Orange accent, White bg. Onest type. */
:root {
  --isd-dark: #1B2028;
  --isd-orange: #F15C22;
  --isd-orange-600: #d94d18;
  --isd-white: #FFFFFF;
  --isd-light-gray: #E2E8F0;
  --isd-blue: #2B3499;
  --isd-vibrant-orange: #F77F55;
  --isd-pale-blue: #D7E3FA;
  --isd-medium-gray: #595959;
  --isd-caption: #667085;
  --isd-border: #E4E7EC;
  --isd-footer: #98A2B3;
  --bg: #F7F8FA;

  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-md: 0 4px 16px rgba(16,24,40,.08);
  --shadow-lg: 0 24px 48px -12px rgba(16,24,40,.25);
  --maxw: 980px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--isd-dark);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-weight: 700; color: var(--isd-dark); line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.9rem; margin: 0 0 .25rem; }
h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
h3 { font-size: 1.05rem; }
p { margin: .4rem 0; }

a { color: var(--isd-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--isd-light-gray); padding: .1rem .35rem; border-radius: 6px; font-size: .85em; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem 1.5rem;
  background: var(--isd-white);
  border-bottom: 1px solid var(--isd-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand-lockup { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-lockup img { height: 32px; width: auto; display: block; }
.brand { font-weight: 800; font-size: 1.05rem; color: var(--isd-dark); letter-spacing: -.02em; }
.brand-accent { color: var(--isd-orange); }

.nav { display: flex; gap: .25rem; margin-left: .5rem; }
.nav a {
  color: var(--isd-medium-gray);
  font-weight: 600;
  font-size: .92rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  text-decoration: none;
}
.nav a:hover { background: var(--isd-light-gray); color: var(--isd-dark); text-decoration: none; }

.user-chip { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--isd-orange); color: #fff; font-weight: 700;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.1; }
.user-name { font-weight: 600; font-size: .9rem; }
.role-pill {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--isd-medium-gray); font-weight: 700;
}
.role-pill.role-admin { color: var(--isd-orange); }
.role-pill.role-delivery_lead { color: var(--isd-blue); }
.logout {
  text-decoration: none; font-size: .8rem; color: var(--isd-caption);
  padding: .3rem .65rem; border-radius: var(--radius-sm);
  border: 1px solid var(--isd-border); background: #fff; line-height: 1.4;
}
.logout:hover { background: var(--isd-light-gray); text-decoration: none; border-color: var(--isd-medium-gray); }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.accent-rule { height: 4px; width: 84px; background: var(--isd-orange); border: 0; border-radius: 4px; margin: 1rem 0 1.5rem; }
.accent-rule.center { margin-left: auto; margin-right: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }

/* ---------- cards ---------- */
.card {
  background: var(--isd-white);
  border: 1px solid var(--isd-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.stat { display: flex; flex-direction: column; gap: .25rem; }
.stat-label { color: var(--isd-caption); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat-value { font-size: 1.3rem; font-weight: 700; text-transform: capitalize; }

.muted { color: var(--isd-caption); }
.status-ok { color: var(--isd-orange); font-weight: 700; }

/* ---------- profile "About" hero ---------- */
.profile-hero { padding: 0; overflow: hidden; }
.profile-hero-band {
  display: flex; align-items: center; gap: 1.15rem;
  padding: 1.6rem 1.6rem;
  background: linear-gradient(135deg, var(--isd-orange) 0%, var(--isd-vibrant-orange) 100%);
  color: #fff;
}
.profile-hero-band .avatar-lg {
  width: 76px; height: 76px; font-size: 1.7rem; flex-shrink: 0;
  background: rgba(255,255,255,.16); color: #fff;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.profile-hero-meta { min-width: 0; }
.profile-hero-band h2 { margin: 0; color: #fff; font-size: 1.45rem; letter-spacing: -.01em; }
.profile-hero-band .profile-sub { color: rgba(255,255,255,.9); font-size: .95rem; margin-top: .2rem; }
.profile-pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.profile-pill {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: .2rem .62rem; border-radius: 999px;
  background: rgba(255,255,255,.22); color: #fff;
}
.profile-status-badge {
  margin-left: auto; align-self: flex-start; font-size: .72rem; font-weight: 700;
  padding: .3rem .72rem; border-radius: 999px; white-space: nowrap;
}
.profile-status-badge.is-active { background: #ffffff; color: var(--isd-orange-600); }
.profile-status-badge.is-inactive { background: rgba(255,255,255,.25); color: #fff; }
.profile-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .85rem; padding: 1.4rem 1.6rem;
}
.profile-field {
  display: flex; flex-direction: column; gap: .25rem;
  background: #fff; border: 1px solid var(--isd-border);
  border-radius: 12px; padding: .75rem .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.profile-field:hover { border-color: var(--isd-vibrant-orange); box-shadow: var(--shadow-sm); }
.profile-field .label {
  font-size: .67rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--isd-caption); font-weight: 700;
}
.profile-field .value { font-size: .98rem; color: var(--isd-dark); font-weight: 600; word-break: break-word; }
.bullets { margin: .5rem 0 0; padding-left: 1.1rem; }
.bullets li { margin: .3rem 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: inherit; font-weight: 600; font-size: .92rem;
  padding: .6rem 1.1rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--isd-orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--isd-orange-600); }
.btn-block { width: 100%; }
.btn-small { padding: .38rem .7rem; font-size: .82rem; border-radius: 8px; }
.btn-danger { background: #fff; color: #b42318; border-color: var(--isd-border); }
.btn-danger:hover { background: #FEF3F2; border-color: #FDA29B; }
.btn:not(.btn-accent):not(.btn-danger) { background: #fff; color: var(--isd-dark); border-color: var(--isd-border); }
.btn:not(.btn-accent):not(.btn-danger):hover { background: var(--isd-light-gray); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: .9rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .88rem; color: var(--isd-dark); }
.form input[type=text], .form input[type=email], .form input[type=password],
.form input[type=number], .form textarea, .form select {
  font-family: inherit; font-size: .95rem; font-weight: 400;
  padding: .6rem .75rem; border: 1px solid var(--isd-border); border-radius: 10px;
  background: #fff; color: var(--isd-dark); width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--isd-orange);
  box-shadow: 0 0 0 3px rgba(241,92,34,.15);
}
.form .checkbox { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
.form .checkbox input { width: auto; }
.field-group { display: flex; flex-direction: column; gap: .9rem; padding: .9rem; border: 1px dashed var(--isd-border); border-radius: 10px; background: #FAFBFC; }
.field-row { display: flex; gap: .9rem; }
.field-row label { flex: 1; }
.form-actions { display: flex; gap: .6rem; align-items: center; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--isd-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--isd-border); }
.table thead th { background: #FAFBFC; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--isd-caption); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFBFC; }

/* ---------- tags ---------- */
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--isd-light-gray); color: var(--isd-medium-gray); text-transform: uppercase; letter-spacing: .03em; }
.tag-accent { background: rgba(241,92,34,.12); color: var(--isd-orange); }
.tag-muted { background: #F2F4F7; color: var(--isd-caption); }

/* ---------- question list ---------- */
.question-list { list-style: none; counter-reset: q; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.question-list li.question { counter-increment: q; position: relative; padding-left: 3.2rem; }
.question-list li.question::before {
  content: counter(q); position: absolute; left: 1.1rem; top: 1.2rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--isd-dark); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.question-head { display: flex; gap: .4rem; margin-bottom: .35rem; }
.question-text { font-weight: 600; margin: .1rem 0; }
.options { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--isd-medium-gray); }
.question-actions { display: flex; gap: .5rem; align-items: center; margin-top: .75rem; }
.question-actions form { margin: 0; }

/* ---------- footer ---------- */
.site-footer { color: var(--isd-footer); text-align: center; font-size: .8rem; padding: 2rem 1rem; }

/* ---------- login ---------- */
.login-body {
  min-height: 100%;
  margin: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(241,92,34,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(43,52,153,.08), transparent 55%),
    var(--bg);
  padding: 2rem 1rem;
}
.login-shell { width: 100%; max-width: 420px; }
.login-card {
  background: #fff; border: 1px solid var(--isd-border); border-radius: 20px;
  padding: 2.25rem 2rem; box-shadow: var(--shadow-lg); text-align: center;
}
.login-logo { height: 46px; width: auto; margin-bottom: 1rem; }
.login-card h1 { font-size: 1.6rem; }
.login-form { text-align: left; margin-top: .5rem; }
.login-form label { font-size: .85rem; }
.btn-block { margin-top: .4rem; }
.alert { background: #FEF3F2; color: #b42318; border: 1px solid #FDA29B; padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; margin-bottom: .9rem; text-align: left; }
.demo { margin-top: 1.25rem; text-align: left; border-top: 1px solid var(--isd-border); padding-top: 1rem; }
.demo summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--isd-medium-gray); }
.demo-list { list-style: none; padding: 0; margin: .6rem 0 0; font-size: .82rem; color: var(--isd-medium-gray); }
.demo-list li { padding: .15rem 0; }
.login-foot { text-align: center; color: var(--isd-footer); font-size: .78rem; margin-top: 1.25rem; }

/* ---------- eNPS: lists, badges, callouts ---------- */
.callout { border-left: 4px solid var(--isd-orange); }
.invite-list { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.invite-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .25rem; border-bottom: 1px solid var(--isd-border); }
.invite-list li:last-child { border-bottom: 0; }

.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; background: var(--isd-light-gray); color: var(--isd-medium-gray); }
.badge-pending { background: #F2F4F7; color: #667085; }
.badge-sent { background: #EFF4FF; color: #2B3499; }
.badge-opened { background: #FFF4ED; color: var(--isd-orange); }
.badge-completed, .badge-closed { background: #ECFDF3; color: #067647; }
.badge-open, .badge-draft { background: #FFF4ED; color: var(--isd-orange); }
.badge-mitigating { background: #EFF4FF; color: #2B3499; }

.risk-score { display: inline-block; min-width: 1.6rem; text-align: center; font-weight: 700; padding: .1rem .45rem; border-radius: 6px; }
.risk-low { background: #ECFDF3; color: #067647; }
.risk-med { background: #FFF4ED; color: var(--isd-orange); }
.risk-high { background: #FEF3F2; color: #b42318; }
.nowrap { white-space: nowrap; }
.nowrap form { display: inline; }

.metric-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.m-status { font-weight: 700; padding: .15rem .55rem; border-radius: 6px; }
.m-good { background: #ECFDF3; color: #067647; }
.m-warning { background: #FFF4ED; color: var(--isd-orange); }
.m-bad { background: #FEF3F2; color: #b42318; }

/* ---------- risks: inline (Jira-like) editing ---------- */
.risks-table td { vertical-align: top; }
.risk-display { cursor: pointer; }
.risk-display:hover { background: #FAFBFC; }
.risk-actions form { margin: 0; display: inline; }
.risk-edit { background: #FFFDF8; }
.risk-edit input, .risk-edit select, .risk-edit textarea {
  width: 100%; font-family: inherit; font-size: .9rem; padding: .4rem .5rem;
  border: 1px solid var(--isd-border); border-radius: 8px; background: #fff;
}
.risk-edit textarea { resize: vertical; }
.risk-edit input:focus, .risk-edit select:focus, .risk-edit textarea:focus {
  outline: none; border-color: var(--isd-orange); box-shadow: 0 0 0 2px rgba(241,92,34,.15);
}
/* expanded inline editor: full-width vertical form inside the row */
.risk-edit-form { display: flex; flex-direction: column; gap: .7rem; padding: .5rem .25rem; }
.risk-edit-form > label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .85rem; }
.risk-edit-form .field-row { gap: .9rem; }
.risk-edit-form .field-row label { flex: 1; }

.risk-insert td { padding: 0; height: 10px; border: 0; position: relative; }
.insert-plus {
  position: absolute; left: 50%; top: -9px; transform: translateX(-50%);
  width: 24px; height: 18px; border-radius: 9px; border: 1px solid var(--isd-border);
  background: #fff; color: var(--isd-orange); font-weight: 700; font-size: .9rem;
  line-height: 1; cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0; z-index: 2;
}
.risk-insert:hover .insert-plus { opacity: 1; }

/* ---------- modal dialog ---------- */
dialog.modal { position: relative; border: 0; border-radius: 16px; padding: 1.75rem; box-shadow: var(--shadow-lg); max-width: 560px; width: 92%; }
dialog.modal::backdrop { background: rgba(16,24,40,.45); }
dialog.modal h2 { margin-top: 0; padding-right: 2rem; }
dialog.modal-wide { max-width: 660px; }
.modal-close-form { position: absolute; top: .6rem; right: .6rem; margin: 0; }
.modal-close { border: 0; background: transparent; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--isd-medium-gray, #667085); padding: .2rem .4rem; border-radius: 8px; }
.modal-close:hover { background: var(--bg-subtle, #f5f5f5); color: var(--text, #101828); }

/* project NPS chart */
.nps-chart { display: flex; align-items: flex-end; gap: 6px; height: 84px; margin-top: .5rem; }
.nps-bar-wrap { flex: 1; display: flex; align-items: flex-end; height: 100%; max-width: 48px; }
.nps-bar { width: 100%; background: linear-gradient(var(--isd-vibrant-orange), var(--isd-orange)); border-radius: 5px 5px 0 0; min-height: 4px; }

/* project links / bookmarks */
.link-list { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; }
.link-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem .25rem; border-bottom: 1px solid var(--isd-border); }
.link-list li:last-child { border-bottom: 0; }
.link-list .link-label { font-weight: 600; flex: 1; }
.link-kind { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: .15rem .45rem; border-radius: 6px; background: var(--isd-light-gray); color: var(--isd-medium-gray); min-width: 76px; text-align: center; }
.link-kind.kind-jira { background: #EFF4FF; color: #2B3499; }
.link-kind.kind-confluence { background: #EFF4FF; color: #175CD3; }
.link-kind.kind-sharepoint { background: #ECFDF3; color: #067647; }
.link-actions { display: flex; gap: .25rem; align-items: center; }
.link-actions form { margin: 0; display: inline; }

/* project information read list */
.info-list { margin: 0 0 1rem; }
.info-list dt { font-weight: 700; font-size: .82rem; color: var(--isd-dark); margin-top: .6rem; }
.info-list dd { margin: .1rem 0 0; color: var(--isd-medium-gray); }

/* ---------- metrics page ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.metric-card { display: flex; flex-direction: column; gap: .55rem; border-left: 4px solid var(--isd-border); }
.metric-card.b-good { border-left-color: #12B76A; }
.metric-card.b-warning { border-left-color: var(--isd-orange); }
.metric-card.b-bad { border-left-color: #F04438; }
.metric-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.metric-card-head h3 { margin: 0; font-size: 1.05rem; }
.metric-value-row { display: flex; align-items: center; gap: .6rem; }
.metric-value { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.metric-value.v-good { color: #067647; }
.metric-value.v-warning { color: var(--isd-orange); }
.metric-value.v-bad { color: #b42318; }
.metric-value.v-none { color: var(--isd-caption); }
/* % / absolute toggle: show absolute by default, swap in pct-mode */
.m-pct { display: none; }
.metric-grid.pct-mode .m-abs { display: none; }
.metric-grid.pct-mode .m-pct { display: inline; }
.metric-toggle { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.metric-toggle .btn.is-active { background: var(--isd-orange); color: #fff; border-color: var(--isd-orange); }

/* metric chips (dashboard) */
.metric-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.metric-chip { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--isd-border); border-radius: 999px; padding: .3rem .75rem; font-size: .85rem; box-shadow: var(--shadow-sm); }
.metric-chip .chip-name { color: var(--isd-caption); }
.metric-chip .chip-val { font-weight: 700; }
.metric-chip .chip-val.v-good { color: #067647; }
.metric-chip .chip-val.v-warning { color: var(--isd-orange); }
.metric-chip .chip-val.v-bad { color: #b42318; }
.metric-chip .chip-val.v-none { color: var(--isd-caption); }
.metric-chip .chip-pct { font-weight: 600; color: var(--isd-caption); margin-left: .3rem; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.spark-bar { flex: 1; min-height: 3px; border-radius: 3px 3px 0 0; background: var(--isd-light-gray); }
.spark.s-good .spark-bar { background: #32D583; }
.spark.s-warning .spark-bar { background: var(--isd-vibrant-orange); }
.spark.s-bad .spark-bar { background: #FDA29B; }
.metric-thresholds { font-size: .8rem; color: var(--isd-caption); margin: 0; }
.metric-record summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--isd-medium-gray); }
.metric-record .form { margin-top: .5rem; }
.metric-delete { margin: 0; }
.metric-delete .btn { padding: .2rem .5rem; }

.alert-info { background: #EFF4FF; border: 1px solid #C7D7FE; color: #2B3499; padding: .7rem .9rem; border-radius: 10px; font-size: .9rem; margin-bottom: 1rem; }
.link-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; word-break: break-all; }

/* ---------- fill (public survey) ---------- */
.fill-body { min-height: 100%; margin: 0; background:
  radial-gradient(1100px 460px at 85% -10%, rgba(241,92,34,.10), transparent 60%), var(--bg); }
.fill-shell { max-width: 680px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.fill-header { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.fill-card { padding: 1.75rem; }
.fill-card.center { text-align: center; }
.big-check { width: 64px; height: 64px; border-radius: 50%; background: #ECFDF3; color: #067647; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 1rem; }

.survey { display: flex; flex-direction: column; gap: 1.5rem; margin-top: .5rem; }
.survey-q { }
.q-text { font-weight: 600; margin: 0 0 .6rem; }
.req { color: var(--isd-orange); }
.survey textarea { width: 100%; font-family: inherit; font-size: .95rem; padding: .6rem .75rem; border: 1px solid var(--isd-border); border-radius: 10px; }
.survey textarea:focus { outline: none; border-color: var(--isd-orange); box-shadow: 0 0 0 3px rgba(241,92,34,.15); }

.scale { display: flex; gap: .5rem; flex-wrap: wrap; }
.scale-opt { cursor: pointer; }
.scale-opt input { position: absolute; opacity: 0; }
.scale-opt span { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--isd-border); border-radius: 12px; font-weight: 700; background: #fff; transition: all .12s; }
.scale-opt:hover span { border-color: var(--isd-orange); }
.scale-opt input:checked + span { background: var(--isd-orange); color: #fff; border-color: var(--isd-orange); box-shadow: var(--shadow-sm); }
.scale-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(241,92,34,.25); }
.scale-labels { display: flex; justify-content: space-between; color: var(--isd-caption); font-size: .8rem; margin-top: .4rem; }

.mc { display: flex; flex-direction: column; gap: .5rem; }
.opt { display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border: 1px solid var(--isd-border); border-radius: 10px; cursor: pointer; }
.opt:hover { border-color: var(--isd-orange); }
.opt input { accent-color: var(--isd-orange); }

/* ---------- quick links ---------- */
.quick-link {
  display: inline-block; text-decoration: none;
  padding: .4rem 1rem; border-radius: 2rem;
  border: 1px solid var(--isd-border); background: #fff;
  font-size: .9rem; font-weight: 600; color: var(--isd-dark);
  transition: background .15s, border-color .15s;
}
.quick-link:hover { background: var(--isd-pale-blue); border-color: var(--isd-blue); color: var(--isd-blue); text-decoration: none; }

/* ---------- reports ---------- */
.report-card { text-decoration: none; color: inherit; display: block; transition: box-shadow .15s, transform .05s; }
.report-card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.report-card h3 { margin: 0 0 .25rem; }
.answer { font-size: 1.05rem; font-weight: 600; }
.user-name { text-decoration: none; color: var(--isd-dark); }
.user-name:hover { color: var(--isd-orange); text-decoration: none; }

.meter { display: inline-block; width: 160px; height: 8px; background: var(--isd-light-gray); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.meter-fill { height: 100%; background: var(--isd-orange); border-radius: 999px; }
.meter-val { margin-left: .5rem; font-weight: 600; font-size: .85rem; }

.trend { display: flex; gap: .75rem; align-items: flex-end; height: 160px; padding-top: .5rem; overflow-x: auto; }
.trend-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 64px; height: 100%; }
.trend-bar .bar { width: 38px; background: linear-gradient(var(--isd-vibrant-orange), var(--isd-orange)); border-radius: 8px 8px 0 0; min-height: 4px; }
.trend-val { font-weight: 700; font-size: .85rem; margin-top: .25rem; }
.trend-label { font-size: .7rem; color: var(--isd-caption); text-align: center; }
