/* Cloud Browser scenes. Everything is under .m-win and coloured from mock.css's variables. */

/* the cloud, blue in the sidebar, the bar and the tabs as the app draws it */
.m-win .cloud-ic { display: inline-flex; color: var(--blue); }
.m-win .m-side .m-place:has(path[d^="M4.5 12.5h7"]):not(.on) svg { color: var(--blue); }
.m-win .m-crumb .cloud-ic { margin-right: -2px; }

/* the tab being copied into: a thin track under it, filling as the copy goes */
.m-win .m-tab.cloud-xfer.cloud-run::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal); opacity: .32; }
.m-win .m-tab.cloud-xfer .badge { font-variant-numeric: tabular-nums; }

/* a file on its way fills its Size cell from the left */
.m-win .m-row.cloud-in .size i { transition: width .2s linear; }
.m-win .m-row.cloud-going .size i { left: 0; right: auto; background: var(--bar-go); border-radius: 3px; }
.m-win .m-row.cloud-in .size em { font-variant-numeric: tabular-nums; }
.m-win .m-row.cloud-in.incoming .nm { color: var(--muted); }

/* ---------- Activity ---------- */
.m-win { --cloud-done: color-mix(in srgb, var(--muted) 58%, var(--faint)); }
.m-win.light { --cloud-done: var(--faint); }
.m-win .cloud-modal { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; }
.m-win .cloud-act { position: static; width: 640px; padding: 18px 18px 16px; gap: 0; align-content: start; }
.m-win .cloud-act h5 { font-size: 15.5px; font-weight: 400; margin-bottom: 14px; }
.m-win .cloud-job { display: flex; align-items: flex-start; gap: 8px; }
.m-win .cloud-job > div { flex: 1; min-width: 0; }
.m-win .cloud-job b { font-weight: 400; font-size: 15.5px; color: var(--text); }
.m-win .cloud-job .route { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 4px; white-space: nowrap; }
.m-win .cloud-job .route .pl { display: inline-flex; align-items: center; gap: 5px; }
.m-win .cloud-job .route svg { width: 13px; height: 13px; }
.m-win .cloud-job .sb { padding: 4px 12px; border-radius: 6px; background: var(--btn); font-size: 13px; color: var(--text); }
.m-win .cloud-stats { display: grid; grid-template-columns: 2fr 3fr 3fr 3fr; gap: 12px; align-items: center; margin: 14px 0 12px; }
.m-win .cloud-stats .pct { font-size: 33px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.m-win .cloud-stats > span:not(.pct) { font-size: 14.5px; color: var(--text); white-space: nowrap; }
.m-win .cloud-stats small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.m-win .cloud-blocks { display: flex; gap: 3px; height: 8px; }
.m-win .cloud-blocks i { min-width: 3px; border-radius: 2px; }
.m-win .cloud-legend { display: flex; gap: 16px; align-items: center; margin-top: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.m-win .cloud-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.m-win .cloud-legend .sq { display: inline-flex; gap: 1px; }
.m-win .cloud-legend b { display: block; height: 7px; }
.m-win .cloud-legend em { font-style: normal; color: var(--text); }
.m-win .cloud-legend .r { margin-left: auto; }
.m-win .cloud-chart { margin-top: 14px; background: var(--well); border: 1px solid var(--well-line); border-radius: 6px; padding: 10px 12px; display: grid; gap: 6px; }
.m-win .cloud-chart .h, .m-win .cloud-chart .f { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.m-win .cloud-chart .f { font-size: 11.5px; }
.m-win .cloud-threads { margin-top: 14px; display: grid; gap: 6px; }
.m-win .cloud-threads .hd { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.m-win .cloud-threads .par { display: inline-flex; align-items: center; gap: 4px; }
.m-win .cloud-threads .par b { width: 24px; height: 22px; display: grid; place-items: center; border-radius: 5px; background: var(--btn); color: var(--text); font-weight: 400; font-size: 14px; }
.m-win .cloud-threads .par em { width: 22px; text-align: center; font-style: normal; color: var(--text); font-size: 13px; }
.m-win .cloud-thr { display: flex; align-items: center; gap: 12px; padding: 6px 12px; min-height: 44px; background: var(--well); border: 1px solid var(--well-line); border-radius: 6px; }
.m-win .cloud-thr .tag { width: 30px; height: 18px; border-radius: 3px; display: grid; place-items: center; font-size: 11px; color: var(--pane); flex: none; }
.m-win .cloud-thr .tag.idle { background: var(--line); color: var(--muted); }
.m-win .cloud-thr .idle-tx { color: var(--muted); font-size: 14px; }
.m-win .cloud-thr .nm { flex: 1; min-width: 0; display: grid; gap: 5px; font-size: 14px; color: var(--text); }
.m-win .cloud-thr .nm > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-win .cloud-thr .bar { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.m-win .cloud-thr .bar i { display: block; height: 100%; border-radius: 2px; }
.m-win .cloud-thr .amt { color: var(--muted); font-size: 12px; white-space: nowrap; }
.m-win .cloud-thr .rate { width: 74px; text-align: right; font-size: 13px; color: var(--text); white-space: nowrap; }
.m-win .cloud-next { display: flex; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; }
.m-win .cloud-next span { font-size: 12px; }
.m-win .cloud-foot-btns { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 14px; }
.m-win .cloud-foot-btns span { padding: 5px 14px; border-radius: 6px; background: var(--btn); color: var(--text); font-size: 14px; }
.m-win .cloud-foot-btns .off { color: var(--faint); font-size: 13px; padding: 4px 10px; }
.m-win .cloud-foot-btns .p { background: var(--teal-btn); color: var(--on-teal); }

/* ---------- the catalogue in the preview ---------- */
.m-win .m-pdf .page.cloud-cat { width: 360px; height: 500px; padding: 26px 26px; }
.m-win .cloud-cat > img { display: block; width: 100%; aspect-ratio: 10 / 7; object-fit: cover; margin-bottom: 16px; }
.m-win .cloud-cat h4 { font-size: 22px; }
.m-win .cloud-cat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.m-win .cloud-cat-row img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* ---------- sync shown across the two panes ---------- */
.m-win .cloud-syncpane { display: grid; grid-template-rows: minmax(0, 1fr); padding: 48px 0 50px; min-height: 0; min-width: 0; }
.m-win .cloud-syncpane .m-pane { min-height: 0; }
.m-win .cloud-syncpane .m-row > span:first-child { padding-left: 36px; }
.m-win .cloud-syncpane .m-row .gs { font-size: 13px; }
.m-win .cloud-syncpane .m-row.cloud-alone .gs { color: var(--muted); }
.m-win .cloud-syncpane .m-row.cloud-rep { background: var(--orange-row); }
.m-win .cloud-syncpane .m-row.cloud-rep .nm, .m-win .cloud-syncpane .m-row.cloud-rep .gs { color: var(--orange); }
.m-win .cloud-syncpane .m-row.cloud-new { background: var(--add); }
.m-win .cloud-syncpane .m-row.cloud-new .nm, .m-win .cloud-syncpane .m-row.cloud-new .gs { color: var(--green); }
.m-win .cloud-syncpane .m-row.cloud-rep::before, .m-win .cloud-syncpane .m-row.cloud-new::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 1px; background: var(--orange); }
.m-win .cloud-syncpane .m-row.cloud-new::before { background: var(--green); }
.m-win .cloud-syncpane .m-row .mk.chk { left: 14px; right: auto; top: 4px; width: 15px; height: 15px; padding: 0; border-radius: 3px; background: var(--teal-btn); color: var(--on-teal); display: grid; place-items: center; }
.m-win .cloud-syncpane .m-row .mk.chk svg { width: 10px; height: 10px; }

.m-win .cloud-strip { position: absolute; z-index: 3; left: 48px; right: 0; top: 40px; height: 48px; background: var(--cmpbar); display: flex; align-items: center; gap: 16px; padding: 0 16px; color: var(--teal); }
.m-win .cloud-strip .half { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.m-win .cloud-strip .turn { width: 120px; height: 34px; border-radius: 17px; border: 1.5px solid var(--teal); display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--cmpbar) 70%, var(--pane)); }
.m-win .cloud-sfoot { position: absolute; z-index: 3; left: 48px; right: 0; bottom: 0; height: 50px; background: var(--chrome); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 12px; white-space: nowrap; font-size: 13.5px; }
.m-win .cloud-sfoot .ways { display: flex; gap: 2px; padding: 2px; border-radius: 7px; background: var(--well); border: 1px solid var(--well-line); flex: none; }
.m-win .cloud-sfoot .ways span { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 5px; color: var(--text); }
.m-win .cloud-sfoot .ways i { font-style: normal; color: var(--muted); }
.m-win .cloud-sfoot .ways .on { background: var(--btn); }
.m-win .cloud-sfoot .ways .on i { color: var(--teal); }
.m-win .cloud-sfoot .sorts { flex: 1 1 0; min-width: 0; }
.m-win .cloud-sfoot .warn { color: var(--red); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; margin-right: -4px; }
.m-win .cloud-sfoot .b { padding: 5px 14px; border-radius: 6px; background: var(--btn); color: var(--text); flex: none; }
.m-win .cloud-sfoot .b.go { background: var(--red); color: #fff; }
