/* Jade Arc studio desk: a calm working surface. Same type and jade as the site, none of the theatre. */
@font-face { font-family: "Geologica"; src: url("/assets/fonts/geologica-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: only light;
  --bg: #f6f7f6; --paper: #fff; --ink: #121614; --muted: #5d6661; --line: #dfe3e0;
  --jade: #0f4a3c; --jade-soft: #e4efeb; --warn: #8a4b0f; --warn-soft: #fbeedd;
  --r: 10px; --sans: "Geologica", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
a { color: var(--jade); }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.loading, .empty { color: var(--muted); }
.loading { padding: 40px; }

input, select, textarea { width: 100%; padding: 9px 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
input:focus, select:focus, textarea:focus { border-color: var(--jade); outline: none; box-shadow: 0 0 0 3px var(--jade-soft); }
textarea { resize: vertical; }
label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; }
label small { color: var(--muted); font-weight: 400; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; accent-color: var(--jade); }
.solid, .ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 8px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .1s; }
.solid { background: var(--jade); color: #fff; border: 0; }
.solid:hover { background: #0b3a2f; }
.solid:active, .ghost:active { transform: translateY(1px); }
.solid:disabled { opacity: .6; cursor: progress; }
.ghost { background: none; border: 1px solid var(--line); }
.ghost:hover { border-color: var(--ink); }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; }
.actions .check { margin-right: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 13px; }
.big { margin: 2px 0; font-size: 17px; font-weight: 600; }
.muted { color: var(--muted); }

/* bar */
.bar { display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 3vw, 32px); background: var(--paper); border-bottom: 1px solid var(--line); }
.bar-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.bar-brand svg { width: 22px; height: 22px; fill: url(#gold); }
.bar-label { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); }
.bar-who { margin-left: auto; color: var(--muted); font-size: 13px; }
.demo-flag { margin: 0; padding: 8px clamp(16px, 3vw, 32px); background: var(--warn-soft); color: var(--warn); font-size: 13px; }

/* sign in */
.signin { max-width: 400px; margin: 12vh auto; padding: 0 20px; }
.signin-mark { width: 40px; height: 40px; fill: url(#gold); }
.signin h1 { margin-top: 18px; font-size: 30px; }
.signin > p { color: var(--muted); }
.signin form { display: grid; gap: 10px; margin-top: 24px; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }

/* stage track */
.track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 20px 0; padding: 0; list-style: none; }
.track li { padding-top: 10px; border-top: 3px solid var(--line); color: var(--muted); font-size: 12px; }
.track li.done { border-color: var(--jade); }
.track li.now { border-color: var(--jade); color: var(--ink); font-weight: 600; }
.track li.now span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--jade); vertical-align: 1px; }

/* feed */
.feed { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.feed li { padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.feed li.internal { border-style: dashed; background: #fcfcfb; }
.feed p { margin: 0; }
.feed .feed-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 4px; font-size: 13px; }
.feed-meta time { margin-left: auto; color: var(--muted); }
.tag { padding: 1px 7px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: 11px; }

/* studio desk */
.stats { display: flex; flex-wrap: wrap; gap: 8px 32px; padding: 14px clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); background: var(--paper); }
.stats p { margin: 0; color: var(--muted); }
.stats b { margin-right: 4px; color: var(--ink); font-size: 20px; }
.desk { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; min-height: calc(100vh - 120px); }
.list { padding: 20px; border-right: 1px solid var(--line); background: var(--paper); }
.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.list-head h1 { font-size: 20px; }
.rows { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; }
.row { display: grid; gap: 2px; width: 100%; padding: 10px 12px; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; }
.row:hover { background: var(--bg); }
.row.on { background: var(--jade-soft); border-color: #c7dcd4; }
.row-top { display: flex; justify-content: space-between; gap: 8px; }
.row-sub { font-size: 13px; }
.row-meta { color: var(--muted); font-size: 12px; }
.pill { padding: 1px 8px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); font-size: 11px; white-space: nowrap; }
.dot { margin-right: 6px; color: var(--warn); font-weight: 600; }
.dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.detail { padding: clamp(20px, 3vw, 36px); max-width: 1100px; }
.d-head h2 { margin: 4px 0; font-size: 26px; }
.contact { margin: 0; color: var(--muted); }
.stage-row { display: flex; gap: 12px; flex-wrap: wrap; }
.stage-row label:first-child { width: 170px; }
.grow { flex: 1; min-width: 220px; }
.meet-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.meet-sum > div, .card { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.meet-sum p, .card p { margin: 0; }
.meet-sum p:last-child, .card p:last-child { color: var(--muted); }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
.cols h3 { margin-bottom: 10px; font-size: 16px; }
.cols form { display: grid; gap: 10px; }
.empty-state { max-width: 460px; margin: 10vh auto; text-align: center; }
.empty-state p { color: var(--muted); }

dialog { width: min(640px, 92vw); padding: 24px; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgb(15 40 32 / .25); }
dialog::backdrop { background: rgb(18 22 20 / .4); }
dialog h2 { margin-bottom: 16px; font-size: 20px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* meeting requests */
.stats .hot { color: var(--warn); }
.stats .hot b { color: var(--warn); }
.asks { margin: 20px 0; padding: 16px; background: var(--warn-soft); border-radius: var(--r); }
.asks h3 { margin-bottom: 10px; font-size: 15px; color: var(--warn); }
.ask { display: grid; grid-template-columns: 1fr 220px auto; gap: 12px; align-items: end; padding: 12px 0; border-top: 1px solid #f0d9bb; }
.ask p { margin: 0; }
.ask .actions { margin: 0; }
.asks-c { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.tag.no { background: #f6e1de; color: #8f2a1d; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 12px; }
.c-sec { margin-top: 36px; }
.c-sec h2 { margin-bottom: 12px; font-size: 20px; }

/* materials */
.mat-sec { margin-top: 32px; }
.mat-sec h3 { margin-bottom: 10px; font-size: 16px; }
.mat-sec h3 small { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 400; }
.mat-add { display: grid; grid-template-columns: 1.4fr 1fr 160px auto; gap: 10px; align-items: end; }
.mats { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.mats li { display: grid; grid-template-columns: 1.4fr 150px 1fr 90px; gap: 14px; align-items: center; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.mat-name { display: grid; }
.mat-name small { color: var(--muted); font-size: 12px; }
.mats .pill { justify-self: start; }
.mat-bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mat-bar i { display: block; height: 100%; background: var(--jade); }
.mats time { color: var(--muted); font-size: 12px; text-align: right; }

@media (max-width: 860px) {
  .ask, .grid3, .mat-add { grid-template-columns: 1fr; }
  .mats li { grid-template-columns: 1fr auto; }
  .mat-bar { grid-column: 1 / -1; }
  .mats time { display: none; }
  .desk, .cols, .meet-sum { grid-template-columns: 1fr; }
  .list { border-right: 0; border-bottom: 1px solid var(--line); }
  .rows { max-height: 40vh; overflow: auto; }
  .track { grid-template-columns: repeat(4, 1fr); row-gap: 12px; }
  .bar-who { display: none; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* aligned with the public site */
.bar { min-height: 64px; }
.bar-brand { font-size: 13px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.bar-brand svg { width: 24px; height: 24px; }
.solid, .ghost { border-radius: 99px; padding: 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.demo-flag { background: var(--jade-soft); color: var(--jade); }
.signin h1, .d-head h2 { font-weight: 600; letter-spacing: -.03em; }
.card, .meet-sum > div, .feed li, .mats li { border-radius: 14px; }

/* tabs */
.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tabs button { padding: 7px 14px; background: none; border: 0; border-radius: 99px; color: var(--muted); font-weight: 500; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--jade-soft); color: var(--jade); }

/* enquiry pipeline */
.pipe { padding: 18px clamp(16px, 3vw, 32px) 40px; }
.pipe-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.pipe-head h1 { margin-right: auto; font-size: 20px; }
.pipe-head input[type="search"] { width: 260px; }
.seg { display: inline-flex; padding: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; }
.seg button { padding: 5px 14px; background: none; border: 0; border-radius: 99px; font-size: 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.board { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.col { display: flex; flex-direction: column; min-height: 60vh; padding: 10px; background: #eef0ee; border: 1px dashed transparent; border-radius: 14px; scroll-snap-align: start; transition: background .15s, border-color .15s; }
.col.over { background: var(--jade-soft); border-color: var(--jade); }
.col header { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 10px; }
.col h2 { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.col header span { color: var(--muted); font-size: 12px; }
.cards { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lead { display: grid; gap: 4px; width: 100%; padding: 12px; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; cursor: grab; transition: border-color .15s, box-shadow .15s; }
.lead:hover { border-color: #b9c4bf; box-shadow: 0 2px 8px rgb(15 74 60 / .08); }
.lead.due { background: #fffaf3; border-color: #f0d9bb; }
.lead.dragging { opacity: .45; }
.lead-top { display: flex; justify-content: space-between; gap: 8px; }
.lead-val { color: var(--jade); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lead-sub { color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips span { padding: 1px 7px; background: var(--bg); border-radius: 99px; font-size: 11px; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 11px; }
.dueflag { color: var(--warn); font-weight: 600; }
.col-empty { margin: 8px 4px; color: var(--muted); font-size: 12px; }

/* list view */
.tbl-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 10px 14px; text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover, .tbl tbody tr:focus-visible { background: var(--bg); }
.pill.st-1 { background: #eef3fb; border-color: #d6e2f3; }
.pill.st-2 { background: #f4effa; border-color: #e3d8f0; }
.pill.st-3 { background: var(--warn-soft); border-color: #f0d9bb; }
.pill.st-4 { background: var(--jade-soft); border-color: #c7dcd4; color: var(--jade); }
.pill.st-5 { background: #f1f1f1; color: var(--muted); }
.empty.pad { padding: 32px; text-align: center; }

/* enquiry panel */
.scrim { position: fixed; inset: 0; z-index: 10; background: rgb(18 22 20 / .3); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 11; width: min(520px, 100vw); padding: 22px 24px 40px; overflow-y: auto; background: var(--paper); box-shadow: -12px 0 40px rgb(15 40 32 / .15); animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.dr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dr-head h2 { margin: 2px 0; font-size: 24px; letter-spacing: -.02em; }
.x { width: 36px; height: 36px; flex: none; background: none; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; }
.x:hover { border-color: var(--ink); }
.dr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.dr-fields { margin: 8px 0 4px; }
.won { margin: 12px 0; padding: 12px 14px; background: var(--jade-soft); border-radius: 10px; }
.won p { margin: 0 0 8px; }
button.link { padding: 0; background: none; border: 0; color: var(--jade); text-decoration: underline; cursor: pointer; }
.facts { display: grid; gap: 8px; margin: 18px 0; padding: 16px 0; border-block: 1px solid var(--line); font-size: 14px; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; white-space: pre-wrap; }
.drawer form { display: grid; gap: 8px; }
.drawer h3 { margin: 18px 0 8px; font-size: 15px; }

@media (max-width: 860px) {
  .pipe-head h1 { width: 100%; }
  .pipe-head input[type="search"] { width: auto; flex: 1; }
  .board { grid-template-columns: repeat(6, 82vw); }
  .tabs { margin-left: 0; }
  .bar { flex-wrap: wrap; gap: 8px 10px; }
  .bar-brand { white-space: nowrap; }
  .bar .ghost { margin-left: auto; }
  .bar-label { display: none; }
  .facts div { grid-template-columns: 1fr; gap: 0; }
}
