/* #quiet The quiet parts: where each shot's window sits (app px in a 700 x 438 canvas, or 380 x 475
   on phones) and the parts the rows add: a terminal running the polias command, a window frame per
   system, the card of an agent on another computer, Settings, Account. */

#quiet .qt-grid { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
#quiet .qt-grid > .qt-a { grid-row: span 2; }
#quiet-script .qt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
#quiet-script .qt-grid > .qt-a { grid-row: auto; }
#quiet .pui-th { flex-wrap: nowrap; overflow: hidden; }

/* 1 the rest of it: the window behind, a terminal in front of it running polias ls */
#quiet-ls .shot-win { --x: 150px; --y: 30px; --w: 1000px; --h: 620px; }
#quiet-ls .qt-l1 { left: 30px; top: 200px; width: 560px; height: 214px; }
.shot[data-shot='ls'] .shot-light { --lx: 40%; --ly: 66%; }
.sm > #quiet-ls .shot-win { --x: 40px; --y: 26px; --w: 640px; }
.sm > #quiet-ls .qt-l1 { left: 12px; top: 214px; width: 356px; height: 232px; }

/* 2 the command line: one terminal, close */
#quiet-cli .shot-win { --x: 34px; --y: 38px; --w: 720px; --h: 560px; }
.shot[data-shot='cli'] .shot-light { --lx: 46%; --ly: 40%; }
.sm > #quiet-cli .shot-win { --x: 12px; --y: 30px; --w: 620px; --h: 600px; }

/* 3 made for scripts: the terminal acts, the tabs behind it answer */
#quiet-script .shot-win { --x: 120px; --y: 36px; --w: 820px; --h: 560px; }
#quiet-script .qt-l3 { left: 28px; top: 214px; width: 560px; height: 196px; }
.shot[data-shot='script'] .shot-light { --lx: 40%; --ly: 52%; }
.sm > #quiet-script .shot-win { --x: 12px; --y: 26px; --w: 560px; --h: 440px; }
.sm > #quiet-script .qt-l3 { left: 12px; top: 236px; width: 356px; height: 214px; }

/* 4 one grid, many computers: orbit-billing on the laptop, its card open */
#quiet-mesh .shot-win { --x: -280px; --y: -70px; --w: 1000px; --h: 620px; }
#quiet-mesh .qt-card { left: 18px; top: 24px; }
.shot[data-shot='mesh'] .shot-light { --lx: 56%; --ly: 40%; }
.sm > #quiet-mesh .shot-win { --x: -280px; --y: -86px; }
.sm > #quiet-mesh .qt-card { left: 22px; top: 14px; }

/* 5 three systems: one window, its frame changes */
#quiet-os .shot-win { --x: 30px; --y: 40px; --w: 640px; --h: 540px; }
#quiet-os .qt-osl { left: 30px; top: 384px; }
.shot[data-shot='os'] .shot-light { --lx: 46%; --ly: 24%; }
.sm > #quiet-os .shot-win { --x: 12px; --y: 32px; --w: 356px; --h: 520px; }
.sm > #quiet-os .qt-osl { left: 12px; top: 420px; }

/* 6 Settings, Account */
#quiet-acct .shot-win { --x: 30px; --y: 34px; --w: 760px; --h: 620px; }
.shot[data-shot='acct'] .shot-light { --lx: 50%; --ly: 40%; }
.sm > #quiet-acct .shot-win { --x: -170px; --y: 30px; --w: 540px; --h: 640px; }

/* a terminal window, as a desktop terminal draws one */
#quiet .qt-cli { display: grid; grid-template-rows: 30px 1fr; height: 100%; background: #101113; }
#quiet .qt-bar { display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--fg-3); border-bottom: 1px solid var(--line); }
#quiet .qt-cli .pui-term { padding: 10px 16px 12px; font-size: 12.5px; }
#quiet .qt-cli.shot-lift { box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); }
#quiet .qt-ls-hit { background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 3px; }

/* an agent on a computer that has dropped off: its tab keeps its last state, faded */
#quiet .pui-tab.rem-off { opacity: 0.55; }
#quiet .qt-rem { color: var(--fg-3); font-size: 12.5px; }
#quiet .qt-card { width: 330px; }
#quiet .qt-un { margin: 0 0 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 12.5px; }

/* the window's frame, per system */
#quiet .qt-native { grid-template-rows: 32px 34px 1fr; }
#quiet .qt-os { position: relative; display: flex; align-items: center; height: 32px; padding: 0 10px; background: #1b1c20; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--fg-2); }
#quiet .qt-os .t { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
#quiet .qt-os[data-os='windows'] { background: #202124; }
#quiet .qt-os[data-os='windows'] .t { position: static; text-align: left; padding-left: 4px; }
#quiet .qt-wc { display: flex; align-items: center; }
#quiet .qt-wc--mac { gap: 8px; }
#quiet .qt-wc--mac i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
#quiet .qt-wc--mac i + i { background: #febc2e; }
#quiet .qt-wc--mac i + i + i { background: #28c840; }
#quiet .qt-wc--gnome { margin-left: auto; }
#quiet .qt-wc--gnome i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; }
#quiet .qt-wc--win { margin-left: auto; margin-right: -10px; }
#quiet .qt-wc--win i { width: 44px; height: 32px; display: grid; place-items: center; }
#quiet .qt-wc i.x::before, #quiet .qt-wc i.x::after { content: ''; grid-area: 1 / 1; width: 10px; height: 1.4px; background: var(--fg-2); transform: rotate(45deg); }
#quiet .qt-wc i.x::after { transform: rotate(-45deg); }
#quiet .qt-wc--win i.min::before { content: ''; width: 10px; height: 1.2px; background: var(--fg-2); }
#quiet .qt-wc--win i.max::before { content: ''; width: 9px; height: 9px; border: 1.2px solid var(--fg-2); }
#quiet .qt-osl { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(23, 24, 27, 0.94); border: 1px solid var(--line-2); font-size: 13px; color: var(--fg); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6); }
#quiet .qt-osl .dim { color: var(--fg-3); font-size: 12.5px; }

/* Settings, Account, as the app draws it */
#quiet .qt-w6 .pui-set { height: 100%; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05); }
#quiet .qt-w6 .pui-set section { gap: 12px; }
#quiet .qt-h { font-size: 13px; font-weight: 600; color: var(--fg); margin-top: 6px; }
#quiet .qt-acc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
#quiet .qt-acc li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg-2); }
#quiet .qt-acc .mono { font: 400 12px var(--font-mono); color: var(--fg); }
#quiet .qt-acc .pui-btn { min-height: 28px; padding: 3px 10px; margin-left: 8px; }
#quiet .qt-found, #quiet .qt-done { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--fg-2); }
#quiet .qt-got { display: flex; flex-wrap: wrap; gap: 10px 18px; }
#quiet .qt-ck { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg); }

/* phones: the grid drops orbit-web where a row does not need it */
.sm > #quiet-os .qt-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.sm > #quiet-os .qt-grid > .qt-b, .sm > #quiet-os .qt-grid > .qt-c { display: none; }
.sm > #quiet-os .pui-top .pui-new { display: none; }
.sm > #quiet-script .pui-top .pui-new, .sm > #quiet-ls .pui-top .pui-new { display: none; }
