/* Mechanics composes the native workspace bar, list, form and selected-part inspector. */
.wl-mc-container > :is(.view-header,.wl-page-header) { display: none; }
.wl-mc-surface { padding: 0 !important; overflow: hidden !important; }
.wl-mc { height: 100%; display: flex; flex-direction: column; min-height: 0; color: var(--wl-text); background: var(--wl-bg); font: var(--t-ui)/1.5 var(--wl-font-ui); }
.wl-mc * { box-sizing: border-box; }
.wl-mc button, .wl-mc input, .wl-mc select, .wl-mc textarea { font: inherit; }
.wl-mc button { cursor: pointer; }
.wl-mc button:disabled { cursor: default; opacity: .45; }
.wl-mc :is(button,input,select,textarea,summary,[tabindex]):focus-visible, .wl-mc-policy :is(input,summary):focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
/* One button, in the editor and on System's Mechanics page: the control height (40px on phones), grown from its
   words; a quiet edge on a card surface, the region's main one filled steel. Scoped so the window's own button
   (a fixed height, a fill and an inner shadow) does not win over it. */
:is(.wl-mc, .wl-sys) .wl-mc-button { display: inline-flex; justify-content: center; align-items: center; gap: var(--sp-2); height: auto; min-height: var(--wl-control); padding: 0 var(--sp-4); border: 1px solid var(--wl-line-strong); border-radius: var(--r-md); box-shadow: none; color: var(--wl-text); background: var(--wl-surface); font: 500 var(--t-ui)/1.25 var(--wl-font-ui); white-space: nowrap; cursor: pointer; }
:is(.wl-mc, .wl-sys) .wl-mc-button:hover { background: var(--wl-raised); border-color: color-mix(in srgb, var(--wl-text-3) 55%, var(--wl-line-strong)); color: var(--wl-text); }
:is(.wl-mc, .wl-sys) .wl-mc-button:active { background: var(--wl-surface); }
:is(.wl-mc, .wl-sys) .wl-mc-button.is-primary { border-color: transparent; background: var(--wl-accent); color: var(--wl-on-accent); font-weight: 600; }
:is(.wl-mc, .wl-sys) .wl-mc-button.is-primary:hover { background: color-mix(in srgb, var(--wl-accent) 84%, var(--wl-text)); }
.wl-mc-bar.wt-ws-bar { flex: none; min-height: 64px; padding-inline: var(--sp-5); gap: var(--sp-4); border-bottom: 1px solid var(--wl-line); }
.wl-mc-bar .wt-ws-crumbs { flex: 1; min-width: 0; }
.wl-mc-bar .wt-ws-crumbs > .wl-mc-button { border: 0; padding-inline: 0; border-radius: var(--r-xs); background: transparent; color: var(--wl-text-2); }
.wl-mc-bar .wt-ws-crumbs > .wl-mc-button:hover { background: transparent; color: var(--wl-text); }
.wl-mc-bar .wt-ws-title { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-mc-bar .wt-ws-views { position: static; transform: none; flex: none; }
/* The three steps are tabs: muted; the open one raised, with a brighter label and an ice icon. */
.wl-mc-bar .wt-ws-view { display: flex; gap: var(--sp-2); align-items: center; height: auto; min-height: calc(var(--wl-control) - 6px); padding: 0 var(--sp-3); border: 0; border-radius: var(--r-sm); background: transparent; box-shadow: none; color: var(--wl-text-3); font: 500 var(--t-ui)/1.2 var(--wl-font-ui); }
.wl-mc-bar .wt-ws-view:hover { color: var(--wl-text); }
.wl-mc-bar .wt-ws-view[aria-selected="true"] { color: var(--wl-text); background: var(--wl-raised); box-shadow: inset 0 0 0 1px var(--wl-line-strong); }
.wl-mc-bar .wt-ws-view[aria-selected="true"] .wt-glyph { color: var(--wl-selection); }
.wl-mc-bar .wt-ws-actions { flex: 1; gap: var(--sp-3); justify-content: flex-end; }
.wl-mc-status { color: var(--wl-text-3); font-size: var(--t-help); white-space: nowrap; }
.wl-mc-status[data-state="error"] { color: var(--wl-danger); }
.wl-mc-error { flex: none; margin: 0; padding: var(--sp-3) var(--sp-5); background: var(--wl-inset); color: var(--wl-danger); border-bottom: 1px solid var(--wl-line); white-space: pre-line; font-size: var(--t-help); }
.wl-mc-error[hidden] { display: none; }
.wl-mc-setup { display: grid; grid-template-columns: minmax(0,1fr) 280px; flex: 1; min-height: 0; }
.wl-mc-workbench { display: grid; grid-template-columns: 188px minmax(0,1fr); flex: 1; min-height: 0; }
.wl-mc-script-host { margin-top: var(--sp-5); min-height: 480px; }
.wl-mc-script-host .wl-se { height: auto; min-height: 480px; }
.wl-mc-script-host .wl-se-page { overflow: visible; }
.wl-mc-script-host .wl-se-cols, .wl-mc-script-host .wl-se[data-view="code"] .wl-se-cols { display: block; padding: var(--sp-4) 0 var(--sp-6); }
.wl-mc-script-host .wl-se-side { display: none; }
.wl-mc-script-host .wl-se-main { padding-inline: 0; }
.wl-mc-script-host .wl-se-bar { padding-inline: 0; flex-wrap: wrap; }
.wl-mc-script-crumbs .wl-se-crumb, .wl-mc-script-crumbs .wl-se-sep { display: none; }
.wl-mc-connection { border-bottom: 1px solid var(--wl-line); padding-bottom: var(--sp-3); }
.wl-mc-connection > summary { cursor: pointer; color: var(--wl-text-3); font-size: var(--t-help); }
.wl-mc-connection[open] { padding-bottom: var(--sp-5); }
.wl-mc-screen { display: grid; grid-template-columns: 172px minmax(0,1fr) 280px; flex: 1; min-height: 0; }
.wl-mc-main { overflow: auto; min-width: 0; padding: var(--sp-6); }
.wl-mc-main > * { max-width: 880px; }
.wl-mc-main h1 { margin: 0 0 var(--sp-6); font: 400 var(--t-title-page)/1.25 var(--wl-font-title); letter-spacing: 0; }
.wl-mc-section { margin-top: var(--sp-6); }
.wl-mc-section:first-child { margin-top: 0; }
.wl-mc-section-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.wl-mc-section-head h2 { margin: 0; color: var(--wl-text); font: 400 var(--t-title-section)/1.3 var(--wl-font-title); letter-spacing: 0; }
.wl-mc-inspector h2 { margin: 0; color: var(--wl-text); font: 400 var(--t-title-panel)/1.4 var(--wl-font-title); letter-spacing: 0; }
.wl-mc-section-head small { color: var(--wl-text-3); font: var(--t-help) var(--wl-font-mono); font-variant-numeric: tabular-nums; }
.wl-mc-field { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); min-width: 0; color: var(--wl-text-3); font-size: var(--t-help); }
.wl-mc-field :is(input,textarea,select) { width: 100%; min-height: var(--wl-control); padding: var(--sp-2) var(--sp-3); color: var(--wl-text); background-color: var(--wl-inset); border: 1px solid var(--wl-line-strong); border-radius: var(--r-md); box-shadow: none; font: var(--t-ui) var(--wl-font-ui); }
.wl-mc-field :is(input,textarea)::placeholder { color: var(--wl-text-3); }
.wl-mc-field textarea { resize: vertical; line-height: 1.6; }
.wl-mc-field select { cursor: pointer; }
.wl-mc-inline { display: flex; align-items: flex-end; gap: var(--sp-4); flex-wrap: wrap; }
.wl-mc-inline > .wl-mc-field { flex: 1; min-width: 88px; }
.wl-mc-check { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); color: var(--wl-text-2); font-size: var(--t-ui); cursor: pointer; }
.wl-mc-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--wl-selection); }
.wl-mc-note { color: var(--wl-text-3); font-size: var(--t-help); line-height: 1.6; }
.wl-mc-note:empty { display: none; }
.wl-mc .wl-mc-list-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 72px; align-items: center; gap: var(--sp-4); width: 100%; height: auto; min-height: 52px; padding: var(--sp-3); border: 0; border-bottom: 1px solid var(--wl-line); border-radius: 0; color: var(--wl-text-2); background: transparent; box-shadow: none; text-align: left; white-space: normal; }
.wl-mc-list-row strong { color: var(--wl-text); font-weight: 600; }
.wl-mc-list-row small { color: var(--wl-text-3); font-size: var(--t-help); }
.wl-mc .wl-mc-list-row:hover { background: var(--wl-surface); }
.wl-mc .wl-mc-list-row.is-selected { background: var(--wl-raised); box-shadow: inset 2px 0 var(--wl-selection); }
.wl-mc-section > .wl-mc-button { margin-top: var(--sp-4); }
.wl-mc-inspector { min-width: 0; overflow: auto; padding: var(--sp-5); border-left: 1px solid var(--wl-line); background: var(--wl-inset); }
.wl-mc-inspector h2 { margin-bottom: var(--sp-5); }
.wl-mc-inspector .wl-mc-section-head h2 { margin: 0; font-size: var(--t-title-panel); }
.wl-mc-remove { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--wl-line); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.wl-mc .wl-mc-remove > .wl-mc-button { border: 0; padding-inline: 0; border-radius: var(--r-xs); background: transparent; color: var(--wl-text-3); }
.wl-mc .wl-mc-remove > .wl-mc-button:hover { background: transparent; color: var(--wl-text); }
.wl-mc .wl-mc-remove > .wl-mc-button:last-child:not(:first-child) { color: var(--wl-danger); }
.wl-mc-nav { min-width: 0; overflow: auto; padding: var(--sp-5) var(--sp-3); background: var(--wl-inset); border-right: 1px solid var(--wl-line); }
.wl-mc-nav .wl-mc-section-head { justify-content: space-between; margin-inline: var(--sp-2); }
.wl-mc-nav .wl-mc-section-head h2 { color: var(--wl-text-3); font: 600 11px/1.4 var(--wl-font-ui); letter-spacing: .14em; text-transform: uppercase; }
/* The step's own list: quiet rows; the open one has a cool tint (ice marks the current thing), never a box. */
.wl-mc .wl-mc-nav .wl-mc-button { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 32px; margin-top: 2px; padding: 6px var(--sp-2); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--wl-text-2); text-align: left; font-size: var(--t-ui); white-space: normal; }
.wl-mc .wl-mc-nav .wl-mc-button:hover { background: var(--wl-raised); color: var(--wl-text); }
.wl-mc .wl-mc-nav > .wl-mc-section + .wl-mc-button { margin-top: var(--sp-4); }
.wl-mc .wl-mc-nav .wl-mc-button.is-selected { background: var(--wl-selection-soft); color: var(--wl-text); }
.wl-mc-actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-5); }
.wl-mc-form-width { max-width: 620px; }
.wl-mc-source, .wl-mc-transition { margin-top: var(--sp-5); border-top: 1px solid var(--wl-line); padding-top: var(--sp-4); color: var(--wl-text-2); }
.wl-mc :is(.wl-mc-source,.wl-mc-transition) summary { cursor: pointer; font-size: var(--t-ui); }
.wl-mc-code { padding: var(--sp-4); overflow: auto; border: 1px solid var(--wl-line); border-radius: var(--r-md); color: var(--wl-text-2); background: var(--wl-inset); font: var(--t-help)/1.7 var(--wl-font-mono); }
.wl-mc-phase { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; gap: var(--sp-4); align-items: flex-end; }
.wl-mc .wl-mc-phase > .wl-mc-button { margin-bottom: 2px; border: 0; padding-inline: var(--sp-1); border-radius: var(--r-xs); background: transparent; color: var(--wl-text-3); }
.wl-mc .wl-mc-phase > .wl-mc-button:hover { background: transparent; color: var(--wl-text); }
.wl-mc-canvas { min-width: 0; overflow: auto; padding: var(--sp-5); background: var(--wl-inset); }
.wl-mc-preview-label { color: var(--wl-text-3); font-size: var(--t-help); margin-bottom: var(--sp-4); }
.wl-mc-canvas { container-type: inline-size; }
.wl-mc-preview-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.wl-mc-layout-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.wl-mc-layout-tools .is-selected { background: var(--wl-selection-soft); border-color: color-mix(in srgb, var(--wl-selection) 60%, transparent); }
.wl-mc-layout-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--sp-3); }
.wl-mc-preview-toolbar .wl-mc-field { flex: 1; min-width: 180px; margin: 0; }
.wl-mc-preview-toolbar .wt-ws-views { flex: none; }
.wl-mc-preview-toolbar .wt-ws-view { height: auto; min-height: calc(var(--wl-control) - 6px); padding: 0 var(--sp-3); border: 0; border-radius: var(--r-sm); background: transparent; box-shadow: none; color: var(--wl-text-3); font: 500 var(--t-ui)/1.2 var(--wl-font-ui); }
.wl-mc-preview-toolbar .wt-ws-view:hover { color: var(--wl-text); }
.wl-mc-preview-toolbar .wt-ws-view.is-on { background: var(--wl-raised); color: var(--wl-text); box-shadow: inset 0 0 0 1px var(--wl-line-strong); }
.wl-mc-preview-samples { margin-bottom: var(--sp-4); color: var(--wl-text-3); font-size: var(--t-help); }
.wl-mc-preview-samples > summary, .wl-mc-preview-issues > summary { cursor: pointer; padding-block: var(--sp-2); }
.wl-mc-preview-samples[open] { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.wl-mc-preview-samples > summary { width: 100%; }
.wl-mc-preview-samples .wl-mc-field { flex: 1; min-width: 140px; margin-top: 0; }
.wl-mc-preview-issues { margin-bottom: var(--sp-4); color: var(--wl-text-3); font-size: var(--t-help); }
.wl-mc-game-preview { overflow: hidden; border: 1px solid var(--wl-line-strong); border-radius: var(--r-lg); background: var(--wl-bg); }
.wl-mc-preview-title { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--wl-line); font-size: var(--t-help); color: var(--wl-text-2); }
.wl-mc-preview-title > svg { width: 16px; height: 16px; flex: none; }
.wl-mc-preview-title > span { margin-left: auto; color: var(--wl-text-3); }
.wl-mc-preview-main { display: grid; grid-template-columns: minmax(200px,.6fr) minmax(0,1fr); height: 560px; }
.wl-mc-story-preview { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; padding: var(--sp-4); border-right: 1px solid var(--wl-line); overflow: auto; }
.wl-mc-preview-prose { font: var(--t-body)/1.7 var(--wl-font-reading); color: var(--wl-text); margin: 0; }
.wl-mc-preview-turn { margin-top: auto; padding-top: var(--sp-4); flex: none; }
.wl-mc-map-preview-panel { min-width: 0; display: flex; flex-direction: column; }
.wl-mc-map-preview-part { display: flex; flex: 1; min-width: 0; min-height: 0; }
.wl-mc .wb-game-map.wl-mc-map-surface { width: 100%; height: 420px; min-height: 280px; max-height: none; flex: none; }
.wl-mc .wl-mc-game-preview .wb-game-map.wl-mc-map-surface { height: 100%; min-height: 0; flex: 1; }
.wl-mc .wl-mc-map-surface .wl-mc-native-map { height: 100%; min-height: 0; background: var(--wl-bg); }
.wl-mc-game-preview .wl-mplay-actions > .wl-mplay-button { display: inline-flex; align-items: center; vertical-align: top; }
.wl-mc-map-overlay { position: absolute; inset: 0; z-index: 6; touch-action: none; cursor: crosshair; }
.wl-mc-map-overlay .wl-mc-spawn { stroke-width: 2; }
.wl-mc-map-overlay .wl-mc-map-label { font-size: calc(var(--t-help) * var(--zoom-multiplier, 1)); }
.wl-mc-map-overlay .wl-mc-spawn { r: calc(var(--sp-2) * var(--zoom-multiplier, 1)); }
.wl-mc-preview-extra { padding: var(--sp-3); border-top: 1px solid var(--wl-line); }
.wl-mc-preview-extra p { margin: 0; }
.wl-mc-authored-preview { pointer-events: none; }
.wl-mc-composer-preview { padding: var(--sp-3); border: 1px solid var(--wl-line-strong); border-radius: var(--r-md); color: var(--wl-text-2); background: var(--wl-surface); }
.wl-mc-composer-who { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--t-help); }
.wl-mc-composer-who > .wb-game-token-face { width: 28px; height: 28px; border-radius: var(--r-pill); overflow: hidden; }
.wl-mc-composer-who > span:last-child { margin-left: auto; color: var(--wl-text-3); }
.wl-mc-composer-words { padding-block: var(--sp-4); color: var(--wl-text-3); font-size: var(--t-ui); }
.wl-mc-composer-tools { display: flex; align-items: center; gap: var(--sp-3); color: var(--wl-text-3); }
.wl-mc-composer-tools > svg { width: 16px; height: 16px; }
.wl-mc-preview-send { margin-left: auto; padding: var(--sp-2); background: var(--wl-accent); color: var(--wl-on-accent); border-radius: var(--r-sm); }
.wl-mc-preview-send > svg { width: 16px; height: 16px; }
.wl-mc-selectable { position: relative; cursor: pointer; }
.wl-mc-selectable:hover { outline: 1px solid var(--wl-line-strong); outline-offset: -1px; }
.wl-mc-selectable.is-selected { outline: 2px solid var(--wl-selection); outline-offset: -2px; }
.wl-mc-selectable:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: -2px; }
.wl-mc-game-preview.is-chat .wl-mc-preview-main { grid-template-columns: 1fr; }
.wl-mc-game-preview.is-chat .wl-mc-story-preview { border: 0; }
@container(max-width:720px) { .wl-mc-preview-main { grid-template-columns: 1fr; height: auto; } .wl-mc-map-preview-panel { grid-row: 1; } .wl-mc-story-preview { border-right: 0; border-top: 1px solid var(--wl-line); } .wl-mc .wb-game-map.wl-mc-map-surface, .wl-mc .wl-mc-game-preview .wb-game-map.wl-mc-map-surface { height: 340px; flex: none; } }
.wl-mc-preview { display: grid; grid-template-columns: 32% minmax(0,1fr); min-height: 560px; gap: var(--sp-3); }
.wl-mc-preview.is-chat { grid-template-columns: 1fr; }
.wl-mc-preview.is-chat .wl-mc-preview-parts { display: none; }
.wl-mc-preview-chat, .wl-mc-preview-part, .wl-mc-slot { padding: var(--sp-4); border: 1px dashed var(--wl-line-strong); border-radius: var(--r-sm); background: var(--wl-bg); color: var(--wl-text-2); }
.wl-mc-preview-chat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); text-align: center; }
.wl-mc-preview-chat span { font-size: var(--t-help); color: var(--wl-text-3); }
.wl-mc-preview-parts { display: flex; min-width: 0; flex-direction: column; gap: var(--sp-3); }
.wl-mc-preview-part { min-width: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3); }
.wl-mc-preview-part.is-selected { border-color: var(--wl-selection); border-style: solid; outline: 1px solid var(--wl-selection-soft); outline-offset: 3px; }
.wl-mc-preview-part.is-map { flex: 1; min-height: 260px; }
.wl-mc-preview-part.is-card { padding: 0; display: block; overflow: hidden; }
.wl-mc-preview-card { width: 100%; min-width: 0; }
.wl-mc-preview-part strong { font-weight: 500; }
.wl-mc-preview-value { color: var(--wl-text); font: 600 var(--t-h2)/1.2 var(--wl-font-mono); font-variant-numeric: tabular-nums; }
.wl-mc-preview-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.wl-mc-preview-actions > span:not(.wl-mc-note) { border: 1px solid var(--wl-line); padding: var(--sp-1) var(--sp-2); border-radius: var(--r-xs); font-size: var(--t-help); }
.wl-mc-slot { flex: 1; min-height: 240px; cursor: pointer; }
.wl-mc-slot:hover { border-color: var(--wl-selection); background: var(--wl-surface); }
.wl-mc-map-toolbar { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: flex-end; flex-wrap: wrap; }
.wl-mc-map-toolbar strong { font-weight: 500; }
.wl-mc-map-toolbar .wl-mc-field { margin: 0; }
.wl-mc-map { display: block; width: 100%; aspect-ratio: 5/3; margin-top: var(--sp-5); border: 1px solid var(--wl-line-strong); border-radius: var(--r-md); background: var(--wl-surface); touch-action: none; cursor: crosshair; }
.wl-mc-grid-line { stroke: var(--wl-line); stroke-width: 1; }
.wl-mc-zone { fill: var(--wl-selection-soft); stroke: var(--wl-line-strong); stroke-width: 2; cursor: pointer; }
.wl-mc-zone.is-selected { stroke: var(--wl-selection); }
.wl-mc-map-label { fill: var(--wl-text-2); font: 15px var(--wl-font-ui); pointer-events: none; }
.wl-mc-spawn { fill: var(--wl-bg); stroke: var(--wl-text-3); stroke-width: 2; cursor: pointer; }
.wl-mc-spawn.is-selected { stroke: var(--wl-selection); stroke-width: 3; }
.wl-mc-library-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-5); justify-content: space-between; margin-bottom: var(--sp-6); }
.wl-mc-library-head h1 { margin: 0; font: 400 var(--t-title-page)/1.25 var(--wl-font-title); letter-spacing: 0; }
/* The mechanics as cards, two to a row (one on a phone). D-182 adds each one's screen drawn small, when built. */
.wl-mc-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.wl-mc-library > .wl-mc-empty { grid-column: 1 / -1; }
/* A mechanic's card (D-182): it drawn small as it plays, then its name, what it is and its facts; a pin at its top
   right (D-226). The picture is laid out at a game window's size and shrunk, so it is the real view. */
.wl-mc-card { position: relative; display: flex; min-width: 0; border: 1px solid var(--wl-line); border-radius: var(--r-lg); background: var(--wl-surface); box-shadow: var(--wl-elev-card); overflow: hidden; transition: border-color var(--wl-quick) var(--wl-ease), background-color var(--wl-quick) var(--wl-ease); }
.wl-mc-card:hover { border-color: var(--wl-line-strong); background: var(--wl-raised); }
:is(.wl-sys, .wl-mc) .wl-mc-card .wl-mc-card-open { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; width: 100%; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--wl-text-2); text-align: left; white-space: normal; cursor: pointer; }
:is(.wl-sys, .wl-mc) .wl-mc-card .wl-mc-card-open:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: -2px; border-radius: var(--r-lg); }
.wl-mc-card-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wl-bg); border-bottom: 1px solid var(--wl-line); }
.wl-mc-card-stage { position: absolute; left: 0; top: 0; width: 1040px; height: 585px; container-type: inline-size; transform: scale(var(--wl-mc-card-scale, .5)); transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity var(--wl-base) var(--wl-ease); }
.wl-mc-card-art.is-drawn .wl-mc-card-stage { opacity: 1; }
.wl-mc-card-stage .wl-mc-game-preview { display: flex; flex-direction: column; height: 100%; border: 0; border-radius: 0; }
.wl-mc-card-stage .wl-mc-preview-title { display: none; }
.wl-mc-card-stage .wl-mc-preview-main { flex: 1; height: auto; min-height: 0; }
.wl-mc-card-words { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.wl-mc-card-name { margin: 0; color: var(--wl-text); font: 400 var(--t-title-section)/1.3 var(--wl-font-title); letter-spacing: 0; overflow-wrap: anywhere; }
.wl-mc-card-about { display: -webkit-box; margin: 0; overflow: hidden; color: var(--wl-text-2); font-size: var(--t-help); line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wl-mc-card-facts { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-1); color: var(--wl-text-3); font-size: var(--t-help); }
.wl-mc-card-fact { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.wl-mc-card-fact > svg { flex: none; width: 14px; height: 14px; }
:is(.wl-sys, .wl-mc) .wl-mc-card .wl-mc-card-pin { position: absolute; top: var(--sp-3); right: var(--sp-3); display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--wl-line-strong); border-radius: var(--r-pill); background: color-mix(in srgb, var(--wl-surface) 88%, transparent); box-shadow: none; color: var(--wl-text-2); opacity: 0; transition: opacity var(--wl-quick) var(--wl-ease), color var(--wl-quick) var(--wl-ease); }
:is(.wl-sys, .wl-mc) .wl-mc-card .wl-mc-card-pin > svg { width: 15px; height: 15px; }
:is(.wl-sys, .wl-mc) .wl-mc-card:is(:hover, :focus-within) .wl-mc-card-pin, :is(.wl-sys, .wl-mc) .wl-mc-card .wl-mc-card-pin.is-on { opacity: 1; }
:is(.wl-sys, .wl-mc) .wl-mc-card .wl-mc-card-pin:hover { color: var(--wl-text); background: var(--wl-raised); }
:is(.wl-sys, .wl-mc) .wl-mc-card .wl-mc-card-pin.is-on { color: var(--wl-selection); }
:is(.wl-sys, .wl-mc) .wl-mc-card .wl-mc-card-pin:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
@media (hover: none) { :is(.wl-sys, .wl-mc) .wl-mc-card .wl-mc-card-pin { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wl-mc-card, .wl-mc-card-stage, .wl-mc-card-pin { transition: none !important; } }
.wl-mc-empty { max-width: 460px; text-align: center; padding: var(--sp-7) var(--sp-5); margin: auto; }
.wl-mc-empty h2 { margin-top: 0; color: var(--wl-text); font: 400 var(--t-title-section)/1.4 var(--wl-font-title); letter-spacing: 0; }
.wl-mc-empty p { color: var(--wl-text-3); font-size: var(--t-ui); line-height: 1.6; }
.wl-mc-empty .wl-mc-button { margin-top: var(--sp-4); }
/* With nothing made yet, the empty state's button is the page's one main action; the heading's turns quiet. */
.wl-sys:has(.wl-mc-empty) .wl-mc-library-head .wl-mc-button.is-primary { border-color: var(--wl-line-strong); background: var(--wl-surface); color: var(--wl-text); font-weight: 500; }
.wl-sys:has(.wl-mc-empty) .wl-mc-library-head .wl-mc-button.is-primary:hover { border-color: color-mix(in srgb, var(--wl-text-3) 55%, var(--wl-line-strong)); background: var(--wl-raised); }
.wl-mc-shared { display: flex; gap: var(--sp-5); align-items: center; flex-wrap: wrap; margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--wl-line); }
.wl-mc-shared h2 { color: var(--wl-text-3); font: 500 var(--t-help) var(--wl-font-ui); margin: 0; }
:is(.wl-sys, .wl-mc) .wl-mc-shared-link { display: inline-flex; align-items: center; gap: var(--sp-2); height: auto; min-height: var(--wl-control); margin: 0; padding: 0; border: 0; border-radius: var(--r-xs); background: transparent; box-shadow: none; color: var(--wl-text-2); font: 500 var(--t-ui) var(--wl-font-ui); cursor: pointer; }
:is(.wl-sys, .wl-mc) .wl-mc-shared-link:hover { background: transparent; color: var(--wl-text); }
.wl-mc-policy { border-top: 1px solid var(--wl-line); margin-top: var(--sp-6); padding-top: var(--sp-5); color: var(--wl-text-2); }
.wl-mc-policy summary { cursor: pointer; font-size: var(--t-ui); }
.wl-mc-policy-types { border: 0; padding: 0; margin: var(--sp-5) 0 0; display: flex; gap: var(--sp-4); flex-wrap: wrap; }
.wl-mc-policy-types legend { color: var(--wl-text-3); font-size: var(--t-help); margin-bottom: var(--sp-2); }
.wl-mc-policy-types .wl-mc-check { margin: 0; }
.wl-sys-mechanic-child { padding-left: var(--sp-6); }
@media(max-width:1000px) {
 .wl-mc-bar.wt-ws-bar { flex-wrap: wrap; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
 .wl-mc-bar .wt-ws-actions { flex: none; margin-left: auto; }
 .wl-mc-bar .wt-ws-views { order: 3; width: 100%; justify-content: center; }
 .wl-mc-setup { grid-template-columns: minmax(0,1fr) 240px; }
 .wl-mc-screen { grid-template-columns: 140px minmax(0,1fr) 224px; }
 .wl-mc-main { padding: var(--sp-5); }
 .wl-mc-canvas { padding: var(--sp-4); }
 .wl-mc-inspector { padding: var(--sp-4); }
 .wl-mc-preview { grid-template-columns: 1fr; }
 .wl-mc-preview-chat { min-height: 100px; }
}
@media(max-width:720px) {
 .wl-mc-setup, .wl-mc-workbench, .wl-mc-screen { display: block; overflow: auto; }
 .wl-mc-main, .wl-mc-canvas, .wl-mc-inspector { overflow: visible; }
 .wl-mc-inspector { border: 0; border-top: 1px solid var(--wl-line); padding: var(--sp-5); }
 .wl-mc-nav { display: flex; overflow: auto; gap: var(--sp-2); align-items: center; border-right: 0; border-bottom: 1px solid var(--wl-line); padding: var(--sp-3); }
 .wl-mc-nav .wl-mc-section { display: contents; }
 .wl-mc-nav .wl-mc-section-head { display: none; }
 .wl-mc .wl-mc-nav .wl-mc-button, .wl-mc .wl-mc-nav > .wl-mc-section + .wl-mc-button { width: auto; flex: none; min-height: var(--wl-control); margin: 0; white-space: nowrap; }
 .wl-mc-bar .wl-mc-status { display: none; }
 .wl-mc-bar .wt-ws-title { max-width: 140px; }
 .wl-mc-bar .wt-ws-actions { gap: var(--sp-2); }
 .wl-mc-bar .wt-ws-actions > .wl-mc-button { min-height: 40px; }
 .wl-mc .wl-mc-list-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
 .wl-mc-list-row small { display: none; }
 .wl-mc-field :is(input,textarea,select) { min-height: 40px; font-size: var(--t-body); }
 .wl-mc-phase { grid-template-columns: 1fr 1fr; }
 .wl-mc-phase > .wl-mc-button { grid-column: 2; justify-self: end; }
 .wl-mc-library-head { align-items: flex-start; gap: var(--sp-4); }
 .wl-mc-library { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:reduce) { .wl-mc *, .wl-mc *::before, .wl-mc *::after { animation: none !important; transition: none !important; } }

/* ---- The mechanic editor (D-338): the types editor's frame (type-editor.css), with its pieces on the left, the piece
   at work in the middle and its settings on the right. Only what differs from the frame is set here. ---- */
.wt-ws.wl-me.is-design .wt-ws-body { grid-template-columns: 264px minmax(0, 1fr) 384px; --wt-ws-side-drawer: 0; }
.wt-ws.wl-me.is-try .wt-ws-body { grid-template-columns: minmax(0, 1fr); }
.wl-me [hidden] { display: none !important; }
.wl-me .wl-me-pbar { display: none; }
.wl-me .wl-me-scroll { padding: 28px 32px 72px; }
.wl-me-mid { display: flex; flex-direction: column; gap: 14px; max-width: 620px; margin: 0 auto; }
.wl-me.is-try .wl-me-mid { max-width: 820px; }
.wl-me-mid > .wl-se-try { margin: 0; }
/* Code: the code takes the whole editor, edge to edge. The pieces slide in from their button as on a narrower window;
   along the bottom, the log, where what a try did shows, with Try and Try in a game in its bar (who, to whom and where
   are Design's); and How an action is written opens from its ? over the editor, as Map help does. */
.wt-ws.wl-me.is-design.is-mcode .wt-ws-body { grid-template-columns: minmax(0, 1fr); --wt-ws-side-drawer: 1; }
.wt-ws.wl-me.is-mcode .wt-ws-side { position: absolute; top: 0; bottom: 0; left: 0; z-index: 21; width: min(292px, 88%); box-shadow: var(--wl-elev-pop); transform: translateX(-104%); visibility: hidden; transition: transform var(--wl-short) var(--wl-ease), visibility 0s var(--wl-short); }
.wt-ws.wl-me.is-mcode.is-side-open .wt-ws-side { transform: none; visibility: visible; transition: transform var(--wl-short) var(--wl-ease); }
.wt-surface .wt-ws.wl-me.is-mcode .wt-ws-side .wt-ws-side-close { display: grid; position: absolute; top: 14px; right: 10px; }
.wt-ws.wl-me.is-mcode .wt-ws-side-tabs { margin-right: 48px; }
.wt-ws.wl-me.is-mcode .wl-me-scroll { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.wt-ws.wl-me.is-mcode .wl-me-mid { flex: 1; min-height: 0; width: 100%; max-width: none; gap: 0; }
.wt-ws.wl-me.is-mcode .wl-me-mid > .wl-se-boris { margin: 10px 16px 0; }
.wt-ws.wl-me.is-mcode .wl-me-mid > .wl-se-code { flex: 1 1 0; height: auto; min-height: 160px; border-radius: 0; background: transparent; box-shadow: none; }
.wt-ws.wl-me.is-mcode .wl-me-mid > .wl-se-test { flex: 0 1 clamp(200px, 32%, 320px); height: auto; min-height: 120px; margin: 0; border-top: 1px solid var(--wl-line); border-radius: 0; background: transparent; box-shadow: none; }
/* The log folds and is sized from its top edge (kit-editor.mjs dockLog): the edge lights on hover and while dragged,
   and on a touch screen a small handle shows where to hold it. Folded, only its bar shows. */
.wt-ws.wl-me.is-mcode .wl-me-mid > .wl-me-log { position: relative; overflow: visible; }
.wt-ws.wl-me.is-mcode .wl-me-mid > .wl-me-log.is-shut { flex: none; min-height: 0; }
.wl-me-log.is-shut > .wl-se-body, .wl-me-log.is-shut > .wl-se-prompt { display: none; }
/* Folded, its bar is the editor's foot, where Boris's button floats: its buttons stop short of him, as the line to
   type in does. */
.wl-me-log.is-shut > .wl-se-test-bar { padding-right: 76px; border-bottom-color: transparent; }
.wl-me-log-grip { position: absolute; top: -5px; left: 0; right: 0; z-index: 3; height: 10px; cursor: row-resize; touch-action: none; outline: none; }
.wl-me-log-grip::after { content: ''; position: absolute; top: 4px; left: 0; right: 0; height: 2px; background: transparent; transition: background var(--wl-quick) var(--wl-ease); }
.wl-me-log-grip:hover::after, .wl-me-log-grip:focus-visible::after, .wl-me-log.is-sizing > .wl-me-log-grip::after { background: var(--wl-selection); }
.wl-me-log.is-sizing { user-select: none; }
@media (pointer: coarse) {
  .wl-me-log-grip { top: -11px; height: 22px; }
  .wl-me-log-grip::after { top: 10px; }
  .wl-me-log-grip::before { content: ''; position: absolute; top: 14px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--wl-line-strong); }
}
.wl-me .wl-se-test-bar .wl-me-log-fold .wt-glyph { transition: transform var(--wl-short) var(--wl-ease); }
.wl-me .wl-me-log.is-shut .wl-me-log-fold .wt-glyph { transform: rotate(180deg); }
/* The code box (code-box.mjs): a soft band on the caret's line, across the numbers (its number bright) and the code,
   and a box on the bracket at the caret and on its partner. */
.wt-ws.wl-me.is-mcode .wl-me-mid > .wl-se-code { position: relative; }
.wl-code-band { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; background: color-mix(in srgb, var(--wl-text) 4%, transparent); }
.wl-code-band[hidden] { display: none; }
.wl-code-band > b { position: absolute; top: 0; left: 0; box-sizing: border-box; color: var(--wl-text); text-align: right; }
.wl-code-marks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.wl-code-mark { position: absolute; border-radius: 3px; background: color-mix(in srgb, var(--wl-selection) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wl-selection) 50%, transparent); }
.wl-me .wl-se-test-bar .wl-se-try-go, .wl-me .wl-se-test-bar .wl-se-try-game { flex: none; width: auto; height: 30px; margin: 0; padding: 0 14px; border-radius: var(--r-pill); font-size: 12.5px; }
.wl-me-codebar { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; padding: 8px 16px; border-bottom: 1px solid var(--wl-line); }
.wl-se[data-view="code"] .wl-me-codebar > .wl-se-on { flex: 1; min-width: 0; margin: 0; }
.wl-se .wl-me-codebar select.wl-se-add { width: 160px; max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.wt-surface .wl-me-codebar .wl-me-side-toggle { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--wl-line); border-radius: var(--r-pill); background: transparent; box-shadow: none; color: var(--wl-text-2); font-size: 12.5px; }
.wt-surface .wl-me-codebar .wl-me-side-toggle:hover { color: var(--wl-text); border-color: var(--wl-line-strong); }
.wt-surface .wl-me-codebar .wl-me-side-toggle[aria-pressed="true"] { background: var(--wl-raised); color: var(--wl-text); }
.wl-me-codebar .wl-me-side-toggle .wt-glyph { width: 14px; height: 14px; }
@container wt-ws (max-width: 1099px) {
  .wt-surface .wl-me-codebar .wl-me-side-toggle { justify-content: center; width: 30px; padding: 0; }
  .wl-me-codebar .wl-me-side-toggle > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.wt-surface .wl-me-codebar .wl-me-help-btn { flex: none; width: 30px; height: 30px; border-radius: var(--r-pill); color: var(--wl-text-3); }
.wt-surface .wl-me-codebar .wl-me-help-btn:hover { color: var(--wl-text); background: var(--wl-raised); }
.wl-me-help-back { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--wl-bg) 55%, transparent); }
.wl-me-help { display: flex; flex-direction: column; box-sizing: border-box; width: min(620px, 100%); max-height: calc(100% - 48px); overflow: hidden; border: 1px solid var(--wl-line); border-radius: var(--r-xl); background: var(--wl-surface); color: var(--wl-text); box-shadow: var(--wl-elev-pop); }
.wl-me-help-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; padding: 14px 14px 10px 22px; }
.wt-surface .wl-me-help-head h2 { margin: 0; color: var(--wl-text); font: 600 18px/1.3 var(--wl-font-ui); letter-spacing: normal; text-transform: none; }
.wl-me-help-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 22px 20px; }
.wt-surface .wl-me-help-body > h3 { margin: 22px 0 8px; color: var(--wl-text-2); font-size: 12.5px; font-weight: 600; }
.wl-me-help .wl-se-guide { grid-template-columns: minmax(150px, 40%) minmax(0, 1fr); align-items: baseline; gap: 10px 18px; }
.wl-me-help .wl-se-guide dt { font-size: 12px; }
.wl-me-help .wl-se-guide dd { margin: 0; font-size: 12.5px; }
.wl-me-help .wl-me-keys dt { font-family: var(--wl-font-ui); font-weight: 600; }
@container wt-ws (max-width: 599px) {
  .wl-me-codebar { flex-wrap: wrap; padding: 8px 12px; }
  .wl-me .wl-se-test-bar .wl-se-try-game { width: 30px; padding: 0; justify-content: center; }
  .wl-me .wl-se-test-bar .wl-se-try-game > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wl-me-help .wl-se-guide { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wl-me-help .wl-se-guide dd { margin-bottom: 10px; }
}
.wl-me-title { all: unset; cursor: pointer; border-radius: var(--r-sm); }
.wl-me-title:hover, .wl-me-title.is-on { color: var(--wl-text); text-decoration: underline; text-decoration-color: var(--wl-line-strong); text-underline-offset: 4px; }
.wl-me-title:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
.wl-me-ask { color: var(--wl-text-2); font-size: 12.5px; line-height: 1.4; }
.wl-me-problem { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 16px; border-bottom: 1px solid color-mix(in srgb, var(--wl-danger) 40%, var(--wl-line)); background: color-mix(in srgb, var(--wl-danger) 10%, var(--wl-surface)); color: var(--wl-text); font-size: 12.5px; }
.wl-me-problem .wt-glyph { flex: none; width: 15px; height: 15px; margin-top: 2px; color: var(--wl-danger); }
.wl-me-problem p { margin: 0; line-height: 1.45; }
.wl-me-gone { display: grid; justify-items: center; gap: 8px; max-width: 360px; margin: 18vh auto 0; text-align: center; color: var(--wl-text-2); }
.wl-me-gone > .wt-glyph { width: 26px; height: 26px; color: var(--wl-text-3); }
.wl-me-gone h3 { margin: 0; color: var(--wl-text); font: 600 16px var(--wl-font-ui); }
.wl-me-gone p { margin: 0; font-size: 13px; line-height: 1.5; }

/* Pieces: a group per kind with its count, folding under its arrow; one row per piece. */
.wl-me-find { margin: 6px 0 4px; }
.wl-me-groups { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.wl-me-group-head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; height: 30px; padding: 0 4px; border-radius: var(--r-sm); color: var(--wl-text-3); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.wl-me-group-head:hover { color: var(--wl-text-2); }
.wl-me-group-head:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: -2px; }
.wl-me-group-head .wl-me-fold { width: 13px; height: 13px; transition: transform var(--wl-quick) var(--wl-ease); }
.wl-me-group.is-folded .wl-me-fold { transform: rotate(-90deg); }
.wl-me-count { margin-left: auto; color: var(--wl-text-3); font-size: 11px; font-weight: 500; letter-spacing: 0; }
.wl-me-rows { display: flex; flex-direction: column; gap: 2px; }
.wl-me-row { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border-radius: var(--r-md); color: var(--wl-text); cursor: pointer; transition: background var(--wl-quick) var(--wl-ease); }
.wl-me-row:hover { background: var(--wl-raised); }
.wl-me-row:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: -2px; }
.wl-me-row.is-selected { background: var(--wl-selection-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wl-selection) 40%, transparent); }
.wl-me-row-mark { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--wl-surface); box-shadow: inset 0 0 0 1px var(--wl-line); color: var(--wl-text-2); }
.wl-me-row-mark .wt-glyph { width: 14px; height: 14px; }
.wl-me-row.is-used .wl-me-row-mark { background: none; }
.wl-me-row-words { display: grid; flex: 1; gap: 1px; min-width: 0; text-align: left; }
.wl-me-row-words b { overflow: hidden; color: inherit; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.wl-me-row-words small { overflow: hidden; color: var(--wl-text-3); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.wl-me-row-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--wl-warning); }
.wl-me-none { margin: 14px 4px; color: var(--wl-text-3); font-size: 12.5px; }
.wl-me-empty { display: grid; gap: 10px; justify-items: start; margin: 14px 4px; color: var(--wl-text-2); font-size: 12.5px; line-height: 1.5; }
.wl-me-empty p { margin: 0; }

/* Add: three new pieces as tiles, then ready-made ones and those another mechanic has, as rows. */
.wl-me-add-new { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wt-surface .wl-me-add-tile { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; height: auto; min-height: 76px; padding: 10px; }
.wl-me-add-tile .wt-glyph { margin-bottom: 4px; }
.wl-me-add-tile b { font-size: 12.5px; font-weight: 600; }
.wl-me-add-tile small { color: var(--wl-text-3); font-size: 11px; line-height: 1.35; white-space: normal; text-align: left; }
.wt-surface .wl-me-add-item { height: auto; min-height: 46px; padding: 6px 10px; }
.wl-me-add-from { margin: 10px 4px 2px; color: var(--wl-text-2); font-size: 12px; font-weight: 600; }
.wl-me-add-help { display: flex; align-items: flex-start; gap: 8px; margin: 22px 4px 0; color: var(--wl-text-3); font-size: 12px; line-height: 1.5; }
.wl-me-add-help .wt-glyph { flex: none; width: 14px; height: 14px; margin-top: 2px; }

/* The middle: an action's odds and Undo; a tracker everywhere it appears; the mechanic itself. */
.wl-me-odds { display: grid; gap: 8px; margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--wl-inset); box-shadow: inset 0 0 0 1px var(--wl-line); }
.wl-me-odds-head { display: flex; align-items: center; gap: 8px; color: var(--wl-text-2); font-size: 12.5px; }
.wl-me-odds-head .wt-glyph { width: 14px; height: 14px; color: var(--wl-text-3); }
.wl-me-odds-head b { color: var(--wl-text); font-weight: 600; }
.wl-me-odds-sum { margin-left: auto; color: var(--wl-text); font: 600 12.5px var(--wl-font-mono); }
.wl-me-odds-rows { display: grid; gap: 4px; }
.wl-me-odds-row { display: grid; grid-template-columns: minmax(84px, auto) 1fr; gap: 10px; color: var(--wl-text); font-size: 12.5px; line-height: 1.45; }
.wl-me-odds-k { color: var(--wl-text-3); font: 12px var(--wl-font-mono); white-space: nowrap; }
.wl-me-odds-line { margin: 0; color: var(--wl-text); font-size: 12.5px; line-height: 1.45; }
.wl-me-odds-line.is-dim { color: var(--wl-text-3); }
.wl-me-odds-line.is-no { color: var(--wl-warning); }
.wl-me-run-foot { display: flex; justify-content: flex-end; gap: 6px; }
.wl-me-run-foot:empty { display: none; }
.wl-me-appears { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--wl-surface); box-shadow: inset 0 0 0 1px var(--wl-line); }
.wl-me-appears-head { display: flex; align-items: center; gap: 8px; color: var(--wl-text); font-size: 13px; }
.wl-me-appears-head .wt-glyph { width: 14px; height: 14px; color: var(--wl-text-3); }
.wl-me-appears-rows { display: grid; gap: 8px; }
.wl-me-appears-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 30px; }
.wl-me-appears-k { color: var(--wl-text-3); font-size: 12px; }
.wl-me-appears-v { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; color: var(--wl-text-2); font-size: 12.5px; }
.wl-me-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-me-chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: var(--r-pill); background: var(--wl-raised); box-shadow: inset 0 0 0 1px var(--wl-line); color: var(--wl-text); font-size: 12px; cursor: pointer; transition: box-shadow var(--wl-quick) var(--wl-ease); }
.wl-me-chip:hover { box-shadow: inset 0 0 0 1px var(--wl-line-strong); }
.wl-me-chip:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
.wl-me-about { display: grid; justify-items: center; gap: 8px; padding: 24px 0; text-align: center; }
.wl-me-about-look { width: min(420px, 100%); }
.wl-me-about h2 { margin: 12px 0 0; color: var(--wl-text); font: 600 20px/1.25 var(--wl-font-ui); }
.wl-me-about-said { max-width: 460px; margin: 0; color: var(--wl-text-2); font-size: 13.5px; line-height: 1.5; }
.wl-me-about-facts { color: var(--wl-text-3); font-size: 12.5px; }
.wl-me-about-go { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.wl-me .wl-me-cta, .wl-me .wl-me-mini { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--r-pill); font-size: 12.5px; }
.wl-me .wl-me-mini { height: 30px; padding: 0 12px; background: var(--wl-raised); box-shadow: inset 0 0 0 1px var(--wl-line); color: var(--wl-text); }
.wl-me .wl-me-mini:hover { box-shadow: inset 0 0 0 1px var(--wl-line-strong); }
.wl-me :is(.wl-me-cta, .wl-me-mini) .wt-glyph { width: 14px; height: 14px; }

/* How a mechanic looks: its trackers at a sample number with its first actions under them, or its scene. */
.wl-me-look { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 96px; padding: 14px; box-sizing: border-box; }
.wl-me-look.is-system { aspect-ratio: 16 / 9; min-height: 0; padding: 0; border: 0; }
.wl-me-about-look .wl-me-look { border-radius: var(--r-lg); background: var(--wl-inset); box-shadow: inset 0 0 0 1px var(--wl-line); overflow: hidden; }
.wl-me-look.is-empty .wt-glyph { width: 22px; height: 22px; color: var(--wl-text-3); }
.wl-me-look-trackers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; max-width: 100%; }
.wl-me-look-tracker { flex: none; max-width: 100%; }
.wl-me-look-tracker .wl-mx-meter { width: 172px; max-width: 100%; box-sizing: border-box; }
/* A tracker in its own look (D-359) on a mechanic's card: as wide as a bar, and the card underneath takes the click. */
.wl-me-look-tracker:has(> .wl-tk-own) { width: 220px; }
.wl-me-look .wl-tk-own, .wl-me-look .wl-tk-own .wl-card-frame { pointer-events: none; }
.wl-me-look-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; }
.wl-me-look-act { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: var(--r-pill); background: var(--wl-raised); box-shadow: inset 0 0 0 1px var(--wl-line-strong); color: var(--wl-text); font: 500 12px var(--wl-font-ui); white-space: nowrap; }
.wl-me-look-act.is-moment { background: transparent; box-shadow: inset 0 0 0 1px var(--wl-line); color: var(--wl-text-2); font-style: italic; }

/* The right column: what the piece is, then its own parts as cards. */
.wl-me .wl-me-head { padding-bottom: 6px; }
.wl-me-panel .wl-ss { padding: 0; }
.wl-me-panel .wl-ss-head { margin-top: 4px; }
.wl-me-panel .wl-me-card.wl-ss-sec { margin-top: 10px; padding: 10px 12px 12px; }
.wl-me-panel .wl-me-card.wl-ss-sec > .wt-ws-card-head { margin-bottom: 8px; }
.wl-me-panel .wl-ss-rows .wl-ss-row { grid-template-columns: 82px minmax(0, 1fr); }
.wl-me-panel .wl-ss-sec > .wl-ss-k { margin-top: 18px; }
.wl-me-used { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; padding: 9px 12px; border-radius: var(--r-md); background: var(--wl-raised); color: var(--wl-text-2); font-size: 12px; line-height: 1.45; }
.wl-me-used .wt-glyph { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.wl-me-what { display: grid; gap: 8px; }
.wl-me-what .wt-ws-card-head { margin-bottom: 0; }
.wl-me .wl-me-name, .wl-me .wl-me-said { width: 100%; box-sizing: border-box; margin: 0; padding: 8px 10px; border-radius: var(--r-md); background: var(--wl-inset); box-shadow: inset 0 0 0 1px var(--wl-line); color: var(--wl-text); font: 13px/1.45 var(--wl-font-ui); }
.wl-me .wl-me-name { font-size: 15px; font-weight: 600; }
.wl-me .wl-me-said { resize: vertical; }
.wl-me-card > .wl-ss-dim { margin: 2px 0 10px; font-size: 12.5px; line-height: 1.5; }
.wl-me-switch { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.wl-me-switch + .wl-me-switch { border-top: 1px solid var(--wl-line); }
.wl-me-switch input { flex: none; margin: 2px 0 0; }
.wl-me-switch span { display: grid; gap: 1px; }
.wl-me-switch b { color: var(--wl-text); font-size: 13px; font-weight: 500; }
.wl-me-switch small { color: var(--wl-text-3); font-size: 11.5px; }
.wl-me-when .wl-me-mini { margin-top: 8px; }


/* Narrower windows: the frame's drawers (type-editor.css), at this editor's widths. */
@container wt-ws (max-width: 1099px) {
  .wt-ws.wl-me.is-design .wt-ws-body { grid-template-columns: minmax(0, 1fr) 340px; --wt-ws-side-drawer: 1; }
  .wl-me .wl-me-pbar { display: flex; }
  .wl-me .wl-me-scroll { padding-top: 72px; }
  .wl-me .wl-me-side-toggle { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); font-size: 12.5px; }
  .wl-me-side-toggle .wt-glyph { width: 14px; height: 14px; }
  .wl-me-side-toggle[aria-pressed="true"] { background: var(--wl-raised); }
}
@container wt-ws (max-width: 799px) {
  .wt-ws.wl-me.is-design .wt-ws-body { grid-template-columns: minmax(0, 1fr); --wt-ws-drawer: 1; }
  .wl-me .wl-me-panel { width: min(360px, 92%); }
  .wl-me .wl-me-scroll { padding: 72px 16px 48px; }
  .wl-me-appears-row { grid-template-columns: 1fr; gap: 4px; }
  .wl-me .wt-ws-files { display: none; }
}
@container wt-ws (max-width: 599px) {
  .wl-me .wl-me-panel { width: auto; }
  .wl-me .wl-me-scroll { padding: 64px 12px 40px; }
  .wl-me-add-new { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .wl-me-row, .wl-me-chip, .wl-me-group-head .wl-me-fold { transition: none !important; } }

/* System, Mechanics: a mechanic's card, with its look, and a pin shown on hover (always when pinned). */
.wl-me-grid .wl-me-kcard-look { height: 128px; padding: 0; }
.wl-me-grid .wl-me-kcard-look .wl-me-look { height: 100%; min-height: 0; }
.wl-me-grid .wl-me-kcard-look .wl-me-look.is-system { aspect-ratio: auto; height: 128px; border-bottom: 0; }
.wl-me-kcard-pin { all: unset; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--wl-surface) 88%, transparent); box-shadow: inset 0 0 0 1px var(--wl-line); color: var(--wl-text-2); cursor: pointer; opacity: 0; transition: opacity var(--wl-quick) var(--wl-ease); }
.wl-me-kcard-pin .wl-sys-glyph { width: 14px; height: 14px; }
.wl-me-kcard:hover .wl-me-kcard-pin, .wl-me-kcard-pin:focus-visible, .wl-me-kcard-pin.is-on { opacity: 1; }
.wl-me-kcard-pin:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
@media (hover: none) { .wl-me-kcard-pin { opacity: 1; } }
.wl-sys .wl-mx-back { all: unset; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 6px; color: var(--wl-text-3); font: 12.5px var(--wl-font-ui); cursor: pointer; }
.wl-sys .wl-mx-back:hover { color: var(--wl-text); }
.wl-sys .wl-mx-back .wl-sys-glyph { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .wl-me-kcard-pin { transition: none; } }
.wl-me .wt-ws-files { line-height: 22px; }
/* The settings column is narrow: steps take the action page's narrow layout, a try's result under the words. */
.wl-me .wl-me-panel .wl-ss-step { grid-template-columns: 24px minmax(0, 1fr) 28px; gap: 10px; }
.wl-me .wl-me-panel .wl-ss-res { grid-column: 2; grid-row: 2; justify-self: start; max-width: 100%; }
.wl-me .wl-me-panel .wl-ss-more { grid-column: 3; grid-row: 1; }
.wl-me .wl-me-panel .wl-ss-row-v .wl-ss-step { grid-template-columns: minmax(0, 1fr) 28px; }
.wl-me .wl-me-panel .wl-ss-row-v .wl-ss-res { grid-column: 1; }
.wl-me .wl-me-panel .wl-ss-row-v .wl-ss-more { grid-column: 2; }
.wl-me .wl-me-panel .wl-ss-look { grid-template-columns: 48px minmax(0, 1fr) 28px; }
.wl-me .wl-me-panel .wl-ss-look .wl-ss-res { grid-column: 2; grid-row: 2; justify-self: start; }
.wl-me .wt-ws-side-body .wt-ws-add-title { margin: 18px 4px 8px; font-size: 11px; line-height: 1.3; }
.wl-me .wt-ws-side-body .wt-ws-add-title:first-of-type { margin-top: 10px; }
.wl-me .wl-me-panel .wl-tk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Try it for a whole mechanic: who plays and where, its trackers as the player sees them, a button for each action. */
.wl-me-try { display: flex; flex-direction: column; gap: 16px; }
.wl-me-try .wl-se-try-head { flex-wrap: wrap; }
.wl-me-try-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.wl-me-try-trackers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r-lg); background: var(--wl-inset); box-shadow: inset 0 0 0 1px var(--wl-line); }
.wl-me-try-tracker { flex: none; max-width: 100%; }
.wl-me-try-tracker .wl-mx-meter { width: 220px; max-width: 100%; box-sizing: border-box; }
.wl-me-try-tracker > .wl-mx-num { min-width: 96px; padding: 8px 16px; border: 1px solid var(--wl-line-strong); border-radius: 14px; background: var(--wl-surface); box-sizing: border-box; }
.wl-me-try-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-me .wl-me-try-act { all: unset; box-sizing: border-box; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 7px 14px; border-radius: var(--r-md); background: var(--wl-raised); box-shadow: inset 0 0 0 1px var(--wl-line-strong); color: var(--wl-text); cursor: pointer; transition: background var(--wl-quick) var(--wl-ease); }
.wl-me .wl-me-try-act:hover:not(:disabled) { background: color-mix(in srgb, var(--wl-raised) 70%, var(--wl-text) 8%); }
.wl-me .wl-me-try-act:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; }
.wl-me .wl-me-try-act:disabled { opacity: .5; cursor: default; }
.wl-me-try-act b { font: 600 13px var(--wl-font-ui); }
.wl-me-try-act small { color: var(--wl-text-3); font-size: 11.5px; }
.wl-me-try-out:empty { display: none; }
.wl-me-try-out { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--wl-line); }
.wl-me-try-foot { display: flex; gap: 8px; }
.wl-me-try-foot:empty { display: none; }
@container wt-ws (max-width: 599px) { .wl-me-try-picks { grid-template-columns: minmax(0, 1fr); } }
/* A closed drawer waits off to the side: it never makes the page scroll sideways. */
.wt-ws.wl-me { overflow: clip; }
/* Where it shows, in the narrow settings column: one row each, its picture beside its words. */
.wl-me .wl-me-panel .wl-tk-wheres { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.wl-me .wl-me-panel .wl-tk-where { grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: center; padding: 10px 36px 10px 10px; }
.wl-me .wl-me-panel .wl-tk-where > [class*="-where-pic"] { grid-row: 1 / span 2; height: 54px; }
.wl-me .wl-me-panel .wl-tk-where > b { margin-top: 0; align-self: end; }
.wl-me .wl-me-panel .wl-tk-where > small { align-self: start; }
/* Looks (D-338 step 2). Design: who is "you" and "them", the look as the story shows it, what a press did. */
.wl-lk-try { display: flex; flex-direction: column; gap: 12px; }
.wl-lk-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.wl-lk-frame { min-height: 60px; }
.wl-tk-own { width: 100%; min-width: 0; }
/* A tracker's own look in the editor: the number it is shown at, picked by a slider or one step at a time. */
.wl-tl-sample { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.wl-tl-sample .wl-tl-range { flex: 1; min-width: 0; accent-color: var(--wl-accent); }
.wl-tl-sample .wl-tl-said { min-width: 56px; text-align: right; color: var(--wl-text); font: 600 13px/1 var(--wl-font-mono); }
.wl-lk-frame .wl-card-frame { border-radius: var(--r-lg); }
.wl-lk-said { margin: 0; color: var(--wl-text-3); font-size: 12.5px; }
.wl-lk-empty { display: flex; align-items: center; gap: 10px; padding: 22px; border: 1px dashed var(--wl-line-strong); border-radius: var(--r-lg); color: var(--wl-text-2); font-size: 13px; }
.wl-lk-empty .wt-glyph { flex: none; width: 18px; height: 18px; color: var(--wl-text-3); }
.wl-lk-out { padding-top: 12px; }
.wl-lk-out .wl-se-try-line { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.wl-lk-out .wl-se-try-line .wt-glyph { flex: none; width: 15px; height: 15px; }
.wl-lk-out .wl-se-try-line.is-run { color: var(--wl-success); }
.wl-lk-out .wl-se-try-line.is-error, .wl-lk-out .wl-se-try-line.is-refused { color: var(--wl-danger); }
@container wt-ws (max-width: 599px) { .wl-lk-picks { grid-template-columns: minmax(0, 1fr); } }
/* Its settings: the numbers it shows by whose they are, its buttons and the action each runs. */
.wl-lk-rows { display: flex; flex-direction: column; gap: 10px; }
.wl-lk-row { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 10px; }
.wl-lk-k { color: var(--wl-text-3); font-size: 12px; }
.wl-me-chip.is-still { cursor: default; }
.wl-me-chip.is-still:hover { box-shadow: inset 0 0 0 1px var(--wl-line); }
.wl-me-chip.is-wrong { color: var(--wl-danger); }
.wl-lk-note { margin: 10px 0 0; font-size: 12px; }
.wl-lk-shows .wl-me-mini, .wl-lk-buttons .wl-me-mini, .wl-lk-usedby .wl-me-mini, .wl-me-look-card .wl-me-mini { margin-top: 10px; }
.wl-lk-button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px 4px 12px; border-radius: var(--r-md); background: var(--wl-inset); }
.wl-lk-button + .wl-lk-button { margin-top: 6px; }
.wl-lk-button > b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px var(--wl-font-ui); }
.wl-lk-button .wl-lk-to { flex: none; width: 14px; height: 14px; color: var(--wl-text-3); }
.wl-lk-what small { display: block; margin-top: 8px; font-size: 12px; }
.wl-lk-used { gap: 2px; padding: 0 4px 0 11px; cursor: default; }
.wl-lk-used .wl-lk-used-name { all: unset; cursor: pointer; }
.wl-lk-used .wl-lk-used-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.wl-lk-used .wl-lk-used-name:focus-visible { outline: 2px solid var(--wl-selection); outline-offset: 2px; border-radius: 4px; }
.wt-surface .wl-lk-used .wl-lk-used-x { width: 20px; height: 20px; padding: 0; border-radius: 50%; color: var(--wl-text-3); }
.wt-surface .wl-lk-used .wl-lk-used-x:hover { color: var(--wl-text); background: var(--wl-inset); }
.wl-lk-used .wl-lk-used-x .wt-glyph { width: 12px; height: 12px; }
/* Code: file tabs in the code's bar, the code on the left and the look live on the right, as a code editor with a
   live preview; under the code a line says what it shows. */
.wl-lk-tabs { display: flex; align-items: stretch; gap: 2px; height: 30px; }
.wt-surface .wl-lk-tab { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: transparent; box-shadow: none; color: var(--wl-text-3); font: 600 12px/1 var(--wl-font-mono); letter-spacing: .04em; }
.wt-surface .wl-lk-tab:hover { color: var(--wl-text); background: var(--wl-raised); }
.wt-surface .wl-lk-tab[aria-selected="true"] { color: var(--wl-text); background: var(--wl-raised); box-shadow: inset 0 -2px 0 var(--wl-accent); }
.wl-lk-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--wl-text-3); }
.wl-lk-tab[aria-selected="true"] .wl-lk-dot { background: var(--wl-accent); }
.wl-lk-gap { flex: 1; }
.wl-me .wl-lk-tool { height: 30px; }
.wl-lk-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); flex: 1; min-height: 0; }
.wl-lk-code { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--wl-line); }
.wl-lk-code > .wl-se-code { flex: 1 1 0; min-height: 160px; border-radius: 0; background: transparent; box-shadow: none; position: relative; }
.wl-lk-check { display: flex; align-items: center; gap: 8px; flex: none; margin: 0; padding: 10px 16px; border-top: 1px solid var(--wl-line); color: var(--wl-success); font-size: 12.5px; }
.wl-lk-check.is-wrong { color: var(--wl-danger); }
.wl-lk-check .wt-glyph { flex: none; width: 15px; height: 15px; }
.wl-lk-live { min-width: 0; min-height: 0; overflow: auto; padding: 18px 20px 28px; }
.wl-lk-live > .wl-lk-try { margin: 0; }
.wl-lk-help-row { display: grid; grid-template-columns: minmax(150px, 44%) minmax(0, 1fr); align-items: baseline; gap: 4px 16px; padding: 6px 0; }
.wl-lk-help-row code { color: var(--wl-text); font: 12px/1.5 var(--wl-font-mono); overflow-wrap: anywhere; }
.wl-lk-help-row span { color: var(--wl-text-2); font-size: 12.5px; }
.wt-surface .wl-me-help-body > h4 { margin: 18px 0 4px; color: var(--wl-text-2); font-size: 12.5px; font-weight: 600; }
@container wt-ws (max-width: 899px) {
  .wl-lk-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(220px, 1fr) auto; overflow: auto; }
  .wl-lk-code { border-right: 0; border-bottom: 1px solid var(--wl-line); }
  .wl-lk-live { overflow: visible; }
}
@container wt-ws (max-width: 599px) {
  .wl-lk-tool > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wl-me .wl-lk-tool { width: 30px; padding: 0; justify-content: center; }
  .wt-surface .wl-lk-tab { padding: 0 8px; gap: 4px; }
  .wl-lk-codebar { flex-wrap: nowrap; gap: 4px; }
  .wl-lk-help-row { grid-template-columns: minmax(0, 1fr); }
}
/* Effects (D-338 step 3). Design: the effect playing over the world's people, on the map or on a card, again after
   every change; its settings in rows, each part opening its own. */
.wl-fxe-try { display: flex; flex-direction: column; gap: 12px; isolation: isolate; }
.wl-fxe-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.wl-fxe-seg { display: inline-flex; padding: 2px; border-radius: var(--r-md); background: var(--wl-inset); }
.wt-surface .wl-fxe-seg-b { height: 28px; padding: 0 12px; border: 0; border-radius: calc(var(--r-md) - 2px); background: transparent; box-shadow: none; color: var(--wl-text-3); font: 500 12.5px var(--wl-font-ui); }
.wt-surface .wl-fxe-seg-b:hover { color: var(--wl-text); }
.wt-surface .wl-fxe-seg-b[aria-checked="true"] { color: var(--wl-text); background: var(--wl-raised); box-shadow: 0 0 0 1px var(--wl-line); }
.wl-fxe-seg.is-small { flex-wrap: wrap; }
.wt-surface .wl-fxe-seg.is-small .wl-fxe-seg-b { height: 26px; padding: 0 10px; font-size: 12px; }
.wl-fxe-with { display: inline-flex; align-items: center; gap: 6px; color: var(--wl-text-3); font-size: 12px; }
.wl-fxe-with input { width: 64px; height: 30px; }
.wl-fxe-floor { position: relative; display: flex; align-items: center; justify-content: space-around; min-height: 230px; padding: 24px; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--wl-text) 6%, transparent) 1px, transparent 1.5px) 0 0 / 22px 22px, var(--wl-inset); box-shadow: inset 0 0 0 1px var(--wl-line); }
.wl-fxe-who { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.wl-fxe-face { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--wl-raised); box-shadow: 0 0 0 2px var(--wl-line-strong), 0 6px 14px rgb(0 0 0 / 30%); }
.wl-fxe-face img, .wl-fxe-face svg { width: 100%; height: 100%; object-fit: cover; }
.wl-fxe-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wl-text-2); font-size: 12px; }
.wl-fxe-floor.is-card .wl-fxe-who { flex-direction: row; gap: 12px; width: min(42%, 230px); height: 120px; padding: 14px; border-radius: var(--r-lg); background: var(--wl-surface); box-shadow: var(--wl-elev-card), inset 0 0 0 1px var(--wl-line); }
.wl-fxe-floor.is-card .wl-fxe-face { flex: none; width: 64px; height: 84px; border-radius: var(--r-md); box-shadow: none; }
.wl-fxe-floor.is-card .wl-fxe-name { color: var(--wl-text); font: 600 14px var(--wl-font-ui); }
.wl-fxe-wrong { display: flex; gap: 8px; margin: 0; color: var(--wl-danger); font-size: 12.5px; }
.wl-fxe-wrong .wt-glyph { flex: none; width: 15px; height: 15px; }
.wl-fxe-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.wl-fxe-range { flex: 1; min-width: 90px; accent-color: var(--wl-accent); }
.wl-fxe-val { min-width: 54px; color: var(--wl-text-2); font: 12px var(--wl-font-mono); text-align: right; }
.wl-fxe-colour { display: inline-flex; align-items: center; gap: 6px; color: var(--wl-text-2); font-size: 12px; cursor: pointer; }
.wl-fxe-colour input { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.wl-fxe-colour input::-webkit-color-swatch-wrapper { padding: 0; }
.wl-fxe-colour input::-webkit-color-swatch { border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 25%); }
.wl-fxe-part-list { display: flex; flex-direction: column; gap: 6px; }
.wl-fxe-part { position: relative; border-radius: var(--r-md); background: var(--wl-inset); }
.wt-surface .wl-fxe-part-head { display: grid; grid-template-columns: 14px auto minmax(0, 1fr) 14px; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 40px 6px 12px; border: 0; border-radius: var(--r-md); background: transparent; box-shadow: none; color: var(--wl-text); text-align: left; }
.wl-fxe-part-head b { font: 600 13px var(--wl-font-ui); }
.wl-fxe-part-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--wl-text-3); font-size: 12px; }
.wl-fxe-swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 25%); }
.wl-fxe-caret { width: 14px; height: 14px; color: var(--wl-text-3); transition: transform var(--wl-quick, .15s) var(--wl-ease, ease); }
.wl-fxe-part.is-open .wl-fxe-caret { transform: rotate(180deg); }
.wt-surface .wl-fxe-part-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; padding: 0; border-radius: 50%; color: var(--wl-text-3); }
.wt-surface .wl-fxe-part-x:hover { color: var(--wl-text); background: var(--wl-raised); }
.wl-fxe-part-x .wt-glyph { width: 13px; height: 13px; }
.wl-fxe-part-body { padding: 4px 12px 12px; }
.wl-fxe-short { max-width: 200px; }
.wl-me .wl-me-name.wl-fxe-text, .wl-me .wl-me-name.wl-fxe-short { min-width: 0; font-size: 13px; font-weight: 400; }
.wl-fxe-more { margin: 0; font-size: 12px; }
.wl-fxe-parts .wl-me-mini, .wl-lk-usedby .wl-me-chips + .wl-me-mini { margin-top: 10px; }
@container wt-ws (max-width: 599px) {
  .wl-fxe-floor { min-height: 190px; padding: 16px; }
  .wl-fxe-floor.is-card .wl-fxe-who { flex-direction: column; height: auto; width: 46%; }
  .wl-fxe-floor.is-card .wl-fxe-face { width: 56px; height: 64px; }
}

/* A mechanic kept from a game (D-338 step 4): its About says so before its pieces, and its page under its name. */
.wl-me-about-facts .wl-me-from-game::after { content: '·'; margin: 0 6px; }
.wl-me-speak .wl-fxe-seg { margin-top: 10px; }

/* What the GM made, on the turn's line of changes (D-338 step 4): Keep it in the world, quiet as a link until hovered. */
.wl-made-line .wl-made-keep { appearance: none; border: 0; background: none; box-shadow: none; height: auto; display: inline; padding: 0 2px; margin: 0; font: inherit; color: var(--wl-accent, var(--text-muted)); cursor: pointer; border-radius: 4px; transition: color var(--wl-quick) var(--wl-ease); }
.wl-made-line .wl-made-keep:hover { text-decoration: underline; text-underline-offset: 2px; }
.wl-made-line .wl-made-keep:focus-visible { outline: var(--wl-focus-outline, 2px solid var(--wl-accent)); outline-offset: 2px; }
.wl-made-line .wl-made-kept { color: var(--text-muted); }
.wl-made-line .wl-made-keep.is-wrong { color: var(--text-error, var(--text-muted)); cursor: default; text-decoration: none; }
.wl-made-line .wl-made-keep:disabled { cursor: default; text-decoration: none; }
/* The settings column, calmer (D-379): each label over its value so nothing is cut short, the words to click as soft
   pills (as a shortcut's blanks are), Boris's boxes one line, and its other parts plain sections like Who and when. */
.wl-me.wl-se .wl-me-panel .wl-ss-rows .wl-ss-row { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 6px; min-height: 0; padding: 12px 0; }
.wl-me.wl-se .wl-me-panel .wl-ss-row-k { font-size: 12.5px; line-height: 1.2; }
.wl-me.wl-se .wl-me-panel .wl-ss-row-v { gap: 6px; }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip { min-height: 26px; padding: 0 7px; border-radius: 7px; background: color-mix(in srgb, var(--wl-text) 7%, transparent); text-decoration: none; font-size: 14.5px; line-height: 26px; transition: background var(--wl-quick) var(--wl-ease); }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip:hover, .wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip[aria-expanded="true"] { background: color-mix(in srgb, var(--wl-text) 13%, transparent); }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip.mono { font-size: 13.5px; }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip.is-verb { color: var(--wl-text); }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip.is-start { gap: 8px; min-height: 32px; margin-left: 0; padding: 0 8px 0 10px; font-size: 14px; }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip.is-start > span:not(.wt-glyph) { white-space: normal; text-align: left; line-height: 1.35; }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip.is-words { min-height: 0; padding: 2px 0; background: none; line-height: 1.75; }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip.is-words:hover { background: none; }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip.is-words .wl-ss-tok { padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--wl-text) 7%, transparent); text-decoration: none; font-size: 14.5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip.is-words:hover .wl-ss-tok { background: color-mix(in srgb, var(--wl-text) 13%, transparent); }
.wl-me.wl-se .wl-me-panel .wl-ss-text { gap: 6px 4px; font-size: 14.5px; line-height: 26px; }
.wl-me.wl-se .wl-me-panel .wl-ss-step { padding: 12px 0; }
.wl-me.wl-se .wl-me-panel .wl-se-only { font-size: 14px; }
.wl-me.wl-se .wl-me-panel .wl-ss-say { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; margin-top: 12px; padding: 4px 4px 4px 12px; border-radius: var(--r-md); }
.wl-me.wl-se .wl-me-panel .wl-ss-say .wt-orbis-blob { --size: 20px; }
.wl-me.wl-se .wl-me-panel .wl-ss-say textarea { padding: 4px 0; font-size: 13px; }
.wl-me.wl-se .wl-me-panel .wl-ss-say-go { width: 28px; height: 28px; }
.wl-me.wl-se .wl-me-panel .wl-ss-look { grid-template-columns: 48px minmax(0, 1fr) 28px; gap: 12px; padding: 12px 0; }
.wl-me.wl-se .wl-me-panel .wl-ss-look-tile { width: 48px; height: 48px; }
.wl-me.wl-se .wl-me-panel .wl-ss-look.is-move { grid-template-columns: 88px minmax(0, 1fr); }
.wl-me.wl-se .wl-me-panel .wl-ss-look.is-move .wl-ss-look-tile { width: 88px; height: 48px; }
.wl-me.wl-se .wl-me-panel .wl-ss-look-name { font-size: 14.5px; line-height: 1.4; }
.wl-me.wl-se .wl-me-panel .wl-ss-look-line { gap: 4px; font-size: 13.5px; line-height: 26px; }
.wl-me.wl-se .wl-me-panel .wl-ss-foot { margin-top: 8px; }
.wl-me.wl-se .wl-me-panel .wl-me-card { margin-top: 40px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.wl-me.wl-se .wl-me-panel .wl-me-card > .wt-ws-card-head { min-height: 0; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--wl-line); }
.wl-me.wl-se .wl-me-panel .wl-me-card > .wt-ws-card-head > .wt-glyph { display: none; }
.wl-me.wl-se .wl-me-panel .wl-me-card > .wt-ws-card-head > .wt-ws-card-title { color: var(--wl-text-3); font-size: 11.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.wl-me.wl-se .wl-me-panel .wl-me-card > .wl-ss-dim { margin: 0 0 10px; font-size: 13.5px; }
.wl-me.wl-se .wl-me-panel .wl-ss .wl-ss-chip.is-words .wl-ss-tok { white-space: nowrap; }
.wl-me.wl-se .wl-me-panel select.wl-se-add { width: auto; height: 28px; padding-left: 8px; border-color: transparent; background-color: transparent; box-shadow: none; color: var(--wl-text-3); font-size: 13px; cursor: pointer; }
.wl-me.wl-se .wl-me-panel select.wl-se-add:hover, .wl-me.wl-se .wl-me-panel select.wl-se-add:focus-visible { background-color: var(--wl-surface); color: var(--wl-text); }
