/* Shared interaction and readability rules. */
:focus-visible {
  outline: 3px solid #174e82;
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.skip-link { position: fixed; top: -100px; left: 12px; z-index: 200; padding: 12px; background: #fff; color: #174e82; }
.skip-link:focus { top: 12px; }

.badge.warn { color: #805016; }
.badge.danger { color: #922f3c; }

.modal-backdrop { padding: 16px; overscroll-behavior: contain; }
.modal {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}
.modal-head,
.shell.phone-view .modal-head {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: flex-start;
}
.modal-head > div { flex: 1; min-width: 0; }
.modal-head .modal-close,
.shell.phone-view .modal-head .modal-close {
  flex: 0 0 auto;
  width: auto;
  min-width: 64px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 14px;
}
.modal-body { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.modal-body form > .form-save-bottom,
.shell.phone-view .modal-body form > .form-save-bottom { background: #fffdf9; }

.discard-confirmation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 32px));
  padding: 22px;
  background: #fff;
  border: 2px solid #a8444c;
  border-radius: 8px;
  box-shadow: 0 0 0 100vmax rgba(32, 42, 53, 0.4);
  z-index: 100;
}
.discard-confirmation .btn { min-height: 44px; }

.patient-picker-results { display: grid; gap: 8px; }
.patient-picker-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px;
  min-height: 56px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
}
.patient-picker-result > span:first-child { display: grid; gap: 5px; min-width: 0; }
.patient-picker-result > span:last-child { color: #175f59; font-weight: 700; flex-shrink: 0; }
.patient-picker-result span { overflow-wrap: anywhere; }
.patient-search-label { display: grid; gap: 6px; font-size: 13px; }

.patient-more-actions { width: 100%; }
.patient-more-actions > summary {
  cursor: pointer;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e8eef2;
  font-weight: 700;
}
.more-actions-list { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.patient-actions .btn { min-height: 44px; font-size: 14px; }
.patient-profile > summary { font-size: 17px; }
.patient-current-status { min-width: 0; }
.grid.units { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid.units .unit-card { min-height: 90px; padding: 14px; }
.grid.units .unit-card strong { font-size: 26px; }
.grid.metrics .metric { min-height: 90px; }
.grid.metrics[data-tour="performance-cards"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.bar-hit {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 210px;
  min-width: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.bar-hit .bar { min-height: 0; padding: 0; flex: 0 0 100%; }
.bar-count {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 4px;
  color: #202a35;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

/* The dock uses space in the layout, including inside forms. It never covers a save button. */
.shell:has(.usability-task-card.inline-prompt) .topbar,
.shell:has(.usability-task-card.inline-prompt) .sidebar { position: static; }

.layout > .usability-task-card.inline-prompt,
.modal.study-modal > .usability-task-card.inline-prompt {
  position: sticky;
  inset: 0 auto auto;
  z-index: 9;
  align-self: start;
  width: 100%;
  max-width: 100%;
  max-height: 40dvh;
  margin: 0;
  overflow: hidden;
}

.modal.study-modal > .usability-task-card.inline-prompt { position: relative; flex: 0 0 auto; max-height: 35dvh; }

.usability-task-card:is(.inline-prompt, .floating-prompt) {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 2px solid #513486;
  border-radius: 8px;
  background: #faf8ff;
  box-shadow: 0 4px 14px rgb(48 29 81 / 16%);
}

.usability-task-card .study-prompt-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: #432970;
  color: white;
}
.usability-task-card .usability-drag-handle {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}
.usability-drag-handle > span[aria-hidden] { color: #dbcafa; }
.usability-task-card .study-task-count {
  color: #f1e6ff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: .035em;
}
.usability-task-card .study-prompt-header h3 { color: white; font-size: 16px; line-height: 1.25; }
.study-prompt-tools { display: flex; flex-direction: column; flex-shrink: 0; gap: 4px; }
.study-prompt-tools .btn { min-height: 44px; padding: 6px 9px; font-size: 13px; }
.study-prompt-header :focus-visible { outline-color: #fff; outline-offset: 1px; }
.usability-task-card .study-prompt-content {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 10px;
  padding: 10px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.usability-task-card .study-prompt-footer {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  padding: 8px 12px 4px;
  border-top: 1px solid #d9cfeb;
  background: #faf8ff;
}
#study-prompt-details p,
#study-prompt-details .study-task-details { max-height: none; overflow: visible; }
#study-prompt-details p,
#study-prompt-details dt,
#study-prompt-details dd { font-size: 14px; line-height: 1.4; }
.usability-task-card .study-task-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.usability-task-card .study-task-actions .btn { flex: 1; min-height: 44px; font-size: 14px; }
.usability-task-card .study-complete { background: #513486; color: white; }
.usability-task-card .study-skip { border-top: 1px solid #d9cfeb; color: #49395c; }
.usability-task-card .study-prompt-footer .study-skip { border-top: 0; }
.usability-task-card .study-actions-disclosure > summary { display: none; }
.usability-task-card .study-action-short { display: none; }
.usability-task-card .study-skip summary { width: fit-content; padding: 12px 3px; min-height: 44px; font-size: 14px; cursor: pointer; }
.usability-task-card .study-skip .study-task-actions { margin-top: 8px; }
.usability-task-card.floating-prompt { position: fixed; z-index: 80; max-height: calc(100dvh - 24px); }
.usability-task-card.floating-prompt .usability-drag-handle { cursor: move; touch-action: none; }

@media (min-width: 1101px) {
  .shell:not(.phone-view) .layout:has(> .inline-prompt) {
    grid-template-columns: minmax(155px, 15vw) minmax(0, 1fr) clamp(280px, 23vw, 350px);
    grid-template-areas: "nav workspace task";
  }
  .shell:not(.phone-view) .layout:has(> .inline-prompt) > .main { grid-area: workspace; }
  .shell:not(.phone-view) .layout:has(> .inline-prompt) > .sidebar { grid-area: nav; }
  .shell:not(.phone-view) .layout > .usability-task-card.inline-prompt {
    grid-area: task; top: 12px; margin: 12px 0; max-height: calc(100dvh - 24px);
  }
  .shell:not(.phone-view) .modal.study-modal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(280px, 23vw, 350px);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "heading task" "form task";
    width: min(1280px, 100%);
  }
  .modal.study-modal .modal-head { grid-area: heading; }
  .modal.study-modal .modal-body { grid-area: form; }
  .shell:not(.phone-view) .modal.study-modal > .usability-task-card.inline-prompt {
    grid-area: task; max-height: calc(100dvh - 36px);
  }
}

.shell.phone-view .patient-actions .btn,
.shell.phone-view .patient-more-actions > summary { min-height: 44px; font-size: 14px; }
.shell.phone-view .patient-actions { gap: 8px; }
.shell.phone-view .patient-actions .action-row:first-child { display: flex; justify-content: flex-start; }
.shell.phone-view .patient-actions .action-row:first-child .btn { width: auto; }
.shell.phone-view .patient-actions .capture { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shell.phone-view .patient-actions .capture .btn:last-child { grid-column: 1 / -1; }
.shell.phone-view .more-actions-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shell.phone-view .detail > span { font-size: 12.5px; line-height: 1.4; }
.shell.phone-view .detail > strong { font-size: 14px; line-height: 1.4; }
.shell.phone-view .badge { font-size: 12px; line-height: 1.3; }
.shell.phone-view .action-text strong { font-size: 14px; }
.shell.phone-view .action-text span,
.shell.phone-view .action-meta { font-size: 13px; }
.shell.phone-view .patient-profile > summary { font-size: 16px; }
.shell.phone-view .patient-current-status .panel-head { flex-direction: row; align-items: center; }
.shell.phone-view .modal-body label { font-size: 14px; }
.shell.phone-view .modal-head h3 { font-size: 18px; }
.shell.phone-view .patient-picker-result { font-size: 14px; }
.shell.phone-view .grid.units { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shell.phone-view .grid.units .unit-card { min-height: 90px; padding: 12px; }
.shell.phone-view .grid.units .unit-card h3 { font-size: 16px; }
.shell.phone-view .patient-picker-result > span:last-child { max-width: 72px; }
@media (max-width: 1100px) {
  .layout { display: block; }
  .sidebar-nav { display: flex; gap: 8px; overflow-x: auto; padding: 8px; }
  .sidebar-nav .nav-button { min-width: 128px; width: auto; flex: 0 0 auto; min-height: 44px; }
  .sidebar-nav .nav-button.active:not(.allosight-nav) { box-shadow: inset 0 -4px 0 #22776f; }
  .sidebar { padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .grid.units { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.nhls-import-form .import-record-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 44px;
  padding: 8px 0;
  width: 100%;
  min-width: 0;
  line-height: 1.4;
  cursor: pointer;
}
.nhls-import-form .import-record-check input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
}
.nhls-import-form .import-record-check > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .grid.units,
  .grid.metrics[data-tour="performance-cards"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Longitudinal clinical monitoring uses the same compact patient workspace. */
.monitoring-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.clinical-trend { min-width: 0; }
.clinical-trend .panel-head { flex-wrap: wrap; gap: 12px; }
.clinical-chart { display: block; width: 100%; max-height: 360px; overflow: visible; }
.clinical-chart text { font: 600 13px system-ui, sans-serif; fill: #334858; }
.clinical-chart g[role="button"] { cursor: pointer; }
.clinical-chart g:focus-visible .clinical-point-symbol { stroke: #17222c; stroke-width: 3px; }
.clinical-chart-axis-label { font-size: 15px; font-weight: 700; color: #263d4a; margin-top: 16px; }
.clinical-chart-axis-label span { max-width: 48%; }
.clinical-chart-axis-label small { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; }
.clinical-chart-axis-label span:first-child { color: #11675f; }
.clinical-chart-axis-label span:last-child { text-align: right; color: #25568b; }
.trend-selection { position: fixed; z-index: 2100; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto; max-width: 460px; margin: 0 auto; padding: 14px; background: #fff; color: var(--ink); border: 2px solid var(--accent-2); border-radius: 8px; box-shadow: var(--shadow); }
.trend-selection p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.trend-selection > div { display: flex; gap: 8px; }
.trend-selection .btn { min-height: 44px; font-size: 14px; flex: 1; }
.clinical-chart-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0 8px; font-size: 13px; }
.clinical-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.clinical-chart-legend i { display: inline-block; width: 18px; height: 3px; }
.clinical-chart-legend .weight-marker-key { width: 9px; height: 9px; transform: rotate(45deg); background: var(--series-color); margin: 0 4px; }
.clinical-chart-legend .bp-marker-key { width: 8px; height: 8px; border-radius: 50%; background: var(--series-color); margin: 0 5px; }
.clinical-chart-legend .dry-weight-key { height: 0; border-top: 2px dashed #96395c; }
.clinical-chart-legend .dry-weight-history-key { background: #697486; }
.dual-axis-labels { display: flex; justify-content: space-between; gap: 10px; }
.btn.dry-weight-button { background: #96395c; border-color: #96395c; color: #fff; }
.btn.dry-weight-button:hover { background: #792b49; border-color: #792b49; }
.chart-values, .dry-weight-history { margin-top: 12px; font-size: 14px; }
.chart-values summary, .dry-weight-history summary { cursor: pointer; padding: 8px 0; }
.krt-timeline ol { list-style: none; padding: 0; margin: 18px 0 0; }
.krt-timeline li { position: relative; display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 16px; margin-left: 8px; padding: 0 0 22px 24px; border-left: 2px solid #c5d7db; }
.krt-timeline li::before { content: ""; position: absolute; left: -6px; top: 3px; width: 10px; height: 10px; background: #19786f; border: 2px solid #fff; border-radius: 50%; box-sizing: content-box; }
.krt-timeline .timeline-peritonitis::before { background: #a45b23; }
.krt-timeline .timeline-access::before { background: #376fa4; }
.krt-timeline time { color: #526274; font-size: 13px; }
.krt-timeline li div { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.krt-timeline li span { color: #526274; }
.phone-view .krt-timeline li { grid-template-columns: minmax(0, 1fr); gap: 5px; }
.phone-view .clinical-chart-legend { font-size: 12px; }
.phone-view .monitoring-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.phone-view .monitoring-tabs .btn { width: 100%; min-width: 0; padding: 8px 5px; font-size: 12px; min-height: 44px; }
/* Clinical task priority is separate from completion status and due dates. */
.clinical-task-dashboard { margin: 16px 0; padding: 16px 0; border-top: 3px solid #9e4050; border-bottom: 1px solid #ccd6da; }
.clinical-task-dashboard h3 { margin: 0; font-size: 18px; }
.task-count { font-size: 13px; font-weight: 400; color: #526271; }
.task-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.task-priority, .task-overdue { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.task-priority-urgent { background: #fbe4e7; color: #8b2336; }
.task-priority-routine { background: #e3eef8; color: #254e73; }
.task-overdue { color: #8b2336; background: #fff; border: 1px solid #b25b6a; }
.task-dashboard-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #d8e0e4; }
.task-dashboard-row > div { min-width: 0; }
.task-dashboard-row strong, .task-dashboard-row span { overflow-wrap: anywhere; }
.task-dashboard-row strong, .task-dashboard-row > div > span { display: block; margin-top: 4px; font-size: 14px; }
.task-dashboard-owner { text-align: right; flex-shrink: 0; }
.clinical-task-dashboard details > summary { cursor: pointer; padding: 10px 0; color: #254e73; font-weight: 700; }
@media (max-width: 600px) {
  .task-dashboard-row { flex-direction: column; gap: 8px; }
  .task-dashboard-owner { text-align: left; }
  .clinical-task-dashboard .panel-head { flex-wrap: wrap; }
}
.shell.phone-view .task-dashboard-row { flex-direction: column; gap: 8px; }
.shell.phone-view .task-dashboard-owner { text-align: left; }
.unit-tone-east { --unit-ink: #315e89; --unit-tint: #e7eff9; }
.unit-tone-west { --unit-ink: #216a57; --unit-tint: #e1f1e9; }
.unit-tone-pd { --unit-ink: #70518e; --unit-tint: #f0e8f7; }
.unit-tone-satellite { --unit-ink: #88601f; --unit-tint: #faf0d8; }
.unit-tone-transplant { --unit-ink: #8c3f66; --unit-tint: #f8e8f0; }
.shell .sidebar-nav .nav-button:not(.allosight-nav) { background: var(--unit-tint, #edf3fa); border-color: var(--unit-ink, #9ab3d0); color: var(--unit-ink, #254e73); }
.shell .sidebar-nav .nav-button.active:not(.allosight-nav) { background: var(--unit-ink, #315e89); border-color: var(--unit-ink, #315e89); color: #fff; box-shadow: inset 0 -4px 0 #ffffff50; }
.card.unit-card[class*="unit-tone-"] { background: var(--unit-tint); border-left: 5px solid var(--unit-ink); }
.card.unit-card[class*="unit-tone-"] h3 { color: var(--unit-ink); }
.card.metric.unresolved-task-metric.has-urgent { border-color: #b25b6a; }
.unresolved-task-metric .task-priority { width: fit-content; }
.editing-status { padding: 10px 12px; margin-bottom: 12px; border-left: 4px solid #315e89; background: #edf3fa; color: #254e73; font-size: 14px; overflow-wrap: anywhere; }
.editing-status button { margin: 8px; }
.individual-note-editor { border-top: 1px solid #ccd6da; margin-top: 16px; padding-top: 12px; display: grid; gap: 10px; }
.individual-note-editor label { min-width: 0; }
.clinical-chart line, .clinical-chart polyline, .clinical-chart text { pointer-events: none; }
.data-centre-tabs { display:flex; gap:10px; overflow-x:auto; padding:8px 0 16px; margin-bottom:16px; border-bottom:2px solid #cad8df; }
.shell .data-centre-tabs .btn { flex:0 0 auto; width:auto; min-height:44px; font-size:15px; padding:10px 16px; }
.shell .data-centre-exports { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:10px; }
.shell .data-centre-exports .btn { width:100%; min-height:44px; font-size:14px; padding:10px; }

/* Study interaction and participant privacy refinement. */

.usability-drag-handle { min-height:24px; cursor:grab; touch-action:none; }
.usability-drag-handle:focus-visible { outline:3px solid white; outline-offset:3px; }
.usability-task-card.floating-prompt { width:min(460px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; margin:0; z-index:85; }
.usability-task-card.phone-card:is(.inline-prompt, .floating-prompt) { overflow: hidden; }
.sus-response-guide { padding:16px; border:2px solid #356d99; border-radius:8px; background:#eef5fb; color:#183a52; }
.sus-response-guide > strong { font-size:20px; }
.sus-response-guide p { margin:8px 0 0; }
.sus-question { margin:14px 0; padding:14px; border:1px solid #b5c4cf; border-radius:8px; min-width:0; }
.sus-question legend { font-weight:700; padding:0 6px; }
.sus-options { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.sus-options label { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:6px; padding:10px 4px; border:1px solid #becbd5; border-radius:6px; cursor:pointer; min-height:86px; }
.sus-options label:has(input:checked) { background:#e4f0fc; border:2px solid #326c9c; }
.sus-options span { font-size:12px; line-height:1.25; }
@media(max-width:480px) { .sus-options { grid-template-columns:1fr; } .sus-options label { flex-direction:row; justify-content:flex-start; min-height:44px; padding:8px 12px; } .sus-options span { font-size:14px; } }

@media (max-width: 600px) {
  .shell.phone-view.study-active .top-actions .nav-tools,
  .shell.phone-view.study-active .top-actions .account-tools,
  .shell.phone-view.study-active .top-actions .admin-menu,
  .shell.phone-view.study-active .demo-banner.with-action button { display: none; }
  .shell.phone-view.study-active .topbar { align-items: center; }
  .shell.phone-view.study-active .top-actions { flex: 0 0 auto; }
  .shell.phone-view.study-active .demo-banner.with-action { padding: 8px 12px; font-size: 12px; line-height: 1.3; }
  .shell.phone-view .layout > .usability-task-card.phone-card.inline-prompt {
    position: relative;
    inset: auto;
    width: auto;
    max-height: min(42dvh, 360px);
    margin: 8px;
    overflow: hidden;
  }
  .shell.phone-view .usability-task-card.phone-card.inline-prompt:not(.modal-open) .study-prompt-content {
    overflow-y: auto;
    max-height: none;
  }
  .shell.phone-view .modal.study-modal {
    min-height: 0;
  }
  .shell.phone-view .modal.study-modal > .usability-task-card.phone-card.inline-prompt {
    position: relative;
    inset: auto;
    align-self: stretch;
    width: 100%;
    max-height: min(42dvh, 360px);
    overflow: hidden;
    margin: 0;
    flex: 0 0 auto;
  }
  .shell.phone-view .modal.study-modal .modal-body { min-height: 30dvh; }
  .shell.phone-view .usability-task-card.phone-card .study-prompt-content { overflow-y: auto; }
  .shell.phone-view .modal.study-modal > .usability-task-card.phone-card.inline-prompt .study-prompt-content { flex: 1 1 auto; min-height: 72px; align-content: start; }
  .shell.phone-view .usability-task-card.phone-card .study-prompt-content p,
  .shell.phone-view .usability-task-card.phone-card .study-task-details { max-height: none; overflow: visible; }
  .shell.phone-view .usability-task-card.phone-card .study-prompt-content > p:first-child { position: sticky; top: 0; z-index: 1; padding: 0 0 5px; background: #faf8ff; }
  .shell.phone-view .usability-task-card.phone-card .study-task-details { gap: 3px; }
  .shell.phone-view .usability-task-card.phone-card #study-prompt-details .study-task-details dt,
  .shell.phone-view .usability-task-card.phone-card #study-prompt-details .study-task-details dd { font-size: 13px; line-height: 1.25; }
  .shell.phone-view .usability-task-card.phone-card .study-prompt-header { padding: 8px 10px; }
  .shell.phone-view .usability-task-card.phone-card .study-prompt-header h3 { font-size: 14px; }
  .shell.phone-view .usability-task-card.phone-card .study-prompt-tools .btn { min-height: 44px; }
  .shell.phone-view .study-prompt-footer { position: relative; padding: 5px 8px; }
  .shell.phone-view .study-actions-disclosure[open] { display: block; }
  .shell.phone-view .study-actions-disclosure > .study-task-actions { display: flex; width: calc(100% - 55px); min-width: 0; flex-wrap: nowrap; gap: 5px; }
  .shell.phone-view .study-actions-disclosure > .study-task-actions .btn { min-width: 0; padding: 4px 2px; min-height: 44px; font-size: 12px; line-height: 1.1; }
  .shell.phone-view .study-action-long { display: none; }
  .shell.phone-view .study-action-short { display: inline; }
  .shell.phone-view .study-skip { position: absolute; top: 5px; right: 8px; border: 0; }
  .shell.phone-view .study-skip > summary { display: grid; place-items: center; min-height: 44px; padding: 4px 9px; border: 1px solid #b9a8d4; border-radius: 8px; font-size: 12px; font-weight: 700; }
  .shell.phone-view .study-skip[open] { position: static; }
  .shell.phone-view .study-skip[open] > summary { width: 100%; }
}
.sus-response-guide { padding:16px; border:2px solid #356d99; border-radius:8px; background:#eef5fb; color:#183a52; }
.sus-response-guide > strong { font-size:20px; }
.sus-response-guide p { margin:8px 0 0; }
.sus-question { margin:14px 0; padding:14px; border:1px solid #b5c4cf; border-radius:8px; min-width:0; }
.sus-question legend { font-weight:700; padding:0 6px; }
.sus-options { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.sus-options label { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:6px; padding:10px 4px; border:1px solid #becbd5; border-radius:6px; cursor:pointer; min-height:86px; }
.sus-options label:has(input:checked) { background:#e4f0fc; border:2px solid #326c9c; }
.sus-options span { font-size:12px; line-height:1.25; }
@media(max-width:480px) { .sus-options { grid-template-columns:1fr; } .sus-options label { flex-direction:row; justify-content:flex-start; min-height:44px; padding:8px 12px; } .sus-options span { font-size:14px; } }
