.msd-ai-page .mm-article { max-width: var(--mm-container); }
.msd-ai-page .mm-article > :not(.msd-ai) { max-width: 48rem; margin-inline: auto; }
.msd-ai { color: var(--mm-ink-800); margin-block: 2rem 3rem; font-size: .94rem; }
.msd-ai *, .msd-ai *::before, .msd-ai *::after { box-sizing: border-box; }
.msd-ai [hidden] { display: none !important; }
.msd-ai-controls { margin: 0; padding: 0; border: 0; min-width: 0; }
.msd-ai, .msd-ai-page .mm-article [id] { scroll-margin-top: 6.5rem; }
.msd-ai a.mm-external-link::after { content: none; }
.msd-ai-price-help { margin-bottom: 1rem; }
.msd-ai-price-help summary { cursor: pointer; min-height: 44px; padding-block: .55rem; color: var(--mm-brand-700); }
.msd-ai, .msd-ai-page .mm-article [id] { scroll-margin-top: 6.5rem; }
.msd-ai a.mm-external-link::after { content: none; }
.msd-ai-price-help { margin-bottom: 1rem; }
.msd-ai-price-help summary { cursor: pointer; min-height: 44px; padding-block: .55rem; color: var(--mm-brand-700); }
.msd-ai-top { border-top: 4px solid var(--mm-brand-600); background: var(--mm-brand-50); padding: 1.5rem; border-radius: .75rem; }
.msd-ai-top h2 { margin: 0 0 .6rem; font-size: 1.9rem; }
.msd-ai-top p { margin-bottom: 0; }
.msd-ai-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; padding-block: 1.25rem; }
.msd-ai-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.msd-ai-field label { font-weight: 600; }
.msd-ai-search { grid-column: 1 / -1; }
.msd-ai input, .msd-ai select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #858e9b; border-radius: .45rem; background: white; color: var(--mm-ink-800); padding: .65rem; font: inherit; }
.msd-ai-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; justify-content: space-between; padding: 0 0 1rem; }
.msd-ai-actions select { min-width: 15rem; }
.msd-ai button { min-height: 46px; border: 1px solid var(--mm-brand-600); border-radius: .45rem; background: white; color: var(--mm-brand-700); padding: .65rem 1rem; font: inherit; font-weight: 600; cursor: pointer; }
.msd-ai button:hover { background: var(--mm-brand-50); }
.msd-ai-count { font-weight: 600; margin-block: 1rem .5rem; }
.msd-ai-note { color: var(--mm-ink-600); font-size: .86rem; line-height: 1.6; }
.msd-ai .msd-ai-table { display: table; width: 100%; max-width: 100%; overflow: visible; table-layout: fixed; border-collapse: collapse; margin: 1rem 0; font-size: .86rem; }
.msd-ai-table caption { text-align: left; padding: .65rem 0; color: var(--mm-ink-600); }
.msd-ai-table th, .msd-ai-table td { border: 0; border-bottom: 1px solid var(--mm-ink-200); padding: 1rem .65rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.msd-ai-table thead th { background: var(--mm-brand-800); color: white; font-weight: 600; }
.msd-ai-table thead th:first-child { width: 22%; }
.msd-ai-table thead th:nth-child(2) { width: 16%; }
.msd-ai-table thead th:nth-child(3) { width: 13%; }
.msd-ai-table thead th:nth-child(4) { width: 17%; }
.msd-ai-table thead th:nth-child(5) { width: 16%; }
.msd-ai-table tbody tr:nth-child(even) { background: var(--mm-ink-50); }
.msd-ai-name { display: block; font-size: 1.1rem; color: var(--mm-brand-800); margin-bottom: .2rem; }
.msd-ai-provider { display: block; color: var(--mm-ink-600); font-weight: 400; }
.msd-ai-table p { margin: .4rem 0; }
.msd-ai-table details { margin-top: .75rem; font-weight: 400; }
.msd-ai-table summary { cursor: pointer; color: var(--mm-brand-600); min-height: 44px; padding-block: .5rem; }
.msd-ai-table dl { margin: .5rem 0; }
.msd-ai-table dt { font-weight: 600; margin-top: .5rem; }
.msd-ai-table dd { margin: 0; }
.msd-ai-link { display: inline-block; min-height: 44px; padding-block: .6rem; }
.msd-ai-badge { display: inline-block; border-radius: .3rem; background: var(--mm-brand-50); color: var(--mm-brand-800); padding: .2rem .45rem; line-height: 1.4; }
.msd-ai-warning { background: #fff2d7; color: #684100; }
.msd-ai-empty { padding: 1.5rem; border: 1px solid var(--mm-ink-200); border-radius: .5rem; }
.msd-ai :focus-visible { outline: 3px solid var(--mm-brand-600); outline-offset: 3px; }
@media (max-width: 960px) {
  .msd-ai-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .msd-ai .msd-ai-table, .msd-ai-table tbody { display: block; }
  .msd-ai-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .msd-ai-table caption { display: block; }
  .msd-ai-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--mm-ink-200); border-radius: .65rem; margin-bottom: 1rem; overflow: hidden; }
  .msd-ai-table th[scope=row] { grid-column: 1 / -1; }
  .msd-ai-table td { padding: .75rem 1rem; }
  .msd-ai-table td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 600; color: var(--mm-ink-600); margin-bottom: .3rem; }
  .msd-ai-table td:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .msd-ai .msd-ai-table { font-size: .94rem; }
}
@media (max-width: 520px) {
  .msd-ai-filters { grid-template-columns: minmax(0,1fr); }
  .msd-ai-top { padding: 1rem; }
  .msd-ai-actions, .msd-ai-actions .msd-ai-field, .msd-ai-actions button { width: 100%; }
  .msd-ai-actions select { min-width: 0; }
}
@media print {
  .msd-ai form { display: none; }
  .msd-ai-table tr { break-inside: avoid; }
}
