/* Monolith Quant: market data cards and the data sources block (index.html, data.html).
   Colours follow assets/site.css: accent blue, green for up, red for down. */

.dc-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dc {
  display: flex; flex-direction: column; min-width: 0;
  background: #0d0d0f; border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; overflow: hidden;
  transition: border-color 0.2s;
}
.dc:hover { border-color: rgba(79,124,255,0.45); }
.dc-vis {
  height: 132px; padding: 14px 14px 10px; border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #09090b; font-family: 'Courier New', monospace; font-size: 10.5px; color: rgba(255,255,255,0.62);
  font-variant-numeric: tabular-nums; overflow: hidden; position: relative;
}
.dc-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.dc h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; color: #f2f2f3; }
.dc-sub { font-size: 13px; color: rgba(255,255,255,0.58); margin: 4px 0 14px; }
.dc-rows { display: flex; flex-direction: column; }
.dc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; }
.dc-row span { color: rgba(255,255,255,0.68); }
.dc-row b { font-weight: 500; color: #f2f2f3; text-align: right; }
.dc-more { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 500; color: #f2f2f3; }
.dc-more:hover { color: #7a9cff; }
.dc-more::after { content: " →"; opacity: 0.6; }

/* detail variant (data.html): visual on the left, text on the right */
.dc-grid.dc-detail { grid-template-columns: 1fr; gap: 14px; }
.dc-detail .dc { flex-direction: row; scroll-margin-top: 80px; }
.dc-detail .dc-vis { width: 300px; flex-shrink: 0; height: auto; min-height: 190px; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.08); padding: 20px; }
.dc-detail .dc-body { padding: 22px 26px; }
.dc-detail .dc h3 { font-size: 26px; }
.dc-text { font-size: 14.5px; line-height: 1.7; color: rgba(255,255,255,0.74); max-width: 640px; margin-bottom: 14px; }
.dc-fields { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.dc-fields li { font-family: 'Courier New', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.14); border-radius: 3px; padding: 3px 8px; }
.dc-detail .dc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }

/* ── visuals ── */
.dv-bars { display: flex; height: 100%; gap: 8px; }
.dv-candles { flex: 1; display: flex; align-items: stretch; gap: 3px; position: relative; }
.dv-candles i { flex: 1; position: relative; min-width: 2px; }
.dv-candles b { position: absolute; left: 50%; transform: translateX(-50%); transition: top 0.5s, height 0.5s; }
.dv-candles .w { width: 1px; }
.dv-candles .b { width: 100%; max-width: 7px; border-radius: 1px; }
.dv-candles .v { bottom: 0; top: auto !important; width: 100%; max-width: 7px; opacity: 0.28; }
.dv-candles .up b { background: #34d399; }
.dv-candles .dn b { background: #fb7185; }
.dv-axis { display: flex; flex-direction: column; justify-content: space-between; height: 70%; text-align: right; color: rgba(255,255,255,0.5); }

.dv-trades { height: 100%; display: flex; flex-direction: column; }
.dv-th, .dv-trades li { display: grid; grid-template-columns: 1.55fr 1fr 0.5fr; gap: 6px; }
.dv-th { color: rgba(255,255,255,0.5); padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 4px; }
.dv-th span:nth-child(n+2), .dv-trades li span:nth-child(n+2) { text-align: right; }
.dv-trades ul { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.dv-trades li { white-space: nowrap; }
.dv-trades li.up span:nth-child(2) { color: #34d399; }
.dv-trades li.dn span:nth-child(2) { color: #fb7185; }
.dv-trades li.new { animation: dv-in 0.35s ease-out; }
@keyframes dv-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.dv-quotes { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; font-size: 12px; }
.dv-quotes .q { display: grid; grid-template-columns: 34px 1fr 46px 22px; align-items: center; gap: 8px; }
.dv-quotes .q b { font-weight: 400; }
.dv-quotes .ask b { color: #fb7185; }
.dv-quotes .bid b { color: #34d399; }
.dv-quotes em { display: block; height: 9px; border-radius: 2px; transition: width 0.45s; }
.dv-quotes .ask em { background: rgba(251,113,133,0.45); }
.dv-quotes .bid em { background: rgba(52,211,153,0.45); }
.dv-quotes i { font-style: normal; text-align: right; color: #f2f2f3; }
.dv-quotes .sp { text-align: center; color: rgba(255,255,255,0.5); font-size: 10.5px; }
.dv-quotes .q.flash b { animation: dv-flash 0.5s ease-out; }
@keyframes dv-flash { from { background: rgba(255,255,255,0.22); } to { background: transparent; } }

.dv-oi { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.dv-oi .r, .dv-oi .lg { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 6px; }
.dv-oi .k { text-align: center; color: rgba(255,255,255,0.7); }
.dv-oi .p { display: flex; justify-content: flex-end; }
.dv-oi em { display: block; height: 8px; border-radius: 2px; transition: width 0.7s ease; }
.dv-oi .p em { background: rgba(251,113,133,0.6); }
.dv-oi .c em { background: rgba(79,124,255,0.75); }
.dv-oi .lg { color: rgba(255,255,255,0.45); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.dv-oi .lg span:first-child { text-align: right; } .dv-oi .lg span:nth-child(2) { text-align: center; }

.dv-grid { height: 100%; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(5, 1fr); gap: 4px; }
.dv-grid i { background: #6f93ff; border-radius: 2px; transition: opacity 0.6s ease; }

/* ── data sources ── */
.ds { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: start; }
.ds-label { font-family: 'Courier New', monospace; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 1.1rem; }
.ds-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .ds-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ds-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 84px; padding: 14px 10px; cursor: pointer; font-family: inherit;
  background: #0d0d0f; border: 1px solid rgba(255,255,255,0.09); border-radius: 8px; color: rgba(255,255,255,0.72);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ds-tile .n { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }  /* names in the site's own typeface: no logos, no borrowed lettering */
.ds-tile .t { font-family: 'Courier New', monospace; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.ds-tile .t.live { color: #34d399; }
.ds-tile.later .n { color: rgba(255,255,255,0.45); } .ds-tile.later.on .n, .ds-tile.later:hover .n { color: rgba(255,255,255,0.8); }   /* sources that are planned, not yet licensed */
.ds-tile:hover { border-color: rgba(79,124,255,0.45); color: #f2f2f3; }
.ds-tile.on { border-color: #f2f2f3; color: #f2f2f3; background: #111113; }
.ds-tile:focus-visible { outline: 2px solid #4f7cff; outline-offset: 2px; }
.ds-note { font-size: 11.5px; line-height: 1.6; color: rgba(255,255,255,0.5); margin-top: 1rem; max-width: 420px; }
.ds-right h3 { font-size: 34px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; color: #f2f2f3; margin-bottom: 0.75rem; }
.ds-right p { font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.74); margin-bottom: 1.5rem; max-width: 520px; }
.ds-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.09); font-size: 14.5px; }
.ds-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.09); }
.ds-row span { color: #f2f2f3; font-weight: 500; }
.ds-row b { font-weight: 400; color: rgba(255,255,255,0.68); text-align: right; }

@media (max-width: 1100px) { .dc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds { grid-template-columns: 1fr; gap: 2rem; }
  .dc-detail .dc { flex-direction: column; }
  .dc-detail .dc-vis { width: auto; min-height: 150px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .dc-detail .dc-rows { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .dc-grid { grid-template-columns: 1fr; } .ds-right h3 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .dv-candles b, .dv-quotes em, .dv-oi em, .dv-grid i { transition: none; } .dv-trades li.new, .dv-quotes .q.flash b { animation: none; } }

/* ── Mason preview (index.html, mason.html): a static mock of one exchange with the agent ── */
.cp { background: #0d0d0f; border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; overflow: hidden; }
.cp-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: 'Courier New', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.cp-bar b { font-weight: 400; color: #9db6ff; border: 1px solid rgba(79,124,255,0.45); border-radius: 3px; padding: 2px 7px; }
.cp-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.cp-q { align-self: flex-end; max-width: 88%; background: rgba(79,124,255,0.14); border: 1px solid rgba(79,124,255,0.3); border-radius: 10px 10px 2px 10px; padding: 10px 13px; font-size: 14px; line-height: 1.55; color: #f2f2f3; }
.cp-steps { list-style: none; display: flex; flex-direction: column; gap: 7px; font-family: 'Courier New', monospace; font-size: 12px; color: rgba(255,255,255,0.72); }
.cp-steps li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; align-items: baseline; }
.cp-steps li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; transform: translateY(-1px); }
.cp-steps small { display: block; font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 1px; }
.cp-a { background: #111113; border: 1px solid rgba(255,255,255,0.09); border-radius: 2px 10px 10px 10px; padding: 11px 13px; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.8); }
.cp-files { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-files span { font-family: 'Courier New', monospace; font-size: 10.5px; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.14); border-radius: 3px; padding: 3px 8px; }
.cp-note { font-family: 'Courier New', monospace; font-size: 10.5px; color: rgba(255,255,255,0.5); margin-top: 0.8rem; }
.soon { display: inline-block; font-family: 'Courier New', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: #9db6ff; background: rgba(79,124,255,0.12); border: 1px solid rgba(79,124,255,0.45); border-radius: 3px; padding: 3px 8px; vertical-align: middle; }

/* ── "hand it to Mason" block on the product pages ── */
.mason-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; background: #0d0d0f; border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 1.4rem 1.6rem; margin: 0 0 1rem; }
.mason-cta .k { font-family: 'Courier New', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.mason-cta h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: #f2f2f3; margin: 6px 0 6px; }
.mason-cta p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.68); max-width: 620px; margin: 0; }
.mason-cta q { color: #f2f2f3; quotes: '"' '"'; }
.mason-cta a { font-size: 13.5px; font-weight: 500; color: #f2f2f3; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 0.6rem 1.1rem; white-space: nowrap; }
.mason-cta a:hover { border-color: #4f7cff; color: #9db6ff; }
@media (max-width: 720px) { .mason-cta { grid-template-columns: 1fr; } }

/* ── home page: the conversation with Mason (assets/mason-demo.js) ── */
.mason-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.75rem; }
.mason-head h2 { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.9rem; }
@media (max-width: 768px) { .mason-head h2 { font-size: 28px; } }
.mason-head .section-body { max-width: 640px; margin: 0; } .mason-head .btn-ghost { flex: none; }
.md-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.md-lab { font-family: 'Courier New', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-right: 6px; }
.md-tabs button { font: inherit; font-size: 13.5px; padding: 7px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.14); background: #0d0d0f; color: rgba(255,255,255,0.72); cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.md-tabs button:hover { border-color: rgba(79,124,255,0.6); color: #f2f2f3; }
.md-tabs button.on { background: #fff; color: #000; border-color: #fff; }
.md-tabs .md-replay { margin-left: auto; background: none; color: rgba(255,255,255,0.6); }
.md-win { background: #0d0d0f; border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; height: 560px; }   /* the explicit column stops a long typed line from widening the window on a phone */
.md-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,0.09); font-size: 13px; color: #f2f2f3; }
.md-bar b { font-family: 'Courier New', monospace; font-weight: 400; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #9db6ff; border: 1px solid rgba(79,124,255,0.5); border-radius: 3px; padding: 2px 7px; }
.md-body { overflow-y: auto; padding: 18px max(16px, calc(50% - 390px)); display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.md-body > * { flex: none; }   /* a scrolling column: items keep their height instead of being squeezed */
/* text streams in as small bursts that fade in, the way a model's answer arrives */
.md-body .tk { animation: mdtk 0.24s ease-out both; }
@keyframes mdtk { from { opacity: 0; } to { opacity: 1; } }
.md-q { align-self: flex-end; max-width: 86%; background: #131a2e; border: 1px solid rgba(79,124,255,0.35); border-radius: 12px 12px 3px 12px; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; color: #f2f2f3; animation: mdtk 0.25s ease-out both; }
/* thought process: green, first person. It folds shut when he has finished; the header opens it again */
.md-think { font-size: 13px; line-height: 1.55; color: #34d399; display: flex; flex-direction: column; gap: 3px; padding: 2px 0 2px 14px; border-left: 2px solid rgba(52,211,153,0.45); }
.md-think > b { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 12.5px; color: #34d399; margin-bottom: 2px; user-select: none; }
.md-think > b u { width: 7px; height: 7px; border-radius: 50%; background: #34d399; text-decoration: none; animation: mdpulse 1s ease-in-out infinite; }
.md-think > b i { font-style: normal; }
.md-think > b s { text-decoration: none; font-weight: 400; color: rgba(52,211,153,0.65); font-variant-numeric: tabular-nums; }
.md-think > b em { font-style: normal; font-size: 10px; opacity: 0; transition: transform 0.15s, opacity 0.15s; }
.md-think.done > b { cursor: pointer; } .md-think.done > b u { animation: none; opacity: 0.55; } .md-think.done > b em { opacity: 0.8; } .md-think.done > b:hover { color: #6ee7b7; }
.md-think > span { display: block; padding-left: 16px; position: relative; color: rgba(52,211,153,0.92); }
.md-think > span::before { content: "+"; position: absolute; left: 0; font-family: 'Courier New', monospace; color: rgba(52,211,153,0.7); }
.md-think.closed { border-left-color: rgba(52,211,153,0.25); padding-top: 0; padding-bottom: 0; } .md-think.closed > b { margin-bottom: 0; color: rgba(52,211,153,0.8); } .md-think.closed > b em { transform: rotate(-90deg); }
.md-think.closed > span { display: none; }
@keyframes mdpulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.1); } }
.md-plan { font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.88); min-height: 1.5em; }
.md-tool { font-size: 13px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 7px; animation: mdtk 0.25s ease-out both; }
.md-tool b { font-family: 'Courier New', monospace; font-weight: 400; color: rgba(255,255,255,0.78); }
.md-tool em, .md-file em { font-style: normal; font-family: 'Courier New', monospace; font-size: 12px; color: #34d399; }
.md-spin { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.2); border-top-color: #f2f2f3; animation: mdspin 0.7s linear infinite; }
@keyframes mdspin { to { transform: rotate(360deg); } }
.md-code { border-radius: 4px; overflow: hidden; background: #0a0f0c; border: 1px solid rgba(52,211,153,0.2); transition: border-color 0.3s, background 0.3s; }
/* once the file is written the green of work in progress turns grey; the header folds the file */
.md-code.done { background: #0a0a0b; border-color: rgba(255,255,255,0.1); } .md-code.done pre > span::before { color: rgba(255,255,255,0.3); } .md-code.done .md-file em { color: rgba(255,255,255,0.5); } .md-code.done .md-file { cursor: pointer; }
.md-code.closed pre { display: none; } .md-code.closed .md-file { border-bottom: 0; }
.md-file { font-size: 13px; color: rgba(255,255,255,0.5); padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.07); background: #0d0d0f; } .md-file b { font-family: 'Courier New', monospace; font-weight: 400; color: rgba(255,255,255,0.78); }
.md-code pre { margin: 0; padding: 8px 0; font-family: 'Courier New', monospace; font-size: 12.5px; line-height: 1.7; color: #d7d7da; counter-reset: ln; overflow-x: auto; }
.md-code pre > span { display: block; white-space: pre; padding-right: 14px; min-height: 1.7em; }
.md-code pre > span::before { counter-increment: ln; content: counter(ln) "   +  "; display: inline-block; width: 74px; text-align: right; white-space: pre; color: rgba(52,211,153,0.75); transition: color 0.3s; }
.md-code i { font-style: normal; } .md-code i.k { color: #9db6ff; } .md-code i.s { color: #86efac; } .md-code i.c { color: rgba(255,255,255,0.4); }
.md-run { display: flex; flex-direction: column; gap: 6px; }
.md-out { margin: 0; font-family: 'Courier New', monospace; font-size: 12.5px; line-height: 1.65; color: rgba(255,255,255,0.78); background: #09090b; border: 1px solid rgba(255,255,255,0.09); border-radius: 4px; padding: 10px 14px; white-space: pre-wrap; min-height: 1.65em; }
.md-res { animation: mdtk 0.35s ease-out both; }
.md-rt { font-size: 16px; font-weight: 500; color: #f2f2f3; } .md-rs { font-size: 12.5px; color: rgba(255,255,255,0.5); margin: 2px 0 10px; }
.md-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.md-stats div { border: 1px solid rgba(255,255,255,0.09); border-radius: 6px; padding: 10px 13px; background: #09090b; }
.md-stats span { display: block; font-size: 12px; color: rgba(255,255,255,0.5); } .md-stats b { display: block; font-weight: 500; font-size: 16px; color: #f2f2f3; margin-top: 3px; }
.md-chart { height: 150px; margin-top: 10px; } .md-chart canvas { display: block; width: 100%; height: 100%; }
.md-cap { font-family: 'Courier New', monospace; font-size: 10.5px; color: rgba(255,255,255,0.45); margin-top: 4px; }
.md-v { font-size: 14.5px; line-height: 1.6; color: #f2f2f3; min-height: 1.6em; }
.md-files { display: flex; flex-wrap: wrap; gap: 6px; animation: mdtk 0.3s ease-out both; } .md-files span { font-family: 'Courier New', monospace; font-size: 10.5px; border: 1px solid rgba(255,255,255,0.14); border-radius: 4px; padding: 3px 8px; color: rgba(255,255,255,0.7); }
.md-in { display: flex; align-items: center; justify-content: space-between; margin: 0 max(16px, calc(50% - 390px)) 14px; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 10px 10px 10px 14px; color: rgba(255,255,255,0.4); font-size: 13.5px; }
.md-in.typing { border-color: rgba(79,124,255,0.55); } .md-in.typing span { color: #f2f2f3; } .md-in.typing span::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: #f2f2f3; animation: mdcaret 1s steps(1) infinite; } .md-in.typing i { background: #fff; }
@keyframes mdcaret { 50% { opacity: 0; } }
.md-in span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: clip; }
/* attaching a file: the paperclip, the file while it uploads, and the file in the sent message */
.md-in { flex-wrap: wrap; row-gap: 8px; } .md-in > span { flex: 1 1 50%; } .md-att { flex: 0 0 100%; } .md-att:empty { display: none; }   /* the text field needs a real width of its own: with none, it was laid out beside the file tag at zero width and the typing was invisible */
.md-clip { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; margin-right: 6px; color: rgba(255,255,255,0.4); transition: color 0.15s, background 0.15s; }
.md-clip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.md-clip.on { color: #f2f2f3; background: rgba(255,255,255,0.12); }
.md-chip { display: inline-flex; align-items: center; gap: 8px; position: relative; overflow: hidden; background: #09090b; border: 1px solid rgba(255,255,255,0.14); border-radius: 6px; padding: 5px 10px; font-size: 12.5px; animation: mdtk 0.25s ease-out both; }
.md-chip u { width: 9px; height: 11px; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 2px; text-decoration: none; }
.md-chip em { font-style: normal; font-family: 'Courier New', monospace; color: #f2f2f3; } .md-chip small { font-size: 11.5px; color: rgba(255,255,255,0.5); }
.md-chip.up::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: #4f7cff; animation: mdup 0.9s ease-out both; }
@keyframes mdup { from { width: 0; } to { width: 100%; } }
.md-q .md-chip { display: flex; width: fit-content; margin: 0 0 8px auto; background: rgba(9,9,11,0.6); animation: none; }
.md-in i { font-style: normal; width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,0.14); color: #0b0b0c; display: grid; place-items: center; font-size: 12px; }
.md-note { font-family: 'Courier New', monospace; font-size: 10.5px; color: rgba(255,255,255,0.4); margin-top: 10px; }
@media (max-width: 760px) { .mason-head { flex-direction: column; align-items: flex-start; } .md-win { height: 600px; } .md-stats { grid-template-columns: 1fr; } .md-tabs .md-replay { margin-left: 0; } .md-code pre > span::before { width: 52px; content: counter(ln) " + "; } }
@media (prefers-reduced-motion: reduce) { .md-body .tk, .md-q, .md-tool, .md-res, .md-files { animation: none; } }
