.mold-standard-dialog {
  width: min(1120px, 96vw);
  max-width: 96vw;
  height: 94vh;
  height: 94dvh;
  max-height: 94vh;
  max-height: 94dvh;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  color: #172033;
  background: #eef2f6;
  box-shadow: 0 24px 80px #0f172a4d;
  overflow: hidden;
}
.mold-standard-dialog[open] { display: flex; flex-direction: column; }
.mold-standard-dialog::backdrop { background: #0f172ab3; }
.mold-standard-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid #d8e0ea;
  background: #fff;
}
.mold-standard-toolbar h2 { margin: 0; font-size: 19px; line-height: 1.4; }
.mold-standard-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  background: #f8fafc;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.mold-standard-close span { font-size: 24px; line-height: 1; font-weight: 400; }
.mold-standard-dialog :focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.mold-standard-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 24px; overscroll-behavior: contain; }
.mold-standard-paper { padding: 28px; border: 1px solid #d8e0ea; border-radius: 4px; background: #fff; box-shadow: 0 4px 18px #0f172a0a; }
.mold-standard-document-header { display: grid; grid-template-columns: 180px minmax(0, 1fr) 235px; align-items: center; gap: 18px; padding-bottom: 23px; border-bottom: 3px solid #1e3a5f; margin-bottom: 27px; }
.mold-standard-company { display: flex; flex-direction: column; gap: 5px; color: #1d4ed8; }
.mold-standard-company strong { font-size: 28px; letter-spacing: -.5px; font-weight: 900; }
.mold-standard-company small { font-size: 12px; font-weight: 700; letter-spacing: 0; }
.mold-standard-company span { color: #172033; font-size: 17px; font-weight: 700; }
.mold-standard-document-header h2 { margin: 0; font-size: 26px; line-height: 1.5; text-align: center; letter-spacing: -.6px; word-break: keep-all; }
.mold-standard-paper section + section { margin-top: 28px; }
.mold-standard-paper h3 { margin: 0 0 12px; color: #1e3a5f; font-size: 19px; line-height: 1.5; }
.mold-standard-table-scroll { overflow-x: auto; }
.mold-standard-paper table { width: 100%; min-width: 680px; border-collapse: collapse; table-layout: fixed; color: #172033; font-size: 15px; line-height: 1.65; }
.mold-standard-paper th, .mold-standard-paper td { padding: 10px 12px; border: 1px solid #cbd5e1; color: #172033; background: #fff; vertical-align: middle; white-space: normal; overflow-wrap: break-word; word-break: keep-all; }
.mold-standard-paper thead th { color: #243c58; background: #edf2f7; text-align: center; font-weight: 700; }
.mold-standard-paper tbody th { background: #f8fafc; text-align: center; font-weight: 600; }
.mold-standard-paper .mold-standard-approval { min-width: 0; width: 100%; font-size: 13px; }
.mold-standard-paper .mold-standard-approval th, .mold-standard-paper .mold-standard-approval td { height: 30px; padding: 4px; text-align: center; }
.mold-standard-paper .mold-standard-approval th[rowspan] { width: 28px; }
.mold-standard-paper .mold-standard-approval td { height: 44px; }
.mold-standard-evaluation td:last-child { text-align: center; font-weight: 700; }
.mold-standard-paper .mold-standard-table-note { color: #475569; background: #f4f7fb; font-size: 13px; font-weight: 400; text-align: left; }
.mold-standard-paper .mold-standard-grades td { text-align: center; }
.mold-standard-paper .mold-standard-grade-a { background: #e6f2e2; color: #235135; }
.mold-standard-paper .mold-standard-grade-b { background: #e8eefb; color: #254880; }
.mold-standard-paper .mold-standard-grade-c { background: #fff3cc; color: #795918; }
.mold-standard-paper .mold-standard-grade-d { background: #f5ddf8; color: #773b79; }
.mold-standard-requirements { list-style: none; margin: 0; padding: 16px 18px; border: 1px solid #cbd5e1; border-radius: 4px; background: #f8fafc; font-size: 14px; line-height: 1.9; word-break: keep-all; }
.mold-standard-requirements li + li { margin-top: 8px; }
.mold-standard-revision table { font-size: 14px; text-align: center; }
.mold-standard-revision td { height: 44px; text-align: center; }
@media (max-width: 900px) {
  .mold-standard-document-header { grid-template-columns: 1fr 235px; }
  .mold-standard-document-header h2 { grid-column: 1 / -1; grid-row: 1; }
  .mold-standard-company { grid-column: 1; }
}
@media (max-width: 600px) {
  .mold-standard-dialog { width: 98vw; max-width: 98vw; height: 96vh; height: 96dvh; max-height: 96vh; max-height: 96dvh; border-radius: 10px; }
  .mold-standard-toolbar { padding: 10px 12px; gap: 8px; }
  .mold-standard-toolbar h2 { font-size: 16px; }
  .mold-standard-close { padding: 7px 10px; gap: 8px; font-size: 14px; }
  .mold-standard-scroll { padding: 10px; }
  .mold-standard-paper { padding: 18px 12px; }
  .mold-standard-document-header { grid-template-columns: 1fr; gap: 16px; padding-bottom: 18px; margin-bottom: 23px; }
  .mold-standard-document-header h2 { font-size: 23px; }
  .mold-standard-company { align-items: center; }
  .mold-standard-company strong { font-size: 25px; }
  .mold-standard-company span { font-size: 16px; }
  .mold-standard-paper .mold-standard-approval { width: 235px; justify-self: center; }
  .mold-standard-paper h3 { font-size: 18px; }
  .mold-standard-paper th, .mold-standard-paper td { padding: 9px 10px; }
  .mold-standard-requirements { padding: 12px; font-size: 14px; }
}

/* 2026-11-03 revised standard and separate calculation evidence. */
.mold-standard-toolbar { flex-wrap: wrap; gap: 10px; }
.mold-standard-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.mold-standard-action { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: #f8fafc; color: #243c58; font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.mold-standard-action[aria-pressed="true"] { color: #fff; background: #1e3a5f; border-color: #1e3a5f; }
.mold-standard-paper[hidden] { display: none; }
.mold-standard-basis h2 { margin-top: 0; font-size: 23px; }
.mold-standard-basis h3 { margin-top: 24px; }
.mold-standard-basis p { font-size: 14px; line-height: 1.9; }
.mold-standard-basis a { color: #1d4ed8; overflow-wrap: anywhere; }
@media (max-width: 600px) { .mold-standard-actions { order: 3; flex-basis: 100%; margin-left: 0; } }
