/* Saif r2, local until approved. Layout only; every control is a DS component.
   DS-GAP: a slim progress bar (the tutorial checklist) has no DS component yet; kept to a 4px track. */

/* 9. row and toolbar menus size to their longest item */
.ds-ctxmenu { min-width: max-content; max-width: min(360px, calc(100vw - 16px)); }

/* 3 and 7. Architect screens keep their own aspect ratio */
.sr2-shot .tcb-shot__in { aspect-ratio: var(--ar); width: min(100cqw, calc(100cqh * var(--ar))); }

/* 6. success and "how it works" dialogs: 480 wide, 24 top and bottom, 20 sides, tinted footer strip */
.sr2-dlg { width: 480px; }
.sr2-dlg .tpl-head { padding: 24px 20px 0; border-bottom: 0; }
.sr2-dlg .tpl-body { display: flex; flex-direction: column; gap: 20px; padding: 20px 20px 24px; }
.sr2-dlg .tpl-foot { padding: 12px 20px; border-top: 0; background: var(--surface-overlay-0); border-radius: 0 0 var(--radius-12) var(--radius-12); }
.sr2-ok .tpl-body { padding: 24px 20px; gap: 16px; }
.sr2-ok .tpl-foot { justify-content: flex-end; }
.sr2-art { position: relative; display: block; width: 120px; height: 83.5px; margin: 0 auto -4px; }
.sr2-art .lp-ok__confetti { position: absolute; left: 0; top: 0; width: 120px; height: 83.5px; display: block; }
.sr2-art .lp-ok__check { position: absolute; left: 35.85px; top: 17.1px; width: 47.8px; height: 47.8px; display: block; }
.sr2-ok__t { margin: 0; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .sr2-art .lp-ok__check { animation: sr2-pop .42s cubic-bezier(.2, 1.4, .4, 1) both; }
  .sr2-art .lp-ok__confetti { animation: sr2-fade .48s ease-out .12s both; }
  @keyframes sr2-pop { from { opacity: 0; transform: scale(.6); } }
  @keyframes sr2-fade { from { opacity: 0; } }
}

/* 8. ask for a testimonial: one screen */
.sr2-ask__who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sr2-ask__bulk { margin: 0; display: flex; flex-direction: column; gap: 2px; font: var(--body-md); color: var(--type-primary); }
.sr2-ask__mail { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sr2-ask__edit { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.sr2-ask .sr1-prev__body { max-height: 200px; }
.sr2-ask .tpl-foot { justify-content: flex-start; align-items: center; flex-wrap: wrap; }
.sr2-tpl { margin-left: auto; }
@media (max-width: 599px) {
  .sr2-ask__who { grid-template-columns: 1fr; }
  .sr2-ask .tpl-foot > .btn-wp, .sr2-ask .tpl-foot > .btn-wpo { flex: 1 1 100%; }
  .sr2-tpl { margin: 0 auto; }
  .sr2-dlg { width: 90vw; }
}

/* 2. tutorial checklist */
.sr2-tut { max-width: 960px; }
.sr2-prog { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.sr2-prog__t { margin: 0; font: var(--body-md); color: var(--type-secondary); }
.sr2-bar { height: 4px; border-radius: var(--radius-full); background: var(--surface-overlay-1); overflow: hidden; }
.sr2-bar > span { display: block; height: 100%; width: 0; background: var(--green-100); border-radius: inherit; transition: width 300ms ease; }
.sr2-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.sr2-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 220px; align-items: start; gap: 16px; padding: 20px 24px; border-top: 1px solid var(--stroke-tertiary); }
.sr2-row:first-child { border-top: 0; }
.sr2-row.is-done { display: block; padding: 0; background: var(--green-10); }
.sr2-done { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 24px; border: 0; background: transparent; font: var(--body-md); color: var(--type-primary); text-align: left; cursor: pointer; transition: background-color 150ms ease; }
.sr2-done:hover { background: rgba(0, 0, 0, .03); }
.sr2-done:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: -2px; }
.sr2-row__t { margin: 0 0 4px; font: var(--heading-sm); color: var(--type-primary); }
.sr2-row__t:focus { outline: none; }
.sr2-row__m p { margin: 0 0 12px; font: var(--body-md); color: var(--type-secondary); }
.sr2-row__a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sr2-row__shot { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-8); border: 1px solid var(--stroke-tertiary); background: var(--surface-overlay-0); }
.sr2-row__shot > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
@media (prefers-reduced-motion: no-preference) { .sr2-row:not(.is-done) { animation: sr2-fade .24s ease-out both; } }
@media (prefers-reduced-motion: reduce) { .sr2-bar > span, .sr2-done { transition: none; } }
@media (max-width: 760px) { .sr2-row { grid-template-columns: 24px minmax(0, 1fr); padding: 16px; } .sr2-row__shot { grid-column: 2; } .sr2-done { padding: 14px 16px; } }
.sr2-dlg .ds-note.neutral { background: var(--surface-overlay-0); }
.sr2-row__a .btn-text:first-child { margin-left: -12px; }
