.packet-state{padding:12px;background:#e7f0f1;border-radius:8px;white-space:pre-wrap}.packet-section summary{font-weight:700;font-size:1.15rem;cursor:pointer;padding:8px 0}.packet-section fieldset{border:1px solid #cbdadd;border-radius:10px;margin:16px 0;padding:14px;min-width:0}.packet-section legend{font-weight:650}.packet-section input[type=file]{font-size:15px}.packet-section pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f7f8;padding:12px}.packet-section small{display:block;color:#47666d}#invitation a{overflow-wrap:anywhere}#identity{font-weight:650}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media(max-width:600px){.two-columns{grid-template-columns:1fr}}

.packet-section{background:white;border:1px solid #cbdadd;border-radius:14px;padding:18px;margin:16px 0}.packet-section>summary{list-style-position:outside;margin-left:20px}.packet-section>div{padding-top:8px}.packet-section details{margin:14px 0}.packet-section details>summary{font-size:1rem}

#test-invitation-url{box-sizing:border-box;width:100%;max-width:100%;overflow-wrap:anywhere;font-size:16px}#invitation button{min-height:44px}.packet-section input,.packet-section select,.packet-section textarea{max-width:100%;box-sizing:border-box;font-size:16px}.packet-section button{min-height:44px}@media(max-width:600px){.packet-section{padding:12px}.packet-section>summary{margin-left:18px}}

/* Patient ROS: compact explicit choices, never default unanswered to No. */
.packet-section .compact-ros-row{margin:0;padding:8px 0;border:0;border-bottom:1px solid #d9e3e5;border-radius:0}
.compact-ros-row legend{font-size:16px;font-weight:500;line-height:1.3;padding:0;width:100%}
.ros-answers{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ros-answers label{display:flex;align-items:center;margin:0;min-height:44px;font-size:16px;cursor:pointer}.ros-answers input{margin-right:6px}.ros-answer-state{font-size:13px;color:#47666d}
.packet-section .ros-other{margin:0}.packet-section .ros-other>summary{font-size:12px;font-weight:400;padding:0}.ros-other button{font-size:14px;min-height:44px}
.packet-section .compact-ros-group>p{font-size:14px;margin:6px 0 12px}

@media(min-width:760px){.compact-ros-group[open]{display:grid;grid-template-columns:1fr 1fr;gap:8px 24px}.compact-ros-group>summary,.compact-ros-group>p,.compact-ros-group>button{grid-column:1/-1}}

.field-error{display:block;color:#a32222;font-weight:600;overflow-wrap:anywhere}label small{display:block;font-weight:normal}input[aria-invalid="true"]{border:2px solid #a32222}

.terminology-matches [role=listbox]{max-height:280px;overflow-y:auto}.terminology-matches [role=option]{display:block;width:100%;text-align:left;margin:2px 0;color:#183e46;background:#f0f6f6;white-space:normal;overflow-wrap:anywhere}.terminology-matches [role=option][aria-selected=true]{outline:3px solid #216e7b;background:#d9ecee}.terminology-matches small{margin-bottom:10px}

.history-finder{background:#eef6f5;border:1px solid #bad3ce;border-radius:.6rem;padding:1rem;margin-bottom:1rem}.history-finder h3{margin-top:0}.history-finder .terminology-results:empty{display:none}

.amount-suggestions{display:flex;flex-wrap:wrap;gap:6px}.amount-suggestions button{padding:8px 12px;font-size:16px;margin:0}.questionnaire-summary-group{border-top:1px solid #d9e3e5;padding:8px 0}.questionnaire-summary-group>summary{list-style:none;min-height:44px;display:flex;align-items:center;gap:8px}.questionnaire-summary-group>summary::-webkit-details-marker{display:none}.questionnaire-summary-group>summary::before{content:"+";font-weight:700}.questionnaire-summary-group[open]>summary::before{content:"−"}.questionnaire-summary-group>div{padding:8px 0}.questionnaire-summary-group p{margin:4px 0 12px}
