/* Freelance "Mini app" demos: Mosaic + ASCII (2026-11-23) */
body.ws26 .ma { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; aspect-ratio: 16 / 9; border-radius: var(--ws-r-md); overflow: hidden;
  background: var(--ws-tile); box-shadow: 0 0 0 1px var(--ws-line-soft), var(--ws-shadow-soft); color: var(--ws-text); font-family: Inter, system-ui, sans-serif; }
body.ws26 .ma-stage { position: relative; min-width: 0; min-height: 0; background: #000; overflow: hidden; }
body.ws26 .ma-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.ws26 .ma-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--ws-line-soft); background: var(--ws-tile); }
body.ws26 .ma-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ws-line-soft); }
body.ws26 .ma-head strong { font: 700 15px/1.2 Inter, system-ui, sans-serif; margin-right: auto; }
body.ws26 .ma-body { flex: 1; min-height: 0; overflow: auto; padding: 6px 16px 16px; scrollbar-width: thin; }
body.ws26 .ma-group { padding: 12px 0; border-bottom: 1px solid var(--ws-line-soft); display: grid; gap: 10px; }
body.ws26 .ma-group:last-child { border-bottom: 0; }
body.ws26 .ma-group > h4 { margin: 0; font: 600 11px/1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ws-text-3); }
body.ws26 .ma-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 38px; align-items: center; gap: 8px; font-size: 13px; }
body.ws26 .ma-row > span:first-child { color: var(--ws-text-2); }
body.ws26 .ma-row output { font: 500 12px/1 Inter, system-ui, sans-serif; color: var(--ws-text-3); text-align: right; font-variant-numeric: tabular-nums; }
body.ws26 .ma-row.is-wide { grid-template-columns: 84px minmax(0, 1fr); }
body.ws26 .ma input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: var(--ws-surface-3); outline: none; margin: 0; cursor: pointer; }
body.ws26 .ma input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ws-text); border: 0; }
body.ws26 .ma input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ws-text); border: 0; }
body.ws26 .ma-seg { display: flex; flex-wrap: wrap; gap: 4px; }
body.ws26 .ma-seg button, body.ws26 .ma-btn {
  all: unset; cursor: pointer; padding: 6px 10px; border-radius: 8px; background: var(--ws-surface); color: var(--ws-text-2);
  font: 500 12px/1.2 Inter, system-ui, sans-serif; transition: background .15s, color .15s; }
body.ws26 .ma-seg button:hover, body.ws26 .ma-btn:hover { color: var(--ws-text); }
body.ws26 .ma-seg button[aria-pressed="true"] { background: var(--ws-text); color: var(--ws-bg); }
body.ws26 .ma-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
body.ws26 .ma-pal { all: unset; cursor: pointer; display: flex; height: 22px; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--ws-line); }
body.ws26 .ma-pal i { width: 12px; }
body.ws26 .ma-pal[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ws-text); }
body.ws26 .ma-colors { display: flex; gap: 6px; flex-wrap: wrap; }
body.ws26 .ma input[type="color"] { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: none; cursor: pointer; box-shadow: 0 0 0 1px var(--ws-line); }
body.ws26 .ma input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
body.ws26 .ma input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 7px; }
body.ws26 .ma input[type="color"]::-moz-color-swatch { border: 0; border-radius: 7px; }
body.ws26 .ma input[type="text"] { width: 100%; min-height: 30px; padding: 5px 9px; border: 1px solid transparent; border-radius: 8px; background: var(--ws-surface); color: var(--ws-text); font: 500 13px/1.2 ui-monospace, Menlo, monospace; outline: none; }
body.ws26 .ma input[type="text"]:focus { border-color: var(--ws-accent); }
body.ws26 .ma-toggle { all: unset; cursor: pointer; width: 34px; height: 20px; border-radius: 99px; background: var(--ws-surface-3); position: relative; transition: background .2s; }
body.ws26 .ma-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
body.ws26 .ma-toggle[aria-pressed="true"] { background: var(--ws-accent); }
body.ws26 .ma-toggle[aria-pressed="true"]::after { transform: translateX(14px); }
body.ws26 .ma-export { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
body.ws26 .ma-export button { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; border-radius: 9px; background: var(--ws-surface); color: var(--ws-text-3); font: 600 12px/1 Inter, system-ui, sans-serif; }
body.ws26 .ma-export svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.ws26 .ma-export button:hover { color: var(--ws-text-2); }
body.ws26 .ma-lock { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--ws-surface); color: var(--ws-text-2); font: 600 12px/1 Inter, system-ui, sans-serif; }
body.ws26 .ma-lock svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.ws26 .ma-toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 10px); padding: 9px 14px; border-radius: 99px; background: rgba(20, 20, 22, .92); color: #fff;
  font: 600 13px/1 Inter, system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s var(--ws-ease); white-space: nowrap; z-index: 2; }
body.ws26 .ma-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
body.ws26 .ma-file { position: relative; overflow: hidden; }
body.ws26 .ma-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (max-width: 860px) {
  body.ws26 .ma { grid-template-columns: 1fr; aspect-ratio: auto; }
  body.ws26 .ma-stage { aspect-ratio: 16 / 10; }
  body.ws26 .ma-side { border-left: 0; border-top: 1px solid var(--ws-line-soft); }
  body.ws26 .ma-body { max-height: 420px; }
}
body.ws26 .ma [hidden] { display: none !important; }
