/* Home page demo: a sample app driven by a scripted Skate widget (assets/demo.js).
   Widget look: board 05, option 1 "Corner card". Driving: board 05b, option 1 "Soft glow outline".
   To restyle the widget or the ring, change the tokens on .demo only. */
.demo {
  /* widget */
  --sk-bg: #fff;
  --sk-ink: var(--ink);
  --sk-ink-2: var(--ink-2);
  --sk-muted: var(--muted);
  --sk-faint: var(--faint);
  --sk-line: var(--line);
  --sk-line-2: var(--line-2);
  --sk-soft: var(--bg);              /* approval card */
  --sk-me: var(--panel);             /* the user's message */
  --sk-radius: 16px;
  --sk-shadow: 0 18px 50px -12px rgba(20, 20, 20, .28), 0 0 0 1px rgba(20, 20, 20, .07);
  --sk-primary: var(--accent);       /* Go, Approve */
  --sk-primary-ink: var(--ink);
  --sk-primary-edge: #93c3d8;
  --sk-secondary: var(--ink);        /* Cancel, Stop, Replay */
  --sk-secondary-ink: #fff;
  --sk-ok: var(--ok);
  --sk-ok-soft: var(--ok-soft);
  --sk-ok-ink: #16402e;
  --sk-token: #e4f1f7;               /* the editable words in the request */
  /* driving */
  --ring: #4f7186;
  --ring-ink: #1f3a48;
  --ring-glow: 169 211 230;
  /* layout */
  --dm-h: 560px;                     /* sample app height */
  --dm-w: 340px;                     /* widget width */
  --dm-clear: 156px;                 /* app content keeps clear of the widget */
  padding: 64px 64px 0;
}

.demo-note { position: absolute; z-index: 4; top: 18px; left: 64px; max-width: calc(100% - 128px); margin: 0; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fffdf9; color: var(--ink-2); font-size: 13px; line-height: 1.35; box-shadow: 0 8px 24px -14px #0009; }
.demo-note::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ring); }

/* ---------- the sample app ---------- */
.dm-app { position: relative; z-index: 1; height: var(--dm-h); margin-right: 200px; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 0 0 1px #0000000d, 0 24px 60px -24px #0000002e; overflow: hidden; font-size: 13px; line-height: 1.4; color: #1b1b1a; }
.dm-app.swap > * { animation: dm-fade .3s ease both; }
.dm-nojs { padding: 24px; color: var(--muted); }
.dm-app h4, .dm-app h5, .dm-app p { margin: 0; }

.ap-top { display: flex; align-items: center; gap: 22px; height: 50px; padding: 0 var(--dm-clear) 0 22px; border-bottom: 1px solid #efefec; }
.ap-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; }
.ap-logo i { width: 20px; height: 20px; border-radius: 6px; background: #1b1b1a; flex: none; }
.ap-logo i.pond { background: #4f7186 url("img/paint-lilies.webp?v=3") 30% 40% / 500% auto; }
.ap-top nav { display: flex; gap: 16px; color: #8a8a85; }
.ap-top nav .on { color: #111; font-weight: 500; }
.ap-av { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: #8a8a85; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 600; flex: none; }
.ap-body { padding: 20px var(--dm-clear) 56px 24px; }
.ap-crumbs { margin: 0 0 4px !important; color: #9c958a; font-size: 12px; }
.ap-h { font-size: 20px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.ap-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid #e3e3df; background: #fff; color: #1b1b1a; font-size: 12.5px; font-weight: 500; white-space: nowrap; flex: none; }
.ap-btn.dark { background: #1b1b1a; border-color: #1b1b1a; color: #fff; }
.ap-btn.off { opacity: .4; }
.ap-sel { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 26px 0 10px; border: 1px solid #e3e3df; border-radius: 8px; white-space: nowrap; font-weight: 500;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239c958a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 9px no-repeat; }
.ap-sel small, .ap-qty small { color: #9c958a; font-size: 12px; font-weight: 400; }
.ap-f { display: grid; gap: 5px; margin-bottom: 12px; min-width: 0; }
.ap-f > small { color: #6c665d; font-size: 12px; }
.ap-in { display: flex; align-items: center; height: 34px; padding: 0 10px; border: 1px solid #e3e3df; border-radius: 8px; background: #fff; min-width: 0; overflow: hidden; white-space: nowrap; }
.ap-in:empty::after { content: attr(data-ph); color: #b5b0a7; }
.dm-press { transform: scale(.96); transition: transform .12s; }

/* tickets (Pondside) */
.ta-ev { display: flex; gap: 14px; align-items: center; }
.ta-art { width: 58px; height: 58px; border-radius: 10px; flex: none; background: #4f7186 url("img/paint-lilies.webp?v=3") 62% 48% / 420% auto; }
.ta-kick { margin: 0 0 3px !important; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #9c958a; }
.ta-sub { margin-top: 2px !important; color: #6c665d; font-size: 12.5px; }
.ta-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.ap-qty { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 10px; border: 1px solid #e3e3df; border-radius: 8px; font-weight: 500; }
.ap-qty i { font-style: normal; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: #f3f3f0; color: #4a4a47; }
.ap-qty b { min-width: 10px; text-align: center; font-weight: 600; }
.ta-list { list-style: none; margin: 0; padding: 0; }
.ta-list li { display: grid; grid-template-columns: minmax(86px, 1.3fr) 58px minmax(52px, 1fr) 40px 62px; align-items: center; gap: 8px; height: 40px; border-bottom: 1px solid #f1f1ee; white-space: nowrap; }
.ta-list b { font-weight: 500; }
.ta-list .t, .ta-list .l { color: #8a8a85; font-size: 12px; }
.ta-list .l.low { color: #a3620a; }
.ta-list .p { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ta-pick { justify-self: end; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid #e3e3df; border-radius: 6px; font-size: 12px; font-weight: 500; }
.ta-list li.out b, .ta-list li.out .p, .ta-list li.out .l { color: #bdb8af; }
.ta-list li.out .ta-pick { border-color: transparent; color: #bdb8af; }
.ta-list li { transition: opacity .2s, background .2s, box-shadow .2s; }
.ta-list li.dim { opacity: .3; }
.ta-list li.pv { background: #eef6fa; box-shadow: inset 3px 0 0 var(--ring); }
.ta-list li.pv b { padding-left: 8px; }
.ta-list.anim li { animation: dm-row .34s cubic-bezier(.3, .7, .2, 1) both; animation-delay: calc(var(--i) * 26ms); }
.ta-sum { display: grid; gap: 3px; margin: 12px 0 14px; padding: 11px 14px; border-radius: 10px; background: #f7f6f3; }
.ta-sum .m { color: #6c665d; }
.ta-sum .tot { display: flex; justify-content: space-between; margin-top: 5px; padding-top: 7px; border-top: 1px solid #ebe8e2; }
.ta-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ta-form .full { grid-column: 1 / -1; }
.ap-pay { display: flex; justify-content: center; align-items: center; height: 40px; border-radius: 8px; background: #1b1b1a; color: #fff; font-weight: 600; }
.ap-pay.busy { opacity: .55; }
.ta-rcpt { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 18px; padding: 14px 16px; border: 1px solid #e3efe6; border-radius: 12px; background: #f6fbf7; }
.ta-rcpt b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.ta-rcpt p { margin-top: 3px !important; color: #4a4a47; }
.ta-okc { width: 34px; height: 34px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }
.ta-okc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ta-mine { list-style: none; margin: 0; padding: 0; border-top: 1px solid #f1f1ee; }
.ta-mine li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f1ee; }
.ta-mine .ta-art { width: 36px; height: 36px; border-radius: 8px; }
.ta-mine li:nth-child(2) .ta-art { background-position: 20% 70%; }
.ta-mine li:nth-child(3) .ta-art { background-position: 85% 20%; filter: saturate(.6); }
.ta-mine li:nth-child(4) .ta-art { background-position: 50% 90%; filter: saturate(.6); }
.ta-mine li > span:nth-child(2) { flex: 1; min-width: 0; }
.ta-mine b { display: block; font-weight: 500; }
.ta-mine small { display: block; color: #8a8a85; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-mine em { font: 500 10px var(--font-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #8a8a85; }
.ta-mine li.new em { background: var(--accent); color: var(--ink); border-radius: 4px; padding: 2px 5px; }
.ta-mine li.past b { color: #8a8a85; }

/* SaaS (Fieldnote) */
.fn { position: relative; display: grid; grid-template-columns: 184px minmax(0, 1fr); grid-template-rows: 50px 1fr; height: 100%; }
.fn > .ap-top { grid-column: 1 / -1; }
.fn-team { position: relative; height: 30px; }
.fn-search { flex: 0 1 220px; height: 28px; border: 1px solid #ececea; border-radius: 7px; background: #fafaf8; color: #aaa59c; font-size: 12px; display: flex; align-items: center; padding: 0 10px; }
.fn-side { border-right: 1px solid #efefec; background: #fcfcfb; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.fn-side span { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; color: #4a4a47; }
.fn-side span.on { background: #f0f0ed; color: #111; font-weight: 500; }
.fn-side span i { width: 7px; height: 7px; border-radius: 2px; background: #cfcfca; }
.fn-side span.on i { background: #1b1b1a; }
.fn-side em { font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #9c958a; margin: 14px 8px 4px; }
.fn-main { position: relative; padding: 20px var(--dm-clear) 0 28px; min-width: 0; }
.fn-head { position: relative; display: flex; align-items: center; gap: 8px; }
.fn-head .ap-h { margin-right: auto; }
.fn-meta { margin: 2px 0 14px !important; color: #9c958a; font-size: 12px; }
.fn-doc h5 { margin: 14px 0 4px; font-size: 14px; font-weight: 600; }
.fn-doc p { color: #4a4a47; max-width: 46ch; }
.fn-pop { position: absolute; right: 0; top: 40px; z-index: 2; width: 286px; max-width: 100%; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px #0000000f, 0 16px 40px -12px #0000003d; padding: 12px; animation: dm-pop .18s ease both; }
.fn-row { display: flex; gap: 12px; align-items: center; }
.fn-row b { display: block; font-weight: 600; }
.fn-row small { display: block; color: #8a8a85; font-size: 12px; }
.fn-tog { position: relative; width: 34px; height: 20px; flex: none; border-radius: 99px; background: #d9d6cf; transition: background .2s; }
.fn-tog i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform .2s; }
.fn-tog.on { background: var(--ok); }
.fn-tog.on i { transform: translateX(14px); }
.fn-link { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.fn-link span:first-child { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; padding: 0 8px; border-radius: 6px; background: #f7f6f3; font: 11.5px var(--font-mono); overflow: hidden; white-space: nowrap; }
.fn-tabs { display: flex; gap: 18px; border-bottom: 1px solid #efefec; margin: 12px 0 16px; white-space: nowrap; }
.fn-tabs span { padding-bottom: 9px; color: #8a8a85; }
.fn-tabs span.on { color: #111; font-weight: 500; box-shadow: inset 0 -1.5px 0 #111; }
.fn-mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #6c665d; }
.fn-add { position: relative; display: flex; gap: 8px; margin-bottom: 12px; }
.fn-add .ap-in { flex: 1; }
.fn-sugg { position: absolute; left: 0; top: 40px; z-index: 2; width: min(270px, 100%); display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px #0000000f, 0 12px 30px -10px #00000040; animation: dm-pop .16s ease both; }
.fn-sugg .ap-av { margin: 0; background: #1b1b1a; }
.fn-sugg small { display: block; color: #8a8a85; font-size: 11.5px; }
.fn-opts { position: absolute; z-index: 2; top: 40px; display: grid; min-width: 160px; padding: 4px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px #0000000f, 0 12px 30px -10px #00000040; animation: dm-pop .16s ease both; }
.fn-opts span { padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.fn-opts span.sel { background: #f0f0ed; font-weight: 500; }
.fn-roles { right: 52px; }
.fn-vis { position: relative; justify-items: start; }
.fn-vis .fn-opts { top: 58px; left: 0; }
.fn-help { color: #8a8a85; font-size: 12px; }
.fn-save { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.fn-saved { color: var(--ok); font-weight: 500; }
.fn-tbl { width: 100%; border-collapse: collapse; }
.fn-tbl th { text-align: left; font: 500 10.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #9c958a; padding: 8px 6px; border-bottom: 1px solid #efefec; }
.fn-tbl td { padding: 7px 6px; border-bottom: 1px solid #f3f3f0; white-space: nowrap; }
.fn-p { display: flex; align-items: center; gap: 10px; }
.fn-p .ap-av { margin: 0; width: 24px; height: 24px; font-size: 9.5px; }
.fn-tbl tr.new td { background: #eef6fa; }
.fn-tbl tr.new .ap-av { background: #1b1b1a; }
.fn-new { margin-left: 8px; font: 500 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--ink); border-radius: 4px; padding: 2px 5px; }
.fn-menu { position: absolute; z-index: 3; top: 46px; left: 14px; width: 184px; display: grid; padding: 5px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px #0000000f, 0 16px 40px -12px #0000003d; animation: dm-pop .16s ease both; }
.fn-menu span { padding: 7px 10px; border-radius: 6px; }

/* ---------- the Skate widget ---------- */
.sk { position: absolute; z-index: 2; right: 64px; top: 104px; width: var(--dm-w); max-height: calc(var(--dm-h) - 64px); display: flex; flex-direction: column; padding-bottom: 12px; background: var(--sk-bg); color: var(--sk-ink); border-radius: var(--sk-radius); box-shadow: var(--sk-shadow); font-size: 13px; line-height: 1.45; overflow: hidden; }
.sk [hidden] { display: none !important; }
.sk p { margin: 0; }
.sk button { font-family: inherit; cursor: pointer; }
.sk-hd { flex: none; display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--sk-line); }
.sk-wm { font: 600 16px/1 var(--font-sans); letter-spacing: -.055em; }
.sk-st { margin-left: auto; display: flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sk-muted); white-space: nowrap; }
.sk-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sk-faint); }
.sk-st[data-s="work"]::before { background: var(--ring); animation: sk-pulse 1.4s ease-in-out infinite; }
.sk-st[data-s="wait"] { color: var(--ring-ink); }
.sk-st[data-s="wait"]::before { background: var(--ring); }
.sk-st[data-s="done"] { color: var(--sk-ok); }
.sk-st[data-s="done"]::before { background: var(--sk-ok); }
.sk-hd button { border: 0; border-radius: 7px; padding: 7px 11px; background: var(--sk-secondary); color: var(--sk-secondary-ink); font-size: 12px; font-weight: 500; line-height: 1; }
.sk-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 2px; }
.sk-hello, .sk-say { color: var(--sk-ink-2); }
.sk-say a { color: var(--sk-ink); text-underline-offset: 3px; }
.sk-me { align-self: flex-end; max-width: 88%; padding: 7px 11px; border-radius: 12px 12px 4px 12px; background: var(--sk-me); overflow-wrap: anywhere; animation: sk-in .25s ease both; }
.sk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sk-steps li { display: flex; gap: 9px; align-items: flex-start; color: var(--sk-ink-2); animation: sk-in .25s ease both; }
.sk-steps li.now { color: var(--sk-muted); }
.sk-steps li.now::before { content: ""; flex: none; width: 7px; height: 7px; margin: 6px 3px 0; border-radius: 50%; background: var(--ring); animation: sk-pulse 1.4s ease-in-out infinite; }
.sk svg { flex: none; width: 13px; height: 13px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk-steps svg { color: var(--sk-ok); }
.sk-ask { padding: 11px 12px; border: 1px solid var(--sk-line-2); border-radius: 12px; background: var(--sk-soft); animation: sk-in .25s ease both; }
.sk-ask:focus { outline: none; }
.sk-ask:focus-visible { outline: 2px solid var(--sk-ink); outline-offset: 2px; }
.sk-gate { margin-bottom: 3px !important; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ring); }
.sk-ask-t { font-weight: 600; }
.sk-ask-d { margin: 2px 0 10px !important; color: var(--sk-muted); font-size: 12.5px; white-space: pre-line; }
.sk-ask-b { display: flex; gap: 8px; }
.sk-btn { border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 500; line-height: 1; }
.sk-yes { background: var(--sk-primary); border-color: var(--sk-primary-edge); color: var(--sk-primary-ink); }
.sk-yes:hover { filter: brightness(.95); }
.sk-no { background: var(--sk-secondary); color: var(--sk-secondary-ink); }
.sk-ask-f { margin-top: 8px !important; color: var(--sk-faint); font-size: 11.5px; }
.sk-ok { display: flex; gap: 9px; align-items: flex-start; padding: 9px 11px; border-radius: 10px; background: var(--sk-ok-soft); color: var(--sk-ok-ink); animation: sk-in .3s ease both; }
.sk-ok svg { color: var(--sk-ok); }
.sk-stopped { padding: 8px 11px; border-radius: 10px; background: var(--sk-soft); color: var(--sk-ink-2); }
.sk-in { flex: none; display: flex; align-items: flex-end; gap: 8px; margin: 10px 12px 0; padding: 5px 5px 5px 11px; border: 1px solid var(--sk-line-2); border-radius: 10px; background: #fff; }
.sk-in:focus-within { border-color: var(--ring); }
.sk-req { flex: 1; min-width: 0; padding: 2px 0; line-height: 1.85; overflow-wrap: anywhere; }
.sk-q { flex: 1; min-width: 0; align-self: center; border: 0; outline: 0; padding: 6px 0; background: none; color: var(--sk-ink); font: inherit; }
.sk-go { flex: none; border: 1px solid var(--sk-primary-edge); border-radius: 8px; padding: 8px 15px; background: var(--sk-primary); color: var(--sk-primary-ink); font-size: 13px; font-weight: 600; line-height: 1; }
.sk-go:hover { filter: brightness(.95); }
.sk-go.idle { animation: sk-call 2.4s ease-in-out 1.5s infinite; }
.sk-pv { color: var(--sk-ink-2); }
.tok { -webkit-appearance: none; appearance: none; height: 23px; margin: 0 1px; padding: 0 16px 0 5px; border: 0; border-bottom: 1.5px dashed var(--ring); border-radius: 5px 5px 2px 2px; color: var(--sk-ink); font: inherit; line-height: 23px; vertical-align: baseline; cursor: pointer;
  background: var(--sk-token) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234f7186' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 5px center / 7px no-repeat; }
.tok:hover { background-color: #d3e9f3; }
.sk-hint { flex: none; margin: 7px 16px 0 !important; color: var(--sk-faint); font-size: 12px; }
.sk-hint button { border: 0; padding: 0; background: none; color: var(--sk-ink-2); font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sk-chips { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 0; }
.sk-chips button { padding: 7px 10px; border: 1px solid var(--sk-line-2); border-radius: 8px; background: #fff; color: var(--sk-ink-2); font-size: 12.5px; line-height: 1.35; text-align: left; }
.sk-chips button:hover { border-color: var(--sk-ink); color: var(--sk-ink); }

/* ---------- the ring Skate draws around what it acts on ---------- */
.dm-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.dm-ring, .dm-tag { position: absolute; left: 0; top: 0; opacity: 0; transition: transform .45s cubic-bezier(.3, .7, .2, 1), width .45s cubic-bezier(.3, .7, .2, 1), height .45s cubic-bezier(.3, .7, .2, 1), opacity .2s; }
.dm-ring { border: 2px solid var(--ring); border-radius: 10px; box-shadow: 0 0 0 5px rgb(var(--ring-glow) / .55), 0 0 22px 6px rgb(var(--ring-glow) / .75); animation: dm-breathe 2.4s ease-in-out infinite; }
.dm-ring.hot { animation: none; border-color: var(--ring-ink); box-shadow: 0 0 0 3px rgb(var(--ring-glow) / .9); }
.dm-ring.ok { animation: none; box-shadow: 0 0 0 4px rgb(var(--ring-glow) / .5); background: rgb(var(--ring-glow) / .12); }
.dm-ring.on, .dm-tag.on { opacity: 1; }
.dm-ring.jump, .dm-tag.jump { transition: none; }
.dm-tag { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; background: #fff; color: #111; font: 400 10.5px/1.2 var(--font-mono); white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
.dm-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--ring); flex: none; }
.dm-tag kbd { font: inherit; font-size: 9.5px; border: 1px solid currentColor; border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; opacity: .85; }
.dm-tag.ok { color: var(--ring-ink); font-weight: 500; }
@media (pointer: coarse) { .dm-tag .k { display: none; } }

@keyframes dm-breathe { 50% { box-shadow: 0 0 0 9px rgb(var(--ring-glow) / .3), 0 0 30px 8px rgb(var(--ring-glow) / .55); } }
@keyframes dm-row { from { opacity: 0; transform: translateY(6px); } }
@keyframes dm-pop { from { opacity: 0; transform: translateY(-4px); } }
@keyframes dm-fade { from { opacity: 0; } }
@keyframes sk-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes sk-call { 50% { box-shadow: 0 0 0 5px rgb(var(--ring-glow) / .45); } }
@keyframes sk-pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 1100px) {
  .demo { padding: 56px 40px 0; --dm-w: 320px; --dm-clear: 176px; }
  .demo-note { left: 40px; top: 14px; }
  .dm-app { margin-right: 160px; }
  .sk { right: 40px; top: 96px; }
  .fn { grid-template-columns: minmax(0, 1fr); }
  .fn-side { display: none; }
}
/* Stacked: the widget first (Go sits near the fold), the app it drives under it. */
@media (max-width: 960px) {
  .demo { display: flex; flex-direction: column; gap: 12px; padding: 16px; --dm-h: 404px; --dm-clear: 16px; scroll-margin-top: 72px; }
  .demo-note { position: static; width: fit-content; max-width: 100%; margin: 0; border-radius: 12px; }
  .sk { order: 1; }
  .dm-app { order: 2; margin-right: 0; border-radius: 12px; }
  .sk-log { max-height: 252px; }
  .ap-top { padding-left: 16px; gap: 16px; }
  .ap-body, .fn-main { padding-left: 16px; padding-top: 16px; }
  .sk { position: relative; right: auto; top: auto; width: auto; max-height: none; }
}
/* Phone: the app and the widget together fit one screen under the nav. */
@media (max-width: 600px) {
  .demo { --dm-h: 318px; }
  .sk-log { max-height: 252px; }
  .sk-hd { min-height: 44px; padding-top: 7px; padding-bottom: 7px; }
}
@media (max-width: 600px) {
  .ap-top nav, .fn-search { display: none; }
  .ta-ev { gap: 12px; }
  .ta-art { width: 48px; height: 48px; }
  .ta-bar { margin-top: 14px; gap: 6px; }
  .ap-sel, .ap-qty { height: 30px; font-size: 12.5px; }
  .ta-list li { grid-template-columns: minmax(0, 1fr) auto 36px 56px; }
  .ta-list .t { display: none; }
  .ta-form { grid-template-columns: 1fr; }
  .ta-form .ap-f, .ta-sum { margin-bottom: 8px; }
  .ta-sum { margin-top: 10px; padding: 9px 12px; }
  .fn-head .ap-h { font-size: 18px; }
  .fn-tabs { gap: 14px; }
}

/* small pieces */
.fn-stack { display: flex; margin-right: 4px; }
.fn-stack i { width: 24px; height: 24px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; background: #8a8a85; color: #fff; display: grid; place-items: center; font: 600 9px/1 var(--font-sans); font-style: normal; }
.fn-sh { margin: 0 0 18px; font-size: 14px; font-weight: 600; }
.ta-list li.ta-none { display: block; height: auto; padding: 14px 0; color: #8a8a85; }
.sk-chips-in { padding: 8px 0 4px; }
.sk-say p + p { margin-top: 6px; }
