.am-document-library { align-content: start; }
.am-document-library .am-page-heading p { max-width: 68ch; line-height: 1.65; }
.am-library-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, .35fr) auto; gap: var(--am-space-4); align-items: end; padding: var(--am-space-5); border: 1px solid var(--am-border); border-radius: var(--am-radius-card); background: var(--am-white); margin-bottom: var(--am-space-6); }
.am-library-filters label { display: block; font-weight: 650; font-size: var(--am-text-sm); margin-bottom: .5rem; }
.am-library-filters input, .am-library-filters select, .am-application-request__link { width: 100%; min-height: 48px; border: 1px solid var(--am-border-strong); border-radius: var(--am-radius-control); background: var(--am-white); color: var(--am-text); padding: .75rem; font: inherit; box-sizing: border-box; }
.am-coa-library { display: grid; gap: var(--am-space-3); }
.am-coa-product { border: 1px solid var(--am-border); border-radius: var(--am-radius-card); background: var(--am-white); overflow: clip; }
.am-coa-product > summary { display: flex; align-items: center; gap: var(--am-space-4); min-height: 76px; padding: 1rem 1.5rem; cursor: pointer; list-style: none; }
.am-coa-product > summary::-webkit-details-marker { display: none; }
.am-coa-product__identity { display: flex; align-items: center; gap: var(--am-space-4); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.am-coa-product__icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: var(--am-orange-50); color: var(--am-orange-text); }
.am-coa-product__count { font-size: var(--am-text-sm); color: var(--am-text-muted); white-space: nowrap; }
.am-coa-product__chevron { font-size: 1.5rem; transition: transform var(--am-duration); }
.am-coa-product[open] .am-coa-product__chevron { transform: rotate(180deg); }
.am-coa-product__lots { list-style: none; margin: 0; padding: 0 1.5rem 1rem; }
.am-coa-product__lots > li { display: block; margin: 0; padding: 0; border: 0; border-top: 1px solid var(--am-border); border-radius: 0; background: transparent; }
.am-coa-lot { display: grid; grid-template-columns: minmax(8rem, .8fr) minmax(0, 1fr) auto; gap: var(--am-space-4); align-items: center; padding: 1rem .5rem; text-decoration: none; color: var(--am-text); min-height: 72px; border-radius: var(--am-radius-control); }
.am-coa-lot:hover { background: var(--am-surface); }
.am-coa-lot__variant, .am-coa-lot__reference { display: grid; gap: .35rem; min-width: 0; overflow-wrap: anywhere; }
.am-coa-lot__variant small, .am-coa-lot__reference > span { color: var(--am-text-muted); font-size: var(--am-text-xs); }
.am-coa-lot__format { display: inline-flex; align-items: center; gap: .75rem; white-space: nowrap; font-size: var(--am-text-sm); font-weight: 700; color: var(--am-navy-700); }
.am-library-state { padding: 2.5rem 1.5rem; border: 1px dashed var(--am-border-strong); border-radius: var(--am-radius-card); background: var(--am-white); text-align: center; }
.am-library-state h3 { margin: 0 0 .65rem; }
.am-library-state p { max-width: 58ch; margin: auto; line-height: 1.6; color: var(--am-text-muted); }
.am-library-pagination { display: flex; justify-content: flex-end; gap: var(--am-space-3); margin-top: var(--am-space-6); }
.am-application-request { max-width: var(--am-content-wide); margin-inline: auto; }
.am-application-request__note { margin-inline: 0; }
.am-request-history { list-style: none; margin: 1rem 0 0; padding: 0; }
.am-request-history > li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.25rem; padding-block: 1.25rem; border-top: 1px solid var(--am-border); }
.am-request-history p { margin: .5rem 0; color: var(--am-text-muted); }
.am-request-history small { color: var(--am-text-muted); }
.am-onboarding-choices { border: 0; padding: 0; display: grid; gap: 1rem; margin: 1.5rem 0; }
.am-partner-invitation > .am-m3-form-card { max-width: none; width: 100%; box-sizing: border-box; }
.am-partner-invitation .am-onboarding-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.am-partner-invitation .am-business-profile { margin-block: 0; }
.am-partner-invitation .am-m3-form__submit { width: auto; justify-self: start; min-width: min(100%, 16rem); }
.am-partner-invitation .am-invitation-preparation select { min-height: 48px; padding: .75rem; border: 1px solid var(--am-border-strong); border-radius: var(--am-radius-control); background: var(--am-white); color: inherit; font: inherit; }
.am-onboarding-choices legend { font-weight: 700; margin-bottom: 1rem; }
.am-onboarding-choices > label { display: flex; align-items: flex-start; gap: .75rem; padding: 1.25rem; border: 1px solid var(--am-border); border-radius: var(--am-radius-card); cursor: pointer; background: var(--am-white); }
.am-onboarding-choices > label:has(input:checked) { border-color: var(--am-orange-500); box-shadow: inset 3px 0 var(--am-orange-500); background: var(--am-orange-50); }
.am-onboarding-choices input { width: 20px; height: 20px; margin-top: .15rem; flex: 0 0 auto; }
.am-onboarding-choices span { display: grid; gap: .5rem; }
.am-onboarding-choices small { color: var(--am-text-muted); font-size: var(--am-text-sm); line-height: 1.6; }
.am-invitation-preparation { margin-block: 1.5rem; }
.am-invitation-preparation > summary { padding: 1rem; cursor: pointer; border: 1px solid var(--am-border); border-radius: var(--am-radius-control); font-weight: 700; }
.am-resources-page { max-width: var(--am-content-wide); margin-inline: auto; }
.am-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.am-resource-card { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--am-border); border-radius: var(--am-radius-card); background: var(--am-white); min-width: 0; overflow-wrap: anywhere; }
.am-resource-card__eyebrow { display: flex; gap: 1rem; align-items: center; font-size: var(--am-text-sm); color: var(--am-text-muted); margin-bottom: 1.25rem; }
.am-resource-card h2 { font-size: 1.3rem; line-height: 1.35; margin: 0 0 .75rem; }
.am-resource-card p { line-height: 1.65; color: var(--am-text-muted); margin: 0 0 1.5rem; }
.am-resource-card > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; margin-top: auto; }
.am-resource-card small { color: var(--am-text-muted); }
.am-resource-card__manage { margin-top: 1.5rem; border-top: 1px solid var(--am-border); padding-top: 1rem; }
.am-resource-card__manage summary { cursor: pointer; font-weight: 650; padding-block: .5rem; }
.am-resource-publisher { margin-top: 2rem; }
.am-resource-form { display: grid; gap: 1rem; margin-top: 1rem; }
.am-resource-form .am-intake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.am-resource-form label { display: grid; gap: .5rem; font-size: var(--am-text-sm); font-weight: 650; }
.am-resource-form input:not([type=checkbox]), .am-resource-form select { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; min-height: 48px; padding: .75rem; background: var(--am-white); color: var(--am-text); border: 1px solid var(--am-border-strong); border-radius: var(--am-radius-control); font: inherit; }
.am-resource-form .am-resource-confirm { display: flex; align-items: flex-start; gap: .75rem; line-height: 1.5; }
.am-resource-confirm input { width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem; }
@media (max-width: 640px) {
  .am-partner-invitation .am-onboarding-choices, .am-resource-form .am-intake-grid { grid-template-columns: minmax(0, 1fr); }
  .am-partner-invitation .am-m3-form__submit { width: 100%; }
  .am-resource-grid { grid-template-columns: minmax(0, 1fr); }
  .am-library-filters { grid-template-columns: minmax(0, 1fr); }
  .am-coa-product > summary { padding: 1rem; gap: .75rem; }
  .am-coa-product__identity { gap: .75rem; }
  .am-coa-product__icon { width: 34px; height: 34px; }
  .am-coa-product__lots { padding-inline: .75rem; }
  .am-coa-lot { grid-template-columns: minmax(5rem, .8fr) minmax(0, 1fr) auto; gap: .75rem; }
  .am-library-pagination { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .am-coa-product__chevron { transition: none; } }
