/* Resource Monitor page (2026-12-04). Hero = taskbar desk (option B); looks, clips and download = option A.
   Uses el.css for header, buttons, pills, features, specs, panels and footer. */

/* Hero: text left, the real taskbar with the hover popup right */
.rm-hero { padding: 64px 0 40px; }
.rm-hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; margin-top: 16px; }
.rm-hero h1 { font-size: clamp(36px, 5.2vw, 54px); line-height: 1.05; letter-spacing: -.03em; font-weight: 750; }
.rm-hero .sec-lead { font-size: 18px; margin-top: 16px; }
.rm-hero .btns { margin-top: 26px; }
.rm-hero .fine { color: var(--muted); font-size: 14px; margin-top: 14px; }
.desk { --tb: 36px; position: relative; aspect-ratio: 1 / .9; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 90% at 82% 100%, #3a3530 0%, #24211e 46%, #1a1816 100%); }
.desk .pop { position: absolute; right: 9%; bottom: calc(var(--tb) + 14px); height: calc(100% - var(--tb) - 42px); aspect-ratio: 392 / 678; border-radius: 12px; overflow: hidden; box-shadow: 0 26px 60px rgba(0,0,0,.55); background: #1d1a16; }
.desk .pop video, .desk .pop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.desk .tbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tb); background: #eeeae4; display: flex; justify-content: flex-end; overflow: hidden; }
.desk .tbar video, .desk .tbar img { height: 100%; width: auto; max-width: none; display: block; }
@media (max-width: 900px) {
  .rm-hero { padding-top: 56px; }
  .rm-hero .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .desk { --tb: 30px; aspect-ratio: 1 / .95; }
}
@media (max-width: 480px) { .desk { --tb: 24px; } }

/* Shared stage + chip panel (same look as the CG and Emulsion players) */
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 10px; }
.frame { position: relative; aspect-ratio: 1580 / 980; border-radius: 16px; overflow: hidden; background: var(--ink); }
.frame video, .frame img, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.frame .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); opacity: .7; }
.panel-chips { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.fc { border: 0; font: inherit; font-size: 14px; color: var(--sub); background: var(--card); border-radius: 14px; min-height: 44px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; cursor: pointer; text-align: left; min-width: 0; position: relative; overflow: hidden; transition: background .2s, color .2s, box-shadow .2s; }
.fc:hover { background: var(--hover); color: var(--text); }
.fc[aria-pressed="true"] { background: var(--hover); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.fc .ic { width: 16px; height: 16px; color: var(--muted); }
.fc[aria-pressed="true"] .ic { color: var(--accent-hover); }
.fc .t { min-width: 0; line-height: 1.3; }
.fc .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1px solid rgba(255,255,255,.14); }
.fc u { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 12px 6px; }
.cap .txt { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.cap b { font-size: 17px; font-weight: 650; }
.cap .txt span { color: var(--sub); font-size: 15px; }
.ctrl { display: flex; gap: 6px; flex: none; }
.cb { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.cb:hover { background: var(--hover); }
.cb .ic { width: 16px; height: 16px; }
.cb.play { background: var(--accent); color: var(--ink); }
.cb.play:hover { background: var(--accent-hover); }
.seg2 { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card); flex: none; }
.seg2 button { border: 0; font: inherit; font-size: 14px; color: var(--sub); background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.seg2 button[aria-pressed="true"] { background: var(--hover); color: var(--text); }
@media (max-width: 600px) { .cap { flex-direction: column; align-items: flex-start; } }

/* Looks: 8 chips beside the player. The 8-look film plays until a look is picked. */
.looks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: 16px; align-items: stretch; }
.looks .panel-chips { grid-template-rows: repeat(8, minmax(44px, 1fr)); }
.looks .frame img { opacity: 0; transition: opacity .25s; object-position: top; }
.looks .cb.all { display: none; }
.looks.still .cb.all { display: grid; }
.looks .ctrl { align-items: center; }
.looks.still .frame img { opacity: 1; }
.looks .seg2 { opacity: .45; pointer-events: none; transition: opacity .2s; }
.looks.still .seg2 { opacity: 1; pointer-events: auto; }
@media (max-width: 900px) {
  .looks { grid-template-columns: minmax(0, 1fr); }
  .looks .panel-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; order: 2; padding: 16px; }
}
@media (max-width: 600px) { .looks .panel-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Feature clips: 10 chips, 5 across on desktop; tablets and phones swipe two full rows. */
.clips .panel-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 16px; }
@media (max-width: 900px) {
  .clips .panel-chips { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: 31%; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 16px; padding: 16px; }
  .clips .panel-chips::-webkit-scrollbar { display: none; }
  .clips .fc { scroll-snap-align: start; }
}
@media (max-width: 600px) { .clips .panel-chips { grid-auto-columns: 46%; } }

/* Download */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl .panel { gap: 12px; }
.dl .file { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--sub); font-size: 15px; flex-wrap: wrap; }
.dl .file b { color: var(--text); font-weight: 600; display: block; }
.dl .file small { color: var(--muted); font-size: 13px; }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; }
.cmd code { flex: 1; min-width: 0; font: 13px/1.5 ui-monospace, Consolas, monospace; color: var(--text); overflow-wrap: anywhere; }
.copy { border: 0; font: inherit; font-size: 13px; background: var(--card); color: var(--sub); border-radius: 999px; padding: 6px 12px; cursor: pointer; flex: none; }
.copy:hover { background: var(--hover); color: var(--text); }
.dl-note { color: var(--muted); font-size: 14px; margin-top: 14px; }
@media (max-width: 760px) { .dl { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { .fc, .looks .frame img { transition: none; } }
