/* Desktop application window with callouts (includes/visuals/desktop.php) */
.dk {
  overflow: hidden;
  background: radial-gradient(ellipse 70% 60% at 15% 0%, rgba(150, 248, 120, .13), rgba(150, 248, 120, 0) 70%),
              radial-gradient(ellipse 60% 50% at 100% 100%, rgba(184, 225, 205, .1), rgba(184, 225, 205, 0) 70%),
              linear-gradient(160deg, var(--forest-2) 0%, var(--forest) 55%, #08200f 100%);
}
.dk-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dk-calls { list-style: none; margin: 0; padding: 0; display: contents; }
.dk-ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* window */
.dk-win { order: -1; min-width: 0; margin-bottom: 14px; overflow: hidden; border-radius: 10px; background: #fbfaf8; color: var(--ink); font-family: var(--font-sans); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .1); }
.dk-titlebar { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; background: #ebe7e1; }
.dk-dots { display: flex; gap: 7px; flex: none; }
.dk-dots i { width: 11px; height: 11px; border-radius: 50%; background: #cfcac2; }
.dk-title { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-ver { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--forest); font-size: 12px; font-weight: 600; line-height: 1.35; }
.dk-tools { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--white); border-bottom: 1px solid #e8e4de; }
.dk-path { display: flex; align-items: center; gap: 7px; flex: 1 1 auto; min-width: 0; height: 28px; padding: 0 10px; border-radius: 7px; background: #f4f2ef; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-path .dk-ico { width: 16px; height: 16px; flex: none; color: var(--green-text); }
.dk-btn { flex: none; display: grid; place-items: center; height: 28px; padding: 0 12px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; color: var(--forest); white-space: nowrap; }
.dk-btn--main { background: var(--forest); color: var(--green); box-shadow: none; }
.dk-main { display: grid; grid-template-columns: 176px minmax(0, 1fr); }
.dk-side { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; background: #f4f2ef; border-right: 1px solid #e8e4de; }
.dk-nav-i { display: flex; align-items: center; gap: 9px; height: 31px; padding: 0 10px; border-radius: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.dk-nav-i i { width: 12px; height: 12px; border-radius: 3px; background: #cfcac2; flex: none; }
.dk-nav-i.is-on { background: var(--white); color: var(--forest); font-weight: 600; box-shadow: 0 1px 3px rgba(12, 43, 21, .1); }
.dk-nav-i.is-on i { background: var(--forest); }
.dk-badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--green); color: var(--forest); font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center; }
.dk-table { display: block; min-width: 0; background: var(--white); }
.dk-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr) minmax(0, .5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; height: 35px; padding: 0 14px; border-bottom: 1px solid #efece7; font-size: 13px; color: var(--ink); }
.dk-row--head { height: 32px; background: #f8f6f3; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.dk-c { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-c--1 { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; color: var(--ink-2); }
.dk-c--3, .dk-c--4 { text-align: right; font-variant-numeric: tabular-nums; }
.dk-st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.dk-st--ok { background: var(--mint); color: var(--forest); }
.dk-st--wait { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.dk-st--new { background: var(--green); color: var(--forest); }
.dk-row--new { background: #f3fdef; box-shadow: inset 3px 0 0 var(--green-2); }
.dk-count { display: block; padding: 9px 14px; font-size: 12px; color: var(--ink-2); }
.dk-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 30px; padding: 0 12px; background: #ebe7e1; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.dk-sync { display: grid; min-width: 0; }
.dk-sync > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dk-sync-a { opacity: 0; }
.dk-sync-b { color: var(--green-text); font-weight: 600; }
.dk-devs { display: flex; align-items: center; gap: 7px; flex: none; }
.dk-led { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); flex: none; box-shadow: 0 0 0 2px rgba(111, 226, 79, .25); }
.dk-led--off { background: #7d8a80; box-shadow: none; }

/* callouts */
.dk-call { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 3px 12px; align-content: start; padding: 14px 16px 15px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(150, 248, 120, .22); }
.dk-call .dk-ico { grid-row: span 2; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: rgba(150, 248, 120, .14); color: var(--green); }
.dk-call-t { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--white); }
.dk-call-d { font-size: 13.5px; line-height: 1.45; color: var(--sage); }

@media (min-width: 640px) { .dk-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dk-win { grid-column: 1 / -1; } }
@media (min-width: 900px) and (max-width: 1239px) { .dk-stage { grid-template-columns: repeat(6, minmax(0, 1fr)); } .dk-call { grid-column: span 2; } .dk-call--1, .dk-call--2 { grid-column: span 3; } }

/* wide: callouts on both sides, with leader lines to the window */
@media (min-width: 1240px) {
  .dk-stage { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 220px); gap: 40px; align-items: stretch; }
  /* the window stretches to the height of the callout columns, so every leader line lands on it */
  .dk-win { order: 0; grid-column: auto; margin: 0; display: flex; flex-direction: column; }
  .dk-main { flex: 1 1 auto; }
  .dk-table { display: flex; flex-direction: column; }
  .dk-count { margin-top: auto; border-top: 1px solid #efece7; }
  .dk-calls { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 0; }
  .dk-calls--l { padding: 46px 0 70px; }
  .dk-call { grid-template-columns: minmax(0, 1fr); padding: 14px 15px; }
  .dk-call .dk-ico { grid-row: auto; width: 34px; height: 34px; padding: 7px; margin-bottom: 6px; }
  .dk-call::after { content: ""; position: absolute; top: 31px; width: 40px; border-top: 1.5px dashed var(--green); }
  .dk-call::before { content: ""; position: absolute; top: 27px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(150, 248, 120, .25); z-index: 1; }
  .dk-call--l::after { left: 100%; transform-origin: left; }
  .dk-call--l::before { left: calc(100% + 44px); }
  .dk-call--r::after { right: 100%; transform-origin: right; }
  .dk-call--r::before { right: calc(100% + 44px); }
}

@media (max-width: 639px) {
  .dk-main { grid-template-columns: minmax(0, 1fr); }
  .dk-side { display: none; }
  .dk-row { grid-template-columns: minmax(0, 1fr) minmax(0, .5fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px; padding: 0 10px; font-size: 12.5px; }
  .dk-c--2 { display: none; }
  .dk-tools .dk-btn:not(.dk-btn--main) { display: none; }
  .dk-devs { display: none; }
  .dk-ver { display: none; }
}

/* animation: window, then callouts and their leader lines; the new row flashes and the status bar syncs in a loop */
.dk-call--2 { --dk-i: 1; } .dk-call--3 { --dk-i: 2; } .dk-call--4 { --dk-i: 3; } .dk-call--5 { --dk-i: 4; }
.js .vz-figure .dk-win { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .7s ease .1s, transform .9s cubic-bezier(.2, .7, .2, 1) .1s; }
.js .vz-figure .dk-call { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(.7s + var(--dk-i, 0) * .14s); }
.js .vz-figure .dk-call::after, .js .vz-figure .dk-call::before { opacity: 0; transition: opacity .4s ease; transition-delay: calc(1.1s + var(--dk-i, 0) * .14s); }
.js .vz-figure.is-visible .dk-win, .js .vz-figure.is-visible .dk-call { opacity: 1; transform: none; }
.js .vz-figure.is-visible .dk-call::after, .js .vz-figure.is-visible .dk-call::before { opacity: 1; }
.js .vz-figure.is-visible .dk-sync-a { animation: dk-a 9s ease 1.4s infinite; }
.js .vz-figure.is-visible .dk-sync-b { animation: dk-b 9s ease 1.4s infinite; }
.js .vz-figure.is-visible .dk-row--new { animation: dk-flash 9s ease 1.4s infinite; }
.js .vz-figure.is-visible .dk-call::before { animation: dk-ping 2.6s ease-out 2.2s infinite; }
@keyframes dk-a { 0% { opacity: 0; } 4%, 52% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes dk-b { 0%, 52% { opacity: 0; } 58%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dk-flash { 0%, 6% { background: #f3fdef; } 10% { background: var(--mint); } 30%, 100% { background: #f3fdef; } }
@keyframes dk-ping { 0% { box-shadow: 0 0 0 0 rgba(150, 248, 120, .5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(150, 248, 120, 0); } }
