/**
 * Collections tab — styles scoped under #collectionsPanel.
 *
 * This tab was authored as a standalone page (own :root vars, own .rh-stat /
 * .rh-table / .section / .hl class names) that happens to reuse several class
 * names already defined globally in reviewhub-v2.css for the other tabs.
 * Every selector below is prefixed with #collectionsPanel so those rules only
 * apply inside this tab and never touch Dashboard/Products/Analytics/Adverse
 * Events/Post-Launch Scorecards. Custom properties are declared on
 * #collectionsPanel rather than :root for the same reason.
 */
#collectionsPanel{
  --black:#1a1a1a; --white:#ffffff; --cream:#faf6f1; --warm-bg:#f5f0eb;
  --peach:#f8b68f; --peach-light:#fde8d8; --peach-dark:#e8956a;
  --rose:#c77d8a; --charcoal:#303030; --mid-gray:#707070; --light-gray:#b0b0b0;
  --border:#e5ddd5; --border-light:#efe9e2;
  --green:#2d8a6e; --green-bg:#e8f5ef; --red:#c44040; --red-bg:#fceaea;
  --gold:#c49a3c; --gold-bg:#faf3e0; --hl:#ffe27a;
  --shadow-sm:0 1px 3px rgba(26,26,26,.06); --shadow:0 4px 20px rgba(26,26,26,.06);
  --shadow-lg:0 8px 40px rgba(26,26,26,.08);
  --radius:16px; --radius-sm:10px; --radius-xs:6px;
  --transition:all .25s cubic-bezier(.4,0,.2,1);
  font-family:Figtree,sans-serif;
  color:var(--charcoal);
  background:var(--warm-bg);
}
#collectionsPanel *{box-sizing:border-box;}

#collectionsPanel .layout{display:flex;max-width:1320px;margin:0 auto;min-height:calc(100vh - 64px);}

#collectionsPanel .sidebar{width:280px;flex:0 0 280px;background:var(--white);border-right:1px solid var(--border);padding:20px 0;}
#collectionsPanel .season-head{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:var(--peach-dark);font-weight:700;padding:16px 20px 8px;}
#collectionsPanel .season-head:first-child{padding-top:4px;}
#collectionsPanel .prod-item{display:block;width:100%;text-align:left;background:none;border:none;cursor:pointer;padding:12px 20px;border-left:3px solid transparent;transition:var(--transition);}
#collectionsPanel .prod-item:hover{background:var(--cream);}
#collectionsPanel .prod-item.active{background:var(--peach-light);border-left-color:var(--peach-dark);}
#collectionsPanel .prod-name{font-family:"PT Serif",serif;font-weight:700;font-size:14px;color:var(--black);line-height:1.3;}
#collectionsPanel .prod-date{font-size:10.5px;color:var(--peach-dark);font-weight:600;margin-top:3px;}
#collectionsPanel .prod-sub{font-size:11px;color:var(--mid-gray);margin-top:4px;}
#collectionsPanel .lic-badge{display:inline-block;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:var(--gold);background:var(--gold-bg);padding:1px 6px;border-radius:20px;margin-top:4px;}

#collectionsPanel .main{flex:1;padding:32px 40px 60px;min-width:0;}
#collectionsPanel .page-head{margin-bottom:20px;}
#collectionsPanel .page-head h1{font-family:"PT Serif",serif;font-size:26px;font-weight:700;color:var(--black);letter-spacing:-.3px;}
#collectionsPanel .page-head .launch-line{font-size:13px;color:var(--mid-gray);margin-top:6px;}
#collectionsPanel .back-link{display:inline-block;font-size:12.5px;font-weight:600;color:var(--peach-dark);cursor:pointer;margin-bottom:14px;background:none;border:none;padding:0;}
#collectionsPanel .back-link:hover{text-decoration:underline;}

#collectionsPanel .chan-pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;padding:3px 10px;border-radius:20px;background:var(--cream);border:1px solid var(--border-light);margin:2px 4px 2px 0;}
#collectionsPanel .chan-pill.live{color:var(--green);}
#collectionsPanel .chan-pill.pending{color:var(--light-gray);}
#collectionsPanel .chan-pill .dot{width:6px;height:6px;border-radius:50%;background:currentColor;display:inline-block;}

#collectionsPanel .section{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow-sm);border:1px solid var(--border-light);padding:24px 26px;margin-bottom:20px;}
#collectionsPanel .section h2{font-family:"PT Serif",serif;font-size:19px;font-weight:700;color:var(--black);margin-bottom:14px;letter-spacing:-.2px;}
#collectionsPanel .section-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
#collectionsPanel .section-head-row h2{margin-bottom:0;}
#collectionsPanel .export-btn{font-family:Figtree,sans-serif;font-size:12.5px;font-weight:600;padding:7px 14px;border-radius:var(--radius-xs);border:1px solid var(--border);background:var(--white);color:var(--charcoal);cursor:pointer;white-space:nowrap;transition:var(--transition);}
#collectionsPanel .export-btn:hover{border-color:var(--peach-dark);background:var(--peach-light);}

#collectionsPanel .rh-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-bottom:18px;}
#collectionsPanel .rh-stat{background:var(--cream);border-radius:var(--radius-sm);padding:16px 18px;border:1px solid var(--border-light);}
#collectionsPanel .rh-stat-label{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.7px;color:var(--light-gray);margin-bottom:6px;}
#collectionsPanel .rh-stat-value{font-family:"PT Serif",serif;font-size:26px;font-weight:700;color:var(--black);line-height:1;}
#collectionsPanel .rh-stat-value.green{color:var(--green);}
#collectionsPanel .rh-stat-sub{font-size:11.5px;color:var(--mid-gray);margin-top:5px;}

#collectionsPanel .chan-table{width:100%;border-collapse:collapse;font-size:13px;margin-bottom:16px;}
#collectionsPanel .chan-table th{text-align:left;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--light-gray);padding:8px 10px;border-bottom:2px solid var(--border);}
#collectionsPanel .chan-table td{padding:9px 10px;border-bottom:1px solid var(--border-light);}
#collectionsPanel .chan-table td.num{text-align:right;font-variant-numeric:tabular-nums;}
#collectionsPanel .chan-table tbody tr{cursor:default;}
#collectionsPanel .chan-table tbody tr.clickable{cursor:pointer;transition:var(--transition);}
#collectionsPanel .chan-table tbody tr.clickable:hover td{background:var(--peach-light);}
#collectionsPanel .chan-name{font-weight:700;}
#collectionsPanel .chan-bar-wrap{display:inline-block;width:80px;height:7px;background:var(--border-light);border-radius:4px;overflow:hidden;vertical-align:middle;margin-right:8px;}
#collectionsPanel .chan-bar{height:100%;background:var(--peach);}
#collectionsPanel .chan-status{font-size:10.5px;font-weight:700;text-transform:uppercase;padding:2px 8px;border-radius:20px;}
#collectionsPanel .chan-status.live{background:var(--green-bg);color:var(--green);}
#collectionsPanel .dq-flag{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;color:var(--gold);margin-top:3px;}

#collectionsPanel .rating-mix{display:flex;flex-direction:column;gap:5px;margin-top:4px;}
#collectionsPanel .rmix-row{display:flex;align-items:center;gap:8px;font-size:12.5px;}
#collectionsPanel .rmix-row .stars{width:44px;color:var(--mid-gray);font-weight:600;}
#collectionsPanel .rmix-bar{flex:1;height:8px;background:var(--border-light);border-radius:4px;overflow:hidden;}
#collectionsPanel .rmix-fill{height:100%;background:var(--peach);}
#collectionsPanel .rmix-row .pct{width:96px;text-align:right;color:var(--charcoal);font-weight:600;}

#collectionsPanel .hl{background:var(--hl);padding:1px 5px;border-radius:3px;font-weight:700;}

#collectionsPanel ul.theme-list{list-style:none;display:flex;flex-direction:column;gap:14px;}
#collectionsPanel ul.theme-list li{padding-bottom:12px;border-bottom:1px solid var(--border-light);}
#collectionsPanel ul.theme-list li:last-child{border-bottom:none;padding-bottom:0;}
#collectionsPanel .theme-head{font-size:14.5px;margin-bottom:4px;}
#collectionsPanel .theme-quote{font-size:12.5px;color:var(--mid-gray);font-style:italic;}
#collectionsPanel .empty-note{font-size:13px;color:var(--mid-gray);background:var(--cream);border-radius:var(--radius-sm);padding:14px 16px;border:1px solid var(--border-light);}

#collectionsPanel .reco-box{font-size:14px;line-height:1.6;color:var(--charcoal);}
#collectionsPanel .reco-box + .reco-box{margin-top:10px;}

#collectionsPanel .rh-table-scroll{max-height:520px;overflow-y:auto;border:1px solid var(--border-light);border-radius:var(--radius-sm);}
#collectionsPanel .rh-table{width:100%;border-collapse:collapse;font-size:12.5px;}
#collectionsPanel .rh-table thead th{position:sticky;top:0;background:var(--white);z-index:1;box-shadow:0 1px 0 var(--border);}
#collectionsPanel .rh-table th{text-align:left;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--light-gray);padding:10px 10px;border-bottom:2px solid var(--border);}
#collectionsPanel .rh-table td{padding:10px 10px;border-bottom:1px solid var(--border-light);vertical-align:top;}
#collectionsPanel .rh-table tbody tr:last-child td{border-bottom:none;}
#collectionsPanel .rh-table tr:hover td{background:var(--cream);}
#collectionsPanel .src-badge{font-size:10px;font-weight:700;text-transform:uppercase;padding:2px 7px;border-radius:20px;background:var(--border-light);color:var(--charcoal);white-space:nowrap;}
#collectionsPanel .rt-stars{color:var(--peach-dark);white-space:nowrap;}
#collectionsPanel .rt-body{max-width:420px;}

#collectionsPanel .caveat{font-size:12px;color:var(--mid-gray);background:var(--peach-light);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;margin-top:4px;}
#collectionsPanel .footer-note{font-size:11.5px;color:var(--light-gray);text-align:center;padding:30px 20px 10px;}

@media (max-width:860px){
  #collectionsPanel .layout{flex-direction:column;}
  #collectionsPanel .sidebar{width:100%;flex:none;border-right:none;border-bottom:1px solid var(--border);display:flex;overflow-x:auto;padding:12px;}
  #collectionsPanel .season-head{display:none;}
  #collectionsPanel .prod-item{flex:0 0 auto;border-left:none;border-bottom:3px solid transparent;white-space:nowrap;}
  #collectionsPanel .prod-item.active{border-left:none;border-bottom-color:var(--peach-dark);}
}
