/* FMH workspace. A distinct visual identity, isolated from the clinical fiche. */
.fmh-studio {
  --fmh-action: #1261f3;
  --fmh-ink: #111b32;
  --fmh-soft-line: color-mix(in srgb, var(--line) 75%, transparent);
  max-width: 1280px;
  padding-top: 3px;
}
.fmh-studio .fmh-summary {
  gap: 15px;
  margin-bottom: 32px;
}
.fmh-studio .fmh-overall {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 30px 34px 27px;
  min-height: 190px;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(ellipse at 95% 0%, #297dfb 0%, transparent 58%),
    linear-gradient(115deg, #102d8b, #104fe2 67%, #1065ed);
  box-shadow: 0 14px 30px #124fe219;
}
.fmh-hero-emblem {
  display: grid;
  place-items: center;
  align-self: flex-start;
  width: 52px;
  height: 60px;
  flex: none;
  border: 1px solid #ffffff32;
  border-radius: 17px;
  background: #ffffff0e;
  margin-top: 3px;
}
.fmh-hero-emblem > svg {
  width: 21px;
  height: 43px;
}
.fmh-studio .fmh-overall-main {
  flex: 1;
  min-width: 0;
}
.fmh-studio .fmh-overall-label {
  color: #dce8ff;
  font-size: 14px;
  font-weight: 450;
  padding-right: 100px;
  letter-spacing: 0.015em;
}
.fmh-studio .fmh-overall-reading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 7px 0 18px;
  padding-right: 6px;
}
.fmh-studio .fmh-overall-reading > strong {
  font-size: clamp(46px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.08;
  color: white;
}
.fmh-studio .fmh-overall-reading > strong > span {
  color: #c9ddff;
  font-size: 30px;
  font-weight: 400;
}
.fmh-studio .fmh-overall-reading > span {
  color: white;
  font-size: 25px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.fmh-overall-reading > span > i {
  color: #a7c9ff;
  font-style: normal;
  font-size: 17px;
  padding: 0 4px;
}
.fmh-overall-reading > span > small {
  display: block;
  color: #d7e4ff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 7px;
}
.fmh-studio .fmh-overall progress {
  height: 6px;
  background: #ffffff26;
  accent-color: #fff;
}
.fmh-studio .fmh-overall progress::-webkit-progress-bar {
  background: #ffffff26;
}
.fmh-studio .fmh-overall progress::-webkit-progress-value {
  background: linear-gradient(90deg, #fff, #79d2ff);
  box-shadow: 0 0 15px #9de0ff80;
}
.fmh-studio .fmh-overall progress::-moz-progress-bar {
  background: #e2f4ff;
}
.fmh-studio .fmh-overall-tools {
  top: 21px;
  right: 24px;
  gap: 7px;
}
.fmh-studio .fmh-overall-tools > .icon-button,
.fmh-studio .fmh-overall-tools .fmh-rule > summary {
  width: 32px;
  height: 32px;
  color: white;
  border: 1px solid #ffffff30;
  background: #ffffff10;
  border-radius: 11px;
}
.fmh-studio .fmh-overall-tools > .icon-button:hover,
.fmh-studio .fmh-overall-tools .fmh-rule > summary:hover {
  background: #ffffff28;
}
.fmh-studio .fmh-overall .fmh-rule-content {
  color: var(--muted);
}
.fmh-studio .fmh-period-note {
  color: #d7e4ff;
  margin-top: -3px;
}
.fmh-studio .fmh-review-invitation {
  border-color: var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 18px 22px;
  gap: 17px;
}
.fmh-studio .fmh-review-symbol {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #ffbd16;
  color: #4a3100;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 5px 12px #ffb70019;
}
.fmh-studio .fmh-review-invitation h2 {
  font-size: 17px;
  letter-spacing: -0.025em;
}
.fmh-studio .fmh-review-invitation p {
  font-size: 13px;
  margin-top: 4px;
}
.fmh-studio .fmh-review-invitation .button {
  min-height: 44px;
  padding: 12px 17px;
  color: white;
  background: var(--fmh-action);
  border: 0;
  border-radius: 13px;
  font-size: 13px;
  box-shadow: 0 5px 12px #1261f315;
}
.fmh-studio .fmh-review-invitation .button:hover {
  background: #074fda;
}
.fmh-studio .fmh-review-clear {
  color: var(--muted);
  padding: 13px 18px;
  border-radius: 15px;
  background: transparent;
  border-color: transparent;
}
.fmh-studio .fmh-review-clear > svg {
  color: #159b72;
  background: color-mix(in srgb, #159b72 10%, var(--surface));
  border-radius: 50%;
  padding: 4px;
  width: 25px;
  height: 25px;
}
.fmh-studio .fmh-group-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  letter-spacing: -0.03em;
  margin-bottom: 15px;
  font-weight: 580;
}
.fmh-studio .fmh-group-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ec217d;
}
.fmh-studio [data-group='fmhObstetrics'] .fmh-group-title::before {
  background: #0869f6;
}
.fmh-studio .fmh-progress-grid {
  gap: 17px;
  align-items: start;
}
.fmh-studio .fmh-requirement-group {
  margin-bottom: 29px;
}
.fmh-studio .fmh-progress {
  padding: 23px;
  border-radius: 24px;
  border-color: var(--fmh-soft-line);
  box-shadow: 0 4px 18px #15264a04;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}
:root:not([data-theme='dark']) .fmh-studio .fmh-progress[data-tone='pink'] {
  --fmh-accent: #d71870;
  --fmh-accent-end: #ff4e96;
}
.fmh-studio .fmh-progress::before {
  display: none;
}
.fmh-studio .fmh-progress > header {
  padding: 0;
  min-height: 48px;
  align-items: center;
  gap: 11px;
}
.fmh-target-index {
  display: grid;
  place-items: center;
  width: 35px;
  height: 40px;
  border-radius: 12px;
  flex: none;
  background: var(--fmh-accent);
  color: white;
  font-size: 12px;
  letter-spacing: -0.02em;
  font-weight: 600;
  box-shadow: 0 4px 9px color-mix(in srgb, var(--fmh-accent) 17%, transparent);
}
.fmh-studio .fmh-progress h3 {
  flex: 1;
  font-size: 16px;
  font-weight: 580;
  line-height: 1.25;
  letter-spacing: -0.028em;
}
.fmh-studio .fmh-progress h3 > button {
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  line-height: inherit;
  color: inherit;
}
.fmh-studio .fmh-progress h3 > button:hover {
  color: var(--fmh-accent);
}
.fmh-studio .fmh-progress-stats {
  margin: 18px 0 15px;
}
.fmh-studio .fmh-number {
  margin: 0;
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.055em;
  font-weight: 600;
}
.fmh-studio .fmh-number > span {
  font-size: 17px;
  margin-left: 7px;
  letter-spacing: -0.01em;
}
.fmh-studio .fmh-percent {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  margin: 0;
  flex: none;
  font-size: 13px;
  letter-spacing: -0.04em;
}
.fmh-percent > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}
.fmh-percent circle {
  fill: none;
  stroke-width: 3.5;
}
.fmh-meter-track {
  stroke: var(--line);
  opacity: 0.75;
}
.fmh-meter-fill {
  stroke: var(--fmh-accent);
  stroke-linecap: round;
}
.fmh-percent > b {
  position: relative;
  font-weight: 600;
}
.fmh-studio .fmh-percent small {
  font-size: 9px;
  margin-left: 1px;
}
.fmh-studio .fmh-progress progress {
  height: 8px;
  border-radius: 8px;
}
.fmh-studio .fmh-quota {
  margin: 10px 0 15px;
  font-size: 11px;
}
.fmh-studio .fmh-subcounts {
  display: flex;
  flex-wrap: wrap;
  padding: 0 0 15px;
  gap: 6px;
  border: 0;
}
.fmh-studio .fmh-subcounts > span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
}
.fmh-studio .fmh-subcounts b {
  display: inline;
  margin: 0;
  font-size: 12px;
  letter-spacing: -0.02em;
}
.fmh-subcounts b > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 450;
}
.fmh-studio .fmh-progress > footer {
  padding-top: 13px;
  font-size: 12px;
  min-height: 47px;
}
.fmh-studio .fmh-progress > footer .icon-button {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: transparent;
  color: var(--fmh-accent);
  border: 1px solid color-mix(in srgb, var(--fmh-accent) 20%, var(--line));
}
.fmh-studio .fmh-remaining {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fmh-studio .fmh-remaining strong {
  font-size: 14px;
}
.fmh-studio .fmh-remaining > svg {
  width: 15px;
  height: 15px;
  color: #12946c;
  margin-right: 3px;
}
.fmh-studio .fmh-review-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  padding: 11px 0 0;
  min-height: 30px;
  margin-bottom: -5px;
  font-size: 11px;
}
.fmh-studio .fmh-review-link > svg:last-child {
  margin-left: auto;
}
@media (hover: hover) {
  .fmh-studio .fmh-progress:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--fmh-accent) 50%, var(--line));
    box-shadow: 0 12px 28px color-mix(in srgb, var(--fmh-accent) 10%, transparent);
  }
  .fmh-studio .fmh-progress:hover > footer .icon-button {
    background: var(--fmh-accent);
    color: white;
    transform: none;
  }
}

/* Review: an explicit queue and a focused decision surface. */
.fmh-studio.fmh-review-workspace {
  max-width: 1360px;
  container: fmh-review / inline-size;
}
.fmh-studio .fmh-review-top {
  margin-bottom: 20px;
}
.fmh-studio .fmh-review-top > .button,
.fmh-requirement-workspace .fmh-workspace-topline > .button:not(.fmh-preview-toggle) {
  min-height: 44px;
  padding: 11px 16px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 2px 5px #172b4d03;
}
.fmh-studio .fmh-review-top > .button:hover,
.fmh-requirement-workspace .fmh-workspace-topline > .button:hover {
  color: var(--fmh-action, #1261f3);
  border-color: color-mix(in srgb, #1261f3 30%, var(--line));
}
.fmh-studio .fmh-review-top > span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}
.fmh-studio .fmh-review-heading {
  margin-bottom: 22px;
}
.fmh-studio .fmh-review-heading h1 {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 620;
  letter-spacing: -0.05em;
}
.fmh-studio .fmh-review-layout {
  grid-template-columns: minmax(290px, 31%) minmax(0, 1fr);
  gap: 23px;
}
.fmh-studio .fmh-review-queue {
  background: var(--surface);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 5px 22px #172b4d04;
  overflow: hidden;
  max-height: none;
}
.fmh-queue-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 20px 18px;
}
.fmh-queue-heading > span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  color: var(--fmh-action);
  background: var(--blue-bg);
  flex: none;
}
.fmh-queue-heading > span svg {
  width: 18px;
  height: 18px;
}
.fmh-queue-heading > div {
  flex: 1;
  min-width: 0;
}
.fmh-queue-heading h2 {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.fmh-queue-heading p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin: 4px 0 0;
}
.fmh-queue-heading > b {
  font-size: 25px;
  letter-spacing: -0.04em;
  font-weight: 550;
}
.fmh-queue-heading > b > svg {
  width: 24px;
  height: 24px;
  color: #129b73;
}
.fmh-queue-position {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-alt);
}
.fmh-queue-position > b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fmh-queue-position i {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
  margin: 0 6px;
}
.fmh-queue-rows {
  padding: 10px;
  max-height: max(180px, calc(100dvh - 360px));
  overflow-y: auto;
  scrollbar-width: thin;
}
.fmh-studio .fmh-review-row {
  padding: 16px 12px;
  margin: 0 0 6px;
  gap: 10px;
  border-radius: 16px;
  align-items: flex-start;
  border: 1px solid transparent;
  background: var(--surface);
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}
.fmh-studio .fmh-review-row:last-child {
  margin-bottom: 0;
}
.fmh-studio .fmh-review-row:hover {
  background: var(--surface-alt);
}
.fmh-studio .fmh-review-row .avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border-radius: 12px;
  font-size: 11px;
  background: var(--surface-alt);
  color: var(--muted);
  border: 1px solid var(--line);
}
.fmh-studio .fmh-review-row > .fmh-queue-person > strong {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.fmh-studio .fmh-review-row > .fmh-queue-person > span {
  font-size: 14px;
  line-height: 1.4;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
}
.fmh-studio .fmh-review-row small {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: center;
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.fmh-queue-cue {
  display: inline-flex;
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 11px;
}
.fmh-studio .fmh-review-row > svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.fmh-studio .fmh-review-row.is-selected {
  color: white;
  border-color: transparent;
  background: linear-gradient(120deg, #1267f2, #1154df);
  box-shadow: 0 6px 15px #1261f32b;
}
.fmh-studio .fmh-review-row.is-selected .avatar {
  background: #ffffff20;
  border-color: #ffffff25;
  color: white;
}
.fmh-studio .fmh-review-row.is-selected .fmh-queue-person > span {
  color: #eef4ff;
}
.fmh-studio .fmh-review-row.is-selected small {
  color: #d0e1ff;
}
.fmh-studio .fmh-review-row.is-selected .fmh-queue-cue {
  background: #ffffff21;
  color: white;
}
.fmh-studio .fmh-review-row.is-selected > svg {
  color: white;
}
.fmh-studio .fmh-decision-panel {
  border-radius: 26px;
  border-color: var(--fmh-soft-line);
  box-shadow: 0 8px 30px #172b4d06;
  padding: 29px 30px 0;
  animation: fmh-panel-arrive 220ms ease-out;
}
@keyframes fmh-panel-arrive {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}
.fmh-studio .fmh-decision-person {
  gap: 13px;
  padding-bottom: 23px;
}
.fmh-studio .fmh-decision-person > .avatar {
  width: 48px;
  height: 51px;
  border-radius: 17px;
  background: var(--fmh-ink);
  color: white;
  font-size: 14px;
}
.fmh-studio .fmh-decision-person h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.fmh-studio .fmh-decision-person p {
  font-size: 12px;
  margin-top: 6px;
}
.fmh-studio .fmh-record-context {
  padding: 20px 0;
}
.fmh-studio .fmh-context-overview {
  gap: 12px;
}
.fmh-studio .fmh-fact > strong {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.fmh-studio .fmh-fact > span {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 6px;
}
.fmh-studio .fmh-context-actions > .button {
  padding: 10px 13px;
  min-height: 40px;
  border-radius: 11px;
  font-size: 12px;
}
.fmh-studio .fmh-decision-reasons {
  border: 0;
  border-left: 3px solid #ffb700;
  border-radius: 0 15px 15px 0;
  background: color-mix(in srgb, #ffb700 5%, var(--surface));
  padding: 18px 18px 18px 20px;
  margin-bottom: 27px;
}
.fmh-studio .fmh-decision-reasons h3 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 11px;
}
.fmh-studio .fmh-decision-reasons h3 > svg {
  color: var(--amber);
}
.fmh-studio .fmh-decision-reasons li strong {
  font-size: 14px;
  font-weight: 570;
  letter-spacing: -0.015em;
}
.fmh-studio .fmh-decision-reasons li p {
  font-size: 12px;
  line-height: 1.65;
}
.fmh-studio .fmh-choice-heading {
  margin-bottom: 18px;
}
.fmh-studio .fmh-choice h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.fmh-studio .fmh-allocation-option {
  padding: 16px;
  border-radius: 15px;
  border-color: var(--line);
  box-shadow: none;
}
.fmh-studio .fmh-allocation-option:has([name='allocation']:checked) {
  border-color: #216ef4;
  background: color-mix(in srgb, #1261f3 4%, var(--surface));
  box-shadow: inset 3px 0 #1261f3;
}
.fmh-studio .fmh-choice .fmh-form-actions {
  border-top-color: var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  padding-top: 18px;
  padding-bottom: 18px;
}
.fmh-studio .fmh-form-actions > .primary {
  background: var(--fmh-action);
  color: white;
  border: 0;
  border-radius: 13px;
  min-height: 46px;
  padding: 12px 18px;
  box-shadow: 0 5px 12px #1261f318;
}
.fmh-studio .fmh-review-receipt {
  padding: 14px 18px;
  border-radius: 17px;
  background: color-mix(in srgb, #12a579 4%, var(--surface));
  border-color: color-mix(in srgb, #12a579 24%, var(--line));
}
.fmh-studio .fmh-review-finished {
  padding: 70px 20px;
}
.fmh-studio .fmh-review-finished > svg {
  background: #12a579;
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 20px #12a57925;
}

/* The category list uses the same selection language and orientation cues. */
.fmh-requirement-workspace .fmh-workspace-topline {
  margin-bottom: 20px;
}
.fmh-requirement-workspace .fmh-workspace-title {
  align-items: center;
}
.fmh-requirement-workspace .fmh-workspace-title h1 {
  font-size: 30px;
  font-weight: 620;
  letter-spacing: -0.045em;
}
.fmh-requirement-workspace .fmh-workspace-total {
  background: var(--surface);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.fmh-requirement-workspace .fmh-workspace-total > strong {
  font-size: 30px;
}
.fmh-requirement-workspace .fmh-workspace-frame {
  border-radius: 25px;
  box-shadow: 0 7px 26px #172b4d04;
}
.fmh-requirement-workspace .fmh-list-tools {
  padding: 18px;
}
.fmh-requirement-workspace .fmh-list-tools .search-field {
  border-radius: 13px;
  background: var(--surface);
  min-height: 43px;
}
.fmh-requirement-workspace .fmh-case-list-caption {
  font-size: 12px;
  color: var(--text);
  padding-top: 19px;
}
.fmh-requirement-workspace .fmh-case-list-caption > span {
  padding: 3px 7px;
  background: var(--surface-alt);
  border-radius: 6px;
}
.fmh-requirement-workspace .fmh-patient-row {
  border-radius: 16px;
  margin-bottom: 7px;
}
.fmh-requirement-workspace .fmh-patient-row.selected {
  color: white;
  border-color: transparent;
  background: linear-gradient(120deg, #1267f2, #1154df);
  box-shadow: 0 5px 13px #1261f325;
}
.fmh-requirement-workspace .fmh-patient-row.selected::before {
  display: none;
}
.fmh-requirement-workspace .fmh-patient-row.selected .patient-name,
.fmh-requirement-workspace .fmh-patient-row.selected .row-content > strong {
  color: white;
}
.fmh-requirement-workspace .fmh-patient-row.selected time {
  color: #d7e5ff;
}
.fmh-requirement-workspace .fmh-patient-row.selected .avatar {
  background: #ffffff22;
  color: white;
}
:root[data-theme='dark'] .fmh-studio {
  --fmh-ink: #324769;
  --fmh-soft-line: #ffffff13;
}
:root[data-theme='dark'] .fmh-studio .fmh-overall {
  background:
    radial-gradient(ellipse at 100% 0%, #1d6ef0 0%, transparent 60%),
    linear-gradient(115deg, #10266b, #123faf 72%, #114cbe);
  border: 1px solid #ffffff12;
  box-shadow: 0 15px 35px #00000022;
}
:root[data-theme='dark'] .fmh-studio .fmh-review-row.is-selected {
  background: linear-gradient(120deg, #175be0, #1946b0);
}
@container fmh-review (max-width: 850px) {
  .fmh-studio.fmh-review-workspace .fmh-review-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .fmh-studio .fmh-review-queue {
    position: static;
  }
  .fmh-studio .fmh-queue-rows {
    display: flex;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
  }
  .fmh-studio .fmh-review-row {
    flex: 0 0 265px;
    margin: 0;
  }
  .fmh-studio .fmh-queue-heading {
    padding: 16px 19px;
  }
  .fmh-studio .fmh-queue-heading p {
    display: none;
  }
}
@media (max-width: 1100px) {
  .fmh-studio .fmh-review-layout {
    grid-template-columns: minmax(250px, 31%) minmax(0, 1fr);
    gap: 18px;
  }
  .fmh-studio .fmh-decision-panel {
    padding: 24px 22px 0;
  }
  .fmh-studio .fmh-choice .fmh-form-actions {
    margin-left: -22px;
    margin-right: -22px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .fmh-queue-heading {
    padding: 19px 15px 15px;
    gap: 9px;
  }
  .fmh-queue-heading > span {
    display: none;
  }
  .fmh-queue-position {
    padding: 10px 16px;
  }
  .fmh-studio .fmh-review-row .avatar {
    display: none;
  }
  .fmh-studio .fmh-review-row {
    padding: 14px 12px;
  }
}
@media (max-width: 760px) {
  .fmh-studio .fmh-overall {
    gap: 0;
    padding: 25px 23px 24px;
    min-height: 180px;
    border-radius: 23px;
  }
  .fmh-hero-emblem {
    display: none;
  }
  .fmh-studio .fmh-overall-label {
    font-size: 12px;
    padding-right: 70px;
  }
  .fmh-studio .fmh-overall-reading {
    margin-top: 16px;
    gap: 14px;
  }
  .fmh-studio .fmh-overall-reading > strong {
    font-size: 49px;
  }
  .fmh-studio .fmh-overall-reading > strong > span {
    font-size: 24px;
  }
  .fmh-studio .fmh-overall-reading > span {
    font-size: 22px;
  }
  .fmh-overall-reading > span > small {
    font-size: 10px;
  }
  .fmh-studio .fmh-overall-tools {
    top: 18px;
    right: 17px;
  }
  .fmh-studio .fmh-overall-tools > .icon-button,
  .fmh-studio .fmh-overall-tools .fmh-rule > summary {
    width: 29px;
    height: 29px;
    border-radius: 10px;
  }
  .fmh-studio .fmh-review-invitation {
    padding: 17px;
    gap: 12px;
  }
  .fmh-studio .fmh-review-invitation .button {
    width: 100%;
    margin-top: 2px;
    justify-content: space-between;
  }
  .fmh-studio .fmh-progress {
    padding: 21px;
  }
  .fmh-studio .fmh-progress > header {
    min-height: 42px;
  }
  .fmh-studio .fmh-review-top {
    margin-bottom: 19px;
    gap: 8px;
  }
  .fmh-studio .fmh-review-top > .button {
    padding: 11px 13px;
    font-size: 12px;
  }
  .fmh-studio .fmh-review-top > span {
    padding: 8px 10px;
    font-size: 11px;
  }
  .fmh-studio .fmh-review-heading h1 {
    font-size: 29px;
  }
  .fmh-studio .fmh-review-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
  }
  .fmh-studio .fmh-review-queue {
    position: static;
    display: block;
    overflow: hidden;
    border-radius: 20px;
  }
  .fmh-queue-heading {
    padding: 15px 17px 12px;
  }
  .fmh-queue-heading h2 {
    font-size: 14px;
  }
  .fmh-queue-heading p {
    display: none;
  }
  .fmh-queue-heading > b {
    font-size: 20px;
  }
  .fmh-queue-position {
    padding: 8px 17px;
  }
  .fmh-queue-rows {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    max-height: none;
    scroll-snap-type: x proximity;
  }
  .fmh-studio .fmh-review-row {
    flex: 0 0 245px;
    margin: 0;
    min-height: 112px;
    padding: 14px 13px;
    scroll-snap-align: center;
  }
  .fmh-studio .fmh-review-row > .fmh-queue-person > strong {
    font-size: 13px;
  }
  .fmh-studio .fmh-review-row > .fmh-queue-person > span {
    font-size: 12px;
  }
  .fmh-studio .fmh-review-row small {
    margin-top: 8px;
  }
  .fmh-studio .fmh-decision-panel {
    padding: 23px 18px 0;
    border-radius: 22px;
  }
  .fmh-studio .fmh-choice .fmh-form-actions {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .fmh-studio .fmh-decision-person {
    padding-bottom: 20px;
  }
  .fmh-studio .fmh-decision-person > .avatar {
    width: 42px;
    height: 46px;
    border-radius: 15px;
  }
  .fmh-studio .fmh-decision-person h2 {
    font-size: 20px;
  }
  .fmh-studio .fmh-decision-person p {
    font-size: 11px;
  }
  .fmh-studio .fmh-decision-reasons {
    padding: 16px;
    margin-bottom: 23px;
  }
  .fmh-studio .fmh-choice h3 {
    font-size: 19px;
  }
  .fmh-studio .fmh-allocation-option {
    padding: 15px;
  }
  .fmh-requirement-workspace .fmh-workspace-title h1 {
    font-size: 25px;
  }
  .fmh-requirement-workspace .fmh-workspace-total {
    padding: 9px 12px;
  }
  .fmh-requirement-workspace .fmh-workspace-total > strong {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fmh-studio *,
  .fmh-requirement-workspace * {
    transition: none !important;
    animation: none !important;
  }
}
