/* library-style.css */
:root {
  --accent: #C85A5A; /* Studio Trivima Coral */
  --accent-hover: #A94848;
  --accent-light: #FFF5F5;
  --text: #1C1C1A;
  --muted: #6B6A65;
  --light: #9B9A95;
  --border: #E5E4DE;
  --bg: #F9F8F5; /* Soft Neutral */
  --bg-alt: #F3F3F0;
  --white: #FFFFFF;
  --nav-h: 80px;
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-soft: 0 18px 55px rgba(28, 28, 26, 0.07);
  --shadow-lift: 0 24px 70px rgba(198, 90, 90, 0.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* NAVBAR */
.lib-nav {
  width: 100%; height: var(--nav-h); padding: 0 4%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(249, 248, 245, 0.8);
  backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
}
.lib-nav-logo img { height: 40px; }
.lib-nav-links { display: flex; list-style: none; gap: 40px; align-items: center; }
.lib-nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text); transition: color 0.3s;
}
.lib-nav-link:hover, .lib-nav-link.active { color: var(--accent); }

.lib-nav-actions { display: flex; align-items: center; gap: 24px; }

.lib-nav-sel-btn {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.lib-nav-sel-btn:hover { color: var(--accent); }

.lib-nav-counter {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}

.btn-quote {
  background: var(--accent); color: var(--white);
  padding: 12px 24px; border-radius: 50px; font-size: 12px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; transition: all 0.3s;
}
.btn-quote:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* HERO */
.lib-hero {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 80px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; background: var(--bg-alt);
}
.lib-hero-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 20px;
  display: block;
}
.lib-hero-title {
  font-size: clamp(40px, 5vw, 64px); line-height: 1.2; margin-bottom: 32px;
}
.lib-hero-title span { color: var(--accent); font-style: normal; display: block; margin-top: 8px; }
.lib-hero-desc {
  font-size: clamp(16px, 1.5vw, 18px); color: var(--muted); max-width: 480px;
}
.lib-hero-img-wrap { border-radius: 12px; overflow: hidden; height: 100%; max-height: 400px; }
.lib-hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* LAYOUT */
.lib-container {
  display: grid; 
  grid-template-columns: 280px 1fr; 
  gap: clamp(30px, 4vw, 60px);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 80px); 
  max-width: 1600px; 
  margin: 0 auto;
}

.lib-container--rev {
  grid-template-columns: 1fr 340px;
}


/* SIDEBAR */
.lib-sidebar { display: flex; flex-direction: column; gap: 40px; }
.lib-filter-group { display: flex; flex-direction: column; gap: 16px; }
.lib-filter-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.lib-cat-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lib-cat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: all 0.2s;
  font-size: 14px; color: var(--muted);
}
.lib-cat-item:hover, .lib-cat-item.active { background: var(--accent-light); color: var(--accent); }
.lib-cat-item.active { font-weight: 500; }
.lib-cat-count { font-size: 12px; opacity: 0.6; }

.lib-checkbox-list { display: flex; flex-direction: column; gap: 12px; }
.lib-checkbox-item { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; color: var(--muted); }
.lib-checkbox-item input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

/* MAIN CONTENT */
.lib-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 30px; gap: 20px; flex-wrap: wrap;
}
.lib-search {
  flex: 1; min-width: 250px; position: relative;
}
.lib-search input {
  width: 100%; padding: 14px 20px 14px 44px; border: 1px solid var(--border);
  border-radius: 50px; background: var(--white); font-family: inherit; font-size: 14px;
  outline: none; transition: border-color 0.3s;
}
.lib-search input:focus { border-color: var(--accent); }
.lib-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.lib-controls { display: flex; gap: 16px; align-items: center; }
.lib-select {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 50px;
  background: var(--white); font-family: inherit; font-size: 13px; color: var(--text);
  outline: none; cursor: pointer; appearance: none; padding-right: 32px;
  background-image: url('data:image/svg+xml;utf8,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="%231C1C1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat; background-position: right 14px center;
}
.lib-view-toggle { display: flex; gap: 8px; }
.lib-view-btn {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  background: var(--white); transition: all 0.2s;
}
.lib-view-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

/* GRID */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.lib-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column;
}
.lib-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.06); border-color: var(--accent); }
.lib-card-img { height: 220px; overflow: hidden; background: var(--bg-alt); }
.lib-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.lib-card:hover .lib-card-img img { transform: scale(1.05); }
.lib-card-body { padding: 20px; display: flex; align-items: center; justify-content: space-between; }
.lib-card-title { font-family: 'Playfair Display', serif; font-size: 20px; color: var(--text); margin-bottom: 4px; }
.lib-card-count { font-size: 13px; color: var(--muted); }
.lib-card-icon { color: var(--accent); transition: transform 0.3s; }
.lib-card:hover .lib-card-icon { transform: translateX(4px); }

/* BOTTOM BANNER */
.lib-bottom-banner {
  margin: 60px clamp(24px, 4vw, 80px) 40px; background: var(--white);
  border: 1px solid var(--border); border-radius: 16px; padding: 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.lib-banner-content { display: flex; align-items: center; gap: 20px; }
.lib-banner-icon {
  width: 50px; height: 50px; border-radius: 50%; background: var(--accent-light);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.lib-banner-text h4 { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.lib-banner-text p { font-size: 14px; color: var(--muted); }
.btn-outline {
  border: 1px solid var(--accent); color: var(--accent); padding: 10px 24px;
  border-radius: 50px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; display: flex; align-items: center; gap: 8px; transition: all 0.3s;
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

@media (max-width: 1024px) {
  .lib-container { grid-template-columns: 1fr; }
  .lib-sidebar { display: none; /* Add mobile drawer logic later */ }
  .lib-hero { grid-template-columns: 1fr; text-align: center; }
  .lib-hero-desc { margin: 0 auto; }
  .lib-bottom-banner { flex-direction: column; text-align: center; }
}
/* asset-detail-style */

/* BREADCRUMBS & TOP NAV */
.lib-top-bar {
  padding: 120px clamp(24px, 4vw, 80px) 20px;
  display: flex; flex-direction: column; gap: 20px;
}
.lib-breadcrumbs {
  font-size: 12px; color: var(--muted);
}
.lib-breadcrumbs span { color: var(--text); }
.lib-back-link {
  font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; transition: color 0.3s;
}
.lib-back-link:hover { color: var(--accent); }

/* DETAIL LAYOUT */
.lib-detail-container {
  display: grid; grid-template-columns: 1fr 1fr 340px; gap: clamp(30px, 4vw, 60px);
  padding: 0 clamp(24px, 4vw, 80px) 80px; max-width: 1600px; margin: 0 auto;
}

/* GALLERY */
.lib-gallery { display: flex; flex-direction: column; gap: 16px; }
.lib-main-img {
  width: 100%; border-radius: 12px; overflow: hidden; background: var(--bg-alt); position: relative;
}
.lib-main-img img { width: 100%; height: auto; display: block; }
.lib-img-zoom {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); cursor: pointer;
}
.lib-thumbnails { display: flex; gap: 12px; align-items: center; }
.lib-thumb {
  width: 80px; height: 80px; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: all 0.2s; background: var(--bg-alt);
}
.lib-thumb.active { border-color: var(--accent); }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lib-thumb-more { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }

/* INFO */
.lib-info { display: flex; flex-direction: column; gap: 24px; padding-top: 10px; }
.lib-info-cat { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; color: var(--accent); text-transform: uppercase; }
.lib-info-title { font-size: clamp(32px, 3vw, 44px); line-height: 1.1; margin-bottom: 8px; }
.lib-info-desc { font-size: 15px; color: var(--muted); max-width: 440px; }
.lib-info-divider { height: 1px; background: var(--border); margin: 8px 0; }

.lib-details-list { display: flex; flex-direction: column; gap: 16px; }
.lib-details-row { display: grid; grid-template-columns: 100px 1fr; gap: 20px; font-size: 13px; }
.lib-details-label { color: var(--muted); }
.lib-details-value { color: var(--text); font-weight: 500; }

.lib-tags-wrap { margin-top: 10px; }
.lib-tags-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--text); text-transform: uppercase; margin-bottom: 12px; }
.lib-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-tag { background: var(--bg-alt); padding: 6px 12px; border-radius: 50px; font-size: 12px; color: var(--muted); }

/* SELECTION PANEL */
.lib-selection-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; box-shadow: 0 12px 40px rgba(0,0,0,0.04); 
  position: sticky; top: calc(var(--nav-h) + 24px);
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  z-index: 10;
}
.lib-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.lib-panel-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.lib-panel-close { color: var(--muted); cursor: pointer; transition: color 0.2s; }
.lib-panel-close:hover { color: var(--accent); }

.lib-panel-item { display: flex; gap: 16px; margin-bottom: 24px; }
.lib-panel-item-img { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; background: var(--bg-alt); }
.lib-panel-item-img img { width: 100%; height: 100%; object-fit: cover; }
.lib-panel-item-info h4 { font-family: 'Playfair Display', serif; font-size: 16px; margin-bottom: 4px; }
.lib-panel-item-info p { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.lib-panel-item-change { font-size: 12px; color: var(--accent); cursor: pointer; text-decoration: underline; }

.lib-form-desc { font-size: 13px; color: var(--text); font-weight: 500; margin-bottom: 16px; }
.lib-form-group { margin-bottom: 16px; }
.lib-form-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.lib-form-select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); font-family: inherit; font-size: 13px; outline: none; appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="%231C1C1A" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat; background-position: right 16px center;
}
.lib-form-textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); font-family: inherit; font-size: 13px; outline: none; resize: vertical; min-height: 80px;
}
.lib-form-count { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 4px; }

.btn-full {
  width: 100%; background: var(--accent); color: var(--white); padding: 14px;
  border-radius: 50px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px; transition: all 0.3s;
}
.btn-full:hover { background: var(--accent-hover); }
.lib-panel-footer { font-size: 11px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.4; }

/* RELATED ITEMS */
.lib-related {
  padding: 60px clamp(24px, 4vw, 80px); background: var(--white); border-top: 1px solid var(--border);
}
.lib-related-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; }
.lib-related-title { font-size: 28px; }
.lib-related-link { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--text); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.lib-related-link:hover { color: var(--accent); }

.lib-related-grid {
  display: flex; gap: 24px;
}
.lib-related-items {
  flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px;
}
.lib-related-card {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg); transition: all 0.3s; cursor: pointer;
}
.lib-related-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.04); }
.lib-related-card-img { height: 180px; background: var(--bg-alt); }
.lib-related-card-img img { width: 100%; height: 100%; object-fit: cover; }
.lib-related-card-info { padding: 16px; }
.lib-related-card-info h5 { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.lib-related-card-info p { font-size: 11px; color: var(--muted); margin-bottom: 0; }
.lib-related-card-icon { position: absolute; bottom: 16px; right: 16px; color: var(--accent); opacity: 0; transition: all 0.3s; transform: translateX(-5px); }
.lib-related-card:hover .lib-related-card-icon { opacity: 1; transform: translateX(0); }

.lib-help-box {
  width: 280px; background: #FFF9F9; border-radius: 12px; padding: 32px 24px;
  display: flex; flex-direction: column; justify-content: center;
  border: 1px solid #FCECEC;
}
.lib-help-icon { 
    width: 40px; height: 40px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); margin-bottom: 20px; box-shadow: 0 4px 12px rgba(198,90,90,0.1);
}
.lib-help-box h4 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 12px; line-height: 1.2; }
.lib-help-box p { font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.lib-help-link { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); text-transform: uppercase; display: flex; align-items: center; gap: 8px; border-top: 1px solid #FCECEC; padding-top: 16px; }

@media (max-width: 1100px) {
  .lib-detail-container { grid-template-columns: 1fr 1fr; }
  .lib-selection-panel { grid-column: 1 / -1; position: static; }
  .lib-related-grid { flex-direction: column; }
  .lib-help-box { width: 100%; align-items: center; text-align: center; }
}
@media (max-width: 768px) {
  .lib-detail-container { grid-template-columns: 1fr; }
}

/* SELECTIONS PAGE STYLE */
.lib-sel-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: var(--bg-alt);
    padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 80px);
    align-items: center;
    border-radius: 20px;
    margin-bottom: 40px;
}

.lib-sel-hero-img {
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}

.lib-sel-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lib-sel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.lib-sel-actions-left, .lib-sel-actions-right {
    display: flex;
    gap: 12px;
}

.btn-small {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.btn-small:hover {
    background: var(--bg-alt);
    border-color: var(--text);
}

/* SELECTION LIST STYLES */
.lib-sel-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lib-sel-item {
    display: flex;
    gap: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}

.lib-sel-item:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.lib-sel-item-img {
    width: 140px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-alt);
    flex-shrink: 0;
}

.lib-sel-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lib-sel-item-content {
    flex: 1;
}

.lib-sel-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.lib-sel-item-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 4px;
}

.lib-sel-item-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
}

.lib-sel-item-actions {
    display: flex;
    gap: 8px;
}

.lib-sel-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--muted);
}

.lib-sel-btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.lib-sel-item-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lib-sel-detail {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
}

.lib-sel-detail strong {
    color: var(--muted);
    font-weight: 600;
    margin-right: 8px;
}

/* SUMMARY STYLES */
.lib-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.lib-summary-row:last-child {
    border-bottom: none;
}

.lib-summary-row.total {
    margin-top: 12px;
    padding-top: 16px;
    border-top: 2px solid var(--border);
    font-size: 15px;
    font-weight: 700;
}

.lib-sel-summary-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow-y: auto;
    z-index: 10;
}

.lib-sel-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.lib-sel-stat-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

.lib-sel-stat-item span:last-child {
    color: var(--text);
    font-weight: 600;
}

.lib-sel-stat-sub {
    padding-left: 12px;
    font-size: 12px;
    opacity: 0.8;
}

.lib-sel-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.lib-sel-mini-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lib-sel-mini-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-alt);
}

.lib-sel-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lib-sel-mini-info h5 {
    font-size: 12px;
    font-weight: 600;
}

.lib-sel-mini-info p {
    font-size: 11px;
    color: var(--muted);
}

.btn-outline-sel {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.btn-outline-sel:hover {
    background: var(--accent-light);
}

@media (max-width: 900px) {
    .lib-sel-hero {
        grid-template-columns: 1fr;
    }
    .lib-sel-hero-img {
        height: 200px;
    }
}

@media print {
    .lib-nav, .lib-sel-controls, .lib-selection-panel, .lib-bottom-banner, .lib-back-link, .lib-sel-card-delete {
        display: none !important;
    }
    .lib-detail-container, .lib-container {
        display: block !important;
    }
    body {
        background: white !important;
    }
}

/* Premium asset library refinements */
.lib-nav {
  box-shadow: 0 1px 0 rgba(28, 28, 26, 0.03);
}

.lib-nav-logo img {
  width: auto;
}

.lib-hero {
  min-height: clamp(420px, 58vh, 620px);
  background: linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  border-bottom: 1px solid rgba(229, 228, 222, 0.7);
}

.lib-hero-content {
  max-width: 680px;
}

.lib-hero-title {
  letter-spacing: 0;
}

.lib-hero-desc {
  line-height: 1.85;
}

.lib-hero-img-wrap {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1.35 / 1;
  height: auto;
  max-height: none;
}

.lib-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  align-self: start;
}

.lib-main {
  min-width: 0;
}

.lib-results-meta {
  margin: -10px 0 24px;
  color: var(--light);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lib-card {
  border-color: rgba(229, 228, 222, 0.85);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(28, 28, 26, 0.02);
  animation: assetFade 0.45s var(--ease) both;
}

.lib-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(198, 90, 90, 0.34);
}

.lib-card-img {
  height: clamp(230px, 22vw, 320px);
}

.lib-card-body {
  min-height: 150px;
  align-items: flex-start;
}

.lib-card-tag {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.lib-card-style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.lib-card-style-tags span {
  background: var(--bg-alt);
  border: 1px solid rgba(229, 228, 222, 0.75);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  padding: 5px 9px;
}

.lib-card-cta {
  display: inline-flex;
  margin-top: 16px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease);
}

.lib-card:hover .lib-card-cta {
  color: var(--accent);
}

.lib-empty-state {
  display: none;
  padding: 90px 20px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.lib-empty-state.visible {
  display: block;
}

.lib-empty-state h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.lib-empty-state p {
  color: var(--muted);
}

.sel-empty {
  text-align: center;
  padding: 120px 20px;
}

.sel-empty h2 {
  font-size: clamp(34px, 5vw, 58px);
  margin-bottom: 16px;
}

.sel-empty p {
  color: var(--muted);
  margin-bottom: 26px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(249, 248, 245, 0.9);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(520px, 100%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(28, 28, 26, 0.1);
  padding: clamp(34px, 6vw, 58px);
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.45s var(--ease);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-icon {
  color: #2f8f5b;
  margin-bottom: 24px;
}

.modal-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.modal-card p {
  color: var(--muted);
  margin-bottom: 28px;
}

.lib-main-img {
  aspect-ratio: 1 / 1.1;
  box-shadow: var(--shadow-soft);
}

.lib-main-img img {
  height: 100%;
  object-fit: cover;
  transition: opacity 0.28s var(--ease), transform 0.55s var(--ease);
}

.lib-main-img img.is-swapping {
  opacity: 0;
  transform: scale(1.015);
}

.lib-selection-panel {
  border-radius: 20px;
}

.selection-panel-actions {
  display: grid;
  gap: 10px;
}

.selection-fly {
  position: fixed;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  z-index: 5000;
  pointer-events: none;
  box-shadow: 0 16px 42px rgba(28, 28, 26, 0.22);
  transition: transform 0.78s var(--ease), opacity 0.78s var(--ease);
}

.toast {
  max-width: calc(100vw - 32px);
}

.lib-related-section {
  padding: 70px clamp(24px, 4vw, 80px);
  background: var(--white);
  border-top: 1px solid var(--border);
}

.lib-related-container {
  max-width: 1500px;
  margin: 0 auto;
}

.lib-related-title {
  margin-bottom: 28px;
}

.lib-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lib-related-card {
  position: relative;
  border-radius: 16px;
}

.lib-board-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 80px) 80px;
}

.lib-board-main {
  min-width: 0;
}

.lib-board-title {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  margin-bottom: 14px;
}

.lib-board-intro {
  color: var(--muted);
  max-width: 650px;
  line-height: 1.8;
}

.lib-board-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 32px 0 36px;
}

.lib-board-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.lib-category-group {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 10px 36px rgba(28, 28, 26, 0.035);
}

.lib-category-toggle {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.lib-category-toggle h2 {
  font-size: 26px;
}

.lib-category-toggle span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lib-category-items {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.lib-category-group.collapsed .lib-category-items {
  display: none;
}

.lib-sel-item {
  border-radius: 16px;
}

.lib-sel-item-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lib-sel-detail.notes {
  grid-column: 1 / -1;
}

.lib-summary-spaces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}

.lib-summary-spaces span {
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 12px;
}

@keyframes assetFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .lib-board-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .lib-sidebar {
    display: flex;
    position: static;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .lib-nav {
    height: auto;
    min-height: var(--nav-h);
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .lib-nav-logo img {
    height: 34px;
    max-width: 142px;
  }

  .lib-nav-actions {
    gap: 12px;
    margin-left: auto;
  }

  .lib-nav-actions .btn-quote {
    display: none;
  }

  .lib-nav-links {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    overflow: visible;
    padding-bottom: 4px;
  }

  .lib-nav-link {
    display: block;
    font-size: 10.5px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .lib-hero {
    min-height: auto;
    padding: 34px 18px 40px;
    overflow: hidden;
  }

  .lib-hero-content {
    min-width: 0;
    max-width: 100%;
  }

  .lib-hero-title {
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .lib-hero-desc {
    font-size: 15px;
    max-width: min(100%, 330px);
  }

  .lib-hero-img-wrap {
    width: 100%;
    max-height: 300px;
  }

  .lib-container {
    padding-top: 34px;
  }

  .lib-board-meta,
  .lib-sel-item-details {
    grid-template-columns: 1fr;
  }

  .lib-sel-item {
    flex-direction: column;
  }

  .lib-sel-item-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* SHARE A BRIEF PAGE */
.brief-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(198, 90, 90, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf7 46%, var(--bg) 100%);
}

.brief-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.brief-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 46px;
}

.brief-breadcrumbs a:hover {
  color: var(--accent);
}

.brief-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  margin-bottom: 34px;
}

.brief-hero-copy {
  padding-left: 6px;
  min-width: 0;
}

.brief-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #d24141;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.brief-kicker span {
  width: 28px;
  height: 1px;
  background: currentColor;
  position: relative;
}

.brief-kicker span::after {
  content: "";
  position: absolute;
  right: -7px;
  top: -4px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #fff;
}

.brief-hero h1 {
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 560px;
  margin-bottom: 20px;
}

.brief-hero p {
  max-width: 520px;
  color: #242421;
  font-size: 17px;
  line-height: 1.85;
}

.brief-hero-art {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  filter: drop-shadow(0 24px 60px rgba(28, 28, 26, 0.08));
}

.brief-hero-art img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.brief-card,
.brief-privacy {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(229, 228, 222, 0.92);
  border-radius: 16px;
  box-shadow: 0 26px 80px rgba(28, 28, 26, 0.07);
}

.brief-card {
  padding: clamp(30px, 5vw, 58px);
}

.brief-field {
  margin-bottom: 28px;
}

.brief-field label,
.brief-upload-label {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.brief-field strong {
  color: #e23838;
}

.brief-input-wrap,
.brief-textarea-wrap {
  position: relative;
}

.brief-input-wrap svg {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #7c818b;
  pointer-events: none;
}

.brief-field input,
.brief-field select,
.brief-field textarea {
  width: 100%;
  border: 1px solid #dedfe4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.brief-field input,
.brief-field select {
  min-height: 58px;
  padding: 0 54px 0 18px;
}

.brief-field select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1.5L6 6.5L11 1.5" stroke="%231C1C1A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 20px center;
}

.brief-field textarea {
  min-height: 154px;
  resize: vertical;
  padding: 18px 18px 34px;
  line-height: 1.55;
}

.brief-field input:focus,
.brief-field select:focus,
.brief-field textarea:focus {
  border-color: rgba(198, 90, 90, 0.7);
  box-shadow: 0 0 0 4px rgba(198, 90, 90, 0.1);
  background: #fff;
}

.brief-help {
  color: #6f7280;
  font-size: 14px;
  margin-top: 10px;
}

.brief-help-large {
  margin: -8px 0 14px;
}

#brief-count {
  position: absolute;
  right: 16px;
  bottom: 13px;
  color: #686c77;
  font-size: 13px;
}

.brief-tip {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 18px 0 26px;
  padding: 22px 24px;
  border: 1px solid #f5d9d9;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff6f4 0%, rgba(255, 255, 255, 0.72) 100%);
}

.brief-tip-icon,
.brief-privacy-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #e33d3d;
  background: #fff0ee;
}

.brief-tip-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
}

.brief-tip h2,
.brief-privacy h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.brief-tip p,
.brief-privacy p {
  color: #242421;
  font-size: 14px;
}

.brief-upload {
  min-height: 128px;
  border: 2px dashed #d9dce2;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.brief-upload:hover {
  border-color: rgba(198, 90, 90, 0.55);
  background: rgba(255, 245, 245, 0.45);
}

.brief-upload small {
  color: #747783;
  font-size: 13px;
}

.brief-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.brief-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.brief-file-list span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
}

.brief-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 30px;
}

.brief-submit {
  min-width: 198px;
  min-height: 48px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #cf4f4f 0%, #d94242 100%);
  box-shadow: 0 14px 30px rgba(207, 79, 79, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.brief-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(207, 79, 79, 0.28);
}

.brief-actions p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #686c77;
  font-size: 14px;
}

.brief-privacy {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 30px 32px;
  border-color: #f3d6d2;
  background: linear-gradient(90deg, #fff8f6 0%, rgba(255, 255, 255, 0.86) 100%);
  box-shadow: none;
}

.brief-privacy-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
}

@media (max-width: 900px) {
  .brief-hero {
    grid-template-columns: 1fr;
  }

  .brief-hero-art {
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  .brief-shell {
    width: min(100% - 30px, 1180px);
    padding-top: 22px;
  }

  .brief-breadcrumbs {
    margin-bottom: 30px;
  }

  .brief-hero h1 {
    width: min(100%, 300px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(27px, 7.7vw, 31px);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .brief-hero p {
    width: min(100%, 300px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: break-word;
  }

  .brief-card {
    padding: 24px 18px;
  }

  .brief-tip,
  .brief-privacy {
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .brief-privacy {
    flex-direction: column;
  }

  .brief-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}
