/* ReQuest by Corpiler (static/ui/mira.js), drawn after IQL's interactive prototype of 18 October (ERN-300.36Q): navy ink,
   coral actions, indigo marks, a paper-white workspace card with the four-step journey. Scoped to .rq and the Home start
   button; the rest of the app keeps its colours. The prototype is light only, and so is this card. */
.rq { --rq-navy: #12265e; --rq-ink: #162754; --rq-indigo: #253d8a; --rq-coral: #ff4d63; --rq-muted: #697795; --rq-border: #e1e7f4;
  --rq-mint: #0e8e71; --rq-amber: #a75c0d; --rq-shadow: 0 15px 38px rgba(21,41,89,.065), 0 3px 8px rgba(21,41,89,.04);
  color: var(--rq-ink); color-scheme: light; max-width: 1390px; margin: 0 auto; }
.rq-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.rq-brand { display: flex; align-items: center; gap: 13px; }
.rq-name { font-size: 25px; font-weight: 800; letter-spacing: -.8px; direction: ltr; unicode-bidi: isolate; color: var(--rq-navy); }
.rq-name span { color: var(--rq-coral); }
.rq-by { color: var(--rq-muted); font-size: 11px; font-weight: 700; letter-spacing: 1.1px; direction: ltr; text-transform: uppercase; display: block; }
.rq-client { font-size: 29px; letter-spacing: -1.5px; font-weight: 900; direction: ltr; color: var(--rq-navy); }
.rq-client span { color: var(--rq-coral); }
.rq-client small { display: block; letter-spacing: .25px; font-size: 8.5px; color: #5d6685; font-weight: 700; text-align: left; }

.rq-work { background: #fff; border-radius: 27px; box-shadow: var(--rq-shadow); border: 1px solid #edf0f7; overflow: hidden; position: relative; }
.rq-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 35px; border-bottom: 1px solid var(--rq-border); }
.rq-cap { color: var(--rq-muted); font-size: 12px; }
.rq-steps { display: flex; align-items: center; gap: 9px; flex: 1; justify-content: center; max-width: 700px; list-style: none; margin: 0; padding: 0; }
.rq-steps li { display: flex; align-items: center; gap: 8px; color: #8d98af; font-size: 13px; white-space: nowrap; }
.rq-steps li > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #edf1fa; color: #7684a5; font-size: 12px; font-weight: 700; }
.rq-steps li.active { color: var(--rq-navy); }
.rq-steps li.active > span { background: var(--rq-coral); color: #fff; }
.rq-steps li.done > span { background: var(--rq-navy); color: #fff; }
.rq-steps .rq-line { height: 1px; width: 34px; background: #d8dfed; }

.rq-btn { border: 0; display: inline-flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 12px; padding: 14px 19px;
  min-height: 48px; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.rq-btn:hover { transform: translateY(-1px); }
.rq-btn:focus-visible, .rq-field:focus-visible { outline: 3px solid #98acff; outline-offset: 2px; }
.rq-btn.primary { background: linear-gradient(110deg, #ff4760, #ff6577); color: #fff; box-shadow: 0 8px 16px rgba(255,76,99,.18); }
.rq-btn.secondary { background: #fff; border: 1px solid var(--rq-border); color: var(--rq-navy); box-shadow: 0 2px 9px rgba(23,50,103,.06); }
.rq-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.rq-arrow { font-size: 18px; font-weight: 400; }

.rq-hero { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(300px, .83fr); padding: 50px 58px; gap: 25px; align-items: center; }
.rq-eyebrow { color: var(--rq-coral); font-weight: 900; font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; }
.rq-h1 { font-size: clamp(32px, 3.6vw, 56px); margin: 18px 0 16px; line-height: 1.16; letter-spacing: -1.5px; color: var(--rq-navy); }
.rq-h1 span { color: var(--rq-coral); }
.rq-intro { color: var(--rq-muted); max-width: 570px; font-size: 18px; line-height: 1.86; margin: 0 0 28px; }
.rq-ctas { display: grid; grid-template-columns: minmax(190px, 330px); gap: 13px; }
.rq-ctas .rq-btn { padding: 17px 21px; }
.rq-notes { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.rq-notes span { display: flex; align-items: center; gap: 9px; color: #60708f; font-size: 13px; font-weight: 700; }
.rq-notes i { width: 28px; height: 28px; border: 1px solid #dce5f9; border-radius: 9px; display: grid; place-items: center; color: var(--rq-navy); background: #f5f7fd; font-style: normal; }
.rq-art { height: 420px; border-radius: 27px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #f3f5ff 0%, #e4eaf9 65%, #e1e8f9 100%); }
.rq-orb { height: 245px; width: 245px; border-radius: 50%; background: linear-gradient(155deg, #e7eafb, #bfccf1); display: grid; place-items: center;
  box-shadow: inset 12px 12px 31px rgba(255,255,255,.9), 16px 24px 60px rgba(27,49,106,.16); }
.rq-float { position: absolute; border-radius: 13px; background: rgba(255,255,255,.93); box-shadow: var(--rq-shadow); font-size: 13px; font-weight: 800;
  color: var(--rq-navy); padding: 13px 17px; display: flex; align-items: center; gap: 9px; border: 1px solid #eef1fa; }
.rq-float i { font-style: normal; color: var(--rq-coral); }
.rq-float.one { top: 58px; right: 23px; } .rq-float.two { bottom: 60px; left: 22px; } .rq-float.three { bottom: 120px; right: 25px; color: var(--rq-mint); }

.rq-content { padding: 36px 50px 44px; }
.rq-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.rq-h2 { margin: 10px 0 6px; font-size: 34px; letter-spacing: -.8px; color: var(--rq-navy); }
.rq-sub { color: var(--rq-muted); font-size: 14px; line-height: 1.8; margin: 0; }
.rq-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .65fr); gap: 23px; }
.rq-card, .rq-aside, .rq-block { border: 1px solid var(--rq-border); border-radius: 20px; background: #fff; padding: 25px; box-shadow: 0 3px 13px rgba(40,53,90,.026); }
.rq-input { margin-bottom: 22px; }
.rq-label { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; font-size: 15px; font-weight: 900; color: var(--rq-navy); }
.rq-count { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: var(--rq-navy); color: #fff; font-size: 12px; }
.rq-hint { font-size: 12px; color: #8791a5; font-weight: 500; margin-inline-start: auto; }
.rq-hint2 { font-size: 12px; color: var(--rq-muted); margin-top: 6px; }
.rq-field { width: 100%; border: 1px solid #dce3f0; border-radius: 11px; background: #fafbfe; min-height: 51px; padding: 14px; color: var(--rq-ink); }
.rq-field:focus { border-color: #8ba2ec; background: #fff; outline: none; }
/* ReQuest is a light page whatever the system theme (color-scheme: light above). The app's own field rule
   (input:not([type]) — more specific than one class) and the option list take the dark theme's tokens, which left
   typed text near-white on white and the client matches navy on near-black on a Mac in dark mode (walk of 25 Oct). */
.rq .rq-field { color: var(--rq-ink); background: #fafbfe; border-color: #dce3f0; }
.rq .rq-field:focus { background: #fff; border-color: #8ba2ec; }
.rq .rq-field::placeholder { color: #8d98af; }
.rq .opt-list { background: #fff; border-color: var(--rq-border); color: var(--rq-ink); }
.rq .opt-list .opt:hover, .rq .opt-list .opt.active { background: #eef2fc; }
.rq .opt-list .muted, .rq .opt-list .opt-none { color: var(--rq-muted); }
.rq-area { resize: vertical; min-height: 134px; line-height: 1.85; }
.rq-area.cm { min-height: 110px; }
.rq-filerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; color: var(--rq-muted); font-size: 12px; }
.rq-file { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--rq-navy); font-weight: 700; }
.rq-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rq-file:focus-within { outline: 3px solid #98acff; outline-offset: 2px; border-radius: 6px; }
.mira-files { margin: 6px 0 0; padding-inline-start: 18px; font-size: 12px; color: var(--rq-muted); }
.mira-file-drop { margin-inline-start: 6px; border: 0; background: none; color: var(--rq-navy); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.mira-file-drop:focus-visible { outline: 3px solid #98acff; outline-offset: 2px; border-radius: 4px; }
.mira-client { position: relative; }
.rq-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.rq-actions.col { flex-direction: column; }
.rq-err { font-size: 12px; color: #986b28; margin-top: 8px; min-height: 15px; }
.rq-aside { background: linear-gradient(180deg, #f8f9ff, #fff); }
.rq-aside h3 { font-size: 20px; margin: 3px 0 8px; color: var(--rq-navy); }
.rq-aside p { color: var(--rq-muted); font-size: 14px; line-height: 1.85; }
.rq-feature { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--rq-border); align-items: flex-start; }
.rq-feature:last-child { border-bottom: 0; }
.rq-feature i { font-style: normal; font-size: 16px; border-radius: 12px; background: #ebf0fe; padding: 11px; color: var(--rq-navy); }
.rq-feature b { display: block; font-size: 14px; margin-bottom: 4px; }
.rq-feature span { font-size: 12px; line-height: 1.7; color: var(--rq-muted); }

.rq-processing { display: grid; grid-template-columns: 1.15fr .65fr; gap: 35px; align-items: center; }
.rq-proc-list { display: grid; gap: 11px; margin: 24px 0; padding: 0; list-style: none; }
.rq-proc { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border: 1px solid var(--rq-border); border-radius: 12px; background: #fff;
  color: var(--rq-muted); font-size: 14px; line-height: 1.6; }
.rq-proc b { display: block; color: var(--rq-ink); }
.rq-tick { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #f0f2fa; color: #8996ac; font-weight: 800; }
.rq-proc.ok .rq-tick { background: #e3f5ee; color: var(--rq-mint); }
.rq-proc.run { border-color: #b6c6ef; background: #f6f8ff; color: var(--rq-navy); }
.rq-proc.run .rq-tick { background: #dce7ff; color: var(--rq-indigo); animation: rq-spin 1.2s linear infinite; }
.rq-proc.bad { border-color: #f6cfd4; background: #fff6f7; }
.rq-proc.bad .rq-tick { background: #fde9e7; color: #c83951; }
@keyframes rq-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rq-proc.run .rq-tick { animation: none; } .rq-btn { transition: none; } }
.rq-proc-art { width: 100%; max-width: 320px; margin: auto; aspect-ratio: 1; background: linear-gradient(145deg, #eaf0ff, #fbeff1); border-radius: 50%; display: grid; place-items: center; }
.rq-local { padding: 15px 19px; border-radius: 13px; background: #f4f6fc; border: 1px solid var(--rq-border); font-size: 13px; color: #596b8b; line-height: 1.85; }

.rq-pill { padding: 7px 11px; border-radius: 30px; background: #ecf0fd; color: var(--rq-navy); border: 1px solid #dfe6fa; font-weight: 700; font-size: 12px; white-space: nowrap; }
.rq-sum { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .72fr); gap: 20px; }
.rq-col { display: grid; gap: 15px; align-content: start; }
.rq-block { padding: 22px; }
.rq-block.soft { background: #f8faff; }
.rq-bh { display: flex; align-items: center; justify-content: space-between; gap: 11px; margin-bottom: 15px; }
.rq-bh h2 { margin: 0; font-size: 17px; color: var(--rq-navy); }
.rq-mini { font-size: 11px; font-weight: 700; border-radius: 20px; padding: 6px 9px; background: #edf1fc; color: #62719a; }
.rq-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rq-fact { border: 1px solid #e8edf7; border-radius: 11px; padding: 12px 13px; background: #fafbff; min-height: 76px; }
.rq-fact.proposed { border-color: #f3dfc3; background: #fffaf2; }
.rq-fact .name { font-size: 11px; color: var(--rq-muted); margin-bottom: 8px; }
.rq-fact .value { font-size: 16px; font-weight: 900; color: var(--rq-navy); word-break: break-word; }
.rq-fact .source { font-size: 10px; margin-top: 6px; color: #8091b0; }
.rq-fact .words { font-size: 11px; margin-top: 4px; color: #596b8b; line-height: 1.5; }
.rq-issue { border: 1px solid #f4e0d0; border-radius: 10px; display: flex; gap: 9px; align-items: flex-start; background: #fffaf7; padding: 12px; margin-bottom: 9px; font-size: 13px; line-height: 1.6; }
.rq-issue em { font-style: normal; color: var(--rq-amber); font-weight: 800; }
.rq-issue.conflict { border-color: #f6cfd4; background: #fff6f7; }
.rq-issue.conflict em { color: #c83951; }
.rq-issue.notice { border-color: var(--rq-border); background: #fafbff; }
.rq-cands { color: var(--rq-muted); }
.rq-req { font-size: 11px; border-radius: 20px; padding: 1px 8px; background: #fde9e7; color: #b3261e; white-space: nowrap; }
.rq-meta { font-size: 13px; color: var(--rq-muted); padding: 10px 0; border-bottom: 1px solid var(--rq-border); }
.rq-meta:last-child { border: 0; }
.rq-meta strong { color: var(--rq-navy); }
.rq-ok { font-size: 11px; border-radius: 20px; padding: 1px 8px; background: #e3f5ee; color: var(--rq-mint); }
.rq-warn { color: var(--rq-amber); }
.rq-empty { font-size: 14px; color: var(--rq-muted); padding: 12px 0; }

/* Home's way in */
.mira-start { display: inline-flex; align-items: center; background: linear-gradient(110deg, #ff4760, #ff6577); border-color: #ff4d63; color: #fff; }
.mira-start:hover { color: #fff; filter: brightness(.96); }
.home-start { gap: 8px; flex-wrap: wrap; }

@media (max-width: 950px) {
  .rq-hero, .rq-grid, .rq-sum, .rq-processing { grid-template-columns: 1fr; }
  .rq-hero { padding: 32px 26px; } .rq-art { height: 280px; } .rq-orb { width: 180px; height: 180px; } .rq-orb svg { width: 130px; height: 130px; }
  .rq-content { padding: 28px 22px; } .rq-aside, .rq-proc-art { display: none; }
  .rq-steps { justify-content: flex-start; } .rq-steps li > b { display: none; } .rq-steps .rq-line { width: 10px; } .rq-top { padding: 16px 20px; }
}
@media (max-width: 580px) {
  .rq-client { display: none; } .rq-name { font-size: 21px; } .rq-h1 { font-size: 32px; } .rq-intro { font-size: 15px; }
  .rq-h2 { font-size: 26px; } .rq-facts { grid-template-columns: 1fr; } .rq-cap { display: none; } .rq-steps { justify-content: center; }
  .rq-actions { flex-direction: column; } .rq-actions .rq-btn { width: 100%; } .rq-float { font-size: 10px; padding: 9px; }
}
/* The brand row sits on the page itself, outside the white workspace: on a dark system theme its navy words
   disappeared into the dark page (walk of 25 Oct). The workspace stays light. */
@media (prefers-color-scheme: dark) {
  .rq-head .rq-name, .rq-head .rq-client { color: #e7ecf8; }
  .rq-head .rq-by, .rq-head .rq-cap { color: #a9b4cc; }
}
