/* TCW Studio Content Library */

.tcw-library-section{
  border-top:1px solid rgba(255,255,255,.08);
}

.tcw-library-toggle{
  width:100%;
  margin:0;
  padding:16px 0 13px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#f6f7fb;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  font-size:14px;
  font-weight:700;
}

.tcw-library-toggle:hover{
  color:#fff;
}

.tcw-library-chevron{
  width:26px;
  height:26px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#262b4b;
  color:#cbd2eb;
  transition:
    transform .18s ease,
    background .18s ease;
}

.tcw-library-section.tcw-library-open
.tcw-library-chevron{
  transform:rotate(180deg);
  background:
    linear-gradient(
      135deg,
      #14d9ff,
      #d622ff
    );
  color:#07101a;
}

.tcw-library-body{
  padding-bottom:14px;
}

.tcw-library-section:not(.tcw-library-open)
.tcw-library-body{
  display:none;
}

.tcw-library-toolbar{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}

.tcw-library-search,
.tcw-library-filter{
  width:100%;
  min-height:38px;
  margin:0;
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  background:#171c36;
  color:#eef1ff;
  font-size:11px;
}

.tcw-library-actions{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
}

.tcw-library-refresh{
  min-height:36px;
  margin:0;
  padding:7px 12px;
  border-radius:9px;
  font-size:11px;
}

.tcw-library-count{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:55px;
  color:#9ca7c9;
  font-size:10px;
}

.tcw-library-message{
  min-height:18px;
  margin-top:8px;
  color:#9ca7c9;
  font-size:10px;
  line-height:1.4;
}

.tcw-library-message[data-state="error"]{
  color:#ff9cac;
}

.tcw-library-message[data-state="success"]{
  color:#86e8cd;
}

.tcw-library-list{
  display:grid;
  gap:9px;
  margin-top:10px;
}

.tcw-library-card{
  padding:11px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:
    linear-gradient(
      145deg,
      rgba(40,47,82,.7),
      rgba(17,22,45,.76)
    );
}

.tcw-library-card:hover{
  border-color:rgba(78,207,255,.38);
}

.tcw-library-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.tcw-library-status{
  flex:0 0 auto;
  padding:3px 7px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:#cdd4ed;
  font-size:9px;
  font-weight:700;
  text-transform:capitalize;
}

.tcw-library-status[data-status="published"]{
  border-color:rgba(99,230,195,.4);
  color:#91ead2;
}

.tcw-library-status[data-status="scheduled"]{
  border-color:rgba(102,173,255,.42);
  color:#a9d2ff;
}

.tcw-library-status[data-status="exported"]{
  border-color:rgba(211,105,255,.4);
  color:#e2b3ff;
}

.tcw-library-headline{
  margin:8px 0 0;
  color:#f7f8ff;
  font-size:12px;
  font-weight:700;
  line-height:1.35;
}

.tcw-library-topic{
  margin-top:5px;
  color:#aeb7d7;
  font-size:10px;
  line-height:1.35;
}

.tcw-library-support{
  margin-top:7px;
  color:#d4d9eb;
  font-size:10px;
  line-height:1.45;
}

.tcw-library-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px 9px;
  margin-top:8px;
  color:#7f8bae;
  font-size:9px;
}

.tcw-library-card-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:9px;
}

.tcw-library-card-actions button{
  min-height:32px;
  margin:0;
  padding:6px 8px;
  border-radius:8px;
  font-size:10px;
}

.tcw-library-load{
  color:#07101a;
  background:#75e8ca;
}

.tcw-library-copy{
  background:#293052;
  color:#edf0ff;
}

.tcw-library-details{
  display:none;
  margin-top:9px;
  padding-top:9px;
  border-top:1px solid rgba(255,255,255,.07);
}

.tcw-library-card.tcw-show-details
.tcw-library-details{
  display:block;
}

.tcw-library-detail-block{
  margin-top:7px;
}

.tcw-library-detail-label{
  color:#8d99bd;
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.tcw-library-detail-text{
  margin-top:3px;
  color:#d4d9eb;
  font-size:10px;
  line-height:1.45;
  white-space:pre-wrap;
}

.tcw-library-empty{
  padding:14px 10px;
  border:1px dashed rgba(255,255,255,.1);
  border-radius:11px;
  color:#8f9aba;
  text-align:center;
  font-size:10px;
  line-height:1.5;
}