/* ---------------------------------------------------------------
   Osquare HQ demo. A tool pitch in one loop: the ship, then the
   office itself, feature by feature. Everything is laid out at a
   fixed design size of 1440x900 inside .hq-fit, which is scaled to
   the frame width. Only .hq-cam (scale + translate) and the two
   sky layers move for the pushes. Transforms and opacity only.
   --------------------------------------------------------------- */
.demo[data-demo="hq"] { background: var(--ink-0); }

.hq-fit {
  position: absolute; top: 0; left: 0; width: 1440px; height: 900px;
  transform-origin: 0 0; background: var(--ink-0);
}
.hq-fit * { box-sizing: border-box; }
.hq-fit p, .hq-fit h4 { margin: 0; }
.hq-fit svg { display: block; }

/* --- the two sky layers ---------------------------------------- */
.hq-sky, .hq-ship {
  position: absolute; top: 0; left: 0; width: 1440px; height: 900px;
  max-width: none; object-fit: cover; opacity: 0;
}
.hq-sky { transform-origin: 52% 48%; }
.hq-ship { transform-origin: 50% 52%; }

/* --- the camera and the app ------------------------------------ */
.hq-cam {
  position: absolute; top: 0; left: 0; width: 1440px; height: 900px;
  transform-origin: 0 0; overflow: hidden;
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
  font-weight: 400; color: var(--text-on-ink);
  -webkit-font-smoothing: antialiased;
}
.hq-app { position: absolute; inset: 0; background: var(--ink-0); opacity: 0; }

.hq-k {
  font-family: var(--font-display); font-size: 10px; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--text-on-ink-faint);
}

/* rail */
.hq-rail {
  position: absolute; top: 0; left: 0; bottom: 0; width: 208px;
  background: var(--ink-1); border-right: 1px solid var(--ink-line); padding: 26px 0 0;
}
.hq-brand {
  padding: 0 26px; font-family: var(--font-display); font-size: 15px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-on-ink);
}
.hq-brand b { color: var(--accent); font-weight: 400; }
.hq-brand__s { display: block; margin-top: 3px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--text-on-ink-faint); text-transform: none; }
.hq-nav { position: relative; margin-top: 34px; }
.hq-nav__i {
  position: relative; display: flex; align-items: center; height: 44px; padding: 0 26px;
  font-size: 13.5px; color: var(--text-on-ink-muted);
}
.hq-nav__i em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-faint); }
.hq-nav__ind {
  position: absolute; left: 0; top: 0; width: 208px; height: 44px;
  background: rgba(233, 230, 223, 0.05); border-left: 2px solid var(--accent); pointer-events: none;
}
.hq-rail__foot {
  position: absolute; left: 26px; right: 26px; bottom: 26px; padding-top: 16px;
  border-top: 1px solid var(--ink-line); font-size: 11.5px; color: var(--text-on-ink-faint); line-height: 1.7;
}
.hq-rail__foot b { display: block; color: var(--text-on-ink-muted); font-weight: 400; }

/* top bar */
.hq-top {
  position: absolute; top: 0; left: 208px; right: 0; height: 56px;
  display: flex; align-items: center; gap: 18px; padding: 0 36px;
  background: var(--ink-1); border-bottom: 1px solid var(--ink-line);
}
.hq-top__org { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.hq-top__org span { color: var(--text-on-ink-faint); }
.hq-top__meter {
  margin-left: auto; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-on-ink-muted); white-space: nowrap;
}
.hq-top__meter b { font-weight: 400; color: var(--text-on-ink); }
.hq-top__meter i { width: 1px; height: 14px; background: var(--ink-line-strong); }
.hq-avatar {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink-line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 10px; letter-spacing: 0.06em; color: var(--text-on-ink-muted);
}

/* main */
.hq-main { position: absolute; top: 56px; left: 208px; right: 0; bottom: 0; }
.hq-pane { position: absolute; inset: 0; padding: 36px; opacity: 0; }
.hq-pane__h { display: flex; align-items: baseline; gap: 18px; margin-bottom: 18px; }
.hq-pane__t { font-family: var(--font-display); font-size: 22px; font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; }
.hq-pane__s { font-size: 12.5px; color: var(--text-on-ink-muted); }
.hq-panel { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 6px; }

/* status dots: working = brass, idle = faint, waiting = hollow brass */
.hq-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hq-dot--idle { background: var(--text-on-ink-faint); }
.hq-dot--wait { background: transparent; border: 1.5px solid var(--accent); }

/* ---------- Floor ---------- */
.hq-floor {
  position: relative; width: 1160px; height: 590px; overflow: hidden;
  background-color: var(--ink-1);
  background-image:
    linear-gradient(rgba(233, 230, 223, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 230, 223, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hq-room { position: absolute; border: 1px solid var(--ink-line); border-radius: 4px; }
.hq-room__k { position: absolute; left: 12px; top: -7px; padding: 0 6px; background: var(--ink-1); }
.hq-hall { position: absolute; left: 0; right: 0; top: 268px; height: 54px; border-top: 1px dashed var(--ink-line); border-bottom: 1px dashed var(--ink-line); }
.hq-hall span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--text-on-ink-faint); }
.hq-legend { position: absolute; right: 24px; bottom: 16px; display: flex; gap: 18px; font-size: 11px; color: var(--text-on-ink-muted); }
.hq-legend span { display: flex; align-items: center; gap: 7px; }

.hq-desk { position: absolute; width: 330px; height: 156px; display: flex; gap: 18px; padding: 18px 18px 16px; }
.hq-desk__g { position: relative; width: 74px; height: 120px; flex: none; }
.hq-desk__top { position: absolute; left: 0; top: 10px; width: 74px; height: 62px; border-radius: 4px; background: var(--ink-3); border: 1px solid var(--ink-line-strong); }
.hq-desk__scr { position: absolute; left: 14px; top: 20px; width: 46px; height: 5px; border-radius: 2px; background: var(--accent); opacity: 0.55; }
.hq-desk__scr--dim { opacity: 0.18; background: var(--text-on-ink-muted); }
.hq-desk__chair { position: absolute; left: 21px; top: 84px; width: 32px; height: 22px; border-radius: 16px 16px 6px 6px; border: 1px solid var(--ink-line-strong); border-bottom-width: 3px; }
.hq-desk__b { min-width: 0; flex: 1; }
.hq-desk__n { font-family: var(--font-display); font-size: 21px; font-weight: 400; letter-spacing: 0.06em; line-height: 1.15; }
.hq-desk__r { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-ink-faint); margin-top: 3px; }
.hq-desk__st { position: relative; height: 18px; margin-top: 12px; }
.hq-desk__st span { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-on-ink); white-space: nowrap; }
.hq-desk__st .hq-st--b { opacity: 0; }
.hq-desk__task { position: relative; height: 18px; margin-top: 4px; }
.hq-desk__task span { position: absolute; left: 0; top: 0; font-size: 12px; color: var(--text-on-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.hq-desk__task .hq-st--b { opacity: 0; }

/* the travelling task card */
.hq-task {
  position: absolute; width: 292px; padding: 14px 16px 12px; z-index: 5;
  background: var(--ink-3); border: 1px solid var(--accent); border-radius: 6px; opacity: 0;
}
.hq-task__t { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; margin-bottom: 8px; }
.hq-task__row { display: flex; gap: 10px; font-size: 11.5px; line-height: 1.5; color: var(--text-on-ink-muted); margin-top: 3px; }
.hq-task__row b { flex: none; width: 62px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-ink-faint); font-weight: 400; padding-top: 2px; }
.hq-task__row span { color: var(--text-on-ink); }
.hq-files { display: flex; flex-wrap: wrap; gap: 5px; }
.hq-file { font-family: var(--font-mono); font-size: 10px; color: var(--text-on-ink); border: 1px solid var(--ink-line-strong); border-radius: 3px; padding: 2px 6px; white-space: nowrap; }
.hq-task__tag {
  position: absolute; right: 12px; top: -11px; padding: 4px 9px; border-radius: 999px;
  background: var(--accent); color: var(--ink-0); font-family: var(--font-display); font-size: 9.5px;
  font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0;
}

/* ---------- Queue ---------- */
.hq-queue { display: flex; gap: 28px; }
.hq-qlist { width: 780px; padding: 6px 0 0; }
.hq-qhead { display: flex; align-items: center; height: 34px; padding: 0 20px; border-bottom: 1px solid var(--ink-line); }
.hq-qrow { position: relative; display: flex; align-items: center; height: 70px; padding: 0 20px; border-bottom: 1px solid var(--ink-line); background: var(--ink-2); }
.hq-qrow:last-child { border-bottom: 0; }
.hq-qc { flex: none; }
.hq-qc--p { width: 70px; position: relative; height: 22px; }
.hq-qc--t { flex: 1; min-width: 0; }
.hq-qc--w { width: 130px; }
.hq-qc--a { width: 170px; position: relative; height: 22px; }
.hq-qhead .hq-qc--p, .hq-qhead .hq-qc--a { height: auto; }
.hq-pri {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 3px; border: 1px solid var(--ink-line-strong); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--text-on-ink-muted);
}
.hq-pri--hot { background: var(--accent); border-color: var(--accent); color: var(--ink-0); opacity: 0; }
.hq-qt { font-size: 14px; line-height: 1.25; }
.hq-qd { font-size: 11.5px; color: var(--text-on-ink-muted); margin-top: 3px; }
.hq-qw { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-on-ink-faint); }
.hq-qa { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; height: 22px; font-size: 12.5px; color: var(--text-on-ink-muted); white-space: nowrap; }
.hq-qa--b { color: var(--text-on-ink); opacity: 0; }
.hq-qa--b .hq-avatar { width: 22px; height: 22px; font-size: 9px; color: var(--accent); border-color: var(--accent); }
.hq-owner { flex: 1; padding: 22px 24px; }
.hq-owner__n { font-family: var(--font-display); font-size: 21px; letter-spacing: 0.06em; margin-top: 10px; }
.hq-owner__r { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-on-ink-faint); margin-top: 3px; }
.hq-owner__d { font-size: 12.5px; line-height: 1.6; color: var(--text-on-ink-muted); margin-top: 16px; }
.hq-owner__s { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ink-line); font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-muted); line-height: 2; }
.hq-owner__s b { font-weight: 400; color: var(--text-on-ink); }

/* ---------- Approval ---------- */
.hq-modal { position: absolute; inset: 0; z-index: 20; opacity: 0; }
.hq-modal__scrim { position: absolute; inset: 0; background: rgba(7, 9, 12, 0.72); }
.hq-modal__box {
  position: absolute; left: 50%; top: 190px; width: 620px; margin-left: -310px; padding: 24px 30px 26px;
  background: var(--ink-2); border: 1px solid var(--ink-line-strong); border-radius: 6px;
}
.hq-modal__k { display: flex; align-items: center; gap: 10px; }
.hq-modal__t { font-family: var(--font-display); font-size: 24px; font-weight: 300; letter-spacing: 0.04em; margin-top: 10px; }
.hq-modal__from { font-size: 12.5px; color: var(--text-on-ink-muted); margin-top: 6px; }
.hq-diff { margin-top: 18px; border: 1px solid var(--ink-line); border-radius: 4px; background: var(--ink-1); }
.hq-diff__r { display: flex; gap: 14px; align-items: center; height: 34px; padding: 0 14px; border-top: 1px solid var(--ink-line); font-size: 12.5px; }
.hq-diff__r:first-child { border-top: 0; }
.hq-diff__r b { font-family: var(--font-mono); font-size: 12px; font-weight: 400; width: 12px; color: var(--accent); }
.hq-diff__r em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-faint); }
.hq-modal__a { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.hq-modal__a .hq-k { margin-right: auto; }
.hq-btn {
  display: inline-block; font-family: var(--font-display); font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; border-radius: 4px; padding: 10px 24px;
}
.hq-btn--ghost { border: 1px solid var(--ink-line-strong); color: var(--text-on-ink-muted); }
.hq-btn--go { background: var(--accent); color: var(--ink-0); }
.hq-stamp {
  position: absolute; right: 26px; top: 22px; padding: 7px 14px; border: 2px solid var(--accent); border-radius: 4px;
  font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); transform: rotate(-9deg); opacity: 0;
}
.hq-sent { position: absolute; left: 30px; bottom: -34px; font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-muted); opacity: 0; }
.hq-sent b { color: var(--accent); font-weight: 400; }
.hq-cursor { position: absolute; left: 0; top: 0; width: 18px; height: 24px; z-index: 30; color: var(--text-on-ink); opacity: 0; }

/* ---------- Ledger ---------- */
.hq-run { display: flex; align-items: center; gap: 26px; width: 1160px; height: 92px; padding: 0 26px; }
.hq-run__id { font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-faint); line-height: 1.7; }
.hq-run__id b { display: block; font-weight: 400; color: var(--text-on-ink); font-size: 13px; }
.hq-run__bar { flex: 1; position: relative; height: 3px; background: rgba(233, 230, 223, 0.12); border-radius: 2px; overflow: hidden; }
.hq-run__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.hq-run__tok { font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-muted); white-space: nowrap; line-height: 1.7; }
.hq-run__tok b { font-weight: 400; color: var(--text-on-ink); }
.hq-run__cost { text-align: right; white-space: nowrap; }
.hq-run__cost b { display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 400; color: var(--accent); line-height: 1.1; }
.hq-run__cost span { font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-muted); }
.hq-model {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink); border: 1px solid var(--ink-line-strong);
  border-radius: 3px; padding: 3px 8px; white-space: nowrap;
}
.hq-ledger { width: 1160px; margin-top: 22px; }
.hq-lrow { display: flex; align-items: center; height: 54px; padding: 0 26px; border-top: 1px solid var(--ink-line); font-size: 13px; }
.hq-lrow--h { height: 36px; border-top: 0; }
.hq-lrow--h span { font-family: var(--font-display); font-size: 10px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-on-ink-faint); }
.hq-lc { flex: none; }
.hq-lc--t { flex: 1; }
.hq-lc--w { width: 110px; }
.hq-lc--m { width: 170px; }
.hq-lc--k { width: 190px; font-family: var(--font-mono); font-size: 12px; color: var(--text-on-ink-muted); }
.hq-lc--c { width: 90px; text-align: right; font-family: var(--font-mono); font-size: 13px; }
.hq-lrow--sum { border-top: 1px solid var(--ink-line-strong); }
.hq-lrow--sum .hq-lc--t { font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-muted); }
.hq-lrow--sum .hq-lc--c { color: var(--accent); }

/* ---------- Settings ---------- */
.hq-set { display: flex; gap: 24px; width: 1008px; }
.hq-set__col { padding: 20px 22px 22px; }
.hq-set__col--k { width: 350px; }
.hq-set__col--o { width: 240px; }
.hq-set__col--d { width: 370px; }
.hq-set__t { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.hq-set__d { font-size: 11.5px; color: var(--text-on-ink-muted); margin-bottom: 16px; }
.hq-key { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border: 1px solid var(--ink-line); border-radius: 4px; background: var(--ink-1); margin-top: 8px; }
.hq-key__p { width: 78px; font-size: 12.5px; }
.hq-key__v { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--text-on-ink-muted); letter-spacing: 0.04em; white-space: nowrap; }
.hq-key__s { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.hq-org { position: relative; padding-left: 4px; }
.hq-org__n { display: flex; align-items: center; gap: 10px; height: 34px; font-size: 13px; }
.hq-org__n em { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--text-on-ink-faint); margin-left: auto; }
.hq-org__n i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; }
.hq-org__n--c { padding-left: 22px; position: relative; }
.hq-org__n--c::before { content: ""; position: absolute; left: 3px; top: -17px; width: 12px; height: 34px; border-left: 1px solid var(--ink-line-strong); border-bottom: 1px solid var(--ink-line-strong); }
.hq-org__n--c i { background: transparent; border: 1px solid var(--accent); }
.hq-term { margin-top: 8px; padding: 14px 16px; border-radius: 4px; background: var(--ink-0); border: 1px solid var(--ink-line); font-family: var(--font-mono); font-size: 12px; line-height: 1.8; min-height: 120px; }
.hq-term__l { white-space: pre; color: var(--text-on-ink-muted); }
.hq-term__l b { font-weight: 400; color: var(--text-on-ink); }
.hq-term__l .hq-caret { display: inline-block; width: 7px; height: 13px; background: var(--accent); vertical-align: -2px; margin-left: 1px; }
.hq-term__l em { font-style: normal; color: var(--accent); }
.hq-term__out { opacity: 0; }

/* ---------- ring (base.css .demo__ring, squared off for cards) ---------- */
.demo[data-demo="hq"] .hq-ring { border-radius: 8px; box-shadow: 0 0 0 3px rgba(201, 168, 106, 0.12); }

/* Captions sit over dense screens, so they carry the ink chip and the
   brass rule, same as RedactPro. Two clauses each, so a little wider. */
.demo[data-demo="hq"] .demo__caption {
  background: rgba(7, 9, 12, 0.88);
  border-left: 2px solid var(--accent);
  padding: 8px 14px 8px 12px;
  border-radius: 2px;
  max-width: 70%;
  line-height: 1.5;
}
