/* HospoLab Assessment app — uses the same tokens as the Assessment landing page (.hlx-page). */
.hla-app { --wine:#8f1732; --wine-dark:#6f1026; --cream:#fbf8f2; --cream-deep:#f3ece5; --sand:#f8f3eb; --ink:#272322; --text:#514a47; --muted:#756a65; --line:rgba(90,67,58,.13); --ok:#2f6b4f;
  font-family: Arial, "Noto Sans Thai", sans-serif; color: var(--ink); max-width: 860px; margin: 0 auto; padding: 24px 16px 56px; line-height: 1.6; overflow-wrap: break-word; box-sizing: border-box; }
.hla-app *, .hla-app *::before, .hla-app *::after { box-sizing: border-box; }
.hla-app h1, .hla-app h2, .hla-app h3 { font-family: Georgia, "Noto Serif Thai", serif; color: var(--ink); line-height: 1.25; margin: 0 0 12px; }
.hla-app h1, .hla-app h2.hlx-h1 { font-size: clamp(26px, 4vw, 36px); }
.hla-app h2 { font-size: clamp(21px, 3vw, 26px); }
.hla-app h3 { font-size: 18px; }
.hla-app p { margin: 0 0 12px; color: var(--text); }
.hlx-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); font-weight: 700; margin-bottom: 8px; }
.hlx-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: 0 18px 40px rgba(69,42,35,.06); margin-bottom: 20px; }
.hla-app .hlx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; border: 1px solid var(--wine); cursor: pointer; background: #fff; color: var(--wine); transition: background-color .2s, color .2s; font-family: inherit; }
.hla-app .hlx-btn:hover, .hla-app .hlx-btn:focus-visible { background: var(--cream-deep); }
.hla-app .hlx-btn-primary { background: var(--wine); color: #fff; }
.hla-app .hlx-btn-primary:hover, .hla-app .hlx-btn-primary:focus-visible { background: var(--wine-dark); color: #fff; }
.hla-app .hlx-btn[disabled] { opacity: .45; cursor: not-allowed; }
.hla-app .hlx-btn:focus-visible, .hlx-opt:focus-within, .hlx-band:focus-visible { outline: 3px solid rgba(143,23,50,.35); outline-offset: 2px; }
.hlx-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hlx-lang-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.hlx-lang-choice button { all: unset; cursor: pointer; border: 2px solid var(--line); border-radius: 18px; padding: 18px; text-align: center; font-size: 19px; font-weight: 700; background: var(--cream); }
.hlx-lang-choice button[aria-pressed="true"] { border-color: var(--wine); background: #fff; color: var(--wine); }
.hlx-lang-choice button:focus-visible { outline: 3px solid rgba(143,23,50,.35); }
.hlx-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--cream-deep); color: var(--wine); }
.hlx-note { font-size: 13px; color: var(--muted); }
.hlx-error { background: #fdecec; color: #8a1c1c; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
/* progress */
.hlx-top { position: sticky; top: 0; z-index: 5; background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; }
body.admin-bar .hlx-top { top: 32px; }
.hlx-top-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.hlx-top-line strong { color: var(--ink); }
.hlx-bar { height: 8px; background: var(--cream-deep); border-radius: 99px; overflow: hidden; margin: 10px 0 8px; }
.hlx-bar > span { display: block; height: 100%; background: var(--wine); border-radius: 99px; transition: width .3s; }
.hlx-parts { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hlx-parts button { all: unset; cursor: pointer; text-align: center; font-size: 11px; color: var(--muted); padding: 4px 2px; border-radius: 8px; border-top: 3px solid var(--cream-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hlx-parts button.done { border-top-color: var(--wine); color: var(--ink); }
.hlx-parts button.cur { background: #fff; color: var(--wine); font-weight: 700; }
.hlx-parts button:focus-visible { outline: 2px solid var(--wine); }
/* question */
.hlx-stem { font-size: 18px; color: var(--ink); margin-bottom: 16px; }
.hlx-prompt { font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.hlx-opts { display: grid; gap: 10px; }
.hlx-opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; background: #fff; }
.hlx-opt input { margin-top: 5px; accent-color: var(--wine); width: 18px; height: 18px; flex: none; }
.hlx-opt.sel { border-color: var(--wine); background: #fdf6f7; }
.hlx-ml { display: grid; gap: 10px; }
/* Most / least: intentional selections, not right/wrong feedback.
   Most  = burgundy brand, filled button, solid border, up arrow.
   Least = warm charcoal, outlined button, dashed border, down arrow. Never red. */
.hla-app { --charcoal:#3a3431; --stone:#6b625e; --stone-bg:#f5f2ef; --stone-btn:#ebe5e0; --wine-tint:#fbf3f5; }
.hlx-ml-row { position: relative; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 16px; background: #fff; transition: border-color .15s, background-color .15s; }
.hlx-ml-row.most { border: 2px solid var(--wine); background: var(--wine-tint); box-shadow: inset 4px 0 0 var(--wine); }
.hlx-ml-row.least { border: 2px dashed var(--stone); background: var(--stone-bg); box-shadow: inset 4px 0 0 var(--stone); }
.hlx-ml-text { margin-bottom: 10px; color: var(--ink); }
.hlx-ml-picks { display: flex; gap: 8px; flex-wrap: wrap; }
.hlx-ml-picks button { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 13.5px; font-weight: 700; line-height: 1.2; padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(90,67,58,.28); background: #fff; color: #6b605b; transition: background-color .15s, color .15s, border-color .15s; }
.hlx-ml-picks button .hlx-ico { font-size: 14px; line-height: 1; }
.hlx-ml-picks button:hover { border-color: var(--stone); color: var(--charcoal); }
.hlx-ml-picks button.m[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.hlx-ml-picks button.l[aria-pressed="true"] { background: var(--stone-btn); border: 2px solid var(--charcoal); color: var(--charcoal); }
.hlx-ml-picks button:focus-visible { outline: 3px solid rgba(143,23,50,.35); outline-offset: 2px; }
@media (hover: none) { .hlx-ml-picks button:hover { border-color: rgba(90,67,58,.28); color: #6b605b; } .hlx-ml-picks button[aria-pressed="true"]:hover { color: inherit; } }
@media (prefers-reduced-motion: reduce) { .hlx-ml-row, .hlx-ml-picks button { transition: none; } }
.hlx-bands { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.hlx-band { all: unset; cursor: pointer; text-align: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 4px; background: #fff; font-weight: 700; color: var(--ink); }
.hlx-band small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.hlx-band[aria-pressed="true"] { border-color: var(--wine); background: #fdf6f7; color: var(--wine); }
.hlx-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.hlx-save { font-size: 13px; color: var(--muted); min-height: 20px; margin-top: 10px; }
.hlx-save.ok { color: var(--ok); }
.hlx-save.bad { color: #8a1c1c; }
/* review */
.hlx-review-part { border-top: 1px solid var(--line); padding: 12px 0; }
.hlx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hlx-chips button { all: unset; cursor: pointer; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #fdecec; color: #8a1c1c; }
/* results */
.hlx-res-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.hlx-score-big { font-family: Georgia, serif; font-size: 52px; color: var(--wine); line-height: 1; text-align: right; }
.hlx-score-big small { display: block; font-family: Arial, "Noto Sans Thai", sans-serif; font-size: 14px; color: var(--ink); font-weight: 700; margin-top: 6px; }
.hlx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hlx-two ul { margin: 0; padding-left: 18px; color: var(--text); }
.hlx-area { border-top: 1px solid var(--line); padding: 18px 0; }
.hlx-area:first-of-type { border-top: 0; }
.hlx-area-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.hlx-area-top strong { font-size: 22px; color: var(--wine); font-family: Georgia, serif; }
.hlx-lv { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--cream-deep); color: var(--ink); }
.hlx-lv.l4 { background: #e7f3ec; color: var(--ok); } .hlx-lv.l3 { background: #eef3f8; color: #2b4f75; } .hlx-lv.l1 { background: var(--stone-bg); color: var(--charcoal); border: 1px solid rgba(90,67,58,.18); }
.hlx-area .hlx-bar { margin: 8px 0 12px; }
.hlx-tip { background: var(--sand); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--text); }
.hlx-tip b { color: var(--wine); }
@media (max-width: 640px) {
  .hlx-ml-picks { flex-wrap: nowrap; }
  .hlx-ml-picks button { display: block; flex: 1 1 0; min-width: 0; text-align: center; min-height: 44px; padding: 9px 10px; font-size: 13px; line-height: 1.3; }
  .hlx-ml-picks button .hlx-ico { margin-right: 4px; }
  .hlx-card { padding: 20px; border-radius: 18px; }
  .hlx-lang-choice, .hlx-two { grid-template-columns: 1fr; }
  .hlx-bands { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .hlx-band { padding: 10px 2px; font-size: 14px; }
  .hlx-parts button { font-size: 0; height: 8px; padding: 0; }
  .hlx-score-big { font-size: 40px; }
  body.admin-bar .hlx-top { top: 46px; }
}
@media (prefers-reduced-motion: reduce) { .hlx-bar > span { transition: none; } }

.hla-app .hlx-code { font: inherit; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; min-width: 0; flex: 1 1 220px; }
.hla-app .hlx-code:focus { outline: 3px solid rgba(143,23,50,.25); border-color: var(--wine); }
/* no-skip: Next stays disabled until the current question is complete */
.hlx-next-wrap { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.hlx-need { font-size: 13px; color: var(--stone); }
.hla-app .hlx-btn-primary[disabled], .hla-app .hlx-btn-primary[disabled]:hover, .hla-app .hlx-btn-primary[aria-disabled="true"], .hla-app .hlx-btn-primary[aria-disabled="true"]:hover, .hla-app .hlx-btn-primary[aria-disabled="true"]:focus-visible { opacity: 1; background: #d9d2cd; border-color: #d9d2cd; color: #5d5450; cursor: not-allowed; }
.hlx-parts button.lock, .hlx-parts button[disabled] { cursor: not-allowed; opacity: .5; }

.hlx-need.flash { animation: hlx-flash .9s ease-out; color: var(--charcoal); font-weight: 700; }
@keyframes hlx-flash { 0% { background: rgba(143,23,50,.14); } 100% { background: transparent; } }
.hlx-need { border-radius: 8px; padding: 2px 6px; }
@media (prefers-reduced-motion: reduce) { .hlx-need.flash { animation: none; } }
/* Floating widgets stay out of the way while a question is on screen (restored on start, review and results). */
html.hlx-quiz-on .trp-floating-switcher, html.hlx-quiz-on #trp-floater-ls { display: none !important; }
/* Tablet */
@media (max-width: 1024px) {
  .hla-app { padding-left: 0; padding-right: 0; }
}
/* Phone */
@media (max-width: 640px) {
  .hla-app { padding: 12px 0 32px; }
  .hla-app .hlx-card { padding: 18px 16px; border-radius: 16px; margin-bottom: 16px; }
  .hlx-stem { font-size: 17px; line-height: 1.6; margin-bottom: 14px; }
  .hlx-opt { padding: 12px 12px; gap: 10px; }
  .hlx-ml-row { padding: 12px 12px 12px 14px; }
  .hlx-ml-text { margin-bottom: 8px; }
  .hlx-top { padding: 8px 12px 9px; border-radius: 14px; margin-bottom: 12px; }
  .hlx-top-line { flex-wrap: nowrap; align-items: baseline; font-size: 12.5px; gap: 8px; }
  .hlx-top-line strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
  .hlx-top-line span { flex: none; white-space: nowrap; color: var(--text); }
  .hlx-top .hlx-bar { margin: 6px 0 5px; height: 6px; }
  .hlx-parts button { height: 5px; border-top-width: 5px; border-radius: 3px; }
  .hlx-nav { gap: 10px; }
  .hlx-nav > .hlx-btn { flex: 1 1 0; padding: 12px 14px; }
  .hlx-nav { flex-wrap: wrap; margin-top: 18px; }
  .hlx-next-wrap { display: contents; }
  .hlx-next-wrap .hlx-btn { flex: 1 1 0; padding: 12px 14px; }
  .hlx-need { order: -1; flex: 1 1 100%; text-align: center; font-size: 13px; }
}
@media (max-width: 600px) { body.admin-bar .hlx-top { top: 0; } }
/* Touch screens: comfortable tap targets for the forced-choice buttons */
@media (pointer: coarse) { .hlx-ml-picks button { min-height: 44px; } }

/* ---------------- results (v1.2) ---------------- */
.hla-app .hlx-btn-sm { min-height: 38px; padding: 6px 14px; font-size: 13.5px; }
.hlx-done { display: flex; gap: 12px; align-items: center; background: #eef6f1; border: 1px solid #cfe5d8; border-radius: 14px; padding: 12px 14px; margin: 6px 0 18px; font-size: 14px; color: var(--ink); }
.hlx-done span { color: var(--text); }
.hlx-done-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.hlx-profile { font-size: 17px; color: var(--ink) !important; }
.hlx-headline { background: var(--sand); border-left: 3px solid var(--wine); border-radius: 8px; padding: 8px 12px; }
.hlx-secnav { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; overflow-x: auto; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px; margin: 0 0 20px; scrollbar-width: none; }
body.admin-bar .hlx-secnav { top: 32px; }
.hlx-secnav::-webkit-scrollbar { display: none; }
.hlx-secnav button { all: unset; cursor: pointer; white-space: nowrap; font-size: 13.5px; font-weight: 700; color: var(--wine); padding: 8px 14px; border-radius: 999px; }
.hlx-secnav button:hover, .hlx-secnav button:focus-visible { background: #fff; }
#hlx-sec-ov, #hlx-sec-areas, #hlx-sec-pat, #hlx-sec-rev { scroll-margin-top: 90px; }
.hla-app h4 { font-size: 14px; letter-spacing: .02em; color: var(--ink); margin: 14px 0 6px; font-family: Arial, "Noto Sans Thai", sans-serif; }
.hlx-skills { margin: 0; padding-left: 18px; color: var(--text); font-size: 14.5px; }
.hlx-skills li { margin-bottom: 6px; }
.hlx-sd { gap: 12px; margin: 6px 0 12px; }
.hlx-sd > div { border-radius: 12px; padding: 4px 14px 10px; }
.hlx-sd-s { background: #f1f7f3; } .hlx-sd-d { background: var(--stone-bg); }
.hlx-sd h4 { margin-top: 10px; }
.hlx-pattern { border-top: 1px solid var(--line); padding: 16px 0 4px; }
.hlx-pattern:first-of-type { border-top: 0; }
.hlx-pattern h3 { color: var(--wine); margin-bottom: 4px; }
.hlx-rev { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 14px; background: #fff; }
.hlx-rev-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.hlx-rev-n { margin-left: auto; }
.hlx-rev-lbl { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted) !important; margin: 10px 0 2px !important; }
.hlx-rev-stem { color: var(--ink) !important; }
.hlx-yours { background: var(--stone-bg); border-radius: 12px; padding: 2px 14px 8px; margin-top: 8px; }
.hlx-better { background: var(--wine-tint); border-left: 3px solid var(--wine); border-radius: 12px; padding: 2px 14px 8px; margin-top: 8px; }
.hlx-better .hlx-rev-lbl { color: var(--wine) !important; }
.hlx-yours p, .hlx-better p { margin-bottom: 4px; }
@media (max-width: 640px) {
  .hlx-res-head { grid-template-columns: 1fr; }
  .hlx-score-big { text-align: left; order: -1; }
  .hlx-secnav { border-radius: 14px; }
  body.admin-bar .hlx-secnav { top: 0; }
  .hlx-rev { padding: 14px 12px; }
  .hlx-sd > div { padding: 2px 12px 8px; }
}
@media print {
  .hlx-noprint, .hlx-secnav, #wpadminbar, .trp-floating-switcher { display: none !important; }
  .hlx-card, .hlx-rev, .hlx-area, .hlx-pattern { box-shadow: none !important; break-inside: avoid; }
  .hla-app { max-width: none; padding: 0; }
}
/* keep app headings at app sizes even inside landing-page sections */
#hla-app.hla-app h1, #hla-app.hla-app h2.hlx-h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; }
#hla-app.hla-app h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; margin: 0 0 10px; }
#hla-app.hla-app h3 { font-size: 18px; line-height: 1.3; }

/* actionable development points (v1.3) */
.hlx-sd { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hlx-act { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
.hlx-act:last-child { margin-bottom: 4px; }
.hla-app .hlx-act h5 { font-size: 15px; margin: 0 0 6px; color: var(--ink); font-family: Arial, "Noto Sans Thai", sans-serif; }
.hlx-act-link { font-size: 13.5px; color: var(--wine) !important; margin: 0 0 8px !important; }
.hlx-act-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 6px 0; border-top: 1px dashed rgba(90,67,58,.15); }
.hlx-act-row p { margin: 0 !important; font-size: 14.5px; }
.hlx-act-lbl { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.hlx-act-ex p { color: var(--ink) !important; font-style: italic; }
.hlx-act-ch .hlx-act-lbl { color: var(--wine); }
.hlx-act-see { margin: 6px 0 0 !important; }
.hlx-pattern .hlx-act-row { margin-top: 6px; }
@media (max-width: 640px) { .hlx-act-row { grid-template-columns: 1fr; gap: 2px; } .hlx-act { padding: 10px 12px; } }

/* score-adaptive development depth (v1.4) */
.hlx-prio { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--wine); color: #fff; vertical-align: middle; letter-spacing: .02em; }
.hlx-act-deep { border-color: rgba(143,23,50,.28); }
.hlx-act-list { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--text); }
.hlx-act-list li { margin-bottom: 3px; }
.hlx-ba p { margin: 0 0 4px !important; font-size: 14.5px; }
.hlx-ba-b { color: var(--muted) !important; }
.hlx-ba-a { color: var(--ink) !important; }
.hlx-act-next p { color: var(--ink) !important; font-weight: 600; }
