.ai-customer-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 28px; border: 1px solid #dce2e5; border-radius: 20px; color: #1c2935; background: #fdfefe; box-shadow: 0 24px 100px #10293230; overflow: auto; }
.ai-customer-dialog::backdrop { background: #10293270; backdrop-filter: blur(6px); }
.ai-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.ai-dialog-head h2 { margin: 0; }
.ai-dialog-body { overflow-wrap: anywhere; }
.ai-form, .ai-form label { display: grid; gap: 12px; }
.ai-form { gap: 20px; }
.ai-form :is(input, select, textarea) { width: 100%; min-width: 0; padding: 12px; border: 1px solid #cad5da; border-radius: 8px; color: inherit; background: white; font: inherit; }
.ai-form textarea { min-height: 90px; }
.ai-plaintext { display: block; padding: 20px; border-radius: 12px; background: #edf6f4; font-size: 16px; overflow-wrap: anywhere; user-select: all; }
.ai-form-error { color: #b42318; }
.ai-table-scroll { max-width: 100%; overflow-x: auto; margin: 18px 0; }
.ai-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.ai-table th, .ai-table td { padding: 12px 8px; border-bottom: 1px solid #e1e8eb; min-width: 85px; overflow-wrap: anywhere; }
@media (max-width: 480px) { .ai-customer-dialog { padding: 20px; } .ai-customer-dialog .action-row > .button { width: 100%; } }
@media (max-width: 360px) { .ai-customer-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; min-height: 100dvh; margin: 0; padding: 16px; border-radius: 0; } }

.ai-plans { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.ai-plans[hidden] { display: none; }

/* 账号中心最后那三张卡(我的授权/工单/内容)所在的 `section.portal-grid.three` **没有上边距** ——
   `.portal-grid` 只定义了 display 与 gap,而别处的块都有 `.section-block` 的 `margin-top: 26px`。
   于是它跟上面那一块**贴在一起**(2026-10-01 用户指出「不要贴死」)。这里把节奏补回来。 */
.portal-grid.three:last-child,
.portal-grid:last-child { margin-top: 26px; }
