.ar-panel, .ar-meta, .ar-detail-panel {
  border: 1px solid var(--line);
  background: #fffefb;
}
.ar-tools, .ar-meta, .ar-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ar-tools { padding: 14px clamp(16px, 2.5vw, 30px); border-bottom: 1px solid var(--line); }
.ar-count, .ar-tools label, .ar-record time, .ar-record-name p, .ar-items p, .ar-meta p, .ar-message dt {
  font-size: .88rem;
  color: var(--muted);
}
.ar-tools label { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.ar-tools select {
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid #aca998;
  border-radius: 0;
  background: var(--paper);
}
.ar-empty { padding: clamp(42px, 6vw, 76px) 22px; text-align: center; }
.ar-empty h2, .ar-detail-panel h2 { font: 400 clamp(1.9rem, 2.6vw, 2.5rem)/1.1 var(--serif); }
.ar-empty p { max-width: 43ch; margin: 12px auto 20px; color: var(--muted); }
.ar-icon { display: grid; place-items: center; margin: 0 auto 18px; background: #eeece1; color: var(--olive); width: 58px; height: 58px; border-radius: 50%; }
.ar-icon svg { width: 27px; height: 27px; }
.ar-link, .ar-back { text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.ar-link { border: 0; background: transparent; padding: 10px 4px; margin-top: 12px; }
.ar-back { display: inline-flex; align-items: center; min-height: 44px; }
.ar-list, .ar-items { list-style: none; padding: 0; margin: 0; }
.ar-record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, .48fr) minmax(7rem, auto); align-items: center; gap: 16px; padding: 14px clamp(16px, 2.5vw, 30px); }
.ar-record + .ar-record, .ar-items li { border-top: 1px solid var(--line); }
.ar-record-name { min-width: 0; }
.ar-record-name a { display: inline-block; padding-block: 4px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ar-record-name p { overflow-wrap: anywhere; }
.ar-record-end, .ar-state-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; }
.ar-status { display: inline-flex; align-items: center; width: fit-content; border-radius: 3px; padding: 3px 10px; font-size: .81rem; font-weight: 500; }
.ar-open { background: #f4e6cf; color: #604018; }
.ar-closed { background: #e8ecdf; color: #35462b; }
.ar-meta, .ar-detail-panel { margin-bottom: 18px; padding: clamp(16px, 2.5vw, 30px); }
.ar-meta strong { overflow-wrap: anywhere; }
.ar-button { min-height: 42px; border: 1px solid #8e927e; background: transparent; color: var(--ink); padding: 7px 14px; }
.ar-button:hover { background: #f1f0e7; }
.ar-items { margin-top: 20px; }
.ar-items li { padding: 12px 0; display: grid; grid-template-columns: 60px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.ar-items img { width: 60px; height: 60px; object-fit: cover; }
.ar-items strong { font-weight: 500; overflow-wrap: anywhere; }
.ar-items li > span, .ar-total span { font-variant-numeric: tabular-nums; }
.ar-total { border-top: 1px solid var(--line); padding-top: 17px; }
.ar-message { margin: 14px 0 0; }
.ar-message dt { margin-top: 14px; }
.ar-message dd { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.ar-notice { color: var(--olive); font-size: .92rem; }
@media (max-width: 720px) {
  .ar-record { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; }
  .ar-record time { grid-column: 1; }
  .ar-record-end { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-items: end; }
  .ar-state-tools { justify-content: flex-start; }
}
@media (max-width: 400px) {
  .ar-items li { grid-template-columns: 44px minmax(0,1fr); gap: 6px 10px; }
  .ar-items img { width: 44px; height: 44px; }
  .ar-items li > span { grid-column: 2; }
}
