.asm { text-align: start; color: var(--ink, #222724); }
.asm .asm-all { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.asm .asm-heading, .asm .asm-edit-head, .asm .asm-pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; }
.asm .asm-heading { margin-bottom: 12px; }
.asm h2, .asm h3 { line-height: 1.25; margin: 0; letter-spacing: -.035em; }
.asm h2 { font-size: 1.36rem; }
.asm h3 { font-size: 1.08rem; margin: 0 0 10px; }
.asm .asm-row, .asm .asm-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 7px; }
.asm .asm-row { margin-block: 5px; }
.asm .asm-muted, .asm .asm-message, .asm .asm-size, .asm .asm-counts, .asm .asm-pager span { font-size: .88rem; color: var(--muted, #5d635f); }
.asm .asm-muted { margin: 7px 0 13px; line-height: 1.45; }
.asm .asm-size { font-variant-numeric: tabular-nums; }
.asm label { display: grid; align-content: start; gap: 4px; color: var(--ink, #222724); font-size: .83rem; font-weight: 620; }
.asm label input, .asm label select { font-weight: 450; font-size: .94rem; min-width: 0; width: 100%; }
.asm .asm-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-block: 10px 13px; }
.asm .asm-fields label { position: relative; }
.asm .asm-fields output { margin-inline-start: auto; color: var(--muted, #5d635f); position: absolute; right: 0; }
.asm input[type=range] { min-height: 42px; margin: 0; accent-color: var(--red, #bc382e); }
.asm .control { min-height: 40px; padding: 7px 12px; font-size: .84rem; }
.asm .asm-select { margin: 10px 0 14px; }
.asm .asm-select label { width: min(210px, 100%); }
.asm .asm-bar { align-items: center; border-block: 1px solid var(--line, #dcded8); padding: 10px 0; }
.asm .asm-move { font-size: .87rem; margin-top: 5px; }
.asm .asm-move summary { cursor: pointer; padding: 8px 0; }
.asm .asm-move label { max-width: 130px; }
.asm .asm-counts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.asm .asm-counts [data-selected]::before { content: "·"; margin-inline-end: 5px; }
.asm .asm-organizer-head { margin-bottom: 3px; }
.asm .asm-grid-hint { margin: 4px 0 8px; }
.asm .asm-edit-head { margin: 15px 0 4px; }
.asm .asm-edit-head h3 { margin: 0; }
.asm .asm-disclosure { border-bottom: 1px solid var(--line, #dcded8); }
.asm .asm-disclosure summary { padding: 10px 0; font-size: .9rem; font-weight: 620; cursor: pointer; min-height:44px; }
.asm.asm-organizer .asm-bar { border-top: 0; padding-top: 3px; }
.asm summary:focus-visible { outline: 3px solid #3165ba; outline-offset: 2px; }
.asm .asm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 9px; }
.asm .asm-card { min-width: 0; display: grid; align-content: start; gap: 1px; text-align: start; padding: 6px; background: #fff; border: 1px solid #d3d9d1; border-radius: 9px; color: var(--ink, #222724); }
.asm .asm-card:hover { border-color: #8e9a8b; }
.asm .asm-card[aria-pressed=true] { background: #f7eeee; border-color: var(--red, #bc382e); box-shadow: inset 0 0 0 1px var(--red, #bc382e); }
.asm .asm-over { outline: 3px solid #50795b; outline-offset: -2px; }
.asm .asm-paper { position: relative; display: flex; align-items: center; justify-content: center; background: #edf0ea; border-radius: 5px; height: 141px; padding: 9px; margin-bottom: 4px; }
.asm .asm-paper img { object-fit: contain; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; box-shadow: 0 1px 4px #242b1d30; background: white; }
.asm .asm-position { position: absolute; top: 5px; left: 5px; border-radius: 4px; padding: 1px 5px; line-height: 1.4; color: #fff; background: #424b41; font-size: .7rem; }
.asm [aria-pressed=true] .asm-position { background: var(--red, #bc382e); }
.asm .asm-placeholder, .asm .asm-card-page { font-size: .73rem; color: var(--muted, #5d635f); }
.asm .asm-card-name { font-size: .82rem; font-weight: 620; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.asm .asm-pager { margin-top: 12px; }
.asm .asm-export { border-top: 1px solid var(--line, #dcded8); padding-top: 16px; margin-top: 19px; }
.asm .asm-export .primary, .asm [data-compress] { margin-top: 5px; }
.asm .asm-notice { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; background: #faf0e8; border-radius: 8px; margin-bottom: 5px; font-size: .9rem; overflow-wrap: anywhere; }
.asm .asm-message { margin: 12px 0 0; overflow-wrap: anywhere; }
.asm .asm-muted:empty, .asm .asm-message:empty, .asm .asm-results:empty, .asm .asm-comparison:empty { display: none; }
.asm .asm-error { color: #9c2e25; }
.asm .asm-scan { background: #f7f8f5; border: 1px solid var(--line, #dcded8); border-radius: 10px; padding: 13px; margin-bottom: 12px; }
.asm .asm-scan .asm-fields { margin-top: 0; }
.asm .asm-comparison { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.asm .asm-comparison figure { margin: 0; min-width: 0; }
.asm .asm-comparison figcaption { font-weight: 620; font-size: .82rem; margin: 0 0 5px; }
.asm .asm-comparison a { display: grid; place-items: center; min-height: 120px; height: clamp(150px, 28vw, 350px); background: #e7ebe5; padding: 7px; border-radius: 6px; }
.asm .asm-comparison img { max-height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 1px 4px #242b1d30; }
.asm .asm-steps { padding-left: 1.8rem; margin: 9px 0 17px; }
.asm .asm-steps li { padding-left: 3px; margin-bottom: 8px; }
.asm .asm-steps li::marker { font-variant-numeric: tabular-nums; color: var(--muted, #5d635f); font-weight: 650; }
.asm .asm-step { background: #f9faf7; border: 1px solid var(--line, #dcded8); border-radius: 9px; padding: 10px 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.asm .asm-step-name { flex: 1 1 150px; font-size: .94rem; }
.asm .asm-step label { flex: 1 1 160px; }
.asm .asm-step-note { display: block; width: 100%; color: var(--muted, #5d635f); font-size: .78rem; line-height: 1.4; }
.asm .asm-step-actions { align-self: end; }
.asm .asm-step-actions .control { padding-inline: 8px; }
.asm .asm-empty-step { list-style: none; font-size: .9rem; color: var(--muted, #5d635f); }
.asm .asm-results { padding: 0; margin: 12px 0 0; list-style: none; }
.asm .asm-results li { display: grid; gap: 2px; border-bottom: 1px solid var(--line, #dcded8); padding: 8px 0; font-size: .85rem; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .asm .asm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: clamp(195px,38vh,330px); overflow-y: auto; padding: 3px; margin-inline: -3px; scrollbar-width: thin; }
  .asm .asm-organizer-head { position: sticky; top: 0; z-index: 2; background: white; padding-block: 5px; }
  .asm .asm-paper { height: 132px; }
  .asm .control { min-height: 44px; }
  .asm .asm-select label { width: 100%; }
  .asm .asm-step { align-items: start; }
  .asm .asm-step-name { flex: 1 0 100%; }
}
