/* LumaCite public-site design language alignment, 2026-07-12.
   Visual-only layer: application behavior, storage, and data engines are unchanged. */
:root {
  --bg: #f4f7ff;
  --panel: #fff;
  --sidebar-panel: #fff;
  --sidebar-border: #d9e0ea;
  --sidebar-accent: #f7f9fc;
  --sidebar-accent-strong: #eef5ff;
  --sidebar-active: #eaf3ff;
  --sidebar-active-text: #1473e6;
  --sidebar-ring: rgba(20, 115, 230, .14);
  --sidebar-muted: #67758c;
  --sidebar-ink: #172033;
  --surface-border: #d9e0ea;
  --surface-hover: #f7f9fc;
  --surface-selected: #fff0ee;
  --surface-muted: #67758c;
  --surface-ink: #172033;
  --main-panel-bg: #fff;
  --main-panel-soft: #f7f9fc;
  --main-panel-border: #d9e0ea;
  --main-panel-hover: #fff8f7;
  --main-panel-selected: #fff0ee;
  --main-panel-ring: rgba(239, 63, 52, .15);
  --paper-title: #172033;
  --panel-solid: #fff;
  --ink: #172033;
  --muted: #67758c;
  --line: #d9e0ea;
  --toolbar-line: #d9e0ea;
  --blue: #1473e6;
  --blue-dark: #0d5fc4;
  --cyan: #1473e6;
  --green: #0f9468;
  --orange: #e2a100;
  --red: #ef3f34;
  --violet: #7c55c7;
  --brand: #ef3f34;
  --brand-dark: #d92f28;
  --shadow: 0 8px 22px rgba(23, 32, 51, .07);
  --radius-panel-xl: 8px;
  --radius-panel-lg: 7px;
  --radius-panel-md: 6px;
  --radius-control-lg: 6px;
  --radius-control-md: 5px;
  --radius-control-sm: 4px;
}

body {
  background-color: #f4f7ff;
  background-image:
    linear-gradient(rgba(20, 115, 230, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 115, 230, .055) 1px, transparent 1px),
    radial-gradient(circle at 11% 11%, rgba(20, 115, 230, .12), transparent 31%),
    radial-gradient(circle at 87% 72%, rgba(239, 63, 52, .11), transparent 35%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--ink);
}

body::before { display: none; }

button, input, select, textarea { font-family: var(--font); }

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(20, 115, 230, .22);
  outline-offset: 2px;
}

/* Login */
.auth-page {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  gap: 18px;
  background: transparent;
}

.auth-art,
.auth-card {
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .07);
}

.auth-art {
  position: relative;
  overflow: hidden;
  background-color: #f8fbff;
  background-image:
    linear-gradient(rgba(20, 115, 230, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 115, 230, .07) 1px, transparent 1px),
    radial-gradient(circle at 17% 21%, rgba(20, 115, 230, .16), transparent 34%),
    radial-gradient(circle at 82% 78%, rgba(239, 63, 52, .15), transparent 36%);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.auth-art::after {
  content: "LC";
  position: absolute;
  right: 42px;
  top: 38px;
  width: 76px;
  height: 92px;
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 73% 0, 100% 23%, 100% 100%, 0 100%);
  background: #ef3f34;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.glass-card {
  width: min(620px, calc(100% - 58px));
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #172033;
  box-shadow: none;
  backdrop-filter: none;
  padding: clamp(36px, 7vw, 76px);
  justify-content: center;
}

.glass-card::before,
.glass-card::after { display: none; }

.auth-brandline,
.auth-logo-lockup { color: #172033; }

.auth-brandline {
  position: relative;
  top: auto;
  left: auto;
  margin-bottom: 32px;
}

.eyebrow {
  border: 1px solid #ef3f34;
  border-radius: 999px;
  background: #fff0ee;
  color: #d92f28;
}

.glass-card h1 {
  max-width: 590px;
  color: #172033;
  font-size: clamp(45px, 6vw, 74px);
  line-height: .98;
  letter-spacing: -.045em;
}

.glass-card p {
  max-width: 570px;
  color: #526079;
}

.auth-proof-grid span { border-radius: 999px; box-shadow: none; }
.auth-proof-grid span:nth-child(1) { border-color: #98c8f4; background: #eaf3ff; color: #1473e6; }
.auth-proof-grid span:nth-child(2) { border-color: #f2b7b2; background: #fff0ee; color: #d92f28; }
.auth-proof-grid span:nth-child(3) { border-color: #f0d67b; background: #fff5cf; color: #9b6e00; }

.auth-card {
  background: #fff;
  padding: clamp(30px, 4vw, 48px);
}

.auth-access-pill {
  border: 1px solid #f2b7b2;
  border-radius: 999px;
  background: #fff0ee;
  color: #d92f28;
}

.auth-card h2 { color: #172033; letter-spacing: -.035em; }
.auth-card label { color: #344056; }

.auth-card input {
  border: 1px solid #cfd8e6;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

.auth-card input:focus {
  border-color: #1473e6;
  box-shadow: 0 0 0 3px rgba(20, 115, 230, .12);
}

.auth-card .primary-button,
.primary-button {
  border-radius: 6px;
  background: #ef3f34;
  box-shadow: none;
}

.auth-card .primary-button:hover,
.primary-button:hover { background: #d92f28; transform: none; }

.auth-card .ghost-button {
  border: 1px solid #172033;
  border-radius: 6px;
  background: #fff;
  color: #172033;
}

/* Signed-in application shell */
.library-app { gap: 14px; padding: 14px; }

.sidebar,
.main-panel {
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 32, 51, .07);
  backdrop-filter: none;
}

.sidebar { padding: 10px; }

.brand-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 10px;
  border: 1px solid #d9e0ea;
  border-top: 4px solid #ef3f34;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  box-shadow: none;
}

.sidebar-brand-mark {
  width: 34px;
  height: 34px;
  align-self: start;
  object-fit: contain;
}

.brand-row strong,
.brand-email,
.brand-row span { color: #172033 !important; }

.brand-row strong::after { background: #0f9468; box-shadow: none; }

.brand-row [data-sync-status] {
  width: fit-content;
  border-color: #f2b7b2;
  background: #fff0ee;
  color: #d92f28 !important;
}

.account-menu-toggle {
  border: 1px solid #d9e0ea;
  border-radius: 5px;
  background: #f7f9fc;
  color: #172033;
}

.nav-item,
.folder-row,
.chip,
.signout { border-radius: 5px; }

.nav-item:hover,
.folder-row:hover { border-color: #cfd8e6; background: #f7f9fc; }

.nav-item.active,
.folder-row.active,
.label-row.active {
  border-color: #98c8f4;
  background: #eaf3ff;
  color: #1473e6;
  box-shadow: inset 4px 0 0 #1473e6;
}

.signout { border-color: #f2b7b2; background: #fff; color: #d92f28; }
.main-panel { overflow: hidden; }

.command-bar {
  margin: 0;
  border: 0;
  border-bottom: 1px solid #d9e0ea;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  padding: 14px 16px;
}

.topbar-add {
  min-width: 96px;
  height: 42px;
  min-height: 42px;
  border-radius: 6px;
  background: #ef3f34;
  box-shadow: none;
}

.topbar-add:hover { background: #d92f28; }

.command-bar .top-search > input,
.command-bar .toolbar button,
.command-bar .search-box button,
.command-bar .folder-picker-button,
.top-search > input,
.toolbar button,
.search-box button,
.sort-row button,
.sf-select-trigger {
  height: 42px;
  min-height: 42px;
  border: 1px solid #cfd8e6 !important;
  border-radius: 5px;
  background: #fff !important;
  color: #172033 !important;
  box-shadow: none;
}

.command-bar .toolbar > button:not(.toolbar-icon) {
  background: #fff !important;
  color: #172033 !important;
}

.command-bar .toolbar > button:not(.toolbar-icon):last-child:not(:disabled) {
  border-color: #232733 !important;
  background: #232733 !important;
  color: #fff !important;
}

.command-bar .toolbar > button:not(.toolbar-icon):disabled {
  background: #f3f5f8 !important;
  color: #99a3b3 !important;
}

.toolbar button:hover:not(:disabled),
.search-box button:hover:not(:disabled),
.sort-row button:hover,
.sf-select-trigger:hover {
  border-color: #1473e6 !important;
  background: #f7fbff !important;
  box-shadow: none;
  transform: none;
}

.list-header {
  padding: 17px 20px 13px;
  border-bottom: 1px solid #e7ebf1;
  background: #f7f9fc;
}

.list-header h1 { color: #172033; font-size: 22px; letter-spacing: -.035em; }

.sort-row > span:last-child {
  border: 1px solid #d9e0ea;
  border-radius: 999px;
  background: #fff;
}

.content-grid { padding: 16px 20px 20px; background: #fff; }

.reference-list {
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}

.reference-card { border-bottom: 1px solid #e7ebf1; background: #fff; }
.reference-card:hover { background: #f7f9fc; }
.reference-card:hover::before,
.reference-card.selected::before { background: #1473e6; }

.reference-card.selected {
  background: #eaf3ff;
  box-shadow: inset 0 0 0 1px rgba(20, 115, 230, .16);
}

.reference-title { color: #172033; }
.source, .links a, .links button { color: #ef3f34; }

.pill-row .reference-chip {
  border-color: #d9e0ea;
  background: #f7f9fc;
  box-shadow: none;
}

.pill-row .reference-chip-folder { border-color: #f0d67b; background: #fff5cf; }
.pill-row .reference-chip-label { border-color: #f2b7b2; background: #fff0ee; }

.empty-state {
  min-height: 500px;
  background-color: #f8fbff;
  background-image:
    linear-gradient(rgba(20, 115, 230, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 115, 230, .055) 1px, transparent 1px),
    radial-gradient(circle at 25% 22%, rgba(20, 115, 230, .12), transparent 30%),
    radial-gradient(circle at 78% 76%, rgba(239, 63, 52, .1), transparent 34%);
  background-size: 38px 38px, 38px 38px, auto, auto;
}

.empty-state > div::before {
  width: 64px;
  height: 76px;
  border-radius: 0;
  clip-path: polygon(0 0, 74% 0, 100% 22%, 100% 100%, 0 100%);
  background: #ef3f34;
  box-shadow: none;
}

.empty-state h2 { color: #172033; }
.empty-actions .primary-button,
.empty-actions .ghost-button { border-radius: 6px; }
.empty-actions .primary-button { background: #ef3f34; box-shadow: none; }
.empty-actions .ghost-button { border: 1px solid #172033; background: #fff; }

.floating-menu,
.search-popover,
.bulk-folder-menu,
.sf-select-content,
.account-menu,
.modal-card {
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 32, 51, .12);
}

.add-menu-item:hover,
.add-menu-item.featured { background: #eef5ff; }

.beta-access-modal { background: rgba(23, 32, 51, .64); backdrop-filter: blur(5px); }

.beta-access-card {
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(20, 115, 230, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 115, 230, .055) 1px, transparent 1px);
  background-size: 36px 36px;
  color: #172033;
  box-shadow: 0 20px 60px rgba(23, 32, 51, .24);
}

.beta-access-card::after { border-color: rgba(239, 63, 52, .18); border-radius: 8px; }

.beta-access-mark {
  border-radius: 0;
  clip-path: polygon(0 0, 74% 0, 100% 22%, 100% 100%, 0 100%);
  background: #ef3f34;
  box-shadow: none;
}

.beta-access-kicker { border-color: #f2b7b2; background: #fff0ee; color: #d92f28; }
.beta-access-card h2 { color: #172033; }
.beta-access-card p { color: #526079; }

.beta-access-actions .primary-button,
.beta-access-actions .ghost-button { border-radius: 6px; }
.beta-access-actions .primary-button { background: #ef3f34; box-shadow: none; }
.beta-access-actions .ghost-button { border: 1px solid #172033; background: #fff; color: #172033; }
.beta-access-foot span { border-color: #d9e0ea; background: #f7f9fc; color: #526079; }

@media (max-width: 1100px) {
  .library-app { gap: 10px; padding: 10px; }
  .sidebar, .main-panel { border-radius: 7px; }
}

@media (max-width: 760px) {
  .auth-page {
    width: min(100% - 20px, 620px);
    min-height: auto;
    margin: 10px auto;
  }

  .auth-art::after {
    right: 24px;
    top: 24px;
    width: 54px;
    height: 66px;
    font-size: 17px;
  }

  .glass-card { width: 100%; padding: 34px 26px; }
  .glass-card h1 { max-width: 86%; font-size: clamp(38px, 11vw, 58px); }
  .library-app { padding: 8px; }
  .sidebar, .main-panel { max-width: calc(100vw - 16px); }
  .command-bar { width: 100%; margin: 0; border-radius: 0; }
  .content-grid { padding: 12px; }
}

/* Rendered-state visual QA polish, 2026-07-12. */

/* Small controls and focus states */
.section-heading-actions > button {
  width: 34px;
  height: 34px;
  border: 1px solid #cfd8e6;
  border-radius: 5px;
  background: #fff;
  color: #1473e6;
  box-shadow: none;
}

.section-heading-actions > button:hover {
  border-color: #1473e6;
  background: #eaf3ff;
  box-shadow: none;
}

.account-menu button:hover,
.add-menu-item:hover,
.search-help-row:hover,
.bulk-folder-row:hover,
.sf-select-item:hover,
.sf-select-item.is-hovered {
  background: #eaf3ff;
  color: #0d5fc4;
}

.sf-select-item.active,
.sf-select-item.active:hover,
.sf-select-item.active.is-hovered {
  background: #eaf3ff;
  color: #0d5fc4;
}

.sf-select-item.active strong,
.sf-select-item.active .sf-select-check {
  color: #1473e6;
}

.add-menu-item.featured {
  background: #f7f9fc;
  box-shadow: inset 3px 0 0 #ef3f34;
}

.add-menu-item.featured .add-menu-icon { color: #ef3f34; }
.add-menu-item:hover .add-menu-icon,
.search-help-row:hover .search-option-icon { color: #1473e6; }

.add-menu-item kbd,
.search-help-row kbd {
  border-color: #d9e0ea;
  border-radius: 4px;
  background: #f7f9fc;
  box-shadow: none;
}

.search-help-section button {
  border-color: #cfd8e6;
  background: #f7f9fc;
}

.search-help-section button:hover {
  border-color: #98c8f4;
  background: #eaf3ff;
  color: #1473e6;
}

/* Folder picker: avoid a tall blank panel when no folders exist. */
.bulk-folder-menu {
  height: auto;
  min-height: 0;
  max-height: min(340px, calc(100vh - 110px));
  border-radius: 6px;
  padding: 8px;
}

.bulk-folder-scroll-region {
  min-height: 0;
  max-height: 320px;
}

.bulk-folder-empty {
  min-height: 54px;
  display: flex;
  align-items: center;
  border: 1px dashed #cfd8e6;
  border-radius: 5px;
  background: #f7f9fc;
  color: #67758c;
  padding: 12px;
}

.bulk-folder-row { border-radius: 5px; }

/* Reference rows and compact actions */
.card-select-stack > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-color: #91a0b5;
  border-radius: 4px;
}

.card-actions .ghost-button {
  min-height: 34px;
  border: 1px solid #cfd8e6;
  border-radius: 5px;
  background: #fff;
  color: #172033;
  padding: 7px 12px;
}

.card-actions .ghost-button:hover {
  border-color: #1473e6;
  background: #eaf3ff;
  color: #0d5fc4;
}

.card-action-star {
  color: #91a0b5;
}

.card-action-star:hover,
.card-action-star.active {
  color: #e2a100;
}

.reference-drag-handle { color: #a7b1c1; }

/* Unified dialogs */
.modal::backdrop,
.online-modal::backdrop {
  background: rgba(23, 32, 51, .54);
  backdrop-filter: blur(5px);
}

.modal-card,
.online-modal-card {
  border: 1px solid #d9e0ea;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 51, .2);
  backdrop-filter: none;
}

.modal-card > header {
  border-bottom: 1px solid #e7ebf1;
  padding-bottom: 14px;
}

.modal-card > footer {
  border-top: 1px solid #e7ebf1;
  padding-top: 14px;
}

.modal-card > header > button,
.editor-close,
.online-modal-card header button {
  min-height: 38px;
  border: 1px solid #cfd8e6 !important;
  border-radius: 5px;
  background: #fff !important;
  color: #526079 !important;
  box-shadow: none;
}

.modal-card > header > button:hover,
.editor-close:hover,
.online-modal-card header button:hover {
  border-color: #91a0b5 !important;
  background: #f7f9fc !important;
  color: #172033 !important;
}

.modal-card input:not([type="checkbox"]):not([type="radio"]),
.modal-card select,
.modal-card textarea {
  border-color: #cfd8e6;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

.modal-card input:not([type="checkbox"]):not([type="radio"]):focus,
.modal-card select:focus,
.modal-card textarea:focus {
  border-color: #1473e6;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(20, 115, 230, .12);
}

.modal-card .ghost-button {
  border: 1px solid #cfd8e6;
  border-radius: 5px;
  background: #fff;
  color: #172033;
  box-shadow: none;
}

.modal-card .ghost-button:hover {
  border-color: #91a0b5;
  background: #f7f9fc;
}

/* Editor: remove the previous purple/cyan visual system. */
.editor-card {
  border-color: #d9e0ea;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 51, .22);
}

.editor-header,
.editor-footer {
  background: #fff;
  padding: 18px 22px;
}

.editor-title-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #f2b7b2;
  border-radius: 5px;
  background: #fff0ee;
  color: #ef3f34;
  box-shadow: none;
}

.editor-title-icon::before { margin: 9px auto; }
.editor-card h2 { color: #172033; }
.editor-title-wrap p { color: #67758c; }

.editor-close:focus-visible {
  outline: 2px solid #1473e6;
  outline-offset: 2px;
  box-shadow: none;
}

.editor-grid {
  gap: 12px;
  background: #f7f9fc;
  padding: 18px 22px 22px;
}

.editor-section,
.editor-section-core,
.editor-section-ids {
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  padding: 15px;
}

.editor-section-core { border-top: 3px solid #ef3f34; }
.editor-section-ids { border-top: 3px solid #1473e6; }

.editor-section h3 {
  color: #526079;
  letter-spacing: .07em;
}

.editor-section input,
.editor-section select,
.editor-section textarea {
  border: 1px solid #cfd8e6;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

.editor-section input:focus,
.editor-section select:focus,
.editor-section textarea:focus {
  border-color: #1473e6;
  box-shadow: 0 0 0 3px rgba(20, 115, 230, .12);
}

.editor-footer .ghost-button,
.editor-footer .primary-button { border-radius: 5px; }

.editor-footer .primary-button {
  background: #ef3f34;
  box-shadow: none;
}

/* Keep upload/import content and actions inside short viewports. */
[data-dialog="import"] .modal-card {
  max-height: calc(100vh - 48px);
  overflow: auto;
}

[data-dialog="import"] {
  overflow: visible;
}

[data-dialog="import"] .large-textarea {
  min-height: clamp(150px, 30vh, 240px);
}

/* Search providers use restrained category accents instead of four gradients. */
.online-modal-card { border-radius: 7px; padding: 20px; }
.online-modal-card header { border-color: #e7ebf1; }
.online-modal-card h2 { color: #172033; }
.online-modal-card h2::before { background: #1473e6; }
.online-modal-card input[name="query"] { border: 1px solid #cfd8e6; border-radius: 5px; }

.online-modal-card footer .ghost-button,
.online-modal-card footer .primary-button {
  border-radius: 5px;
  box-shadow: none !important;
}

.online-modal-card footer [data-online-search] {
  box-shadow: none !important;
}

.online-modal-card footer .ghost-button[data-online-search="pubmed"] {
  border-color: #98c8f4;
  background: #eaf3ff;
  color: #0d5fc4;
}

.online-modal-card footer .ghost-button[data-online-search="arxiv"] {
  border-color: #f2b7b2;
  background: #fff0ee;
  color: #d92f28;
}

.online-modal-card footer .ghost-button[data-online-search="isbn"] {
  border-color: #f0d67b;
  background: #fff5cf;
  color: #8a6200;
}

.online-modal-card footer .primary-button {
  border-color: #ef3f34;
  background: #ef3f34;
  color: #fff;
}

/* Export and settings */
.export-format-option {
  border: 1px solid #d9e0ea;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
}

.export-format-option:hover {
  border-color: #98c8f4;
  background: #f7fbff;
}

.export-format-option:has(input:checked) {
  border-color: #1473e6;
  background: #eaf3ff;
  box-shadow: inset 3px 0 0 #1473e6;
}

.integration-toggle {
  min-height: 42px;
  border-color: #d9e0ea;
  border-radius: 5px;
  background: #fff;
}

.integration-toggle:hover {
  border-color: #98c8f4;
  background: #f7fbff;
}

.integration-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #1473e6;
}

/* Toast and custom scrollbars */
.toast {
  border-radius: 6px;
  background: #232733;
  box-shadow: 0 10px 26px rgba(23, 32, 51, .18);
}

.editor-grid,
.integration-list,
.sf-select-content,
.search-popover,
.bulk-folder-scroll-region {
  scrollbar-color: #aeb9c8 #eef2f7;
  scrollbar-width: thin;
}

@media (max-width: 760px) {
  .modal-card { padding: 18px; }
  .editor-header, .editor-footer { padding: 14px 16px; }
  .editor-grid { padding: 14px 16px 18px; }
  .online-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .online-modal-card footer [data-online-search] { width: 100%; }
}

/* View header controls: keep All, Starred, and Trash aligned to one rhythm. */
.list-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
}

.list-header > div:first-child {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.list-header h1 {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1.1;
  white-space: nowrap;
}

.list-header [data-result-count] {
  flex: 0 0 auto;
  color: #67758c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.trash-actions {
  min-width: 0;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
}

.trash-actions.hidden { display: none; }

.trash-action {
  width: auto;
  min-width: 0;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cfd8e6;
  border-radius: 5px;
  background: #fff;
  color: #526079;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  padding: 0 12px;
  white-space: nowrap;
  box-shadow: none;
}

.trash-action > span:last-child { white-space: nowrap; }

.trash-action .restore-symbol,
.trash-action .delete-symbol {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.trash-action:disabled {
  border-color: #dfe5ed;
  background: #f5f7fa;
  color: #9aa5b5;
  opacity: 1;
}

.trash-action.restore:not(:disabled) {
  border-color: #a9d8c4;
  background: #eef9f4;
  color: #087a53;
}

.trash-action.delete:not(:disabled) {
  border-color: #f2b7b2;
  background: #fff0ee;
  color: #c8322a;
}

.trash-action.restore:not(:disabled):hover {
  border-color: #0f9468;
  background: #dff4ea;
  color: #076b49;
}

.trash-action.delete:not(:disabled):hover {
  border-color: #ef3f34;
  background: #ffe4e1;
  color: #b72822;
}

.sort-row {
  min-width: 0;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.sort-row .sort-direction-button {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  flex: 0 0 42px;
  padding: 0 !important;
}

.sort-row .sf-select {
  flex: 0 0 auto;
}

.sort-row .sf-select[data-custom-select="sort"] { width: 190px; }
.sort-row .sf-select[data-custom-select="type"] { width: 190px; }

.sort-row .sf-select-trigger {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
}

.sort-row > [data-selected-count] {
  min-width: 108px;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e0ea;
  border-radius: 999px;
  background: #fff;
  color: #526079;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  padding: 0 14px;
  white-space: nowrap;
}

@media (max-width: 1500px) {
  .trash-action {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .trash-action > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .list-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .list-header > div:first-child,
  .sort-row {
    width: 100%;
    flex-wrap: wrap;
  }

  .sort-row { justify-content: flex-start; }
  .trash-actions { margin-left: 0; }
}
