@layer cm.components {
  .cm-accordion {
    border: 1px solid var(--line);
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
    background: var(--surface);
  }
  .cm-acc-item + .cm-acc-item { border-top: 1px solid var(--line); }
  .cm-acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    inline-size: 100%;
    width: 100%;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    line-height: 1.35;
    text-align: start;
    padding-block: .85rem;
    padding-inline: 1rem;
    min-block-size: var(--control-h, 38px);
    cursor: pointer;
    transition: background var(--dur-fast, 120ms) var(--ease-std, ease), color var(--dur-fast, 120ms) var(--ease-std, ease);
  }
  .cm-acc-head:hover { background: var(--surface-2); }
  .cm-acc-head:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
  .cm-acc-item.is-open > .cm-acc-head { color: var(--brand); background: var(--brand-50, #eff6ff); }
  .cm-acc-chevron {
    display: inline-flex;
    flex: 0 0 auto;
    color: var(--text-3);
    transition: transform var(--dur-med, 200ms) var(--ease-std, ease);
  }
  .cm-acc-chevron svg { display: block; }
  .cm-acc-item.is-open > .cm-acc-head .cm-acc-chevron { transform: rotate(180deg); color: var(--brand); }
  .cm-acc-panel {
    padding-block: .25rem 1rem;
    padding-inline: 1rem;
    color: var(--text-2);
  }
  .cm-acc-panel[hidden] { display: none; }
  @media (prefers-reduced-motion: reduce) {
    .cm-acc-chevron, .cm-acc-head { transition: none; }
  }
}