#view-library { flex-direction: row; overflow: hidden; }

.lib-sidebar { width: 200px; flex-shrink: 0; background: var(--ps-surface); border-right: 1.5px solid var(--ps-border); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.lib-section-label { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ps-text-muted); padding: 10px 8px 5px; }
.lib-nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--ps-radius-sm); cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ps-text-secondary); transition: all .15s; }
.lib-nav-item:hover { background: var(--ps-off-white); color: var(--ps-text-primary); }
.lib-nav-item.active { background: var(--ps-azul-faint); color: var(--ps-azul-dark); }
.lib-nav-item svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lib-count { margin-left: auto; font-family: var(--mono); font-size: 10px; font-weight: 600; background: var(--ps-bege-rose); color: var(--ps-text-muted); padding: 1px 7px; border-radius: 20px; }
.lib-nav-item.active .lib-count { background: rgba(120,137,144,.15); color: var(--ps-azul-dark); }
.lib-sep { height: 1.5px; background: var(--ps-border); margin: 8px 0; }

.lib-content { flex: 1; overflow-y: auto; padding: 24px 28px; }
.lib-content::-webkit-scrollbar { width: 4px; }
.lib-content::-webkit-scrollbar-thumb { background: var(--ps-border); border-radius: 2px; }
.lib-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.persona-filter-bar { margin-bottom: 20px; }
.persona-search-box { position: relative; max-width: 320px; }
.persona-search-box input { width: auto; flex: 1; min-width: 0; }
.persona-suggestions { position: absolute; top: calc(100% + 5px); left: 0; right: 0; background: var(--ps-surface); border: 1.5px solid var(--ps-border); border-radius: var(--ps-radius-sm); box-shadow: var(--ps-shadow-lg); z-index: 50; overflow: hidden; }
.psearch-clear { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: none; background: var(--ps-text-muted); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: .6; transition: opacity .15s; padding: 0; }
.psearch-clear:hover { opacity: 1; }
.psug-label { padding: 6px 12px 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ps-text-muted); }
.psug-item { padding: 7px 12px; font-size: 13px; color: var(--ps-text-secondary); cursor: pointer; transition: background .1s; }
.psug-item:hover { background: var(--ps-azul-faint); color: var(--ps-azul-dark); }
.lib-title { font-size: 18px; font-weight: 700; color: var(--ps-text-primary); letter-spacing: -.3px; flex: 1; }
.lib-title em { color: var(--ps-azul); font-style: normal; }
.lib-section-head { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ps-text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.lib-section-head::after { content: ''; flex: 1; height: 1px; background: var(--ps-border); }

/* Persona cards */
.persona-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 24px; }
.persona-card { background: var(--ps-surface); border: 1.5px solid var(--ps-border); border-radius: var(--ps-radius); padding: 16px; position: relative; overflow: hidden; transition: all .2s; }
.persona-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--ps-azul); opacity: 0; transition: opacity .2s; }
.persona-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--ps-azul), var(--ps-shadow-lg); border-color: transparent; }
.persona-card:hover::before { opacity: 1; }
.pcard-top-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; min-height: 20px; }
.pcard-top-row .card-pin { position: static; padding: 2px 4px; }
.pcard-custom-tag { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #717A64; background: rgba(113,122,100,.1); border-radius: var(--ps-radius-xs); padding: 2px 7px; }
.pcard-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.pcard-avatar { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; font-family: var(--mono); flex-shrink: 0; }
.pcard-name { font-size: 13.5px; font-weight: 700; color: var(--ps-text-primary); letter-spacing: -.2px; margin-bottom: 2px; }
.pcard-role { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ps-text-muted); }
.pcard-desc { font-size: 12px; color: var(--ps-text-secondary); line-height: 1.55; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-footer { display: flex; align-items: center; justify-content: flex-end; padding-top: 10px; border-top: 1.5px solid var(--ps-border); }
.pcard-source { font-size: 10px; color: var(--ps-text-muted); }
.pcard-pack-badge { font-size: 10px; background: var(--ps-azul-faint); color: var(--ps-azul-dark); border-radius: var(--ps-radius-xs); padding: 2px 7px; font-weight: 500; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-actions { display: flex; gap: 5px; opacity: 0; transition: opacity .15s; }
.persona-card:hover .pcard-actions { opacity: 1; }
.pcard-edit-strip { display: flex; gap: 12px; margin-bottom: 10px; opacity: 0; transition: opacity .15s; }
.persona-card:hover .pcard-edit-strip { opacity: 1; }
.pcard-edit-strip button { background: none; border: none; cursor: pointer; font-size: 11.5px; font-family: var(--display); font-weight: 500; color: var(--ps-text-muted); padding: 0; transition: color .12s; }
.pcard-edit-strip button:hover { color: var(--ps-text-primary); }
.persona-card.custom-persona:hover { box-shadow: 0 0 0 1.5px #717A64, var(--ps-shadow-lg); }
.persona-card.custom-persona::before { background: #717A64; }
.pcard-btn { padding: 3px 9px; border-radius: var(--ps-radius-pill); border: 1.5px solid var(--ps-border); background: transparent; font-family: var(--display); font-size: 11px; font-weight: 500; color: var(--ps-text-secondary); cursor: pointer; transition: all .12s; }
.pcard-btn:hover { border-color: var(--ps-text-primary); color: var(--ps-text-primary); }
.pcard-btn.use { background: var(--ps-azul); color: white; border-color: var(--ps-azul); }
.pcard-btn.use:hover { background: var(--ps-azul-dark); }
.pcard-btn.pcard-chat { background: var(--ps-verde); color: white; border-color: var(--ps-verde); }
.pcard-btn.pcard-chat:hover { background: var(--ps-verde-dark); }

/* Installed packs */
.ipack-list { display: flex; flex-direction: column; gap: 8px; }
.ipack { background: var(--ps-surface); border: 1.5px solid var(--ps-border); border-radius: var(--ps-radius); padding: 14px 18px; display: flex; align-items: center; gap: 14px; transition: all .15s; }
.ipack:hover { border-color: var(--ps-border-strong); box-shadow: var(--ps-shadow); }
.ipack-icon { width: 38px; height: 38px; border-radius: var(--ps-radius-sm); background: var(--ps-terracotta-faint); color: var(--ps-terracotta); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ipack-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ipack-body { flex: 1; min-width: 0; }
.ipack-name { font-size: 13.5px; font-weight: 700; color: var(--ps-text-primary); margin-bottom: 2px; }
.ipack-meta { font-family: var(--mono); font-size: 10.5px; color: var(--ps-text-muted); }
.ipack-counts { display: flex; gap: 6px; margin-top: 5px; }
.ipack-pill { font-family: var(--mono); font-size: 10px; padding: 2px 7px; border-radius: var(--ps-radius-xs); background: var(--ps-terracotta-faint); color: var(--ps-terracotta); }
.ipack-remove { background: transparent; border: 1.5px solid var(--ps-border); color: var(--ps-text-muted); border-radius: var(--ps-radius-pill); padding: 4px 11px; font-family: var(--display); font-size: 11.5px; font-weight: 500; cursor: pointer; transition: all .12s; flex-shrink: 0; }
.ipack-remove:hover { background: #FEE2E2; border-color: #FECACA; color: #991B1B; }

/* Snippet create/edit form */
.snippet-form { background: var(--ps-surface); border: 1.5px solid var(--ps-azul-light); border-radius: var(--ps-radius); padding: 16px; margin-bottom: 18px; }
.snip-input, .snip-select, .snip-textarea { width: 100%; border: 1.5px solid var(--ps-border); border-radius: var(--ps-radius-sm); padding: 8px 12px; font-family: var(--display); font-size: 13px; color: var(--ps-text-primary); background: var(--ps-off-white); outline: none; display: block; transition: border-color .15s; margin-bottom: 10px; }
.snip-input:focus, .snip-select:focus, .snip-textarea:focus { border-color: var(--ps-azul); }
.snip-select { font-family: var(--mono); font-size: 12px; color: var(--ps-text-secondary); cursor: pointer; }
.snip-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.snip-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pform-ai-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: -4px; margin-bottom: 10px; }
.pform-generate-btn { flex-shrink: 0; }
.pform-generate-btn:disabled { opacity: .6; cursor: default; }
.pform-info-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--ps-azul); cursor: default; position: relative; font-style: normal; vertical-align: middle; }
.pform-info-tip { display: none; position: absolute; bottom: calc(100% + 8px); right: 0; width: 260px; background: var(--ps-sidebar); color: rgba(255,255,255,.85); font-family: var(--display); font-size: 12px; font-style: normal; line-height: 1.55; padding: 10px 13px; border-radius: var(--ps-radius-sm); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--ps-shadow-lg); z-index: 200; pointer-events: none; white-space: normal; }
.pform-info-tip strong { color: white; font-weight: 600; }
.pform-info-icon:hover .pform-info-tip { display: block; }
.tform-block-list { margin-bottom: 10px; min-height: 10px; }

/* Snippet cards */
.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.template-grid .lib-section-head { grid-column: 1 / -1; }
.template-grid .snippet-card { margin-bottom: 0; }
.snippet-card { background: var(--ps-surface); border: 1.5px solid var(--ps-border); border-radius: var(--ps-radius); padding: 14px 16px; margin-bottom: 10px; transition: box-shadow .15s; }
.snippet-card:hover { box-shadow: var(--ps-shadow); border-color: var(--ps-border-strong); }
.snippet-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.snippet-name { font-size: 13.5px; font-weight: 700; color: var(--ps-text-primary); }
.snippet-tag-badge { font-family: var(--mono); font-size: 10px; color: var(--ps-azul-dark); background: var(--ps-azul-faint); border: 1px solid var(--ps-azul-light); border-radius: var(--ps-radius-xs); padding: 2px 7px; }
.snippet-meta { font-family: var(--mono); font-size: 10px; color: var(--ps-text-muted); margin-left: auto; }
.snippet-preview { font-size: 12.5px; color: var(--ps-text-secondary); line-height: 1.6; margin-bottom: 10px; padding: 10px 12px; background: var(--ps-off-white); border-radius: var(--ps-radius-xs); border: 1px solid var(--ps-border); white-space: pre-wrap; }
.snippet-card-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* Library sidebar export/import buttons */
.lib-export-btn { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--ps-radius-sm); cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--ps-text-muted); transition: all .15s; background: none; border: none; width: 100%; text-align: left; font-family: var(--display); }
.lib-export-btn:hover { background: var(--ps-off-white); color: var(--ps-text-primary); }
.lib-export-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Sync status pill */
.sync-pill { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: var(--ps-radius-pill); font-size: 12px; font-weight: 500; border: 1.5px solid var(--ps-border); color: var(--ps-text-muted); margin: 4px 8px; transition: all .3s; }
.sync-pill.hidden { display: none; }
.sync-pill.synced  { color: var(--ps-verde-dark);     border-color: var(--ps-verde-light);      background: var(--ps-verde-faint); }
.sync-pill.syncing { color: var(--ps-warm);            border-color: var(--ps-warm-light);       background: #FDF8F0; }
.sync-pill.error   { color: var(--ps-terracotta);      border-color: var(--ps-terracotta-light); background: var(--ps-terracotta-faint); }
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.sync-pill.syncing .sync-dot { animation: syncPulse 1s ease-in-out infinite; }
@keyframes syncPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

@media (max-width: 700px) {
  .sync-pill { margin: 0; flex-shrink: 0; white-space: nowrap; }
}

/* Beta badge */
.lib-badge-beta { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--ps-warm); color: #fff; border-radius: 100px; padding: 2px 6px; vertical-align: middle; margin-left: 4px; }

/* ── Submit a Pack section ── */
.submit-section { padding: 20px; }
.submit-cols { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.submit-col-left { display: flex; flex-direction: column; gap: 14px; }
.submit-col-right { position: sticky; top: 0; }

.sub-guide-card { background: var(--ps-surface); border: 1.5px solid var(--ps-border); border-radius: var(--ps-radius); padding: 20px 22px; }
.sub-guide-title { font-size: 13.5px; font-weight: 700; margin-bottom: 12px; color: var(--ps-text-primary); }
.sub-guide-steps { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ps-text-secondary); line-height: 1.6; margin-bottom: 16px; }
.sub-guide-steps code { font-family: var(--mono); font-size: 11.5px; background: var(--ps-off-white); border: 1px solid var(--ps-border); border-radius: 4px; padding: 1px 5px; color: var(--ps-text-primary); }
.sub-download-label { font-size: 12px; color: var(--ps-text-muted); margin-bottom: 8px; }
.sub-download-group { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-download-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; background: var(--ps-azul-faint); border: 1.5px solid var(--ps-azul-light); border-radius: var(--ps-radius-pill); color: var(--ps-azul-dark); font-size: 13px; font-weight: 600; text-decoration: none; transition: all .15s; }
.sub-download-btn:hover { background: var(--ps-azul); color: #fff; border-color: var(--ps-azul); }
.sub-download-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sub-dl-ext { font-family: var(--mono); font-size: 11px; font-weight: 400; opacity: .7; }

.sub-drop-zone { border: 2px dashed var(--ps-border); border-radius: var(--ps-radius); padding: 36px 20px; text-align: center; cursor: pointer; transition: all .15s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sub-drop-zone:hover, .sub-drop-zone.drag-over { border-color: var(--ps-azul-light); background: var(--ps-azul-faint); }
.sub-drop-zone svg { width: 32px; height: 32px; fill: none; stroke: var(--ps-text-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sub-drop-label { font-size: 13.5px; font-weight: 600; color: var(--ps-text-primary); }
.sub-drop-label code { font-family: var(--mono); font-size: 12px; background: var(--ps-off-white); border: 1px solid var(--ps-border); border-radius: 4px; padding: 1px 5px; }
.sub-drop-sub { font-size: 12px; color: var(--ps-text-muted); }
.sub-browse-link { color: var(--ps-azul); cursor: pointer; font-weight: 500; }

.sub-validating { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--ps-surface); border: 1.5px solid var(--ps-border); border-radius: var(--ps-radius-sm); font-size: 13px; color: var(--ps-text-secondary); }
.sub-spinner { width: 16px; height: 16px; border: 2px solid var(--ps-border); border-top-color: var(--ps-azul); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Validation result box */
.val-box { border-radius: var(--ps-radius-sm); border: 1.5px solid; overflow: hidden; }
.val-box-ok   { border-color: var(--ps-verde-light); }
.val-box-fail { border-color: var(--ps-terracotta-light); }
.val-box-title { padding: 12px 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ps-border); }
.val-box-ok .val-box-title   { background: var(--ps-verde-faint); color: var(--ps-verde-dark); }
.val-box-fail .val-box-title { background: var(--ps-terracotta-faint); color: var(--ps-terracotta-dark); }
.val-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 100px; }
.val-badge-ok   { background: var(--ps-verde); color: #fff; }
.val-badge-fail { background: var(--ps-terracotta); color: #fff; }
.val-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; font-size: 12.5px; line-height: 1.5; border-bottom: 1px solid var(--ps-border); }
.val-row:last-child { border-bottom: none; }
.val-icon { font-size: 12px; flex-shrink: 0; width: 16px; text-align: center; margin-top: 1px; }
.val-msg { flex: 1; }
.val-fail { background: var(--ps-terracotta-faint); color: var(--ps-terracotta-dark); }
.val-warn { background: #FFF7ED; color: #92400E; }
.val-info { background: var(--ps-surface); color: var(--ps-text-secondary); }
.val-submitted-note { padding: 10px 14px; font-size: 12px; color: var(--ps-verde-dark); background: var(--ps-verde-faint); border-top: 1px solid var(--ps-verde-light); }

/* Instructions tile */
.sub-instructions { background: var(--ps-surface); border: 1.5px solid var(--ps-border); border-radius: var(--ps-radius); overflow: hidden; }
.sub-ins-block { padding: 16px 18px; border-bottom: 1.5px solid var(--ps-border); }
.sub-ins-block:last-child { border-bottom: none; }
.sub-ins-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ps-text-muted); margin-bottom: 10px; }
.sub-ins-p { font-size: 12.5px; color: var(--ps-text-secondary); line-height: 1.6; margin: 0; }
.sub-ins-examples { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; }
.sub-ins-example { font-size: 12px; color: var(--ps-text-secondary); font-style: italic; background: var(--ps-off-white); border-left: 3px solid var(--ps-azul-light); border-radius: 0 var(--ps-radius-xs) var(--ps-radius-xs) 0; padding: 7px 10px; line-height: 1.5; }
.sub-ins-check-label { font-size: 11.5px; font-weight: 700; color: var(--ps-text-primary); margin-bottom: 4px; }
.sub-ins-quote { font-size: 12px; line-height: 1.5; padding: 7px 10px; border-radius: var(--ps-radius-xs); margin-top: 6px; }
.sub-ins-quote.good { background: var(--ps-verde-faint); border-left: 3px solid var(--ps-verde-light); color: var(--ps-verde-dark); }
.sub-ins-quote.bad  { background: var(--ps-terracotta-faint); border-left: 3px solid var(--ps-terracotta-light); color: var(--ps-terracotta-dark); }
.sub-ins-list { padding-left: 16px; display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ps-text-secondary); line-height: 1.5; }
.sub-ins-list code { font-family: var(--mono); font-size: 11px; background: var(--ps-off-white); border: 1px solid var(--ps-border); border-radius: 3px; padding: 1px 4px; }
.sub-ins-tips { padding-left: 16px; display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--ps-text-secondary); line-height: 1.55; }

.sub-history-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ps-text-muted); margin-bottom: 8px; }
.sub-history-row { background: var(--ps-surface); border: 1.5px solid var(--ps-border); border-radius: var(--ps-radius-sm); padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sub-history-name { font-size: 13px; font-weight: 600; color: var(--ps-text-primary); margin-bottom: 2px; }
.sub-history-date { font-size: 11.5px; color: var(--ps-text-muted); }
.sub-history-notes { font-size: 12px; color: var(--ps-terracotta-dark); margin-top: 6px; padding: 6px 10px; background: var(--ps-terracotta-faint); border-radius: var(--ps-radius-xs); line-height: 1.5; }
.sub-status-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 10.5px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.sub-status-chip.pending  { background: #FFF7ED; color: #92400E; border: 1px solid #FDE68A; }
.sub-status-chip.approved { background: var(--ps-verde-faint); color: var(--ps-verde-dark); border: 1px solid var(--ps-verde-light); }
.sub-status-chip.rejected { background: var(--ps-terracotta-faint); color: var(--ps-terracotta-dark); border: 1px solid var(--ps-terracotta-light); }

/* Empty state */
.lib-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 60px 20px; text-align: center; color: var(--ps-text-muted); }
.lib-empty svg { width: 36px; height: 36px; fill: none; stroke: var(--ps-border); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.lib-empty p { font-size: 13px; line-height: 1.5; max-width: 260px; }
.lib-empty a { color: var(--ps-azul); text-decoration: none; font-weight: 500; }

@media (max-width: 700px) {
  #view-library { flex-direction: column; }
  .lib-sidebar {
    width: 100%; height: auto; flex-shrink: 0; flex-direction: row;
    padding: 8px 10px; border-right: none; border-bottom: 1.5px solid var(--ps-border);
    overflow-x: auto; gap: 4px; align-items: center;
  }
  .lib-sidebar::-webkit-scrollbar { display: none; }
  .lib-section-label, .lib-sep { display: none; }
  .lib-export-btn { display: none; }
  .lib-nav-item { flex-shrink: 0; padding: 6px 12px; white-space: nowrap; border-radius: var(--ps-radius-pill); background: var(--ps-off-white); border: 1.5px solid var(--ps-border); }
  .lib-nav-item.active { background: var(--ps-azul-faint); border-color: var(--ps-azul-light); color: var(--ps-azul-dark); }
  .lib-nav-item svg { display: none; }
  .lib-count { display: none; }
  .lib-content { padding: 16px 14px; }
  .persona-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .template-grid { grid-template-columns: 1fr; }
  .submit-cols { grid-template-columns: 1fr; }
}
