/* W4 integrated analysis workspace. Inert unless the execution workspace flag is enabled. */

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-host { display: none; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .at-execution-worksheet[data-active-execution-workspace="integrated-analysis"] > :not(.at-primary-taskbar):not(.aia-host):not(.at-capability-assist-layer):not([data-uaw-current-work]) {
  display: none !important;
}

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .at-execution-worksheet[data-active-execution-workspace="integrated-analysis"] > .aia-host {
  display: block;
  min-height: 0;
}

/* The shared execution shell owns the analysis-tool rail. Integrated analysis
 * keeps relationship screening, canvas and professional packages available;
 * narrow-screen overlay behavior lives in the mature rail. */

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-workspace {
  min-height: 560px;
  padding: 20px clamp(18px, 2.6vw, 34px) 36px;
  color: var(--visual-accent-deep);
  background: var(--visual-surface);
}

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--visual-line-soft);
}

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head > div:first-child { min-width: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head h1 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head p { margin: 5px 0 0; color: var(--visual-copy); font-size: 13px; line-height: 1.5; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head > div:last-child { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head > div:last-child > span { color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head .btn { min-height: 40px; gap: 7px; padding: 0 14px; border-radius: 8px; font-size: 13px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head svg { width: 15px; height: 15px; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1080px;
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--visual-line-soft);
  border-radius: 8px;
  color: var(--visual-accent-deep);
  background: var(--visual-surface);
  font-size: 13px;
}

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-notice.is-warning { border-color: #e2ceaa; color: #805819; background: #fff8e9; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-notice.is-error { border-color: #e2c4c1; color: #933e37; background: #fff2f1; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-notice button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; color: inherit; background: transparent; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-notice svg { width: 15px; height: 15px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-legacy-record-notice button { width: auto; min-width: 76px; min-height: 40px; flex-shrink: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-draft-status { max-width: 1080px; margin: 10px auto 0; color: #805819; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-draft-status:empty { display: none; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-draft-recovery { flex-wrap: wrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-draft-recovery > span { flex: 1 1 240px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-draft-recovery > div { display: flex; flex-wrap: wrap; gap: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-draft-recovery button { width: auto; min-height: 40px; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-migration-fields { padding-block: 14px 0; border-bottom: 1px solid var(--visual-line-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-migration-fields > div { display: grid; gap: 6px; color: var(--visual-copy); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-migration-fields > div strong { color: var(--visual-ink); }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  max-width: 1080px;
  margin: 15px auto 0;
  padding: 13px 2px;
  border-bottom: 1px solid var(--visual-surface-soft);
}

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor > span { color: var(--visual-accent); font-size: 12px; font-weight: 760; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor div { min-width: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor strong,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor strong { font-size: 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor small { margin-top: 3px; color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor > em { padding: 4px 8px; border-radius: 999px; color: var(--visual-copy); background: var(--visual-surface-soft); font-size: 11px; font-style: normal; font-weight: 720; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor > em.is-attention { color: #8b5e18; background: #fff3d6; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor > em.is-complete { color: #237064; background: #e8f6f1; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-lock-notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  max-width: 1080px;
  margin: 13px auto 0;
  padding: 11px 13px;
  border: 1px solid #e4d5b8;
  border-radius: 8px;
  color: #77551d;
  background: #fff9ed;
}
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-lock-notice > svg { width: 17px; height: 17px; margin: 2px 0 0 3px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-lock-notice strong,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-lock-notice span { display: block; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-lock-notice strong { font-size: 13px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-lock-notice span { margin-top: 2px; font-size: 12px; line-height: 1.5; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-empty {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  max-width: 860px;
  margin: 54px auto 0;
  padding: 22px 0;
  border-top: 1px solid var(--visual-surface-soft);
  border-bottom: 1px solid var(--visual-surface-soft);
}

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-empty > svg { width: 26px; height: 26px; padding: 8px; border-radius: 10px; color: var(--visual-accent); background: var(--visual-surface); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-empty h2 { margin: 0; font-size: 16px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-empty p { margin: 5px 0 0; color: var(--visual-copy); font-size: 13px; line-height: 1.55; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-empty .btn { min-height: 40px; border-radius: 8px; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-records,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor { max-width: 1080px; margin: 22px auto 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-records > header { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-records > header h2 { margin: 0; font-size: 15px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-records > header span { color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-records > div { border-top: 1px solid var(--visual-line-soft); }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 17px 2px;
  border-bottom: 1px solid var(--visual-surface-soft);
}

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-kind { display: grid; justify-items: start; gap: 7px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-kind > span { color: var(--visual-accent); font-size: 12px; font-weight: 760; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-kind > em { padding: 3px 7px; border-radius: 999px; color: #805719; background: #fff2d4; font-size: 11px; font-style: normal; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-kind > em.is-pending { color: var(--visual-copy); background: var(--visual-surface-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-kind > em.is-clear { color: var(--visual-accent-deep); background: var(--visual-surface-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-main { min-width: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-main h3 { margin: 0; color: var(--visual-accent-deep); font-size: 15px; line-height: 1.45; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-main p { display: -webkit-box; overflow: hidden; margin: 6px 0 4px; color: var(--visual-copy); font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-main small { color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-trace { display: grid; grid-template-columns: auto auto; align-items: center; gap: 5px 10px; min-width: 154px; color: var(--visual-copy); font-size: 11px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-execution { grid-column: 1 / -1; color: var(--visual-copy); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-trace button { grid-column: 1 / -1; min-height: 36px; margin-top: 3px; border: 1px solid var(--visual-line-soft); border-radius: 7px; color: var(--visual-accent); background: var(--visual-surface); font: inherit; font-size: 12px; font-weight: 720; cursor: pointer; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor {
  border: 1px solid var(--visual-line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: var(--visual-surface);
}

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--visual-surface-soft); background: var(--visual-surface); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > header span { color: var(--visual-accent); font-size: 11px; font-weight: 800; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > header h2 { margin: 4px 0 0; font-size: 17px; line-height: 1.4; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > header button,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > header button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; color: var(--visual-copy); background: transparent; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > header button:hover,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > header button:hover { background: var(--visual-surface-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > header svg,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > header svg { width: 17px; height: 17px; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor-readonly {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 20px;
  border-bottom: 1px solid #e4d5b8;
  color: #77551d;
  background: #fff9ed;
  font-size: 12px;
  line-height: 1.5;
}
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor-readonly strong { flex: 0 0 auto; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor-readonly span { min-width: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor :is(input, textarea, select, button)[disabled] { cursor: not-allowed; opacity: .72; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor-body { padding: 4px 20px 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field { display: grid; gap: 7px; padding: 16px 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field > span,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-section-heading > div > span { color: var(--visual-ink); font-size: 13px; font-weight: 760; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field input,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field textarea,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field select { width: 100%; border: 1px solid var(--visual-line-soft); border-radius: 8px; color: var(--visual-accent-deep); background: var(--visual-surface); font: inherit; font-size: 14px; line-height: 1.55; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field input { min-height: 42px; padding: 8px 11px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field textarea { min-height: 74px; padding: 10px 11px; resize: vertical; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field select { min-height: 42px; padding: 8px 34px 8px 11px; text-overflow: ellipsis; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field > small { color: var(--visual-copy); font-size: 12px; line-height: 1.45; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field :is(input, textarea, select):focus { border-color: var(--visual-copy); outline: 3px solid rgba(76, 139, 130, .13); }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor-section { padding: 15px 0 17px; border-top: 1px solid var(--visual-surface-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-section-heading > div { display: flex; align-items: baseline; gap: 9px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-section-heading small { color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-section-heading > button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--visual-line-soft); border-radius: 7px; color: var(--visual-accent); background: var(--visual-surface); font: inherit; font-size: 12px; font-weight: 720; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-section-heading > button svg { width: 14px; height: 14px; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-empty { display: flex; align-items: baseline; gap: 10px; min-height: 42px; padding: 10px 12px; border-left: 3px solid var(--visual-line-soft); background: var(--visual-surface); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-empty span { font-size: 13px; font-weight: 700; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-empty small { color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-inputs { display: grid; gap: 6px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-input { display: grid; grid-template-columns: 44px minmax(0, 1fr) 36px; align-items: center; gap: 9px; min-height: 42px; padding: 5px 7px 5px 10px; border-bottom: 1px solid var(--visual-surface-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-input > span { color: var(--visual-accent); font-size: 11px; font-weight: 760; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-input > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-input > button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 7px; color: var(--visual-copy); background: transparent; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-input > button:hover { background: var(--visual-surface-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-input svg { width: 14px; height: 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-selected-input > .aia-reference-link { display: block; width: auto; height: auto; min-height: 36px; min-width: 0; padding: 4px 0; text-align: left; font-size: 14px; font-weight: 600; color: var(--visual-accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-readout { margin-top: 12px; padding: 12px 0; border-block: 1px solid var(--visual-line-soft); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-readout header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-readout header button { background: transparent; border: 0; color: var(--visual-accent); min-height: 36px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-readout p { margin: 8px 0; white-space: pre-wrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-paragraph small { color: var(--visual-copy); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-table { overflow-x: auto; max-width: 100%; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-table table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-table th,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-table td { padding: 6px 12px; text-align: left; border-bottom: 1px solid var(--visual-line-soft); min-width: 90px; max-width: 260px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-readout pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; font-size: 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-readout :focus-visible,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-link:focus-visible { outline: 2px solid var(--visual-accent); outline-offset: 3px; }
@media (max-width: 640px) {
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-reference-readout { font-size: 16px; }
}
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-source-shortcuts { display: flex; gap: 13px; margin-top: 10px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-source-shortcuts button { min-height: 32px; padding: 0; border: 0; color: var(--visual-accent); background: transparent; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-type-selector { display: inline-grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); border: 1px solid var(--visual-line-soft); border-radius: 8px; overflow: hidden; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-type-selector button { min-height: 40px; padding: 0 16px; border: 0; border-right: 1px solid var(--visual-line-soft); color: var(--visual-copy); background: var(--visual-surface); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-type-selector button:last-child { border-right: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-type-selector button.is-active { color: var(--visual-accent-deep); background: var(--visual-surface-soft); box-shadow: inset 0 -2px var(--visual-accent); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-type-help { margin: 8px 0 1px; color: var(--visual-copy); font-size: 12px; line-height: 1.5; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-verification-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
  margin: 12px 0 5px;
  padding: 2px 13px;
  border-left: 1px solid var(--visual-copy);
  background: var(--visual-surface);
}
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-verification-fields .aia-field { padding-block: 11px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-verification-fields .wide { grid-column: 1 / -1; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-result-nature { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-result-nature button { min-width: 0; min-height: 76px; padding: 10px 11px; border: 1px solid var(--visual-line-soft); border-radius: 8px; color: var(--visual-copy); background: var(--visual-surface); font: inherit; text-align: left; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-result-nature button strong,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-result-nature button span { display: block; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-result-nature button strong { color: var(--visual-ink); font-size: 13px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-result-nature button span { margin-top: 4px; font-size: 11px; line-height: 1.45; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-result-nature button.is-active { border-color: var(--visual-copy); color: var(--visual-accent); background: var(--visual-surface); box-shadow: inset 0 -2px var(--visual-accent); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-result-section .aia-field { padding-bottom: 4px; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-procedure-step-field { padding-top: 2px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace { margin: 2px 0 0; border-top: 1px solid var(--visual-line-soft); border-bottom: 1px solid var(--visual-line-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace > summary { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 2px; color: var(--visual-ink); cursor: pointer; list-style: none; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace > summary::-webkit-details-marker { display: none; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace > summary > span { min-width: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace > summary strong,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace > summary small { display: block; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace > summary strong { font-size: 13px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace > summary small { overflow: hidden; margin-top: 3px; color: var(--visual-copy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace > summary svg { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .16s ease; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace[open] > summary svg { transform: rotate(180deg); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace > dl { margin: 0; padding: 0 0 8px; border-top: 1px solid var(--visual-surface-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-trace > dl > p { margin: 10px 0 4px; color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-ref-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--visual-surface-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-ref-row:last-child { border-bottom: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-ref-row dt { color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-ref-row dd { display: grid; min-width: 0; gap: 7px; margin: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-ref-row dd > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; min-width: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-ref-row dd strong { overflow: hidden; color: var(--visual-ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-ref-row dd small { color: var(--visual-copy); font-size: 11px; white-space: nowrap; }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 20px; border-top: 1px solid var(--visual-line-soft); background: var(--visual-surface); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > footer > span { display: inline-flex; align-items: center; gap: 7px; color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > footer > span svg { width: 15px; height: 15px; color: var(--visual-accent); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > footer > div { display: flex; gap: 8px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > footer button { min-height: 40px; padding: 0 15px; border: 1px solid var(--visual-line-soft); border-radius: 8px; color: var(--visual-copy); background: var(--visual-surface); font: inherit; font-size: 13px; font-weight: 720; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > footer .btn-primary { color: var(--visual-on-accent); border-color: var(--visual-accent); background: var(--visual-accent); }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-layer { position: fixed; z-index: 1600; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(18, 31, 42, .32); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(720px, 100%); max-height: min(720px, calc(100vh - 48px)); border: 1px solid var(--visual-line-soft); border-radius: 13px; overflow: hidden; background: var(--visual-surface); box-shadow: 0 22px 60px rgba(26, 44, 54, .2); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--visual-line-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > header h2 { margin: 0; font-size: 18px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > header p { margin: 5px 0 0; color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-body { overflow: auto; padding: 8px 20px 18px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-group > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 1px 8px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-group > header h3 { margin: 0; font-size: 13px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-group > header span { color: var(--visual-copy); font-size: 11px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-group > div { border-top: 1px solid var(--visual-line-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 11px; align-items: start; min-height: 48px; padding: 10px 2px; border-bottom: 1px solid var(--visual-surface-soft); cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--visual-accent); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-row strong,
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-row small { display: block; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-row strong { font-size: 13px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-row small { display: -webkit-box; overflow: hidden; margin-top: 3px; color: var(--visual-copy); font-size: 12px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-empty { padding: 44px 10px; color: var(--visual-copy); text-align: center; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-empty strong { font-size: 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-empty p { margin: 6px 0 0; font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--visual-line-soft); background: var(--visual-surface); color: var(--visual-copy); font-size: 12px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > footer > div { display: flex; gap: 8px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > footer button { min-height: 40px; padding: 0 15px; border: 1px solid var(--visual-line-soft); border-radius: 8px; color: var(--visual-copy); background: var(--visual-surface); font: inherit; font-size: 13px; font-weight: 720; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > footer .btn-primary { color: var(--visual-on-accent); border-color: var(--visual-accent); background: var(--visual-accent); }

html[data-audit-execution-workspaces="enabled"] #view-walkthrough :is(.aia-record-trace button, .aia-section-heading > button, .aia-source-shortcuts button, .aia-type-selector button, .aia-result-nature button, .aia-execution-trace > summary, .aia-editor > footer button, .aia-picker button):focus-visible {
  outline: 3px solid rgba(49, 124, 114, .24);
  outline-offset: 2px;
}

@media (max-width: 820px) {
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head,
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-empty,
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > footer { align-items: stretch; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head,
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > footer { flex-direction: column; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-head > div:last-child { justify-content: space-between; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor { grid-template-columns: 1fr auto; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor > span { grid-column: 1 / -1; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-empty { grid-template-columns: 42px 1fr; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-empty .btn { grid-column: 1 / -1; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-row { grid-template-columns: 92px minmax(0, 1fr); }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-trace { grid-column: 2; grid-template-columns: auto auto minmax(0, 1fr) minmax(80px, 110px); }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-execution { grid-column: auto; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-trace button { grid-column: auto; margin-top: 0; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-type-selector { display: grid; grid-template-columns: 1fr; width: 100%; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-type-selector button { border-right: 0; border-bottom: 1px solid var(--visual-line-soft); }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-type-selector button:last-child { border-bottom: 0; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-result-nature { grid-template-columns: 1fr; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-verification-fields { grid-template-columns: 1fr; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-verification-fields .wide { grid-column: auto; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-ref-row dd > span { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 560px) {
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-workspace { padding-inline: 12px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor { grid-template-columns: 1fr; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-anchor > em { justify-self: start; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-row { grid-template-columns: 1fr; gap: 9px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-kind { display: flex; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-trace { grid-column: 1; grid-template-columns: auto auto minmax(0, 1fr); }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-execution { grid-column: 1 / -1; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-trace button { grid-column: auto; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor-body { padding-inline: 14px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-editor > :is(header, footer) { padding-inline: 14px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-layer { padding: 8px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker { max-height: calc(100vh - 16px); }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker > :is(header, footer) { padding-inline: 14px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-picker-body { padding-inline: 14px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-field :is(input, textarea, select) { font-size: 16px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-execution-ref-row { grid-template-columns: 1fr; gap: 4px; }
}
.at-professional-include-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text-primary, var(--visual-accent-deep));
  font-size: 14px;
  cursor: pointer;
}
.at-professional-include-item input { width: 18px; height: 18px; flex: 0 0 auto; }
.at-professional-saved-review { color: var(--text-secondary, var(--visual-copy)); }
#at-professional-judgement-feedback:empty { display: none; }

/* Record-first reading surface; historical record layout remains independent. */
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger {
  min-height: 0;
  padding: 22px 24px 32px;
}
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger > .aia-head {
  max-width: none;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 0;
}
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger > .aia-head > div:first-child { display: flex; align-items: baseline; gap: 10px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger > .aia-head h1 { font-size: 20px !important; line-height: 1.4; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger > .aia-head span { color: var(--visual-copy); font-size: 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-requirements { max-width: 360px; color: var(--visual-copy); font-size: 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-requirements summary { min-height: 36px; padding: 7px 0; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-task-requirements p { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger > .aia-lock-notice {
  max-width: none;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6d542b;
}
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger > .aia-lock-notice > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger > .aia-lock-notice span { margin: 0; font-size: 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger > .aia-records { max-width: none; margin: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-row { padding: 18px 0; border-bottom: 1px solid var(--visual-line-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-row > header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-row h3 { margin: 0; font-size: 17px !important; line-height: 1.6; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-nature { color: #805719; font-size: 13px; white-space: nowrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-nature.is-clear { color: var(--visual-accent-deep); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-nature.is-pending { color: var(--visual-copy); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-observation { max-width: 75ch; margin: 8px 0 12px; color: var(--visual-copy); font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-gaps { max-width: 75ch; margin: 10px 0; color: #79551e; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-gaps ul { margin: 4px 0; padding-left: 20px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-actions button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--visual-line-soft); border-radius: 6px; background: var(--visual-surface); color: var(--visual-accent-deep); font: inherit; font-size: 14px; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-actions button:hover { background: var(--visual-surface); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-actions span { color: var(--visual-copy); font-size: 13px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-details { margin-top: 10px; color: var(--visual-copy); font-size: 14px; line-height: 1.65; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-details summary { width: fit-content; padding: 5px 0; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-details p { max-width: 75ch; margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger :is(summary, .aia-ledger-actions button):focus-visible { outline: 2px solid var(--visual-accent); outline-offset: 3px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-readout { max-width: 900px; padding: 16px 0; font-size: 15px; line-height: 1.7; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-readout > header { display: flex; gap: 14px; align-items: center; color: var(--visual-copy); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-readout h2 { margin: 20px 0 6px; font-size: 20px !important; line-height: 1.5; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-readout h3 { margin: 22px 0 8px; font-size: 15px !important; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-readout p { white-space: pre-wrap; overflow-wrap: anywhere; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-readout > header button { min-height: 40px; padding: 7px 12px; border: 1px solid var(--visual-line-soft); border-radius: 6px; background: var(--visual-surface); color: var(--visual-accent-deep); font: inherit; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-record-readout button:focus-visible { outline: 2px solid var(--visual-accent); outline-offset: 3px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-readout-verification > div { margin-block: 10px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-readout-verification dt { color: var(--visual-copy); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-readout-verification dd { margin: 3px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger { padding: 16px 14px 24px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger > .aia-head { flex-wrap: wrap; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger-actions button { min-height: 44px; }
}

/* Three-part entry form: purpose, evidence, observation. */
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form {
  max-width: 960px;
  margin: 0;
  border: 0;
  border-radius: 0;
}
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-ledger > .aia-draft-status { max-width: none; margin: 0 0 8px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-close-entry { display: grid; place-items: center; width: 40px; height: 40px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: var(--visual-copy); cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-close-entry svg { width: 18px; height: 18px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-close-entry:hover { background: var(--visual-surface); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-close-entry:focus-visible { outline: 2px solid var(--visual-accent); outline-offset: 3px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-close-entry:disabled { opacity: .6; cursor: not-allowed; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-editor-body { padding: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-editor-section { padding: 18px 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-editor-section:first-child { border-top: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form h3 { margin: 0 0 10px; font-size: 16px !important; line-height: 1.5; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-section-heading h3 { margin: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-field { padding: 8px 0; min-width: 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-field > span { font-size: 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-entry-method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form :is(.aia-type-selector, .aia-result-nature) { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form :is(.aia-type-selector, .aia-result-nature) button { min-height: 40px; padding: 8px 14px; font-size: 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-type-selector { display: inline-grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: auto; max-width: 100%; gap: 0; overflow: visible; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-type-selector button { padding-inline: 10px; border: 0; border-right: 1px solid var(--visual-line-soft); }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-type-selector button:last-child { border-right: 0; border-radius: 0 7px 7px 0; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-type-selector button:first-child { border-radius: 7px 0 0 7px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-result-help { margin: 6px 0; color: var(--visual-copy); font-size: 14px; line-height: 1.6; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-source-more { margin-top: 8px; color: var(--visual-copy); font-size: 14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-source-more summary { padding: 7px 0; width: fit-content; cursor: pointer; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form > footer { padding: 16px 0; background: transparent; gap: 12px; flex-wrap: wrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form > footer > span { font-size: 13px; }
.aia-followup-evidence { margin-top:16px; padding-top:16px; border-top:1px solid var(--visual-line,#dce4ed); }
.aia-followup-evidence h4 { margin:0 0 12px; font-size:14px; }
.aia-followup-evidence p { font-size:13px; line-height:1.6; }
.aia-followup-evidence .aia-source-shortcuts input { flex:1; min-width:160px; padding:8px; }
.aia-followup-evidence ul { max-height:220px; overflow:auto; padding-left:20px; }
.aia-followup-evidence li { margin:6px 0; overflow-wrap:anywhere; }
.aia-followup-evidence details { margin:12px 0; }
.aia-followup-evidence details>label { display:block; margin:12px 0; }
.aia-evidence-ai { overflow-wrap:anywhere; }
.aia-evidence-ai .aia-reference-paragraph p { white-space:pre-wrap; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-evidence-ai section[aria-label="补证分析建议"] { margin:16px 0; padding:4px 0 4px 14px; border-left:3px solid var(--visual-line-soft); color:var(--visual-ink); }
.aia-evidence-ai section[aria-label="补证分析建议"]>p { margin:8px 0 12px; font-size:14px; }
html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form button:focus-visible { outline: 2px solid var(--visual-accent); outline-offset: 3px; }
@media (max-width: 640px) {
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-close-entry { min-width: 44px; min-height: 44px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form .aia-entry-method { grid-template-columns: minmax(0, 1fr); gap: 0; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form button { min-height: 44px; }
  html[data-audit-execution-workspaces="enabled"] #view-walkthrough .aia-entry-form > footer > div { display: flex; flex-wrap: wrap; gap: 8px; }
}
