:root {
  --primary: #1f6feb;
  --primary-soft: #e8f2ff;
  --text: #17233d;
  --muted: #637083;
  --border: #dce3ec;
  --bg: #f5f7fb;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif; }
button, input, select { font: inherit; }
button { border: 0; border-radius: 10px; background: var(--primary); color: #fff; padding: 9px 14px; cursor: pointer; font-weight: 600; }
button:hover { filter: brightness(.96); }
button:disabled { cursor: not-allowed; opacity: .55; }
.ghost-button { background: #eef3f9; color: var(--text); }
.added-button, .added-button:hover { background: #e8eef7; color: #637083; filter: none; }
.safety-tool-shell { min-height: 100vh; padding: 18px; }
.tool-layout { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.tool-panel, .tool-preview { background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 30px rgba(20, 35, 65, .06); }
.tool-panel { padding: 16px; position: static; max-height: none; overflow: visible; }
.panel-title, .preview-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title span, .preview-toolbar strong { font-size: 18px; font-weight: 800; }
label { display: block; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
input, select { width: 100%; margin-top: 6px; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; background: #fff; color: var(--text); outline: none; }
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,111,235,.12); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid[hidden] { display: none !important; }
.sign-list { display: grid; gap: 8px; max-height: 430px; overflow: auto; padding-right: 4px; }
.sign-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--border); border-radius: 12px; background: #fbfdff; }
.sign-row:hover { border-color: rgba(31,111,235,.55); }
.sign-meta strong { display: block; font-size: 14px; }
.sign-meta span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.mini-symbol { width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px; background: #fff; }
.tool-preview { padding: 16px; min-width: 0; }
.preview-toolbar { flex-wrap: wrap; }
.preview-toolbar span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.preview-zoom { display: flex; align-items: center; justify-content: flex-end; gap: 6px; width: 100%; }
.preview-zoom button { min-width: 40px; min-height: 40px; padding: 6px 10px; }
.preview-zoom span { min-width: 52px; color: var(--muted); font-size: 13px; text-align: center; }
.board-stage { position: relative; min-width: 1px; min-height: 1px; }
.export-board { transform-origin: left top; }
.selected-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; margin-bottom: 12px; }
.selected-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; background: var(--primary-soft); color: #17406f; font-size: 13px; }
.selected-pill button { width: 20px; height: 20px; padding: 0; border-radius: 50%; background: rgba(23,64,111,.18); color: #17406f; }
.board-scroll { width: 100%; overflow: auto; border: 1px dashed #c8d4e3; border-radius: 14px; background: #e8eef5; padding: 18px; }
.export-board { width: max-content; min-height: 0; margin: auto; padding: 0; background: transparent; color: #111; border: 0; transform-origin: top left; display: flex; flex-direction: column; gap: 18px; overflow: visible; }
.board-page { background: #fff; color: #111; border: 0; display: flex; flex-direction: column; overflow: hidden; break-after: page; page-break-after: always; }
.board-page:last-child { break-after: auto; page-break-after: auto; }
.board-page h2 { flex: 0 0 auto; margin: 0 0 28px; text-align: center; font-size: 30px; letter-spacing: 2px; line-height: 1.2; }
.board-grid { flex: 1 1 auto; min-height: 0; display: grid; align-items: center; justify-content: center; justify-items: center; }
.board-grid.layout-horizontal { grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); }
.board-grid.layout-vertical { grid-template-columns: 1fr !important; }
.board-sign { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; break-inside: avoid; overflow: visible; }
.board-symbol { display: flex; align-items: center; justify-content: center; overflow: visible; background: transparent; width: 100%; max-height: 100%; }
.mini-symbol .sign-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.board-symbol .sign-image { display: block; width: 100%; height: auto; object-fit: contain; }
.sign-image-fallback { display: none; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 6px; box-sizing: border-box; border: 1px dashed #cbd5e1; color: var(--muted); font-weight: 700; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
.mini-symbol .sign-image-fallback { font-size: 11px; }
.board-symbol .sign-image-fallback { min-height: 120px; font-size: 16px; }
.sign-title { text-align: center; font-weight: 800; line-height: 1.25; }
.sign-code { color: #666; font-size: .75em; font-weight: 600; }
.symbol-warning { width: 0; height: 0; border-left: 55px solid transparent; border-right: 55px solid transparent; border-bottom: 96px solid #f6c343; position: relative; filter: drop-shadow(0 0 0 #111); }
.symbol-warning:before { content: ""; position: absolute; left: -46px; top: 14px; width: 92px; height: 80px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: #111; z-index: -1; }
.symbol-warning:after { content: "!"; position: absolute; left: -9px; top: 34px; color: #111; font-size: 48px; font-weight: 900; }
.symbol-prohibition { width: 106px; height: 106px; border: 14px solid #d71920; border-radius: 50%; position: relative; }
.symbol-prohibition:before { content: ""; position: absolute; left: 6px; right: 6px; top: 37px; height: 14px; background: #d71920; transform: rotate(-45deg); transform-origin: center; }
.symbol-prohibition:after { content: ""; position: absolute; left: 34px; top: 28px; width: 20px; height: 34px; background: #111; border-radius: 10px 10px 4px 4px; }
.symbol-mandatory { width: 108px; height: 108px; border-radius: 50%; background: #005bac; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 66px; font-weight: 900; }
.symbol-mandatory:after { content: "!"; }
.symbol-condition { width: 128px; height: 92px; border-radius: 6px; background: #159447; position: relative; }
.symbol-condition:before { content: ""; position: absolute; left: 22px; top: 22px; width: 38px; height: 48px; border: 8px solid #fff; border-right: 0; }
.symbol-condition:after { content: "→"; position: absolute; right: 22px; top: 12px; color: #fff; font-size: 62px; font-weight: 900; }
.tool-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-state { color: var(--muted); text-align: center; padding: 28px 0; }
@media (min-width: 981px) {
  .tool-panel { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: 12px 16px; align-items: start; }
  .tool-panel .panel-title { grid-column: 1 / -1; margin-bottom: 0; }
  .tool-panel > label:first-of-type { grid-column: 1; grid-row: 2; margin-bottom: 0; }
  .tool-panel .form-grid { grid-column: 1; grid-row: 3 / span 1; }
  .tool-panel > label:nth-of-type(2) { grid-column: 2; grid-row: 2; margin-bottom: 0; }
  .tool-panel > label:nth-of-type(3) { grid-column: 2; grid-row: 3; margin-bottom: 0; }
  .tool-panel .sign-list { grid-column: 2; grid-row: 4 / span 2; max-height: 360px; }
}
@media (max-width: 980px) {
  .safety-tool-shell { padding: 10px; }
  .tool-panel { position: static; max-height: none; }
  .preview-actions button { flex: 1 1 calc(50% - 8px); }
}
@media (max-width: 600px) { html, body { width: 100%; max-width: 100%; overflow-x: hidden; } .safety-tool-shell { min-height: 100dvh; padding: 8px 8px calc(18px + env(safe-area-inset-bottom)); } .tool-layout { gap: 10px; } .tool-panel, .tool-preview { width: 100%; min-width: 0; border-radius: 8px; box-shadow: none; padding: 12px; } .panel-title, .preview-toolbar { align-items: stretch; flex-direction: column; gap: 10px; } .panel-title button { width: 100%; min-height: 44px; } .form-grid { grid-template-columns: 1fr; gap: 0; } input, select { min-height: 44px; font-size: 16px; } .sign-list { max-height: min(52dvh, 430px); padding-right: 0; } .sign-row { grid-template-columns: 50px minmax(0, 1fr) 68px; gap: 8px; padding: 8px; border-radius: 8px; } .mini-symbol { width: 48px; height: 48px; } .sign-row > button { width: 68px; min-height: 44px; padding: 8px 6px; } .sign-meta { min-width: 0; } .sign-meta strong, .sign-meta span { overflow-wrap: anywhere; } .preview-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; } .preview-zoom { display: grid; grid-template-columns: minmax(0, 1fr) 44px 54px 44px; } .preview-zoom button { width: 100%; min-height: 44px; } .preview-actions button { width: 100%; min-height: 44px; padding: 8px; } .selected-list { display: grid; grid-template-columns: 1fr; } .selected-pill { width: 100%; min-width: 0; justify-content: space-between; border-radius: 8px; overflow-wrap: anywhere; } .selected-pill button { flex: 0 0 36px; width: 36px; height: 36px; font-size: 22px; } .board-scroll { display: block; width: 100%; max-width: 100%; min-width: 0; padding: 10px; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; contain: inline-size; } .export-board { margin: 0; max-width: none; } .tool-note { overflow-wrap: anywhere; } } @media (max-width: 370px) { .preview-actions { grid-template-columns: 1fr; } .sign-row { grid-template-columns: 46px minmax(0, 1fr) 62px; } .mini-symbol { width: 44px; height: 44px; } .sign-row > button { width: 62px; } }
/* Standards lookup surface. Keep this scope separate from the sign-board UI. */
.safety-tool-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  margin-bottom: 16px;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #eaf0f7;
}
.safety-tool-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.safety-tool-tab:hover { background: rgba(255,255,255,.72); color: var(--text); filter: none; }
.safety-tool-tab.is-active {
  border-color: #c8dbf5;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(31,111,235,.12);
}
.safety-tool-panel[hidden], .standard-modal[hidden], .standards-toolbar-actions [hidden] { display: none !important; }
body.standard-modal-open { overflow: hidden; }

.standards-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(20,35,65,.06);
}
.standards-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1f6;
}
.standards-toolbar h2 { margin: 0; color: var(--text); font-size: 20px; line-height: 1.3; }
.standards-toolbar p { max-width: 720px; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.standards-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.standards-primary-button,
.standards-secondary-button,
.standard-action-button,
.standard-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.standards-primary-button, .standard-action-button.is-primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.standards-primary-button:hover, .standard-action-button.is-primary:hover { background: #185fc9; color: #fff; filter: none; }
.standards-secondary-button, .standard-action-button { border-color: var(--border); background: #f7f9fc; color: var(--text); }
.standards-secondary-button:hover, .standard-action-button:hover { border-color: #b8cce5; background: #edf4fc; color: var(--primary); filter: none; }
.standards-primary-button:disabled,
.standards-secondary-button:disabled,
.standard-action-button:disabled,
.standard-inline-button:disabled,
.standard-modal-close:disabled { cursor: not-allowed; opacity: .58; filter: none; }
.standard-action-button.is-danger { border-color: #f0b9bd; background: #fff5f5; color: #c53030; }
.standard-action-button.is-danger:hover { border-color: #dc7b81; background: #ffe9ea; color: #a61b23; }
.standards-primary-button:focus-visible,
.standards-secondary-button:focus-visible,
.standard-action-button:focus-visible,
.standard-inline-button:focus-visible,
.safety-tool-tab:focus-visible,
.standard-modal-close:focus-visible { outline: 3px solid rgba(31,111,235,.22); outline-offset: 2px; }
.standards-search-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
}
.standards-search-row input { min-height: 40px; margin-top: 0; }
.standards-feedback { min-height: 0; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.standards-feedback:empty { display: none; }
.standards-feedback.is-info { color: #35658e; }
.standards-feedback.is-success { color: #237a4b; }
.standards-feedback.is-error { color: #b4232d; }
.standards-list { display: grid; gap: 10px; margin-top: 14px; }
.standard-row {
  display: grid;
  grid-template-columns: 60px minmax(0,1fr) auto;
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.standard-row:hover { border-color: #b9cde6; box-shadow: 0 6px 18px rgba(23,35,61,.06); transform: translateY(-1px); }
.standard-file-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border: 1px solid #c9d8eb;
  border-radius: 10px;
  background: #edf4fc;
  color: #2b5c91;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: anywhere;
}
.standard-file-pdf { border-color: #f2b6b6; background: #fff0f0; color: #b4232d; }
.standard-file-jpg, .standard-file-jpeg, .standard-file-png, .standard-file-webp { border-color: #b8dfc5; background: #eefaf1; color: #257443; }
.standard-row-content { min-width: 0; }
.standard-row-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 10px; min-width: 0; }
.standard-row-heading h3 { min-width: 0; margin: 0; color: var(--text); font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.standard-keywords {
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0f4f9;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.standard-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.standard-meta span { overflow-wrap: anywhere; }
.standard-description { margin: 8px 0 0; color: #4f5f73; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.standard-review-note { margin: 8px 0 0; color: #875800; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.standard-file-status { margin-top: 10px; }
.standard-file-ready, .standard-file-pending {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.standard-file-ready { background: #e9f8ee; color: #237a4b; }
.standard-file-pending { background: #f0f3f7; color: var(--muted); }
.standard-upload-state {
  max-width: 520px;
  padding: 9px 10px;
  border: 1px solid #dce3ec;
  border-radius: 9px;
  background: #f8fafc;
}
.standard-upload-state.is-success { border-color: #b8dfc5; background: #f1fbf4; color: #237a4b; }
.standard-upload-state.is-warning { border-color: #f0d79c; background: #fffaf0; color: #8a5a00; }
.standard-upload-state.is-danger { border-color: #f2b6b6; background: #fff5f5; color: #b4232d; }
.standard-upload-state.is-muted { color: var(--muted); }
.standard-upload-state-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; }
.standard-upload-state-line strong { font-variant-numeric: tabular-nums; }
.standard-progress { height: 7px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #e1e8f0; }
.standard-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #d99a19; transition: width .28s ease; }
.standard-upload-state.is-success .standard-progress i { background: #2f9e5b; }
.standard-upload-state.is-danger .standard-progress i { background: #d34c55; }
.standard-upload-state small { display: block; margin-top: 6px; color: inherit; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.standard-inline-button { min-height: 30px; margin-top: 8px; padding: 5px 10px; border-color: #e1b65c; background: #fff; color: #8a5a00; font-size: 12px; }
.standard-inline-button:hover { border-color: #ca951f; background: #fff7df; color: #6f4600; filter: none; }
.standard-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 290px; }
.standard-action-placeholder { display: inline-flex; align-items: center; min-height: 38px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.standards-empty { padding: 44px 18px; border: 1px dashed #c9d6e5; border-radius: 12px; background: #fbfdff; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.standards-empty.is-error { border-color: #efb8bc; background: #fff6f6; color: #b4232d; }
.standard-loading-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--primary); vertical-align: middle; animation: standard-loading-pulse 1s ease-in-out infinite; }
@keyframes standard-loading-pulse { 0%, 100% { opacity: .35; transform: scale(.82); } 50% { opacity: 1; transform: scale(1); } }
.standards-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.standards-pagination span { min-width: 150px; text-align: center; font-variant-numeric: tabular-nums; }

.standard-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  background: rgba(15,28,48,.58);
}
.standard-modal-card {
  width: min(640px,100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid #d4deea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,28,48,.24);
}
.standard-preview-card { width: min(1080px,100%); }
.standard-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #edf1f6; }
.standard-modal-header h2 { min-width: 0; margin: 0; color: var(--text); font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.standard-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.standard-modal-close:hover { border-color: #b8cce5; background: #edf4fc; color: var(--text); filter: none; }
.standard-editor-form { display: grid; gap: 12px; padding: 18px; }
.standard-editor-form label { margin: 0; color: #4f5f73; font-size: 13px; font-weight: 700; }
.standard-editor-form input, .standard-editor-form textarea { margin-top: 6px; }
.standard-editor-form textarea { width: 100%; min-height: 90px; resize: vertical; border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: #fff; color: var(--text); outline: none; line-height: 1.6; }
.standard-editor-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,111,235,.12); }
.standard-editor-form input[type="file"] { min-height: 42px; padding: 8px; background: #fbfdff; }
.standard-editor-form small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.required-mark { color: #c53030; }
.standard-modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 18px; }
.standard-download-link { display: inline-flex; }
.standard-preview-body { min-height: 260px; padding: 16px; background: #f5f7fb; }
.standard-preview-feedback { display: flex; min-height: 220px; align-items: center; justify-content: center; padding: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.standard-preview-feedback.is-error { color: #b4232d; }
.standard-preview-image { display: block; max-width: 100%; max-height: calc(100vh - 220px); margin: 0 auto; object-fit: contain; border: 1px solid var(--border); background: #fff; }
.standard-preview-frame { display: block; width: 100%; height: min(68vh,760px); border: 1px solid var(--border); border-radius: 8px; background: #fff; }

@media (max-width: 980px) {
  .standards-toolbar { align-items: stretch; }
  .standard-row { grid-template-columns: 56px minmax(0,1fr); }
  .standard-file-badge { width: 56px; height: 56px; }
  .standard-row-actions { grid-column: 2; justify-content: flex-start; max-width: none; }
}
@media (max-width: 600px) {
  .safety-tool-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; margin-bottom: 10px; }
  .safety-tool-tab { width: 100%; min-height: 44px; padding: 9px 10px; }
  .standards-panel { padding: 12px; border-radius: 8px; box-shadow: none; }
  .standards-toolbar { flex-direction: column; gap: 12px; padding-bottom: 12px; }
  .standards-toolbar h2 { font-size: 18px; }
  .standards-toolbar p { margin-top: 5px; }
  .standards-toolbar-actions { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .standards-toolbar .standards-primary-button, .standards-toolbar .standards-secondary-button { width: 100%; min-height: 44px; }
  .standards-search-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .standards-search-row input { grid-column: 1 / -1; min-height: 44px; font-size: 16px; }
  .standards-search-row button { min-height: 44px; }
  .standard-row { grid-template-columns: 48px minmax(0,1fr); gap: 10px; padding: 11px; border-radius: 8px; }
  .standard-file-badge { width: 48px; height: 48px; border-radius: 8px; font-size: 11px; }
  .standard-row-heading { display: block; }
  .standard-row-heading h3 { font-size: 15px; }
  .standard-keywords { display: inline-block; margin-top: 5px; }
  .standard-meta { gap: 4px 8px; font-size: 11px; }
  .standard-description { font-size: 12px; }
  .standard-row-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; gap: 6px; }
  .standard-row-actions .standard-action-button { width: 100%; min-height: 42px; }
  .standard-action-placeholder { grid-column: 1 / -1; justify-content: center; min-height: 36px; }
  .standard-upload-state { max-width: none; }
  .standards-pagination { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .standards-pagination span { grid-column: 1 / -1; grid-row: 1; width: 100%; min-width: 0; }
  .standards-pagination button { min-height: 44px; }
  .standard-modal { align-items: center; padding: 8px; }
  .standard-modal-card { max-height: calc(100dvh - 16px); border-radius: 10px; }
  .standard-modal-header { padding: 13px 12px; }
  .standard-modal-close { width: 44px; height: 44px; }
  .standard-editor-form { padding: 14px 12px; }
  .standard-editor-form input, .standard-editor-form textarea { font-size: 16px; }
  .standard-modal-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 12px 12px; }
  .standard-modal-actions > * { width: 100%; min-height: 44px; }
  .standard-preview-body { min-height: 180px; padding: 10px; }
  .standard-preview-image { max-height: 58dvh; }
  .standard-preview-frame { height: 58dvh; }
}

@media print {
  body { background: #fff; }
  .tool-panel, .preview-toolbar, .selected-list, .tool-note { display: none !important; }
  .safety-tool-shell, .tool-preview, .board-scroll { padding: 0; margin: 0; border: 0; box-shadow: none; overflow: visible; }
  .tool-layout { display: block; }
  .export-board { width: auto !important; min-height: 0 !important; border: 0; margin: 0; gap: 0; transform: none !important; }
  .board-page { margin: 0; box-shadow: none; }
}
