:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; color: #18283b; background: #edf2f8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.masthead { background: #102944; color: white; }
.mast-inner { display: flex; align-items: center; gap: .65rem; max-width: 70rem; margin-inline: auto; min-height: 4.5rem; padding: .85rem 1.25rem; font-weight: 700; font-size: 1.05rem; }
.mark { width: 1.05rem; height: 1.05rem; border: .18rem solid #76d8c3; border-radius: 35%; transform: rotate(-14deg); }
.welcome { min-height: calc(100svh - 4.5rem); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1.25rem; text-align: center; }
.welcome h1 { max-width: 48rem; font-size: clamp(2.05rem,6vw,3.6rem); line-height: 1.08; letter-spacing: -.045em; margin: 0 0 1.45rem; color: #102944; }
.welcome p { max-width: 40rem; font-size: clamp(1.02rem,2vw,1.23rem); line-height: 1.55; margin: 0 0 1rem; }
button { font: inherit; }
#start, dialog button { border: 0; border-radius: .55rem; background: #095d4c; color: white; padding: .8rem 1.2rem; min-height: 2.75rem; font-weight: 650; cursor: pointer; }
#start { margin: .7rem 0 1rem; }
#start:disabled { opacity: .65; cursor: wait; }
.welcome p.note { font-size: .92rem; color: #4a6176; }
#questionnaire { max-width: 58rem; margin: 0 auto; padding: .75rem .25rem 2rem; }
#questionnaire .sd-root-modern { --sjs-primary-backcolor: #095d4c; --sjs-primary-backcolor-dark: #074c3e; --sjs-general-backcolor-dim: #edf2f8; --sjs-font-family: Inter, system-ui, sans-serif; }
#questionnaire .sd-title { overflow-wrap: anywhere; }
#questionnaire .sd-page__title { font-size: clamp(1.45rem,4.5vw,2.25rem); font-weight: 750; color: #102944; line-height: 1.16; }
#questionnaire .sd-question__title { line-height: 1.4; }
.hcp-percent { display: inline-flex; align-items: center; width: 100%; max-width: 20rem; gap: .6rem; }
.hcp-percent input { min-width: 0; }
.hcp-percent span { font-weight: 650; }
.hcp-suggestions { margin: .38rem 0 0; padding: .2rem; max-width: 34rem; list-style: none; background: #fff; border: 1px solid #59778b; border-radius: .45rem; }
.hcp-suggestions button { display: block; background: transparent; border: 0; color: #102944; width: 100%; padding: .65rem .75rem; min-height: 44px; text-align: left; border-radius: .3rem; cursor: pointer; }
.hcp-suggestions button:hover, .hcp-suggestions button:focus-visible { background: #e3f4ef; }
dialog { max-width: min(32rem,calc(100% - 2rem)); border: 0; border-radius: .8rem; padding: 1.45rem; color: #18283b; box-shadow: 0 1rem 4rem #10294450; }
dialog::backdrop { background: #122a4780; }
dialog h2 { margin: 0 0 .65rem; }
dialog p { line-height: 1.55; }
dialog form { display: flex; justify-content: flex-end; gap: .55rem; }
dialog button#notice-cancel { background: #e5edf6; color: #102944; }
button:focus-visible { outline: 3px solid #16896e; outline-offset: 3px; }
.hcp-tap-ranking { display: grid; gap: .65rem; }
.hcp-tap-ranking p { margin: 0; line-height: 1.45; }
.hcp-tap-ranking [role="status"] { color: #294d60; font-weight: 650; }
.hcp-tap-ranking ol { display: grid; gap: .65rem; margin: 0; padding-left: 1.6rem; }
.hcp-tap-ranking ol:empty, .hcp-tap-ranking [role="group"]:empty { display: none; }
.hcp-tap-ranking li { padding: .65rem .4rem .65rem .6rem; border-bottom: 1px solid #d4e0e7; }
.hcp-tap-ranking [role="group"] { display: grid; gap: .5rem; }
.hcp-tap-ranking button { min-height: 44px; padding: .55rem .75rem; text-align: left; color: #123c38; background: #e6f4ef; border: 1px solid #85ae9f; border-radius: .45rem; cursor: pointer; }
.hcp-tap-ranking button:disabled { opacity: .5; cursor: default; }
.hcp-rank-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }

.hcp-q16-intro { max-width: 40rem; line-height: 1.55; }
.hcp-q16-intro p { margin: 0 0 1rem; }
.hcp-q16-heading { padding: .75rem 0 1rem; line-height: 1.45; }
.hcp-q16-heading h2, .hcp-q16-heading .hcp-q16-statement { margin: .4rem 0 0; font-size: 1rem; line-height: inherit; }
.hcp-q16-heading h2 { font-weight: 400; }
.hcp-q16-heading .hcp-q16-statement { font-weight: 700; }
.hcp-q16-progress { margin: 0; font-size: .875rem; font-weight: 650; color: #4a6176; }

#questionnaire .sd-page__content:has(.hcp-q16-heading) { gap: 0; padding-inline: clamp(.55rem, 3vw, 2rem); }
#questionnaire .sd-question:has(.hcp-q16-row) {
  background: transparent;
  border-bottom: 1px solid #c4d2df;
  border-radius: 0;
  box-shadow: none;
}
.sd-question__header-and-content-container:has(.hcp-q16-row) {
  display: grid;
  grid-template-columns: minmax(5.2rem, 9rem) minmax(0, 1fr);
  align-items: center;
  gap: .6rem;
  padding: .55rem 0;
}
.sd-question__header-and-content-container:has(.hcp-q16-row) > .sd-question__header { padding: 0; min-width: 0; }
.sd-question:has(.hcp-q16-row) > .sd-question__container > [role="alert"] { padding-inline: .35rem; }
.hcp-q16-row.sd-selectbase {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr)) auto;
  gap: .22rem;
}
.hcp-q16-row > .sd-item { margin: 0; padding: 0; min-width: 0; }
.hcp-q16-row > .sd-item:last-child { margin-inline-start: .4rem; }
.hcp-q16-row .sd-item__decorator { display: none; }
.hcp-q16-row .sd-selectbase__label {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #92a8b7;
  border-radius: .35rem;
  background: white;
  cursor: pointer;
}
.hcp-q16-row .sd-item__control-label { margin: 0; padding: 0 .18rem; font-size: .95rem; font-weight: 600; }
.hcp-q16-row > .sd-item:last-child .sd-item__control-label { padding-inline: .45rem; font-size: .85rem; }
.hcp-q16-row .sd-selectbase__label:has(input:checked) { background: #095d4c; border-color: #095d4c; color: white; }
.hcp-q16-row .sd-selectbase__label:has(input:checked) .sd-item__control-label { color: inherit; }
.hcp-q16-row .sd-selectbase__label:has(input:focus-visible) { outline: 2px solid #095d4c; outline-offset: 2px; }

@media (max-width: 640px) {
  .sd-question__header-and-content-container:has(.hcp-q16-row) { grid-template-columns: clamp(5.2rem, 25vw, 8rem) minmax(0, 1fr); }
  .hcp-q16-row.sd-selectbase { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hcp-q16-row > .sd-item:last-child { grid-column: 1 / -1; margin: .1rem 0 0; }
  .hcp-q16-row > .sd-item:last-child .sd-selectbase__label { min-height: 2.25rem; }
}
