/* The live desk's own markup (web/main.js) on the EDGE system: the parts the design's page sheets don't draw.
   Loaded after system.css, live.css and the page-*.css copies, which stay as the design wrote them. */

/* an inline svg with no size draws at 300 by 150 */
svg.sol { width: 0.92em; height: 0.92em; flex: none; vertical-align: -0.1em; margin-left: 0.22em; }
.copy { display: inline-flex; align-items: center; gap: 6px; color: var(--label); transition: color var(--t1) var(--ease); }
.copy:hover { color: var(--paper); }
.copy svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the status line under the header (toast() in main.js): the header's width, and it covers nothing you press ---------- */
#toast { position: fixed; top: 64px; left: var(--seam); right: var(--seam); z-index: 110; background: var(--tile3); pointer-events: none; }
@media (max-width: 640px) { #toast { top: 62px; } }

/* ---------- a step's own line: what is happening, or what went wrong ---------- */
.status { display: flex; align-items: center; gap: 9px; color: var(--paper2); font-size: var(--fs-1); line-height: 1.5; }
.status:empty { display: none; }
.status.good { color: var(--paper); }
.status.bad, .warnline { position: relative; display: block; padding: 10px 13px 10px 19px; border-radius: var(--r-bar); background: var(--veil); color: var(--paper); font-size: var(--fs-1); line-height: 1.5; }
.status.bad::before, .warnline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 3px; border-radius: 1px; background: var(--warn); }

/* ---------- fields you type into ---------- */
.field :is(input, select) { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: none; color: var(--paper); font: 500 var(--fs-3)/1 var(--f); letter-spacing: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.field input::placeholder { color: var(--label); font-weight: 400; }
.field select { text-align-last: right; color-scheme: dark; cursor: pointer; }
.field select option { background: var(--tile2); color: var(--paper); }
.field > span { line-height: 1.35; }
.field > span .h { display: block; color: var(--label); } /* a second line: the cap, or how much you have */
.field > em .sol { margin-left: 0; }
.fmax { flex: none; height: 26px; padding: 0 9px; border-radius: var(--r-bar); background: var(--tile3); color: var(--paper2); font-size: var(--fs-1); font-weight: 500; }
.fmax:hover { color: var(--paper); }

/* ---------- the sell panel's form, the house's offer and the sums ---------- */
.dk-sell { display: flex; flex-direction: column; gap: 13px; }
.dk-sell .or { display: flex; align-items: center; gap: 10px; color: var(--label); font-size: var(--fs-1); }
.dk-sell .or::before, .dk-sell .or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.house:empty, #sellsum:empty { display: none; }
.hq { display: grid; gap: 10px; }
.hq-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.hq-h b { color: var(--paper); font-weight: 600; font-size: var(--fs-2); }
.hq-off { color: var(--label); font-size: var(--fs-1); line-height: 1.5; }
/* the live sums are rows of two spans; system.css draws dl rows */
.sum > div > span:first-child { color: var(--label); white-space: nowrap; }
.sum > div > span:last-child:not(:first-child) { text-align: right; color: var(--paper2); }
.sum > .warnline { display: block; }
.sum .total { padding-top: 9px; border-top: 1px solid var(--hair); font-size: var(--fs-2); }
.sum .total > span:first-child { color: var(--paper2); }
.sum .total > span:last-child { color: var(--paper); font-weight: 600; font-size: var(--fs-3); }
.sum em { font-style: normal; color: var(--label); }
.sum .hold { color: var(--coral); font-weight: 500; }
.vs { color: var(--paper); font-weight: 500; }
.vs:is(.over, .flat, .none) { color: var(--paper2); font-weight: 400; }
/* coins in the wallet, before one is moved in */
.dk-held { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dk-held li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dk-held li > span { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.dk-held li b { font-weight: 600; }
.dk-held li em { font-style: normal; font-size: var(--fs-1); color: var(--label); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-held li .go { height: 32px; padding: 0 12px; font-size: var(--fs-1); }
.dk-held > .ghost { justify-content: space-between; }

/* ---------- the dialog: a move, or a block's terms ---------- */
.scrim { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(8, 8, 10, 0.78); }
.dlg { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: var(--r-tile); background: var(--tile); }
.dlg:focus { outline: none; }
.dlg:has(form[data-form="movein"], form[data-form="moveout"]) { background: var(--g-public); } /* a move is public */
.dhead { display: flex; align-items: center; gap: 10px; padding: 16px 12px 0 18px; }
.dhead h2 { flex: 1; min-width: 0; font: var(--w-display) var(--fs-4)/1.2 var(--display); letter-spacing: -0.025em; color: var(--paper); }
.dx { flex: none; width: 32px; height: 32px; border-radius: var(--r-bar); color: var(--label); font-size: 20px; line-height: 1; }
.dx:hover { background: var(--tile3); color: var(--paper); }
.dbody { display: flex; flex-direction: column; gap: 13px; padding: 14px 18px 18px; }

/* ---------- the Activity page's head: who and a few counts (the Portfolio page is page-portfolio.css's vessels) ---------- */
:is(.pg-portfolio, .pg-activity) .pf-top { grid-template-columns: auto minmax(0, 1fr) auto; }
:is(.pg-portfolio, .pg-activity) .pf-id h1 { font: inherit; }
:is(.pg-portfolio, .pg-activity) .pf-dog { width: 44px; height: 44px; flex: none; }
:is(.pg-portfolio, .pg-activity) .pf-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; justify-self: start; max-width: 660px; padding-left: 28px; border-left: 1px solid var(--hair); color: var(--label); font-size: var(--fs-1); line-height: 1.5; }
:is(.pg-portfolio, .pg-activity) .pf-meta b { color: var(--paper2); font-weight: 500; font-variant-numeric: tabular-nums; }
:is(.pg-portfolio, .pg-activity) .pf-meta .redact { --w: 24px; }
:is(.pg-portfolio, .pg-activity) .pf-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.pg-portfolio .ac-none { padding: 16px 22px; color: var(--label); }
@media (max-width: 1100px) {
  :is(.pg-portfolio, .pg-activity) .pf-top { grid-template-columns: minmax(0, 1fr) auto; }
  :is(.pg-portfolio, .pg-activity) .pf-meta { grid-column: 1 / -1; grid-row: 2; max-width: none; padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  :is(.pg-portfolio, .pg-activity) .pf-top { grid-template-columns: minmax(0, 1fr); }
  :is(.pg-portfolio, .pg-activity) .pf-who { grid-row: 3; justify-content: flex-start; }
  .pg-portfolio .ac-none { padding: 14px; }
}

/* ---------- activity rows: the status word is a .chip in the live markup ---------- */
:is(.pg-activity, .pg-portfolio) .ac-st .chip { font-weight: 400; color: var(--label); }
:is(.pg-activity, .pg-portfolio) .ac-st:is(.live, .warn) .chip { color: var(--paper); font-weight: 600; }
:is(.pg-activity, .pg-portfolio) .ac-st.good .chip { color: var(--paper2); }
:is(.pg-activity, .pg-portfolio) a.ac-c:hover b { text-decoration: underline; text-decoration-color: var(--label); text-underline-offset: 3px; }
:is(.pg-activity, .pg-portfolio) .ac-pull { height: 28px; padding: 0 10px; font-size: var(--fs-1); }
.since { font-size: var(--fs-1); color: var(--label); }
.since.up { color: var(--paper); }

