/* Client Updates 2027: three stages, smart change cards, live work order. Builds on site.css + updates.css. */

.rq { position: relative; }
.rq::before { content: ""; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, color-mix(in srgb, var(--signal) 16%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(#000 40%, transparent); -webkit-mask-image: linear-gradient(#000 40%, transparent); }

/* hero */
.rq-hero { padding-top: clamp(120px, 16vh, 170px); padding-bottom: clamp(28px, 4vw, 48px); }
.rq-title { font-size: clamp(42px, 6.4vw, 96px); font-weight: 640; letter-spacing: -.05em; line-height: .95; max-width: 14ch; margin: 14px 0 20px; }
.rq-title em { font-family: var(--f-serif); font-weight: 400; color: var(--signal-text); letter-spacing: -.02em; }
.rq-lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 52ch; margin: 0 0 24px; }
.rq-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.rq-trust li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); background: color-mix(in srgb, var(--card) 70%, transparent); }
.rq-trust svg { width: 16px; height: 16px; fill: none; stroke: var(--signal-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* app shell */
.rq-app { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 36px); align-items: start; padding-bottom: clamp(60px, 8vw, 110px); scroll-margin-top: 90px; }
.rq-app.is-done { grid-template-columns: 1fr; }
.rq-main { min-width: 0; border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .7); overflow: hidden; }

/* stage tabs */
.rq-stages { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.rq-stages[hidden] { display: none; }
.rq-stages li { position: relative; }
.rq-stages li + li { border-left: 1px solid var(--line); }
.rq-stages button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: none; border: 0; color: var(--mute); text-align: left; font: inherit; cursor: pointer; transition: background-color .25s, color .25s; }
.rq-stages button:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink-2); }
.rq-stages b { display: block; font-size: 15px; font-weight: 600; }
.rq-stages small { display: block; font-size: 12px; color: var(--mute); }
.rq-stages__n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font: 600 13px var(--f-mono); transition: all .3s var(--ease); }
.rq-stages li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.rq-stages li.is-now::after { transform: scaleX(1); }
.rq-stages li.is-now button { color: var(--ink); }
.rq-stages li.is-now .rq-stages__n { border-color: var(--signal); color: var(--signal-text); box-shadow: 0 0 0 5px color-mix(in srgb, var(--signal) 18%, transparent); }
.rq-stages li.is-done .rq-stages__n { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); font-size: 0; }
.rq-stages li.is-done .rq-stages__n::before { content: "✓"; font-size: 14px; }
.rq-stages li.is-done button { color: var(--ink-2); }

/* form body */
.rq-form { padding: clamp(22px, 3.4vw, 40px); }
.rq-stage { animation: rqIn .5s var(--ease) both; }
@keyframes rqIn { from { opacity: 0; transform: translateY(14px); } }
.rq-group + .rq-group { margin-top: clamp(30px, 4vw, 44px); padding-top: clamp(26px, 3.6vw, 40px); border-top: 1px dashed var(--line); }
.rq-h { font-size: clamp(22px, 2.2vw, 30px); font-weight: 620; letter-spacing: -.03em; margin: 0 0 18px; outline: none; }
.rq-note { margin: -8px 0 18px; color: var(--mute); font-size: 15px; }
.rq-note kbd, .rq kbd { font: 500 12px var(--f-mono); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); }
.rq-sub { margin: 22px 0 10px; font-size: 14px; color: var(--ink-2); font-weight: 560; }
.rq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }

/* fields */
.rq-f { display: grid; gap: 7px; min-width: 0; }
.rq-f--wide { grid-column: 1 / -1; }
.rq-f > span { font-size: 14px; font-weight: 560; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rq-f em { font-style: normal; font-weight: 400; color: var(--mute); font-size: 12px; }
.rq-f small { color: var(--mute); font-size: 12px; }
.rq-f input, .rq-f textarea, .rq-url__box { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.rq-f textarea { resize: vertical; line-height: 1.5; min-height: 96px; }
.rq-f input::placeholder, .rq-f textarea::placeholder { color: color-mix(in srgb, var(--mute) 75%, transparent); }
.rq-f input:hover, .rq-f textarea:hover { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.rq-f input:focus, .rq-f textarea:focus, .rq-url__box:focus-within { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 16%, transparent); }
.rq .is-bad, .rq-f .is-bad { border-color: #FF6B6B !important; box-shadow: 0 0 0 4px rgba(255, 90, 90, .14) !important; }
.rq-url { margin-top: 2px; }
.rq-url + .rq-f { margin-top: 14px; }
.rq-url__box { display: flex; align-items: center; gap: 2px; padding: 0 0 0 14px; }
.rq-url__pre { color: var(--mute); font-size: 14px; }
.rq-url__box input { border: 0; background: none; box-shadow: none !important; padding-left: 2px; min-height: 50px; }
.rq-url__box:has(.is-bad) { border-color: #FF6B6B; }

/* segmented choice */
.rq-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.rq-seg__l { width: 100%; font-size: 14px; font-weight: 560; color: var(--ink-2); margin-bottom: 4px; }
.rq-seg label { position: relative; }
.rq-seg input { position: absolute; opacity: 0; inset: 0; }
.rq-seg label span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; cursor: pointer; transition: all .2s; }
.rq-seg label:hover span { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.rq-seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.rq-seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.rq-seg--sm { margin-top: 0; grid-column: 1 / -1; }

/* tiles (platform, priority) */
.rq-tiles { display: grid; gap: 10px; }
.rq-tiles--plat { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); border-radius: 14px; }
.rq-tiles--plat.is-bad { outline: 1px solid #FF6B6B; outline-offset: 4px; }
.rq-tiles--pri { grid-template-columns: repeat(3, 1fr); }
.rq-tile { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .2s, transform .25s var(--ease), background-color .2s; }
.rq-tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rq-tile:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); transform: translateY(-2px); }
.rq-tile:has(input:checked) { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 9%, var(--bg)); box-shadow: inset 0 0 0 1px var(--signal); }
.rq-tile:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.rq-tile--sm { padding: 13px 14px; text-align: center; font-size: 15px; font-weight: 560; color: var(--ink-2); }
.rq-tile--sm:has(input:checked) { color: var(--ink); }
.rq-tile b { font-size: 16px; font-weight: 620; }
.rq-tile small { color: var(--mute); font-size: 13px; }
.rq-tile__i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 7%, transparent); margin-bottom: 6px; }
.rq-tile__i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rq-tile:has(input:checked) .rq-tile__i { background: var(--signal); color: var(--signal-ink); }

/* switch */
.rq-switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; cursor: pointer; font-size: 15px; color: var(--ink-2); position: relative; }
.rq-switch input { position: absolute; opacity: 0; }
.rq-switch__t { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background-color .25s; flex: none; }
.rq-switch__t::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .3s var(--ease); }
.rq-switch input:checked + .rq-switch__t { background: var(--signal); }
.rq-switch input:checked + .rq-switch__t::after { transform: translateX(18px); background: var(--signal-ink); }
.rq-switch input:focus-visible + .rq-switch__t { outline: 2px solid var(--signal); outline-offset: 2px; }
.rq-deadline { margin-top: 16px; }

/* returning client */
.rq-welcome { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; margin-bottom: 26px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--signal) 45%, var(--line)); background: color-mix(in srgb, var(--signal) 8%, var(--bg)); animation: rqIn .5s var(--ease) both; }
.rq-welcome[hidden] { display: none; }
.rq-welcome__mono { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--signal); color: var(--signal-ink); font-weight: 750; font-size: 20px; }
.rq-welcome .mono { color: var(--signal-text); font-size: 11px; margin: 0; }
.rq-welcome b { display: block; font-size: 18px; }
.rq-welcome span:not(.rq-welcome__mono) { color: var(--ink-2); font-size: 14px; }
.rq-welcome__btns { margin-left: auto; display: flex; gap: 8px; }

/* change kinds */
.rq-kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rq-kind { position: relative; display: grid; gap: 3px; align-content: start; text-align: left; padding: 16px; min-height: 124px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; overflow: hidden; transition: border-color .25s, transform .3s var(--ease), box-shadow .3s; }
.rq-kind::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--signal) 18%, transparent), transparent 60%); opacity: 0; transition: opacity .3s; }
.rq-kind:hover, .rq-kind:focus-visible { border-color: var(--signal); transform: translateY(-3px); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--signal) 70%, transparent); outline: none; }
.rq-kind:hover::before, .rq-kind:focus-visible::before { opacity: 1; }
.rq-kind:active { transform: translateY(0) scale(.98); }
.rq-kind__i { position: relative; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 7%, transparent); margin-bottom: 8px; transition: background-color .25s, color .25s; }
.rq-kind:hover .rq-kind__i { background: var(--signal); color: var(--signal-ink); }
.rq-kind__i svg, .rq-item__i svg, .rq-order__i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rq-kind b { position: relative; font-size: 15px; font-weight: 620; }
.rq-kind small { position: relative; color: var(--mute); font-size: 12.5px; line-height: 1.35; }
.rq-kind__plus { position: absolute; top: 12px; right: 14px; font-size: 22px; font-weight: 300; color: var(--mute); transition: transform .3s var(--ease), color .2s; }
.rq-kind:hover .rq-kind__plus { color: var(--signal-text); transform: rotate(90deg); }

/* change cards */
.rq-items { display: grid; gap: 12px; margin-top: 22px; }
.rq-empty { margin: 22px 0 0; padding: 26px; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--mute); }
.rq-empty[hidden] { display: none; }
.rq-empty span { color: var(--signal-text); margin-right: 6px; }
.rq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow: hidden; animation: rqIn .45s var(--ease) both; transition: border-color .25s, box-shadow .25s; }
.rq-item.is-open { border-color: color-mix(in srgb, var(--signal) 55%, var(--line)); box-shadow: 0 20px 50px -34px color-mix(in srgb, var(--signal) 80%, transparent); }
.rq-item__h { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; }
.rq-item__toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 10px; }
.rq-item__toggle:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.rq-item__n { color: var(--mute); font-size: 12px; width: 22px; }
.rq-item__i { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--signal); color: var(--signal-ink); }
.rq-item__t { min-width: 0; display: grid; gap: 1px; }
.rq-item__t b { font-size: 15px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-item__t b i { font-style: normal; font-weight: 400; color: var(--ink-2); }
.rq-item__t small { color: var(--mute); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-item.is-open .rq-item__t small { display: none; }
.rq-item__tools { display: flex; gap: 4px; }
.rq-item__tools .iconbtn { width: 38px; height: 38px; }
.rq-item__tools svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rq-item__b { display: none; padding: 6px 18px 20px; }
.rq-item.is-open .rq-item__b { display: block; animation: rqIn .35s var(--ease) both; }

/* hours/prices rows */
.rq-rows { display: grid; gap: 8px; }
.rq-row { display: grid; grid-template-columns: 1fr 1fr 36px; gap: 8px; }
.rq-row input { min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; }
.rq-row input:focus { outline: none; border-color: var(--signal); }
.rq-presets { display: inline-flex; gap: 6px; margin-left: auto; }
.rq-presets button, .rq-addrow { background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 4px 12px; font: 500 12px var(--f-mono); letter-spacing: .04em; cursor: pointer; }
.rq-presets button:hover, .rq-addrow:hover { border-color: var(--signal); color: var(--signal-text); }
.rq-addrow { justify-self: start; margin-top: 4px; padding: 8px 14px; }
.rq-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--mute); font-size: 18px; cursor: pointer; align-self: center; }
.rq-x:hover { color: #FF7A7A; border-color: #FF7A7A; }

/* files */
.rq-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, var(--line)); border-radius: 16px; background: var(--bg); cursor: pointer; transition: border-color .2s, background-color .2s; }
.rq-drop:hover, .rq-drop.is-over { border-color: var(--signal); background: color-mix(in srgb, var(--signal) 6%, var(--bg)); }
.rq-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rq-drop__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--signal) 14%, transparent); color: var(--signal-text); }
.rq-drop__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rq-drop b { display: block; font-size: 15px; }
.rq-drop small { color: var(--mute); font-size: 11px; }
.rq-drop--mini { padding: 12px 14px; background: var(--card); }
.rq-drop--mini .rq-drop__icon { width: 36px; height: 36px; }
.rq-files { display: grid; gap: 8px; margin-top: 10px; }
.rq-files:empty { display: none; }
.rq-file { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); animation: rqIn .35s var(--ease) both; }
.rq-file__ext { flex: none; width: 42px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 7%, transparent); font-size: 10px; color: var(--ink-2); }
.rq-file__n { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-file__n small { display: block; color: var(--mute); font-size: 12px; }
.rq-file.is-up .rq-file__ext { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--signal) 40%, transparent), transparent) 0 0 / 200% 100%; animation: rqShine 1.1s linear infinite; }
@keyframes rqShine { to { background-position: -200% 0; } }

/* review document */
.rq-doc { position: relative; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.rq-doc__head { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.rq-doc__head .mono { color: var(--mute); font-size: 10px; margin: 0 0 4px; }
.rq-doc__head b { display: block; font-size: 16px; }
.rq-doc__head span { color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.rq-doc__items { display: grid; }
.rq-doc__items > li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.rq-doc__items > li:first-child { border-top: 0; }
.rq-doc__n { color: var(--signal-text); font-size: 13px; padding-top: 2px; }
.rq-doc__items b { font-size: 15px; }
.rq-doc dl { display: grid; gap: 4px; margin: 8px 0 0; }
.rq-doc dl > div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 14px; }
.rq-doc dt { color: var(--mute); }
.rq-doc dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.rq-edit { background: none; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; align-self: start; }
.rq-edit:hover { border-color: var(--signal); color: var(--signal-text); }
.rq-edit--items { margin: 0 20px 16px 66px; }

/* approval */
.rq-check { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rq-check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--signal); }
.rq-check.is-bad { border-color: #FF6B6B; }
.rq-sign { margin-top: 16px; }
.rq-sign input { font-family: var(--f-serif); font-style: italic; font-size: 26px; min-height: 60px; letter-spacing: .01em; }

/* bottom nav */
.rq-error { color: #FF8A8A; margin: 18px 0 0; min-height: 0; font-size: 15px; }
.rq-error:empty { display: none; }
.rq-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.rq-nav[hidden] { display: none; }
.rq-nav [data-back][hidden] { display: inline-flex; visibility: hidden; }
.rq-saved { color: var(--mute); font-size: 11px; opacity: .55; transition: opacity .3s, color .3s; }
.rq-saved.is-on { opacity: 1; color: #3DDC97; }
.rq-saved.is-on::before { content: "✓ "; }

/* done screen sits full width */
.rq-app.is-done .rq-main { max-width: 860px; margin-inline: auto; width: 100%; }

/* live work order */
.rq-order { position: sticky; top: 96px; }
.rq-order[hidden] { display: none; }
.rq-order__in { border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--card) 92%, transparent); padding: 20px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.rq-order__in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--signal), color-mix(in srgb, var(--signal) 30%, transparent)); }
.rq-order__t { color: var(--signal-text); font-size: 11px; margin: 0; }
.rq-order__site { display: flex; gap: 12px; align-items: center; }
.rq-order__mono { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 750; font-size: 18px; flex: none; }
.rq-order__site b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.rq-order__site small { color: var(--mute); font-size: 13px; }
.rq-order__list { display: grid; gap: 2px; max-height: 320px; overflow: auto; margin: 0 -6px; }
.rq-order__list li { display: grid; grid-template-columns: 22px 28px 1fr; gap: 8px; align-items: center; padding: 8px 6px; border-radius: 10px; animation: rqIn .35s var(--ease) both; }
.rq-order__list li:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.rq-order__list .mono { color: var(--mute); font-size: 11px; }
.rq-order__i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--signal) 16%, transparent); color: var(--signal-text); }
.rq-order__i svg { width: 15px; height: 15px; }
.rq-order__list b { display: block; font-size: 14px; }
.rq-order__list small { display: block; color: var(--mute); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-order__none { display: block !important; color: var(--mute); font-size: 14px; padding: 12px 6px !important; border: 1px dashed var(--line); text-align: center; }
.rq-order__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding-top: 14px; border-top: 1px dashed var(--line); }
.rq-order__meta dt { color: var(--mute); font: 500 10px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.rq-order__meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.rq-order__est { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--signal) 8%, transparent); color: var(--ink-2); font-size: 13px; line-height: 1.45; }
.rq-order__est svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--signal-text); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* the old status flow below stays, a little tighter */
.page-updates .cu-status { padding-top: 0; }

@media (max-width: 1100px) {
  .rq-app { grid-template-columns: 1fr; }
  .rq-order { position: static; order: -1; }
  .rq-order__in { padding: 14px 16px; gap: 10px; border-radius: 16px; }
  .rq-order__list, .rq-order__est, .rq-order__t { display: none; }
  .rq-order__in { grid-template-columns: 1fr auto; align-items: center; }
  .rq-order__meta { border: 0; padding: 0; grid-template-columns: repeat(2, auto); gap: 14px; }
  .rq-order__meta > div:last-child { display: none; }
  .rq-kinds { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rq-grid { grid-template-columns: 1fr; }
  .rq-stages button { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 12px; }
  .rq-stages small { display: none; }
  .rq-stages b { font-size: 13px; }
  .rq-tiles--pri { grid-template-columns: 1fr; }
  .rq-kind { min-height: 0; padding: 14px; }
  .rq-kind small { display: none; }
  .rq-doc__head { grid-template-columns: 1fr; }
  .rq-doc dl > div { grid-template-columns: 1fr; gap: 0; }
  .rq-edit--items { margin-left: 20px; }
  .rq-item__b { padding: 4px 12px 16px; }
  .rq-row { grid-template-columns: 1fr 1fr 32px; }
  .rq-presets { margin-left: 0; }
  .rq-welcome__btns { margin-left: 0; width: 100%; }
  .rq-nav { flex-wrap: wrap; }
  .rq-saved { order: 3; width: 100%; text-align: center; }
  .rq-nav .btn { flex: 1 1 auto; justify-content: center; }
  .rq-order__site b { max-width: 150px; }
}
html.calm .rq-stage, html.calm .rq-item, html.calm .rq-file, html.calm .rq-order__list li { animation: none; }

/* hidden stages stay hidden (the done screen has its own display rule in updates.css) */
.rq-stage[hidden] { display: none !important; }
.rq-grid[hidden], .rq-deadline[hidden] { display: none !important; }
@media (max-width: 640px) { .rq-item__n { display: none; } .rq-item__toggle { gap: 10px; padding: 8px; } .rq-item__tools .iconbtn { width: 34px; height: 34px; } }

/* ===== pages → changes + photo galleries ===== */
.rq-group--flush { padding-bottom: 0; }
.rq-pages { display: grid; gap: 18px; margin-top: 6px; }
.rq-page { border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--bg) 70%, var(--card)); padding: 16px; display: grid; gap: 14px; transition: border-color .3s, box-shadow .3s; animation: rqIn .45s var(--ease) both; }
.rq-page.is-active { border-color: color-mix(in srgb, var(--signal) 45%, var(--line)); box-shadow: 0 30px 70px -50px color-mix(in srgb, var(--signal) 90%, transparent); }
.rq-page__h { display: flex; align-items: center; gap: 12px; }
.rq-page__n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 750; font-size: 17px; }
.rq-page.is-active .rq-page__n { background: var(--signal); color: var(--signal-ink); }
.rq-page__name { flex: 1; min-width: 0; }
.rq-page__name input { width: 100%; min-height: 50px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 19px; font-weight: 620; letter-spacing: -.01em; }
.rq-page__name input::placeholder { font-weight: 400; font-size: 16px; color: var(--mute); }
.rq-page__name input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 16%, transparent); }
.rq-page__h .iconbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rq-page .rq-items { margin-top: 0; }
.rq-page .rq-items:empty { display: none; }
.rq-addkind__t { margin: 0 0 10px; font-size: 14px; font-weight: 560; color: var(--ink-2); }
.rq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; font-weight: 560; cursor: pointer; transition: border-color .2s, transform .25s var(--ease), background-color .2s; }
.rq-chip span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 8%, transparent); transition: background-color .2s, color .2s; }
.rq-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rq-chip:hover, .rq-chip:focus-visible { border-color: var(--signal); transform: translateY(-2px); outline: none; }
.rq-chip:hover span, .rq-chip:focus-visible span { background: var(--signal); color: var(--signal-ink); }
.rq-gallery { border-top: 1px dashed var(--line); padding-top: 14px; border-radius: 0 0 12px 12px; transition: background-color .2s; }
.rq-gallery.is-over { background: color-mix(in srgb, var(--signal) 6%, transparent); }
.rq-gallery__t { margin: 0 0 10px; font-size: 14px; font-weight: 560; color: var(--ink-2); }
.rq-gallery__t small { display: block; font-weight: 400; color: var(--mute); font-size: 12px; }
.rq-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.rq-thumbs.is-over { outline: 2px dashed var(--signal); outline-offset: 4px; border-radius: 12px; }
.rq-thumbs--general { margin-top: 12px; }
.rq-thumbs--general:empty { display: none; }
.rq-thumb { position: relative; margin: 0; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); background: var(--card); overflow: hidden; display: grid; place-items: center; animation: rqIn .35s var(--ease) both; }
.rq-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rq-thumb__ext { font-size: 13px; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.rq-thumb figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-thumb__x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(10, 9, 13, .75); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; opacity: .85; transition: background-color .2s, opacity .2s; }
.rq-thumb__x:hover { background: #FF5A5A; opacity: 1; }
.rq-thumb.is-up .rq-thumb__ext { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--signal) 45%, transparent), transparent) 0 0 / 200% 100%; animation: rqShine 1.1s linear infinite; }
.rq-thumb--add { cursor: pointer; border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--bg); gap: 6px; align-content: center; color: var(--mute); transition: border-color .2s, color .2s, background-color .2s; }
.rq-thumb--add:hover { border-color: var(--signal); color: var(--signal-text); background: color-mix(in srgb, var(--signal) 6%, var(--bg)); }
.rq-thumb--add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rq-thumb__plus { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--signal) 14%, transparent); color: var(--signal-text); }
.rq-thumb__plus svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rq-thumb--add small { font-size: 12px; }
.rq-addpage { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 64px; margin-top: 16px; border-radius: 18px; border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, var(--line)); background: none; color: var(--ink-2); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.rq-addpage span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-size: 20px; font-weight: 400; line-height: 1; }
.rq-addpage:hover { border-color: var(--signal); color: var(--ink); background: color-mix(in srgb, var(--signal) 5%, transparent); }
.rq-addpage:hover span { background: var(--signal); color: var(--signal-ink); }
.rq-doc__page + .rq-doc__page, .rq-doc__head + .rq-doc__page { border-top: 1px solid var(--line); }
.rq-doc__ph { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 20px 4px; font-size: 17px; font-weight: 640; }
.rq-doc__ph .mono { font-size: 10px; color: var(--bg); background: var(--ink); padding: 3px 8px; border-radius: 999px; font-weight: 500; }
.rq-doc__page .rq-doc__items > li:first-child { border-top: 0; }
.rq-doc__files { margin: 0; padding: 4px 20px 16px 66px; font-size: 14px; color: var(--ink-2); }
.rq-doc__files .mono { display: block; font-size: 10px; color: var(--mute); margin-bottom: 2px; }
@media (max-width: 640px) {
  .rq-page { padding: 12px; border-radius: 16px; }
  .rq-page__n { width: 34px; height: 34px; font-size: 15px; }
  .rq-page__name input { font-size: 17px; min-height: 46px; }
  .rq-chip { font-size: 13px; min-height: 40px; }
  .rq-thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rq-doc__files { padding-left: 20px; }
}

/* returning clients: track existing requests */
.rq-track { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 0 22px; padding: 14px 18px; border-radius: 16px; border: 1px solid color-mix(in srgb, #FF3B3B 55%, var(--line)); background: color-mix(in srgb, #FF3B3B 7%, var(--card)); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease), background-color .2s; }
.rq-track:hover { border-color: #FF3B3B; transform: translateY(-2px); background: color-mix(in srgb, #FF3B3B 11%, var(--card)); }
.rq-track__i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #FF3B3B; color: #fff; }
.rq-track__i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rq-track b { display: block; font-size: 17px; font-weight: 700; }
.rq-track small { display: block; color: var(--ink-2); font-size: 14px; }
.rq-track__go { margin-left: auto; flex: none; font-weight: 800; color: #FF3B3B; white-space: nowrap; }
.rq-welcome__no { background: none; border: 0; color: var(--mute); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
@media (max-width: 640px) {
  .rq-track { flex-wrap: wrap; }
  .rq-track__go { margin-left: 56px; }
}
