.native-subagent-review {
  border: 0;
  padding: 0;
  width: min(calc(100% - 32px), 960px);
  max-width: none;
  max-height: 90dvh;
  color: var(--fg, #c0caf5);
  background: var(--bg, #1a1b26);
  border-radius: 12px;
  box-shadow: 0 22px 70px #0009;
  overflow: hidden;
}
.native-subagent-review::backdrop { background: #090a12b8; }
.native-subagent-review-pane { display: none; flex: 1; min-width: 0; min-height: 0; overflow: hidden; color: var(--fg, #c0caf5); background: var(--bg, #1a1b26); }
.native-subagent-review-pane[hidden] { display: none; }
.native-subagent-review-pane.active { display: flex; flex-direction: column; }
.native-subagent-review-pane .native-review-panel { width: 100%; height: 100%; max-height: none; min-height: 0; }
.native-review-panel { display: flex; flex-direction: column; max-height: 90dvh; min-height: 240px; }
.native-review-header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 16px; padding: 18px 20px 12px; border-bottom: 1px solid var(--border, #343746); }
.native-review-header h2 { margin: 0; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.native-review-subtitle { grid-column: 1; color: var(--muted, #9aa1b8); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.native-review-subtitle button { border: 0; padding: 0; color: var(--accent, #7aa2f7); background: transparent; text-decoration: underline; cursor: pointer; }
.native-review-close { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.native-subagent-review button, .native-subagent-review-pane button { min-height: 36px; border: 1px solid var(--border, #41465b); border-radius: 7px; padding: 6px 12px; color: var(--fg, #c0caf5); background: var(--surface, #24283b); font: inherit; cursor: pointer; }
.native-subagent-review button:disabled, .native-subagent-review-pane button:disabled { opacity: .5; cursor: default; }
.native-review-status { display: flex; align-items: center; gap: 8px; min-height: 0; padding: 0 20px; color: var(--muted, #9aa1b8); font-size: 13px; }
.native-review-status:not(:empty) { padding-top: 10px; }
.native-review-error { color: var(--danger, #f7768e); }
.native-review-content { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; padding: 16px 20px 20px; }
.native-review-content > * { max-width: 100%; }
.native-review-content .review-msg, .native-review-content .thinking-block, .native-review-content .context-note, .native-review-content .skill-body, .native-review-content .local-cmd, .native-review-content .summary { overflow-wrap: anywhere; }
.native-review-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border, #343746); }
.native-review-footnote { margin-right: auto; color: var(--muted, #9aa1b8); font-size: 12px; overflow-wrap: anywhere; }
.native-review-empty { color: var(--muted, #9aa1b8); }
.native-review-content .thought-group > .thought-group-header, .native-review-content .review-msg.tool-card, .native-review-content .thinking-block:not(.encrypted), .native-review-content .context-note, .native-review-content .skill-body, .native-review-content .local-cmd, .native-review-content .summary .msg-header { cursor: pointer; }
.native-review-content [aria-expanded="true"] { outline-color: transparent; }
.native-review-tab .close-tab { border: 0; color: inherit; background: transparent; }
.native-review-tab:focus-visible, .native-review-tab .close-tab:focus-visible { outline: 2px solid var(--accent, #7aa2f7); outline-offset: 2px; }
@media (max-width: 600px) {
  .native-subagent-review { width: calc(100% - 16px); max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: auto 8px; border-radius: 12px; }
  .native-review-panel { max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .native-review-header { padding: 14px 14px 10px; gap: 4px 8px; }
  .native-review-content { padding: 12px 14px 16px; }
  .native-review-status { padding-left: 14px; padding-right: 14px; }
  .native-review-footer { justify-content: space-between; gap: 5px; padding: 10px 12px; }
  .native-review-footer button { min-width: 0; padding-inline: 8px; }
}
