/* --- Trash Bin (inside settings modal) --- */
.trash-bin-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e4b6b6;
  background: #f8e6e6;
  color: #8c2020;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.trash-bin-banner.hidden {
  display: none;
}
[data-theme="dark"] .trash-bin-banner {
  background: #341414;
  border-color: #6b2a2a;
  color: #f0b0b0;
}
.trash-bin-banner__dismiss {
  border: none;
  background: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.trash-bin-loading,
.trash-bin-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.trash-bin-loading.hidden,
.trash-bin-empty.hidden {
  display: none;
}
.trash-bin-list {
  overflow-y: auto;
  max-height: 360px;
}
.trash-bin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.trash-bin-row:first-child {
  border-top: none;
}
.trash-bin-row__main {
  min-width: 0;
  flex: 1;
}
.trash-bin-row__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trash-bin-row__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}
.trash-bin-row__restore {
  border: 1px solid #a8d9bb;
  background: #d0ebdc;
  color: #1a6030;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.trash-bin-row__restore:disabled {
  opacity: 0.7;
  cursor: wait;
}
[data-theme="dark"] .trash-bin-row__restore {
  background: #0e2a1a;
  color: #45b87a;
  border-color: #1e4a2e;
}
.trash-bin-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
  padding: 10px 14px;
  font-size: 12px;
}
/* Settings modal tabs */
.settings-modal-card {
  height: min(95vh, 760px);
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}
.settings-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.settings-layout {
  display: flex;
  gap: 16px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  min-width: 0;
}
.settings-tab-list {
  display: flex;
  gap: 2px;
  flex-direction: column;
  flex: 0 0 138px;
  margin-bottom: 0;
  border-right: 1px solid var(--border);
  padding-right: 16px;
  padding-bottom: 0;
  overflow-y: auto;
  max-height: 100%;
}
.settings-tab-content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.settings-tab-content.active {
  display: block;
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}
.settings-tab-list::-webkit-scrollbar {
  display: none;
}
.settings-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 9px 10px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  border-bottom: none;
  margin-bottom: 0;
  transition:
    color 0.15s,
    border-color 0.15s,
    background-color 0.15s;
}
.settings-tab:hover:not(.active) {
  color: var(--text-secondary);
}
.settings-tab.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--bg);
}
.settings-tab:hover {
  background: rgba(217, 119, 87, 0.06);
}
.settings-tab-content {
  display: none;
}
.settings-tab-content.active {
  display: block;
}
.settings-tab-content-wrap .settings-tab-content {
  padding-left: 0;
}
.settings-section {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.settings-card {
  margin-top: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    color-mix(in oklab, var(--bg-card) 88%, transparent),
    var(--bg-card)
  );
  border-radius: 12px;
  padding: 10px 12px;
}
details.settings-card > summary::-webkit-details-marker {
  display: none;
}
details.settings-card > summary {
  list-style: none;
}
details.settings-card[open] > summary svg {
  transform: rotate(180deg);
}
.settings-card:first-of-type {
  margin-top: 0;
}
.settings-card-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.settings-card-head h4 {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  color: var(--text);
  font-weight: 600;
}
.settings-card-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.3;
}
.settings-tab-content .settings-section:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
