.ai-draft-review {
  box-sizing: border-box;
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid var(--border, #d9dee7);
  border-radius: 16px;
  background: var(--surface, #fff);
  color: var(--text, #172233);
  overflow: auto;
}
.ai-draft-review::backdrop {
  background: #13223880;
}
.ai-draft-review header,
.ai-draft-review footer {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.ai-draft-review header h2 {
  margin: 0;
}
.ai-draft-review__project {
  font-weight: 600;
}
.ai-draft-review__cost {
  padding: 12px;
  background: var(--surface-soft, #f0f5fb);
  border-radius: 9px;
  font-size: 14px;
}
.ai-draft-review details {
  padding: 12px 0;
}
.ai-draft-review summary {
  cursor: pointer;
}
.ai-draft-review input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-right: 8px;
}
.ai-draft-review fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}
.ai-draft-review__group {
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--border, #d9dee7);
  border-radius: 10px;
}
.ai-draft-review table {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
  font-size: 13px;
}
.ai-draft-review th,
.ai-draft-review td {
  padding: 10px;
  border-bottom: 1px solid var(--border, #e0e6ee);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.ai-draft-review pre {
  white-space: pre-wrap;
  max-height: 180px;
  overflow: auto;
  font: inherit;
  font-size: 13px;
}
.ai-draft-review small {
  color: var(--muted, #59677a);
}
.ai-draft-review__done a {
  display: inline-block;
  margin: 8px 16px 8px 0;
}
.ai-draft-review [hidden] {
  display: none !important;
}
@media (max-width: 620px) {
  .ai-draft-review {
    padding: 16px;
  }
  .ai-draft-review footer {
    flex-wrap: wrap;
  }
  .ai-draft-review th,
  .ai-draft-review td {
    padding: 6px;
  }
}
