.my { color: #5344a1; }
#exchange { --buy: #286550; --sell: #895732; }
#exchange .pulse-intro { display: flex; justify-content: space-between; align-items: center; }
.exchange-actions { display: grid; justify-items: end; gap: 4px; }
.exchange-actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.exchange-actions > a { display: inline-flex; align-items: center; min-height: 32px; font-size: 12px; text-decoration: none; }
.exchange-actions > a:hover { text-decoration: underline; }
.settlement { border: 1px solid #d7dfef; border-left: 3px solid var(--chart-gold); border-radius: 8px; padding: 10px 16px; margin: 0 0 12px; background: #f0f3fb; font-size: var(--card-copy); }
.settlement summary,.promise summary { cursor: pointer; font-weight: 600; }
.settlement p { margin: 8px 0 0; color: var(--muted); max-width: 90ch; }
.market-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: #fff; border: 1px solid var(--line); border-radius: var(--card-radius); padding: 12px 0; }
.market-metrics div { padding: 0 16px; }
.market-metrics div + div { border-left: 1px solid var(--line); }
.market-metrics small { display: block; color: var(--muted); }
.market-metrics strong { font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.market-metrics .unit { font-size: 12px; margin-left: 5px; }
.primary,.secondary { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:8px 14px; border:1px solid var(--line); border-radius:var(--control-radius); text-decoration:none; font:600 var(--type-control)/1.4 var(--type-font); background:white; }

.share-actions { display:flex; flex-wrap:wrap; gap:8px; }
.promise code { display:block; padding:8px 0; }
details .form { margin-top:12px; }
.hint { color:var(--muted); font-size:var(--type-meta); }
.toolbar,.dialogtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.toolbar { margin: 20px 0 10px; }
#exchange .toolbar h2, dialog h2 { font-size: var(--type-section); margin: 0; }
h3 { font-size: 16px; margin: 0; }
select,input,textarea { border: 1px solid #b8c1bf; background: var(--panel); border-radius: 6px; padding: 8px 12px; max-width: 100%; min-width: 0; }
.toolbar select { font-size: 13px; }
.book { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; align-items: start; }
.side,.activityitem,.emptyactivity { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.side { overflow: hidden; }
.activityitem:hover { background: #f4f6fb; }
.tag { color: var(--muted); }
.price { color: var(--buy); font: 600 16px/1.3 var(--type-font); white-space: nowrap; }
.asks .price { color: var(--sell); }
.unit { font: 500 11px/1 var(--mono); margin-left: 5px; }
.empty,.emptyactivity { display: grid; gap: 6px; padding: 24px 20px; color: var(--muted); font-size: 14px; justify-items: start; }
.empty-action { padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.activityitem { box-sizing: border-box; display: flex; text-align: left; width: 100%; gap: 12px; align-items: center; margin-bottom: 6px; padding: 14px 18px; }
.activityitem .tag { margin-left: auto; background: #f6f8fc; color: var(--buy); padding: 3px 8px; border-radius: 12px; font-size: 10px; }
footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin: 32px 0 22px; padding-top: 14px; color: var(--muted); font-size: 13px; }
dialog { width: min(520px,94vw); max-height: 88dvh; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 24px 90px #18223033; }
dialog::backdrop { background: #17213180; }
.dialogtop { padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 650; }
.dialogtop button { font-size: 25px; line-height: 1; padding: 5px; }
.stack,.form,.form label { display: grid; gap: 12px; min-width: 0; }
.stack p,.form p { font-size: 14px; color: var(--muted); }
.form label { gap: 5px; font-size: 13px; font-weight: 650; }
.form textarea { resize: vertical; min-height: 80px; }
.stack pre,code { overflow-wrap: anywhere; white-space: pre-wrap; font: 12px/1.5 var(--mono); }
.stack pre { background: #eeedf5; padding: 12px; margin: 0; border-radius: 6px; }
.stack hr { width: 100%; border: 0; border-top: 1px solid var(--line); }
.quote { border-bottom: 1px solid var(--line); padding: 5px 0; }
#feedback,#status { color: #913d22; font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
button:disabled { opacity: .55; cursor: default; }

@media (max-width: 760px) {
  #exchange .pulse-intro { align-items: flex-start; }
  .exchange-actions { justify-items: start; }
  .book { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .market-metrics { grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .market-metrics div:nth-child(3) { border-left: 0; }
  .toolbar,footer,.activityitem { flex-wrap: wrap; }
}

.market-updates { margin:0; list-style:none; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:0 14px; }
.market-updates li+li { border-top:1px solid var(--line); }
.market-event { width:100%; display:grid; grid-template-columns:8rem minmax(0,1fr) auto; gap:12px; align-items:center; padding:10px 2px; min-height:44px; background:transparent; border:0; text-align:left; font:inherit; }
.market-event strong { overflow-wrap:anywhere; font-size:14px; }
.market-event time,.event-kind { color:var(--muted); font-size:12px; }
.event-kind { font-weight:600; }
.market-updates .quiet { padding:12px 2px; color:var(--muted); }
.guide-diagram { background:#f1f3fa; border-radius:10px; padding:8px; }
.guide-diagram .station { opacity:.5; }
.guide-diagram[data-step="0"] .seller,.guide-diagram[data-step="1"] .desk,.guide-diagram[data-step="2"] .buyer { opacity:1; }
.guide-controls { display:flex; gap:8px; flex-wrap:wrap; }
#panel { box-sizing:border-box; }
#panel-title:focus { outline:none; }
@media (max-width:600px) { .market-event { grid-template-columns:1fr auto; gap:2px 8px; } .market-event strong { grid-column:1/-1; grid-row:2; } .toolbar select,.form :is(select,input,textarea) { font-size:16px; } }

.exchange-figure {
  --cycle: 7s;
  display:grid;
  justify-items:center;
  width:min(100%,390px);
  margin:0 auto;
  color:#23354f;
}
.exchange-stations {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:end;
  width:100%;
  text-align:center;
  font:650 13px/1.3 var(--type-font);
}
.exchange-track { display:block; width:100%; height:auto; overflow:visible; }
.approval-track,.delivery-track,.direction-mark,.tile-icon { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.approval-track { stroke:#95a1b8; stroke-width:1.6; stroke-dasharray:2 5; }
.delivery-track,.direction-mark { stroke:#74a293; stroke-width:1.6; }
.tile-icon { stroke:#293e55; stroke-width:1.9; }
.seller-tile { fill:#dfede5; stroke:#b5cfc1; }
.ledger-tile { fill:#faedc2; stroke:#d8c590; }
.buyer-tile { fill:#e3e8f8; stroke:#c1cbe3; }
.exchange-figure figcaption { display:grid; justify-items:center; gap:8px; width:100%; text-align:center; }
.delivery-label { font:550 12px/1.4 var(--type-font); color:#365a50; }
.delivery-caption { color:#52637a; font:400 13px/1.5 var(--type-font); text-wrap:balance; }
.exchange-track,.exchange-figure .motion-control { grid-column:1; grid-row:2; }
.exchange-figure .motion-control { z-index:1; justify-self:stretch; align-self:stretch; padding:0; min-height:0; border:0; background:transparent; cursor:pointer; }
.exchange-figure .motion-control:focus-visible,.network-figure button:focus-visible { outline:2px solid #526ca2; outline-offset:2px; }
.exchange-figure .motion { animation-duration:var(--cycle); animation-timing-function:ease-in-out; animation-iteration-count:infinite; }
.parcel { offset-path:path("M60 54C60 92 300 92 300 54"); offset-rotate:0deg; animation-name:exchange-deliver; }
.seller-approval { --travel:59px; animation-name:exchange-approve; }
.buyer-approval { --travel:-59px; animation-name:exchange-approve; }
.settled-ring { animation-name:exchange-settle; }
@keyframes exchange-deliver {
  0%,6% { opacity:0; offset-distance:0%; }
  12% { opacity:1; offset-distance:0%; }
  43% { opacity:1; offset-distance:100%; }
  48%,100% { opacity:0; offset-distance:100%; }
}
@keyframes exchange-approve {
  0%,46% { opacity:0; transform:translateX(0); }
  51% { opacity:1; transform:translateX(0); }
  68% { opacity:1; transform:translateX(var(--travel)); }
  74%,100% { opacity:0; transform:translateX(var(--travel)); }
}
@keyframes exchange-settle { 0%,68%,98%,100% { opacity:0; } 76%,89% { opacity:1; } }
.exchange-motion-paused .exchange-figure .motion { animation-play-state:paused; }
@media (prefers-reduced-motion:reduce) {
  .exchange-figure .motion { animation:none; }
  .exchange-track .parcel { offset-distance:50%; }
  .exchange-track :is(.seller-approval,.buyer-approval,.settled-ring),.exchange-figure .motion-control { display:none; }
}

.compute-impact { margin-top:3px; color:#384c67; font-size:13px; }
.compute-impact summary { cursor:pointer; padding:5px 0; font-weight:600; }
.compute-impact p { font-size:13px; }
.compute-impact a { text-underline-offset:3px; }

.provider-button { display:flex; align-items:center; justify-content:center; gap:12px; min-height:44px; padding:8px 16px; border:1px solid #a8aeb7; border-radius:5px; background:white; color:#24282c; text-decoration:none; font:600 14px/1.35 var(--type-font); }
.provider-button:hover { background:#f5f7fa; }
.contact-row { display:grid; gap:5px; padding:8px 0; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.form label.contact-checkbox { display:flex; align-items:center; gap:8px; }
.contact-checkbox input { width:18px; height:18px; }
.presence-state { color:var(--muted); }

.exchange-learn { display:flex; flex-wrap:wrap; align-items:center; gap:0 1.25rem; margin-top:.25rem; }
#exchange .mission-toggle {
 display:inline-flex; align-items:center; gap:.3rem; min-height:44px; padding:0 2px;
 border:0; background:transparent; color:#365e40;
 font:600 14px/1.4 var(--type-font,system-ui); cursor:pointer;
}
#exchange .mission-toggle span { text-decoration:underline; text-underline-offset:4px; text-decoration-color:#a4bca6; }
#exchange .mission-toggle:hover span,#exchange .mission-toggle[aria-expanded=true] span { text-decoration-color:currentColor; }
.mission-leaf { width:23px; height:23px; flex:none; }
#exchange-mission { margin:.55rem 0 .9rem; padding:.35rem 0 .35rem .9rem; border-left:3px solid #72935e; max-width:70ch; }
#exchange-mission[hidden] { display:none; }
#exchange #mission-heading { margin:0 0 .35rem; font-size:1.12rem; }
#exchange-mission p { margin:.25rem 0; font-size:.875rem; line-height:1.5; }
#exchange-mission .compute-impact { margin-top:.3rem; }

#expired-list {display:flex;flex-wrap:wrap;gap:.5rem;padding:.6rem 0}
.market-search{margin:.125rem 0 .375rem;color:var(--ink,#203153)}
.market-search summary{cursor:pointer;font-weight:600}
#search-orders{display:flex;align-items:end;flex-wrap:wrap;gap:.6rem;margin:.6rem 0}
#search-orders label{display:grid;gap:.2rem;font-size:.85rem;font-weight:600}
#search-orders :is(input,select){font:inherit;max-width:100%;min-height:2.55rem;background:white;color:inherit;border:1px solid #c9ccbf;border-radius:.3rem;padding:.4rem}
#search-results{display:grid;gap:.35rem;font-size:.9rem}
#search-results a{display:flex;align-items:baseline;justify-content:space-between;gap:.65rem;padding:.5rem 0;border-bottom:1px solid #d7dacd}
#search-results a span{white-space:nowrap}
@media(max-width:600px){#search-orders label{flex:1 1 9rem;min-width:0}#search-orders :is(input,select){font-size:1rem}}
.account-bar .offering-signup{position:relative}
.account-bar .starter-callout{position:absolute;right:calc(100% + .6rem);top:50%;transform:translateY(-50%);white-space:nowrap;border:1px solid #d3b451;background:#fff1c3;color:#4b3913;padding:.4rem .6rem;border-radius:.5rem;font-size:.81rem;font-weight:650;line-height:1.2}
.starter-callout::after{content:"";position:absolute;width:.45rem;height:.45rem;right:-.28rem;top:calc(50% - .24rem);transform:rotate(45deg);background:#fff1c3;border-top:1px solid #d3b451;border-right:1px solid #d3b451}
@media(max-width:980px){.account-bar .starter-callout{position:static;transform:none}.starter-callout::after,.account-bar .offering-signup .account-label{display:none}}

/* Header and quotes share tracks so every price lines up, including on narrow screens. */
.book .side {
  --side-ink: var(--buy);
  --side-wash: #edf4ee;
}
.book .asks { --side-ink: var(--sell); --side-wash: #f7f0e7; }
.quote-head, .book .ticker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 5ch) .5rem;
  align-items: center;
  column-gap: clamp(.2rem, .7vw, .45rem);
  padding-inline: .55rem;
  font: .8125rem/1.3 var(--type-font, system-ui);
  font-variant-numeric: tabular-nums;
}
.quote-head {
  min-height: 1.8rem;
  background: var(--side-wash);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 3px 0 var(--side-ink);
  color: #49586b;
}
.quote-head h3 {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin: 0;
  color: var(--side-ink);
  font: 700 .875rem/1.25 var(--type-font, system-ui);
}
.quote-head h3 svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.quote-head small { font-size: .6875rem; font-weight: 500; color: #49586b; }
.quote-head > span { text-align: right; font-size: .6875rem; font-weight: 600; }
.side:has(.empty) .quote-head > span { visibility: hidden; }
.ticker-number { text-align: right; }
.ticker-order + .ticker-order { border-top: 1px solid var(--line); }
.book .ticker-row {
  min-height: 1.875rem;
  padding-block: .4rem;
  box-sizing: border-box;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
}
@media (pointer: coarse) {
  .book .ticker-row { --md-control-height: 2.25rem; min-height: var(--md-control-height); }
}
.ticker-row::-webkit-details-marker{display:none}
.ticker-row::after{content:"";width:.38rem;height:.38rem;border-right:1.6px solid #48566c;border-bottom:1.6px solid #48566c;transform:rotate(45deg);justify-self:center}
.ticker-order[open]>.ticker-row::after{transform:rotate(225deg)}
.ticker-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.ticker-number{font:500 1em/1.3 var(--type-font,system-ui);font-variant-numeric:tabular-nums;color:#43526b}
.ticker-row>.ticker-number:nth-child(2){font-weight:750;color:var(--buy)}
.asks .ticker-row>.ticker-number:nth-child(2){color:var(--sell)}
.ticker-row:hover,.ticker-order[open]>.ticker-row{background:#f2f5f8}
.ticker-row:focus-visible{outline:2px solid #395a9d;outline-offset:-2px}
.ticker-detail{padding:.5rem .85rem .55rem;background:#fafbf8;border-top:1px solid var(--line);overflow-wrap:anywhere;font-size:.8125rem;line-height:1.42}
.ticker-detail>strong{font-size:.8125rem;line-height:1.35}
.ticker-detail p{margin:.24rem 0;font-size:inherit;line-height:inherit}
.ticker-detail .ticker-meta{font-size:.75rem;line-height:1.4;color:#485a70}
.ticker-detail button{margin:0;padding:.18rem 0;font:600 .8125rem/1.35 var(--type-font,system-ui);min-height:24px}
@media(pointer:coarse){.ticker-detail button{min-height:44px}}

