/* Hardware records use the global font-size choice and share the formal workspace tokens. */
.hr-workspace {
  --hr-ink: #203b4d;
  --hr-muted: #60758a;
  --hr-line: #dfe8ef;
  --hr-blue: #1777b6;
  --hr-teal: #278c77;
  color: var(--hr-ink);
  min-width: 0;
  max-width: 1920px;
  margin: 0 auto;
  padding-bottom: 24px;
  font-size: 1rem;
}
.hr-workspace h1 {
  font-size: 1.9em;
  letter-spacing: -0.03em;
  margin: 4px 0 10px;
}
.hr-workspace h2 {
  font-size: 1.15em;
  margin: 0;
}
.hr-workspace h3 {
  font-size: 1em;
  margin: 20px 0 12px;
}
.hr-workspace p {
  line-height: 1.65;
}
.hr-workspace button,
.hr-workspace input,
.hr-workspace textarea,
.hr-workspace select {
  font: inherit;
}
.hr-workspace button {
  cursor: pointer;
  white-space: nowrap;
}
.hr-workspace button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.hr-workspace textarea:disabled,
.hr-workspace input:disabled,
.hr-workspace select:disabled {
  opacity: 1;
  color: var(--hr-ink);
  -webkit-text-fill-color: var(--hr-ink);
}
.hr-workspace input:not([type="checkbox"]),
.hr-workspace textarea,
.hr-workspace select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #ccdbe5;
  border-radius: 6px;
  padding: 9px 11px;
  background: #fff;
  color: var(--hr-ink);
}
.hr-workspace input:focus,
.hr-workspace textarea:focus,
.hr-workspace select:focus {
  outline: 2px solid #99c8e9;
  outline-offset: 1px;
}
.hr-workspace textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
  overflow: auto;
}
.hr-workspace input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--hr-blue);
  flex-shrink: 0;
}
.hr-workspace .hw-button {
  padding: 9px 13px;
  border-radius: 7px;
  line-height: 1.35;
}
.hr-workspace .hw-button + .hw-button {
  margin-left: 6px;
}
.hr-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 6px 0 24px;
}
.hr-heading p {
  color: var(--hr-muted);
  margin: 5px 0;
}
.hr-heading .hr-eyebrow {
  font-size: 0.73em;
  font-weight: 750;
  letter-spacing: 0.16em;
  color: var(--hr-teal);
}
.hr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.hr-actions .hw-button + .hw-button {
  margin-left: 0;
}
.hr-card {
  background: #fff;
  border: 1px solid var(--hr-line);
  border-radius: 12px;
  margin: 18px 0;
  padding: 22px;
  min-width: 0;
  box-shadow: 0 2px 5px #1a416803;
}
.hr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.hr-card-head > h2 {
  flex-shrink: 0;
}
.hr-card-head .hr-actions {
  justify-content: flex-end;
}
.hr-muted,
.hr-empty {
  color: var(--hr-muted);
  font-size: 0.87em;
}
.hr-empty {
  padding: 28px;
  text-align: center;
}
.hr-notice {
  padding: 12px 18px;
  border: 1px solid #b7d9ef;
  background: #edf7ff;
  color: #205275;
  margin-bottom: 18px;
  border-radius: 8px;
  white-space: pre-wrap;
}
.hr-error {
  background: #fff0f0;
  border: 1px solid #edb2b2;
  color: #a93232;
  border-radius: 7px;
  padding: 12px 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.hr-inline-alert {
  background: #fff8e6;
  border-left: 3px solid #dca43c;
  padding: 10px;
  margin: 12px 0;
  font-size: 0.9em;
  line-height: 1.6;
}
.hr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  border-radius: 5px;
  border: 1px solid #cedae4;
  padding: 3px 9px;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.5;
  background: #eff3f6;
  color: #486478;
  white-space: nowrap;
}
.hr-PASS,
.hr-FILED,
.hr-APPROVED,
.hr-FINAL {
  background: #e0f3e8;
  color: #24774e;
  border-color: #a9dcc2;
}
.hr-NG {
  background: #ffe9eb;
  color: #bc3745;
  border-color: #f0b9c0;
}
.hr-PENDING {
  background: #fff5db;
  color: #94600c;
  border-color: #ebd197;
}
.hr-RECORDED {
  background: #e8f0fa;
  color: #476d8d;
  border-color: #c8d9eb;
}
.hr-IN_PROGRESS {
  background: #e8f3ff;
  color: #186daa;
  border-color: #b4d6ef;
}
.hr-steps {
  display: flex;
  border: 1px solid var(--hr-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  margin: 24px 0;
}
.hr-steps > button,
.hr-steps > span {
  flex: 1;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 20px;
  border: 0;
  border-right: 1px solid var(--hr-line);
  background: transparent;
  font-size: 0.92em;
  font-weight: 650;
  color: #73879a;
}
.hr-steps b {
  display: grid;
  place-items: center;
  background: #f1f4f6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.hr-steps .active {
  background: #edf6ff;
  color: #195786;
}
.hr-steps .active b {
  background: #197abd;
  color: white;
}
.hr-steps .done {
  color: #357866;
}
.hr-steps .done b {
  background: #e6f4ef;
}
.hr-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}
.hr-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  align-self: start;
}
.hr-field > span {
  font-size: 0.87em;
  font-weight: 650;
  color: #40596c;
  min-height: 1.4em;
  line-height: 1.4;
}
.hr-field > span:empty {
  display: none;
}
.hr-wide {
  grid-column: 1/-1;
}
.hr-check {
  display: flex;
  gap: 8px;
  align-items: center;
  line-height: 1.5;
  font-size: 0.9em;
  min-height: 38px;
}
.hr-table-scroll {
  overflow: auto;
  border: 1px solid var(--hr-line);
  border-radius: 8px;
  max-width: 100%;
  overscroll-behavior: contain;
}
.hr-workspace .hw-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9em;
  table-layout: auto;
}
.hr-workspace .hw-table th {
  background: #f3f7fa;
  color: #5c7487;
  font-weight: 650;
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.hr-workspace .hw-table td {
  padding: 14px;
  vertical-align: top;
  border-bottom: 1px solid #edf1f5;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.hr-workspace .hw-table td .hr-field {
  min-width: 130px;
}
.hr-workspace .hw-table small {
  display: block;
  font-size: 0.8em;
  color: var(--hr-muted);
  margin: 5px 0;
  line-height: 1.55;
}
.hr-pagination {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 0 0;
  font-size: 0.87em;
}
.hr-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 26px 0 8px;
}
.hr-bottom > span {
  font-size: 0.87em;
  color: var(--hr-muted);
}
.hr-bottom > div {
  display: flex;
  gap: 8px;
}
.hr-background {
  background: #fff;
  border: 1px solid var(--hr-line);
  border-radius: 10px;
  margin: 20px 0;
}
.hr-background summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 0.92em;
}
.hr-background summary:before {
  content: "▸";
  color: #648596;
}
.hr-background[open] summary:before {
  content: "▾";
}
.hr-background summary > span {
  color: var(--hr-muted);
}
.hr-background .hr-link {
  margin-left: auto;
  color: var(--hr-blue);
}
.hr-background-body {
  border-top: 1px solid var(--hr-line);
  padding: 20px 22px;
  background: #fbfdfe;
  border-radius: 0 0 10px 10px;
}
.hr-description {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--hr-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.hr-description > div {
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f5;
  border-right: 1px solid #eef2f5;
  min-width: 0;
}
.hr-description dt {
  font-size: 0.8em;
  color: var(--hr-muted);
  margin-bottom: 6px;
}
.hr-description dd {
  margin: 0;
  font-size: 0.93em;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.hr-purpose {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 15px;
  margin: 16px 0;
  background: #eef5f8;
  border-radius: 8px;
  padding: 16px;
}
.hr-purpose p {
  margin: 0;
  white-space: pre-wrap;
}
.hr-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.hr-samples > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--hr-line);
  background: #fff;
  border-radius: 7px;
  padding: 12px 18px;
  min-width: 200px;
}
.hr-samples span {
  color: var(--hr-muted);
  font-size: 0.8em;
}
.hr-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
}
.hr-search {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: nowrap;
}
.hr-search > input {
  width: 290px !important;
  max-width: 36vw;
}
.hr-progress {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.hr-progress > strong {
  margin-right: 12px;
}
.hr-progress > span:not(.hr-badge) {
  font-size: 0.83em;
  color: var(--hr-muted);
}
.hr-progress [data-hr-save-status] {
  margin-left: auto;
}
.hr-batch {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin: 0 -22px 18px;
  background: #eef5fb;
  border-block: 1px solid #dbe8f2;
  font-size: 0.9em;
}
.hr-execution-scroll {
  max-height: 70vh;
}
.hr-execution-table {
  table-layout: fixed !important;
  min-width: 1320px;
}
.hr-execution-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}
.hr-col-module {
  width: 155px;
}
.hr-col-name {
  width: 265px;
}
.hr-col-values {
  width: 350px;
}
.hr-col-conclusion {
  width: 130px;
}
.hr-col-note {
  width: 270px;
}
.hr-col-files {
  width: 180px;
}
.hr-execution-table col:not([class]) {
  width: 160px;
}
.hr-execution-table td {
  padding: 18px 14px !important;
}
.hr-cell-name > .hw-button {
  white-space: normal;
  text-align: left;
  padding: 0 !important;
  border: 0 !important;
  color: var(--hr-blue);
  font-weight: 650;
  background: transparent !important;
  line-height: 1.6;
}
.hr-cell-name .hr-actions {
  gap: 10px;
  margin-top: 8px;
}
.hr-cell-name .hr-actions button {
  padding: 2px 0;
  border: 0;
  color: var(--hr-blue);
  font-size: 0.86em;
  box-shadow: none;
  background: transparent;
}
.hr-result-slot {
  margin-bottom: 16px;
}
.hr-result-slot:last-child {
  margin-bottom: 0;
}
.hr-result-slot > small {
  margin: 0 0 7px !important;
}
.hr-result-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.hr-result-field > span,
.hr-result-note > span {
  font-size: 0.8em;
  color: #526d82;
  line-height: 1.4;
  min-height: 1.4em;
}
.hr-result-field > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.hr-result-field input,
.hr-result-field select {
  max-width: 220px;
}
.hr-result-field textarea,
.hr-result-note textarea {
  height: 100px;
  min-height: 100px;
  max-width: 100%;
  resize: vertical;
}
.hr-result-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 25px;
}
.hr-result-note > span {
  display: none;
}
.hr-cell-conclusion {
  padding-top: 44px !important;
}
.hr-cell-files .hr-file-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 6px;
}
.hr-file-grid button {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hr-cell-files button {
  font-size: 0.85em;
  padding: 5px 8px !important;
  margin: 3px 0 !important;
}
.hr-result-field [data-hr-field-badge] {
  padding-top: 6px;
}
.hr-layer {
  position: fixed;
  inset: 0;
  background: #102b4280;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.hr-modal {
  background: white;
  box-shadow: 0 24px 80px #08243d40;
  border-radius: 14px;
  max-height: calc(100dvh - 48px);
  width: min(780px, 95vw);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.hr-modal-wide {
  width: min(1160px, 95vw);
}
.hr-modal > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hr-line);
  flex-shrink: 0;
  gap: 14px;
}
.hr-modal > header p {
  margin: 5px 0 0;
  color: var(--hr-muted);
  font-size: 0.85em;
}
.hr-modal-body {
  padding: 24px;
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
.hr-modal > footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 16px 24px;
  background: #f7f9fb;
  border-top: 1px solid var(--hr-line);
  flex-shrink: 0;
}
.hr-modal-body > .hr-field {
  margin-bottom: 18px;
}
.hr-modal-body > .hr-error {
  margin-bottom: 18px;
}
.hr-modal .hr-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hr-field-definition {
  border: 1px solid var(--hr-line);
  border-radius: 9px;
  padding: 18px;
  margin: 14px 0;
  background: #fcfdff;
}
.hr-field-definition .hr-card-head {
  margin-bottom: 14px;
}
.hr-field-definition .hr-form-grid {
  align-items: start;
}
.hr-field-definition .hr-wide {
  grid-column: span 1;
}
.hr-field-definition textarea {
  min-height: 90px;
}
.hr-read-block {
  border-bottom: 1px solid #e6edf2;
  padding: 16px 0;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
}
.hr-read-block h3 {
  margin: 0;
  font-size: 0.9em;
  color: #60778a;
}
.hr-read-block p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hr-history {
  border: 1px solid var(--hr-line);
  padding: 14px;
  border-radius: 7px;
  margin: 12px 0;
}
.hr-history summary {
  cursor: pointer;
  font-weight: 650;
}
.hr-column-list,
.hr-config-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 15px;
}
.hr-column-list > div,
.hr-config-columns > div {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--hr-line);
  padding: 6px 0;
}
.hr-column-list label,
.hr-config-columns label {
  flex: 1;
}
.hr-column-list button,
.hr-config-columns button {
  padding: 4px 8px !important;
}
.hr-attachment-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.hr-attachment-list article {
  padding: 12px;
  border: 1px solid var(--hr-line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hr-attachment-list img {
  height: 150px;
  width: 100%;
  object-fit: contain;
  background: #f1f5f8;
}
.hr-preview-image,
.hr-modal video {
  display: block;
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  margin: auto;
}
.hr-modal iframe {
  width: 100%;
  height: 65vh;
  border: 0;
}
.hr-exports {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
  padding: 15px;
  background: #eaf4ed;
  border-radius: 8px;
}
.hr-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.hr-stats article {
  border: 1px solid var(--hr-line);
  border-radius: 10px;
  background: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hr-stats article > span {
  font-size: 0.84em;
  color: var(--hr-muted);
}
.hr-stats strong {
  font-size: 1.9em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.hr-stats small {
  font-size: 0.75em;
  line-height: 1.6;
  color: var(--hr-muted);
}
.hr-filters {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.hr-filters .hr-field {
  flex: 1;
  min-width: 160px;
  align-self: end;
}
.hr-analysis-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}
.hr-analysis-grid .hr-card {
  margin: 0;
}
.hr-bars > div {
  display: grid;
  grid-template-columns: 140px 1fr 80px;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  font-size: 0.85em;
}
.hr-bars > div > span:first-child {
  overflow-wrap: anywhere;
}
.hr-chart-track {
  height: 24px;
  position: relative;
  background: #f4f7fa;
  border-radius: 3px;
  overflow: hidden;
}
.hr-chart-track i,
.hr-chart-track b {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #dcecff;
  border-radius: 3px;
}
.hr-chart-track b {
  height: 9px;
  top: 8px;
  background: var(--hr-teal);
}
.hr-distribution > div {
  display: grid;
  grid-template-columns: 88px 45px 1fr;
  gap: 15px;
  align-items: center;
  margin: 16px 0;
}
.hr-distribution-track {
  height: 12px;
  background: #f3f6f8;
  border-radius: 3px;
}
.hr-distribution-track i {
  height: 100%;
  display: block;
  border-radius: 3px;
}
.hr-distribution-track .hr-PASS {
  background: #4fa986;
}
.hr-distribution-track .hr-NG {
  background: #d65b6c;
}
.hr-distribution-track .hr-PENDING {
  background: #e5b752;
}
.hr-distribution-track .hr-RECORDED {
  background: #7b9bb6;
}
.hr-definitions summary {
  font-weight: 650;
  cursor: pointer;
}
.hr-definitions p {
  color: var(--hr-muted);
  font-size: 0.87em;
}
.hr-gantt-legend {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.82em;
  color: var(--hr-muted);
  margin: 16px 0;
}
.hr-gantt-legend span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.hr-gantt-legend i {
  width: 24px;
  height: 9px;
  display: inline-block;
  border-radius: 2px;
}
.hr-gantt-scroll {
  overflow: auto;
  border: 1px solid var(--hr-line);
  border-radius: 8px;
}
.hr-gantt {
  min-width: 900px;
}
.hr-gantt-axis,
.hr-gantt-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}
.hr-gantt-axis {
  padding: 14px;
  background: #f4f8fb;
  border-bottom: 1px solid var(--hr-line);
  font-size: 0.82em;
}
.hr-gantt-axis > div {
  display: flex;
  justify-content: space-between;
}
.hr-gantt-row {
  border-bottom: 1px solid var(--hr-line);
  min-height: 66px;
  padding: 10px 14px;
  align-items: center;
  gap: 0;
}
.hr-gantt-row strong {
  font-size: 0.87em;
  font-weight: 600;
  display: block;
  max-width: 280px;
  overflow-wrap: anywhere;
}
.hr-gantt-row small {
  font-size: 0.75em;
  color: var(--hr-muted);
  display: block;
  margin-top: 4px;
}
.hr-gantt-lanes {
  background: repeating-linear-gradient(
    to right,
    #eaf0f5 0,
    #eaf0f5 1px,
    transparent 1px,
    transparent 12.5%
  );
}
.hr-gantt-lanes > div {
  height: 19px;
  position: relative;
}
.hr-gantt-bar {
  position: absolute;
  height: 11px;
  top: 4px;
  border-radius: 3px;
}
.hr-gantt .plan,
.hr-gantt-legend .plan {
  background: #bed8f6;
}
.hr-gantt .actual,
.hr-gantt-legend .actual {
  background: #329779;
}
.hr-gantt .late,
.hr-gantt-legend .late {
  background: #d35d62;
}
.hr-config-layout {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 26px;
}
.hr-config-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 86px;
  padding: 4px 0;
}
.hr-config-nav > p {
  margin: 0 14px 10px;
  color: var(--hr-muted);
  font-size: 0.8em;
}
.hr-config-nav button {
  display: flex;
  align-items: start;
  gap: 12px;
  width: 100%;
  text-align: left;
  white-space: normal;
  padding: 16px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--hr-ink);
}
.hr-config-nav button:hover {
  background: #edf3f7;
}
.hr-config-nav button[aria-current] {
  background: #e7f2ef;
  border-color: #bddbd1;
  color: #1d6856;
}
.hr-config-nav button strong {
  display: block;
  font-size: 0.96em;
}
.hr-config-nav button small {
  display: block;
  margin-top: 6px;
  font-size: 0.76em;
  line-height: 1.6;
  color: var(--hr-muted);
}
.hr-config-nav-number {
  font-size: 0.8em;
  padding-top: 3px;
  opacity: 0.72;
}
.hr-config-nav-note {
  border-top: 1px solid var(--hr-line);
  margin: 20px 12px 0;
  padding-top: 16px;
  color: var(--hr-muted);
  font-size: 0.79em;
  line-height: 1.9;
}
.hr-config-main {
  min-width: 0;
}
.hr-config-panel {
  margin: 0;
  min-height: 460px;
  padding: 28px;
}
.hr-config-section-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 22px;
}
.hr-config-section-heading > div:first-child {
  flex: 1;
  min-width: 240px;
}
.hr-config-section-heading p {
  color: var(--hr-muted);
  font-size: 0.86em;
  margin: 10px 0 0;
  max-width: 70ch;
}
.hr-config-section-heading h3,
.hr-config-group > h3 {
  margin: 0 0 12px;
}
.hr-config-panel .hr-table-scroll {
  max-height: 60vh;
}
.hr-config-option-text {
  display: block;
  min-width: 80px;
  max-width: 290px;
  overflow-wrap: anywhere;
}
.hr-config-state {
  color: #247458;
  font-size: 0.86em;
  white-space: nowrap;
}
.hr-config-state.is-off {
  color: #748493;
}
.hr-config-empty {
  padding: 48px 28px;
  background: #f6f9fa;
  border-radius: 8px;
  text-align: center;
}
.hr-config-empty p {
  color: var(--hr-muted);
  font-size: 0.87em;
  max-width: 56ch;
  margin: 14px auto 0;
}
.hr-config-group + .hr-config-group {
  border-top: 1px solid var(--hr-line);
  padding-top: 24px;
  margin-top: 28px;
}
.hr-config-toggle {
  padding: 10px 0;
}
.hr-config-toggle .hr-check {
  font-weight: 600;
}
.hr-config-toggle p {
  color: var(--hr-muted);
  font-size: 0.83em;
  margin: 0 0 0 24px;
}
.hr-config-panel .hr-config-columns {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
  border: 1px solid var(--hr-line);
  border-radius: 8px;
  overflow: auto;
  max-height: 480px;
  overscroll-behavior: contain;
}
.hr-config-panel .hr-config-column {
  padding: 8px 14px;
  gap: 14px;
  min-height: 52px;
}
.hr-config-column:last-child {
  border-bottom: 0;
}
.hr-config-column.is-hidden {
  background: #f8fafb;
}
.hr-config-order {
  color: var(--hr-muted);
  font-size: 0.8em;
  min-width: 22px;
  font-variant-numeric: tabular-nums;
}
.hr-config-column-state {
  font-size: 0.78em;
  color: var(--hr-muted);
}
.hr-config-panel .hr-config-columns button {
  padding: 6px 10px !important;
}
.hr-config-fields {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 850px;
}
.hr-config-fields > .hr-field {
  align-self: stretch;
}
.hr-config-fields p {
  margin: 8px 0 0;
}
.hr-config-fields textarea {
  min-height: 110px;
}
.hr-config-file-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px;
  border: 1px solid var(--hr-line);
  border-radius: 8px;
  background: #f7fafb;
}
.hr-config-file-action p {
  color: var(--hr-muted);
  font-size: 0.85em;
  margin: 8px 0 0;
}
.hr-config-legacy {
  border-top: 1px solid var(--hr-line);
  padding-top: 24px;
  margin-top: 28px;
}
.hr-config-legacy summary {
  cursor: pointer;
  color: var(--hr-muted);
  font-size: 0.87em;
}
.hr-config-savebar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid var(--hr-line);
  border-radius: 10px;
  box-shadow: 0 -4px 18px #203b4d08;
  margin-top: 18px;
}
.hr-config-savebar strong {
  display: block;
  font-size: 0.88em;
  font-weight: 600;
}
.hr-config-savebar span {
  display: block;
  font-size: 0.78em;
  color: var(--hr-muted);
  margin-top: 6px;
  line-height: 1.5;
}
@media (max-width: 1350px) {
  .hr-config-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
  }
  .hr-config-panel {
    padding: 22px;
  }
  .hr-config-nav button {
    gap: 8px;
    padding: 14px 10px;
  }
  .hr-config-column-state {
    display: none;
  }
  .hr-config-savebar {
    padding: 16px;
  }
}
@media (max-width: 1450px) {
  .hr-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hr-stats article {
    padding: 15px;
  }
  .hr-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hr-description {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hr-heading {
    gap: 14px;
  }
  .hr-heading .hr-actions {
    max-width: 46%;
  }
  .hr-steps > button,
  .hr-steps > span {
    padding: 16px 12px;
    gap: 8px;
  }
  .hr-analysis-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hr-bars > div {
    grid-template-columns: 100px 1fr 65px;
  }
  .hr-read-block {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

body.hr-dialog-open {
  overflow: hidden;
}
#hr-dialog-portal .hr-layer {
  z-index: 10020;
}
#hr-dialog-portal {
  font-size: var(--font-size-base, 1rem);
}
/* Scale the dialog content, leaving its fixed mask in physical viewport pixels. */
#hr-dialog-portal .hr-modal {
  zoom: var(--portal-font-scale, 1);
  max-width: calc((100vw - 48px) / var(--portal-font-scale, 1));
  max-height: calc((100dvh - 48px) / var(--portal-font-scale, 1));
}

.hr-chart-track,
.hr-distribution-track,
.hr-gantt-lane {
  display: block;
  width: 100%;
}
.hr-gantt-lane {
  height: 19px;
}
.hr-col-select {
  width: 48px;
}

.hr-result-note {
  padding-top: 0;
  gap: 0;
}
.hr-result-note > small {
  margin: 0 0 7px !important;
}
.hr-result-note > span {
  display: block;
  margin-bottom: 6px;
}

/* Compact option dictionaries: independent lists, bounded rows, consistent actions. */
.hr-option-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.hr-option-card { min-width:0; border:1px solid var(--hr-line, #e1e8ed); border-radius:12px; background:#fff; overflow:hidden; display:flex; flex-direction:column; }
.hr-option-card > header { display:flex; justify-content:space-between; align-items:start; gap:10px; padding:18px 20px; background:#f7fafb; border-bottom:1px solid var(--hr-line, #e1e8ed); }
.hr-option-card h3 { margin:0; display:flex; align-items:center; gap:10px; font-size:1em; }
.hr-option-card header p { margin:7px 0 0; color:var(--hr-muted); font-size:.85em; }
.hr-option-count { display:inline-flex; padding:2px 8px; border-radius:20px; background:#e5f2f3; color:#147986; font-size:.75em; font-weight:500; white-space:nowrap; }
.hr-option-list { padding:10px 16px; flex:1; }
.hr-option-row { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:8px; padding:6px 0; }
.hr-option-index { color:#83939e; font-size:.8em; font-variant-numeric:tabular-nums; }
.hr-option-row input { min-width:0; width:100%; padding:9px 10px; border:1px solid #dce6ec; border-radius:6px; background:#fff; font:inherit; }
.hr-option-row input:focus { outline:2px solid #b1dadf; outline-offset:1px; border-color:#168594; }
.hr-option-actions { display:flex; gap:3px; }
.hr-option-actions .hw-button { padding:0; width:28px; min-height:30px; border-color:transparent; background:transparent; color:#66808e; box-shadow:none; font-size:1em; }
.hr-option-actions .hw-button:hover:not(:disabled) { background:#eaf4f5; color:#087c88; }
.hr-option-actions .hw-button:last-child:hover { background:#fff0ee; color:#b3483c; }
.hr-option-actions .hw-button:disabled { opacity:.28; }
.hr-option-card > footer { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 16px; border-top:1px solid #edf1f4; flex-wrap:wrap; }
.hr-option-card > footer > .hw-button { color:#087c88; border-color:#d8eaed; background:#f2f9fa; }
.hr-option-pager { display:flex; align-items:center; gap:8px; font-size:.8em; color:var(--hr-muted); }
.hr-option-pager .hw-button { font-size:inherit; padding:5px 7px; }
.hr-option-empty { min-height:112px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:9px; color:#8194a0; text-align:center; }
.hr-option-empty strong { font-size:.9em; font-weight:500; }
.hr-option-empty span { font-size:.8em; }
.hr-option-help { font-size:.85em; color:var(--hr-muted); line-height:1.8; margin:18px 0 0; }
@media (max-width:1450px) {
 .hr-option-grid { gap:14px; }
 .hr-option-card > header { padding:14px; }
 .hr-option-list { padding:8px 12px; }
 .hr-option-row { grid-template-columns:20px minmax(0,1fr) auto; gap:5px; }
 .hr-option-actions { gap:1px; }
 .hr-option-actions .hw-button { width:24px; }
}

.hr-option-card .hr-option-row input { min-height:34px; padding:6px 8px; }

/* Planning ledger and meeting materials share desktop-scale, scroll-safe geometry. */
.hr-section-head,.hr-ledger-tools,.hr-report-actions {display:flex;gap:12px;align-items:center;flex-wrap:wrap;justify-content:space-between;margin-bottom:16px}
.hr-section-head h2 {margin:0}.hr-ledger-tools label {min-width:100px;max-width:200px}.hr-ledger-tools>span {margin-right:auto}
.hr-plan-ledger-scroll {max-height:clamp(320px,58vh,920px);overflow:auto;border:1px solid var(--hr-line);border-radius:8px}
.hr-plan-ledger-scroll table {width:100%;min-width:var(--ledger-table-width,1200px);table-layout:fixed;border-collapse:separate;border-spacing:0}
.hr-plan-ledger-scroll th {position:sticky;top:0;z-index:3;background:#f3f7fa}.hr-plan-ledger-scroll .hw-task-number {position:sticky;left:0;background:white;z-index:2}.hr-plan-ledger-scroll th.hw-task-number {z-index:4;background:#f3f7fa}
.hr-plan-ledger-scroll th,.hr-plan-ledger-scroll td {padding:14px;overflow-wrap:anywhere;border-bottom:1px solid var(--hr-line)}.hr-plan-ledger-scroll small {display:block;margin-top:6px;color:var(--hr-muted)}
.hr-gantt {min-width:1550px}.hr-gantt-axis,.hr-gantt-row {grid-template-columns:820px minmax(650px,1fr)}
.hr-gantt-meta {display:grid!important;grid-template-columns:48px minmax(180px,1fr) 110px 175px 175px;gap:12px;align-items:center;font-size:.82em;padding-right:16px}
.hr-gantt-meta strong {font-size:1em}.hr-gantt-meta small {font-size:1em}.hr-gantt-axis>div:last-child {font-size:.85em}
.hr-exports {position:sticky;top:0;z-index:8;border:1px solid #b5d9cf;background:#eff8f4;box-shadow:0 3px 12px #173f5410;margin-bottom:18px;max-height:150px;overflow:auto}
.hr-meeting-report {max-width:1320px;margin:24px auto;background:white;border:1px solid var(--hr-line);box-shadow:0 8px 30px #19354a08;border-radius:12px;padding:clamp(24px,3vw,54px)}
.hr-meeting-report>header {border-bottom:3px solid #238b83;padding-bottom:24px;margin-bottom:30px}.hr-meeting-report h1 {font-size:1.85rem;margin:12px 0}.hr-meeting-report h2 {font-size:1.12rem;color:#176e6b;margin:0 0 18px}.hr-meeting-report section {margin:32px 0}.hr-meeting-report>footer {border-top:1px solid var(--hr-line);padding-top:18px;color:var(--hr-muted);font-size:.82em}
.hr-report-narrative {white-space:pre-wrap;line-height:1.85;overflow-wrap:anywhere;margin:0 0 18px}.hr-meeting-kpis {display:grid;grid-template-columns:repeat(4,1fr);background:#f1f7f7;border-radius:8px;padding:22px;gap:24px}.hr-meeting-kpis b,.hr-meeting-kpis small {display:block}.hr-meeting-kpis b {font-size:1.8rem;margin-top:6px}.hr-brief-editor {display:grid;gap:18px}.hr-brief-editor textarea {min-height:100px}.hr-meeting-report .hr-table-wrap {max-height:none}
.hr-plan-detail-table table {min-width:1450px;table-layout:fixed}
.hr-plan-detail-table th:first-child {width:64px}.hr-plan-detail-table th:nth-child(2) {width:240px}.hr-plan-detail-table th:nth-child(3) {width:135px}
.hr-plan-detail-table th:nth-child(4),.hr-plan-detail-table th:nth-child(5) {width:220px}.hr-plan-detail-table th:nth-child(6),.hr-plan-detail-table th:nth-child(7) {width:180px}.hr-plan-detail-table th:last-child {width:210px}
.hr-plan-detail-table input {min-width:0;width:100%}.hr-plan-detail-table td {vertical-align:top}

.hr-download-progress { position: fixed; z-index: 10020; top: 88px; right: 24px; width: min(380px, calc(100vw - 48px)); padding: 18px; border: 1px solid #b9d6dc; border-radius: 14px; background: #fff; box-shadow: 0 18px 60px #123c4c38; color: #234552; }
.hr-download-progress strong { font-size: 1.2rem; }
.hr-download-progress p { line-height: 1.7; margin: 12px 0 18px; }
.hr-download-progress button { padding: 8px 16px; border: 1px solid #d9e4e8; border-radius: 8px; background: #f5f9fa; color: #345864; cursor: pointer; }
.hr-exports > summary { cursor: pointer; font-weight: 600; }
.hr-exports > div { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
details.hr-exports { display: block; }

.hr-record-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin: -8px 0 20px; }
.hr-record-tools > .hr-actions { margin: 0; }
.hr-record-tools > .hr-actions > span { color: var(--hr-muted); font-size: .88em; }
.hr-record-state { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hr-record-state > span:not(.hr-badge) { font-size: .88em; }
.hr-execution-footer { justify-content: flex-end; }

.hr-export-field { display: grid; gap: 10px; margin: 24px 0 12px; font-weight: 600; }
.hr-export-field select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--hr-line); border-radius: 8px; background: #fff; color: inherit; font: inherit; }
.hr-export-video { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-weight: 600; }

.hr-save-feedback { align-self: center; color: var(--hr-text, #234552); font-size: .92em; overflow-wrap: anywhere; }
.hr-reference-case { border: 1px solid var(--hr-line); border-radius: 10px; margin: 12px 0; }
.hr-reference-case > summary { cursor: pointer; padding: 16px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; background: #f4f8fa; }
.hr-reference-case > summary span { color: var(--hr-muted); }
.hr-reference-case > div, .hr-reference-sample { padding: 18px; }
.hr-reference-sample { border-bottom: 1px solid var(--hr-line); }
.hr-reference-case .hr-read-block p, .hr-description dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.hr-execution-footer { justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hr-reference-case > summary:focus-visible, .hr-steps > button:focus-visible { outline: 2px solid #2479b8; outline-offset: 2px; }
.hr-execution-footer > div { flex-wrap: wrap; min-width: 0; max-width: 100%; align-items: center; }
.hr-save-feedback { max-width: 480px; }
