:root{--ink:#232c26;--muted:#626d64;--paper:#f6f5f0;--surface:#fffefa;--line:#dddfd5;--green:#244c38;--lime:#d7e9a7;--soft:#e9eedf;--accent:#c8df90;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{opacity:.5;cursor:not-allowed}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #678841;outline-offset:4px}[hidden]{display:none!important}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-2px;font-size:46px;font-weight:500;margin-bottom:14px}h1>span{color:#769b4f}h2{font-weight:500;letter-spacing:-.7px;font-size:27px}h3{font-weight:500}p{line-height:1.6}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:2px;margin-bottom:16px}.brand{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:700;letter-spacing:-1.5px}.brand-dot{font-size:8px;color:#799948;margin-left:-7px;align-self:flex-end;margin-bottom:8px}.brand-mark{display:grid;place-items:center;position:relative;font-size:25px;background:var(--green);color:var(--lime);width:36px;height:36px;border-radius:11px;font-family:Georgia,serif;font-style:italic}.brand-mark>span{position:absolute;font-family:Arial;font-size:13px;right:2px;top:0}.primary{display:flex;align-items:center;justify-content:space-between;gap:30px;border:1px solid var(--green);border-radius:7px;background:var(--green);color:white;padding:15px 22px;font-size:13px;font-weight:600}.primary:hover{background:#346648}.primary>span{font-size:19px}.wide{width:100%}.outline{display:flex;align-items:center;justify-content:center;gap:10px;background:transparent;border:1px solid var(--line);border-radius:7px;padding:11px 16px;font-size:12px}.outline:hover{background:var(--soft)}.error{color:#a23826;font-size:13px;line-height:1.5;min-height:0}.error:empty{display:none}label{display:block;font-size:12px;font-weight:600;margin:20px 0}input,select,textarea{display:block;width:100%;margin-top:9px;background:var(--surface);border:1px solid #cbd1c6;border-radius:6px;padding:12px 13px;color:var(--ink);font-weight:400;font-size:14px}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#7f867d}.auth-layout{display:grid;grid-template-columns:1.05fr 1fr;min-height:100vh}.auth-story{padding:40px 55px;position:relative;overflow:hidden;background:#e2e8d4;display:flex;flex-direction:column;min-height:830px}.story-copy{position:relative;margin-top:80px;flex:1}.story-copy h1{font-size:66px;line-height:1.02;letter-spacing:-3px}.story-copy h1 em{font-family:Georgia,serif;color:#44613d;font-weight:400}.story-copy p{font-size:14px;color:#54604d}.story-footer{font-size:10px;letter-spacing:.6px;z-index:1}.record-art{position:absolute;width:300px;height:300px;border-radius:50%;bottom:-40px;right:-85px;background:repeating-radial-gradient(circle,#26322a 0px,#26322a 2px,#354138 3px,#26322a 4px);box-shadow:10px 20px 45px #26322a33;display:grid;place-items:center;transform:rotate(-20deg)}.record-label{width:105px;height:105px;display:grid;place-items:center;border-radius:50%;background:#cbdb9f;font-family:Georgia;font-style:italic;font-size:65px;color:#314c37}.record-caption{position:absolute;color:#e0e4cb;font-size:8px;letter-spacing:3px;bottom:44px}.auth-panel{display:flex;align-items:center;justify-content:center;padding:50px 40px}.auth-card{width:360px}.auth-card h2{font-size:30px}.auth-card>.muted{font-size:13px}.segmented{display:flex;border-radius:7px;border:1px solid var(--line);padding:4px;margin:30px 0 27px;background:#edeFe6}.segmented button{width:50%;border:0;background:transparent;border-radius:4px;padding:11px;font-size:12px}.segmented .selected{background:var(--surface);box-shadow:0 1px 4px #0001}.auth-note{font-size:11px;color:var(--muted);text-align:center;margin:25px 0 0}.app-shell{display:grid;grid-template-columns:218px 1fr;min-height:100vh}.sidebar{padding:20px 16px 16px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;max-height:100vh;overflow-y:auto;overflow-x:hidden;background:#f0f1e9;scrollbar-width:thin}.sidebar .brand{margin:0 0 24px 6px}.nav-label{font-size:9px;letter-spacing:1.8px;color:#75806e;margin:0 10px 10px}.nav-item{width:100%;display:flex;gap:10px;align-items:center;border:0;text-align:left;padding:10px 12px;background:transparent;border-radius:6px;font-size:11px;margin-bottom:4px;color:#69725f}.nav-item>span{font-size:17px;width:18px}.nav-item:hover{background:#e5e9dd}.nav-item.active{background:#dfe7d1;color:#294d35;font-weight:600}.sidebar-note{margin-top:auto;border:1px solid #d5dccb;border-radius:8px;padding:10px 12px;background:linear-gradient(145deg,#e8eddf,#e1e8d6);flex-shrink:0}.sidebar-note h3{font-size:11px;margin:6px 0 3px}.sidebar-note p{font-size:10px;color:var(--muted);margin-bottom:8px}.tiny-record{font-size:16px;display:grid;place-items:center;width:26px;height:26px;background:#d2ddbe;border-radius:50%}.demo-badge{font-size:8px;letter-spacing:.8px;border:1px solid #bfcbb1;padding:3px 6px;border-radius:4px}.account{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:14px 4px 4px;margin-top:12px;flex-shrink:0}.avatar{width:32px;height:32px;border-radius:50%;background:#d8dfc8;display:grid;place-items:center;font-size:12px}.account strong{font-size:12px;display:block;max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account button{display:inline-block;border:0;padding:3px 0 0;background:none;font-size:11px;font-weight:600;color:#7a3224;cursor:pointer}.account button:hover{text-decoration:underline;color:#a23826}main{min-width:0;padding:0 48px}.topbar{height:84px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}#breadcrumb>span{margin:0 15px;color:#a0a795}.view{max-width:1160px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;padding:39px 0 23px}.page-heading .eyebrow{color:#6a7c51;font-size:9px;margin-bottom:10px}.page-heading h1{font-size:39px;margin-bottom:8px}.page-heading p{color:var(--muted);font-size:12px;margin-bottom:0}.edition{font-size:8px;letter-spacing:1.3px;color:#7b856e}.edition>span{margin:0 10px}.hero{height:310px;background:#e0e7d2;border-radius:12px;overflow:hidden;position:relative;display:grid;grid-template-columns:1fr 1fr}.hero-text{padding:30px 34px;position:relative;z-index:2}.hero-tag{font-size:8px;font-weight:600;letter-spacing:1.5px;display:flex;align-items:center;gap:7px}.hero-tag i{width:5px;height:5px;background:#557a40;border-radius:50%}.hero h2{font-size:44px;line-height:.99;letter-spacing:-1.8px;margin:20px 0 14px}.hero h2 em{font-family:Georgia,serif;font-weight:400;color:#506d46}.hero p{font-size:10px;line-height:1.6;color:#65725b;margin-bottom:15px}.hero-link{font-size:10px;font-weight:600;display:inline-flex;gap:29px;align-items:center;border-bottom:1px solid #789066;padding-bottom:5px}.hero-link>span{font-size:16px}.hero-art{position:relative;background:radial-gradient(ellipse at 60% 60%,#b9c69d66,transparent 70%)}.vinyl{position:absolute;width:287px;height:287px;right:9%;top:15px;border-radius:50%;background:repeating-radial-gradient(circle,#28352c 0,#28352c 2px,#3a473b 3px,#27332b 4px);box-shadow:12px 20px 25px #46553c33;display:grid;place-items:center;transform:rotate(-18deg)}.vinyl:after{content:'';position:absolute;inset:0;border-radius:50%;background:conic-gradient(transparent,#ffffff0f,transparent 35%,#ffffff0b,transparent 70%)}.vinyl-label{height:102px;width:102px;border-radius:50%;background:#c5d991;display:flex;align-items:center;flex-direction:column;padding-top:20px}.vinyl-label>span{font-family:Georgia,serif;font-style:italic;font-size:24px;font-weight:700;letter-spacing:-1px}.vinyl-label b{font-size:7px;letter-spacing:2px;font-weight:400;margin-top:5px}.vinyl-label i{width:9px;height:9px;border-radius:50%;background:#e2e9d1;margin-top:9px;border:2px solid #526847}.orbit{position:absolute;width:410px;height:190px;border:1px solid #91a67666;border-radius:50%;top:70px;left:-14px;transform:rotate(-36deg)}.orbit-two{transform:rotate(43deg);width:370px}.art-caption{position:absolute;bottom:19px;right:30px;font-size:7px;letter-spacing:2px;color:#647d50}.spark{position:absolute;right:28px;top:20px;font-size:42px;color:#758f55}.context-card{margin-top:27px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:23px 26px}.context-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.context-heading h2{font-size:20px;margin:0}.context-heading>span{font-size:10px;color:var(--muted)}fieldset{border:0;padding:0;margin:0 0 22px}legend{font-size:11px;font-weight:600;margin-bottom:12px}legend>span{color:#8c9b77;font-size:9px;margin-right:9px}.choice-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.choice{display:flex;justify-content:center;align-items:center;gap:8px;background:transparent;border:1px solid var(--line);padding:12px 5px;border-radius:6px;font-size:10px;transition:background .12s}.choice .symbol{font-size:17px;line-height:1;color:#677158}.choice:hover{background:#f1f3e9}.choice[aria-pressed=true]{background:#e7efd9;border-color:#89a462;color:#35532a}.choice[aria-pressed=true] .symbol{color:#44672f}.activities .choice{background:#f9f9f4;padding:11px 4px}.activities .choice[aria-pressed=true]{background:#e7efd9}.context-footer{border-top:1px solid #eceee4;padding-top:18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.context-footer p{font-size:10px;margin:0;color:var(--muted)}.context-footer .primary{padding:11px 17px;font-size:11px;min-width:170px}.results-section{margin-top:35px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-heading .eyebrow{font-size:8px;letter-spacing:1.5px;color:#829168;margin-bottom:8px}.section-heading h2{font-size:24px;margin:0}.section-heading .outline{font-size:10px}.notices{font-size:11px;color:#5c7045;line-height:1.6}.notices p{background:#eaf0df;padding:10px 13px;border-radius:6px;margin:0 0 12px}.song-list{border-top:1px solid var(--line)}.song-row{display:grid;grid-template-columns:22px 43px minmax(120px,1.8fr) minmax(90px,1fr) 74px 37px 67px;gap:13px;align-items:center;padding:14px 5px;border-bottom:1px solid var(--line)}.song-number{font-size:10px;color:#86917d}.cover{width:43px;height:43px;border-radius:5px;overflow:hidden;position:relative;display:grid;place-items:center;background:#c6d2b7}.cover:before{content:'';width:45px;height:45px;border:9px solid #fff6;border-radius:50%;position:absolute;left:13px;top:9px}.cover:after{content:'';height:1px;width:50px;transform:rotate(-45deg);background:#ffffff88}.cover.coral{background:#d8a48a}.cover.sand{background:#d7c192}.cover.violet{background:#b6adc8}.cover.blue{background:#a6bdc6}.cover.rose{background:#cbb6a1}.song-info strong{display:block;font-size:12px;font-weight:600;margin-bottom:5px}.song-info small{display:block;font-size:10px;color:var(--muted)}.song-tags{font-size:9px;color:#738066;line-height:1.6}.score{font-size:10px;background:#e8eedc;border-radius:4px;padding:5px 6px;color:#4d6738;text-align:center}.rate-button{font-size:10px;border:0;background:transparent;padding:7px 0;color:#617944;text-align:right}.empty-state{padding:35px;text-align:center;background:#eeefe6;border:1px dashed #d0d7c3;border-radius:9px}.empty-state>span{font-size:29px;color:#7d945e}.empty-state h3{font-size:17px;margin:13px 0 6px}.empty-state p{font-size:11px;color:var(--muted);margin:0}.catalog-note{font-size:9px;color:#7c8574;margin-top:16px;line-height:1.7}.page-footer{margin-top:45px;padding:21px 0 28px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#7b846f;gap:15px}.page-footer strong{font-size:16px;color:#53644a;letter-spacing:-1px}.page-footer strong>span{color:#8da760;font-size:6px;margin-left:2px}.page-footer>span:last-child{font-size:7px;letter-spacing:1px}.secondary-view{padding-top:45px;min-height:75vh}.secondary-view h1{font-size:39px}.secondary-view>.muted{font-size:13px}.mix-card,.history-row,.rating-history{background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:22px;margin:17px 0}.mix-header{display:flex;justify-content:space-between;align-items:center;gap:20px}.mix-header h3{font-size:20px;margin-bottom:6px}.mix-header p,.history-row p,.rating-history p{font-size:11px;color:var(--muted)}.mix-card .song-row{grid-template-columns:22px 43px minmax(120px,1fr) 90px 37px}.history-row{display:flex;justify-content:space-between;align-items:center}.history-row h3{font-size:16px;margin-bottom:6px}.history-row p{margin:0}.rating-history h3{font-size:16px}.mini-cover{height:39px;width:39px;background:#dce6ca;display:grid;place-items:center;border-radius:5px}dialog{border:1px solid var(--line);border-radius:14px;padding:30px;width:min(500px,calc(100% - 32px));max-height:88vh;background:var(--surface);color:var(--ink)}dialog::backdrop{background:#15201888;backdrop-filter:blur(4px)}.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.dialog-heading h2{margin-bottom:10px;font-size:25px}.dialog-heading .eyebrow{font-size:9px}.close-dialog{background:transparent;border:0;font-size:24px;padding:0 0 5px 10px}dialog .muted{font-size:12px}#preferences-fields fieldset,#tags-fields fieldset{margin:24px 0}#preferences-fields legend,#tags-fields legend{font-size:12px}#preferences-fields .checkboxes,#tags-fields .checkboxes{display:flex;flex-wrap:wrap;gap:8px}#preferences-fields label,#tags-fields label{display:flex;gap:7px;align-items:center;font-size:11px;font-weight:400;margin:0;padding:8px;border:1px solid var(--line);border-radius:5px}#preferences-fields input,#tags-fields input{width:14px;height:14px;margin:0;accent-color:var(--green)}.toast{position:fixed;z-index:30;bottom:95px;left:50%;transform:translateX(-50%);padding:13px 22px;color:#fff;background:#284c37;box-shadow:0 5px 20px #0002;border-radius:8px;font-size:12px;max-width:90vw}.loading{padding:38px;text-align:center;color:var(--muted);font-size:13px}.retry{margin:14px auto 0}
@media(min-width:1500px){main{padding:0 75px}.hero{height:340px}.hero-text{padding:38px 44px}.vinyl{width:310px;height:310px}.hero h2{font-size:47px}}
@media(max-width:1150px){.app-shell{grid-template-columns:185px 1fr}.sidebar{padding:18px 12px}main{padding:0 28px}.edition{display:none}.hero-art .vinyl{right:-5px;width:260px;height:260px;top:27px}.choice{gap:4px;font-size:9px}.song-row{gap:9px;grid-template-columns:18px 37px minmax(100px,1.5fr) 75px 64px 30px 50px}.cover{width:37px;height:37px}.song-tags{font-size:8px}.auth-story{padding:35px}.story-copy h1{font-size:55px}}
@media(max-width:850px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:18px 24px;display:flex;flex-direction:row;align-items:center;gap:22px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{margin:0;font-size:22px}.sidebar nav{display:flex;gap:5px;flex:1;justify-content:flex-end}.nav-item{width:auto;padding:9px;font-size:10px;margin:0;gap:5px}.nav-item>span{font-size:16px;width:14px}.nav-label,.sidebar-note,.account{display:none}main{padding:0 24px}.topbar{height:62px}.hero-art .vinyl{right:20px}.page-heading{padding-top:29px}.auth-layout{grid-template-columns:1fr 1fr}.auth-story{min-height:760px;padding:25px}.story-copy h1{font-size:45px}.story-copy{margin-top:90px}.auth-panel{padding:35px 25px}.auth-card h2{font-size:25px}.record-art{right:-170px}.story-footer{font-size:8px}}
@media(max-width:600px){h1{font-size:34px}.auth-layout{display:block}.auth-story{min-height:0;padding:24px}.story-copy{margin-top:35px}.story-copy h1{font-size:44px}.story-copy p{font-size:12px;margin-bottom:5px}.record-art{width:170px;height:170px;right:-45px;bottom:3px;opacity:.9}.record-label{width:62px;height:62px;font-size:36px}.record-caption{display:none}.story-footer{display:none}.auth-panel{padding:35px 24px}.auth-card{width:100%;max-width:390px}.story-copy .eyebrow{font-size:8px}.sidebar{padding:17px 16px;flex-wrap:wrap;gap:14px}.sidebar nav{width:100%;flex-basis:100%;justify-content:space-between}.nav-item{font-size:10px;padding:9px 5px}.brand-mark{height:31px;width:31px}.sidebar .brand{font-size:23px}.topbar{height:62px;font-size:9px}.topbar .outline{padding:9px;font-size:10px}main{padding:0 17px}.page-heading h1{font-size:32px;letter-spacing:-1.5px}.page-heading p{font-size:11px}.hero{height:286px;grid-template-columns:1fr .5fr}.hero-text{padding:25px 22px}.hero h2{font-size:39px;margin-top:23px}.hero-tag{font-size:6px;letter-spacing:1px;white-space:nowrap}.hero-art .vinyl{width:183px;height:183px;top:54px;right:-72px}.vinyl-label{width:68px;height:68px;padding-top:10px}.vinyl-label>span{font-size:19px}.vinyl-label b{font-size:5px}.vinyl-label i{height:7px;width:7px;margin-top:5px}.hero-art .orbit{width:230px;height:130px;top:100px;left:-45px}.spark{font-size:28px;right:7px;top:22px}.art-caption{display:none}.hero p{font-size:9px}.hero-link{font-size:9px}.context-card{padding:20px 17px;margin-top:19px}.context-heading{margin-bottom:20px}.context-heading h2{font-size:20px}.context-heading>span{font-size:8px;max-width:110px;text-align:right;line-height:1.5}.choice-grid{grid-template-columns:repeat(3,1fr);gap:7px}.choice{font-size:10px;padding:11px 4px;gap:7px}.choice .symbol{font-size:17px}.context-footer{align-items:stretch;flex-direction:column;gap:12px}.context-footer p{font-size:9px}.context-footer .primary{width:100%}.results-section{margin-top:28px}.section-heading h2{font-size:21px}.section-heading .outline{font-size:9px;padding:9px}.section-heading .eyebrow{font-size:7px}.song-row{grid-template-columns:16px 35px minmax(80px,1fr) 29px 42px;gap:8px}.song-tags,.song-row>.score{display:none}.cover{height:35px;width:35px}.song-info strong{font-size:11px;line-height:1.3}.song-info small{font-size:9px;line-height:1.3}.rate-button{font-size:9px}.catalog-note{font-size:8px}.page-footer{margin-top:30px}.page-footer>span:last-child{display:none}.toast{bottom:132px}.mix-card{padding:15px}.mix-card .song-row{grid-template-columns:15px 35px minmax(80px,1fr) 29px}.mix-card .song-tags{display:none}.mix-header h3{font-size:17px}.secondary-view h1{font-size:33px}.history-row{gap:15px;padding:17px}.history-row h3{font-size:13px}.history-row .outline{font-size:10px;padding:9px}.empty-state{padding:27px 15px}dialog{padding:23px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:850px){.sidebar .account{display:flex;margin:0 0 0 auto;padding:0;border:0;order:2}.sidebar nav{order:3}.sidebar .account .avatar{display:none}.sidebar .account strong{max-width:90px}.sidebar .account button{font-size:10px}.sidebar{flex-wrap:wrap}}
/* Recommendation-only catalog and metadata controls. */
.search-form{display:flex;gap:16px;align-items:end;margin:24px 0}.search-form label{flex:1;margin:0}.search-form button{min-height:46px}.catalog-track{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 4px;border-bottom:1px solid var(--line,#deded3)}.catalog-track p{margin:5px 0}.catalog-track small{color:#646b61;line-height:1.6}.catalog-track button{flex-shrink:0}.song-details{margin-top:6px;font-size:11px;color:#646b61}.song-details summary{cursor:pointer}.song-details p{white-space:normal;line-height:1.5}.source-link{color:#325343;text-align:center;text-decoration:none;font-size:22px}.source-link:focus-visible{outline:2px solid #325343}.song-info{overflow-wrap:anywhere}.song-row{align-items:start}.score{white-space:nowrap}#catalog-more{margin-top:20px}#tags-fields fieldset{margin:22px 0}
@media(max-width:600px){.search-form{flex-direction:column;align-items:stretch}.catalog-track{align-items:start;gap:10px}.catalog-track button{padding:9px}.catalog-track>div{min-width:0;overflow-wrap:anywhere}}

@media(max-width:600px){.sidebar nav{flex-wrap:wrap}}

/* ==========================================================================
   Redesigned Music Preferences Modal (Contemporary, Clean, Premium)
   ========================================================================== */
#preferences-dialog.pref-dialog {
  width: min(960px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 48px));
  max-width: 960px;
  max-height: 85vh;
  padding: 0;
  border: 1px solid #e5e3db;
  border-radius: 12px;
  background: #ffffff;
  color: #1a1f1b;
  box-shadow: 0 24px 60px -12px rgba(18, 28, 20, 0.2), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
#preferences-dialog.pref-dialog::backdrop {
  background: rgba(18, 24, 20, 0.45);
  backdrop-filter: blur(4px);
}
#preferences-fields {
  width: 100%;
  height: 100%;
  display: flex;
}
.pref-modal-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Geist", "SF Pro Text", "Segoe UI", sans-serif;
  color: #1a1f1b;
  overflow: hidden;
}

/* Header */
.pref-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.35rem 1.75rem 1.15rem;
  border-bottom: 1px solid #ebe8e0;
  background: #ffffff;
  flex-shrink: 0;
  gap: 20px;
}
.pref-header-left {
  flex: 1;
}
.pref-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #647363;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pref-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: #151a16;
  margin: 0 0 4px;
}
.pref-subtitle {
  font-size: 12.5px;
  color: #667265;
  margin: 0;
  line-height: 1.45;
}
.pref-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.pref-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  background: #edf4ee;
  color: #234832;
  border: 1px solid #d5e5d7;
}
.pref-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #337048;
}
.pref-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid #ebe8e0;
  background: transparent;
  color: #5c685b;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}
.pref-close-btn:hover {
  background: #f2f1ec;
  color: #151a16;
  border-color: #dedbd2;
}

/* Body: Sidebar + Main */
.pref-body {
  display: flex;
  flex: 1;
  min-height: 0;
  background: #ffffff;
}

/* Sidebar Navigation */
.pref-sidebar {
  width: 210px;
  flex-shrink: 0;
  border-right: 1px solid #ebe8e0;
  background: #faf9f6;
  padding: 1.25rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
}
.pref-nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #515d50;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 10px;
}
.pref-nav-item:hover {
  background: #f0eee7;
  color: #151a16;
}
.pref-nav-item.active {
  background: #edf3ed;
  border-color: #d6e4d7;
  color: #1b3d27;
  font-weight: 600;
}
.pref-nav-icon {
  display: flex;
  align-items: center;
  color: #5a6b5a;
}
.pref-nav-item.active .pref-nav-icon {
  color: #244b36;
}
.pref-nav-label {
  flex: 1;
}
.pref-nav-counts {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.pref-nav-total-pill {
  color: #7b887a;
  font-weight: 500;
}
.pref-nav-selected-pill {
  background: #244b36;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

/* Main Content Area */
.pref-main-content {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 1.25rem 1.75rem 2.25rem;
  scrollbar-width: thin;
}

/* Filter Bar: Search + Show Selected */
.pref-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.5rem;
}
.pref-search-box {
  position: relative;
  flex: 1;
  min-width: 0;
}
.pref-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7f8a7e;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
}
.pref-search-input {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: 38px !important;
  line-height: normal !important;
  padding: 0 36px 0 38px !important;
  font-size: 13px !important;
  font-family: inherit !important;
  border-radius: 7px !important;
  border: 1px solid #dcdad0 !important;
  background: #ffffff !important;
  color: #161c17 !important;
  -webkit-text-fill-color: #161c17 !important;
  caret-color: #244b36 !important;
  margin: 0 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pref-search-input:focus {
  border-color: #3b6b4c !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(59, 107, 76, 0.12) !important;
}
.pref-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: #eceae3;
  color: #667265;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.15s ease, color 0.15s ease;
}
.pref-search-clear:hover {
  background: #dedad0;
  color: #161c17;
}
.pref-filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #4c594b;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid #e4e1d7;
  border-radius: 7px;
  background: #faf9f6;
  margin: 0;
  transition: background 0.15s ease;
}
.pref-filter-checkbox-label:hover {
  background: #f2efe7;
}
.pref-filter-checkbox-label input {
  accent-color: #244b36;
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
}
.pref-filter-selected-badge {
  font-size: 10px;
  font-weight: 600;
  background: #244b36;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

/* Sections */
.pref-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.pref-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #637262;
  text-transform: uppercase;
  margin: 0;
}
.pref-section-count {
  font-size: 11.5px;
  color: #7f8a7e;
  font-weight: 500;
}

/* Popular For You Cards */
.pref-popular-section {
  margin-bottom: 2rem;
}
.pref-popular-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.pref-popular-card {
  position: relative;
  height: 98px;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid #dcd9d0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 9px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.pref-popular-card:hover {
  transform: translateY(-2px);
  border-color: #7b9e83;
  box-shadow: 0 6px 14px -4px rgba(15, 23, 18, 0.14);
}
.pref-popular-card.selected {
  border-color: #244b36;
  box-shadow: 0 0 0 2px #244b36;
}
.pref-popular-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,18,14,0.15) 0%, rgba(12,18,14,0.78) 100%);
  pointer-events: none;
}
.pref-popular-top-action {
  position: relative;
  z-index: 2;
  align-self: flex-end;
}
.pref-popular-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}
.pref-popular-btn.selected {
  background: #244b36;
  border-color: #244b36;
  color: #ffffff;
}
.pref-popular-btn:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.6);
}
.pref-popular-btn.selected:hover {
  background: #1b3828;
}
.pref-popular-name {
  position: relative;
  z-index: 2;
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* All Items 3-Column Responsive Grid */
.pref-all-section {
  margin-bottom: 0.5rem;
}
.pref-all-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pref-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e5e2d8;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 10px;
  user-select: none;
}
.pref-item-card:hover {
  background: #f7f6f1;
  border-color: #b5c4b7;
  transform: translateY(-1px);
}
.pref-item-card.selected {
  background: #f2f7f3;
  border-color: #6d9678;
  box-shadow: 0 1px 3px rgba(36, 75, 54, 0.08);
}
.pref-item-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ece9e1;
  color: #516050;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.pref-item-thumb.selected {
  background: #d8e8dc;
  color: #1b3d27;
}
.pref-item-name {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  color: #212822;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pref-item-card.selected .pref-item-name {
  font-weight: 600;
  color: #163821;
}
.pref-item-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #d4d0c5;
  background: #ffffff;
  color: #516050;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.15s ease;
}
.pref-item-card:hover .pref-item-action {
  border-color: #8fa693;
  color: #1b3d27;
}
.pref-item-action.selected {
  background: #244b36;
  border-color: #244b36;
  color: #ffffff;
}
.pref-item-action.selected:hover {
  background: #1a3827;
}
.pref-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #7f8a7e;
  font-size: 13px;
  border: 1px dashed #e2ded5;
  border-radius: 8px;
  background: #faf9f6;
}

/* Fixed Clean Footer */
.pref-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.75rem;
  border-top: 1px solid #ebe8e0;
  background: #faf9f6;
  flex-shrink: 0;
}
.pref-footer-reset {
  background: transparent;
  border: 0;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #7f8a7e;
  cursor: pointer;
  transition: color 0.15s ease;
}
.pref-footer-reset:hover:not(:disabled) {
  color: #8c2f1f;
  text-decoration: underline;
}
.pref-footer-reset:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pref-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pref-footer-cancel {
  background: #ffffff;
  border: 1px solid #d6d3c9;
  color: #3b453a;
  padding: 9px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pref-footer-cancel:hover {
  background: #f2f0e8;
  border-color: #b8b4a7;
}
.pref-footer-save {
  background: #244b36;
  border: 1px solid #244b36;
  color: #ffffff;
  padding: 9px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pref-footer-save:hover:not(:disabled) {
  background: #1b3828;
  border-color: #1b3828;
}
.pref-footer-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Responsiveness */
@media (max-width: 880px) {
  .pref-popular-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pref-all-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pref-sidebar {
    width: 180px;
  }
}
@media (max-width: 640px) {
  .pref-body {
    flex-direction: column;
  }
  .pref-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #ebe8e0;
    padding: 8px 12px;
  }
  .pref-popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pref-all-grid {
    grid-template-columns: 1fr;
  }
  .pref-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

