/* Two editable local views, with comfortable controls on both sides. */
.keep-together{white-space:nowrap}
.demo-tools{display:flex;align-items:center;gap:16px}.demo-reset{border:0;background:none;color:var(--muted);padding:8px 0;cursor:pointer}
.note-list{height:164px;min-height:164px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#bdcde3 transparent;padding-right:3px;margin-bottom:12px}
.note{padding:7px 7px 7px 10px;gap:8px;min-height:43px}.note-text{flex:1;min-width:0;overflow-wrap:anywhere}.note.new-note{background:#ffedce}
.note-delete{flex:none;display:grid;place-items:center;border:0;background:transparent;color:var(--muted);width:27px;height:27px;border-radius:5px;cursor:pointer}.note-delete:hover{color:var(--muted);background:#ffe2bd}.note-delete svg{width:14px;height:14px;stroke:currentColor;stroke-width:1.7;fill:none}
.note-composer{display:flex;align-items:center;gap:6px;border:1px solid #bfcee3;border-radius:6px;background:white;padding:4px 5px 4px 11px;min-height:43px}
.note-composer:focus-within{outline:2px solid var(--blue);outline-offset:2px}.note-composer input{min-width:0;width:100%;border:0;background:none;color:var(--ink);outline:none;padding:7px 0}:where([data-illustration]) .note-composer input{font:inherit;font-size:11px}.note-composer input::placeholder{color:var(--muted)}
.note-composer button{flex:none;width:32px;height:32px;border:1px solid #c4d6f1;border-radius:4px;background:#fff;color:var(--link);cursor:pointer}:where([data-illustration]) .note-composer button{font-size:21px;line-height:1}.note-composer button:hover{background:#dceaff}.note-empty{padding:35px 18px;text-align:center;color:var(--muted)}:where([data-illustration]) .note-empty{font-size:11px;line-height:1.8}
.sync-demo[data-stage=push] .download-path i{animation:transfer .8s infinite reverse}.sync-demo[data-stage=pull] .upload-path i{animation:transfer .8s infinite reverse}

/* Center the storage group against the compute card. Give the connecting lane
   its own space between the two, independently of icon and label heights. */
.advanced-story{background:#f2f6fc}
.advanced-story .story-heading>p:last-child{max-width:670px}
.advanced-diagram{
  --node-height:248px;
  --region-inset:85px;
  margin:52px auto 0;max-width:1110px;
  display:grid;grid-template-columns:210px 112px minmax(0,1fr);
  align-items:start;gap:14px;
}
.analytics-app,.analytics-compute,.analytics-bucket{
  height:var(--node-height);min-width:0;padding:20px 16px 18px;
  display:flex;flex-direction:column;align-items:center;text-align:center;
}
.analytics-app{
  margin-top:var(--region-inset);border:1px solid #bacfe9;border-radius:13px;
  background:#fffefa;box-shadow:0 5px 0 #d7e3f3;
}
.analytics-app h3,.analytics-compute h3,.analytics-bucket h3{margin:14px 0 0;
}
.analytics-app>p,.analytics-compute>p,.analytics-bucket>p{margin-top:6px;
}
.analytics-app .local-chip{
  margin-top:auto;display:block;width:100%;padding:7px 6px;border-radius:5px;
  background:#fff;color:var(--link);
}
.app-device-icons{position:relative;width:92px;height:72px;flex:none;margin:0}
.app-device-icons i{position:absolute;border:2px solid #4576b8;border-radius:5px;background:#eaf2ff}
.app-device-icons i:first-child{width:68px;height:44px;left:0;top:11px}
.app-device-icons i:first-child:after{content:'';position:absolute;width:28px;height:2px;background:#4576b8;bottom:-8px;left:18px}
.app-device-icons i:nth-child(2){width:31px;height:40px;right:0;bottom:8px;background:#fffefa}
.app-device-icons i:nth-child(2):after{content:'';position:absolute;height:2px;width:9px;left:9px;bottom:3px;background:#e58a23;border-radius:1px}
.query-link{
  height:var(--node-height);margin-top:var(--region-inset);
  display:flex;flex-direction:column;justify-content:center;gap:28px;padding:0;
}
.query-direction{color:var(--muted);text-align:center;white-space:nowrap}
.query-direction i{display:block;height:1px;background:#a9bdd9;margin-top:9px;position:relative}
.query-direction i:after{content:'';width:6px;height:6px;position:absolute;right:0;top:-3px;transform:rotate(45deg);border-top:1px solid #a9bdd9;border-right:1px solid #a9bdd9}
.query-direction.results{color:var(--link)}
.query-direction.results i{background:var(--blue)}
.query-direction.results i:after{right:auto;left:0;transform:rotate(-135deg);border-color:var(--blue)}
.analytics-region{
  border:1px solid #d3c6ac;background:#fff9ee;border-radius:17px;padding:22px 22px 24px;
  box-shadow:0 10px 30px -25px #97784366;
}
.region-heading{
  height:40px;display:flex;justify-content:space-between;align-items:flex-start;gap:15px;
  border-bottom:1px solid #e8dcc6;padding-bottom:16px;margin:0 0 22px;
}
.region-heading>span{color:var(--muted);display:flex;align-items:center;gap:7px}
.region-heading svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5}
.region-heading>small{color:var(--muted)}
.regional-nodes{display:grid;grid-template-columns:minmax(180px,1fr) minmax(120px,.85fr) 160px;gap:20px;align-items:center;text-align:center}
.analytics-compute{border:1px solid #e1bd85;background:linear-gradient(145deg,#fffdfa,#fff0d8);border-radius:11px;box-shadow:0 5px 0 #eddcc2}
.compute-art{display:flex;flex-direction:column;justify-content:center;gap:5px;width:51px;height:72px;flex:none;margin:0}
.compute-art i{height:13px;background:linear-gradient(90deg,#fcb04d,#ff8a00);border-radius:3px;box-shadow:0 2px 0 #dd7616}
.compute-art i:before{content:'';display:block;width:3px;height:3px;border-radius:50%;background:#fff6e9;margin:5px 7px}
.compute-engine{align-self:stretch;margin-top:auto;padding-top:10px;border-top:1px solid #ead5b5;color:var(--muted)}
.compute-engine b{display:block;color:var(--ink)}
.bandwidth-link{height:var(--node-height);position:relative;display:flex;align-items:center;justify-content:center}
.bandwidth-link>span{position:absolute;bottom:calc(50% + 34px);left:0;right:0;display:block;color:var(--muted)}
/* Several lanes of data make capacity legible without a numeric speed claim. */
.bandwidth-lanes{display:grid;gap:7px;width:100%;max-width:132px;padding:2px 0}
.bandwidth-lane{height:10px;position:relative;overflow:hidden}
.bandwidth-lane:before{content:'';position:absolute;top:5px;left:0;right:3px;height:1px;background:linear-gradient(90deg,#ebc99033,#e1bc7d)}
.bandwidth-lane:after{content:'';position:absolute;right:2px;top:2px;width:6px;height:6px;border-top:1px solid #d49b44;border-right:1px solid #d49b44;transform:rotate(45deg)}
.bandwidth-lane:nth-child(2){transform:scaleX(-1)}
.bandwidth-lane i{position:absolute;top:2px;left:24%;width:10px;height:6px;border-radius:2px;background:#ed9b30;box-shadow:inset 0 1px #ffcd81;animation:bandwidth-packet 3.4s linear infinite;animation-delay:-.8s}
.bandwidth-lane i:nth-child(2){left:64%;animation-delay:-2.5s}
.bandwidth-lane:nth-child(2) i{animation-delay:-1.4s}.bandwidth-lane:nth-child(2) i:nth-child(2){animation-delay:-3.1s}
.bandwidth-lane:nth-child(3) i{animation-delay:-.3s}.bandwidth-lane:nth-child(3) i:nth-child(2){animation-delay:-2s}
@keyframes bandwidth-packet{0%{left:-10px;opacity:0}12%,82%{opacity:1}100%{left:100%;opacity:0}}
.analytics-bucket{border:1px solid transparent;justify-content:center;padding-block:18px}
.analytics-bucket-art{display:block;flex:none;width:82px;height:72px;overflow:visible}
.analytics-bucket-art text{fill:white}
.advanced-diagram figcaption{grid-column:1/-1;text-align:center;color:var(--ink);margin-top:29px}
.advanced-support{text-align:center;max-width:760px;margin:25px auto 0}
.advanced-support a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
.advanced-scope{max-width:775px;margin:21px auto 0;text-align:center;color:var(--muted)}
@media(max-width:1100px){
  .advanced-diagram{grid-template-columns:180px 85px minmax(0,1fr);gap:12px}
  .analytics-region{padding-inline:16px}
  .regional-nodes{grid-template-columns:minmax(160px,1fr) minmax(96px,.8fr) 136px;gap:16px}
  .analytics-app,.analytics-compute,.analytics-bucket{padding-inline:10px}
  .analytics-app h3,.analytics-compute h3,.analytics-bucket h3{}
  .region-heading>small{display:none}
}
@media(max-width:900px){
  .advanced-diagram{grid-template-columns:minmax(0,1fr);max-width:620px;justify-items:center;gap:0}
  .analytics-app{width:240px;margin-top:0}
  .query-link{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;width:100%;max-width:220px;height:112px;align-items:center;margin:0}
  .query-direction{position:relative;min-width:0;padding:0}
  .query-direction i{position:absolute;width:1px;height:76px;right:0;top:-25px;margin:0}
  .query-direction i:after{top:auto;bottom:0;right:-3px;transform:rotate(135deg)}
  .query-direction.results i:after{left:-3px;top:0;bottom:auto;transform:rotate(-45deg)}
  .analytics-region{width:100%;padding-inline:22px}
  .regional-nodes{grid-template-columns:minmax(180px,1fr) minmax(100px,.8fr) 150px;gap:18px}
  .analytics-app h3,.analytics-compute h3,.analytics-bucket h3{}
  .region-heading>small{display:block}
  .advanced-diagram figcaption{margin-top:35px}
}
@media(max-width:600px){
  .demo-tools{gap:12px}.demo-reset{}
  .note-list{height:170px;min-height:170px}.note-delete{width:32px;height:32px}
  .note-composer input{}:where([data-illustration]) .note-composer input{font-size:12px}.sync-scene{padding:25px 18px}
  .advanced-diagram{margin-top:35px}
  .analytics-region{padding:20px 16px 26px}
  .region-heading{justify-content:center;margin-bottom:22px}
  .region-heading>small{display:none}
  .regional-nodes{grid-template-columns:minmax(0,1fr);justify-items:center;gap:0}
  .analytics-compute,.analytics-bucket{width:230px}
  .analytics-app h3,.analytics-compute h3,.analytics-bucket h3{}
  .analytics-app>p,.analytics-compute>p,.analytics-bucket>p{}
  .bandwidth-link{height:110px;width:230px;justify-content:center}
  .bandwidth-link>span{left:0;right:auto;width:82px;top:50%;bottom:auto;transform:translateY(-50%)}
  .bandwidth-lanes{width:80px;flex:none;transform:rotate(90deg)}
  .analytics-bucket{height:188px;padding-top:14px;padding-bottom:16px}
  .advanced-diagram figcaption{max-width:260px}
  .advanced-support{}.advanced-scope{max-width:320px}
  .demo-caption>span{white-space:normal}
}
@media(prefers-reduced-motion:reduce){.sync-demo .flow-track i{animation:none!important}.sync-demo[data-stage=push] .flow-track i,.sync-demo[data-stage=pull] .flow-track i{opacity:1}}
@media(prefers-reduced-motion:reduce){.bandwidth-lane i{animation:none}}
@media(max-width:480px){.advanced-story .story-heading h2{}}

.advanced-diagram>*,.regional-nodes>*{min-width:0;max-width:100%}
.advanced-diagram figcaption{width:100%}
