.ux360-pl-wrap{margin:16px 0}
.ux360-pl-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 16px}
.ux360-pl-toolbar input[type="search"]{min-width:240px;flex:1 1 260px}
.ux360-pl-toolbar select{min-width:160px}
.ux360-pl-inline-check{display:inline-flex;gap:6px;align-items:center;font-size:13px}

/* Split view (Notion-like list + right drawer) */
.ux360-pl-split{position:relative}
.ux360-pl-master{border:1px solid #e5e7eb;border-radius:12px;background:#fff;overflow:hidden}
.ux360-pl-master__head{display:grid;grid-template-columns:1.6fr 1fr .8fr;gap:12px;padding:10px 12px;font-size:12px;color:#6b7280;background:#f8fafc;border-bottom:1px solid #e5e7eb}
.ux360-pl-col{font-weight:600}
.ux360-pl-rows{display:block}
.ux360-pl-row{display:grid;grid-template-columns:1.6fr 1fr .8fr;gap:12px;padding:12px;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #f1f5f9;cursor:pointer}
.ux360-pl-row:hover{background:#f8fafc}
.ux360-pl-row.is-active{background:#eff6ff}
.ux360-pl-row__title{font-weight:600;color:#111827;line-height:1.3}
.ux360-pl-row__sub{font-size:12px;color:#6b7280;margin-top:4px}
.ux360-pl-row__cats{font-size:12px;color:#374151}
.ux360-pl-row__meta{font-size:12px;color:#6b7280;display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap;white-space:normal}

.ux360-pl-row__stats{white-space:nowrap}
.ux360-pl-row__fav{border:1px solid #e5e7eb;border-radius:999px;padding:2px 8px;font-size:11px;cursor:pointer;user-select:none}
.ux360-pl-row__fav.is-favorited{font-weight:600}

.ux360-pl-drawer__engagement{padding:12px 16px 0;display:flex;flex-direction:column;gap:10px}
.ux360-pl-drawer__ratingWrap{padding:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ux360-pl-drawer__ratingWrap strong{font-size:13px}
.ux360-pl-drawer__engagement .ux360-favorite-toggle--primary{align-self:flex-start}
.ux360-pl-stars{display:inline-flex;gap:6px;align-items:center}
.ux360-pl-stars button{border:1px solid #e5e7eb;background:#fff;border-radius:10px;width:34px;height:34px;cursor:pointer;font-size:18px;line-height:1}
.ux360-pl-drawer-save-rating[disabled]{opacity:.55;cursor:not-allowed}

.ux360-pl-approve-btn{font-weight:600}



/* Right drawer */
.ux360-pl-drawer{position:fixed;top:0;right:0;height:100vh;height:100dvh;width:min(560px,44vw);transform:translateX(102%);transition:transform .22s ease;z-index:99990}
.ux360-pl-drawer.is-open{transform:translateX(0)}
.ux360-pl-drawer__panel{height:100%;max-height:100%;background:#fff;border-left:1px solid #e5e7eb;box-shadow:-10px 0 30px rgba(0,0,0,.18);display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0}
.ux360-pl-drawer__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #e5e7eb}
.ux360-pl-drawer__title{margin:0;font-size:18px;line-height:1.3}
.ux360-pl-drawer__close{border:1px solid #e5e7eb;background:#fff;border-radius:10px;width:38px;height:38px;cursor:pointer;font-size:18px;line-height:1}
.ux360-pl-drawer__headerActions{display:flex;align-items:center;gap:8px}
.ux360-pl-drawer__headerActions .button{margin:0}

.ux360-pl-drawer__meta{padding:12px 16px 0;font-size:12px;color:#6b7280;display:flex;flex-wrap:wrap;gap:8px}
.ux360-pl-drawer__desc{margin:8px 16px 0;color:#374151}
.ux360-pl-drawer__sectionTitle{padding:12px 16px 6px;font-size:12px;font-weight:700;color:#111827;text-transform:uppercase;letter-spacing:.03em}
.ux360-pl-drawer__prompt{margin:0 16px 16px;white-space:pre-wrap;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;line-height:1.45;overflow:visible;flex:0 0 auto;min-height:120px}
.ux360-pl-drawer__actions{padding:12px 16px;border-top:1px solid #e5e7eb;display:flex;gap:10px;justify-content:flex-end;position:sticky;bottom:0;z-index:2;box-shadow:0 -8px 18px rgba(15,23,42,.06)}
.ux360-pl-drawer__actions .button{margin:0}

/* Drawer viewport + scrollbar fix */
body.admin-bar .ux360-pl-drawer{top:32px;height:calc(100vh - 32px);height:calc(100dvh - 32px)}
@media (max-width:782px){body.admin-bar .ux360-pl-drawer{top:46px;height:calc(100vh - 46px);height:calc(100dvh - 46px)}}
.ux360-pl-drawer__panel::-webkit-scrollbar{width:10px}
.ux360-pl-drawer__panel::-webkit-scrollbar-track{background:transparent}
.ux360-pl-drawer__panel::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px;border:2px solid transparent;background-clip:content-box}
.ux360-pl-drawer__panel::-webkit-scrollbar-thumb:hover{background:#94a3b8;background-clip:content-box}

@media (max-width: 960px){
  .ux360-pl-master__head{grid-template-columns:1fr}
  .ux360-pl-row{grid-template-columns:1fr}
  .ux360-pl-row__cats,.ux360-pl-row__meta{margin-top:6px}
  .ux360-pl-drawer{width:100vw}
}


.ux360-pl-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.ux360-pl-card{border:1px solid #e5e7eb;border-radius:12px;padding:16px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04);display:flex;flex-direction:column;gap:8px}
.ux360-pl-card h3{margin:0;font-size:18px;line-height:1.3}
.ux360-pl-card p{margin:0;color:#374151}
.ux360-pl-card-head{display:flex;flex-direction:column;gap:8px}
.ux360-pl-badge{display:inline-block;align-self:flex-start;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600}
.ux360-pl-cats{font-size:12px;color:#4b5563}
.ux360-pl-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:12px;color:#6b7280}
.ux360-pl-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.ux360-pl-actions .button{margin:0}
.ux360-favorite-toggle.is-favorited{font-weight:600}
.ux360-pl-count{margin:10px 0 0;font-size:13px;color:#6b7280;display:flex;gap:6px;align-items:center}
.ux360-pl-count span{font-weight:600;color:#111827}
.ux360-pl-submit .ux360-pl-count{padding:0 14px 10px;margin:0}

.ux360-pl-pagination{margin:16px 0 0;display:flex;flex-wrap:wrap;gap:6px}
.ux360-pl-loadmore{margin:16px 0 0;display:none;justify-content:center}
body.ux360-pl-js .ux360-pl-loadmore{display:flex}
body.ux360-pl-js .ux360-pl-pagination{display:none}

.ux360-pl-gate{padding:14px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}

/* Modal */
.ux360-pl-modal{position:fixed;inset:0;z-index:99999;display:none}
.ux360-pl-modal.is-open{display:block}
.ux360-pl-modal__backdrop{position:absolute;inset:0;background:rgba(17,24,39,.55)}
.ux360-pl-modal__dialog{position:relative;z-index:1;max-width:860px;margin:5vh auto;background:#fff;border-radius:14px;box-shadow:0 20px 50px rgba(0,0,0,.25);overflow:hidden}
.ux360-pl-modal__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e5e7eb;gap:10px}
.ux360-pl-modal__title{margin:0;font-size:18px;line-height:1.3}
.ux360-pl-modal__body{padding:16px;max-height:70vh;overflow:auto}
.ux360-pl-modal__desc{margin:0 0 12px;color:#4b5563}
.ux360-pl-modal__prompt{white-space:pre-wrap;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:12px;font-family:ui-monospace, SFMono-Regular, Menlo, monospace;font-size:13px;line-height:1.45}
.ux360-pl-modal__meta{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;color:#6b7280;margin:0 0 12px}
.ux360-pl-modal__footer{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;padding:14px 16px;border-top:1px solid #e5e7eb;background:#f9fafb}
.ux360-pl-stars{display:inline-flex;gap:4px}
.ux360-pl-star{background:none;border:0;cursor:pointer;font-size:18px;line-height:1;padding:0 2px}
.ux360-pl-toast{position:fixed;right:16px;bottom:16px;background:#111827;color:#fff;padding:10px 12px;border-radius:8px;font-size:13px;z-index:100000;display:none}
.ux360-pl-toast.is-show{display:block}
@media (max-width: 900px){
  .ux360-pl-modal__dialog{margin:2vh 10px;max-width:none}
}

/* --- Modal tabs + chat (inline) --- */
.ux360-pl-modal__tabs{display:flex;gap:8px;border-bottom:1px solid #e5e7eb;padding:10px 16px;background:#fff}
.ux360-pl-tab{border:1px solid #e5e7eb;background:#f9fafb;border-radius:999px;padding:6px 12px;cursor:pointer;font-size:13px}
.ux360-pl-tab.is-active{background:#fff;border-color:#9ca3af}
.ux360-pl-panel{padding:0}
.ux360-pl-panel.is-active{display:block}
.ux360-pl-panel[hidden]{display:none!important}

.ux360-pl-chatModal__top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
.ux360-pl-chatModal__limits{font-size:12px;color:#6b7280}
.ux360-pl-chatModal__thread{border:1px solid #e5e7eb;border-radius:10px;background:#fff;max-height:320px;overflow:auto;padding:12px}
.ux360-pl-chatModal__msg{display:flex;margin:8px 0}
.ux360-pl-chatModal__msg.is-user{justify-content:flex-end}
.ux360-pl-chatModal__msg.is-assistant{justify-content:flex-start}
.ux360-pl-chatModal__msg.is-error{justify-content:flex-start}
.ux360-pl-chatModal__bubble{max-width:85%;padding:10px 12px;border-radius:12px;line-height:1.35;font-size:13px;border:1px solid #e5e7eb;background:#f9fafb}
.ux360-pl-chatModal__msg.is-user .ux360-pl-chatModal__bubble{background:#eef2ff}
.ux360-pl-chatModal__msg.is-error .ux360-pl-chatModal__bubble{background:#fef2f2;border-color:#fecaca}

.ux360-pl-chatModal__composer{margin-top:10px}
.ux360-pl-chatModal__input{width:100%;border:1px solid #e5e7eb;border-radius:10px;padding:10px;resize:vertical}
.ux360-pl-chatModal__actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.ux360-pl-chatModal__note{margin-top:6px;font-size:12px;color:#6b7280}

.ux360-pl-chatModal__vars{margin:10px 0;padding:10px;border:1px dashed #d1d5db;border-radius:10px;background:#fafafa}
.ux360-pl-chatModal__varsTitle{font-weight:600;font-size:13px;margin-bottom:8px}
.ux360-pl-chatModal__varRow{display:grid;grid-template-columns:160px 1fr;gap:8px;align-items:center;margin:6px 0}
.ux360-pl-chatModal__varRow label{font-size:12px;color:#374151}
.ux360-pl-chatModal__varRow input{width:100%;border:1px solid #e5e7eb;border-radius:8px;padding:7px 9px}


/* Variable placeholders (click-to-edit) */
.ux360-pl-var{display:inline-block;padding:0 4px;border-radius:6px;cursor:pointer;outline:none;}
.ux360-pl-var.is-missing{background:#fff3cd;border:1px dashed #d39e00;}
.ux360-pl-var.is-filled{background:#eef6ff;border:1px solid #b6d6ff;}
.ux360-pl-var:focus{box-shadow:0 0 0 2px rgba(0,123,255,.25);}
.ux360-pl-var-input{width:min(320px, 100%);padding:4px 6px;border-radius:6px;border:1px solid #cbd5e1;font:inherit;}
.ux360-pl-var[data-tip]{position:relative;}
.ux360-pl-var[data-tip]:hover::after{content:attr(data-tip);position:absolute;left:0;top:100%;margin-top:6px;background:#111827;color:#fff;padding:6px 8px;border-radius:8px;white-space:nowrap;font-size:12px;z-index:9999;}
.ux360-pl-var[data-tip]:hover::before{content:'';position:absolute;left:12px;top:100%;border:6px solid transparent;border-bottom-color:#111827;margin-top:-6px;}
.ux360-pl-drawer__notice{margin:10px 0;padding:10px 12px;border-radius:10px;background:#fff3cd;border:1px solid #ffeeba;color:#7a4e00;font-size:13px;}
.ux360-pl-drawer__prompt{white-space:pre-wrap;}


.ux360-pl-chatModal__notice{margin:8px 0;padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.35;border:1px solid transparent;}
.ux360-pl-chatModal__notice.is-warn{background:#fff3cd;border-color:#ffeeba;color:#7a4e00;}
.ux360-pl-chatModal__notice.is-error{background:#fdecea;border-color:#f5c6cb;color:#721c24;}
.ux360-pl-chatModal__notice a{color:inherit;text-decoration:underline;}


/* Notices */
.ux360-pl-notice{border:1px solid #e5e7eb;border-left-width:4px;border-radius:12px;padding:10px 12px;margin:0 0 12px;background:#fff}
.ux360-pl-notice.success{border-left-color:#22c55e}
.ux360-pl-notice.error{border-left-color:#ef4444}

/* Submit / edit page layout */
.ux360-pl-submit-layout{display:flex;gap:16px;align-items:flex-start}
.ux360-pl-submit-master{flex:1 1 42%;min-width:320px}
.ux360-pl-submit-editor{flex:1 1 58%;min-width:320px}

.ux360-pl-submit-master__top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 14px 10px}
.ux360-pl-submit-master__title{margin:0;font-size:16px}
.ux360-pl-submit-master__search{padding:0 14px 12px}
.ux360-pl-submit-master__search input[type="search"]{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}

.ux360-pl-submit-head{grid-template-columns:1.6fr .7fr 1fr}
.ux360-pl-submit-row{grid-template-columns:1.6fr .7fr 1fr;text-decoration:none;color:inherit}
.ux360-pl-submit-row .ux360-pl-row__title{display:block}
.ux360-pl-empty{padding:14px;color:#6b7280}

.ux360-pl-submit-editor__top{padding:14px 16px;border-bottom:1px solid #e5e7eb;background:#f8fafc}
.ux360-pl-editing-pill{font-size:13px;color:#374151}

.ux360-pl-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 16px}
.ux360-pl-span-2{grid-column:1 / -1}
.ux360-pl-field{display:flex;flex-direction:column;gap:6px}
.ux360-pl-label{font-size:13px;font-weight:600;color:#111827}
.ux360-pl-required{color:#ef4444;margin-left:4px}
.ux360-pl-field input[type="text"],
.ux360-pl-field textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.ux360-pl-field textarea{resize:vertical}
.ux360-pl-help{font-size:12px;color:#6b7280}

.ux360-pl-cat-grid{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #e5e7eb;border-radius:12px;padding:10px;background:#fff;max-height:220px;overflow:auto}
.ux360-pl-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border:1px solid #e5e7eb;border-radius:999px;background:#f8fafc;font-size:13px;cursor:pointer;user-select:none}
.ux360-pl-pill input{margin:0}

.ux360-pl-form-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;padding-top:2px}

/* Responsive */
@media (max-width: 900px){
  .ux360-pl-submit-layout{flex-direction:column}
  .ux360-pl-submit-master,.ux360-pl-submit-editor{min-width:unset;width:100%}
}
@media (max-width: 720px){
  .ux360-pl-form-grid{grid-template-columns:1fr}
}


/* Drawer favorite button (prominent) */
.ux360-favorite-toggle--primary{border-radius:999px;padding:6px 12px;font-weight:600}


/* Notes / conversation (submit edit page) */
.ux360-pl-notes{margin-top:14px;border-top:1px solid #e5e7eb;padding:14px 16px;background:#fff}
.ux360-pl-notes__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.ux360-pl-notes__title{margin:0;font-size:14px}
.ux360-pl-notes__hint{font-size:12px;color:#6b7280}
.ux360-pl-notes__list{display:flex;flex-direction:column;gap:10px;max-height:280px;overflow:auto;border:1px solid #e5e7eb;border-radius:12px;padding:10px;background:#f8fafc}
.ux360-pl-notes__empty{font-size:13px;color:#6b7280;padding:10px;text-align:center}
.ux360-pl-note{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px}
.ux360-pl-note__meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:12px;color:#6b7280;margin-bottom:6px}
.ux360-pl-note__author{font-weight:600;color:#111827}
.ux360-pl-note__badge{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;border-radius:999px;padding:1px 7px;font-size:11px}
.ux360-pl-note__edited{font-style:italic}
.ux360-pl-note__body{font-size:13px;color:#111827}
.ux360-pl-note__body p{margin:0 0 8px}
.ux360-pl-note__body p:last-child{margin-bottom:0}
.ux360-pl-note__edit{margin-left:auto}
.ux360-pl-note-form{margin-top:10px}
.ux360-pl-note-form__textarea{width:100%;min-height:72px}
.ux360-pl-note-form__actions{display:flex;justify-content:flex-end;margin-top:8px}
.ux360-pl-note-edit-textarea{width:100%;min-height:72px}
.ux360-pl-note-edit-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:8px}


/* Revision history (submit/edit) */
.ux360-pl-revisions{margin-top:10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:10px}
.ux360-pl-revisions summary{cursor:pointer;font-weight:600}
.ux360-pl-revisions__list{margin-top:10px}
.ux360-pl-rev{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-top:1px solid #eef2f7}
.ux360-pl-rev:first-child{border-top:0}
.ux360-pl-rev__meta{font-size:13px;color:#374151}

/* Variable hint */
.ux360-pl-vars-hint code{display:inline-block;background:#f3f4f6;border:1px solid #e5e7eb;padding:2px 6px;border-radius:8px;margin:0 2px}


.ux360-pl-row mark{background:#fff3bf;padding:0 .08em;border-radius:3px}
.ux360-pl-rating-summary{font-size:12px;color:#6b7280}
.ux360-pl-collections{display:flex;flex-direction:column;gap:10px;padding:0}
.ux360-pl-collections__label{font-size:12px;font-weight:700;color:#111827;text-transform:uppercase;letter-spacing:.03em}
.ux360-pl-collections__list{display:flex;flex-wrap:wrap;gap:8px}
.ux360-pl-collection-chip{border:1px solid #d1d5db;background:#fff;border-radius:999px;padding:6px 10px;cursor:pointer;font-size:12px;line-height:1.2}
.ux360-pl-collection-chip.is-active{font-weight:600;border-color:#111827}
.ux360-pl-collections__create{display:flex;gap:8px;flex-wrap:wrap}
.ux360-pl-collections__create input{min-width:180px;flex:1 1 180px}
.ux360-pl-collections__empty{font-size:12px;color:#6b7280}

.ux360-pl-editorTools{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 8px}
.ux360-pl-markdown-preview{padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;min-height:80px}
.ux360-pl-markdown-preview h2,
.ux360-pl-markdown-preview h3,
.ux360-pl-markdown-preview h4{margin:0 0 8px}
.ux360-pl-markdown-preview p:last-child{margin-bottom:0}
.ux360-pl-markdown-preview code{background:#f3f4f6;border-radius:4px;padding:2px 4px}
.ux360-pl-markdown-preview ul{margin:0 0 0 18px}

.ux360-pl-placeholderWizard{margin-top:10px;border:1px dashed #d1d5db;border-radius:10px;padding:12px;background:#fafafa}
.ux360-pl-placeholderWizard__head{margin-bottom:8px}
.ux360-pl-placeholderWizard__empty{font-size:12px;color:#6b7280}
.ux360-pl-placeholderWizard__list{display:flex;flex-direction:column;gap:8px}
.ux360-pl-placeholderWizard__row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ux360-pl-placeholderWizard__token{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:4px 10px;font-size:12px}
.ux360-pl-placeholderWizard__sample{min-width:220px;flex:1 1 220px}

.ux360-pl-toolbar .ux360-pl-saved-filter-select{min-width:180px}
.ux360-pl-submit .g-recaptcha{margin-top:4px}

@media (max-width: 782px){
  .ux360-pl-collections__create{flex-direction:column}
  .ux360-pl-placeholderWizard__row{align-items:flex-start}
}


.ux360-pl-note__kind,
.ux360-pl-note__visibility{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 8px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  font-size:11px;
  color:#374151;
  background:#fff;
}
.ux360-pl-note-form__meta,
.ux360-pl-note-edit-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:10px 0;
}
.ux360-pl-note-form__meta label,
.ux360-pl-note-edit-meta label{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:180px;
}
.ux360-pl-note-edit-meta span{
  font-size:12px;
  color:#6b7280;
}
.ux360-pl-rev{
  border:1px solid #e5e7eb;
  border-radius:10px;
  padding:10px;
  margin-bottom:10px;
}
.ux360-pl-rev__diffWrap{
  margin-top:8px;
  font-size:13px;
}
.ux360-pl-rev-diff{
  margin:8px 0 0 18px;
}
.ux360-pl-rev-diff__empty{
  margin-top:8px;
  color:#6b7280;
}


.ux360-pl-row__match{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.ux360-pl-row__matchTag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:#eef2ff;border:1px solid #c7d2fe;font-size:11px;font-weight:600;color:#3730a3}
.ux360-pl-row__health small{color:#6b7280}

.ux360-pl-drawer__health{margin:0 16px 14px;padding:12px;border:1px solid #dbeafe;background:#eff6ff;border-radius:12px}
.ux360-pl-drawer__healthHead{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.ux360-pl-drawer__healthBadge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:#dbeafe;font-weight:700;font-size:12px}
.ux360-pl-drawer__healthLabel{font-size:12px;font-weight:700;color:#1d4ed8}
.ux360-pl-drawer__healthSummary,.ux360-pl-drawer__healthLine{font-size:13px;line-height:1.5;color:#1f2937}
.ux360-pl-drawer__healthLine + .ux360-pl-drawer__healthLine{margin-top:4px}

.ux360-pl-collections__head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.ux360-pl-collections__manager{margin-top:10px;padding-top:10px;border-top:1px dashed #d1d5db}
.ux360-pl-collections__managerTitle{font-size:12px;font-weight:700;color:#374151;text-transform:uppercase;letter-spacing:.03em;margin-bottom:8px}
.ux360-pl-collection-manageRow{display:flex;gap:8px;align-items:center;margin:8px 0;flex-wrap:wrap}
.ux360-pl-collection-manageName{min-width:180px;flex:1}
.ux360-pl-collection-manageActions{display:flex;gap:6px;flex-wrap:wrap}
.ux360-pl-collection-defaultBadge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#f3f4f6;border:1px solid #e5e7eb;font-size:11px;font-weight:700;color:#374151}
.ux360-pl-collections__empty{font-size:13px;color:#6b7280}

/*override*/

/* ===== Merlien theme token bridge ===== */
:root{
  --ux360-pl-surface: var(--mi-surface, #ffffff);
  --ux360-pl-surface-muted: var(--mi-surface-muted, #eef3f9);
  --ux360-pl-border: var(--mi-border, #d9e2ef);
  --ux360-pl-border-strong: var(--mi-border-strong, #c8d5e6);
  --ux360-pl-text: var(--mi-text, #192335);
  --ux360-pl-text-soft: var(--mi-text-soft, #62718e);
  --ux360-pl-primary: var(--mi-primary, #2563eb);
  --ux360-pl-primary-hover: var(--mi-primary-hover, #1d4ed8);
  --ux360-pl-shadow: var(--mi-shadow, 0 12px 40px rgba(31, 55, 93, 0.08));

  --ux360-pl-primary-soft: color-mix(in srgb, var(--ux360-pl-primary) 10%, var(--ux360-pl-surface) 90%);
  --ux360-pl-primary-soft-strong: color-mix(in srgb, var(--ux360-pl-primary) 16%, var(--ux360-pl-surface) 84%);
  --ux360-pl-warning: #9a6700;
  --ux360-pl-warning-soft: #fff8d9;
  --ux360-pl-danger: #b42318;
  --ux360-pl-danger-soft: #fef3f2;
  --ux360-pl-success: #027a48;
  --ux360-pl-success-soft: #ecfdf3;
}

/* shells / panels */
.ux360-pl-master,
.ux360-pl-card,
.ux360-pl-gate,
.ux360-pl-modal__dialog,
.ux360-pl-note,
.ux360-pl-revisions,
.ux360-pl-markdown-preview,
.ux360-pl-chatModal__thread{
  background:var(--ux360-pl-surface);
  border-color:var(--ux360-pl-border);
  color:var(--ux360-pl-text);
}

.ux360-pl-card,
.ux360-pl-modal__dialog{
  box-shadow:var(--ux360-pl-shadow);
}

.ux360-pl-drawer__panel{
  background:var(--ux360-pl-surface);
  border-left-color:var(--ux360-pl-border);
  color:var(--ux360-pl-text);
}

.ux360-pl-master__head,
.ux360-pl-row:hover,
.ux360-pl-drawer__prompt,
.ux360-pl-modal__prompt,
.ux360-pl-modal__footer,
.ux360-pl-tab,
.ux360-pl-notes__list,
.ux360-pl-submit-editor__top,
.ux360-pl-pill,
.ux360-pl-chatModal__bubble,
.ux360-pl-chatModal__vars,
.ux360-pl-placeholderWizard{
  background:var(--ux360-pl-surface-muted);
  border-color:var(--ux360-pl-border);
}

.ux360-pl-row,
.ux360-pl-modal__header,
.ux360-pl-drawer__header,
.ux360-pl-drawer__actions,
.ux360-pl-notes,
.ux360-pl-submit-master__search input[type="search"],
.ux360-pl-field input[type="text"],
.ux360-pl-field textarea,
.ux360-pl-cat-grid,
.ux360-pl-collection-chip,
.ux360-pl-chatModal__input,
.ux360-pl-chatModal__varRow input,
.ux360-pl-var-input{
  background:var(--ux360-pl-surface);
  border-color:var(--ux360-pl-border);
  color:var(--ux360-pl-text);
}

/* text */
.ux360-pl-row__title,
.ux360-pl-drawer__sectionTitle,
.ux360-pl-count span,
.ux360-pl-modal__title,
.ux360-pl-label,
.ux360-pl-note__author,
.ux360-pl-note__body,
.ux360-pl-collections__label,
.ux360-pl-collections__managerTitle,
.ux360-pl-drawer__title{
  color:var(--ux360-pl-text);
}

.ux360-pl-master__head,
.ux360-pl-row__sub,
.ux360-pl-row__meta,
.ux360-pl-meta,
.ux360-pl-count,
.ux360-pl-modal__desc,
.ux360-pl-modal__meta,
.ux360-pl-chatModal__limits,
.ux360-pl-chatModal__note,
.ux360-pl-help,
.ux360-pl-empty,
.ux360-pl-notes__hint,
.ux360-pl-note__meta,
.ux360-pl-rating-summary,
.ux360-pl-collections__empty,
.ux360-pl-placeholderWizard__empty,
.ux360-pl-note-edit-meta span,
.ux360-pl-row__health small{
  color:var(--ux360-pl-text-soft);
}

.ux360-pl-row__cats,
.ux360-pl-drawer__desc,
.ux360-pl-chatModal__varRow label,
.ux360-pl-editing-pill,
.ux360-pl-rev__meta,
.ux360-pl-note__kind,
.ux360-pl-note__visibility{
  color:color-mix(in srgb, var(--ux360-pl-text) 82%, var(--ux360-pl-text-soft) 18%);
}

/* inputs / focus */
.ux360-pl-field input[type="text"]:focus,
.ux360-pl-field textarea:focus,
.ux360-pl-submit-master__search input[type="search"]:focus,
.ux360-pl-chatModal__input:focus,
.ux360-pl-chatModal__varRow input:focus,
.ux360-pl-var-input:focus,
.ux360-pl-collections__create input:focus{
  outline:none;
  border-color:var(--ux360-pl-primary);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--ux360-pl-primary) 16%, transparent);
}

/* primary-ish states */
.ux360-pl-row.is-active,
.ux360-pl-badge,
.ux360-pl-note__badge,
.ux360-pl-drawer__health,
.ux360-pl-drawer__healthBadge{
  background:var(--ux360-pl-primary-soft);
}

.ux360-pl-badge,
.ux360-pl-note__badge,
.ux360-pl-drawer__health,
.ux360-pl-drawer__healthBadge{
  border-color:color-mix(in srgb, var(--ux360-pl-primary) 24%, var(--ux360-pl-border) 76%);
}

.ux360-pl-badge,
.ux360-pl-note__badge,
.ux360-pl-drawer__healthLabel{
  color:var(--ux360-pl-primary);
}

.ux360-pl-row__matchTag{
  background:var(--ux360-pl-primary-soft);
  border-color:color-mix(in srgb, var(--ux360-pl-primary) 24%, var(--ux360-pl-border) 76%);
  color:var(--ux360-pl-primary);
}

.ux360-pl-collection-chip.is-active,
.ux360-pl-tab.is-active{
  border-color:var(--ux360-pl-primary);
  color:var(--ux360-pl-text);
}

.ux360-pl-drawer__healthSummary,
.ux360-pl-drawer__healthLine{
  color:var(--ux360-pl-text);
}

/* buttons / chips / controls */
.ux360-pl-row__fav,
.ux360-pl-stars button,
.ux360-pl-drawer__close,
.ux360-pl-note__kind,
.ux360-pl-note__visibility,
.ux360-pl-placeholderWizard__token,
.ux360-pl-collection-chip,
.ux360-pl-collection-defaultBadge{
  background:var(--ux360-pl-surface);
  border-color:var(--ux360-pl-border);
  color:var(--ux360-pl-text);
}

.ux360-pl-pill{
  color:var(--ux360-pl-text);
}

.ux360-pl-pill,
.ux360-pl-tab,
.ux360-pl-collections__manager{
  border-color:var(--ux360-pl-border);
}

.ux360-pl-collections__manager{
  border-top-color:var(--ux360-pl-border);
}

/* notices / warnings / errors */
.ux360-pl-drawer__notice,
.ux360-pl-chatModal__notice.is-warn{
  background:var(--ux360-pl-warning-soft);
  border-color:color-mix(in srgb, var(--ux360-pl-warning) 24%, var(--ux360-pl-border) 76%);
  color:var(--ux360-pl-warning);
}

.ux360-pl-chatModal__notice.is-error{
  background:var(--ux360-pl-danger-soft);
  border-color:color-mix(in srgb, var(--ux360-pl-danger) 24%, var(--ux360-pl-border) 76%);
  color:var(--ux360-pl-danger);
}

.ux360-pl-notice{
  background:var(--ux360-pl-surface);
  border-color:var(--ux360-pl-border);
}

.ux360-pl-notice.success{
  border-left-color:var(--ux360-pl-success);
}

.ux360-pl-notice.error{
  border-left-color:var(--ux360-pl-danger);
}

.ux360-pl-required{
  color:var(--ux360-pl-danger);
}

/* modal + toast */
.ux360-pl-modal__backdrop{
  background:color-mix(in srgb, var(--ux360-pl-text) 58%, transparent);
}

.ux360-pl-toast{
  background:var(--ux360-pl-text);
  color:var(--ux360-pl-surface);
}

/* variable placeholder styling */
.ux360-pl-var.is-missing{
  background:var(--ux360-pl-warning-soft);
  border:1px dashed color-mix(in srgb, var(--ux360-pl-warning) 28%, var(--ux360-pl-border) 72%);
}

.ux360-pl-var.is-filled{
  background:var(--ux360-pl-primary-soft);
  border:1px solid color-mix(in srgb, var(--ux360-pl-primary) 24%, var(--ux360-pl-border) 76%);
}

.ux360-pl-var:focus{
  box-shadow:0 0 0 2px color-mix(in srgb, var(--ux360-pl-primary) 18%, transparent);
}

.ux360-pl-var[data-tip]:hover::after{
  background:var(--ux360-pl-text);
  color:var(--ux360-pl-surface);
}

.ux360-pl-var[data-tip]:hover::before{
  border-bottom-color:var(--ux360-pl-text);
}

/* revision / helper blocks */
.ux360-pl-vars-hint code,
.ux360-pl-markdown-preview code,
.ux360-pl-collection-defaultBadge{
  background:var(--ux360-pl-surface-muted);
  border-color:var(--ux360-pl-border);
  color:var(--ux360-pl-text);
}

.ux360-pl-rev{
  border-color:var(--ux360-pl-border);
}

.ux360-pl-rev:first-child{
  border-top-color:transparent;
}

.ux360-pl-rev__diffWrap,
.ux360-pl-rev-diff__empty{
  color:var(--ux360-pl-text-soft);
}

.ux360-pl-row mark{
  background:color-mix(in srgb, var(--ux360-pl-primary) 18%, #fff2a8 82%);
  color:inherit;
}

.ux360-pl-modal__forum{
  margin:14px 0 16px;
}


.ux360-pl-login-gate{padding:16px;border:1px solid #e5e7eb;border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:12px}
.ux360-pl-login-gate__actions,.ux360-pl-guest-teaser__actions{display:flex;flex-wrap:wrap;gap:10px}
.ux360-pl-row__author{font-size:12px;color:#6b7280;margin-top:6px}
.ux360-pl-row__authorLink{text-decoration:none}
.ux360-pl-row__authorLink:hover{text-decoration:underline}

.ux360-pl-guest-teaser{display:flex;flex-direction:column;gap:18px}
.ux360-pl-guest-teaser__intro,.ux360-pl-guest-teaser__foot{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.ux360-pl-guest-teaser__intro h3{margin:0 0 8px}
.ux360-pl-guest-teaser__intro p,.ux360-pl-guest-teaser__foot span{margin:0;color:#4b5563}
.ux360-pl-guest-teaser__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.ux360-pl-guest-teaser__card{border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:16px;display:flex;flex-direction:column;gap:10px;min-height:100%}
.ux360-pl-guest-teaser__card h4{margin:0;font-size:18px;line-height:1.3}
.ux360-pl-guest-teaser__meta{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;color:#6b7280}
.ux360-pl-guest-teaser__desc,.ux360-pl-guest-teaser__cats{margin:0;color:#4b5563;font-size:14px}
.ux360-pl-guest-teaser__cats{font-size:12px;color:#6b7280}
.ux360-pl-guest-teaser__snippet{position:relative;border:1px solid #e5e7eb;border-radius:12px;background:#f8fafc;overflow:hidden;min-height:124px}
.ux360-pl-guest-teaser__snippet pre{margin:0;padding:14px;font-size:12px;line-height:1.5;white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.ux360-pl-guest-teaser__fade{position:absolute;left:0;right:0;bottom:0;height:48px;background:linear-gradient(to bottom, rgba(248,250,252,0), rgba(248,250,252,1))}
@media (max-width: 767px){
  .ux360-pl-guest-teaser__intro,.ux360-pl-guest-teaser__foot{flex-direction:column}
}


.ux360-pl-member-journey{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  flex-wrap:wrap;
  padding:16px 18px;
  margin:0 0 16px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
}
.ux360-pl-member-journey__eyebrow{
  display:inline-block;
  margin:0 0 6px;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#6b7280;
}
.ux360-pl-member-journey__title{
  margin:0 0 6px;
  font-size:20px;
  line-height:1.25;
}
.ux360-pl-member-journey__text{
  margin:0;
  color:#4b5563;
  max-width:720px;
}
.ux360-pl-member-journey__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.ux360-pl-drawer__forum{
  padding:12px 16px 0;
}
.ux360-pl-drawer__forum .mipf-prompt-discussion-panel{
  margin:0;
}
@media (max-width: 767px){
  .ux360-pl-member-journey{
    padding:14px;
  }
}


.ux360-pl-community-sync{
  margin-top:16px;
  border:1px solid #e5e7eb;
  border-radius:16px;
  background:#fff;
  padding:16px;
  display:grid;
  gap:14px;
}

.ux360-pl-community-sync__head{
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
}

.ux360-pl-community-sync__eyebrow{
  display:block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#6b7280;
  margin-bottom:4px;
}

.ux360-pl-community-sync__title{
  margin:0;
  font-size:18px;
  line-height:1.3;
}

.ux360-pl-community-sync__actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.ux360-pl-community-sync__stats{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.ux360-pl-community-sync__chip{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#f8fafc;
  color:#374151;
  font-size:12px;
  font-weight:600;
}

.ux360-pl-community-sync__list{
  display:grid;
  gap:10px;
}

.ux360-pl-community-sync__item{
  border:1px solid #eef2f7;
  border-radius:14px;
  background:#f8fafc;
  padding:14px;
  display:grid;
  gap:6px;
}

.ux360-pl-community-sync__meta{
  display:flex;
  gap:8px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  font-size:12px;
  color:#6b7280;
}

.ux360-pl-community-sync__itemTitle{
  margin:0;
  font-size:15px;
  line-height:1.35;
}

.ux360-pl-community-sync__itemTitle a{
  color:#111827;
  text-decoration:none;
}

.ux360-pl-community-sync__itemTitle a:hover{
  color:#2563eb;
}

.ux360-pl-community-sync__context,
.ux360-pl-community-sync__excerpt,
.ux360-pl-community-sync__empty{
  color:#6b7280;
}

@media (max-width: 640px){
  .ux360-pl-community-sync{
    padding:14px;
  }
}


.ux360-pl-follow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 14px}
.ux360-pl-follow__help{font-size:12px;opacity:.75}
.ux360-pl-follow .button.is-following{font-weight:600}

/* Guest preview mode and simplified prompt list meta */
.ux360-pl-row__titleLink {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ux360-pl-row:hover .ux360-pl-row__titleLink,
.ux360-pl-row:focus .ux360-pl-row__titleLink {
  color: #1e40af;
}

.ux360-pl-author-meta {
  color: #64748b;
  font-weight: 400;
}

.ux360-pl-guest-teaser__intro,
.ux360-pl-guest-teaser__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 16px;
}

.ux360-pl-guest-teaser__intro h3 {
  margin: 0 0 6px;
}

.ux360-pl-guest-teaser__intro p,
.ux360-pl-guest-teaser__foot span {
  margin: 0;
  color: #475569;
}

.ux360-pl-guest-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.ux360-pl-guest-teaser__notice {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
}

.ux360-pl-guest-teaser__grid--list {
  display: grid;
  gap: 12px;
}

.ux360-pl-guest-teaser__card {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.ux360-pl-guest-teaser__card--locked {
  position: relative;
}

.ux360-pl-guest-teaser__card h4 {
  margin: 8px 0 6px;
  font-size: 18px;
}

.ux360-pl-guest-teaser__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #64748b;
  font-size: 13px;
}

.ux360-pl-guest-teaser__desc,
.ux360-pl-guest-teaser__cats {
  margin: 6px 0 0;
  color: #475569;
}

.ux360-pl-guest-teaser__cats {
  font-size: 13px;
  color: #64748b;
}

.ux360-pl-guest-teaser__actions--card {
  justify-content: flex-start;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .ux360-pl-guest-teaser__intro,
  .ux360-pl-guest-teaser__foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .ux360-pl-guest-teaser__actions {
    justify-content: flex-start;
  }
}

/* ===== Compact library header/search refinements ===== */
.ux360-pl-wrap{
  margin:0;
}

.ux360-pl-member-journey{
  display:grid;
  gap:10px;
  padding:12px 14px;
  margin:0 0 12px;
  border-color:var(--ux360-pl-border, #d9e2ef);
  border-radius:16px;
  background:var(--ux360-pl-surface, #fff);
  box-shadow:0 8px 24px rgba(31,55,93,.05);
}

.ux360-pl-member-journey__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.ux360-pl-member-journey__eyebrow{
  margin:0 0 2px;
  font-size:11px;
}

.ux360-pl-member-journey__title{
  margin:0;
  font-size:17px;
  line-height:1.2;
}

.ux360-pl-member-journey__text{
  margin:2px 0 0;
  font-size:13px;
  max-width:620px;
}

.ux360-pl-member-journey__actions{
  gap:8px;
}

.ux360-pl-member-journey__actions .button{
  min-height:34px;
  padding:5px 10px;
  font-size:13px;
}

.ux360-pl-member-journey__updates{
  border-top:1px solid var(--ux360-pl-border, #d9e2ef);
  padding-top:8px;
}

.ux360-pl-member-journey__updates summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  color:var(--ux360-pl-text, #192335);
  font-weight:700;
  font-size:13px;
  list-style:none;
}

.ux360-pl-member-journey__updates summary::-webkit-details-marker{
  display:none;
}

.ux360-pl-member-journey__updates summary small{
  color:var(--ux360-pl-text-soft, #62718e);
  font-weight:600;
}

.ux360-pl-member-journey__updates[open] summary{
  margin-bottom:8px;
}

.ux360-pl-member-journey__updates .ux360-pl-community-sync{
  margin-top:0;
  padding:12px;
  border-radius:14px;
  box-shadow:none;
  background:var(--ux360-pl-surface-muted, #eef3f9);
}

.ux360-pl-toolbar--compact{
  display:grid;
  gap:8px;
  margin:0 0 12px;
  padding:10px;
  border:1px solid var(--ux360-pl-border, #d9e2ef);
  border-radius:16px;
  background:var(--ux360-pl-surface, #fff);
  box-shadow:0 8px 24px rgba(31,55,93,.04);
}

.ux360-pl-toolbar__main{
  display:grid;
  grid-template-columns:minmax(240px,1fr) auto auto;
  gap:8px;
  align-items:center;
}

.ux360-pl-toolbar--compact input[type="search"],
.ux360-pl-toolbar--compact select{
  width:100%;
  min-width:0;
  min-height:40px;
  padding:8px 12px;
  border-radius:12px;
  box-sizing:border-box;
}

.ux360-pl-toolbar--compact .button,
.ux360-pl-toolbar--compact button{
  min-height:40px;
  border-radius:12px;
  margin:0;
}

.ux360-pl-toolbar__advanced{
  border-top:1px solid var(--ux360-pl-border, #d9e2ef);
  padding-top:8px;
}

.ux360-pl-toolbar__advanced summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  list-style:none;
  font-size:13px;
  font-weight:800;
  color:var(--ux360-pl-text, #192335);
}

.ux360-pl-toolbar__advanced summary::-webkit-details-marker{
  display:none;
}

.ux360-pl-toolbar__advanced summary em{
  font-style:normal;
  color:var(--ux360-pl-text-soft, #62718e);
  font-size:12px;
  font-weight:700;
  padding:3px 8px;
  border:1px solid var(--ux360-pl-border, #d9e2ef);
  border-radius:999px;
  background:var(--ux360-pl-surface-muted, #eef3f9);
}

.ux360-pl-toolbar__advancedGrid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:8px;
  padding-top:10px;
}

.ux360-pl-toolbar__check{
  min-height:40px;
  padding:0 10px;
  border:1px solid var(--ux360-pl-border, #d9e2ef);
  border-radius:12px;
  margin:0;
  background:var(--ux360-pl-surface-muted, #eef3f9);
}

.ux360-pl-toolbar__saved{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:8px;
}

.ux360-pl-toolbar__saved .ux360-pl-saved-filter-select{
  min-width:220px;
  width:auto;
}

.ux360-pl-count{
  margin:8px 0 6px;
}

@media (max-width: 760px){
  .ux360-pl-member-journey__top,
  .ux360-pl-member-journey__actions{
    align-items:stretch;
  }
  .ux360-pl-member-journey__actions .button{
    flex:1 1 auto;
    text-align:center;
  }
  .ux360-pl-toolbar__main{
    grid-template-columns:1fr;
  }
  .ux360-pl-toolbar__saved{
    flex-direction:column;
    align-items:stretch;
  }
  .ux360-pl-toolbar__saved .ux360-pl-saved-filter-select{
    width:100%;
  }
}

/* Prompt drawer forum actions fallback */
.ux360-pl-drawer__forum .ux360-pl-forum-fallback-actions,
.ux360-pl-modal__forum .ux360-pl-forum-fallback-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:14px 0 2px;
}
.ux360-pl-drawer__forum .ux360-pl-forum-action,
.ux360-pl-modal__forum .ux360-pl-forum-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:9px 14px;
  border:1px solid var(--ux360-pl-border);
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  line-height:1;
}
.ux360-pl-drawer__forum .ux360-pl-forum-action.mi-button--primary,
.ux360-pl-modal__forum .ux360-pl-forum-action.mi-button--primary{
  background:var(--ux360-pl-primary);
  border-color:var(--ux360-pl-primary);
  color:#fff;
}
.ux360-pl-drawer__forum .ux360-pl-forum-action.mi-button--secondary,
.ux360-pl-modal__forum .ux360-pl-forum-action.mi-button--secondary{
  background:#fff;
  color:var(--ux360-pl-primary);
}
.ux360-pl-drawer__forum .ux360-pl-forum-action:hover,
.ux360-pl-modal__forum .ux360-pl-forum-action:hover{
  text-decoration:none;
}

/* ===== Final prompt-library UX refinements ===== */
.ux360-pl-master__head,
.ux360-pl-row{
  grid-template-columns:minmax(0,1fr) minmax(210px,auto);
}

.ux360-pl-col--cats,
.ux360-pl-row__cats{
  display:none !important;
}

.ux360-pl-row{
  padding:11px 12px;
  align-items:center;
}

.ux360-pl-row__title{
  font-size:15px;
}

.ux360-pl-row__sub{
  max-width:680px;
}

.ux360-pl-row__tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:7px;
}

.ux360-pl-row__tag,
.ux360-pl-row__matchTag{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:2px 8px;
  border:1px solid var(--ux360-pl-border, #d9e2ef);
  border-radius:999px;
  background:var(--ux360-pl-surface-muted, #eef3f9);
  color:var(--ux360-pl-text-soft, #62718e);
  font-size:12px;
  line-height:1.2;
}

.ux360-pl-row__meta{
  justify-content:flex-end;
  gap:8px;
}

.ux360-pl-row__stats{
  color:var(--ux360-pl-text-soft, #62718e);
}

.ux360-pl-member-journey{
  grid-template-columns:1fr;
  position:relative;
}

.ux360-pl-member-journey__updates .ux360-pl-community-sync__body{
  display:grid;
  gap:8px;
}

.ux360-pl-community-sync__head{
  align-items:center;
}

.ux360-pl-community-sync__body p{
  margin:0;
}

.ux360-pl-drawer{
  width:min(640px,46vw);
}

.ux360-pl-drawer__header{
  position:sticky;
  top:0;
  z-index:3;
  background:#fff;
}

.ux360-pl-drawer__desc{
  font-size:15px;
  line-height:1.55;
}

.ux360-pl-drawer__forum{
  padding:14px 16px 0;
}

.ux360-pl-drawer__forum .mipf-prompt-discussion-panel{
  background:var(--ux360-pl-surface-muted, #eef3f9);
  border-style:dashed;
}

.ux360-pl-drawer__forumActions{
  padding:10px 16px 0;
}

.ux360-pl-forum-actionbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  border:1px solid var(--ux360-pl-border, #d9e2ef);
  border-radius:14px;
  background:#fff;
  padding:12px;
}

.ux360-pl-forum-actionbar__copy{
  display:flex;
  flex-direction:column;
  gap:2px;
  color:var(--ux360-pl-text, #192335);
}

.ux360-pl-forum-actionbar__copy span{
  color:var(--ux360-pl-text-soft, #62718e);
  font-size:12px;
  font-weight:700;
}

.ux360-pl-forum-actionbar__buttons{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.ux360-pl-forum-actionbar .ux360-pl-forum-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  margin:0;
  border-radius:12px;
  text-decoration:none;
  font-weight:800;
}

.ux360-pl-forum-actionbar .ux360-pl-forum-action--primary{
  color:#fff;
}

.ux360-pl-drawer__health[hidden],
.ux360-pl-drawer__forumActions[hidden]{
  display:none !important;
}

@media (max-width: 1024px){
  .ux360-pl-drawer{
    width:min(620px,54vw);
  }
}

@media (max-width: 760px){
  .ux360-pl-master__head{
    display:none;
  }

  .ux360-pl-row{
    grid-template-columns:1fr;
    gap:8px;
    padding:13px;
  }

  .ux360-pl-row__meta{
    justify-content:flex-start;
  }

  .ux360-pl-drawer{
    inset:0;
    top:0;
    width:100vw;
    height:100vh;
    height:100dvh;
    max-width:none;
    transform:translateY(102%);
  }

  body.admin-bar .ux360-pl-drawer{
    top:46px;
    height:calc(100vh - 46px);
    height:calc(100dvh - 46px);
  }

  .ux360-pl-drawer.is-open{
    transform:translateY(0);
  }

  .ux360-pl-drawer__panel{
    border-left:0;
    box-shadow:none;
  }

  .ux360-pl-drawer__actions{
    justify-content:stretch;
  }

  .ux360-pl-drawer__actions .button{
    flex:1 1 0;
    text-align:center;
  }

  .ux360-pl-forum-actionbar,
  .ux360-pl-forum-actionbar__buttons{
    align-items:stretch;
    flex-direction:column;
  }
}


/* Shared admin-configurable layout system */
.ux360-pl-shell{
  box-sizing:border-box;
  width:min(calc(100% - (var(--ux360-pl-side-padding, 24px) * 2)), var(--ux360-pl-container-max, 1280px));
  max-width:var(--ux360-pl-container-max, 1280px);
  margin-left:auto !important;
  margin-right:auto !important;
}

.ux360-pl-shell.ux360-pl-layout--full{
  width:calc(100% - (var(--ux360-pl-side-padding, 24px) * 2));
  max-width:none;
}

.ux360-pl-shell.ux360-pl-layout--theme{
  width:auto;
  max-width:none;
}

body.ux360-pl-plugin-page.ux360-pl-layout--fixed .page-shell{
  width:min(calc(100vw - (var(--ux360-pl-side-padding, 24px) * 2)), var(--ux360-pl-container-max, 1280px)) !important;
  max-width:var(--ux360-pl-container-max, 1280px) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

body.ux360-pl-plugin-page.ux360-pl-layout--full .page-shell{
  width:calc(100vw - (var(--ux360-pl-side-padding, 24px) * 2)) !important;
  max-width:none !important;
  margin-left:calc(50% - 50vw + var(--ux360-pl-side-padding, 24px)) !important;
  margin-right:calc(50% - 50vw + var(--ux360-pl-side-padding, 24px)) !important;
}

body.ux360-pl-plugin-page.ux360-pl-layout--theme .page-shell{
  width:auto;
}

body.ux360-pl-card-density--compact .ux360-pl-card,
body.ux360-pl-card-density--compact .ux360-pl-master,
body.ux360-pl-card-density--compact .ux360-pl-detail,
body.ux360-pl-card-density--compact .ux360-pl-member-journey,
.ux360-pl-shell.ux360-pl-card-density--compact .ux360-pl-card,
.ux360-pl-shell.ux360-pl-card-density--compact .ux360-pl-master,
.ux360-pl-shell.ux360-pl-card-density--compact .ux360-pl-detail,
.ux360-pl-shell.ux360-pl-card-density--compact .ux360-pl-member-journey{
  padding:var(--ux360-pl-card-padding, 16px);
}

@media (max-width: 980px){
  .ux360-pl-shell,
  .ux360-pl-shell.ux360-pl-layout--full,
  body.ux360-pl-plugin-page.ux360-pl-layout--fixed .page-shell,
  body.ux360-pl-plugin-page.ux360-pl-layout--full .page-shell{
    width:calc(100% - 24px) !important;
    max-width:calc(100% - 24px) !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}
