.awl-library {
  --awl-ink: #171719;
  --awl-subtle: #68686f;
  --awl-line: #e9e7e4;
  --awl-canvas: #f7f7f6;
  --awl-card: #fff;
  --awl-red: #b91c1c;
  --awl-red-dark: #991b1b;
  --awl-radius: 16px;
  position: relative;
  width: 100%;
  color: var(--awl-ink);
  font-family: inherit;
}

.awl-title {
  margin: 0 0 22px;
  color: var(--awl-ink);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -.025em;
}

/* Plugin-native folder navigation. */
.awl-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 26px;
  padding: 2px 2px 7px;
  scrollbar-color: #c9c6c2 transparent;
  scrollbar-width: thin;
}

.awl-tab {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid #ddd9d5;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 2px rgba(16, 16, 18, .03);
  color: #525258;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  padding: 10px 16px;
  text-transform: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.awl-tab:hover,
.awl-tab:focus-visible {
  border-color: #aaa5a0;
  color: var(--awl-ink);
  outline: none;
  transform: translateY(-1px);
}

.awl-tab:focus-visible {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .13);
}

.awl-tab.is-active {
  border-color: var(--awl-ink);
  background: var(--awl-ink);
  box-shadow: 0 7px 18px rgba(23, 23, 25, .16);
  color: #fff;
  font-weight: 600;
}

/*
 * Existing ATH pages wrap shortcodes in Flatsome tabbed-content. The plugin
 * stylesheet is only loaded on library output, so these rules stay scoped to
 * pages that actually render the new local library.
 */
.tabbed-content {
  --awl-ink: #171719;
}

.tabbed-content > .nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  margin: 0 0 26px;
  padding: 2px 2px 7px;
  scrollbar-color: #c9c6c2 transparent;
  scrollbar-width: thin;
}

.tabbed-content > .nav > li {
  flex: 0 0 auto;
  margin: 0;
}

.tabbed-content > .nav > li > a {
  min-height: 38px;
  border: 1px solid #ddd9d5 !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 2px rgba(16, 16, 18, .03);
  color: #525258;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1;
  padding: 11px 16px;
  text-transform: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.tabbed-content > .nav > li > a:hover,
.tabbed-content > .nav > li > a:focus-visible {
  border-color: #aaa5a0 !important;
  color: var(--awl-ink);
  outline: none;
  transform: translateY(-1px);
}

.tabbed-content > .nav > li.active > a,
.tabbed-content > .nav > li > a.active {
  border-color: var(--awl-ink) !important;
  background: var(--awl-ink) !important;
  box-shadow: 0 7px 18px rgba(23, 23, 25, .16);
  color: #fff;
}

body .tabbed-content > ul.nav > li.tab.active > a[role="tab"] {
  border-color: var(--awl-ink) !important;
  background-color: var(--awl-ink) !important;
  background-image: none !important;
  color: #fff !important;
}

.tabbed-content > .nav::-webkit-scrollbar {
  height: 5px;
}

.tabbed-content > .nav::-webkit-scrollbar-track {
  background: transparent;
}

.tabbed-content > .nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c9c6c2;
}

.tabbed-content > .nav.nav-line-bottom > li > a::before {
  display: none;
}

/*
 * Premium library navigation rail. JavaScript adds this class only to the
 * outer Flatsome tab rail that owns ATH library panels.
 */
.tabbed-content > .nav.awl-library-nav {
  --awl-nav-sticky-top: 0px;
  position: sticky;
  z-index: 990;
  top: var(--awl-nav-sticky-top);
  width: calc(100% + 30px);
  max-width: none;
  gap: 7px;
  overflow-x: auto;
  margin: 0 -15px 28px;
  border: 1px solid rgba(222, 219, 215, .88);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(248, 247, 246, .94));
  box-shadow: 0 8px 28px rgba(25, 25, 28, .055);
  padding: 10px 14px 11px;
  scrollbar-width: none;
  scroll-padding-inline: 14px;
  backdrop-filter: blur(18px) saturate(1.18);
  transition: border-radius .24s ease, box-shadow .24s ease, padding .24s ease;
}

.tabbed-content > .nav.awl-library-nav::-webkit-scrollbar {
  display: none;
}

.tabbed-content > .nav.awl-library-nav.is-awl-stuck {
  border-top-color: rgba(232, 229, 226, .45);
  border-radius: 0 0 18px 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 15px 38px rgba(20, 20, 23, .13), 0 1px 0 rgba(255, 255, 255, .8) inset;
  padding-top: 9px;
}

.tabbed-content > .nav.awl-library-nav > li > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: transparent !important;
  background: rgba(239, 238, 236, .72);
  box-shadow: none;
  color: #55545a;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .005em;
  padding: 11px 17px;
  white-space: nowrap;
}

.tabbed-content > .nav.awl-library-nav > li > a:hover,
.tabbed-content > .nav.awl-library-nav > li > a:focus-visible {
  border-color: #d8d4d0 !important;
  background: #fff;
  box-shadow: 0 5px 16px rgba(25, 25, 28, .08);
  color: #19191c;
  transform: translateY(-1px);
}

.tabbed-content > .nav.awl-library-nav > li.active > a,
.tabbed-content > .nav.awl-library-nav > li > a.active,
body .tabbed-content > ul.nav.awl-library-nav > li.tab.active > a[role="tab"] {
  border-color: #1d1d20 !important;
  background: linear-gradient(135deg, #141416, #2d2d32) !important;
  box-shadow: 0 8px 20px rgba(20, 20, 23, .2) !important;
  color: #fff !important;
}

.tabbed-content > .nav.awl-library-nav > li.active > a::after,
.tabbed-content > .nav.awl-library-nav > li > a.active::after {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
  content: "";
}

.awl-status:empty {
  display: none;
}

.awl-status:not(:empty) {
  min-height: 36px;
  margin: 0 0 18px;
  border: 1px solid #ebe8e5;
  border-radius: 10px;
  background: #faf9f8;
  color: var(--awl-subtle);
  font-size: 13px;
  padding: 9px 13px;
}

.awl-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.awl-skeleton-card {
  position: relative;
  min-height: 258px;
  overflow: hidden;
  border: 1px solid var(--awl-line);
  border-radius: var(--awl-radius);
  background: #fff;
  box-shadow: 0 2px 8px rgba(22, 22, 24, .035), 0 12px 28px rgba(22, 22, 24, .035);
}

.awl-skeleton-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .72) 48%, transparent 76%);
  content: "";
  transform: translateX(-100%);
  animation: awl-skeleton-shimmer 1.8s ease-in-out infinite;
}

.awl-skeleton-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f3f2f1;
}

.awl-skeleton-line {
  display: block;
  width: calc(100% - 36px);
  height: 12px;
  border-radius: 999px;
  background: #efeeec;
  margin: 19px 18px 0;
}

.awl-skeleton-line-short {
  width: 38%;
  height: 9px;
  margin-top: 12px;
}

@keyframes awl-skeleton-shimmer {
  to {
    transform: translateX(100%);
  }
}

.awl-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--awl-line);
  border-radius: var(--awl-radius);
  background: var(--awl-card);
  box-shadow: 0 2px 8px rgba(22, 22, 24, .035), 0 12px 28px rgba(22, 22, 24, .035);
  color: var(--awl-ink);
  text-align: left;
  text-decoration: none !important;
  transform: translateZ(0);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.awl-card:hover,
.awl-card:focus-visible {
  z-index: 1;
  border-color: #d2cdc8;
  box-shadow: 0 12px 28px rgba(22, 22, 24, .09), 0 3px 8px rgba(22, 22, 24, .05);
  color: var(--awl-ink);
  outline: none;
  transform: translateY(-4px);
}

.awl-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .14), 0 12px 28px rgba(22, 22, 24, .09);
}

.awl-card.is-ticketing {
  cursor: wait;
  opacity: .58;
  pointer-events: none;
}

.awl-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}

.awl-thumb::before {
  position: absolute;
  z-index: 0;
  inset: 12px;
  border-radius: 12px;
  background: linear-gradient(100deg, #f5f4f2 18%, #fbfaf9 46%, #f5f4f2 74%);
  background-size: 220% 100%;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.awl-thumb.is-lazy-loading::before {
  opacity: 1;
  animation: awl-thumbnail-loading 1.35s ease-in-out infinite;
}

@keyframes awl-thumbnail-loading {
  to {
    background-position-x: -220%;
  }
}

.awl-thumb::after {
  position: absolute;
  inset: auto 14% 8px;
  height: 12px;
  border-radius: 50%;
  background: rgba(31, 31, 34, .07);
  content: "";
  filter: blur(11px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.awl-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  padding: 13px;
  transform: scale(.96);
  transition: opacity .28s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}

.awl-thumb img.is-loaded,
.awl-thumb img.awl-noscript-thumb {
  opacity: 1;
}

.awl-card:hover .awl-thumb img,
.awl-card:focus-visible .awl-thumb img {
  transform: scale(1.025);
}

.awl-card:hover .awl-thumb::after,
.awl-card:focus-visible .awl-thumb::after {
  opacity: 1;
}

.awl-format-badge {
  position: absolute;
  z-index: 3;
  top: 11px;
  left: 11px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 3px 10px rgba(20, 20, 22, .07);
  color: #55545a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  padding: 6px 9px 5px;
  text-transform: uppercase;
  backdrop-filter: blur(9px);
}

.awl-filetype {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 88px;
  border: 1px solid #ddd9d5;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #eceae7);
  box-shadow: 0 12px 24px rgba(30, 30, 32, .09);
  color: #4e4d52;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.awl-default-thumb {
  --awl-file-accent: #4f5660;
  --awl-file-tint: #f2f4f6;
  position: relative;
  z-index: 1;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--awl-file-accent) 16%, #fff);
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 22%, #fff 0 18%, transparent 47%),
    linear-gradient(145deg, #fff 0%, var(--awl-file-tint) 100%);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--awl-file-accent) 12%, transparent);
  color: var(--awl-file-accent);
  transform: translateY(-3px);
  transition: box-shadow .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
}

.awl-default-thumb::before {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 21px;
  content: "";
  pointer-events: none;
}

.awl-default-thumb svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.awl-default-extension {
  position: absolute;
  right: -8px;
  bottom: 10px;
  min-width: 42px;
  max-width: 68px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--awl-file-accent);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--awl-file-accent) 26%, transparent);
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1;
  padding: 7px 9px 6px;
  text-align: center;
  text-overflow: ellipsis;
}

.awl-card:hover .awl-default-thumb,
.awl-card:focus-visible .awl-default-thumb {
  box-shadow: 0 22px 44px color-mix(in srgb, var(--awl-file-accent) 18%, transparent);
  transform: translateY(-5px) scale(1.035);
}

.awl-default-thumb--archive {
  --awl-file-accent: #d97706;
  --awl-file-tint: #fff7e8;
}

.awl-default-thumb--model {
  --awl-file-accent: #7c3aed;
  --awl-file-tint: #f5f0ff;
}

.awl-default-thumb--cad {
  --awl-file-accent: #087f8c;
  --awl-file-tint: #edfafa;
}

.awl-default-thumb--pdf {
  --awl-file-accent: #c62828;
  --awl-file-tint: #fff1f1;
}

.awl-default-thumb--document {
  --awl-file-accent: #2563b8;
  --awl-file-tint: #eef5ff;
}

.awl-default-thumb--spreadsheet {
  --awl-file-accent: #16805a;
  --awl-file-tint: #edfaf4;
}

.awl-default-thumb--presentation {
  --awl-file-accent: #c45124;
  --awl-file-tint: #fff3ed;
}

.awl-default-thumb--video {
  --awl-file-accent: #db2777;
  --awl-file-tint: #fff0f7;
}

.awl-default-thumb--audio {
  --awl-file-accent: #6d4bd1;
  --awl-file-tint: #f4f0ff;
}

.awl-default-thumb--image {
  --awl-file-accent: #16856b;
  --awl-file-tint: #edfaf6;
}

.awl-default-thumb--data {
  --awl-file-accent: #475569;
  --awl-file-tint: #f1f5f9;
}

.awl-download-icon {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  background: rgba(23, 23, 25, .9);
  box-shadow: 0 12px 28px rgba(18, 18, 20, .24);
  color: #fff;
  opacity: 0;
  transform: translateY(9px) scale(.86);
  backdrop-filter: blur(10px);
  transition: background-color .22s ease, box-shadow .22s ease, opacity .22s ease, transform .28s cubic-bezier(.2, .8, .2, 1);
}

.awl-download-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.awl-card:hover .awl-download-icon,
.awl-card:focus-visible .awl-download-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.awl-card:hover .awl-download-icon:hover {
  background: var(--awl-red);
  box-shadow: 0 14px 30px rgba(153, 27, 27, .3);
  transform: translateY(-2px) scale(1.07);
}

.awl-card > .awl-card-body {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 100px;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  padding: 18px 18px 16px;
}

.awl-name {
  box-sizing: border-box;
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  min-height: 40px;
  color: #242428;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -.006em;
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Keep legacy cached card markup comfortably inset as well. */
.awl-card > .awl-name {
  min-height: 58px;
  padding: 18px 18px 0;
}

.awl-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.awl-size {
  color: #85838a;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: .02em;
}

.awl-card > .awl-size {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 10px 18px 16px;
}

/* Hide the retired secondary arrow in any page HTML still served from cache. */
.awl-card-arrow {
  display: none !important;
}

.awl-empty {
  grid-column: 1 / -1;
  border: 1px dashed #d8d4d0;
  border-radius: var(--awl-radius);
  background: #faf9f8;
  color: var(--awl-subtle);
  padding: 58px 22px;
  text-align: center;
}

.awl-pagination {
  padding: 30px 0 10px;
  text-align: center;
}

.awl-load-more,
.awl-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--awl-ink);
  box-shadow: 0 8px 18px rgba(23, 23, 25, .16);
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 12px 23px;
  text-decoration: none !important;
  text-transform: none;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.awl-load-more:hover,
.awl-load-more:focus-visible,
.awl-login-button:hover,
.awl-login-button:focus-visible {
  background: var(--awl-red);
  box-shadow: 0 10px 22px rgba(153, 27, 27, .22);
  outline: none;
  transform: translateY(-1px);
}

.awl-load-more:disabled {
  cursor: wait;
  opacity: .55;
  transform: none;
}

.awl-library.is-loading .awl-grid {
  opacity: .46;
  pointer-events: none;
}

.awl-dialog {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 19, .66);
  backdrop-filter: blur(6px);
}

.awl-dialog-card {
  position: relative;
  width: min(430px, 100%);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  padding: 42px 34px 32px;
  text-align: center;
}

.awl-dialog-card p {
  margin: 5px 0 24px;
  color: #343438;
  font-size: 15px;
  line-height: 1.55;
}

.awl-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f2f1;
  box-shadow: none;
  color: #69676d;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  margin: 0;
  padding: 0 0 2px;
  text-align: center;
  text-transform: none;
}

.awl-dialog-close:hover,
.awl-dialog-close:focus-visible {
  background: #e9e7e4;
  color: var(--awl-ink);
  outline: none;
}

.awl-notice {
  border: 1px solid #f0dcc1;
  border-left: 4px solid #c47b20;
  border-radius: 10px;
  background: #fffaf3;
  color: #75501f;
  padding: 13px 16px;
}

@media (max-width: 1100px) {
  .awl-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 780px) {
  .awl-tabs,
  .tabbed-content > .nav {
    margin-bottom: 20px;
  }

  .tabbed-content > .nav.awl-library-nav {
    width: calc(100% + 20px);
    margin-right: -10px;
    margin-bottom: 22px;
    margin-left: -10px;
    border-radius: 15px;
    padding: 8px 10px 9px;
    scroll-padding-inline: 10px;
  }

  .tabbed-content > .nav.awl-library-nav.is-awl-stuck {
    border-radius: 0 0 15px 15px;
    padding-top: 8px;
  }

  .tabbed-content > .nav.awl-library-nav > li > a {
    min-height: 38px;
    font-size: 12px;
    padding: 10px 15px;
  }

  .awl-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
  }

  .awl-card > .awl-card-body {
    min-height: 90px;
    padding: 14px 14px 12px;
  }

  .awl-name {
    min-height: 36px;
    font-size: 13px;
  }

  .awl-card > .awl-name {
    min-height: 50px;
    padding: 14px 14px 0;
  }

  .awl-card > .awl-size {
    padding: 9px 14px 12px;
  }
}

@media (max-width: 520px) {
  .awl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .awl-thumb img {
    padding: 8px;
  }

  .awl-format-badge {
    top: 8px;
    left: 8px;
    min-height: 21px;
    padding: 5px 7px 4px;
  }

  .awl-download-icon {
    right: 8px;
    bottom: 8px;
    width: 36px;
    height: 36px;
  }

  .awl-card > .awl-card-body {
    min-height: 84px;
    padding: 13px 12px 11px;
  }

  .awl-name {
    min-height: 35px;
    font-size: 12px;
    line-height: 1.4;
  }

  .awl-card > .awl-name {
    min-height: 48px;
    padding: 13px 12px 0;
  }

  .awl-card > .awl-size {
    padding: 8px 12px 11px;
  }

}

@media (hover: none) {
  .awl-download-icon {
    opacity: .94;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .awl-thumb.is-lazy-loading::before {
    animation: none;
  }

  .awl-skeleton-card::after {
    animation: none;
  }

  .awl-card,
  .awl-thumb img,
  .awl-download-icon,
  .awl-tab,
  .tabbed-content > .nav > li > a,
  .tabbed-content > .nav.awl-library-nav,
  .awl-load-more,
  .awl-login-button {
    transition: none;
  }
}
