/* 4IN PM — first-class organizer. Mobile-first, dark emerald, no emojis. */
body.pm-unified-ready #pmUniOrganizer{max-width:1030px;margin:0 auto;padding-bottom:60px}
.pm-org-heading{display:flex;flex-direction:column;gap:10px;margin:12px 0 24px}
.pm-org-heading>span{font-size:10px;letter-spacing:.17em;color:#8ce6b4;font-weight:800}
.pm-org-heading h2{font-size:clamp(29px,5vw,45px);font-weight:800;letter-spacing:-.055em;margin:0;line-height:1.12;color:#f3faf5}
.pm-org-heading p{color:#b8d0bd;font-size:14px;line-height:1.6;max-width:650px;margin:0}
.pm-org-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0 15px}
.pm-org-stat{background:linear-gradient(155deg,#192920,#122018);border:1px solid #355641;border-radius:13px;padding:17px;display:flex;flex-direction:column;gap:7px;min-width:0}
.pm-org-stat strong{font-size:clamp(24px,3vw,34px);color:#edf9f0;line-height:1;font-variant-numeric:tabular-nums}
.pm-org-stat span{color:#afc9b7;font-size:11px;line-height:1.4;font-weight:700}
.pm-org-process{background:#132219;border:1px solid #355b43;border-radius:17px;padding:21px;margin:0 0 29px}
.pm-org-process-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}
.pm-org-process-top strong{color:#e9f7ee;font-size:13px}
.pm-org-process-top span{color:#83e5ae;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.pm-org-meter{height:8px;border-radius:100px;background:#2b4033;overflow:hidden}
#pmOrgFill{height:100%;width:0;background:linear-gradient(90deg,#47b875,#90efb8);border-radius:100px;transition:width .25s}
#pmOrgAutoStatus{font-size:12px;line-height:1.55;color:#bbd4c4;min-height:20px;margin:12px 0 14px}
.pm-org-actions{display:flex;flex-wrap:wrap;gap:10px}
.pm-org-actions button,.pm-org-bulk button,.pm-org-more,.pm-org-select-artist,.pm-org-track button,.pm-org-empty button{border:1px solid #4a7055;color:#e9f5ed;background:#25402f;border-radius:10px;min-height:43px;padding:10px 14px;cursor:pointer;font:inherit;font-size:12px;font-weight:750}
.pm-org-actions .pm-org-primary,.pm-org-bulk .pm-org-primary,.pm-org-empty .pm-org-primary{background:#75dca7;color:#092014;border-color:#75dca7}
.pm-org-actions button:disabled,.pm-org-bulk button:disabled,.pm-org-track button:disabled{opacity:.5;cursor:not-allowed}
.pm-org-hint{font-size:11px;color:#9db9a6;line-height:1.65;max-width:740px;margin:13px 0 0}
.pm-org-section{margin:22px 0 27px}
.pm-org-section h3{font-size:20px;letter-spacing:-.03em;margin:0 0 14px;color:#f1fbf4}
.pm-org-shelves{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.pm-org-shelf{min-height:75px;border-radius:12px;border:1px solid #34543f;background:#16261c;padding:14px;text-align:left;display:flex;flex-direction:column;gap:8px;justify-content:space-between;color:#cde4d4;cursor:pointer;font:inherit}
.pm-org-shelf span{font-size:12px;line-height:1.2;font-weight:750}
.pm-org-shelf strong{font-size:21px;color:#f0fff5;line-height:1;font-variant-numeric:tabular-nums}
.pm-org-shelf[aria-pressed=true]{background:#265339;border-color:#70d79e;box-shadow:inset 0 0 0 1px #66c88f}
.pm-org-shelf[aria-pressed=true] span{color:#dcfbe8}
.pm-org-shelf:hover{border-color:#66bc85}
.pm-org-filterbar{display:flex;align-items:stretch;gap:11px;margin:20px 0 11px}
.pm-org-search{display:flex;min-width:0;flex:1}
.pm-org-search input{width:100%;min-height:48px;background:#15261b;border:1px solid #3c614a;border-radius:11px;color:#f1fff4;padding:12px 14px;font:inherit;font-size:15px;outline:none}
.pm-org-search input::placeholder{color:#a6beae}
.pm-org-view{display:flex;align-items:center;gap:10px;color:#b8d2bf;font-size:12px;font-weight:700}
.pm-org-view select,.pm-org-bulk select,.pm-org-genre{background:#1b3223;border:1px solid #4b7054;border-radius:10px;color:#eefaf1;font:inherit;font-size:13px;min-height:44px;padding:9px 10px;max-width:100%}
.pm-org-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#132319;border:1px solid #365842;border-radius:13px;padding:11px;margin:12px 0 12px}
.pm-org-bulk #pmOrgSelect{background:transparent}
.pm-org-selection{font-size:12px;color:#aacdb7;margin-left:2px}
.pm-org-selection strong{font-size:15px;color:#7fe4aa}
.pm-org-bulk #pmOrgClear{background:transparent;color:#afcdb9}
.pm-org-bulk select{margin-left:auto;min-width:168px}
.pm-org-records{display:flex;flex-direction:column;background:#101c15;border:1px solid #2e4e38;border-radius:14px;overflow:visible}
.pm-org-track{display:grid;grid-template-columns:30px minmax(0,1fr) 143px 124px 60px;align-items:center;gap:10px;min-height:76px;padding:11px 13px;border-bottom:1px solid #294332}
.pm-org-track:last-child{border-bottom:0}
.pm-org-track:focus-within,.pm-org-track:hover{background:#203529}
.pm-org-check{display:flex;align-items:center;justify-content:center;min-height:42px}
.pm-org-check input{width:18px;height:18px;accent-color:#71d99f;cursor:pointer}
.pm-org-track-info{min-width:0;display:flex;flex-direction:column;gap:5px}
.pm-org-track-info strong{font-size:13px;color:#f3fff6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-org-track-info small{font-size:11px;color:#a4c0ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pm-org-track button{min-height:39px;padding:8px 10px;white-space:nowrap}
.pm-org-track .pm-org-play{background:#315942;color:#bcf2d1}
.pm-org-track .pm-org-genre{width:100%;min-width:0;font-size:12px}
.pm-org-more{display:block;width:100%;margin-top:12px;background:#1d3425}
.pm-org-more[hidden]{display:none!important}
.pm-org-group{border-bottom:1px solid #2f4a37}
.pm-org-group:last-child{border:0}
.pm-org-group-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 13px}
.pm-org-group-toggle{border:0;background:transparent;color:#e7fbec;font:inherit;font-size:14px;font-weight:770;min-height:42px;text-align:left;flex:1;cursor:pointer}
.pm-org-select-artist{border-radius:9px;font-size:11px;padding:8px 11px;white-space:nowrap}
.pm-org-group-body{padding-left:14px;background:#19291e}
.pm-org-empty{padding:32px 18px;color:#b1cdb8;text-align:center;font-size:13px;line-height:1.65}
.pm-org-empty button{display:block;margin:16px auto 0}
.pm-org-message{font-size:12px;color:#a6e5be;line-height:1.5;min-height:17px;overflow-wrap:anywhere;margin:12px 0}
.pm-org-message[data-error=yes]{color:#ffbdb4}
body.pm-unified-ready .pm-org-section select:focus-visible,
body.pm-unified-ready .pm-org-section button:focus-visible{outline:2px solid #9dffd0;outline-offset:3px}
@media(max-width:850px){
 .pm-org-shelves{grid-template-columns:repeat(3,minmax(0,1fr))}
 .pm-org-track{grid-template-columns:27px minmax(0,1fr) 136px 99px 55px;gap:7px}
 .pm-org-track button{font-size:11px;padding:7px}
}
@media(max-width:700px){
 body.pm-unified-ready #pmUniOrganizer{padding:4px 0 30px}
 .pm-org-heading{margin:6px 0 17px;gap:7px}
 .pm-org-heading h2{font-size:31px}
 .pm-org-heading p{font-size:12px}
 .pm-org-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:17px 0 11px}
 .pm-org-stat{padding:13px;min-height:76px}
 .pm-org-stat strong{font-size:27px}
 .pm-org-stat span{font-size:10px}
 .pm-org-process{padding:15px;margin-bottom:22px}
 .pm-org-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
 .pm-org-actions button{padding:10px 7px;font-size:11px}
 .pm-org-section{margin:19px 0}
 .pm-org-section h3{font-size:19px;margin-bottom:10px}
 .pm-org-shelves{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .pm-org-shelf{min-height:67px;padding:12px}
 .pm-org-shelf strong{font-size:19px}
 .pm-org-filterbar{flex-wrap:wrap;gap:9px}
 .pm-org-search{flex:1 1 100%}
 .pm-org-view{flex:1;justify-content:space-between}
 .pm-org-view select{min-width:143px}
 .pm-org-bulk{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px}
 .pm-org-bulk #pmOrgSelect{grid-column:1}
 .pm-org-selection{grid-column:2;text-align:right}
 .pm-org-bulk #pmOrgClear{grid-column:1}
 .pm-org-bulk select{grid-column:2;width:100%;min-width:0;margin:0}
 .pm-org-bulk #pmOrgApply{grid-column:1/-1}
 .pm-org-track{grid-template-columns:25px minmax(0,1fr) minmax(100px,118px);grid-template-rows:auto auto;gap:6px 8px;min-height:91px;padding:10px}
 .pm-org-check{grid-column:1;grid-row:1/3}
 .pm-org-track-info{grid-column:2;grid-row:1}
 .pm-org-track .pm-org-genre{grid-column:3;grid-row:1;font-size:11px;padding:7px}
 .pm-org-track .pm-org-edit{grid-column:2;grid-row:2;justify-self:start}
 .pm-org-track .pm-org-play{grid-column:3;grid-row:2;justify-self:stretch}
 .pm-org-group-head{padding:8px 10px}
 .pm-org-group-toggle{font-size:12px}
 .pm-org-select-artist{font-size:10px}
 .pm-org-group-body{padding-left:0}
}
@media(prefers-reduced-motion:reduce){#pmOrgFill{transition:none}}

/* Visible entry points to the organizer from Home and Library. */
body.pm-unified-ready .pm-genre-manage{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:990px}
body.pm-unified-ready .pm-genre-manage button{
 background:#213b2a;border:1px solid #4f835e;color:#a4f5c5;
 min-height:37px;border-radius:9px;font-size:11px;font-weight:800;
 padding:7px 12px;cursor:pointer;text-transform:none;letter-spacing:normal
}
body.pm-unified-ready .pm-genre-manage button:hover{background:#2a5237}
@media(max-width:700px){
 body.pm-unified-ready .pm-genre-manage{gap:9px;flex-wrap:wrap}
 body.pm-unified-ready .pm-genre-manage button{min-height:34px;font-size:10px;padding:6px 9px}
 body.pm-unified-ready .pm-u-nav{justify-content:space-between}
 body.pm-unified-ready .pm-u-nav button{padding:8px 1px;font-size:9px;gap:3px}
 body.pm-unified-ready .pm-u-nav svg{width:20px;height:20px}
}


/* 2026-10-28: Home houses Organizer + Stats, replacing two standalone tabs. */
body.pm-unified-ready .pm-home-modules{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:start;gap:12px;max-width:1030px;margin:16px 0 25px
}
body.pm-unified-ready .pm-home-module{
 min-width:0;background:linear-gradient(145deg,#182c20,#101f17);
 border:1px solid #355d44;border-radius:15px;overflow:clip;
 box-shadow:0 8px 30px #06110a4a
}
body.pm-unified-ready .pm-home-module[open]{
 grid-column:1/-1;border-color:#5aab7b;
 background:linear-gradient(155deg,#182c20,#0e1b14)
}
body.pm-unified-ready .pm-home-module>summary{
 cursor:pointer;list-style:none;display:flex;align-items:center;gap:13px;
 padding:17px;min-height:84px;user-select:none;-webkit-user-select:none;
 transition:background .18s ease
}
body.pm-unified-ready .pm-home-module>summary::-webkit-details-marker{display:none}
body.pm-unified-ready .pm-home-module>summary::marker{content:""}
body.pm-unified-ready .pm-home-module>summary:hover,
body.pm-unified-ready .pm-home-module[open]>summary{background:#254333}
body.pm-unified-ready .pm-home-module>summary:focus-visible{
 outline:2px solid #a4ffcc;outline-offset:-4px;border-radius:13px
}
body.pm-unified-ready .pm-home-module-icon{
 display:grid;place-items:center;flex:none;height:48px;width:48px;
 border-radius:12px;background:#294d37;color:#91f0ba;
 border:1px solid #407c57
}
body.pm-unified-ready .pm-home-module-icon svg{width:24px;height:24px}
body.pm-unified-ready .pm-home-module-copy{
 display:flex;flex-direction:column;gap:5px;min-width:0;flex:1
}
body.pm-unified-ready .pm-home-module-copy strong{
 font-size:17px;letter-spacing:-.025em;color:#f5fff7;line-height:1.2
}
body.pm-unified-ready .pm-home-module-copy small{
 font-size:11px;line-height:1.5;color:#accdb8
}
body.pm-unified-ready .pm-home-module-chevron{
 color:#8ddcb1;display:grid;place-items:center;flex:none;
 transition:transform .18s ease
}
body.pm-unified-ready .pm-home-module[open] .pm-home-module-chevron{transform:rotate(180deg)}
body.pm-unified-ready .pm-home-module-content{padding:20px 20px 10px}
body.pm-unified-ready #pmHomeOrganizerPanel .pm-org-heading{margin-top:0}
body.pm-unified-ready #pmHomeStatsPanel .insights{display:block!important}
body.pm-unified-ready #pmHomeStatsPanel .insights h2{color:#edfff5}
body.pm-unified-ready #pmHomeStatsPanel .insights,
body.pm-unified-ready #pmHomeStatsPanel .insights *{max-width:100%}
body.pm-unified-ready #pmUniOrganizer{scroll-margin-top:18px}
body.pm-unified-ready .pm-home-module{scroll-margin-top:18px}
@media(max-width:700px){
 body.pm-unified-ready .pm-home-modules{
   grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
   margin:12px 0 22px
 }
 body.pm-unified-ready .pm-home-module>summary{
   min-height:91px;align-items:flex-start;gap:7px;padding:12px 10px;
   flex-wrap:wrap;position:relative
 }
 body.pm-unified-ready .pm-home-module-icon{
   height:31px;width:31px;border-radius:9px
 }
 body.pm-unified-ready .pm-home-module-icon svg{width:17px;height:17px}
 body.pm-unified-ready .pm-home-module-copy{
   order:2;flex-basis:100%;gap:4px;padding-right:0
 }
 body.pm-unified-ready .pm-home-module-copy strong{font-size:13px}
 body.pm-unified-ready .pm-home-module-copy small{font-size:10px;line-height:1.35}
 body.pm-unified-ready .pm-home-module-chevron{
   margin-left:auto;height:31px;width:20px
 }
 body.pm-unified-ready .pm-home-module-content{padding:12px 10px 6px}
 body.pm-unified-ready #pmUniOrganizer{padding-bottom:4px}
 body.pm-unified-ready #pmHomeStatsPanel .insights{padding:0}
 body.pm-unified-ready .pm-u-nav button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
 body.pm-unified-ready .pm-home-module>summary,
 body.pm-unified-ready .pm-home-module-chevron{transition:none}
}
