/* Scan-friendly catalogue rows and reachable native workspace editor actions. */
.library-mobile-facts,
.library-mobile-select-label,
.library-details {
  display: none;
}
.library-row-actions {
  white-space: nowrap;
}
.library-table tr.is-selected {
  background: var(--gold-wash);
}
.library-table .library-category {
  margin-top: 4px;
}
.data-editor-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.data-editor-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
}
.data-editor-heading > strong {
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}
.workspace-form .data-editor-section {
  min-width: 0;
  padding: 0;
  margin: 24px 0;
  border: 0;
}
.data-editor-section > legend {
  padding: 0;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 650;
}
.data-editor-section > .grid {
  gap: 16px 20px;
}
.data-editor-section .f {
  margin-bottom: 0;
}
.package-options > p {
  margin-top: 0;
  color: var(--ink-2);
  font-size: 0.875rem;
}
.package-options > .f {
  display: inline-flex;
  margin: 0 20px 8px 0;
}
.workspace-editor-actions {
  margin-bottom: 0;
}
.workspace-editor-actions .row {
  flex-wrap: wrap;
}
.settings-appearance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr);
  align-items: center;
  gap: 32px;
}
.settings-appearance h2 {
  margin-top: 0;
}
.settings-appearance-copy {
  min-width: 0;
}
.settings-appearance-copy .f {
  max-width: 25rem;
}
.settings-appearance-copy .hint {
  margin-bottom: 0;
}
.workspace-theme-preview {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--canvas);
  box-shadow: 0 8px 24px #0000000c;
}
.theme-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}
.theme-preview-header > span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--gold-dp);
}
.theme-preview-header > b {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}
.theme-preview-body {
  display: grid;
  gap: 10px;
  padding: 20px 14px 14px;
}
.theme-preview-line {
  height: 6px;
  width: 80%;
  border-radius: 3px;
  background: var(--rule);
}
.theme-preview-line:first-child {
  width: 55%;
  background: var(--ink-3);
}
.theme-preview-accent {
  width: 40%;
  height: 22px;
  margin-top: 4px;
  border-radius: 5px;
  background: var(--gold-dp);
}
.workspace-theme-preview > small {
  display: block;
  padding: 0 14px 14px;
  color: var(--ink-3);
  font-size: 0.75rem;
}
.settings-support {
  margin-top: 16px;
  padding: 0 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--ink-2);
}
.settings-support > summary {
  min-height: 52px;
  align-content: center;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.settings-support > div {
  padding-bottom: 4px;
  font-size: 0.875rem;
  line-height: 1.6;
}
.settings-support p {
  margin: 0 0 16px;
}
.settings-support a {
  color: var(--gold-dp);
}
@media (max-width: 1100px) {
  .settings-appearance {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .workspace-theme-preview {
    max-width: 25rem;
  }
}
@media (max-width: 700px) {
  .library-table,
  .library-table > .scroll {
    padding: 0;
    overflow: visible;
    border: 0;
    background: none;
  }
  .library-table table.cardify,
  .library-table table.cardify tbody {
    display: block;
    width: 100%;
  }
  .library-table table.cardify thead {
    display: block;
    margin-bottom: 6px;
  }
  .library-table table.cardify thead tr {
    display: block;
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
  }
  .library-table table.cardify thead th {
    display: none;
  }
  .library-table table.cardify thead .library-select-column {
    display: flex;
    align-items: center;
    width: auto;
    padding: 0;
    gap: 8px;
    background: none;
    border: 0;
    text-align: left;
  }
  .library-mobile-select-label {
    display: inline;
    color: var(--ink-2);
    font-size: 0.8125rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
  }
  .library-table table.cardify tbody tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 8px;
    padding: 12px;
    margin: 0 0 8px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    background: var(--card);
  }
  .library-table table.cardify tbody tr.is-selected {
    border-color: var(--gold-dp);
    background: var(--gold-wash);
  }
  .library-table table.cardify tbody td {
    display: block;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
  }
  .library-table table.cardify tbody td::before {
    display: none;
  }
  .library-table table.cardify tbody .library-select-column {
    grid-column: 1;
    grid-row: 1 / 3;
    min-width: 44px;
    padding: 0;
  }
  .library-table table.cardify tbody td.lead {
    grid-column: 2;
    padding: 0;
    margin: 0;
    border: 0;
  }
  .library-table .library-name {
    max-width: 100%;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .library-table .library-category {
    margin: 3px 0 5px;
    color: var(--ink-3);
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .library-mobile-facts {
    display: grid;
    gap: 2px;
    color: var(--ink-2);
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .library-mobile-facts > b {
    color: var(--ink);
    font-weight: 600;
  }
  .library-mobile-cue {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .library-table table.cardify tbody .library-fact-column {
    display: none;
  }
  .library-table table.cardify tbody .library-row-actions {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
  }
  .library-row-actions > .btn {
    min-height: 44px;
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
  .library-details {
    display: inline-flex;
  }
  .library-table table.cardify td[colspan] {
    grid-column: 1 / -1;
  }
  .workspace-form:has(> .workspace-editor-actions.is-current-editor) {
    padding-bottom: 160px;
    scroll-padding-bottom: 160px;
  }
  .workspace-form:has(> .workspace-editor-actions.is-current-editor)
    :is(input, select, textarea) {
    scroll-margin-bottom: 160px;
  }
  .workspace-editor-actions.is-current-editor {
    bottom: calc(
      var(--editor-keyboard-inset, 0px) + env(safe-area-inset-bottom, 0px) + 8px
    );
  }
  .workspace-editor-actions.is-current-editor > .row {
    width: 100%;
  }
  .workspace-editor-actions.is-current-editor > .row > .btn {
    flex: 1 1 auto;
    min-height: 44px;
  }
  .data-editor-heading {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  .workspace-form .data-editor-section {
    margin-block: 20px;
  }
  .settings-appearance {
    gap: 20px;
  }
  .workspace-theme-preview {
    width: 100%;
  }
  .settings-support {
    padding-inline: 16px;
  }
}
@media print {
  .workspace-editor-actions {
    display: none;
  }
}
