/* Leadership Continuity Check: ACT Executive Coaching look. */
:root {
  --navy: #06133A;
  --plum: #963871;
  --plum-deep: #5E1F45;
  --teal: #125F86;
  --tan: #D4C0A9;
  --warm: #E3DDD6;
  --paper: #FAF7F3;
  --white: #FFFFFF;
  --muted: #5E5A55;
  --line: #8C857D;
  --serif: 'GFS Didot', Didot, 'Bodoni 72', Georgia, serif;
  --sans: Montserrat, 'Proxima Nova', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--plum); }

.topbar { background: var(--navy); padding: 14px 24px; }
.topbar-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar img { height: 52px; width: auto; display: block; }
.topbar .eyebrow { color: var(--tan); }
.topbar .time { color: var(--warm); font-size: 13px; }

.progress { background: var(--white); border-bottom: 1px solid var(--warm); padding: 0 24px; }
.progress-inner { max-width: 1120px; margin: 0 auto; padding: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pstep { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 6px 0; min-height: 36px; }
.pstep .dot { width: 24px; height: 24px; border-radius: 12px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; background: var(--white); }
.pstep.done { color: var(--navy); }
.pstep.done .dot { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pstep.current { color: var(--navy); font-weight: 600; }
.pstep.current .dot { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pstep.jump span:last-child { text-decoration: underline; text-underline-offset: 3px; }

main { max-width: 1120px; margin: 0 auto; padding: 36px 24px 56px; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--plum); }
h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.15; margin: 0; }
h1.hero { font-size: 52px; line-height: 1.08; }
.lede { font-size: 17px; margin: 0; max-width: 720px; }
.help { color: var(--muted); font-size: 15px; margin: 0; max-width: 760px; }
.head { display: flex; flex-direction: column; gap: 10px; max-width: 800px; }

.cards { display: flex; flex-wrap: wrap; gap: 12px; }
.card { flex: 1 1 200px; background: var(--white); border: 1px solid var(--warm); border-radius: 6px; padding: 16px; }
.card b { display: block; font-size: 14px; margin-bottom: 4px; }
.card span { font-size: 13px; color: var(--muted); }

.btn { font-size: 15px; font-weight: 600; padding: 0 26px; min-height: 50px; border-radius: 4px; border: 1px solid var(--plum); background: var(--plum); color: var(--white); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.dark { background: var(--navy); border-color: var(--navy); }
.linkbtn { background: none; border: 0; padding: 0; min-height: 44px; font-weight: 600; text-decoration: underline; color: var(--navy); font-size: 14px; }

.fields { display: flex; flex-wrap: wrap; gap: 16px; }
label.field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
input[type=text], input[type=email], textarea { font-size: 16px; font-weight: 400; padding: 12px 14px; min-height: 48px; width: 100%; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.qlabel { font-size: 15px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; font-weight: 500; padding: 10px 16px; min-height: 46px; border-radius: 4px; border: 1px solid var(--line); background: var(--white); color: var(--navy); }
.chip.small { font-size: 13px; padding: 8px 12px; min-height: 44px; }
.chip.round { border-radius: 23px; }
.chip[aria-pressed=true] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip:disabled { opacity: .38; cursor: not-allowed; }
.qnote { font-size: 14px; color: var(--muted); align-self: center; padding: 10px 0; }
.q .ql .n.tie { background: transparent; color: var(--plum); font-size: 18px; }

.panel { background: var(--white); border: 1px solid var(--warm); border-radius: 6px; }
.teamrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--warm); }
.teamrow input.title { flex: 2 1 260px; font-weight: 600; }
.teamrow input.holder { flex: 1 1 180px; }
.iconbtn { min-width: 48px; min-height: 48px; border: 1px solid var(--warm); border-radius: 4px; background: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 13px; }
.iconbtn[disabled] { opacity: 0.3; }
.iconbtn svg, .linkbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.addrow { padding: 8px 14px; }
.addrow button { color: var(--plum); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

.order { max-width: 800px; display: flex; flex-direction: column; gap: 8px; }
.orow { display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; background: var(--white); border: 1px solid var(--warm); border-radius: 6px; }
.orow .rank, .seat .rank { font-family: var(--serif); font-size: 24px; color: var(--plum); width: 28px; text-align: center; }
.orow .t { flex: 1; min-width: 0; font-weight: 600; }
.orow .t small, .seat-head small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.orow .grip { width: 32px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; color: var(--line); }
.orow .grip svg { width: 18px; height: 18px; fill: currentColor; }
.orow { cursor: grab; user-select: none; -webkit-user-select: none; }
.orow.dragging { position: relative; z-index: 5; box-shadow: 0 10px 24px rgba(6,19,58,0.18); border-color: var(--plum); cursor: grabbing; transition: none; }
.you-row { background: #F6EDF2; gap: 12px; }
.youtag { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); background: var(--plum); border-radius: 3px; padding: 3px 8px; }
.order .end { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.orow.moved { animation: flash 600ms ease; }
@keyframes flash { from { background: #F6EDF2; } to { background: var(--white); } }

.seats { display: flex; flex-direction: column; gap: 14px; }
.seat { background: var(--white); border: 1px solid var(--warm); border-radius: 6px; }
.seat.you { border-color: var(--plum); }
.seat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--warm); }
.seat-head .name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 16px; }
.answered { font-size: 12px; font-weight: 600; color: var(--teal); }
.q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 20px; border-top: 1px solid #EFEAE4; }
.q:first-of-type { border-top: 0; }
.q .ql { flex: 0 0 230px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; line-height: 1.35; }
.q .ql .n { width: 22px; height: 22px; border-radius: 11px; background: var(--plum); color: var(--white); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.q .ql em { font-style: normal; font-weight: 400; color: var(--muted); }
.q .chips { flex: 1 1 420px; gap: 6px; }

.prep { display: flex; flex-direction: column; gap: 24px; max-width: 860px; }
.prep > div { display: flex; flex-direction: column; gap: 10px; }

.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--warm); padding-top: 24px; }
.nav .right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.modetag { display: inline-block; margin-left: 8px; padding: 2px 7px; border: 1px solid var(--tan); border-radius: 3px; letter-spacing: 0.12em; font-size: 10px; color: var(--tan); }
.btn.waiting { opacity: 0.55; }
.seat.missing { border-color: var(--plum); box-shadow: 0 0 0 2px #F6EDF2; }
main input:placeholder-shown:focus { outline: 2px solid var(--plum); }
.blockmsg { font-size: 13px; color: var(--muted); max-width: 420px; text-align: right; }

.footer { padding: 18px 24px 28px; border-top: 1px solid var(--warm); }
.footer div { max-width: 1120px; margin: 0 auto; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Done + report screen */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.status { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.status .pip { width: 9px; height: 9px; border-radius: 5px; background: var(--tan); }
.status.ok .pip { background: var(--teal); }
.status.wait .pip { background: var(--plum); }

/* The report: letter-width page */
.report { width: 100%; max-width: 816px; margin: 0 auto; background: var(--paper); border: 1px solid var(--warm); font-size: 13px; line-height: 19px; }
.rp-head { background: var(--navy); color: var(--paper); padding: 28px 44px 30px; display: flex; flex-direction: column; gap: 16px; }
.rp-head .top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rp-head img { height: 48px; width: auto; }
.rp-head .for { font-size: 11px; color: var(--tan); text-align: right; line-height: 16px; }
.rp-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 44px; }
.rp-head .sub { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tan); }
.rp-head p { margin: 0; font-size: 14px; line-height: 21px; color: var(--warm); max-width: 640px; }
.rp-sec { padding: 26px 44px 0; display: flex; flex-direction: column; gap: 12px; }
.rp-bottom { background: var(--white); border: 1.5px solid var(--plum); border-radius: 6px; padding: 18px 20px; }
.rp-bottom .cat { font-family: var(--serif); font-size: 26px; line-height: 32px; color: var(--plum); margin: 0 0 6px; }
.rp-bottom p { margin: 0; font-size: 14px; line-height: 21px; }
.rp-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rp-three div { border-top: 2px solid var(--navy); padding-top: 10px; }
.rp-three div:nth-child(2) { border-color: var(--plum); }
.rp-three div:nth-child(3) { border-color: var(--teal); }
.rp-three b { display: block; margin-bottom: 4px; }
.rp-three span { color: var(--muted); }
.rp-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); }
.rp-key b { color: var(--navy); margin-right: 2px; }
.rp-key .sw { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--warm); }
.rp-key .sw.high { background: #E7CADB; } .rp-key .sw.moderate { background: #F6EDF2; } .rp-key .sw.low { background: #FFFFFF; }
.rp-key .dot { display: inline-block; width: 10px; height: 10px; border-radius: 6px; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--navy); background: #fff; }
.rp-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--warm); font-size: 12px; }
.rp-table th, .rp-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--warm); }
.rp-table th { font-size: 11px; color: var(--muted); font-weight: 600; }
.rp-table td.b { font-weight: 600; color: var(--muted); } .rp-table td.b.high { color: var(--plum-deep); } .rp-table td.b.moderate { color: var(--plum); }
.rp-chart svg { width: 100%; height: auto; background: var(--white); border: 1px solid var(--warm); border-radius: 6px; display: block; }
.rp-note { color: var(--muted); font-size: 12px; margin: 0; }
.rp-list { display: flex; flex-direction: column; gap: 8px; }
.rp-item { background: var(--white); border: 1px solid var(--warm); border-radius: 6px; padding: 12px 16px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 120px; gap: 12px; align-items: baseline; break-inside: avoid; }
.rp-item .num { font-family: var(--serif); font-size: 22px; color: var(--plum); }
.rp-item p { margin: 2px 0 0; color: var(--muted); }
.rp-item .act { color: var(--navy); font-weight: 500; margin-top: 4px; }
.rp-item .band { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; text-align: right; color: var(--plum); }
.rp-item .band.high { color: var(--plum-deep); }
.rp-item .tag { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); background: var(--plum-deep); border-radius: 3px; padding: 1px 6px; }
.rp-cta { margin: 26px 44px 0; background: var(--navy); color: var(--paper); border-radius: 6px; padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; break-inside: avoid; }
.rp-cta h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 32px; }
.rp-cta p { margin: 0; color: var(--warm); }
.rp-cta a { align-self: flex-start; background: var(--plum); color: var(--white); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 4px; }
.rp-foot { padding: 22px 44px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted); font-size: 10px; line-height: 14px; }
.rp-foot img { height: 40px; width: auto; }

@media (max-width: 700px) {
  h1.hero { font-size: 38px; }
  h1 { font-size: 29px; }
  .q .ql { flex-basis: 100%; }
  .rp-head, .rp-sec, .rp-foot { padding-left: 20px; padding-right: 20px; }
  .rp-cta { margin-left: 20px; margin-right: 20px; }
  .rp-three { grid-template-columns: 1fr; }
  .rp-item { grid-template-columns: 24px minmax(0, 1fr); }
  .rp-item .band { grid-column: 2; text-align: left; }
}

/* Save as PDF: page 1 = bottom line + a large chart; page 2 on = priorities, answers, next step. */
@media print {
  .method-note { display: none !important; }
  @page { size: letter; margin: 0.5in 0; }
  @page :first { margin: 0; }
  html, body, .report { background: #FFFFFF; }
  .topbar, .progress, .footer, main > :not(.report) { display: none !important; }
  main { padding: 0; max-width: none; display: block; }
  .report { border: 0; max-width: none; width: 8.5in; }
  .rp-head { padding: 0.35in 0.45in 0.22in; gap: 10px; }
  .rp-head h2 { font-size: 32px; line-height: 36px; }
  .rp-sec { padding: 14px 0.45in 0; }
  .rp-chart { break-inside: avoid; gap: 8px; }
  .rp-chart svg { width: 7.4in; margin: 0 auto; }
  .rp-priorities { break-before: page; }
  .rp-item, .rp-table tr, .rp-cta { break-inside: avoid; }
  .rp-item { padding: 8px 14px; }
  .rp-list { gap: 6px; }
  .rp-table th, .rp-table td { padding: 5px 10px; }
  .rp-cta { margin-top: 16px; padding: 18px 24px; gap: 8px; }
  .rp-foot { padding-top: 14px; padding-bottom: 0; }
  .rp-foot { break-before: avoid; break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
