.workspace.dangerous-workspace {
  padding:8px 10px;
  background:var(--op-canvas,#eef3f8);
  overflow:auto
}
.dw-surface {
  background:#fff;
  min-height:calc(100dvh - 60px);
  border-radius:8px;
  color:#273d57;
  font-size:12px
}
.dw-tabs {
  display:flex;
  gap:20px;
  padding:0 16px;
  border-bottom:1px solid #e0e7ef
}
.dw-surface button,.dw-drawer button,.dw-form button {
  font:inherit;
  cursor:pointer;
  color:#2563a4;
  background:transparent;
  border:0;
  padding:6px 8px;
  border-radius:4px;
  white-space:nowrap
}
.dw-surface button:where(:not(.dw-primary, :disabled)):hover,
.dw-drawer button:where(:not(.dw-primary, :disabled)):hover,
.dw-form button:where(:not(.dw-primary, :disabled)):hover {
  background:#edf4ff
}
.dw-tabs button {
  padding:12px 4px;
  border-radius:0;
  border-bottom:2px solid transparent
}
.dw-tabs .selected {
  color:#216ce0;
  border-bottom-color:#216ce0;
  font-weight:600
}
.dw-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-width: 1050px;
  padding: 12px 14px 0;
}
.dw-surface .dw-stat-card {
  --stat-color: #62758e;
  --stat-wash: #f4f6f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid #e5ebf2;
  border-radius: 7px;
  background: var(--stat-wash);
  color: #455b74;
  text-align: left;
}
.dw-surface .dw-stat-0 { --stat-color: #a16b19; --stat-wash: #fffaf0; }
.dw-surface .dw-stat-1 { --stat-color: #2e6db9; --stat-wash: #f0f6ff; }
.dw-surface .dw-stat-2 { --stat-color: #24816b; --stat-wash: #eff9f5; }
.dw-surface .dw-stat-3 { --stat-color: #8057b5; --stat-wash: #f7f3fc; }
.dw-surface .dw-stat-4 { --stat-color: #65758b; --stat-wash: #f4f6f9; }
.dw-surface .dw-stat-5 { --stat-color: #397563; --stat-wash: #eff8f4; }
.dw-stat-label { display: flex; align-items: center; gap: 7px; }
.dw-stat-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--stat-color); }
.dw-stat-card strong { color: var(--stat-color); font-size: 24px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.dw-surface .dw-stat-card:hover,
.dw-surface .dw-stat-card[aria-pressed="true"] {
  background: var(--stat-wash);
  border-color: var(--stat-color);
}
.dw-surface .dw-stat-card[aria-pressed="true"] { box-shadow: inset 0 -2px var(--stat-color); }
.dw-content {
  padding:12px 14px
}
.dw-filters {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px
}
.dw-filters label {
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap
}
.dw-filters input {
  width:180px
}
.dw-filters select {
  width:135px
}
.dw-filters input,.dw-filters select,.dw-form input:not([type=checkbox]),.dw-form select,.dw-form textarea {
  box-sizing:border-box;
  min-width:0;
  padding:7px 9px;
  border:1px solid #d6e0ec;
  border-radius:5px;
  background:#fff;
  color:#273d57;
  font:inherit
}
.dw-filters input,.dw-filters select {
  height:32px
}
.dw-form :is(input,select,textarea):focus-visible,.dw-surface button:focus-visible,.dw-drawer button:focus-visible {
  outline:2px solid #4c89d5;
  outline-offset:2px
}
.dw-toolbar {
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 0;
  border-top:1px solid #e2e8f1;
  margin-top:10px
}
.dw-surface .dw-primary,.dw-drawer .dw-primary,.dw-form .dw-primary {
  background:#2d73ca;
  color:#fff;
  padding:8px 12px
}
.dw-surface .dw-primary:hover:not(:disabled),
.dw-drawer .dw-primary:hover:not(:disabled),
.dw-form .dw-primary:hover:not(:disabled) {
  background: #2462b0;
  color: #fff;
}
.dw-surface .dw-primary:active:not(:disabled),
.dw-drawer .dw-primary:active:not(:disabled),
.dw-form .dw-primary:active:not(:disabled) {
  background: #1d5398;
  color: #fff;
}
.dw-table-wrap {
  overflow:auto;
  border:1px solid #e1e8f0;
  border-radius:6px
}
.dw-table-wrap table {
  border-collapse:collapse;
  min-width:100%;
  width:max-content;
  font-size:12px
}
.dw-table-wrap th,.dw-table-wrap td {
  text-align:left;
  white-space:nowrap;
  padding:10px 12px;
  border-bottom:1px solid #e7edf4;
  height:24px
}
.dw-table-wrap th {
  background:#f5f8fc;
  font-weight:500;
  color:#617893
}
.dw-table-wrap td:last-child,.dw-table-wrap th:last-child {
  position:sticky;
  right:0;
  background:#fff;
  box-shadow:-1px 0 #e1e8f0
}
.dw-table-wrap th:last-child {
  background:#f5f8fc
}
.dw-table-wrap .dw-ellipsis {
  max-width:240px;
  overflow:hidden;
  text-overflow:ellipsis
}
.dw-type-tag,
.dw-factory-tag,
.dw-count-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 20px;
  white-space: nowrap;
  vertical-align: middle;
}
.dw-type-tag { background: #edf4ff; color: #3268a8; border: 1px solid #dde9fa; }
.dw-factory-tag { background: #f2f5f8; color: #526c86; }
.dw-factory-tag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dw-count-tag { padding-inline: 8px; background: #eff6f5; color: #39746b; font-weight: 600; font-variant-numeric: tabular-nums; }
.dw-count-tag small { font-size: 10px; font-weight: 400; }
.dw-ticket-table .dw-ticket-number button { font-weight: 500; letter-spacing: .15px; }
.dw-ticket-table .dw-region-cell { color: #607991; }
.dw-ticket-table .dw-date-cell { color: #62778e; font-size: 11px; font-variant-numeric: tabular-nums; }
.dw-ticket-table tbody tr:hover td { background: #f7faff; }
.dw-empty {
  text-align:center!important;
  height:160px!important;
  color:#8798ab
}
.dw-count {
  color:#8192a5
}
.dw-status {
  display:inline-block;
  font-size:11px;
  border-radius:4px;
  padding:3px 7px;
  background:#eef3fa;
  color:#5e7fa8
}
.dw-status.s0 {
  background:#fff3de;
  color:#a87521
}
.dw-status.s1 {
  background:#eaf1ff;
  color:#3e70be
}
.dw-status.s2 {
  background:#e5f5f0;
  color:#267f65
}
.dw-status.s3 {
  background:#f0eaff;
  color:#8360a8
}
.dw-status.s4 {
  background:#edf1f5;
  color:#718197
}
.dw-form,.dw-drawer {
  box-sizing:border-box;
  border:1px solid #dde5ef;
  border-radius:10px;
  background:white;
  color:#273d57;
  box-shadow:0 20px 90px #1d344533;
  padding:0;
  font:12px/1.7 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif
}
.dw-form::backdrop,.dw-drawer::backdrop {
  background:#182d4740
}
.dw-form {
  width:min(760px,96vw);
  max-height:95dvh
}
.dw-form form {
  display:flex;
  flex-direction:column;
  max-height:94dvh
}
.dw-form header,.dw-drawer header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 18px;
  border-bottom:1px solid #e2e8f1;
  flex-shrink:0
}
.dw-close {
  font-size:22px!important;
  line-height:1!important
}
.dw-form-body {
  overflow:auto;
  padding:16px 18px
}
.dw-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 16px
}
.dw-form-section {
  padding: 14px;
  border: 1px solid #e3eaf2;
  border-radius: 7px;
  background: #fbfcfe;
}
.dw-form-section > h3 { margin: 0 0 10px; color: #2f4d6d; font-size: 13px; font-weight: 600; }
.dw-form-section > .dw-grid { gap: 12px 16px; }
.dw-risk-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.dw-risk-editor > h3,.dw-risk-editor > p { grid-column: 1 / -1; margin-block: 0; }
.dw-risk-editor > label { display: flex; flex-direction: column; gap: 5px; }
.dw-risk-editor textarea { min-height: 84px; resize: vertical; }
.dw-signature-note { padding: 9px 11px; border-radius: 5px; color: #385f89; background: #f0f6fd; }
.dw-briefing-copy { padding: 12px; border-radius: 6px; background: #f7fafc; }
.dw-briefing-copy ul { margin: 8px 0 0; padding-left: 20px; color: #566f89; }
.dw-stage-progress { color: #607a96; font-size: 11px; white-space: nowrap; }
.dw-risk-block { margin-bottom: 12px; }
.dw-risk-block > strong,.dw-special-plan > strong { display: block; margin-bottom: 6px; color: #425f7c; font-size: 11px; }
.dw-special-plan { padding: 10px 12px; border-radius: 5px; background: #f6f9fc; color: #526d88; white-space: pre-wrap; }
.dw-grid label {
  display:flex;
  flex-direction:column;
  gap:5px
}
.dw-grid label span {
  color:#687f99
}
.dw-wide {
  grid-column:1/-1
}
.dw-grid .dw-check {
  flex-direction:row;
  align-items:center;
  margin:8px 0
}
.dw-grid input[type=checkbox] {
  accent-color:#2875d2
}
.dw-grid small {
  color:#8a9bb0
}
.dw-form footer {
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:12px 18px;
  border-top:1px solid #e2e8f1
}
.dw-drawer {
  margin:0 0 0 auto;
  width:min(950px,98vw);
  height:100dvh;
  max-height:100dvh;
  border-radius:8px 0 0 8px
}
.dw-drawer[open] {
  display:flex;
  flex-direction:column
}
.dw-detail-body {
  overflow:auto;
  padding:16px 20px
}
.dw-timeline-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
  border-bottom: 1px solid #e7edf4;
}
.dw-timeline {
  display: flex;
  min-width: 600px;
  margin: 0;
  padding: 4px 0 16px;
  list-style: none;
}
.dw-timeline-node {
  flex: 1;
  min-width: 0;
  position: relative;
  text-align: center;
  color: #8a9bb0;
}
.dw-timeline-track {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  margin-bottom: 7px;
}
.dw-timeline-track::before,
.dw-timeline-track::after {
  content: '';
  position: absolute;
  top: 11px;
  width: 50%;
  height: 2px;
  background: #e3eaf2;
}
.dw-timeline-track::before { left: 0; }
.dw-timeline-track::after { right: 0; }
.dw-timeline-node:first-child .dw-timeline-track::before,
.dw-timeline-node:last-child .dw-timeline-track::after { display: none; }
.dw-timeline-dot {
  z-index: 1;
  position: relative;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 2px solid #d9e2ed;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px #fff;
}
.is-complete .dw-timeline-dot {
  border-color: #2d78cb;
  background: #2d78cb;
}
.is-complete .dw-timeline-dot::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 3px;
  left: 3px;
  top: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}
.is-complete .dw-timeline-track::before,
.is-complete .dw-timeline-track::after,
.is-current .dw-timeline-track::before { background: #8cb8eb; }
.is-current .dw-timeline-dot {
  border-color: #2d78cb;
  background: #fff;
  box-shadow: 0 0 0 4px #eaf3ff, 0 0 0 7px #fff;
}
.is-current .dw-timeline-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #2d78cb;
}
.dw-timeline-label { font-weight: 500; line-height: 20px; }
.is-complete .dw-timeline-label { color: #355d89; }
.is-current .dw-timeline-label { color: #216bc0; font-weight: 600; }
.dw-timeline-status { display: block; margin-top: 2px; font-size: 11px; }
.is-current .dw-timeline-status { color: #216bc0; }
.dw-timeline time,
.dw-timeline-person,
.dw-timeline-placeholder {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dw-timeline time { color: #6b819b; }
.dw-timeline-person { color: #8294a9; margin-top: 0; }
.dw-gas-rule {
  padding:10px 12px;
  background:#edf5ff;
  color:#306ba8;
  border-radius:5px
}
.dw-attachments {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}
.dw-attachments img {
  width:72px;
  height:56px;
  object-fit:cover;
  border-radius:4px
}
.dw-full-image {
  max-width:100%;
  max-height:65dvh;
  object-fit:contain
}
.dw-error {
  color:#c0453f
}
.dw-pass {
  color:#22815f
}
.dw-feedback {
  padding:0 14px;
  color:#397eab
}
.dw-candidates article {
  padding:10px;
  border-bottom:1px solid #e2e8f1
}
.dw-surface button:disabled,.dw-form button:disabled {
  opacity:.5;
  cursor:default
}
@media(max-width:650px) {
  .dw-grid {
    grid-template-columns:1fr
  }
  .dw-risk-editor { grid-template-columns: 1fr; }
  .dw-risk-editor > h3,.dw-risk-editor > p { grid-column: auto; }
  .dw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dw-surface .dw-stat-card { min-height: 58px; padding: 10px 12px; }
}

.dw-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 2px;
}
.dw-type-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #e0e7f0;
  border-radius: 8px;
  background: #fff;
}
.dw-type-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 8px;
}
.dw-type-card h3 { margin: 0; font-size: 14px; color: #2c415d; font-weight: 600; overflow-wrap: anywhere; }
.dw-type-enabled { flex-shrink: 0; padding: 2px 7px; font-size: 11px; border-radius: 4px; }
.dw-type-enabled.on { color: #2b7a63; background: #eaf7f0; }
.dw-type-enabled.off { color: #7a8697; background: #f0f3f6; }
.dw-type-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 0 16px; font-size: 11px; color: #8a9ab0; }
.dw-gas-tag { padding: 2px 6px; border-radius: 4px; background: #f3f6f9; color: #71849b; }
.dw-gas-tag.required { background: #fff4e7; color: #a46a22; }
.dw-type-measure-list { margin: 10px 0 14px; padding: 0 16px 0 32px; color: #60758f; line-height: 1.9; }
.dw-type-measure-list li { padding-left: 2px; overflow-wrap: anywhere; }
.dw-type-card > footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding: 7px 10px; border-top: 1px solid #edf1f6; }
.dw-type-source { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 6px; color: #8b9bb0; font-size: 11px; }
.dw-type-source button { max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.dw-type-card > footer > div { flex-shrink: 0; }
.dw-type-card.is-disabled { background: #fafbfd; }
.dw-type-grid > .dw-empty { grid-column: 1 / -1; }
.dw-participants { padding-top: 12px; border-top: 1px solid #e2e8f1; }
.dw-participants-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.dw-participant-total { color: #2f70b7; font-variant-numeric: tabular-nums; }
.dw-grid .dw-people-search { flex-direction: row; align-items: center; gap: 10px; margin-bottom: 8px; }
.dw-people-search input { flex: 1; }
.dw-people-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; max-height: 174px; overflow-y: auto; padding: 6px; border: 1px solid #e3eaf3; border-radius: 6px; }
.dw-grid .dw-person-option { display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 4px; cursor: pointer; }
.dw-grid .dw-person-option:hover { background: #f1f6fc; }
.dw-grid .dw-person-option:has(input:checked) { background: #edf4ff; }
.dw-grid .dw-person-option[hidden] { display: none; }
.dw-person-option small { margin-left: auto; }
.dw-person-option span { color: #3d5878; }
.dw-selected-people { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dw-person-tag { padding: 2px 7px; border-radius: 4px; background: #edf4ff; color: #3971b1; font-size: 11px; }
.dw-note { color: #8294a9; }
@media (max-width: 650px) {
  .dw-type-grid, .dw-people-options { grid-template-columns: 1fr; }
}

.dw-policy-section { margin: 12px 0; padding: 12px 0; border-top: 1px solid #e2e8f1; }
.dw-policy-section > strong { display: block; margin-bottom: 8px; }
.dw-flow-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; margin-bottom: 10px; padding: 12px; border: 1px solid #e1e9f2; border-radius: 6px; background: #f8fafd; }
.dw-flow-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.dw-grid label[hidden] { display: none; }
.dw-approval-list { list-style: none; margin: 12px 0; padding: 0; }
.dw-approval-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 0; border-bottom: 1px solid #edf1f6; }
.dw-approval-list li > span { width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: #edf4ff; color: #3971b1; }
.dw-approval-list small { color: #7c90a7; }
.dw-approval-list em { margin-left: auto; font-style: normal; color: #3779ba; }
.dw-type-policy-summary { margin: 10px 16px 0; padding: 7px 9px; background: #f5f8fc; border-radius: 4px; color: #67819e; font-size: 11px; }
@media(max-width:650px) { .dw-flow-row { grid-template-columns:1fr; } }

.dw-submit-feedback { flex: 1; min-width: 0; align-self: center; margin: 0 auto 0 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.dw-submit-feedback[hidden] { display: none; }
.dw-submit-feedback.is-pending { color: #397eab; }
.dw-form footer > button { flex-shrink: 0; }

/* 作业票详情遵循当前任务、核心资料、可追溯记录的阅读顺序。 */
.dw-drawer { width: min(960px,98vw); }
.dw-drawer .dw-detail-header { padding: 12px 20px; background: #fff; }
.dw-detail-header > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dw-detail-header strong { font-size: 13px; font-weight: 600; letter-spacing: .2px; overflow-wrap: anywhere; }
.dw-drawer .dw-detail-body { padding: 0 20px 16px; }
.dw-detail-summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 0 12px; }
.dw-detail-summary h2 { margin: 0; color: #233d5b; font-size: 17px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.dw-detail-summary .dw-type-tag { flex-shrink: 0; margin-top: 2px; }
.dw-drawer .dw-timeline-wrap { margin-bottom: 12px; border-bottom: 0; }
.dw-drawer .dw-timeline { padding-bottom: 4px; }
.dw-current-task { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #dee9f6; border-radius: 6px; background: #f5f9ff; }
.dw-current-task > div:first-child { display: grid; gap: 3px; min-width: 0; }
.dw-current-task strong { font-size: 13px; font-weight: 600; color: #315d91; }
.dw-current-task span { color: #627b99; font-size: 11px; overflow-wrap: anywhere; }
.dw-current-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.dw-current-actions .dw-danger-action { color: #b64943; }
.dw-detail-more { position: relative; }
.dw-detail-more > summary { cursor: pointer; list-style: none; padding: 6px 8px; color: #5a718d; border-radius: 4px; white-space: nowrap; }
.dw-detail-more > summary::-webkit-details-marker { display: none; }
.dw-detail-more > summary:hover { background: #e9f1fb; }
.dw-detail-more[open] > div { position: absolute; top: calc(100% + 4px); right: 0; z-index: 5; min-width: 130px; display: grid; padding: 4px; background: #fff; border: 1px solid #dbe5f1; border-radius: 6px; box-shadow: 0 8px 22px #233d5b1a; }
.dw-detail-more button { text-align: left; }
.dw-detail-warning { margin: 10px 0 0; padding: 8px 12px; color: #a34435; background: #fff3ed; border-radius: 5px; }
.dw-detail-tabs { display: flex; gap: 22px; position: sticky; top: 0; z-index: 3; padding-top: 12px; background: #fff; border-bottom: 1px solid #dfe7f0; }
.dw-detail-tabs [role=tab] { padding: 9px 2px; border-bottom: 2px solid transparent; border-radius: 0; color: #667d97; }
.dw-detail-tabs [aria-selected=true] { color: #236fc8; border-bottom-color: #2d78cb; font-weight: 600; }
.dw-detail-panel { padding: 0 0 6px; }
.dw-detail-section { padding: 16px 0; border-bottom: 1px solid #edf1f6; }
.dw-detail-section:last-child { border-bottom: 0; }
.dw-detail-section h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #294561; font-size: 13px; font-weight: 600; }
.dw-detail-section h3 > span { color: #61748b; font-size: 11px; font-weight: 400; }
.dw-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 24px; margin: 0; }
.dw-facts > div { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 10px; align-items: baseline; }
.dw-facts dt { color: #61748b; }
.dw-facts dd { margin: 0; color: #344e6b; overflow-wrap: anywhere; }
.dw-parent-ticket { margin: 10px 0 0; color: #61748b; }
.dw-detail-people { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-detail-people .dw-person-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; }
.dw-detail-people small { color: #607e9f; font-size: 10px; }
.dw-safety-list { display: grid; gap: 8px; margin: 0; padding-left: 18px; color: #546e89; }
.dw-safety-list li { padding-left: 3px; overflow-wrap: anywhere; }
.dw-detection-rule { margin-top: 14px; padding: 10px 12px; background: #f5f8fc; border-radius: 5px; }
.dw-detection-rule strong { font-size: 12px; color: #496e98; font-weight: 500; }
.dw-detection-rule p { margin: 4px 0 0; color: #6d829a; font-size: 11px; }
.dw-detail-panel .dw-approval-list { margin: 0; }
.dw-detail-panel .dw-approval-list li { gap: 10px; align-items: flex-start; padding: 12px 0; }
.dw-approval-list li > div { flex: 1; min-width: 0; }
.dw-approval-list li p { margin: 4px 0 0; color: #61748b; overflow-wrap: anywhere; }
.dw-approval-list li time { display: block; margin-top: 3px; color: #61748b; font-size: 11px; }
.dw-approval-list li em { margin-top: 2px; font-size: 11px; white-space: nowrap; }
.dw-approval-list .is-current > div > strong { color: #286dbb; }
.dw-approval-list .is-done em { color: #2f8267; }
.dw-approval-list li:not(.is-current):not(.is-done) em { color: #61748b; }
.dw-rule-fold { margin: 12px 0; padding: 10px 0; color: #61748b; }
.dw-rule-fold > summary { cursor: pointer; color: #5e7898; }
.dw-rule-fold .dw-facts { margin: 14px 0; }
.dw-rule-fold h4 { font-size: 12px; margin: 12px 0 6px; font-weight: 500; }
.dw-rule-fold ul { padding-left: 18px; margin: 0; }
.dw-record { position: relative; margin-left: 5px; padding: 0 0 20px 20px; border-left: 1px solid #dce6f1; }
.dw-record:last-child { border-left-color: transparent; padding-bottom: 0; }
.dw-record-dot { position: absolute; top: 7px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #7ba5d5; box-shadow: 0 0 0 3px #fff; }
.dw-drawer .dw-record > header { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; }
.dw-record header strong { font-size: 12px; font-weight: 600; }
.dw-record-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; color: #61748b; font-size: 11px; }
.dw-record p { margin: 7px 0; overflow-wrap: anywhere; }
.dw-record-note { white-space: pre-wrap; color: #516c88; }
.dw-record-transition { color: #61748b; font-size: 11px; }
.dw-record-gas { padding: 8px 10px; margin: 8px 0; background: #f5f8fc; border-radius: 5px; }
.dw-record-gas > strong { font-size: 11px; font-weight: 500; }
.dw-record-gas dl { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin: 6px 0 0; }
.dw-record-gas dt { color: #61748b; font-size: 10px; }
.dw-record-gas dd { margin: 0; color: #405f80; font-variant-numeric: tabular-nums; }
.dw-event-checks { margin: 8px 0; color: #6f859d; }
.dw-event-checks summary { cursor: pointer; color: #55789f; }
.dw-record .dw-attachments { margin-top: 8px; }
.dw-detail-more summary:focus-visible { outline: 2px solid #4c89d5; outline-offset: 2px; }
@media (max-width: 760px) {
  .dw-current-task { align-items: flex-start; flex-direction: column; }
  .dw-current-actions { justify-content: flex-start; }
  .dw-facts { grid-template-columns: 1fr; }
  .dw-detail-tabs { gap: 18px; }
}
@media (max-width: 480px) {
  .dw-drawer .dw-detail-body { padding-inline: 14px; }
  .dw-drawer .dw-detail-header { padding-inline: 14px; }
  .dw-detail-summary { flex-direction: column; gap: 6px; }
  .dw-facts > div { grid-template-columns: 110px minmax(0,1fr); }
  .dw-record-gas dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.dw-template-fold { padding: 10px 0; border-top: 1px solid #e5ecf4; }
.dw-template-fold summary { cursor: pointer; color: #405f82; font-weight: 500; }
.dw-template-fold summary span { margin-left: 8px; color: #71859c; font-size: 11px; font-weight: 400; }
.dw-template-fold ol, .dw-template-fold ul { margin: 8px 0 0; padding-left: 20px; color: #62778e; line-height: 1.8; }
.dw-assessment { padding: 12px; margin: 12px 0; background: #f6f9fd; border: 1px solid #e0e8f3; border-radius: 6px; }
.dw-assessment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dw-assessment > ul { list-style: none; margin: 8px 0; padding: 0; }
.dw-assessment > ul li { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 6px 0; border-top: 1px solid #e7edf4; }
.dw-assessment li strong { font-size: 11px; font-weight: 500; }
.dw-assessment li span { font-size: 11px; color: #677c95; }
.dw-assessment li.pass strong { color: #2f8165; }
.dw-assessment li.attention strong { color: #a06b28; }
.dw-ai-result { border-top: 1px solid #dce5f1; padding-top: 8px; color: #60758f; }
.dw-ai-result p { margin: 6px 0; overflow-wrap: anywhere; }
.dw-device-list article { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid #e5ecf4; }
.dw-device-list article small { color: #71859c; }
.dw-device-list article > span { color: #60758f; font-size: 11px; }
.dw-device-list article button { margin-left: auto; }
.dw-alert-item { padding: 12px 0; border-bottom: 1px solid #e5ecf4; }
.dw-drawer .dw-alert-item header { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; border: 0; justify-content: flex-start; }
.dw-alert-item header span { padding: 1px 6px; background: #f1f5fa; color: #60758f; border-radius: 4px; }
.dw-alert-item p { margin: 8px 0; overflow-wrap: anywhere; }
.dw-alert-item small { color: #71859c; }
@media(max-width:480px){.dw-assessment > ul li { grid-template-columns:1fr; gap:3px; }}
.dw-live-alert { position:fixed; z-index:90; top:64px; right:20px; box-sizing:border-box; width:min(360px,calc(100vw - 32px)); padding:14px; border:1px solid #efd9c0; border-radius:7px; background:#fffaf4; box-shadow:0 10px 28px #263b5524; color:#80562e; font-size:12px; }
.dw-live-alert strong { display:block; font-size:13px; }
.dw-live-alert p { margin:8px 0; overflow-wrap:anywhere; }
.dw-live-alert button { margin-right:10px; padding:5px 8px; border:0; border-radius:4px; background:#f4e7d6; color:#80562e; cursor:pointer; }
.dw-live-alert button:focus-visible { outline:2px solid #4c89d5; outline-offset:2px; }
