/* ============================================================================
   AutoFront Studio — premium design language (P1).
   Linear/Figma-grade light chrome: refined neutrals, ONE accent, layered soft
   shadows, crisp hairlines, calm motion. No rainbow borders. Every selector the
   markup + app.js use is preserved — this restyles, it does not restructure.
   ============================================================================ */
:root {
  /* surfaces + ink */
  --bg: #f4f5fa; --surface: #ffffff; --surface-2: #fbfbfe; --line: #e7e8f0;
  --line-soft: #eef0f6; --ink: #16161f; --ink-2: #41435a; --dim: #8688a0;
  /* one accent (refined violet→pink, used sparingly) */
  --brand1: #6d5cff; --brand2: #d957c8; --accent: #6d5cff;
  --grad: linear-gradient(135deg, #6d5cff, #b45cf0);
  /* semantic */
  --ok: #10b981; --warn: #f59e0b; --danger: #f43f5e; --info: #3b82f6;
  /* depth (layered, soft) */
  --sh-1: 0 1px 2px rgba(22,22,40,.05), 0 1px 1px rgba(22,22,40,.04);
  --sh-2: 0 4px 16px rgba(40,30,90,.07), 0 1px 3px rgba(40,30,90,.05);
  --sh-3: 0 18px 50px rgba(30,20,70,.16);
  --r-sm: 9px; --r: 13px; --r-lg: 18px;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --left: 240px; --right: 380px; --chat: 230px;
  --ease: cubic-bezier(.4,0,.2,1);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background:
    radial-gradient(900px 500px at 88% -8%, rgba(109,92,255,.06), transparent 70%),
    radial-gradient(700px 500px at -5% 110%, rgba(217,87,200,.05), transparent 70%),
    var(--bg);
  color: var(--ink); font: 14px/1.55 var(--sans);
  display: grid; grid-template-rows: 56px 1fr; height: 100vh; overflow: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
.dim { color: var(--dim); }
.spacer { flex: 1; }

/* ── top command bar ── */
#topbar {
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); box-shadow: var(--sh-1); z-index: 50;
}
.brand { font-weight: 750; font-size: 16px; letter-spacing: -.02em; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.brand .logo { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 19px; }
.brand-sub { color: var(--dim); font-weight: 600; }
.top-controls { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.provider-wrap { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 5px 9px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #cfd0dc; transition: .2s var(--ease); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(16,185,129,.16); }
select, input, textarea { font-family: inherit; color: var(--ink); }
select { border: none; background: transparent; outline: none; font-weight: 600; cursor: pointer; }
.projects-select { background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 6px 11px; max-width: 200px; transition: .15s var(--ease); }
.projects-select:hover { border-color: #d8d9e6; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px 10px; outline: none; font-size: 12px; width: 130px; transition: .15s var(--ease); }
.mini:focus, textarea:focus, .chat-input:focus, .composer-input:focus { border-color: var(--brand1); box-shadow: 0 0 0 3px rgba(109,92,255,.13); }

.btn { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 13px; cursor: pointer; font-weight: 600; transition: .15s var(--ease); }
.btn:hover { border-color: #d6d7e4; box-shadow: var(--sh-1); color: var(--ink); }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.btn.grad { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(109,92,255,.28); }
.btn.grad:hover { filter: brightness(1.05); box-shadow: 0 6px 18px rgba(109,92,255,.34); }
.btn.primary { font-weight: 700; }
.btn.soft { background: rgba(109,92,255,.08); border-color: rgba(109,92,255,.2); color: var(--brand1); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn.danger { background: rgba(244,63,94,.07); border-color: rgba(244,63,94,.2); color: var(--danger); }
.icon { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 15px; padding: 3px 6px; border-radius: 7px; transition: .12s var(--ease); }
.icon:hover { background: var(--surface-2); color: var(--ink); }
.chip { font-size: 11px; padding: 4px 11px; border-radius: 999px; font-weight: 700; }
.phase-idle { background: rgba(16,185,129,.12); color: var(--ok); }
.phase-running { background: rgba(245,158,11,.14); color: var(--warn); }

/* ── layout + panes ──
   Files (full-height left) · center column = Editor (top) + Chat (bottom) · Preview (FULL-height right).
   grid-areas place the panes regardless of DOM order, so the preview is the entire right side. */
#content {
  display: grid;
  grid-template-columns: var(--left) 8px 1fr 8px var(--right);
  grid-template-rows: 1fr 6px var(--chat);
  grid-template-areas:
    "files vrl editor vrr preview"
    "files vrl ehr    vrr preview"
    "files vrl chat   vrr preview";
  padding: 10px; gap: 0; min-height: 0;
}
#files-pane { grid-area: files; }
#editor-pane { grid-area: editor; }
#chat-pane { grid-area: chat; margin: 0; }
#right-pane { grid-area: preview; }
#content > .vr[data-resize="left"] { grid-area: vrl; }
#content > .vr[data-resize="right"] { grid-area: vrr; }
#content > .hr[data-resize="chat"] { grid-area: ehr; }
.pane {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden; box-shadow: var(--sh-2);
}
.pane.max { position: fixed; inset: 14px; z-index: 1000; box-shadow: var(--sh-3); border-radius: 20px; }
.pane-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 12.5px;
  border-bottom: 1px solid var(--line-soft); background: var(--surface);
}
.pane-head.sub { border-top: 1px solid var(--line-soft); }
.ph-title { font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.pane-body { flex: 1; min-height: 0; overflow: auto; }
.pane.max .icon.max { color: var(--danger); }

/* resizers */
.vr { cursor: col-resize; display: flex; align-items: center; justify-content: center; }
.vr::before { content: ""; width: 3px; height: 34px; border-radius: 3px; background: var(--line); transition: .15s var(--ease); }
.vr:hover::before { background: var(--brand1); height: 58px; }
.hr { cursor: row-resize; display: flex; align-items: center; justify-content: center; }
.hr::before { content: ""; height: 3px; width: 44px; border-radius: 3px; background: var(--line); transition: .15s var(--ease); }
.hr:hover::before { background: var(--brand1); width: 88px; }

/* file tree */
.tree { list-style: none; margin: 0; padding: 8px; font-family: var(--mono); font-size: 13px; }
.tree ul { list-style: none; margin: 0; padding-left: 14px; }
.node { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap; color: var(--ink-2); transition: .12s var(--ease); }
.node:hover { background: var(--surface-2); color: var(--ink); }
.node.active { background: rgba(109,92,255,.1); color: var(--brand1); font-weight: 600; }

/* editor */
#editor { width: 100%; height: 100%; resize: none; border: none; outline: none; background: var(--surface);
  font-family: var(--mono); font-size: 13.5px; padding: 16px; line-height: 1.7; color: #23233a; }
#filename { font-size: 12px; }

/* preview */
.preview-body { background: #eceef4; display: flex; align-items: flex-start; justify-content: center; overflow: auto; }
#preview { width: 100%; height: 100%; min-height: 150px; border: none; background: #fff; }

/* marketplace */
.bundles { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 13px; }
.bundle { font-size: 12px; font-weight: 650; padding: 6px 13px; border-radius: 999px; cursor: pointer; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface-2); transition: .15s var(--ease); }
.bundle:hover { border-color: var(--brand1); color: var(--brand1); transform: translateY(-1px); box-shadow: var(--sh-1); }
.catalog { padding: 2px 12px 8px; }
.cat-head { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 11px 6px 4px; color: var(--dim); }
.mcp { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 9px; font-size: 13px; cursor: pointer; color: var(--ink-2); transition: .12s var(--ease); }
.mcp:hover { background: var(--surface-2); color: var(--ink); }
.mcp input { accent-color: var(--brand1); }
.star { color: var(--warn); }
.config { margin: 10px 12px; padding: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); font-family: var(--mono); font-size: 11.5px; max-height: 170px; overflow: auto; white-space: pre-wrap; }
#activate-btn { margin: 6px 12px 12px; width: calc(100% - 24px); }

/* ── chat ── */
#chat-pane { margin: 0 10px 10px; }
.chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface-2); }
.empty { margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 13px; }
.empty-logo { font-weight: 750; font-size: 17px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty-bot { width: 62px; height: 62px; border-radius: 18px; background: linear-gradient(135deg,#efe9ff,#fbe9f6); display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: var(--sh-2); }
.empty-title { font-size: 17px; font-weight: 650; margin-top: 8px; color: var(--ink); }
.empty-sub { font-size: 13px; color: var(--dim); max-width: 460px; margin: 6px auto 0; line-height: 1.55; }
.empty-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.empty-chips .chip, .chip[data-ex] { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .15s var(--ease); }
.empty-chips .chip:hover, .chip[data-ex]:hover { border-color: var(--brand1); color: var(--brand1); transform: translateY(-1px); box-shadow: var(--sh-1); }
.msg { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; animation: rise .22s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }
.msg.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 5px 16px rgba(109,92,255,.24); }
.msg.assistant { align-self: flex-start; display: flex; gap: 10px; background: transparent; border: none; box-shadow: none; padding: 0; max-width: 86%; }
.msg.assistant .avatar { width: 29px; height: 29px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: 0 0 auto; box-shadow: 0 3px 10px rgba(109,92,255,.3); }
.msg.assistant .content { background: var(--surface); border: 1px solid var(--line); border-radius: 15px 15px 15px 5px; padding: 11px 15px; box-shadow: var(--sh-1); }
.msg.assistant .who { font-size: 10.5px; font-weight: 800; color: var(--dim); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .06em; }
.msg.tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: rgba(109,92,255,.07); border: 1px solid rgba(109,92,255,.16); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; color: var(--brand1); font-weight: 600; max-width: 86%; }
.msg.tool .tdot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand1); flex: 0 0 auto; }
.msg.command { align-self: flex-start; background: var(--surface-2); color: var(--ink-2); font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line); border-radius: 12px; }
.msg.system { align-self: center; background: rgba(109,92,255,.06); color: var(--dim); font-size: 12px; border-radius: 12px; padding: 7px 13px; }
.typing { display: flex; gap: 5px; padding: 3px 0 1px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand1); animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.composer { padding: 12px 14px; border-top: 1px solid var(--line-soft); background: var(--surface); }
.composer-input { width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; outline: none; font-size: 14.5px; transition: .15s var(--ease); }
.composer-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.mode { font-size: 12px; font-weight: 700; color: var(--warn); background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.22); border-radius: 999px; padding: 4px 11px; }
.send-arrow { width: 42px; height: 38px; border-radius: 12px; border: none; background: var(--grad); color: #fff; font-size: 18px; cursor: pointer; box-shadow: 0 5px 14px rgba(109,92,255,.28); transition: .15s var(--ease); }
.send-arrow:hover { transform: translateY(-1px); filter: brightness(1.05); }
.voice-hint { font-size: 12px; color: var(--brand1); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mic { font-size: 18px; width: 44px; height: 38px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; user-select: none; transition: .15s var(--ease); }
.mic:hover { border-color: var(--brand1); }
.mic.listening { background: var(--danger); border-color: var(--danger); color: #fff; animation: mic 1.2s infinite; }
@keyframes mic { 0%,100% { box-shadow: 0 0 0 0 rgba(244,63,94,.4); } 50% { box-shadow: 0 0 0 9px rgba(244,63,94,0); } }

/* ── guide ── */
.guide { position: fixed; inset: 0; background: rgba(20,14,46,.34); display: flex; align-items: center; justify-content: center; z-index: 2000; backdrop-filter: blur(5px); }
.guide[hidden] { display: none; }
.guide-card { position: relative; background: var(--surface); border-radius: 22px; padding: 30px 34px; max-width: 460px; box-shadow: var(--sh-3); border: 1px solid var(--line); }
.guide-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; }
.guide-x { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 18px; color: var(--dim); cursor: pointer; }
.steps { margin: 16px 0 22px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.steps b { color: var(--brand1); }

/* marketplace credential badges */
.cred { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; vertical-align: middle; }
.cred.free  { background: rgba(16,185,129,.13); color: #059669; }
.cred.oauth { background: rgba(99,102,241,.13); color: #4f46e5; }
.cred.skill { background: rgba(109,92,255,.14); color: var(--brand1); border: 1px solid rgba(109,92,255,.32); }

/* ── device emulator ── */
.dev-toggle { display: inline-flex; gap: 2px; margin: 0 4px; }
.dev-toggle .btn.on { background: var(--brand1); color: #fff; border-color: transparent; }
.device { background: #fff; transition: width .22s var(--ease), height .22s var(--ease); }
.device-desktop { width: 100%; height: 100%; }
.device-desktop > #preview { width: 100%; height: 100%; }
.device-mobile, .device-tablet { margin: 16px auto; border: 12px solid #15161d; box-shadow: var(--sh-3); overflow: hidden; background: #000; flex: 0 0 auto; }
.device-mobile { width: 390px; height: 844px; border-radius: 44px; }
.device-tablet { width: 820px; height: 1180px; border-radius: 28px; border-width: 14px; }
.device-mobile > #preview, .device-tablet > #preview { width: 100%; height: 100%; border: none; border-radius: 30px; background: #fff; }

/* ── command-bar dropdowns + marketplace side-drawer (P1) ── */
.topdrop { font-size: 13px; font-weight: 650; }
.dropdown-panel { position: fixed; top: 52px; left: 16px; z-index: 200; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 7px; min-width: 380px; animation: rise .18s var(--ease); }
.dropdown-panel[hidden] { display: none; }
.dd-row { display: flex; gap: 12px; padding: 9px 11px; border-radius: 9px; font-size: 13px; }
.dd-row:hover { background: var(--surface-2); }
.dd-row b { color: var(--ink); min-width: 84px; font-weight: 700; }
.dd-row span { color: var(--dim); }
.dd-sub { font-size: 11px; color: var(--dim); font-weight: 600; }

.drawer-overlay { position: fixed; inset: 0; background: rgba(20,14,46,.26); z-index: 900; backdrop-filter: blur(2px); animation: rise .18s var(--ease); }
.drawer-overlay[hidden] { display: none; }
.drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(440px, 92vw); z-index: 950; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--sh-3); display: flex; flex-direction: column; }
.drawer[hidden] { display: none; }
.drawer:not([hidden]) { animation: drawerIn .24s var(--ease); }
@keyframes drawerIn { from { transform: translateX(28px); opacity: .4; } }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 15px 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.drawer-body { flex: 1; overflow: auto; padding-bottom: 14px; }

/* component blocks injected by app.js (discovery / quick-pick / connect) inherit the tokens above */

.btn.on { background: var(--brand1); color: #fff; border-color: transparent; }

/* ── canvas editor inspector (P4 stage 2) ── */
.inspector { position: fixed; right: 18px; bottom: 18px; z-index: 960; width: 252px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); padding: 12px 14px; animation: rise .18s var(--ease); }
.inspector[hidden] { display: none; }
.insp-head { display: flex; align-items: center; margin-bottom: 9px; }
.insp-head b { font-size: 12.5px; color: var(--brand1); font-family: var(--mono); }
.insp-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 12.5px; color: var(--ink-2); }
.insp-row > span:first-child { width: 52px; color: var(--dim); }
.insp-row input[type=range] { flex: 1; accent-color: var(--brand1); }
.insp-row select { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; }
.insp-row input[type=color] { width: 42px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; padding: 2px; }
.insp-align { display: flex; gap: 4px; flex: 1; }
.insp-align button { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 0; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.insp-align button.on { background: var(--brand1); color: #fff; border-color: transparent; }

/* ── dockable panels (drag a pane header onto another to swap) ── */
.pane.dragging { opacity: .5; }
.pane.dock-target { outline: 2px dashed var(--brand1); outline-offset: -3px; }
.pane-head[draggable="true"] { cursor: grab; }
.pane-head[draggable="true"]:active { cursor: grabbing; }

/* layout presets are clickable (Tech Stack rows are read-only info) */
.layout-opt { cursor: pointer; }
.layout-opt:hover { background: rgba(109,92,255,.1); }
.layout-opt b { color: var(--brand1); }

/* ── AI account connect panel (universal CLI — one tap) ── */
.ai-connect { right: 18px; left: auto; min-width: 330px; }
.ai-connect .dd-head { font-size: 12px; font-weight: 800; color: var(--ink); padding: 4px 10px 10px; }
.ai-connect .dd-note { font-size: 11px; color: var(--dim); padding: 0 10px 8px; }
.ai-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border-radius: 10px; }
.ai-row:hover { background: var(--surface-2); }
.ai-name { font-size: 13px; font-weight: 650; color: var(--ink); display: flex; flex-direction: column; }
.ai-name small { font-size: 11px; font-weight: 500; color: var(--dim); margin-top: 1px; }
.ai-ok { font-size: 11px; color: var(--ok); font-weight: 600; }
.ai-miss { font-size: 11px; color: var(--dim); }

/* ── compare mode (two providers side by side) ── */
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.compare-col { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--sh-1); }
.compare-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border-bottom: 1px solid var(--line-soft); font-weight: 700; font-size: 12.5px; background: var(--surface-2); }
.compare-body { padding: 10px 12px; font-size: 13px; white-space: pre-wrap; line-height: 1.5; min-height: 56px; max-height: 320px; overflow: auto; color: var(--ink-2); }

/* ── Hire an engineer (Orqent Labs) ── */
.hire-overlay { position: fixed; inset: 0; background: rgba(20,16,40,.45); backdrop-filter: blur(3px); z-index: 400; }
.hire-overlay[hidden], .hire-modal[hidden] { display: none; }
.hire-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 401; width: min(560px,92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-3); padding: 22px; animation: rise .2s var(--ease); }
.hire-head { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.hire-note { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 16px; line-height: 1.5; }
.hire-in { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: 13.5px; margin-bottom: 10px; outline: none; font-family: inherit; box-sizing: border-box; }
.hire-in:focus { border-color: var(--brand1); box-shadow: 0 0 0 3px rgba(109,92,255,.13); }
.hire-row { display: flex; gap: 10px; }
.hire-row .hire-in { flex: 1; }
.hire-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.hire-result { font-size: 13px; margin-top: 12px; line-height: 1.5; }
.hire-result.ok { color: var(--ok); }
.hire-result.err { color: var(--danger); }

/* customer bid-tracker in the Hire panel */
.hire-mine { margin-top: 16px; }
.hire-mine-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 8px; }
.hire-mine-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 6px; font-size: 13px; }
.hm-title { color: var(--ink); font-weight: 600; }
.hm-st { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.hm-open { background: rgba(59,130,246,.12); color: var(--info); }
.hm-awarded, .hm-funded, .hm-in_progress { background: rgba(245,158,11,.14); color: var(--warn); }
.hm-released { background: rgba(16,185,129,.16); color: var(--ok); }
.hm-refunded, .hm-cancelled { background: rgba(244,63,94,.12); color: var(--danger); }
