/* Product Catalog — restrained enterprise visual system.
 * Presentation only: authentication, previews and file operations remain in their existing scripts.
 * This layer intentionally overrides legacy visual rules without changing their behavior.
 */
:root {
  --primary-color: #244b67;
  --primary-hover: #193a54;
  --bg-color: #f8f9fa;
  --text-color: #25313d;
  --card-bg: #fff;
  --border-color: #e1e5e9;
  --success-color: #47745c;
  --danger-color: #a43e40;
  --warning-color: #936a3b;
  --ui-ink: #25313d;
  --ui-muted: #697580;
  --ui-border: #e1e5e9;
  --ui-soft: #f5f7f8;
  --ui-accent: #244b67;
}
html { font-size: 15px; }
body {
  margin: 0;
  padding: 0 24px 64px;
  background: #fafafa;
  color: var(--ui-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
.container { max-width: 1080px; margin: 0 auto; }
.site-header {
  min-height: 78px;
  margin: 0 0 35px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  border-bottom: 1px solid #e4e7e9;
}
.site-header .brand-block { min-width: 0; }
.site-header .brand-name {
  color: #202b35;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .02em;
  line-height: 1.5;
}
.site-header .brand-en {
  font-size: 11px;
  color: #8a9298;
  margin-top: 2px;
  letter-spacing: .015em;
}
.site-header .header-links { display: flex; align-items: center; flex-shrink: 0; }
.site-header .admin-link {
  position: static;
  display: inline-block;
  margin: 0;
  padding: 6px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #586673;
  font-size: 13px;
  font-weight: 500;
}
.site-header .admin-link:hover { color: #1f4a6d; text-decoration: none; }
.page-heading { margin: 0 0 26px; }
.page-heading h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -.025em;
  color: #25313d;
}
.page-heading p {
  margin: 6px 0 0;
  color: #838c96;
  font-size: 13px;
}
.search-bar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin: 0 0 21px;
  padding: 0 0 15px;
  border: 0;
  border-bottom: 1px solid var(--ui-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.catalog-search-row { max-width: 465px; }
.catalog-search-row .search-input {
  height: 42px;
  min-height: 42px;
  padding: 0 75px 0 13px;
  background: #fff;
  border: 1px solid #d7dde2;
  border-radius: 5px;
  box-shadow: none;
  color: #25313d;
  font-size: 14px;
}
.catalog-search-row .search-input:focus { border-color: #6e91aa; }
.catalog-search-row .search-input::placeholder { color: #939ba2; }
.clear-search-btn {
  background: transparent;
  border: 0;
  border-radius: 3px;
  color: #72808d;
  font-size: 12px;
  box-shadow: none;
}
.clear-search-btn:hover { color: #1c4a6c; background: #f2f4f6; }
.catalog-filter-row { align-items: center; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 16px; }
.filter-chip {
  position: relative;
  min-height: 34px;
  padding: 4px 1px 8px;
  border: 0;
  border-radius: 0;
  color: #747e87;
  font-size: 13px;
  font-weight: 400;
  background: transparent;
  transition: color .12s;
}
.filter-chip:hover { background: transparent; color: #25313d; }
.filter-chip.is-active {
  color: #233e53;
  font-weight: 600;
  background: transparent;
  border: 0;
}
.filter-chip.is-active::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #3d5c73;
}
.catalog-sort-label { font-size: 12px; color: #808a92; }
.catalog-sort {
  min-height: 33px;
  padding: 4px 27px 4px 8px;
  border: 1px solid #e1e5e8;
  border-radius: 4px;
  background: #fff;
  color: #58636d;
  font-size: 12px;
}
.result-count { margin: -6px 0 0; color: #8a9299; font-size: 12px; }
.gallery, #gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
.sample-card {
  display: flex;
  flex-direction: row;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid #e3e7ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  transform: none;
  transition: border-color .14s;
}
.sample-card:hover {
  transform: none;
  box-shadow: none;
  border-color: #bac9d3;
}
.card-icon,
.card-icon[data-type] {
  width: 64px;
  min-width: 64px;
  height: auto;
  min-height: 0;
  color: #7c8994;
  background: #f7f8f9;
  border: 0;
  border-right: 1px solid #eff0f2;
}
.card-icon svg { width: 27px; height: 27px; }
.sample-info {
  min-width: 0;
  padding: 13px 15px;
  justify-content: center;
  gap: 7px;
}
.sample-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  margin: 0;
  color: #29343e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.sample-meta { color: #8a949d; font-size: 11.5px; gap: 8px; }
.sample-format {
  padding: 0;
  background: transparent;
  border-radius: 0;
  color: #7b8791;
  font-size: 11px;
  font-weight: 600;
}
.sample-protected { color: #7b8791; }
.card-actions { gap: 13px; margin: 2px 0 0; }
.card-actions .btn {
  min-height: auto;
  min-width: auto;
  padding: 1px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #245677;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.card-actions .btn:hover { background: transparent; color: #143c57; text-decoration: underline; }
.card-actions .btn-outline { color: #7b858e; }
.btn, .close-btn {
  font-family: inherit;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
.btn { min-height: 36px; padding: 8px 13px; }
.btn-primary, .btn-success { background: #294f6c; color: #fff; }
.btn-primary:hover, .btn-success:hover { background: #1a3e59; color: #fff; }
.btn-secondary { background: #edf0f2; color: #46535e; }
.btn-secondary:hover { background: #e0e5e8; color: #303e48; }
.btn-outline, .btn-info, .btn-warning {
  background: #fff;
  border: 1px solid #d6dde2;
  color: #43525e;
}
.btn-outline:hover, .btn-info:hover, .btn-warning:hover {
  background: #f5f7f8;
  border-color: #b9c7d1;
  color: #253c4b;
}
.btn-danger { background: #fff; border: 1px solid #dfc4c5; color: #a14144; }
.btn-danger:hover { background: #fff6f6; border-color: #c99b9d; color: #8b2f33; }
.btn-sm { padding: 5px 9px; min-height: 31px; font-size: 12px; }
.btn:disabled, button:disabled { opacity: .55; cursor: not-allowed; }
input, select, textarea { font: inherit; }
.form-control {
  min-height: 39px;
  padding: 9px 11px;
  border: 1px solid #d7dde2;
  border-radius: 5px;
  background: #fff;
  color: #273540;
  font-size: 13px;
}
.form-control:focus { border-color: #7190a8; outline: 2px solid rgba(41,79,108,.1); }
.admin-panel { gap: 19px; }
.admin-upload, .list-section {
  padding: 22px 23px;
  border: 1px solid #e0e5e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
}
.admin-upload h3, .list-section h3 {
  margin-bottom: 17px;
  color: #2b3540;
  font-size: 15px;
  font-weight: 650;
}
#login-section { width: 100%; }
.login-panel { max-width: 390px; margin: 24px auto 0; }
.login-panel h3 { text-align: left !important; }
.admin-header-row { display: flex; justify-content: flex-end; margin-bottom: 2px; }
.admin-toolbar { margin-bottom: 16px; }
.admin-count, .selected-file-info { color: #87919a; font-size: 12px; }
.admin-toolbar input, .admin-toolbar select { border-radius: 5px; }
.storage-bar {
  padding: 12px 14px;
  border: 1px solid #ebedef;
  border-radius: 5px;
  background: #f8f9fa;
}
.storage-info { color: #727c85; font-size: 12px; }
.storage-fill { background: #8496a3 !important; border-radius: 0; }
.storage-progress { height: 4px; border-radius: 0; }
.admin-table { font-size: 12px; }
.admin-table th {
  background: #f7f8f9;
  color: #717a84;
  font-size: 12px;
  font-weight: 600;
}
.admin-table th, .admin-table td { padding: 11px 8px; border-bottom-color: #edf0f2; }
.admin-table td:first-child { color: #34414d; }
.admin-table td:last-child .btn { margin: 2px 3px 2px 0; }
.admin-table td:last-child { min-width: 265px; white-space: normal; }
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
}
.badge-success { background: #eff5f0; color: #476c53; }
.badge-warning { background: #f5f3ed; color: #7a6b47; }
.badge-secondary { background: #f0f1f3; color: #77808a; }
.admin-notice {
  padding: 10px 12px;
  border: 1px solid #dbe6df;
  border-radius: 4px;
  background: #f6f8f6;
  color: #566f5e;
  font-size: 13px;
}
.admin-notice.is-error { background: #fcf7f7; border-color: #ead7d7; color: #973e43; }
.modal-overlay { background: rgba(24,32,40,.42); }
.modal-box { max-width: 440px; border-radius: 7px; box-shadow: 0 20px 65px rgba(10,20,30,.16); }
.modal-box h3 { color: #25313c; font-size: 17px; }
.modal-description { color: #7c858e; }
.upload-progress-fill { background: #617e91; border-radius: 0; }
.upload-progress-bar { border-radius: 0; }
#pdf-viewer-container {
  border: 1px solid #dce2e6;
  border-radius: 6px;
  box-shadow: none;
  background: #fff;
}
.viewer-header {
  min-height: 55px;
  padding: 11px 15px;
  background: #fff;
  border-bottom: 1px solid #e5e9ec;
}
.viewer-header h3 {
  color: #293744;
  font-size: 14px;
  font-weight: 600;
}
.viewer-actions { gap: 5px; }
.viewer-actions .btn, .viewer-actions .close-btn,
#download-btn, #close-preview, .viewer-actions #preview-expand {
  width: auto !important;
  min-width: 0 !important;
  height: 33px !important;
  padding: 0 11px !important;
  border: 1px solid #d7dde2 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #54616c !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
#download-btn { color: #254b68 !important; }
#download-btn:hover, #close-preview:hover, .viewer-actions #preview-expand:hover {
  color: #223745 !important;
  background: #f5f6f7 !important;
}
#pdf-zoom-toolbar { background: #363c42; border-bottom: 1px solid #444b52; box-shadow: none; }
.pdf-zoom-toolbar { backdrop-filter: none; -webkit-backdrop-filter: none; }
.pdf-zoom-toolbar-inner { gap: 12px; }
.pdf-zoom-title { color: #e6e8e9; font-weight: 600; }
.pdf-zoom-hint { color: #afb8c1; }
.pdf-page-nav .pdf-zoom-btn, .pdf-zoom-btn, .pdf-zoom-toolbar .pdf-zoom-controls .pdf-zoom-btn {
  border-radius: 4px;
  box-shadow: none;
  transition: none;
}
.pdf-zoom-primary { background: #e4e9ec; color: #28323b; border-color: #e4e9ec; }
.pdf-zoom-label { color: #f4f6f7; font-weight: 600; }
.pdf-page-input { border-radius: 4px; background: #4a5158; }
.pdf-page-wrap { border-radius: 2px; box-shadow: 0 2px 9px rgba(0,0,0,.22); }
.pdf-slow-warning { border-radius: 4px; box-shadow: none; }
#pdf-pdfjs-viewer { background: #555a60 !important; }
@media (max-width: 768px) {
  body { padding: 0 16px 36px; }
  .site-header { min-height: 69px; padding: 14px 0; margin: 0 0 26px; }
  .site-header .brand-name { font-size: 15px; }
  .site-header .brand-en { font-size: 10px; }
  .site-header .admin-link {
    position: static;
    margin: 0;
    padding: 5px 0;
    font-size: 12px;
    border-radius: 0;
    box-shadow: none;
  }
  .page-heading { margin-bottom: 18px; }
  .page-heading h1 { font-size: 22px; }
  .search-bar { padding: 0 0 12px; gap: 10px; }
  .catalog-search-row { max-width: none; }
  .catalog-filter-row { align-items: flex-start; }
  .catalog-filters { gap: 13px; }
  .gallery, #gallery { grid-template-columns: 1fr; gap: 9px; }
  .sample-card { min-height: 104px; flex-direction: row; }
  .card-icon, .card-icon[data-type] {
    width: 54px;
    min-width: 54px;
    min-height: 0;
    height: auto;
    border-right: 1px solid #eff0f2;
  }
  .card-icon svg { width: 23px; height: 23px; }
  .sample-info { padding: 12px; gap: 6px; }
  .sample-name { font-size: 13px; }
  .card-actions .btn { padding: 0; }
  .admin-upload, .list-section { padding: 18px 15px; border-radius: 5px; }
  .admin-table td:last-child { min-width: 0; }
  .admin-table td:last-child .btn { flex: 0 1 auto; }
  .viewer-header { min-height: 0; padding: 9px 11px; }
  .viewer-header h3 { font-size: 13px; }
  .viewer-actions { gap: 5px; }
  .viewer-actions .btn, .viewer-actions .close-btn,
  #download-btn, #close-preview, .viewer-actions #preview-expand {
    width: auto !important;
    min-width: 0 !important;
    height: 32px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
  }
}
@media (max-width: 420px) {
  .site-header .brand-name { font-size: 13px; }
  .site-header .brand-en { font-size: 9px; line-height: 1.35; }
  .site-header { gap: 11px; }
  .catalog-filters { gap: 9px; }
  .filter-chip { font-size: 12px; }
  .page-heading h1 { font-size: 21px; }
  .pdf-zoom-toolbar-inner { gap: 5px; }
}

/* Consistent short form labels; no oversized instructional copy. */
.field-label { display: block; margin: 0 0 6px; color: #52606b; font-size: 12px; font-weight: 550; }
.field-help { display: block; margin-top: 6px; color: #8b949d; font-size: 11.5px; line-height: 1.55; }
.login-panel { width: 100%; }
@media (max-width: 768px) {
  .admin-table td:last-child .btn { flex: 0 0 auto; }
}


/* Real file covers: simple document thumbnails, not decorative file badges. */
.sample-card {
  min-height: 136px;
  align-items: stretch;
}
.card-icon,
.card-icon[data-type] {
  width: 98px;
  min-width: 98px;
  min-height: 136px;
  padding: 7px;
  cursor: pointer;
  color: #7d8893;
  background: #f6f7f8;
  border: 0;
  border-right: 1px solid #eceff1;
  border-radius: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.card-icon:hover { background: #f1f4f5; }
.card-icon:focus-visible { outline: 2px solid #6e91aa; outline-offset: -3px; }
.card-icon.has-cover { background: #f3f4f5; }
.card-icon .thumbnail-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 125px;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(0, 0, 0, .05);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.card-icon .thumbnail-label {
  font-size: 11px;
  color: #7e8992;
  font-weight: 500;
  text-align: center;
  letter-spacing: .01em;
}
.card-icon.is-loading .thumbnail-label { color: #a6afb6; }
.card-icon.is-protected {
  background: #f4f5f5;
  cursor: pointer;
}
.card-icon.is-protected .thumbnail-label {
  color: #6c7882;
  font-size: 11px;
}
/* Admin actions work better as quiet text controls than a row of tiny colored pills. */
.admin-table td:last-child { min-width: 252px; }
.admin-table td:last-child .btn,
.admin-table td:last-child .btn + .btn {
  min-height: 30px;
  min-width: 0;
  margin: 0 12px 0 0 !important;
  padding: 4px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  color: #536373;
  white-space: nowrap;
}
.admin-table td:last-child .btn:hover {
  border: none;
  background: transparent;
  color: #244b67;
  text-decoration: underline;
}
.admin-table td:last-child .btn-danger { color: #9a5151; }
.admin-table td:last-child .btn-danger:hover { color: #8f3030; }
.admin-table .badge {
  padding: 0;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 400;
}
.admin-table .badge-success { color: #49715b; }
.admin-table .badge-secondary { color: #808991; }
.admin-table .badge-warning { color: #71695b; }
@media (max-width: 768px) {
  .sample-card { min-height: 128px; }
  .card-icon,
  .card-icon[data-type] {
    width: 90px;
    min-width: 90px;
    min-height: 128px;
    padding: 6px;
  }
  .card-icon .thumbnail-image { max-height: 116px; }
  .admin-table td:last-child { min-width: 0; }
  .admin-table td:last-child .btn { flex: 0 0 auto; }
}
@media (max-width: 390px) {
  .sample-card { min-height: 118px; }
  .card-icon,
  .card-icon[data-type] {
    width: 80px;
    min-width: 80px;
    min-height: 118px;
    padding: 5px;
  }
  .card-icon .thumbnail-image { max-height: 108px; }
  .admin-table td:last-child .btn,
  .admin-table td:last-child .btn + .btn { margin-right: 8px !important; }
}


/* PDF reader toolbar: make every action feel like part of one control surface.
   Match conventional document viewers instead of giving zoom-in a CTA style. */
#pdf-zoom-toolbar {
  min-height: 48px;
  padding: 6px 15px;
  color: #3e4c57;
  background: #f5f6f7;
  border-bottom: 1px solid #dce1e5;
  box-shadow: none;
}
#pdf-zoom-toolbar .pdf-zoom-toolbar-inner {
  max-width: none;
  min-height: 34px;
  gap: 16px;
  grid-template-columns: minmax(90px, 1fr) auto minmax(150px, 1fr);
}
#pdf-zoom-toolbar .pdf-zoom-title-wrap {
  gap: 0;
}
#pdf-zoom-toolbar .pdf-zoom-title {
  color: #5e6a73;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
#pdf-zoom-toolbar .pdf-zoom-hint {
  display: none;
}
#pdf-zoom-toolbar .pdf-page-nav,
#pdf-zoom-toolbar .pdf-zoom-controls {
  gap: 4px;
  align-items: center;
}
#pdf-zoom-toolbar .pdf-zoom-controls {
  justify-self: end;
  justify-content: flex-end;
}
#pdf-zoom-toolbar .pdf-zoom-btn,
#pdf-zoom-toolbar .pdf-zoom-controls .pdf-zoom-btn,
#pdf-zoom-toolbar .pdf-page-nav .pdf-zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  width: auto;
  height: 34px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: #4d5b65;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  transform: none;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}
#pdf-zoom-toolbar .pdf-zoom-btn:hover:not(:disabled),
#pdf-zoom-toolbar .pdf-zoom-controls .pdf-zoom-btn:hover:not(:disabled),
#pdf-zoom-toolbar .pdf-page-nav .pdf-zoom-btn:hover:not(:disabled) {
  background: #e7ebee;
  border-color: #dce2e6;
  color: #273844;
  transform: none;
}
#pdf-zoom-toolbar .pdf-zoom-btn:active:not(:disabled) {
  background: #dce3e8;
}
#pdf-zoom-toolbar .pdf-zoom-btn:disabled {
  opacity: .35;
  cursor: default;
}
#pdf-zoom-toolbar #pdf-zoom-in,
#pdf-zoom-toolbar #pdf-zoom-reset {
  min-width: 34px;
  background: transparent;
  border: 1px solid transparent;
  color: #4d5b65;
}
#pdf-zoom-toolbar #pdf-zoom-reset {
  padding: 0 8px;
  font-size: 12px;
}
#pdf-zoom-toolbar .pdf-zoom-label,
#pdf-zoom-toolbar .pdf-page-total {
  min-width: 50px;
  padding: 0 3px;
  color: #56636d;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#pdf-zoom-toolbar .pdf-page-total {
  min-width: 45px;
  padding: 0;
  text-align: left;
}
#pdf-zoom-toolbar .pdf-page-input {
  width: 42px;
  height: 32px;
  min-height: 32px;
  padding: 0 4px;
  border: 1px solid #d9dfe3;
  border-radius: 4px;
  background: #fff;
  color: #36434f;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  box-shadow: none;
}
#pdf-zoom-toolbar .pdf-page-input:focus-visible,
#pdf-zoom-toolbar button:focus-visible {
  outline: 2px solid #7397b1;
  outline-offset: 2px;
}
#pdf-pdfjs-viewer.pdf-is-zoomed #pdf-zoom-toolbar #pdf-zoom-in {
  box-shadow: none;
}
@media (max-width: 900px) {
  #pdf-zoom-toolbar .pdf-zoom-toolbar-inner {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }
  #pdf-zoom-toolbar .pdf-zoom-title-wrap { display: none; }
  #pdf-zoom-toolbar .pdf-page-nav,
  #pdf-zoom-toolbar .pdf-zoom-controls { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  #pdf-zoom-toolbar {
    min-height: 0;
    padding: 5px 9px;
  }
  #pdf-zoom-toolbar .pdf-zoom-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  #pdf-zoom-toolbar .pdf-page-nav,
  #pdf-zoom-toolbar .pdf-zoom-controls {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 7px;
  }
  #pdf-zoom-toolbar .pdf-page-nav { border-bottom: 1px solid #e9ecef; padding-bottom: 4px; }
  #pdf-zoom-toolbar .pdf-zoom-btn,
  #pdf-zoom-toolbar .pdf-zoom-controls .pdf-zoom-btn,
  #pdf-zoom-toolbar .pdf-page-nav .pdf-zoom-btn {
    min-width: 38px;
    height: 36px;
    min-height: 36px;
  }
  #pdf-zoom-toolbar .pdf-page-total,
  #pdf-zoom-toolbar .pdf-zoom-label { min-width: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  #pdf-zoom-toolbar .pdf-zoom-btn { transition: none; }
}

/* Company name is a conventional, keyboard-accessible home link. */
.site-header .brand-home {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.site-header .brand-home:hover,
.site-header .brand-home:visited {
  text-decoration: none;
  color: inherit;
}
.site-header .brand-home:hover .brand-name {
  color: #294f6c;
}
.site-header .brand-home:focus-visible {
  outline: 2px solid #7496ad;
  outline-offset: 5px;
  border-radius: 2px;
}


/* Cover generation is a maintenance action, not a primary CTA. */
.admin-list-heading .admin-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.admin-list-heading #generate-covers {
  min-height: 30px;
  padding: 5px 9px;
  background: #fff;
  border: 1px solid #d8e0e5;
  color: #52616d;
  font-weight: 400;
  border-radius: 4px;
}
.admin-list-heading #generate-covers:hover:not(:disabled) {
  background: #f4f6f7;
  color: #2b414f;
}
.cover-generation-status {
  margin: -5px 0 13px;
  padding: 0;
  font-size: 12px;
  color: #6a7780;
  line-height: 1.6;
}
.cover-generation-status.is-error { color: #a35b4f; }
@media (max-width: 600px) {
  .admin-list-heading .admin-list-actions { justify-content: flex-start; gap: 8px; }
  .admin-list-heading { align-items: flex-start; }
}
