/* P+ product site: the built-in modules */
@keyframes sv-drag { 0%, 20% { transform: none; box-shadow: none; } 50%, 70% { transform: translate(62px, 58px) rotate(-3deg); box-shadow: 0 14px 26px -10px rgba(0, 0, 0, .7); } 100% { transform: none; } }
@keyframes sv-new { 0%, 45% { opacity: .25; outline-color: transparent; } 60%, 90% { opacity: 1; outline-color: var(--ember); } 100% { opacity: 1; outline-color: transparent; } }
@keyframes sv-msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.suite { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.suite-card { border-radius: 22px; border: 1px solid var(--ink-line); background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.suite-art { padding: 22px 22px 0; min-height: 268px; display: grid; align-items: center; background: radial-gradient(80% 90% at 50% 0, rgba(106, 165, 238, .08), transparent 70%); }
.suite-txt { padding: 22px 26px 28px; }
.suite-txt h3 { font-size: 1.5rem; margin: 0 0 8px; color: #fff; }
.suite-txt p { font-size: .98rem; color: #aeb6c8; margin: 0; }
.suite-txt ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.suite-txt li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: .92rem; color: #dfe4ee; }
.suite-txt li svg { width: 16px; height: 16px; color: var(--ember); margin-top: 4px; }
@media (max-width: 900px) { .suite { grid-template-columns: 1fr; } .suite-art { min-height: 0; padding-bottom: 6px; } }

.sv { font-size: 13px; color: #dfe4ee; }
.sv small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: #8d98b0; display: block; }
.sv b { font-weight: 600; color: #fff; }

/* document control */
.sv-doc { display: grid; gap: 8px; }
.sv-head b { font-size: 15px; display: block; margin-top: 2px; }
.sv-rev { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); opacity: .82; }
.sv-rev em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 12.5px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #c9cfdd; }
.sv-rev span small { letter-spacing: 0; font-family: inherit; font-size: 11.5px; color: #aeb6c8; }
.sv-rev i { font-style: normal; font-size: 11px; color: #aeb6c8; }
.sv-rev.on { opacity: 1; border-color: rgba(143, 199, 155, .55); background: rgba(143, 199, 155, .08); }
.sv-rev.on em { background: #8fc79b; color: #10141f; }
.sv-rev i.ok { color: #8fc79b; font-weight: 600; }
.sv-trail { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 11.5px; color: #aeb6c8; flex-wrap: wrap; }
.sv-trail .d { display: inline-flex; align-items: center; gap: 6px; }
.sv-trail .d::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #8fc79b; }
.sv-trail .d + .d::before { margin-inline-start: 0; box-shadow: -14px 0 0 -3px #8fc79b; margin-left: 14px; }
.sv-trail .q { margin-inline-start: auto; border: 1px solid rgba(106, 165, 238, .5); color: #9cc3f5; border-radius: 999px; padding: 3px 10px; }

/* correspondence */
.sv-corr { display: grid; gap: 10px; position: relative; }
.sv-corr::before { content: ''; position: absolute; top: 20px; bottom: 20px; left: 50%; width: 1px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .25) 0 4px, transparent 4px 9px); }
.sv-msg { width: 74%; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .1); background: #172038; position: relative; animation: sv-msg .7s both; }
.sv-msg b { display: block; font-size: 13.5px; margin: 3px 0 2px; }
.sv-msg span { font-size: 11.5px; color: #aeb6c8; }
.sv-msg.out { justify-self: end; border-color: rgba(240, 86, 46, .4); }
.sv-msg.out small { color: #ff9a7b; }
.sv-msg.in { justify-self: start; border-color: rgba(95, 199, 192, .45); animation-delay: .5s; }
.sv-msg.in small { color: #5fc7c0; }
.sv-msg.sig { animation-delay: 1s; }
.sv-qr { position: absolute; top: 10px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 5px; }

/* process designer */
.sv-flow svg { display: block; width: 100%; height: auto; }

/* form designer */
.sv-form { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.sv-pal { display: grid; gap: 6px; }
.sv-pal span { border: 1px solid rgba(255, 255, 255, .12); border-radius: 9px; padding: 5px 10px; font-size: 11.5px; background: rgba(255, 255, 255, .04); }
.sv-pal .drag { border-color: var(--ember); color: #fff; background: #26304d; animation: sv-drag 5s ease-in-out infinite; position: relative; z-index: 2; }
.sv-canvas { border: 1px dashed rgba(255, 255, 255, .2); border-radius: 14px; padding: 14px; display: grid; gap: 10px; background: rgba(255, 255, 255, .025); }
.sv-canvas .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sv-canvas label { display: grid; gap: 4px; }
.sv-canvas s { text-decoration: none; font-size: 10.5px; color: #8d98b0; }
.sv-canvas u { text-decoration: none; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; color: #eef1f7; background: rgba(12, 17, 29, .6); }
.sv-canvas .new { outline: 2px solid transparent; outline-offset: 4px; border-radius: 10px; animation: sv-new 5s ease-in-out infinite; }
[dir="rtl"] .sv-pal .drag { animation: none; }

@media (prefers-reduced-motion: reduce) { .sv-pal .drag, .sv-canvas .new, .sv-msg { animation: none !important; opacity: 1; } }

/* ---- review round 2: the four drawings read as a drawing register, not as app cards ---------------------------- */
/* document control: a ruled table of versions, the version as an outlined numeral, the current one in green */
.sv-doc { gap: 0; }
.sv-head { padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .34); }
.sv-rev, .sv-rev.on { border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); border-radius: 0; background: none; padding: 10px 0; grid-template-columns: 44px 1fr auto; }
.sv-rev em, .sv-rev.on em { width: auto; height: auto; border-radius: 0; background: none; display: block; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px #c3cadb; }
.sv-rev.on em { -webkit-text-stroke-color: #8fc79b; }
.sv-rev.on { border-bottom-color: rgba(143, 199, 155, .55); }
.sv-trail { margin-top: 12px; }
.sv-trail .q { border: 0; border-radius: 0; padding: 0 0 1px; border-bottom: 1px solid rgba(106, 165, 238, .6); }
/* correspondence: one thread, letters as ruled entries hung on the centre line by a leader */
.sv-msg, .sv-msg.out, .sv-msg.in { border: 0; border-top: 1px solid rgba(255, 255, 255, .3); border-radius: 0; background: none; padding: 9px 0 4px; }
.sv-msg.out { border-top-color: rgba(240, 86, 46, .7); }
.sv-msg.in { border-top-color: rgba(95, 199, 192, .7); }
.sv-msg::before { content: none; }
.sv-qr { top: 12px; inset-inline-end: 0; border-radius: 0; }
/* form designer: the palette as a ruled list of words, the form as fields on hairlines */
.sv-pal { gap: 0; border-top: 1px solid rgba(255, 255, 255, .3); }
.sv-pal span { border: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); border-radius: 0; background: none; padding: 6px 0; }
.sv-pal .drag { border-color: var(--ember); background: none; color: #fff; }
.sv-canvas { border-radius: 0; background: none; }
.sv-canvas u { border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); border-radius: 0; background: none; padding: 5px 0; }
.sv-canvas .new { border-radius: 0; }
