/*
 * excel_agent.css — Excel Agent's file-profile cards, plan-review list,
 * and result panel. Reuses page_swap.css and pdf_doctor.css for the
 * shared dropzone/loading-spinner/error-box/fix-section/fix-result
 * pieces (see this page's <head> - all three load together) and the
 * same shared token contract (--card, --border, --accent, --primary,
 * --success/--warn/--danger families, etc.) from style.css's :root, so
 * it repaints correctly for both themes without redefining any color
 * itself. Only the pieces genuinely unique to this tool are defined
 * here - .bp-summary-headline / .bp-fix-result-summary are redefined
 * the same way every other flagship tool's own CSS file already does
 * (see e.g. blank_pages.css's own copy) since they're not part of the
 * two shared stylesheets above.
 */

.xa-panel { max-width: none; }

.bp-summary-headline { font-size: 17px; font-weight: 700; color: var(--text); }
.bp-fix-result-summary { font-size: 14px; color: var(--text); margin: 0 0 14px; }

/* --- File profile cards (shown after /inspect) -------------------------- */

.xa-file-cards { display: flex; flex-direction: column; gap: 12px; margin: 14px 0 20px; }

.xa-file-card {
  border: 1px solid var(--border); border-radius: 12px; background: var(--card);
  padding: 14px 16px;
}
.xa-file-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.xa-file-card-head strong { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xa-file-card-sheet { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; }
.xa-file-card-sheet:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.xa-sheet-name { font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.xa-sheet-meta { font-size: 12px; color: var(--text-muted); margin: 0 0 6px; }
.xa-col-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.xa-col-chip {
  font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--tint);
  color: var(--text); border: 1px solid var(--tint-border); white-space: nowrap;
}
.xa-col-chip-type { color: var(--text-muted); font-size: 10.5px; margin-left: 3px; }
.xa-dup-note { font-size: 11.5px; color: var(--warn); margin-top: 6px; }

/* --- Instruction box + clean preset box ---------------------------------- */

.xa-section-title { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }

.xa-instruction-box, .xa-clean-box {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft);
  padding: 14px 16px; margin: 14px 0;
}
.xa-instruction-box textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--text); font-size: 13.5px; font-family: inherit;
  resize: vertical; box-sizing: border-box;
}
.xa-instruction-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.xa-ai-off-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--warn); margin: 10px 0 0; }
.xa-clean-box p.dash-sub { margin: 0 0 12px; }

/* --- Plan review ---------------------------------------------------------- */

.xa-clarify-box {
  display: flex; align-items: flex-start; gap: 10px; background: var(--warn-bg);
  border: 1px solid var(--warn-border); color: var(--warn); border-radius: 12px;
  padding: 14px 16px; margin: 12px 0 16px; font-size: 13.5px; line-height: 1.5;
}

.xa-plan-steps { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.xa-plan-steps li {
  font-size: 13.5px; color: var(--text); line-height: 1.5; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card);
  list-style: decimal;
}

/* --- Result panel ---------------------------------------------------------- */

.xa-warnings-box, .xa-changelog-box {
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.xa-warnings-box { background: var(--warn-bg); border-color: var(--warn-border); }
.xa-warnings-box ul, .xa-changelog-box ul { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.7; }
.xa-warnings-box .xa-section-title { color: var(--warn); }
.xa-changelog-box { background: var(--card); }
.xa-changelog-box ul { color: var(--text); }
.xa-warnings-box ul { color: var(--warn); }

.xa-verify-box {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--success);
  background: var(--success-bg); border: 1px solid var(--success-border); border-radius: 8px;
  padding: 9px 12px; margin-bottom: 16px;
}
.xa-verify-box p { display: flex; align-items: center; gap: 6px; margin: 0; }

.xa-result-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .xa-instruction-row { flex-direction: column; align-items: stretch; }
  .xa-result-actions { flex-direction: column; align-items: stretch; }
}
