/* 지난 작업: 각 도구의 저장·열기 동작은 그대로 두고 모양만 공유한다. */
.aw-history-head { display: flex; align-items: center; gap: 6px; min-width: 0; }
.aw-history-head .aw-history-toggle {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 5px 8px; min-height: 32px; border: 1px solid var(--line); border-radius: var(--r, 6px);
  background: var(--surface); color: var(--tx-2); font: inherit; font-size: var(--t-sm);
  text-align: left; cursor: pointer;
}
.aw-history-head .aw-history-toggle:hover,
.aw-history-head .aw-history-toggle[aria-expanded="true"] { background: var(--surface-2); border-color: var(--line); color: var(--tx); }
.aw-history-toggle .aw-history-chevron { width: 14px; height: 14px; flex: none; margin-left: auto; transition: transform .12s; }
.aw-history-toggle[aria-expanded="false"] .aw-history-chevron { transform: rotate(-90deg); }
.aw-history-toggle[aria-expanded="true"] .aw-history-chevron { transform: none; }
.aw-history-head .aw-history-archive {
  flex: none; width: auto; min-height: 32px; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: var(--r, 6px); background: var(--surface);
  color: var(--tx-2); font: inherit; font-size: var(--t-xs); white-space: nowrap;
}
.aw-history-list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; padding: 0; min-width: 0; }
.aw-history-list[hidden], .aw-history-list.hidden { display: none; }
.aw-history-list .aw-history-row { display: flex; align-items: stretch; gap: 4px; min-width: 0; }
.aw-history-row .aw-history-open {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 7px 8px; border: 1px solid var(--line); border-radius: var(--r, 6px);
  background: var(--surface); text-align: left; cursor: pointer; color: var(--tx-2);
}
.aw-history-row .aw-history-open:hover { background: var(--surface-2); border-color: var(--line); }
.aw-history-row .aw-history-title {
  display: block; width: 100%; min-width: 0; color: var(--tx-2); font-size: var(--t-sm); line-height: 1.5;
  white-space: normal; overflow-wrap: anywhere; word-break: normal; overflow: visible; text-overflow: clip;
  -webkit-line-clamp: unset; max-height: none;
}
.aw-history-row .aw-history-meta { font: inherit; font-size: var(--t-xs); line-height: 1.5; color: var(--dim); white-space: normal; overflow-wrap: anywhere; }
.aw-history-row .aw-history-actions { display: flex; flex: none; align-items: stretch; gap: 4px; }
.aw-history-row .aw-history-delete {
  flex: none; align-self: stretch; min-width: 40px; padding: 6px 8px; border: 1px solid var(--line);
  border-radius: var(--r, 6px); background: var(--surface); color: var(--dim); font: inherit; font-size: var(--t-xs);
  cursor: pointer;
}
.aw-history-row .aw-history-delete:hover { background: var(--surface-2); color: var(--risk, var(--tx)); border-color: var(--line); }
.aw-history-head button:focus-visible, .aw-history-row button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.aw-history-head button:disabled { opacity: .45; cursor: default; }
.aw-history-empty { margin: 6px 0 0; color: var(--dim); font-size: var(--t-xs); line-height: 1.5; }
