/*
 * Copyright (c) 2026 Anchor Technologies, Inc. All rights reserved.
 *
 * This source code is the proprietary and confidential property of Anchor
 * Technologies, Inc. Unauthorized copying, distribution, modification, or use
 * of this file, in whole or in part, via any medium, is strictly prohibited
 * without the express prior written permission of Anchor Technologies, Inc.
 */

/* The guardrail sections: one band per guardrail, copy on one side and a
   live picture on the other (scripts/enterprise.js). /enterprise shows all
   of them; the landing page shows four of the same sections, with the same
   markup, so the two can never drift apart. */

/* Each picture's markup is already a finished frame, so the page reads
   with JS off. Governance and consent wait for the reader to click. */

.ent-band { box-shadow: inset 0 1px 0 var(--highlight); }
.ent-center { box-shadow: inset 1px 0 0 var(--highlight), inset -1px 0 0 var(--highlight); padding: var(--pad-9) var(--pad-6); box-sizing: border-box; }
.ent-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(var(--pad-6), 6vw, 96px); align-items: center; }
.ent-sec--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ent-sec--flip .ent-copy { order: 2; }
.ent-title { font-family: var(--font-display); font-size: var(--font-8); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 var(--pad-4); text-wrap: balance; }
.ent-body { font-size: var(--font-5); line-height: 1.45; color: var(--font-color-light); margin: 0 0 var(--pad-5); }
.ent-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--pad-2); }
.ent-points li { position: relative; padding-left: 26px; font-size: var(--font-4); line-height: 1.45; }
.ent-points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-jade-transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%2312a594' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.ent-more { display: inline-block; margin-top: var(--pad-5); font-size: var(--font-4); font-weight: 500; color: var(--font-color); text-decoration: none; border-bottom: 1px solid var(--outline-color); transition: border-color 0.2s; }
.ent-more:hover { color: var(--font-color); border-color: var(--font-color); }
.ent-visual { position: relative; min-width: 0; height: 440px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); overflow: hidden; font-size: 13px; }
.ent-line { height: 7px; border-radius: 4px; background: var(--highlight-light); }
.ent-node__logo { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; color: #fff; font-size: 11px; font-weight: 700; }
.ent-av { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; font-size: 10px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }

/* Lock-in: agents in a ring around one file; each takes a turn. */
.ent-lock { position: absolute; inset: 0; display: grid; place-items: center; background: #fff; }
.ent-lock__ring { position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px dashed var(--highlight-dark); }
.ent-lock__file { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--pad-4) var(--pad-5); border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); width: 196px; box-sizing: border-box; text-align: center; }
.ent-lock__file img { width: 32px; height: 32px; }
.ent-lock__file b { max-width: 100%; font-size: 15px; font-weight: 500; text-wrap: balance; overflow-wrap: anywhere; }
.ent-lock__caption { font-size: 11px; color: var(--font-color-light); }
.ent-agent { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); font-weight: 500; white-space: nowrap; transform: translate(-50%, -50%) rotate(var(--a)) translate(170px) rotate(calc(-1 * var(--a))); z-index: 2; transition: box-shadow 0.3s, transform 0.3s; }
.ent-agent.is-on { box-shadow: 0 0 0 1.5px var(--font-color); transform: translate(-50%, -50%) rotate(var(--a)) translate(170px) rotate(calc(-1 * var(--a))) scale(1.08); }
.ent-agent--next { border: 1px dashed var(--outline-color); box-shadow: none; color: var(--font-color-light); background: #fff; }
.ent-agent--next.is-on { opacity: 1; color: var(--font-color); background: #fff; box-shadow: 0 0 0 1.5px var(--color-jade); border-color: transparent; }

/* AI budget: the seats you already pay for, and one Anchor license. */
.ent-budget { position: absolute; inset: 0; padding: var(--pad-6); display: flex; flex-direction: column; gap: var(--pad-4); justify-content: center; }
.ent-budget__head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--font-color-light); }
.ent-budget__head b { color: var(--font-color); }
.ent-budget__seats { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; }
.ent-budget__seats i { aspect-ratio: 1; border-radius: 3px; background: var(--color-orange); opacity: 0.8; }
.ent-budget__seats i:nth-child(n + 21) { background: var(--color-jade); }
.ent-budget__seats i:nth-child(n + 39) { background: var(--color-blue); }
.ent-budget__seats i:nth-child(n + 51) { background: var(--color-violet); }
.ent-budget.is-live .ent-budget__seats i { animation: ent-seat 0.4s ease-out backwards; animation-delay: calc(var(--n) * 18ms); }
@keyframes ent-seat { from { opacity: 0; transform: scale(0.4); } }
.ent-budget__legend { display: flex; gap: var(--pad-4); flex-wrap: wrap; font-size: 11px; color: var(--font-color-light); }
.ent-budget__legend span { display: inline-flex; align-items: center; gap: 5px; }
.ent-budget__legend i { width: 9px; height: 9px; border-radius: 2px; }
.ent-budget__anchor { display: flex; align-items: center; gap: var(--pad-3); margin-top: var(--pad-2); padding: var(--pad-4); border-radius: 4px; background: var(--color-jade-transparent); box-shadow: inset 0 0 0 1px var(--color-jade); }
.ent-budget__anchor img { width: 28px; height: 28px; }
.ent-budget__anchor b { display: block; font-size: 15px; font-weight: 600; }
.ent-budget__anchor span { color: var(--font-color-light); }
.ent-budget.is-live .ent-budget__anchor { animation: ent-rise 0.6s ease-out 1.3s backwards; }
@keyframes ent-rise { from { opacity: 0; transform: translateY(12px); } }

/* Private cloud: one wall around everything Anchor stores; data moves only inside it. */
.ent-cloud { position: absolute; inset: 0; padding: var(--pad-6) var(--pad-5) var(--pad-4); display: flex; flex-direction: column; gap: var(--pad-4); background: #fff; }
.ent-cloud__wall { position: relative; flex: 1; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1.5px var(--color-jade); }
.ent-cloud__label { position: absolute; z-index: 3; top: -13px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 4px 12px 4px 9px; border-radius: 4px; background: var(--color-jade); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ent-cloud__label svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ent-cloud__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ent-cloud__wires line { stroke: var(--color-jade); stroke-opacity: 0.35; stroke-width: 1.5; stroke-dasharray: 4 5; }
.ent-cloud__hub, .ent-cloud__node { position: absolute; z-index: 2; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.ent-cloud__hub { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); }
.ent-cloud__hub img { width: 34px; height: 34px; }
.ent-cloud__hub::after { content: ""; position: absolute; inset: -1px; border-radius: 6px; box-shadow: 0 0 0 0 var(--color-jade);  }
@keyframes ent-hub { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-jade) 35%, transparent); } to { box-shadow: 0 0 0 16px transparent; } }
.ent-cloud__node { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 9px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); white-space: nowrap; }
.ent-cloud__node b { display: block; font-size: 13px; font-weight: 600; }
.ent-cloud__node > div > span { display: block; font-size: 11px; color: var(--font-color-light); }
.ent-cloud__ico { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 4px; background: var(--color-jade-transparent); color: var(--color-jade); }
.ent-cloud__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ent-cloud__node--art { padding: 12px 14px; }
.ent-cloud__node--art b { font-size: 15px; margin-bottom: 6px; }
.ent-cloud__node > div > .ent-cloud__files { display: flex; gap: 5px; }
.ent-cloud__files img { width: 26px; height: 26px; }
.ent-packet { position: absolute; z-index: 1; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--color-jade); box-shadow: 0 0 0 3px var(--color-jade-transparent); left: 50%; top: 50%; opacity: 0; animation: ent-packet 2.8s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ent-packet {
  0% { left: 50%; top: 50%; opacity: 0; }
  12% { opacity: 1; }
  50% { left: var(--x); top: var(--y); opacity: 1; }
  88% { opacity: 1; }
  100% { left: 50%; top: 50%; opacity: 0; }
}
.ent-cloud__out { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--font-color); }
.ent-cloud__out b { color: var(--color-jade); font-weight: 700; font-variant-numeric: tabular-nums; }
.ent-cloud__out svg { width: 16px; height: 16px; fill: none; stroke: var(--color-jade); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Governance: a file and everything it depends on, drawn on open. */
.ent-gov { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg-color); }
@keyframes ent-blink { 50% { opacity: 0.3; } }
.ent-gov__stage { position: relative; flex: 1; padding: var(--pad-5) var(--pad-4); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 52px; }
.ent-gov__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.ent-line { fill: none; stroke: var(--outline-color); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.7; }
.ent-gov__stage.is-open .ent-line--1 { animation: ent-draw 0.6s ease-out forwards; }
@keyframes ent-draw { to { stroke-dashoffset: 0; } }
.ent-root { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--pad-3); padding: var(--pad-3) var(--pad-4); border: 0; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); font: inherit; text-align: left; color: var(--font-color); }
.ent-root img { width: 30px; height: 30px; }
.ent-root b { display: block; font-size: 15px; font-weight: 600; }
.ent-root > div > span { font-size: 11px; color: var(--font-color-light); }
.ent-root { opacity: 0; transform: translateY(10px) scale(0.97); transition: opacity 0.45s ease-out, transform 0.45s ease-out; }
.ent-gov__stage.is-in .ent-root { opacity: 1; transform: none; }
.ent-root__stats { display: flex; align-items: center; gap: var(--pad-3); margin-left: var(--pad-3); padding-left: var(--pad-4); box-shadow: inset 1px 0 0 var(--highlight); opacity: 0; transition: opacity 0.5s ease-out; }
.ent-gov__stage.is-stats .ent-root__stats { opacity: 1; }
.ent-root__stats span { font-size: 11px; color: var(--font-color-light); white-space: nowrap; }
.ent-root__stats strong { display: block; font-size: 16px; font-weight: 600; color: var(--font-color); font-variant-numeric: tabular-nums; }
.ent-root__spark { width: 60px; height: 20px; }
.ent-root__spark path { fill: none; stroke: var(--color-jade); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.ent-gov__stage.is-stats .ent-root__spark path { transition: stroke-dashoffset 0.9s ease-out 0.2s; stroke-dashoffset: 0; }
.ent-cols { position: relative; z-index: 1; display: flex; justify-content: center; gap: var(--pad-3); width: 100%; }
.ent-col { flex: 0 1 170px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 30px; }
.ent-node { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); min-width: 0; }
.ent-node img { flex-shrink: 0; }
.ent-node > div { min-width: 0; }
.ent-node b { display: block; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-node > div > span { display: block; font-size: 10px; color: var(--font-color-light); }
.ent-node em { position: absolute; left: 50%; top: -16px; transform: translateX(-50%); max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-style: normal; font-size: 9.5px; color: var(--font-color-light); white-space: nowrap; background: var(--bg-color); padding: 0 4px; border-radius: 3px; box-sizing: border-box; }
.ent-l1 { opacity: 0; transform: translateY(-8px); transition: opacity 0.4s ease-out, transform 0.4s ease-out; }
.ent-gov__stage.is-open .ent-l1 { opacity: 1; transform: none; transition-delay: 0.25s; }
/* Holds its place from the start, so the layout and the lines drawn to
   it do not move when the new link appears. */

/* Consent: open the app, see what it asks for, allow it. */
.ent-consent { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: var(--pad-4); background: var(--bg-color); }
.ent-consent__card { width: min(400px, 100%); box-sizing: border-box; padding: var(--pad-5); border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); }
.ent-consent__who { display: flex; align-items: center; gap: 10px; margin-bottom: var(--pad-4); }
.ent-consent__who img { width: 30px; height: 30px; }
.ent-consent__who b { display: block; font-size: 14px; font-weight: 600; }
.ent-consent__who span { font-size: 12px; color: var(--font-color-light); }
.ent-consent__row { display: flex; align-items: center; gap: 10px; padding: 9px 0; box-shadow: inset 0 1px 0 var(--highlight); }
.ent-consent__row > img, .ent-consent__row > .ent-node__logo { width: 20px; height: 20px; flex-shrink: 0; }
.ent-consent__row div { min-width: 0; flex: 1; }
.ent-consent__row b { display: block; font-size: 12px; font-weight: 600; }
.ent-consent__row div span { display: block; font-size: 11px; color: var(--font-color-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent-consent__row em { flex-shrink: 0; font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.ent-consent__tool { padding: 5px 0 5px 30px; box-shadow: none; }
.ent-consent__tool code { flex: 1; font-family: var(--font-mono); font-size: 11px; }
.ent-consent .is-read { color: var(--color-jade); background: var(--color-jade-transparent); }
.ent-consent .is-write { color: var(--color-orange); background: var(--color-orange-transparent); }
.ent-consent__foot { display: flex; justify-content: flex-end; margin-top: var(--pad-4); }
.ent-consent__agree { height: 34px; padding: 0 var(--pad-4); border-radius: 4px; display: inline-flex; align-items: center; background: var(--font-color); color: var(--font-color-inverse); font-size: 12px; font-weight: 600; }
.ent-consent.is-live .ent-consent__row { animation: ent-rise 0.45s ease-out backwards; animation-delay: calc(var(--i) * 0.12s + 0.15s); }
.ent-consent.is-live .ent-consent__agree { animation: ent-call-dark 2.4s ease-out 1.2s infinite; }
@keyframes ent-call-dark { 0% { box-shadow: 0 0 0 0 rgba(26, 21, 35, 0.3); } 70%, 100% { box-shadow: 0 0 0 9px rgba(26, 21, 35, 0); } }

/* Sharing: a share dialog where an outside guest gets view access. */
.ent-share { position: absolute; inset: var(--pad-6); padding: var(--pad-5); border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); display: flex; flex-direction: column; gap: var(--pad-3); }
.ent-visual:has(.ent-share) { background: var(--bg-color); }
.ent-share__head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ent-share__head b { font-weight: 600; }
.ent-share__invite { display: flex; gap: 6px; align-items: center; }
.ent-share__input { flex: 1; min-width: 0; height: 34px; display: flex; align-items: center; padding: 0 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--highlight-dark); color: var(--font-color); overflow: hidden; white-space: nowrap; }
.ent-share__input span:empty::before { content: "Add people or emails"; color: var(--font-color-light); }
.ent-share__input i { width: 1.5px; height: 15px; margin-left: 1px; background: var(--font-color); animation: ent-blink 1s steps(1) infinite; }
.ent-share__role { font-size: 12px; color: var(--font-color-light); padding: 0 6px; }
.ent-share__btn { height: 34px; display: grid; place-items: center; padding: 0 14px; border-radius: 4px; background: var(--font-color); color: #fff; font-size: 12px; font-weight: 600; transition: transform 0.15s; }
.ent-share.is-sending .ent-share__btn { transform: scale(0.94); }
.ent-share__row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ent-share__row b { display: block; font-size: 13px; font-weight: 600; }
.ent-share__row span { font-size: 11px; color: var(--font-color-light); }
.ent-share__row em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--font-color-light); }
.ent-share__row--guest { opacity: 0; transform: translateY(-6px); transition: opacity 0.35s, transform 0.35s; }
.ent-share__row--guest.is-in { opacity: 1; transform: none; }
.ent-share__row--guest span { color: var(--color-orange); }
.ent-share__link { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: var(--pad-3); border-radius: 4px; background: var(--highlight-transparent); font-size: 12px; }
.ent-share__lock { width: 14px; height: 14px; background: var(--font-color); -webkit-mask: url(/_site/v-1794345112/icons/lock.svg) center / contain no-repeat; mask: url(/_site/v-1794345112/icons/lock.svg) center / contain no-repeat; }

/* Security: sandboxed apps; a cross-app and an outbound request are
   blocked, an allowed API call goes through. */
.ent-sbx { position: absolute; inset: 0; background: var(--bg-color); }
.ent-sbx__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ent-sbx__wires line { stroke-width: 1.5; }
.ent-sbx__wires .is-ok { stroke: var(--color-jade); }
.ent-sbx__wires .is-try { stroke: var(--outline-color); stroke-opacity: 0.6; }
.ent-sbx__wires .is-no { stroke: var(--outline-color); stroke-opacity: 0.5; stroke-dasharray: 3 5; }
.ent-sbx__item { position: absolute; z-index: 1; left: 6%; width: 46%; top: var(--y); transform: translateY(-50%); box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--font-color), var(--shadow-3); min-width: 0; }
.ent-sbx__item img { flex: none; }
.ent-sbx__item > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ent-sbx__item b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-sbx__item small { font-size: 10px; color: var(--font-color-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-sbx__lock { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px 3px 6px; border-radius: 4px; background: var(--font-color); color: #fff; font-size: 10px; font-weight: 600; }
.ent-sbx__lock svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ent-sbx__dest { position: absolute; z-index: 1; left: 64%; right: 5%; top: var(--y); transform: translateY(-50%); display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight), var(--shadow-3); min-width: 0; }
.ent-sbx__dest > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ent-sbx__mark { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--highlight-transparent); box-shadow: inset 0 0 0 1px var(--highlight-dark); }
.ent-sbx__mark svg { width: 10px; height: 10px; fill: none; stroke: var(--font-color-light); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ent-sbx__dest.is-ok .ent-sbx__mark { background: var(--color-jade); box-shadow: none; }
.ent-sbx__dest.is-ok .ent-sbx__mark svg { stroke: #fff; }
.ent-sbx__stop { position: absolute; z-index: 2; left: 57%; top: var(--y); width: 2px; height: 14px; margin-top: -7px; border-radius: 1px; background: var(--font-color-light); }
.ent-sbx__dest b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-sbx__dest small { font-size: 10px; color: var(--font-color-light); }
.ent-sbx__dest.is-ok { box-shadow: inset 0 0 0 1.5px var(--color-jade), var(--shadow-3); }
.ent-sbx__dest.is-ok small { color: var(--color-jade); font-weight: 600; }
.ent-sbx__dest.is-no b { color: var(--font-color-light); }
.ent-sbx__req { position: absolute; z-index: 2; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; top: var(--y); left: 52%; opacity: 0; }
.ent-sbx__req.is-ok { background: var(--color-jade); animation: ent-req-ok 3.6s ease-in-out infinite; animation-delay: var(--d); }
.ent-sbx__req.is-no { background: var(--font-color-light); animation: ent-req-no 3.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes ent-req-ok { 0% { left: 52%; opacity: 0; } 10% { opacity: 1; } 55% { left: 64%; opacity: 1; } 62%, 100% { left: 64%; opacity: 0; } }
@keyframes ent-req-no { 0% { left: 52%; opacity: 0; transform: none; } 10% { opacity: 1; } 32% { left: 56%; opacity: 1; transform: none; } 48%, 100% { left: 56%; opacity: 0; transform: scale(2.4); } }

/* Folders: access set on a folder flows down to what is inside. */
.ent-fold { position: absolute; inset: var(--pad-6); padding: var(--pad-4); border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); display: flex; flex-direction: column; gap: 4px; }
.ent-visual:has(.ent-fold) { background: var(--bg-color); }
.ent-fold__row { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 calc(10px + var(--d) * 22px); border-radius: 4px; }
.ent-fold__row b { font-weight: 500; font-size: 13px; }
.ent-fold__ico { width: 18px; height: 18px; background: var(--font-color); -webkit-mask: url(/_site/v-1794345112/icons/folder.svg) center / contain no-repeat; mask: url(/_site/v-1794345112/icons/folder.svg) center / contain no-repeat; }
.ent-chip { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 4px; color: var(--color-jade); background: var(--color-jade-transparent); }
.ent-chip--lock { color: var(--font-color); background: var(--highlight-transparent); box-shadow: inset 0 0 0 1px var(--highlight); }
.ent-fold.is-live .is-src .ent-chip { animation: ent-rise 0.4s ease-out backwards; }
.ent-fold.is-live .is-inh .ent-chip { animation: ent-rise 0.4s ease-out 0.7s backwards; }
.ent-fold.is-live .is-src2 .ent-chip { animation-delay: 1.4s; }
.ent-fold.is-live .is-inh2 .ent-chip { animation: ent-rise 0.4s ease-out 2.1s backwards; }
.ent-fold__row.is-src { background: var(--highlight-transparent); }

/* Versions: a document and its history; one version is restored. */
.ent-ver { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) 210px; background: var(--bg-color); }
.ent-ver__doc { margin: var(--pad-6) 0 var(--pad-6) var(--pad-6); padding: var(--pad-5); border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); display: flex; flex-direction: column; gap: var(--pad-3); }
.ent-ver__doc b { font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.ent-ver__fig { padding: var(--pad-3); border-radius: 4px; background: var(--color-blue-transparent); }
.ent-ver__fig span { display: block; font-size: 11px; color: var(--font-color-light); }
.ent-ver__fig strong { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ent-ver__list { padding: var(--pad-6) var(--pad-4); display: flex; flex-direction: column; gap: 4px; }
.ent-ver__title { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--font-color-light); margin-bottom: 4px; }
.ent-ver__row { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; padding: 8px 10px; border-radius: 4px; transition: background 0.25s; }
.ent-ver__row b { font-family: var(--font-mono); font-size: 11px; }
.ent-ver__row span { font-size: 12px; font-weight: 500; }
.ent-ver__row time { grid-column: 2; font-size: 10px; color: var(--font-color-light); }
.ent-ver__row.is-on { background: #fff; box-shadow: inset 0 0 0 1px var(--highlight); }
.ent-ver__row.is-restored { box-shadow: inset 0 0 0 1.5px var(--color-jade); }
.ent-ver__row.is-restored time::after { content: " · Restored"; color: var(--color-jade); font-weight: 600; }
.ent-ver__backup { margin-top: auto; font-size: 11px; color: var(--color-jade); font-weight: 600; }



@media (prefers-reduced-motion: reduce) {
  .ent-visual *, .ent-visual *::before, .ent-visual *::after { animation: none !important; transition: none !important; }
  .ent-packet, .ent-sbx__req { display: none; }
}
@media (max-width: 960px) {
  .ent-sec, .ent-sec--flip { grid-template-columns: minmax(0, 1fr); gap: var(--pad-6); }
  .ent-sec--flip .ent-copy { order: 0; }
}
@media (max-width: 640px) {
  .ent-center { padding: var(--pad-8) var(--pad-5) !important; }
  .ent-title { font-size: var(--font-7); }
  .ent-body { font-size: var(--font-4); }
  .ent-visual { height: 420px; }
  .ent-lock__ring { width: 230px; height: 230px; }
  .ent-agent { padding: 4px 9px 4px 6px; font-size: 11px; transform: translate(-50%, -50%) rotate(var(--a)) translate(118px) rotate(calc(-1 * var(--a))); }
  .ent-agent.is-on { transform: translate(-50%, -50%) rotate(var(--a)) translate(118px) rotate(calc(-1 * var(--a))) scale(1.06); }
  .ent-lock__file { width: 136px; padding: var(--pad-3); }
  .ent-cloud { padding: var(--pad-6) var(--pad-4) var(--pad-3); }
  .ent-cloud__node { flex-direction: column; gap: 4px; padding: 8px; text-align: center; }
  .ent-cloud__node > div > span:not(.ent-cloud__files) { display: none; }
  .ent-cloud__files img { width: 18px; height: 18px; }
  .ent-cloud__node--art b { font-size: 11px; margin-bottom: 2px; }
  .ent-cloud__node b { font-size: 11px; }
  .ent-cloud__hub { width: 52px; height: 52px; }
  .ent-cloud__hub img { width: 28px; height: 28px; }
  .ent-lock__file b { font-size: 13px; }
  .ent-sbx__mark, .ent-sbx__lock span { display: none; }
  .ent-sbx__item { padding: 10px; gap: 8px; }
  .ent-sbx__dest { padding: 8px 9px; }
  .ent-cols { gap: 6px; }
  .ent-col { flex-basis: 25%; gap: 34px; }
  .ent-node { flex-direction: column; text-align: center; padding: 6px 4px; gap: 3px; }
  .ent-node > div > span, .ent-node em { display: none; }
  .ent-node b { font-size: 10px; white-space: normal; }
  .ent-root > div:not(.ent-root__stats) > span, .ent-root__spark { display: none; }
  /* The name and the usage do not fit side by side on a phone, and the
     usage was squeezed to nothing; it goes on its own line under the name. */
  .ent-root { flex-wrap: wrap; row-gap: var(--pad-2); }
  .ent-root__stats { flex-basis: 100%; margin-left: 0; padding: var(--pad-2) 0 0; gap: var(--pad-5); box-shadow: inset 0 1px 0 var(--highlight); }
  .ent-ver { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  /* Stacked, the document and its history need more than 420px, or the
     version that gets restored is cut off at the bottom. */
  .ent-visual:has(.ent-ver) { height: 470px; }
  .ent-ver__doc { margin: var(--pad-4) var(--pad-4) 0; }
  .ent-ver__list { padding: var(--pad-3) var(--pad-4); }
  .ent-ver__row:nth-of-type(n + 4) { display: none; }
  .ent-share, .ent-fold { inset: var(--pad-3); }
  .ent-budget { padding: var(--pad-4); }
  .ent-budget__seats { grid-template-columns: repeat(12, 1fr); }
  .ent-budget__seats i:nth-child(n + 49) { display: none; }
  .ent-fold { padding: var(--pad-3) var(--pad-2); }
  .ent-fold__row { gap: 6px; padding: 0 6px 0 calc(8px + var(--d) * 12px); }
  .ent-fold__row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ent-chip { white-space: nowrap; font-size: 10px; padding: 3px 6px; }
}
/* The ring and its agents need ~330px; on the smallest phones the picture
   is narrower, so the whole ring is drawn smaller rather than cut off. */
@media (max-width: 374px) {
  .ent-lock { transform: scale(0.82); }
}
