{
  "version": 1,
  "id": "scn_showcase_koenig",
  "name": "Koenig Machine Works",
  "icon": "gearshape.2",
  "tint": "#44607A",
  "settings": {
    "description": "Machine shop in Swabia, 140 people"
  },
  "assets": [],
  "scenes": [
    {
      "id": "scn_showcase_koenig_production",
      "slug": "production",
      "name": "Production",
      "icon": "gearshape.fill",
      "tint": "#B5562B",
      "settings": {
        "description": "18 orders today. Scrap 1.9%, from 3.8% in September. A burr on cell 2 since 08:10."
      },
      "assets": [
        {
          "id": "koenig-camera",
          "type": "daslab/webview",
          "name": "Cell 2",
          "fields": {
            "html": "<style>.tile { display: flex; flex-direction: column; }\n.tile > * { margin-top: 0; }\n:root[data-cell=\"tile\"] .tile { height: 100vh; overflow: hidden; }\n.tile svg.glyph { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }\n\n.head { display: flex; align-items: center; gap: 8px; max-width: none; font: 500 13px/20px var(--brand-text); color: var(--text-secondary); }\n.head > svg { width: 16px; height: 16px; flex: none; color: var(--text); }\n.head > span:first-of-type { color: var(--text); font-weight: 600; }\n.head > .state { margin-left: auto; }\n\n.reading { margin-top: 10px; font-family: var(--brand-display); font-weight: 600; font-size: 46px; line-height: 52px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; color: var(--text); white-space: nowrap; }\n.reading small { margin-left: 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading .also { margin-left: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading small.word, .figs small.word { margin-left: 0.3em; }\n.sub { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.visual { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 200px; margin-top: 16px; }\n:root[data-cell=\"tile\"] .visual { min-height: 0; }\n.caption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.caption b { font-weight: 500; color: var(--text); }\n.source { margin-top: 10px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.figs { margin-top: 0; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.tile .figs dd:first-of-type { font-size: 22px; line-height: 28px; }\n.tile .figs dt { margin-top: 2px; font-size: 12.5px; line-height: 16px; font-weight: 400; color: var(--text-secondary); }\n\n.meter { display: flex; gap: 4px; }\n.meter .seg { flex: var(--w) 1 0; min-width: 0; }\n.meter .seg span { display: block; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--text-dim); }\n.meter .seg.now span { color: var(--text); font-weight: 500; }\n.meter .seg i { display: block; height: 10px; margin-top: 6px; border-radius: 5px; background: linear-gradient(to right, var(--accent) calc(var(--f) * 100%), var(--bg-well) 0); }\n.ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.range { position: relative; height: 10px; border-radius: 5px; background: var(--bg-well); }\n.range .band { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in oklab, var(--ok) 40%, var(--bg-well)); }\n.range b { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--bg); border: 4px solid var(--text); }\n.range-scale { position: relative; height: 16px; margin-top: 8px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.range-scale span { position: absolute; transform: translateX(-50%); }\n.range-scale span:first-child { transform: none; }\n.range-scale span:last-child { transform: translateX(-100%); }\n\n.things { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }\n.things li { position: relative; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 12px; border-radius: 14px; background: var(--bg-well); }\n.things .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--text); }\n.things .ico svg { width: 18px; height: 18px; }\n.things .state { position: absolute; top: 12px; right: 12px; }\n.things h3 { margin-top: auto; font-size: 14px; line-height: 20px; }\n.things p { margin: 0; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }\n\n.cam { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #111; }\n.cam :is(img, video) { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; border: 0; border-radius: 0; }\n.cam.live video { animation: none; }\n.cam.live img { animation: cam-drift 18s ease-in-out infinite alternate; transform-origin: 62% 70%; }\n@keyframes cam-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }\n@media (prefers-reduced-motion: reduce) { .cam.live img { animation: none; } }\n.cam .chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font: 500 12px/18px var(--brand-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }\n.cam time { position: absolute; right: 12px; bottom: 10px; font: 500 11.5px/16px var(--brand-mono); color: rgb(255 255 255 / .9); text-shadow: 0 1px 2px rgb(0 0 0 / .5); }\n\n.bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 0; }\n.bars .col { position: relative; flex: 1; height: 100%; }\n.bars .col i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 4px; background: var(--accent); }\n.bars .col i.ghost { left: -2px; right: -2px; background: var(--bg-well); }\n.bars .col.now i:not(.ghost) { opacity: .55; }\n.bar-labels { display: flex; gap: 6px; margin-top: 6px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.bar-labels span { flex: 1; text-align: center; white-space: nowrap; }\n\n.curve { position: relative; flex: 1; min-height: 0; }\n.curve .plot { position: absolute; inset: 0 40px 0 0; }\n.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }\n.curve .span { fill: var(--warn); opacity: .09; }\n.curve .grid { stroke: var(--border); stroke-width: 1; }\n.curve .target { fill: none; stroke: var(--text-dim); stroke-width: 1.5; stroke-dasharray: 5 5; }\n.curve .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }\n.curve .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }\n.curve .span-label { position: absolute; top: 4px; margin-left: 6px; font: 500 11px/14px var(--brand-mono); color: var(--warn); }\n.curve .grid-label { position: absolute; right: 0; margin-top: -7px; font: 400 11px/14px var(--brand-mono); color: var(--text-dim); }\n.x-labels { position: relative; height: 16px; margin: 6px 40px 0 0; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.x-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }\n.x-labels span:first-child { transform: none; }\n.x-labels span:last-child { transform: translateX(-100%); }\n\n.actions { display: flex; gap: 8px; max-width: none; }\n.actions button { flex: 1; min-height: 40px; border-radius: 10px; font-weight: 600; }\n\n\n.cam { flex: 1; min-height: 0; margin: 12px 0 14px; }</style>\n<main data-tile=\"own\" class=\"tile\"><p class=\"head\"><svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><rect x=\"3\" y=\"6\" width=\"13\" height=\"12\" rx=\"2\"/><path d=\"M16 10l5-3v10l-5-3\"/></svg><span>Cell 2 · MC-02</span><span class=\"state ok\" data-live-class='[[0,\"state ok\"],[9999,\"state warn\"]]'><span data-live-text='[[0,\"Milling\"],[9999,\"3 burrs since 08:10\"]]'>Milling</span></span></p>\n<figure class=\"cam live\"><video src=\"https://daslab.run/marketing/showcase/koenig/cnc-centre-loop.mp4\" poster=\"https://daslab.run/marketing/showcase/koenig/cnc-centre-loop.jpg\" autoplay muted loop playsinline aria-label=\"A five-axis machining centre milling an aluminium housing, coolant spraying\"></video><span class=\"chip\">Cell camera</span><time data-live-clock=\"10:51:20\">10:51:20</time></figure>\n<dl class=\"stats figs\">\n  <div><dt>Order 4708</dt><dd>GH-220</dd></div>\n  <div><dt>Checked today</dt><dd>412</dd></div>\n  <div><dt>Rework</dt><dd>6</dd></div>\n</dl></main><script>(function(){\nif(!window.__DASLAB_REPLAY__)return;\nvar at=0,playing=false,speed=1,since=0;\nfunction lerp(k,s){if(s<=k[0][0])return k[0][1];for(var i=1;i<k.length;i++){if(s<=k[i][0]){var a=k[i-1],b=k[i];return a[1]+(b[1]-a[1])*(s-a[0])/(b[0]-a[0]);}}return k[k.length-1][1];}\nfunction step(k,s){var v=k[0][1];for(var i=0;i<k.length;i++){if(s>=k[i][0])v=k[i][1];}return v;}\nfunction hms(x){x=Math.floor(x);var h=Math.floor(x/3600)%24,m=Math.floor(x/60)%60,c=x%60;return(h<10?\"0\":\"\")+h+\":\"+(m<10?\"0\":\"\")+m+\":\"+(c<10?\"0\":\"\")+c;}\nfunction ms(x){x=Math.floor(x);return Math.floor(x/60)+\":\"+(x%60<10?\"0\":\"\")+(x%60);}\nfunction secs(t){var p=t.split(\":\").map(Number);return p[0]*3600+p[1]*60+(p[2]||0);}\nfunction J(el,a){var c=el.__k||(el.__k={});return c[a]||(c[a]=JSON.parse(el.getAttribute(a)));}\nfunction draw(s){\ndocument.querySelectorAll(\"[data-live-clock]\").forEach(function(el){el.textContent=hms(secs(el.getAttribute(\"data-live-clock\"))+s);});\ndocument.querySelectorAll(\"[data-live-timer]\").forEach(function(el){el.textContent=ms(Number(el.getAttribute(\"data-live-timer\"))+s);});\ndocument.querySelectorAll(\"[data-live-num]\").forEach(function(el){el.textContent=lerp(J(el,\"data-live-num\"),s).toFixed(Number(el.getAttribute(\"data-digits\")||0));});\ndocument.querySelectorAll(\"[data-live-text]\").forEach(function(el){el.textContent=step(J(el,\"data-live-text\"),s);});\ndocument.querySelectorAll(\"[data-live-class]\").forEach(function(el){el.setAttribute(\"class\",step(J(el,\"data-live-class\"),s));});\ndocument.querySelectorAll(\"[data-live-var]\").forEach(function(el){el.style.setProperty(el.getAttribute(\"data-live-var\"),lerp(J(el,\"data-live-keys\"),s));});\ndocument.querySelectorAll(\"[data-live-show]\").forEach(function(el){var w=J(el,\"data-live-show\");el.hidden=!(s>=w[0]&&s<w[1]);});\n}\nfunction tick(){draw(at+(playing?(performance.now()-since)/1000*speed:0));requestAnimationFrame(tick);}\naddEventListener(\"message\",function(e){var d=e.data;if(e.source!==parent||!d||d.type!==\"daslab:replay-clock\")return;at=Math.max(0,Number(d.elapsed)||0)/1000;playing=!!d.playing;speed=Number(d.speed)||1;since=performance.now();});\ndraw(0);requestAnimationFrame(tick);\n})();</script>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 0,
            "size": "large"
          }
        },
        {
          "id": "koenig-production-orders",
          "type": "daslab/webview",
          "name": "Production orders",
          "fields": {
            "html": "<style>.tile { display: flex; flex-direction: column; }\n.tile > * { margin-top: 0; }\n:root[data-cell=\"tile\"] .tile { height: 100vh; overflow: hidden; }\n.tile svg.glyph { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }\n\n.head { display: flex; align-items: center; gap: 8px; max-width: none; font: 500 13px/20px var(--brand-text); color: var(--text-secondary); }\n.head > svg { width: 16px; height: 16px; flex: none; color: var(--text); }\n.head > span:first-of-type { color: var(--text); font-weight: 600; }\n.head > .state { margin-left: auto; }\n\n.reading { margin-top: 10px; font-family: var(--brand-display); font-weight: 600; font-size: 46px; line-height: 52px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; color: var(--text); white-space: nowrap; }\n.reading small { margin-left: 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading .also { margin-left: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading small.word, .figs small.word { margin-left: 0.3em; }\n.sub { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.visual { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 200px; margin-top: 16px; }\n:root[data-cell=\"tile\"] .visual { min-height: 0; }\n.caption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.caption b { font-weight: 500; color: var(--text); }\n.source { margin-top: 10px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.figs { margin-top: 0; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.tile .figs dd:first-of-type { font-size: 22px; line-height: 28px; }\n.tile .figs dt { margin-top: 2px; font-size: 12.5px; line-height: 16px; font-weight: 400; color: var(--text-secondary); }\n\n.meter { display: flex; gap: 4px; }\n.meter .seg { flex: var(--w) 1 0; min-width: 0; }\n.meter .seg span { display: block; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--text-dim); }\n.meter .seg.now span { color: var(--text); font-weight: 500; }\n.meter .seg i { display: block; height: 10px; margin-top: 6px; border-radius: 5px; background: linear-gradient(to right, var(--accent) calc(var(--f) * 100%), var(--bg-well) 0); }\n.ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.range { position: relative; height: 10px; border-radius: 5px; background: var(--bg-well); }\n.range .band { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in oklab, var(--ok) 40%, var(--bg-well)); }\n.range b { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--bg); border: 4px solid var(--text); }\n.range-scale { position: relative; height: 16px; margin-top: 8px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.range-scale span { position: absolute; transform: translateX(-50%); }\n.range-scale span:first-child { transform: none; }\n.range-scale span:last-child { transform: translateX(-100%); }\n\n.things { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }\n.things li { position: relative; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 12px; border-radius: 14px; background: var(--bg-well); }\n.things .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--text); }\n.things .ico svg { width: 18px; height: 18px; }\n.things .state { position: absolute; top: 12px; right: 12px; }\n.things h3 { margin-top: auto; font-size: 14px; line-height: 20px; }\n.things p { margin: 0; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }\n\n.cam { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #111; }\n.cam :is(img, video) { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; border: 0; border-radius: 0; }\n.cam.live video { animation: none; }\n.cam.live img { animation: cam-drift 18s ease-in-out infinite alternate; transform-origin: 62% 70%; }\n@keyframes cam-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }\n@media (prefers-reduced-motion: reduce) { .cam.live img { animation: none; } }\n.cam .chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font: 500 12px/18px var(--brand-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }\n.cam time { position: absolute; right: 12px; bottom: 10px; font: 500 11.5px/16px var(--brand-mono); color: rgb(255 255 255 / .9); text-shadow: 0 1px 2px rgb(0 0 0 / .5); }\n\n.bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 0; }\n.bars .col { position: relative; flex: 1; height: 100%; }\n.bars .col i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 4px; background: var(--accent); }\n.bars .col i.ghost { left: -2px; right: -2px; background: var(--bg-well); }\n.bars .col.now i:not(.ghost) { opacity: .55; }\n.bar-labels { display: flex; gap: 6px; margin-top: 6px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.bar-labels span { flex: 1; text-align: center; white-space: nowrap; }\n\n.curve { position: relative; flex: 1; min-height: 0; }\n.curve .plot { position: absolute; inset: 0 40px 0 0; }\n.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }\n.curve .span { fill: var(--warn); opacity: .09; }\n.curve .grid { stroke: var(--border); stroke-width: 1; }\n.curve .target { fill: none; stroke: var(--text-dim); stroke-width: 1.5; stroke-dasharray: 5 5; }\n.curve .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }\n.curve .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }\n.curve .span-label { position: absolute; top: 4px; margin-left: 6px; font: 500 11px/14px var(--brand-mono); color: var(--warn); }\n.curve .grid-label { position: absolute; right: 0; margin-top: -7px; font: 400 11px/14px var(--brand-mono); color: var(--text-dim); }\n.x-labels { position: relative; height: 16px; margin: 6px 40px 0 0; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.x-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }\n.x-labels span:first-child { transform: none; }\n.x-labels span:last-child { transform: translateX(-100%); }\n\n.actions { display: flex; gap: 8px; max-width: none; }\n.actions button { flex: 1; min-height: 40px; border-radius: 10px; font-weight: 600; }\n\n\n.day { margin: 10px 0 2px; font: 500 11.5px/16px var(--brand-mono); color: var(--text-dim); max-width: none; }\n.plan { list-style: none; margin: 0; padding: 0; }\n.plan > li { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: baseline; gap: 8px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 18px; }\n.plan > li:last-child { border-bottom: 0; }\n.plan > li > b { font: 600 12px/18px var(--brand-mono); color: var(--text-secondary); }\n.plan > li > span:first-of-type { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.plan small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--text-secondary); }\n.plan > li.new { background: color-mix(in oklab, var(--accent) 7%, transparent); animation: row-in .5s ease-out; }\n@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }\n\n.plan { margin-top: 10px; }\n.plan.wide > li { grid-template-columns: 3.6em 1fr auto; }\n.plan > li.changed { background: color-mix(in oklab, var(--accent) 8%, transparent); transition: background .4s; }\n.plan .state:empty { display: none; }</style>\n<main data-tile=\"own\" class=\"tile\"><p class=\"head\"><svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><circle cx=\"5\" cy=\"6\" r=\"1.5\"/><circle cx=\"5\" cy=\"12\" r=\"1.5\"/><circle cx=\"5\" cy=\"18\" r=\"1.5\"/><path d=\"M10 6h11M10 12h11M10 18h11\"/></svg><span>Production orders</span><span class=\"state ok\">SAP · today</span></p>\n<ul class=\"plan wide\">\n  <li><b>4708</b><span>GH-220 housing<small>400 · MC-02</small></span><span class=\"state ok\">Running</span></li>\n  <li><b>4709</b><span>FL-80 flange<small>120 · MC-05</small></span><span class=\"state info\">14:00</span></li>\n  <li><b>4710</b><span>SH-12 shaft<small>600 · MC-03</small></span><span class=\"state \">Tue</span></li>\n  <li data-live-class='[[0,\"\"],[9999,\"changed\"]]'><b>4711</b><span>GH-220 housing<small data-live-text='[[0,\"300 · MC-02\"],[9999,\"300 · MC-05, Wed night\"]]'>300 · MC-02</small></span><span class=\"state\" data-live-class='[[0,\"state\"],[9999,\"state ok\"]]'><span data-live-text='[[0,\"Fri\"],[9999,\"Thu 12:00\"]]'>Fri</span></span></li>\n</ul>\n<p class=\"caption\">18 orders today · 11 done · OEE 81%</p></main><script>(function(){\nif(!window.__DASLAB_REPLAY__)return;\nvar at=0,playing=false,speed=1,since=0;\nfunction lerp(k,s){if(s<=k[0][0])return k[0][1];for(var i=1;i<k.length;i++){if(s<=k[i][0]){var a=k[i-1],b=k[i];return a[1]+(b[1]-a[1])*(s-a[0])/(b[0]-a[0]);}}return k[k.length-1][1];}\nfunction step(k,s){var v=k[0][1];for(var i=0;i<k.length;i++){if(s>=k[i][0])v=k[i][1];}return v;}\nfunction hms(x){x=Math.floor(x);var h=Math.floor(x/3600)%24,m=Math.floor(x/60)%60,c=x%60;return(h<10?\"0\":\"\")+h+\":\"+(m<10?\"0\":\"\")+m+\":\"+(c<10?\"0\":\"\")+c;}\nfunction ms(x){x=Math.floor(x);return Math.floor(x/60)+\":\"+(x%60<10?\"0\":\"\")+(x%60);}\nfunction secs(t){var p=t.split(\":\").map(Number);return p[0]*3600+p[1]*60+(p[2]||0);}\nfunction J(el,a){var c=el.__k||(el.__k={});return c[a]||(c[a]=JSON.parse(el.getAttribute(a)));}\nfunction draw(s){\ndocument.querySelectorAll(\"[data-live-clock]\").forEach(function(el){el.textContent=hms(secs(el.getAttribute(\"data-live-clock\"))+s);});\ndocument.querySelectorAll(\"[data-live-timer]\").forEach(function(el){el.textContent=ms(Number(el.getAttribute(\"data-live-timer\"))+s);});\ndocument.querySelectorAll(\"[data-live-num]\").forEach(function(el){el.textContent=lerp(J(el,\"data-live-num\"),s).toFixed(Number(el.getAttribute(\"data-digits\")||0));});\ndocument.querySelectorAll(\"[data-live-text]\").forEach(function(el){el.textContent=step(J(el,\"data-live-text\"),s);});\ndocument.querySelectorAll(\"[data-live-class]\").forEach(function(el){el.setAttribute(\"class\",step(J(el,\"data-live-class\"),s));});\ndocument.querySelectorAll(\"[data-live-var]\").forEach(function(el){el.style.setProperty(el.getAttribute(\"data-live-var\"),lerp(J(el,\"data-live-keys\"),s));});\ndocument.querySelectorAll(\"[data-live-show]\").forEach(function(el){var w=J(el,\"data-live-show\");el.hidden=!(s>=w[0]&&s<w[1]);});\n}\nfunction tick(){draw(at+(playing?(performance.now()-since)/1000*speed:0));requestAnimationFrame(tick);}\naddEventListener(\"message\",function(e){var d=e.data;if(e.source!==parent||!d||d.type!==\"daslab:replay-clock\")return;at=Math.max(0,Number(d.elapsed)||0)/1000;playing=!!d.playing;speed=Number(d.speed)||1;since=performance.now();});\ndraw(0);requestAnimationFrame(tick);\n})();</script>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 1,
            "size": "large"
          }
        },
        {
          "id": "koenig-spindles",
          "type": "daslab/webview",
          "name": "Spindle sensors",
          "fields": {
            "html": "<style>.tile { display: flex; flex-direction: column; }\n.tile > * { margin-top: 0; }\n:root[data-cell=\"tile\"] .tile { height: 100vh; overflow: hidden; }\n.tile svg.glyph { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }\n\n.head { display: flex; align-items: center; gap: 8px; max-width: none; font: 500 13px/20px var(--brand-text); color: var(--text-secondary); }\n.head > svg { width: 16px; height: 16px; flex: none; color: var(--text); }\n.head > span:first-of-type { color: var(--text); font-weight: 600; }\n.head > .state { margin-left: auto; }\n\n.reading { margin-top: 10px; font-family: var(--brand-display); font-weight: 600; font-size: 46px; line-height: 52px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; color: var(--text); white-space: nowrap; }\n.reading small { margin-left: 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading .also { margin-left: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading small.word, .figs small.word { margin-left: 0.3em; }\n.sub { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.visual { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 200px; margin-top: 16px; }\n:root[data-cell=\"tile\"] .visual { min-height: 0; }\n.caption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.caption b { font-weight: 500; color: var(--text); }\n.source { margin-top: 10px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.figs { margin-top: 0; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.tile .figs dd:first-of-type { font-size: 22px; line-height: 28px; }\n.tile .figs dt { margin-top: 2px; font-size: 12.5px; line-height: 16px; font-weight: 400; color: var(--text-secondary); }\n\n.meter { display: flex; gap: 4px; }\n.meter .seg { flex: var(--w) 1 0; min-width: 0; }\n.meter .seg span { display: block; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--text-dim); }\n.meter .seg.now span { color: var(--text); font-weight: 500; }\n.meter .seg i { display: block; height: 10px; margin-top: 6px; border-radius: 5px; background: linear-gradient(to right, var(--accent) calc(var(--f) * 100%), var(--bg-well) 0); }\n.ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.range { position: relative; height: 10px; border-radius: 5px; background: var(--bg-well); }\n.range .band { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in oklab, var(--ok) 40%, var(--bg-well)); }\n.range b { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--bg); border: 4px solid var(--text); }\n.range-scale { position: relative; height: 16px; margin-top: 8px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.range-scale span { position: absolute; transform: translateX(-50%); }\n.range-scale span:first-child { transform: none; }\n.range-scale span:last-child { transform: translateX(-100%); }\n\n.things { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }\n.things li { position: relative; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 12px; border-radius: 14px; background: var(--bg-well); }\n.things .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--text); }\n.things .ico svg { width: 18px; height: 18px; }\n.things .state { position: absolute; top: 12px; right: 12px; }\n.things h3 { margin-top: auto; font-size: 14px; line-height: 20px; }\n.things p { margin: 0; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }\n\n.cam { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #111; }\n.cam :is(img, video) { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; border: 0; border-radius: 0; }\n.cam.live video { animation: none; }\n.cam.live img { animation: cam-drift 18s ease-in-out infinite alternate; transform-origin: 62% 70%; }\n@keyframes cam-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }\n@media (prefers-reduced-motion: reduce) { .cam.live img { animation: none; } }\n.cam .chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font: 500 12px/18px var(--brand-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }\n.cam time { position: absolute; right: 12px; bottom: 10px; font: 500 11.5px/16px var(--brand-mono); color: rgb(255 255 255 / .9); text-shadow: 0 1px 2px rgb(0 0 0 / .5); }\n\n.bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 0; }\n.bars .col { position: relative; flex: 1; height: 100%; }\n.bars .col i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 4px; background: var(--accent); }\n.bars .col i.ghost { left: -2px; right: -2px; background: var(--bg-well); }\n.bars .col.now i:not(.ghost) { opacity: .55; }\n.bar-labels { display: flex; gap: 6px; margin-top: 6px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.bar-labels span { flex: 1; text-align: center; white-space: nowrap; }\n\n.curve { position: relative; flex: 1; min-height: 0; }\n.curve .plot { position: absolute; inset: 0 40px 0 0; }\n.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }\n.curve .span { fill: var(--warn); opacity: .09; }\n.curve .grid { stroke: var(--border); stroke-width: 1; }\n.curve .target { fill: none; stroke: var(--text-dim); stroke-width: 1.5; stroke-dasharray: 5 5; }\n.curve .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }\n.curve .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }\n.curve .span-label { position: absolute; top: 4px; margin-left: 6px; font: 500 11px/14px var(--brand-mono); color: var(--warn); }\n.curve .grid-label { position: absolute; right: 0; margin-top: -7px; font: 400 11px/14px var(--brand-mono); color: var(--text-dim); }\n.x-labels { position: relative; height: 16px; margin: 6px 40px 0 0; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.x-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }\n.x-labels span:first-child { transform: none; }\n.x-labels span:last-child { transform: translateX(-100%); }\n\n.actions { display: flex; gap: 8px; max-width: none; }\n.actions button { flex: 1; min-height: 40px; border-radius: 10px; font-weight: 600; }\n\n\n.day { margin: 10px 0 2px; font: 500 11.5px/16px var(--brand-mono); color: var(--text-dim); max-width: none; }\n.plan { list-style: none; margin: 0; padding: 0; }\n.plan > li { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: baseline; gap: 8px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 18px; }\n.plan > li:last-child { border-bottom: 0; }\n.plan > li > b { font: 600 12px/18px var(--brand-mono); color: var(--text-secondary); }\n.plan > li > span:first-of-type { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.plan small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--text-secondary); }\n.plan > li.new { background: color-mix(in oklab, var(--accent) 7%, transparent); animation: row-in .5s ease-out; }\n@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }\n\n.plan { margin-top: 10px; }\n.plan.wide > li { grid-template-columns: 3.6em 1fr auto; }\n.plan > li.changed { background: color-mix(in oklab, var(--accent) 8%, transparent); transition: background .4s; }\n.plan .state:empty { display: none; }</style>\n<main data-tile=\"own\" class=\"tile\"><p class=\"head\"><svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M3 10v4M6.5 7v10M10 4v16M13.5 8v8M17 5.5v13M20.5 10v4\"/></svg><span>Spindle sensors</span><span class=\"state warn\">MC-04 warm</span></p>\n<ul class=\"plan wide\"><li><b>MC-02</b><span>45 °C<small>1.4 mm/s</small></span><span class=\"state ok\">Normal</span></li><li><b>MC-03</b><span>40 °C<small>1.1 mm/s</small></span><span class=\"state ok\">Normal</span></li><li><b>MC-04</b><span>52 °C<small>1.9 mm/s</small></span><span class=\"state warn\">Warm</span></li><li><b>MC-05</b><span>44 °C<small>1.3 mm/s</small></span><span class=\"state ok\">Normal</span></li></ul>\n<p class=\"caption\">MC-04 runs 6 °C over its usual · check Thursday</p></main><script>(function(){\nif(!window.__DASLAB_REPLAY__)return;\nvar at=0,playing=false,speed=1,since=0;\nfunction lerp(k,s){if(s<=k[0][0])return k[0][1];for(var i=1;i<k.length;i++){if(s<=k[i][0]){var a=k[i-1],b=k[i];return a[1]+(b[1]-a[1])*(s-a[0])/(b[0]-a[0]);}}return k[k.length-1][1];}\nfunction step(k,s){var v=k[0][1];for(var i=0;i<k.length;i++){if(s>=k[i][0])v=k[i][1];}return v;}\nfunction hms(x){x=Math.floor(x);var h=Math.floor(x/3600)%24,m=Math.floor(x/60)%60,c=x%60;return(h<10?\"0\":\"\")+h+\":\"+(m<10?\"0\":\"\")+m+\":\"+(c<10?\"0\":\"\")+c;}\nfunction ms(x){x=Math.floor(x);return Math.floor(x/60)+\":\"+(x%60<10?\"0\":\"\")+(x%60);}\nfunction secs(t){var p=t.split(\":\").map(Number);return p[0]*3600+p[1]*60+(p[2]||0);}\nfunction J(el,a){var c=el.__k||(el.__k={});return c[a]||(c[a]=JSON.parse(el.getAttribute(a)));}\nfunction draw(s){\ndocument.querySelectorAll(\"[data-live-clock]\").forEach(function(el){el.textContent=hms(secs(el.getAttribute(\"data-live-clock\"))+s);});\ndocument.querySelectorAll(\"[data-live-timer]\").forEach(function(el){el.textContent=ms(Number(el.getAttribute(\"data-live-timer\"))+s);});\ndocument.querySelectorAll(\"[data-live-num]\").forEach(function(el){el.textContent=lerp(J(el,\"data-live-num\"),s).toFixed(Number(el.getAttribute(\"data-digits\")||0));});\ndocument.querySelectorAll(\"[data-live-text]\").forEach(function(el){el.textContent=step(J(el,\"data-live-text\"),s);});\ndocument.querySelectorAll(\"[data-live-class]\").forEach(function(el){el.setAttribute(\"class\",step(J(el,\"data-live-class\"),s));});\ndocument.querySelectorAll(\"[data-live-var]\").forEach(function(el){el.style.setProperty(el.getAttribute(\"data-live-var\"),lerp(J(el,\"data-live-keys\"),s));});\ndocument.querySelectorAll(\"[data-live-show]\").forEach(function(el){var w=J(el,\"data-live-show\");el.hidden=!(s>=w[0]&&s<w[1]);});\n}\nfunction tick(){draw(at+(playing?(performance.now()-since)/1000*speed:0));requestAnimationFrame(tick);}\naddEventListener(\"message\",function(e){var d=e.data;if(e.source!==parent||!d||d.type!==\"daslab:replay-clock\")return;at=Math.max(0,Number(d.elapsed)||0)/1000;playing=!!d.playing;speed=Number(d.speed)||1;since=performance.now();});\ndraw(0);requestAnimationFrame(tick);\n})();</script>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 2,
            "size": "large"
          }
        },
        {
          "id": "koenig-scrap",
          "type": "daslab/webview",
          "name": "Scrap by week",
          "fields": {
            "html": "<style>.tile { display: flex; flex-direction: column; }\n.tile > * { margin-top: 0; }\n:root[data-cell=\"tile\"] .tile { height: 100vh; overflow: hidden; }\n.tile svg.glyph { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }\n\n.head { display: flex; align-items: center; gap: 8px; max-width: none; font: 500 13px/20px var(--brand-text); color: var(--text-secondary); }\n.head > svg { width: 16px; height: 16px; flex: none; color: var(--text); }\n.head > span:first-of-type { color: var(--text); font-weight: 600; }\n.head > .state { margin-left: auto; }\n\n.reading { margin-top: 10px; font-family: var(--brand-display); font-weight: 600; font-size: 46px; line-height: 52px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; color: var(--text); white-space: nowrap; }\n.reading small { margin-left: 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading .also { margin-left: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading small.word, .figs small.word { margin-left: 0.3em; }\n.sub { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.visual { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 200px; margin-top: 16px; }\n:root[data-cell=\"tile\"] .visual { min-height: 0; }\n.caption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.caption b { font-weight: 500; color: var(--text); }\n.source { margin-top: 10px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.figs { margin-top: 0; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.tile .figs dd:first-of-type { font-size: 22px; line-height: 28px; }\n.tile .figs dt { margin-top: 2px; font-size: 12.5px; line-height: 16px; font-weight: 400; color: var(--text-secondary); }\n\n.meter { display: flex; gap: 4px; }\n.meter .seg { flex: var(--w) 1 0; min-width: 0; }\n.meter .seg span { display: block; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--text-dim); }\n.meter .seg.now span { color: var(--text); font-weight: 500; }\n.meter .seg i { display: block; height: 10px; margin-top: 6px; border-radius: 5px; background: linear-gradient(to right, var(--accent) calc(var(--f) * 100%), var(--bg-well) 0); }\n.ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.range { position: relative; height: 10px; border-radius: 5px; background: var(--bg-well); }\n.range .band { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in oklab, var(--ok) 40%, var(--bg-well)); }\n.range b { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--bg); border: 4px solid var(--text); }\n.range-scale { position: relative; height: 16px; margin-top: 8px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.range-scale span { position: absolute; transform: translateX(-50%); }\n.range-scale span:first-child { transform: none; }\n.range-scale span:last-child { transform: translateX(-100%); }\n\n.things { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }\n.things li { position: relative; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 12px; border-radius: 14px; background: var(--bg-well); }\n.things .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--text); }\n.things .ico svg { width: 18px; height: 18px; }\n.things .state { position: absolute; top: 12px; right: 12px; }\n.things h3 { margin-top: auto; font-size: 14px; line-height: 20px; }\n.things p { margin: 0; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }\n\n.cam { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #111; }\n.cam :is(img, video) { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; border: 0; border-radius: 0; }\n.cam.live video { animation: none; }\n.cam.live img { animation: cam-drift 18s ease-in-out infinite alternate; transform-origin: 62% 70%; }\n@keyframes cam-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }\n@media (prefers-reduced-motion: reduce) { .cam.live img { animation: none; } }\n.cam .chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font: 500 12px/18px var(--brand-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }\n.cam time { position: absolute; right: 12px; bottom: 10px; font: 500 11.5px/16px var(--brand-mono); color: rgb(255 255 255 / .9); text-shadow: 0 1px 2px rgb(0 0 0 / .5); }\n\n.bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 0; }\n.bars .col { position: relative; flex: 1; height: 100%; }\n.bars .col i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 4px; background: var(--accent); }\n.bars .col i.ghost { left: -2px; right: -2px; background: var(--bg-well); }\n.bars .col.now i:not(.ghost) { opacity: .55; }\n.bar-labels { display: flex; gap: 6px; margin-top: 6px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.bar-labels span { flex: 1; text-align: center; white-space: nowrap; }\n\n.curve { position: relative; flex: 1; min-height: 0; }\n.curve .plot { position: absolute; inset: 0 40px 0 0; }\n.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }\n.curve .span { fill: var(--warn); opacity: .09; }\n.curve .grid { stroke: var(--border); stroke-width: 1; }\n.curve .target { fill: none; stroke: var(--text-dim); stroke-width: 1.5; stroke-dasharray: 5 5; }\n.curve .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }\n.curve .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }\n.curve .span-label { position: absolute; top: 4px; margin-left: 6px; font: 500 11px/14px var(--brand-mono); color: var(--warn); }\n.curve .grid-label { position: absolute; right: 0; margin-top: -7px; font: 400 11px/14px var(--brand-mono); color: var(--text-dim); }\n.x-labels { position: relative; height: 16px; margin: 6px 40px 0 0; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.x-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }\n.x-labels span:first-child { transform: none; }\n.x-labels span:last-child { transform: translateX(-100%); }\n\n.actions { display: flex; gap: 8px; max-width: none; }\n.actions button { flex: 1; min-height: 40px; border-radius: 10px; font-weight: 600; }</style>\n<main data-tile=\"own\" class=\"tile\"><p class=\"head\"><svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M6 20V10M12 20V4M18 20v-6\"/></svg><span>Scrap by week</span><span class=\"state ok\">From SAP</span></p>\n<p class=\"reading\">1.9<small>%</small><span class=\"also\">this week</span></p>\n<div class=\"visual\"><div class=\"bars\"><div class=\"col\"><i style=\"--h:98%\"></i></div><div class=\"col\"><i style=\"--h:93%\"></i></div><div class=\"col\"><i style=\"--h:95%\"></i></div><div class=\"col\"><i style=\"--h:90%\"></i></div><div class=\"col\"><i style=\"--h:75%\"></i></div><div class=\"col\"><i style=\"--h:65%\"></i></div><div class=\"col\"><i style=\"--h:60%\"></i></div><div class=\"col\"><i style=\"--h:55%\"></i></div><div class=\"col\"><i style=\"--h:53%\"></i></div><div class=\"col now\"><i style=\"--h:48%\"></i></div></div>\n<p class=\"bar-labels\"><span>Sep</span><span></span><span></span><span></span><span>Oct</span><span></span><span></span><span></span><span>Nov</span><span></span></p></div>\n<p class=\"caption\">From 3.8% before the camera started in October</p></main><script>(function(){\nif(!window.__DASLAB_REPLAY__)return;\nvar at=0,playing=false,speed=1,since=0;\nfunction lerp(k,s){if(s<=k[0][0])return k[0][1];for(var i=1;i<k.length;i++){if(s<=k[i][0]){var a=k[i-1],b=k[i];return a[1]+(b[1]-a[1])*(s-a[0])/(b[0]-a[0]);}}return k[k.length-1][1];}\nfunction step(k,s){var v=k[0][1];for(var i=0;i<k.length;i++){if(s>=k[i][0])v=k[i][1];}return v;}\nfunction hms(x){x=Math.floor(x);var h=Math.floor(x/3600)%24,m=Math.floor(x/60)%60,c=x%60;return(h<10?\"0\":\"\")+h+\":\"+(m<10?\"0\":\"\")+m+\":\"+(c<10?\"0\":\"\")+c;}\nfunction ms(x){x=Math.floor(x);return Math.floor(x/60)+\":\"+(x%60<10?\"0\":\"\")+(x%60);}\nfunction secs(t){var p=t.split(\":\").map(Number);return p[0]*3600+p[1]*60+(p[2]||0);}\nfunction J(el,a){var c=el.__k||(el.__k={});return c[a]||(c[a]=JSON.parse(el.getAttribute(a)));}\nfunction draw(s){\ndocument.querySelectorAll(\"[data-live-clock]\").forEach(function(el){el.textContent=hms(secs(el.getAttribute(\"data-live-clock\"))+s);});\ndocument.querySelectorAll(\"[data-live-timer]\").forEach(function(el){el.textContent=ms(Number(el.getAttribute(\"data-live-timer\"))+s);});\ndocument.querySelectorAll(\"[data-live-num]\").forEach(function(el){el.textContent=lerp(J(el,\"data-live-num\"),s).toFixed(Number(el.getAttribute(\"data-digits\")||0));});\ndocument.querySelectorAll(\"[data-live-text]\").forEach(function(el){el.textContent=step(J(el,\"data-live-text\"),s);});\ndocument.querySelectorAll(\"[data-live-class]\").forEach(function(el){el.setAttribute(\"class\",step(J(el,\"data-live-class\"),s));});\ndocument.querySelectorAll(\"[data-live-var]\").forEach(function(el){el.style.setProperty(el.getAttribute(\"data-live-var\"),lerp(J(el,\"data-live-keys\"),s));});\ndocument.querySelectorAll(\"[data-live-show]\").forEach(function(el){var w=J(el,\"data-live-show\");el.hidden=!(s>=w[0]&&s<w[1]);});\n}\nfunction tick(){draw(at+(playing?(performance.now()-since)/1000*speed:0));requestAnimationFrame(tick);}\naddEventListener(\"message\",function(e){var d=e.data;if(e.source!==parent||!d||d.type!==\"daslab:replay-clock\")return;at=Math.max(0,Number(d.elapsed)||0)/1000;playing=!!d.playing;speed=Number(d.speed)||1;since=performance.now();});\ndraw(0);requestAnimationFrame(tick);\n})();</script>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 3,
            "size": "large"
          }
        }
      ]
    },
    {
      "id": "scn_showcase_koenig_purchasing",
      "slug": "purchasing",
      "name": "Purchasing",
      "icon": "cart.fill",
      "tint": "#2E7D6B",
      "settings": {
        "description": "3 of 12 orders don't match their quotes. An invoice block waits for a yes."
      },
      "assets": [
        {
          "id": "koenig-quotes",
          "type": "daslab/webview",
          "name": "Orders against quotes",
          "fields": {
            "html": "<style>.tile { display: flex; flex-direction: column; }\n.tile > * { margin-top: 0; }\n:root[data-cell=\"tile\"] .tile { height: 100vh; overflow: hidden; }\n.tile svg.glyph { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }\n\n.head { display: flex; align-items: center; gap: 8px; max-width: none; font: 500 13px/20px var(--brand-text); color: var(--text-secondary); }\n.head > svg { width: 16px; height: 16px; flex: none; color: var(--text); }\n.head > span:first-of-type { color: var(--text); font-weight: 600; }\n.head > .state { margin-left: auto; }\n\n.reading { margin-top: 10px; font-family: var(--brand-display); font-weight: 600; font-size: 46px; line-height: 52px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; color: var(--text); white-space: nowrap; }\n.reading small { margin-left: 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading .also { margin-left: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading small.word, .figs small.word { margin-left: 0.3em; }\n.sub { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.visual { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 200px; margin-top: 16px; }\n:root[data-cell=\"tile\"] .visual { min-height: 0; }\n.caption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.caption b { font-weight: 500; color: var(--text); }\n.source { margin-top: 10px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.figs { margin-top: 0; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.tile .figs dd:first-of-type { font-size: 22px; line-height: 28px; }\n.tile .figs dt { margin-top: 2px; font-size: 12.5px; line-height: 16px; font-weight: 400; color: var(--text-secondary); }\n\n.meter { display: flex; gap: 4px; }\n.meter .seg { flex: var(--w) 1 0; min-width: 0; }\n.meter .seg span { display: block; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--text-dim); }\n.meter .seg.now span { color: var(--text); font-weight: 500; }\n.meter .seg i { display: block; height: 10px; margin-top: 6px; border-radius: 5px; background: linear-gradient(to right, var(--accent) calc(var(--f) * 100%), var(--bg-well) 0); }\n.ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.range { position: relative; height: 10px; border-radius: 5px; background: var(--bg-well); }\n.range .band { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in oklab, var(--ok) 40%, var(--bg-well)); }\n.range b { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--bg); border: 4px solid var(--text); }\n.range-scale { position: relative; height: 16px; margin-top: 8px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.range-scale span { position: absolute; transform: translateX(-50%); }\n.range-scale span:first-child { transform: none; }\n.range-scale span:last-child { transform: translateX(-100%); }\n\n.things { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }\n.things li { position: relative; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 12px; border-radius: 14px; background: var(--bg-well); }\n.things .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--text); }\n.things .ico svg { width: 18px; height: 18px; }\n.things .state { position: absolute; top: 12px; right: 12px; }\n.things h3 { margin-top: auto; font-size: 14px; line-height: 20px; }\n.things p { margin: 0; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }\n\n.cam { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #111; }\n.cam :is(img, video) { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; border: 0; border-radius: 0; }\n.cam.live video { animation: none; }\n.cam.live img { animation: cam-drift 18s ease-in-out infinite alternate; transform-origin: 62% 70%; }\n@keyframes cam-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }\n@media (prefers-reduced-motion: reduce) { .cam.live img { animation: none; } }\n.cam .chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font: 500 12px/18px var(--brand-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }\n.cam time { position: absolute; right: 12px; bottom: 10px; font: 500 11.5px/16px var(--brand-mono); color: rgb(255 255 255 / .9); text-shadow: 0 1px 2px rgb(0 0 0 / .5); }\n\n.bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 0; }\n.bars .col { position: relative; flex: 1; height: 100%; }\n.bars .col i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 4px; background: var(--accent); }\n.bars .col i.ghost { left: -2px; right: -2px; background: var(--bg-well); }\n.bars .col.now i:not(.ghost) { opacity: .55; }\n.bar-labels { display: flex; gap: 6px; margin-top: 6px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.bar-labels span { flex: 1; text-align: center; white-space: nowrap; }\n\n.curve { position: relative; flex: 1; min-height: 0; }\n.curve .plot { position: absolute; inset: 0 40px 0 0; }\n.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }\n.curve .span { fill: var(--warn); opacity: .09; }\n.curve .grid { stroke: var(--border); stroke-width: 1; }\n.curve .target { fill: none; stroke: var(--text-dim); stroke-width: 1.5; stroke-dasharray: 5 5; }\n.curve .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }\n.curve .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }\n.curve .span-label { position: absolute; top: 4px; margin-left: 6px; font: 500 11px/14px var(--brand-mono); color: var(--warn); }\n.curve .grid-label { position: absolute; right: 0; margin-top: -7px; font: 400 11px/14px var(--brand-mono); color: var(--text-dim); }\n.x-labels { position: relative; height: 16px; margin: 6px 40px 0 0; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.x-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }\n.x-labels span:first-child { transform: none; }\n.x-labels span:last-child { transform: translateX(-100%); }\n\n.actions { display: flex; gap: 8px; max-width: none; }\n.actions button { flex: 1; min-height: 40px; border-radius: 10px; font-weight: 600; }\n\n\n.day { margin: 10px 0 2px; font: 500 11.5px/16px var(--brand-mono); color: var(--text-dim); max-width: none; }\n.plan { list-style: none; margin: 0; padding: 0; }\n.plan > li { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: baseline; gap: 8px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 18px; }\n.plan > li:last-child { border-bottom: 0; }\n.plan > li > b { font: 600 12px/18px var(--brand-mono); color: var(--text-secondary); }\n.plan > li > span:first-of-type { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.plan small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--text-secondary); }\n.plan > li.new { background: color-mix(in oklab, var(--accent) 7%, transparent); animation: row-in .5s ease-out; }\n@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }\n\n.plan { margin-top: 10px; }\n.plan.wide > li { grid-template-columns: 3.6em 1fr auto; }\n.plan > li.changed { background: color-mix(in oklab, var(--accent) 8%, transparent); transition: background .4s; }\n.plan .state:empty { display: none; }</style>\n<main data-tile=\"own\" class=\"tile\"><p class=\"head\"><svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M3 4h2l2.5 12h11l2-9H6\"/><circle cx=\"9\" cy=\"20\" r=\"1.5\"/><circle cx=\"18\" cy=\"20\" r=\"1.5\"/></svg><span>Orders against quotes</span><span class=\"state warn\" data-live-class='[[0,\"state warn\"],[9999,\"state info\"]]'><span data-live-text='[[0,\"3 don’t match\"],[9999,\"Notes sent\"]]'>3 don’t match</span></span></p>\n<p class=\"reading\">€1,711<small class=\"word\">over quote</small></p>\n<p class=\"sub\">3 of this week’s 12 orders</p>\n<ul class=\"plan wide\"><li><b>€336</b><span>Stahlhandel Brenner<small>42CrMo4 bar: €2.73 a kg, quote €2.45</small></span><span class=\"state \"></span></li><li><b>€585</b><span>Härterei Neckar<small>Rush surcharge on a standard date</small></span><span class=\"state \"></span></li><li><b>€790</b><span>Hartmetall Weiss<small>List price, not the frame contract</small></span><span class=\"state \"></span></li></ul>\n<p class=\"caption\">The other 9 match their quotes · none of the 3 paid</p></main><script>(function(){\nif(!window.__DASLAB_REPLAY__)return;\nvar at=0,playing=false,speed=1,since=0;\nfunction lerp(k,s){if(s<=k[0][0])return k[0][1];for(var i=1;i<k.length;i++){if(s<=k[i][0]){var a=k[i-1],b=k[i];return a[1]+(b[1]-a[1])*(s-a[0])/(b[0]-a[0]);}}return k[k.length-1][1];}\nfunction step(k,s){var v=k[0][1];for(var i=0;i<k.length;i++){if(s>=k[i][0])v=k[i][1];}return v;}\nfunction hms(x){x=Math.floor(x);var h=Math.floor(x/3600)%24,m=Math.floor(x/60)%60,c=x%60;return(h<10?\"0\":\"\")+h+\":\"+(m<10?\"0\":\"\")+m+\":\"+(c<10?\"0\":\"\")+c;}\nfunction ms(x){x=Math.floor(x);return Math.floor(x/60)+\":\"+(x%60<10?\"0\":\"\")+(x%60);}\nfunction secs(t){var p=t.split(\":\").map(Number);return p[0]*3600+p[1]*60+(p[2]||0);}\nfunction J(el,a){var c=el.__k||(el.__k={});return c[a]||(c[a]=JSON.parse(el.getAttribute(a)));}\nfunction draw(s){\ndocument.querySelectorAll(\"[data-live-clock]\").forEach(function(el){el.textContent=hms(secs(el.getAttribute(\"data-live-clock\"))+s);});\ndocument.querySelectorAll(\"[data-live-timer]\").forEach(function(el){el.textContent=ms(Number(el.getAttribute(\"data-live-timer\"))+s);});\ndocument.querySelectorAll(\"[data-live-num]\").forEach(function(el){el.textContent=lerp(J(el,\"data-live-num\"),s).toFixed(Number(el.getAttribute(\"data-digits\")||0));});\ndocument.querySelectorAll(\"[data-live-text]\").forEach(function(el){el.textContent=step(J(el,\"data-live-text\"),s);});\ndocument.querySelectorAll(\"[data-live-class]\").forEach(function(el){el.setAttribute(\"class\",step(J(el,\"data-live-class\"),s));});\ndocument.querySelectorAll(\"[data-live-var]\").forEach(function(el){el.style.setProperty(el.getAttribute(\"data-live-var\"),lerp(J(el,\"data-live-keys\"),s));});\ndocument.querySelectorAll(\"[data-live-show]\").forEach(function(el){var w=J(el,\"data-live-show\");el.hidden=!(s>=w[0]&&s<w[1]);});\n}\nfunction tick(){draw(at+(playing?(performance.now()-since)/1000*speed:0));requestAnimationFrame(tick);}\naddEventListener(\"message\",function(e){var d=e.data;if(e.source!==parent||!d||d.type!==\"daslab:replay-clock\")return;at=Math.max(0,Number(d.elapsed)||0)/1000;playing=!!d.playing;speed=Number(d.speed)||1;since=performance.now();});\ndraw(0);requestAnimationFrame(tick);\n})();</script>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 0,
            "size": "large"
          }
        },
        {
          "id": "koenig-contract",
          "type": "daslab/webview",
          "name": "Frame contract",
          "fields": {
            "html": "<style>.tile { display: flex; flex-direction: column; }\n.tile > * { margin-top: 0; }\n:root[data-cell=\"tile\"] .tile { height: 100vh; overflow: hidden; }\n.tile svg.glyph { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }\n\n.head { display: flex; align-items: center; gap: 8px; max-width: none; font: 500 13px/20px var(--brand-text); color: var(--text-secondary); }\n.head > svg { width: 16px; height: 16px; flex: none; color: var(--text); }\n.head > span:first-of-type { color: var(--text); font-weight: 600; }\n.head > .state { margin-left: auto; }\n\n.reading { margin-top: 10px; font-family: var(--brand-display); font-weight: 600; font-size: 46px; line-height: 52px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; color: var(--text); white-space: nowrap; }\n.reading small { margin-left: 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading .also { margin-left: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading small.word, .figs small.word { margin-left: 0.3em; }\n.sub { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.visual { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 200px; margin-top: 16px; }\n:root[data-cell=\"tile\"] .visual { min-height: 0; }\n.caption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.caption b { font-weight: 500; color: var(--text); }\n.source { margin-top: 10px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.figs { margin-top: 0; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.tile .figs dd:first-of-type { font-size: 22px; line-height: 28px; }\n.tile .figs dt { margin-top: 2px; font-size: 12.5px; line-height: 16px; font-weight: 400; color: var(--text-secondary); }\n\n.meter { display: flex; gap: 4px; }\n.meter .seg { flex: var(--w) 1 0; min-width: 0; }\n.meter .seg span { display: block; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--text-dim); }\n.meter .seg.now span { color: var(--text); font-weight: 500; }\n.meter .seg i { display: block; height: 10px; margin-top: 6px; border-radius: 5px; background: linear-gradient(to right, var(--accent) calc(var(--f) * 100%), var(--bg-well) 0); }\n.ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.range { position: relative; height: 10px; border-radius: 5px; background: var(--bg-well); }\n.range .band { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in oklab, var(--ok) 40%, var(--bg-well)); }\n.range b { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--bg); border: 4px solid var(--text); }\n.range-scale { position: relative; height: 16px; margin-top: 8px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.range-scale span { position: absolute; transform: translateX(-50%); }\n.range-scale span:first-child { transform: none; }\n.range-scale span:last-child { transform: translateX(-100%); }\n\n.things { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }\n.things li { position: relative; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 12px; border-radius: 14px; background: var(--bg-well); }\n.things .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--text); }\n.things .ico svg { width: 18px; height: 18px; }\n.things .state { position: absolute; top: 12px; right: 12px; }\n.things h3 { margin-top: auto; font-size: 14px; line-height: 20px; }\n.things p { margin: 0; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }\n\n.cam { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #111; }\n.cam :is(img, video) { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; border: 0; border-radius: 0; }\n.cam.live video { animation: none; }\n.cam.live img { animation: cam-drift 18s ease-in-out infinite alternate; transform-origin: 62% 70%; }\n@keyframes cam-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }\n@media (prefers-reduced-motion: reduce) { .cam.live img { animation: none; } }\n.cam .chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font: 500 12px/18px var(--brand-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }\n.cam time { position: absolute; right: 12px; bottom: 10px; font: 500 11.5px/16px var(--brand-mono); color: rgb(255 255 255 / .9); text-shadow: 0 1px 2px rgb(0 0 0 / .5); }\n\n.bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 0; }\n.bars .col { position: relative; flex: 1; height: 100%; }\n.bars .col i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 4px; background: var(--accent); }\n.bars .col i.ghost { left: -2px; right: -2px; background: var(--bg-well); }\n.bars .col.now i:not(.ghost) { opacity: .55; }\n.bar-labels { display: flex; gap: 6px; margin-top: 6px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.bar-labels span { flex: 1; text-align: center; white-space: nowrap; }\n\n.curve { position: relative; flex: 1; min-height: 0; }\n.curve .plot { position: absolute; inset: 0 40px 0 0; }\n.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }\n.curve .span { fill: var(--warn); opacity: .09; }\n.curve .grid { stroke: var(--border); stroke-width: 1; }\n.curve .target { fill: none; stroke: var(--text-dim); stroke-width: 1.5; stroke-dasharray: 5 5; }\n.curve .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }\n.curve .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }\n.curve .span-label { position: absolute; top: 4px; margin-left: 6px; font: 500 11px/14px var(--brand-mono); color: var(--warn); }\n.curve .grid-label { position: absolute; right: 0; margin-top: -7px; font: 400 11px/14px var(--brand-mono); color: var(--text-dim); }\n.x-labels { position: relative; height: 16px; margin: 6px 40px 0 0; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.x-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }\n.x-labels span:first-child { transform: none; }\n.x-labels span:last-child { transform: translateX(-100%); }\n\n.actions { display: flex; gap: 8px; max-width: none; }\n.actions button { flex: 1; min-height: 40px; border-radius: 10px; font-weight: 600; }\n\n\n.day { margin: 10px 0 2px; font: 500 11.5px/16px var(--brand-mono); color: var(--text-dim); max-width: none; }\n.plan { list-style: none; margin: 0; padding: 0; }\n.plan > li { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: baseline; gap: 8px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 18px; }\n.plan > li:last-child { border-bottom: 0; }\n.plan > li > b { font: 600 12px/18px var(--brand-mono); color: var(--text-secondary); }\n.plan > li > span:first-of-type { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.plan small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--text-secondary); }\n.plan > li.new { background: color-mix(in oklab, var(--accent) 7%, transparent); animation: row-in .5s ease-out; }\n@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }\n\n.plan { margin-top: 10px; }\n.plan.wide > li { grid-template-columns: 3.6em 1fr auto; }\n.plan > li.changed { background: color-mix(in oklab, var(--accent) 8%, transparent); transition: background .4s; }\n.plan .state:empty { display: none; }</style>\n<main data-tile=\"own\" class=\"tile\"><p class=\"head\"><svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M14 3H6a2 2 0 00-2 2v14a2 2 0 002 2h12a2 2 0 002-2V9z\"/><path d=\"M14 3v6h6M8 14h8M8 17h5\"/></svg><span>Frame contract</span><span class=\"state ok\">Hartmetall Weiss</span></p>\n<p class=\"reading\">€8.20<small class=\"word\">an insert</small></p>\n<p class=\"sub\">List price €12.15 · CNMG 120408 · contract 4600000318</p>\n<ul class=\"plan wide\">\n  <li><b>200</b><span>PO 4500018240<small>Billed at list: €2,430</small></span><span class=\"state warn\">Over</span></li>\n  <li><b>200</b><span>At contract price<small>€1,640</small></span><span class=\"state info\">Due</span></li>\n</ul></main><script>(function(){\nif(!window.__DASLAB_REPLAY__)return;\nvar at=0,playing=false,speed=1,since=0;\nfunction lerp(k,s){if(s<=k[0][0])return k[0][1];for(var i=1;i<k.length;i++){if(s<=k[i][0]){var a=k[i-1],b=k[i];return a[1]+(b[1]-a[1])*(s-a[0])/(b[0]-a[0]);}}return k[k.length-1][1];}\nfunction step(k,s){var v=k[0][1];for(var i=0;i<k.length;i++){if(s>=k[i][0])v=k[i][1];}return v;}\nfunction hms(x){x=Math.floor(x);var h=Math.floor(x/3600)%24,m=Math.floor(x/60)%60,c=x%60;return(h<10?\"0\":\"\")+h+\":\"+(m<10?\"0\":\"\")+m+\":\"+(c<10?\"0\":\"\")+c;}\nfunction ms(x){x=Math.floor(x);return Math.floor(x/60)+\":\"+(x%60<10?\"0\":\"\")+(x%60);}\nfunction secs(t){var p=t.split(\":\").map(Number);return p[0]*3600+p[1]*60+(p[2]||0);}\nfunction J(el,a){var c=el.__k||(el.__k={});return c[a]||(c[a]=JSON.parse(el.getAttribute(a)));}\nfunction draw(s){\ndocument.querySelectorAll(\"[data-live-clock]\").forEach(function(el){el.textContent=hms(secs(el.getAttribute(\"data-live-clock\"))+s);});\ndocument.querySelectorAll(\"[data-live-timer]\").forEach(function(el){el.textContent=ms(Number(el.getAttribute(\"data-live-timer\"))+s);});\ndocument.querySelectorAll(\"[data-live-num]\").forEach(function(el){el.textContent=lerp(J(el,\"data-live-num\"),s).toFixed(Number(el.getAttribute(\"data-digits\")||0));});\ndocument.querySelectorAll(\"[data-live-text]\").forEach(function(el){el.textContent=step(J(el,\"data-live-text\"),s);});\ndocument.querySelectorAll(\"[data-live-class]\").forEach(function(el){el.setAttribute(\"class\",step(J(el,\"data-live-class\"),s));});\ndocument.querySelectorAll(\"[data-live-var]\").forEach(function(el){el.style.setProperty(el.getAttribute(\"data-live-var\"),lerp(J(el,\"data-live-keys\"),s));});\ndocument.querySelectorAll(\"[data-live-show]\").forEach(function(el){var w=J(el,\"data-live-show\");el.hidden=!(s>=w[0]&&s<w[1]);});\n}\nfunction tick(){draw(at+(playing?(performance.now()-since)/1000*speed:0));requestAnimationFrame(tick);}\naddEventListener(\"message\",function(e){var d=e.data;if(e.source!==parent||!d||d.type!==\"daslab:replay-clock\")return;at=Math.max(0,Number(d.elapsed)||0)/1000;playing=!!d.playing;speed=Number(d.speed)||1;since=performance.now();});\ndraw(0);requestAnimationFrame(tick);\n})();</script>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 1,
            "size": "large"
          }
        },
        {
          "id": "koenig-block",
          "type": "daslab/webview",
          "name": "Payment block",
          "fields": {
            "html": "<style>.tile { display: flex; flex-direction: column; }\n.tile > * { margin-top: 0; }\n:root[data-cell=\"tile\"] .tile { height: 100vh; overflow: hidden; }\n.tile svg.glyph { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }\n\n.head { display: flex; align-items: center; gap: 8px; max-width: none; font: 500 13px/20px var(--brand-text); color: var(--text-secondary); }\n.head > svg { width: 16px; height: 16px; flex: none; color: var(--text); }\n.head > span:first-of-type { color: var(--text); font-weight: 600; }\n.head > .state { margin-left: auto; }\n\n.reading { margin-top: 10px; font-family: var(--brand-display); font-weight: 600; font-size: 46px; line-height: 52px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; color: var(--text); white-space: nowrap; }\n.reading small { margin-left: 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading .also { margin-left: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading small.word, .figs small.word { margin-left: 0.3em; }\n.sub { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.visual { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 200px; margin-top: 16px; }\n:root[data-cell=\"tile\"] .visual { min-height: 0; }\n.caption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.caption b { font-weight: 500; color: var(--text); }\n.source { margin-top: 10px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.figs { margin-top: 0; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.tile .figs dd:first-of-type { font-size: 22px; line-height: 28px; }\n.tile .figs dt { margin-top: 2px; font-size: 12.5px; line-height: 16px; font-weight: 400; color: var(--text-secondary); }\n\n.meter { display: flex; gap: 4px; }\n.meter .seg { flex: var(--w) 1 0; min-width: 0; }\n.meter .seg span { display: block; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--text-dim); }\n.meter .seg.now span { color: var(--text); font-weight: 500; }\n.meter .seg i { display: block; height: 10px; margin-top: 6px; border-radius: 5px; background: linear-gradient(to right, var(--accent) calc(var(--f) * 100%), var(--bg-well) 0); }\n.ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.range { position: relative; height: 10px; border-radius: 5px; background: var(--bg-well); }\n.range .band { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in oklab, var(--ok) 40%, var(--bg-well)); }\n.range b { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--bg); border: 4px solid var(--text); }\n.range-scale { position: relative; height: 16px; margin-top: 8px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.range-scale span { position: absolute; transform: translateX(-50%); }\n.range-scale span:first-child { transform: none; }\n.range-scale span:last-child { transform: translateX(-100%); }\n\n.things { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }\n.things li { position: relative; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 12px; border-radius: 14px; background: var(--bg-well); }\n.things .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--text); }\n.things .ico svg { width: 18px; height: 18px; }\n.things .state { position: absolute; top: 12px; right: 12px; }\n.things h3 { margin-top: auto; font-size: 14px; line-height: 20px; }\n.things p { margin: 0; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }\n\n.cam { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #111; }\n.cam :is(img, video) { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; border: 0; border-radius: 0; }\n.cam.live video { animation: none; }\n.cam.live img { animation: cam-drift 18s ease-in-out infinite alternate; transform-origin: 62% 70%; }\n@keyframes cam-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }\n@media (prefers-reduced-motion: reduce) { .cam.live img { animation: none; } }\n.cam .chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font: 500 12px/18px var(--brand-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }\n.cam time { position: absolute; right: 12px; bottom: 10px; font: 500 11.5px/16px var(--brand-mono); color: rgb(255 255 255 / .9); text-shadow: 0 1px 2px rgb(0 0 0 / .5); }\n\n.bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 0; }\n.bars .col { position: relative; flex: 1; height: 100%; }\n.bars .col i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 4px; background: var(--accent); }\n.bars .col i.ghost { left: -2px; right: -2px; background: var(--bg-well); }\n.bars .col.now i:not(.ghost) { opacity: .55; }\n.bar-labels { display: flex; gap: 6px; margin-top: 6px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.bar-labels span { flex: 1; text-align: center; white-space: nowrap; }\n\n.curve { position: relative; flex: 1; min-height: 0; }\n.curve .plot { position: absolute; inset: 0 40px 0 0; }\n.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }\n.curve .span { fill: var(--warn); opacity: .09; }\n.curve .grid { stroke: var(--border); stroke-width: 1; }\n.curve .target { fill: none; stroke: var(--text-dim); stroke-width: 1.5; stroke-dasharray: 5 5; }\n.curve .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }\n.curve .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }\n.curve .span-label { position: absolute; top: 4px; margin-left: 6px; font: 500 11px/14px var(--brand-mono); color: var(--warn); }\n.curve .grid-label { position: absolute; right: 0; margin-top: -7px; font: 400 11px/14px var(--brand-mono); color: var(--text-dim); }\n.x-labels { position: relative; height: 16px; margin: 6px 40px 0 0; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.x-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }\n.x-labels span:first-child { transform: none; }\n.x-labels span:last-child { transform: translateX(-100%); }\n\n.actions { display: flex; gap: 8px; max-width: none; }\n.actions button { flex: 1; min-height: 40px; border-radius: 10px; font-weight: 600; }\n\n\n.day { margin: 10px 0 2px; font: 500 11.5px/16px var(--brand-mono); color: var(--text-dim); max-width: none; }\n.plan { list-style: none; margin: 0; padding: 0; }\n.plan > li { display: grid; grid-template-columns: 1.6em 1fr auto; align-items: baseline; gap: 8px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 18px; }\n.plan > li:last-child { border-bottom: 0; }\n.plan > li > b { font: 600 12px/18px var(--brand-mono); color: var(--text-secondary); }\n.plan > li > span:first-of-type { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.plan small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--text-secondary); }\n.plan > li.new { background: color-mix(in oklab, var(--accent) 7%, transparent); animation: row-in .5s ease-out; }\n@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }\n\n.plan { margin-top: 10px; }\n.plan.wide > li { grid-template-columns: 3.6em 1fr auto; }\n.plan > li.changed { background: color-mix(in oklab, var(--accent) 8%, transparent); transition: background .4s; }\n.plan .state:empty { display: none; }</style>\n<main data-tile=\"own\" class=\"tile\"><p class=\"head\"><svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><rect x=\"5\" y=\"11\" width=\"14\" height=\"10\" rx=\"2\"/><path d=\"M8 11V7a4 4 0 018 0v4\"/></svg><span>Payment block</span><span class=\"state warn\">Held in SAP</span></p>\n<p class=\"reading\">€3,276<small class=\"word\">net</small><span class=\"also\">Brenner</span></p>\n<p class=\"sub\">Invoice 5105600871 · PO 4500018231 · round bar</p>\n<ul class=\"plan wide\">\n  <li><b>€336</b><span>Over the quote<small>€2.73 a kg against €2.45</small></span><span class=\"state warn\">Held</span></li>\n  <li><b>14d</b><span>Payment terms<small>Due 30 November</small></span><span class=\"state \"></span></li>\n</ul></main><script>(function(){\nif(!window.__DASLAB_REPLAY__)return;\nvar at=0,playing=false,speed=1,since=0;\nfunction lerp(k,s){if(s<=k[0][0])return k[0][1];for(var i=1;i<k.length;i++){if(s<=k[i][0]){var a=k[i-1],b=k[i];return a[1]+(b[1]-a[1])*(s-a[0])/(b[0]-a[0]);}}return k[k.length-1][1];}\nfunction step(k,s){var v=k[0][1];for(var i=0;i<k.length;i++){if(s>=k[i][0])v=k[i][1];}return v;}\nfunction hms(x){x=Math.floor(x);var h=Math.floor(x/3600)%24,m=Math.floor(x/60)%60,c=x%60;return(h<10?\"0\":\"\")+h+\":\"+(m<10?\"0\":\"\")+m+\":\"+(c<10?\"0\":\"\")+c;}\nfunction ms(x){x=Math.floor(x);return Math.floor(x/60)+\":\"+(x%60<10?\"0\":\"\")+(x%60);}\nfunction secs(t){var p=t.split(\":\").map(Number);return p[0]*3600+p[1]*60+(p[2]||0);}\nfunction J(el,a){var c=el.__k||(el.__k={});return c[a]||(c[a]=JSON.parse(el.getAttribute(a)));}\nfunction draw(s){\ndocument.querySelectorAll(\"[data-live-clock]\").forEach(function(el){el.textContent=hms(secs(el.getAttribute(\"data-live-clock\"))+s);});\ndocument.querySelectorAll(\"[data-live-timer]\").forEach(function(el){el.textContent=ms(Number(el.getAttribute(\"data-live-timer\"))+s);});\ndocument.querySelectorAll(\"[data-live-num]\").forEach(function(el){el.textContent=lerp(J(el,\"data-live-num\"),s).toFixed(Number(el.getAttribute(\"data-digits\")||0));});\ndocument.querySelectorAll(\"[data-live-text]\").forEach(function(el){el.textContent=step(J(el,\"data-live-text\"),s);});\ndocument.querySelectorAll(\"[data-live-class]\").forEach(function(el){el.setAttribute(\"class\",step(J(el,\"data-live-class\"),s));});\ndocument.querySelectorAll(\"[data-live-var]\").forEach(function(el){el.style.setProperty(el.getAttribute(\"data-live-var\"),lerp(J(el,\"data-live-keys\"),s));});\ndocument.querySelectorAll(\"[data-live-show]\").forEach(function(el){var w=J(el,\"data-live-show\");el.hidden=!(s>=w[0]&&s<w[1]);});\n}\nfunction tick(){draw(at+(playing?(performance.now()-since)/1000*speed:0));requestAnimationFrame(tick);}\naddEventListener(\"message\",function(e){var d=e.data;if(e.source!==parent||!d||d.type!==\"daslab:replay-clock\")return;at=Math.max(0,Number(d.elapsed)||0)/1000;playing=!!d.playing;speed=Number(d.speed)||1;since=performance.now();});\ndraw(0);requestAnimationFrame(tick);\n})();</script>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 2,
            "size": "large"
          }
        },
        {
          "id": "koenig-pos",
          "type": "daslab/table",
          "name": "This week's purchase orders",
          "fields": {
            "columns": [
              {
                "id": "po",
                "name": "PO",
                "type": "text"
              },
              {
                "id": "supplier",
                "name": "Supplier",
                "type": "text"
              },
              {
                "id": "item",
                "name": "Item",
                "type": "text"
              },
              {
                "id": "quote",
                "name": "Quote €",
                "type": "number"
              },
              {
                "id": "order",
                "name": "Order €",
                "type": "number"
              },
              {
                "id": "difference",
                "name": "Difference €",
                "type": "number"
              },
              {
                "id": "check",
                "name": "Check",
                "type": "text"
              }
            ],
            "rows": [
              {
                "po": "4500018231",
                "supplier": "Stahlhandel Brenner",
                "item": "42CrMo4 round bar, Ø 60, 1,200 kg",
                "quote": 2940,
                "order": 3276,
                "difference": 336,
                "check": "€2.73 a kg, quote says €2.45"
              },
              {
                "po": "4500018232",
                "supplier": "Alu Kontor Ulm",
                "item": "EN AW-7075 plate, 25 mm, 14 sheets",
                "quote": 6180,
                "order": 6180,
                "difference": 0,
                "check": "Matches"
              },
              {
                "po": "4500018233",
                "supplier": "Hartmetall Weiss",
                "item": "Solid carbide end mills, Ø 10, 40",
                "quote": 2360,
                "order": 2360,
                "difference": 0,
                "check": "Matches"
              },
              {
                "po": "4500018234",
                "supplier": "Härterei Neckar",
                "item": "Case hardening, 600 shafts",
                "quote": 3900,
                "order": 4485,
                "difference": 585,
                "check": "15% rush surcharge on a standard date"
              },
              {
                "po": "4500018235",
                "supplier": "Schrauben Maier",
                "item": "DIN 912 screws, M8 × 30, 5,000",
                "quote": 410,
                "order": 410,
                "difference": 0,
                "check": "Matches"
              },
              {
                "po": "4500018236",
                "supplier": "Lagertechnik Ostertag",
                "item": "Angular contact bearings, 24",
                "quote": 1872,
                "order": 1872,
                "difference": 0,
                "check": "Matches"
              },
              {
                "po": "4500018237",
                "supplier": "Pulverbeschichtung Alb",
                "item": "Powder coating, RAL 7035, 300 covers",
                "quote": 1350,
                "order": 1350,
                "difference": 0,
                "check": "Matches"
              },
              {
                "po": "4500018238",
                "supplier": "Stahlhandel Brenner",
                "item": "C45 flat bar, 40 × 20, 800 kg",
                "quote": 1520,
                "order": 1520,
                "difference": 0,
                "check": "Matches"
              },
              {
                "po": "4500018239",
                "supplier": "Kühlschmierstoffe Gruber",
                "item": "Coolant concentrate, 4 drums",
                "quote": 2496,
                "order": 2496,
                "difference": 0,
                "check": "Matches"
              },
              {
                "po": "4500018240",
                "supplier": "Hartmetall Weiss",
                "item": "CNMG 120408 inserts, 200",
                "quote": 1640,
                "order": 2430,
                "difference": 790,
                "check": "List price, not the frame contract"
              },
              {
                "po": "4500018241",
                "supplier": "Messtechnik Rall",
                "item": "Calibration, 14 gauges",
                "quote": 980,
                "order": 980,
                "difference": 0,
                "check": "Matches"
              },
              {
                "po": "4500018242",
                "supplier": "Spedition Haug",
                "item": "Freight to a customer, 3 pallets",
                "quote": 465,
                "order": 465,
                "difference": 0,
                "check": "Matches"
              }
            ]
          },
          "layout": {
            "sortOrder": 3,
            "size": "large"
          }
        },
        {
          "id": "koenig-why",
          "type": "daslab/note",
          "name": "What doesn't match",
          "fields": {
            "content": "**Three of this week's 12 orders don't match their quotes, €1,711 over in all.**\n\n**Stahlhandel Brenner, PO 4500018231.** 1,200 kg of 42CrMo4 round bar at €2.73 a kg. The October quote says €2.45 a kg, alloy surcharge included, fixed to the end of November. **+€336.** The invoice is already in SAP and matches the order, so the three-way match let it through. A payment block waits for your yes.\n\n**Härterei Neckar, PO 4500018234.** Case hardening for 600 shafts, with a 15% rush surcharge. The order asks for the standard ten working days, so no surcharge applies. **+€585.**\n\n**Hartmetall Weiss, PO 4500018240.** 200 CNMG inserts at the list price of €12.15. The frame contract says €8.20. **+€790.**\n\nThe other nine match to the cent. Orders are read from SAP, quotes from the purchasing mailbox."
          },
          "layout": {
            "sortOrder": 4,
            "size": "large"
          }
        }
      ]
    },
    {
      "id": "scn_showcase_koenig_controlling",
      "slug": "controlling",
      "name": "Controlling",
      "icon": "chart.bar",
      "tint": "#5B6B78",
      "settings": {
        "description": "GH-220 up 8.1% this quarter, from three causes."
      },
      "assets": [
        {
          "id": "koenig-cost",
          "type": "daslab/webview",
          "name": "Cost of the GH-220",
          "fields": {
            "html": "<style>.tile { display: flex; flex-direction: column; }\n.tile > * { margin-top: 0; }\n:root[data-cell=\"tile\"] .tile { height: 100vh; overflow: hidden; }\n.tile svg.glyph { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }\n\n.head { display: flex; align-items: center; gap: 8px; max-width: none; font: 500 13px/20px var(--brand-text); color: var(--text-secondary); }\n.head > svg { width: 16px; height: 16px; flex: none; color: var(--text); }\n.head > span:first-of-type { color: var(--text); font-weight: 600; }\n.head > .state { margin-left: auto; }\n\n.reading { margin-top: 10px; font-family: var(--brand-display); font-weight: 600; font-size: 46px; line-height: 52px; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; color: var(--text); white-space: nowrap; }\n.reading small { margin-left: 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading .also { margin-left: 14px; font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--text-secondary); }\n.reading small.word, .figs small.word { margin-left: 0.3em; }\n.sub { margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.visual { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 200px; margin-top: 16px; }\n:root[data-cell=\"tile\"] .visual { min-height: 0; }\n.caption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }\n.caption b { font-weight: 500; color: var(--text); }\n.source { margin-top: 10px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.figs { margin-top: 0; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }\n.tile .figs dd:first-of-type { font-size: 22px; line-height: 28px; }\n.tile .figs dt { margin-top: 2px; font-size: 12.5px; line-height: 16px; font-weight: 400; color: var(--text-secondary); }\n\n.meter { display: flex; gap: 4px; }\n.meter .seg { flex: var(--w) 1 0; min-width: 0; }\n.meter .seg span { display: block; overflow: hidden; white-space: nowrap; font-size: 12px; line-height: 16px; color: var(--text-dim); }\n.meter .seg.now span { color: var(--text); font-weight: 500; }\n.meter .seg i { display: block; height: 10px; margin-top: 6px; border-radius: 5px; background: linear-gradient(to right, var(--accent) calc(var(--f) * 100%), var(--bg-well) 0); }\n.ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n\n.range { position: relative; height: 10px; border-radius: 5px; background: var(--bg-well); }\n.range .band { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in oklab, var(--ok) 40%, var(--bg-well)); }\n.range b { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--bg); border: 4px solid var(--text); }\n.range-scale { position: relative; height: 16px; margin-top: 8px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.range-scale span { position: absolute; transform: translateX(-50%); }\n.range-scale span:first-child { transform: none; }\n.range-scale span:last-child { transform: translateX(-100%); }\n\n.things { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }\n.things li { position: relative; display: flex; flex-direction: column; min-height: 0; margin: 0; padding: 12px; border-radius: 14px; background: var(--bg-well); }\n.things .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--text); }\n.things .ico svg { width: 18px; height: 18px; }\n.things .state { position: absolute; top: 12px; right: 12px; }\n.things h3 { margin-top: auto; font-size: 14px; line-height: 20px; }\n.things p { margin: 0; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }\n\n.cam { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #111; }\n.cam :is(img, video) { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; border: 0; border-radius: 0; }\n.cam.live video { animation: none; }\n.cam.live img { animation: cam-drift 18s ease-in-out infinite alternate; transform-origin: 62% 70%; }\n@keyframes cam-drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, -1%); } }\n@media (prefers-reduced-motion: reduce) { .cam.live img { animation: none; } }\n.cam .chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; font: 500 12px/18px var(--brand-text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }\n.cam time { position: absolute; right: 12px; bottom: 10px; font: 500 11.5px/16px var(--brand-mono); color: rgb(255 255 255 / .9); text-shadow: 0 1px 2px rgb(0 0 0 / .5); }\n\n.bars { display: flex; align-items: flex-end; gap: 6px; flex: 1; min-height: 0; }\n.bars .col { position: relative; flex: 1; height: 100%; }\n.bars .col i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h); border-radius: 4px; background: var(--accent); }\n.bars .col i.ghost { left: -2px; right: -2px; background: var(--bg-well); }\n.bars .col.now i:not(.ghost) { opacity: .55; }\n.bar-labels { display: flex; gap: 6px; margin-top: 6px; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.bar-labels span { flex: 1; text-align: center; white-space: nowrap; }\n\n.curve { position: relative; flex: 1; min-height: 0; }\n.curve .plot { position: absolute; inset: 0 40px 0 0; }\n.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }\n.curve .span { fill: var(--warn); opacity: .09; }\n.curve .grid { stroke: var(--border); stroke-width: 1; }\n.curve .target { fill: none; stroke: var(--text-dim); stroke-width: 1.5; stroke-dasharray: 5 5; }\n.curve .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }\n.curve .dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 22%, transparent); }\n.curve .span-label { position: absolute; top: 4px; margin-left: 6px; font: 500 11px/14px var(--brand-mono); color: var(--warn); }\n.curve .grid-label { position: absolute; right: 0; margin-top: -7px; font: 400 11px/14px var(--brand-mono); color: var(--text-dim); }\n.x-labels { position: relative; height: 16px; margin: 6px 40px 0 0; max-width: none; font: 400 11.5px/16px var(--brand-mono); color: var(--text-dim); }\n.x-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }\n.x-labels span:first-child { transform: none; }\n.x-labels span:last-child { transform: translateX(-100%); }\n\n.actions { display: flex; gap: 8px; max-width: none; }\n.actions button { flex: 1; min-height: 40px; border-radius: 10px; font-weight: 600; }\n\n\n.lots { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }\n.lots li { display: grid; grid-template-columns: 7.5em 1fr 3.4em; align-items: center; gap: 10px; margin: 0; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }\n.lots i { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--warn) calc(var(--v) * 100%), var(--bg-well) 0); }\n.lots b { text-align: right; font: 600 12.5px var(--brand-mono); color: var(--text); }</style>\n<main data-tile=\"own\" class=\"tile\"><p class=\"head\"><svg class=\"glyph\" viewBox=\"0 0 24 24\" aria-hidden=\"true\"><rect x=\"3\" y=\"6\" width=\"18\" height=\"12\" rx=\"2\"/><circle cx=\"12\" cy=\"12\" r=\"2.5\"/><path d=\"M6 9h.01M18 15h.01\"/></svg><span>Cost of the GH-220</span><span class=\"state warn\">+8.1%</span></p>\n<p class=\"reading\">€41.50<small class=\"word\">a housing</small></p>\n<p class=\"sub\">Last quarter €38.39 · SAP cost estimate</p>\n<ul class=\"lots\"><li><span>7075 plate</span><i style=\"--v:0.84\"></i><b>+4.2%</b></li><li><span>Rework, MC-02</span><i style=\"--v:0.42\"></i><b>+2.1%</b></li><li><span>Inserts at list</span><i style=\"--v:0.36\"></i><b>+1.8%</b></li></ul>\n<p class=\"caption\">Two of the three already in hand</p></main><script>(function(){\nif(!window.__DASLAB_REPLAY__)return;\nvar at=0,playing=false,speed=1,since=0;\nfunction lerp(k,s){if(s<=k[0][0])return k[0][1];for(var i=1;i<k.length;i++){if(s<=k[i][0]){var a=k[i-1],b=k[i];return a[1]+(b[1]-a[1])*(s-a[0])/(b[0]-a[0]);}}return k[k.length-1][1];}\nfunction step(k,s){var v=k[0][1];for(var i=0;i<k.length;i++){if(s>=k[i][0])v=k[i][1];}return v;}\nfunction hms(x){x=Math.floor(x);var h=Math.floor(x/3600)%24,m=Math.floor(x/60)%60,c=x%60;return(h<10?\"0\":\"\")+h+\":\"+(m<10?\"0\":\"\")+m+\":\"+(c<10?\"0\":\"\")+c;}\nfunction ms(x){x=Math.floor(x);return Math.floor(x/60)+\":\"+(x%60<10?\"0\":\"\")+(x%60);}\nfunction secs(t){var p=t.split(\":\").map(Number);return p[0]*3600+p[1]*60+(p[2]||0);}\nfunction J(el,a){var c=el.__k||(el.__k={});return c[a]||(c[a]=JSON.parse(el.getAttribute(a)));}\nfunction draw(s){\ndocument.querySelectorAll(\"[data-live-clock]\").forEach(function(el){el.textContent=hms(secs(el.getAttribute(\"data-live-clock\"))+s);});\ndocument.querySelectorAll(\"[data-live-timer]\").forEach(function(el){el.textContent=ms(Number(el.getAttribute(\"data-live-timer\"))+s);});\ndocument.querySelectorAll(\"[data-live-num]\").forEach(function(el){el.textContent=lerp(J(el,\"data-live-num\"),s).toFixed(Number(el.getAttribute(\"data-digits\")||0));});\ndocument.querySelectorAll(\"[data-live-text]\").forEach(function(el){el.textContent=step(J(el,\"data-live-text\"),s);});\ndocument.querySelectorAll(\"[data-live-class]\").forEach(function(el){el.setAttribute(\"class\",step(J(el,\"data-live-class\"),s));});\ndocument.querySelectorAll(\"[data-live-var]\").forEach(function(el){el.style.setProperty(el.getAttribute(\"data-live-var\"),lerp(J(el,\"data-live-keys\"),s));});\ndocument.querySelectorAll(\"[data-live-show]\").forEach(function(el){var w=J(el,\"data-live-show\");el.hidden=!(s>=w[0]&&s<w[1]);});\n}\nfunction tick(){draw(at+(playing?(performance.now()-since)/1000*speed:0));requestAnimationFrame(tick);}\naddEventListener(\"message\",function(e){var d=e.data;if(e.source!==parent||!d||d.type!==\"daslab:replay-clock\")return;at=Math.max(0,Number(d.elapsed)||0)/1000;playing=!!d.playing;speed=Number(d.speed)||1;since=performance.now();});\ndraw(0);requestAnimationFrame(tick);\n})();</script>",
            "style": "house"
          },
          "layout": {
            "sortOrder": 0,
            "size": "large"
          }
        }
      ]
    },
    {
      "id": "scn_showcase_koenig_quality",
      "slug": "quality",
      "name": "Quality",
      "icon": "checkmark.circle.fill",
      "tint": "#3B82B0",
      "settings": {
        "description": "Scrap 1.9% this week. The line camera checked 412 housings today."
      },
      "assets": []
    },
    {
      "id": "scn_showcase_koenig_maintenance",
      "slug": "maintenance",
      "name": "Maintenance",
      "icon": "wrench.and.screwdriver.fill",
      "tint": "#8A6D3B",
      "settings": {
        "description": "Spindle check on MC-04 booked Thursday."
      },
      "assets": []
    },
    {
      "id": "scn_showcase_koenig_morning",
      "slug": "morning",
      "name": "Morning report",
      "icon": "sun.max",
      "tint": "#E0A23B",
      "settings": {
        "description": "Sent to the shift leads at 6:00, from SAP and the shop floor."
      },
      "assets": []
    }
  ]
}
