/* INVITE-POPUP: the invitation dialog. The colours are the house's own (the site's --color-* values). Author: سینا رستمی */
html { --ivp-ready: 1; }
html.ivp-lock, html.ivp-lock body { overflow: hidden; }

.ivp { --p: var(--color-paper, #f4eee2); --ink: var(--color-ink, #2b251f); --mut: var(--color-muted, #5f5649); --rule: var(--color-rule, #dfd3bd); --acc: var(--color-accent, #8a4b14); --on: var(--color-on-accent, #fff); --card: #fffdf9;
  box-sizing: border-box; position: fixed; inset: 0; margin: auto; padding: 0; border: 0; width: min(66rem, calc(100vw - 2rem)); max-width: none; height: calc(100vh - 2rem); height: min(52rem, calc(100dvh - 2rem)); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem);
  overflow: hidden; border-radius: 1.5rem; background: var(--p); color: var(--ink); font-size: 1rem; line-height: 1.55; text-align: start; box-shadow: 0 2rem 5rem rgba(0, 0, 0, .35); }
.ivp[open] { display: flex; animation: ivp-in .26s cubic-bezier(.2, .8, .25, 1); }
.ivp::backdrop { background: rgba(22, 16, 10, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ivp *, .ivp *::before, .ivp *::after { box-sizing: border-box; }
.ivp [hidden] { display: none !important; }
.ivp h2, .ivp h3, .ivp p, .ivp fieldset, .ivp legend { margin: 0; padding: 0; border: 0; letter-spacing: normal; text-transform: none; max-width: none; }
.ivp :focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.ivp-box { display: flex; flex: 1; flex-direction: column; width: 100%; min-height: 0; }   /* one fixed height: nothing moves under the pointer while the code and the card arrive */

.ivp-head { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.25rem; background: linear-gradient(120deg, var(--ink), var(--ink) 45%, var(--acc)); color: #fff; }
.ivp-ic { display: inline-flex; flex: none; width: 1.25rem; height: 1.25rem; }
.ivp-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ivp-mark { width: 2.75rem; height: 2.75rem; padding: .65rem; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.ivp-titles { flex: 1; min-width: 0; }
.ivp .ivp-title { font-family: inherit; font-size: 1.3rem; font-weight: 800; line-height: 1.35; color: #fff; }
.ivp .ivp-sub { font-size: .875rem; color: rgba(255, 255, 255, .86); line-height: 1.45; }
.ivp button { font-family: inherit; cursor: pointer; }
.ivp-x { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; color: #fff; }
.ivp .ivp-x:focus-visible { outline-color: #fff; }

.ivp-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; padding: .65rem .75rem; border-bottom: 1px solid var(--rule); background: var(--card); }
.ivp-tab { display: flex; align-items: center; justify-content: center; gap: .45rem; min-width: 0; min-height: 2.75rem; padding: .4rem .35rem; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); font-size: .925rem; font-weight: 600; transition: background-color .15s, color .15s, border-color .15s; }
.ivp-tab[aria-selected="true"] { background: var(--acc); border-color: var(--acc); color: var(--on); }
.ivp-tab-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ivp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1.25rem; }
.ivp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.ivp-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.ivp .ivp-lab { display: block; float: none; margin: 0 0 .3rem; font-size: .875rem; font-weight: 700; color: var(--ink); }
.ivp .ivp-in { display: block; width: 100%; margin: 0; padding: .65rem .85rem; border: 1px solid var(--rule); border-radius: .85rem; background: #fff; color: #1d1a16; font: inherit; font-size: 1rem; line-height: 1.7; }
.ivp .ivp-in:focus { border-color: var(--acc); }
.ivp .ivp-in[aria-invalid="true"] { border-color: #a1211a; border-width: 2px; }
.ivp .ivp-msg { min-height: 8.5rem; resize: vertical; }
.ivp .ivp-hint { margin-top: .3rem; font-size: .8125rem; color: var(--mut); line-height: 1.6; }
.ivp .ivp-err { margin-top: .3rem; font-size: .8125rem; font-weight: 700; color: #8f1d17; }
.ivp-tools { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .2rem; font-size: .8125rem; color: var(--mut); }
.ivp-count { margin-inline-start: auto; unicode-bidi: isolate; }
.ivp-link { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0; border: 0; background: none; color: var(--acc); font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.ivp-url-v { display: block; padding: .5rem .85rem; border: 1px dashed var(--rule); border-radius: .85rem; font-size: .875rem; overflow-wrap: anywhere; text-align: left; }
.ivp-seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.ivp .ivp-opt { position: relative; display: inline-flex; margin: 0; }
.ivp .ivp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ivp-opt span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .3rem 1.15rem; border: 1px solid var(--rule); border-radius: 999px; font-weight: 600; font-size: .925rem; cursor: pointer; }
.ivp-opt input:checked + span { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); color: var(--acc); background: var(--card); }
.ivp-opt input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }

.ivp .ivp-h3 { margin: 0 0 .5rem; font-family: inherit; font-size: .95rem; font-weight: 800; line-height: 1.5; color: var(--ink); }
.ivp-bubble { padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: 1.1rem; border-end-end-radius: .3rem; background: var(--card); box-shadow: 0 .35rem 1rem rgba(60, 35, 10, .08); max-height: 14rem; overflow-y: auto; }
.ivp-bubble-wa { background: #e7f7d9; border-color: #c5e3ad; color: #17210f; }
.ivp-bubble-tg { background: #e6f2fb; border-color: #bedcf2; color: #0f1c27; }
.ivp-bubble-ml { border-radius: .85rem; }
.ivp .ivp-bubble-s { padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 1px solid var(--rule); font-weight: 800; overflow-wrap: anywhere; }
.ivp .ivp-bubble-t { white-space: pre-wrap; overflow-wrap: anywhere; }
.ivp .ivp-bubble-u { margin-top: .25rem; font-size: .875rem; color: #1457a0; text-decoration: underline; overflow-wrap: anywhere; text-align: left; }
.ivp .ivp-note { font-size: .9rem; color: var(--mut); }

.ivp-qr { display: flex; flex-direction: column; gap: .75rem; --ch: #25d366; --ch-d: #0b6b34; --ch-soft: #e7f7ec; }
.ivp[data-ch="tg"] .ivp-qr { --ch: #229ed9; --ch-d: #0d5f8c; --ch-soft: #e5f3fb; }
.ivp[data-ch="ml"] .ivp-qr { --ch: #5b4bc4; --ch-d: #43359e; --ch-soft: #eeebfa; }
.ivp-qr-toggle { align-self: flex-start; }
.ivp-qr-body { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .9rem; border: 1px solid var(--rule); border-radius: 1.1rem; background: var(--card); overflow: hidden; box-shadow: 0 .6rem 1.6rem rgba(60, 35, 10, .1); animation: ivp-qr-in .45s cubic-bezier(.2, .8, .25, 1) both; }
.ivp-qr-body::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: .3rem; background: linear-gradient(90deg, var(--ch), var(--acc)); }
.ivp-qr-head { display: flex; flex: 1 1 100%; align-items: flex-start; gap: .75rem; min-width: 0; padding-top: .2rem; }
.ivp-qr-badge { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 2px solid #fff; border-radius: .9rem; background: var(--ch); color: #fff; box-shadow: 0 0 0 1px var(--ch), 0 .35rem .8rem rgba(30, 20, 10, .18); }
.ivp-qr-badge .ivp-ic { width: 1.6rem; height: 1.6rem; }
.ivp-qr-titles { flex: 1; min-width: 0; }
.ivp .ivp-qr-titles .ivp-h3 { margin: 0; font-size: 1.05rem; color: var(--ch-d); }
.ivp .ivp-qr-who { margin-top: .1rem; }
/* the frame takes no room of its own: its corners and the moving light stay outside the code; nothing lies on the code but the app's sign */
.ivp-qr-frame { position: relative; flex: none; max-width: 100%; margin-inline: auto; line-height: 0; }
.ivp-qr-frame::before { content: ""; position: absolute; inset: -.45rem; pointer-events: none;
  background-image: linear-gradient(var(--ch-d), var(--ch-d)), linear-gradient(var(--ch-d), var(--ch-d)), linear-gradient(var(--ch-d), var(--ch-d)), linear-gradient(var(--ch-d), var(--ch-d)), linear-gradient(var(--acc), var(--acc)), linear-gradient(var(--acc), var(--acc)), linear-gradient(var(--acc), var(--acc)), linear-gradient(var(--acc), var(--acc));
  background-position: left top, left top, right top, right top, left bottom, left bottom, right bottom, right bottom;
  background-size: 1.5rem 3px, 3px 1.5rem, 1.5rem 3px, 3px 1.5rem, 1.5rem 3px, 3px 1.5rem, 1.5rem 3px, 3px 1.5rem;
  background-repeat: no-repeat; animation: ivp-qr-lock .9s ease-out .15s 2 both; }
.ivp-qr-orbit { position: absolute; top: -.75rem; left: -.75rem; width: calc(100% + 1.5rem); height: calc(100% + 1.5rem); max-width: none; overflow: visible; pointer-events: none; }
.ivp-qr-orbit rect { fill: none; stroke: var(--ch); stroke-linecap: round; stroke-dasharray: 22 78; animation: ivp-qr-orbit 3.2s linear infinite; }
.ivp-qr-orbit .ivp-qr-light { stroke-width: 3px; }
.ivp-qr-orbit .ivp-qr-glow { stroke-width: 7px; opacity: .22; }
.ivp-qr-orbit .ivp-qr-tail { stroke-width: 2px; opacity: .35; stroke-dasharray: 40 60; animation-name: ivp-qr-orbit-tail; }
@keyframes ivp-qr-orbit { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes ivp-qr-orbit-tail { from { stroke-dashoffset: 18; } to { stroke-dashoffset: -82; } }
@media (prefers-reduced-motion: reduce) { .ivp .ivp-qr-orbit { display: none; } }
.ivp-qr-cv { display: block; max-width: 100%; height: auto; aspect-ratio: 1; background: #fff; image-rendering: pixelated; }
.ivp-qr-txt { flex: 1 1 13rem; min-width: 0; }
.ivp .ivp-qr-steps { display: flex; flex-direction: column; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.ivp .ivp-qr-step { display: flex; align-items: flex-start; gap: .7rem; margin: 0; padding: 0; font-size: .875rem; line-height: 1.6; }
.ivp .ivp-qr-step::before { content: none; }
.ivp-qr-mark { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ch-soft); color: var(--ch-d); }
.ivp-qr-num { position: absolute; bottom: -.2rem; inset-inline-end: -.25rem; display: flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--ch-d); color: #fff; font-size: .75rem; font-weight: 800; line-height: 1; }
.ivp-qr-step-t { flex: 1; min-width: 0; }
.ivp-qr-mark .ivp-beam { animation: ivp-qr-beam 1.6s ease-in-out .4s 3; }
.ivp[dir="rtl"] .ivp-qr-step:last-child .ivp-ic { transform: scaleX(-1); }
.ivp .ivp-qr-note { margin-top: .6rem; }
.ivp .ivp-qr-honest { flex: 1 1 100%; padding: .5rem .75rem; border-radius: .75rem; background: var(--ch-soft); color: var(--ch-d); font-size: .8125rem; font-weight: 700; line-height: 1.6; text-align: center; }
.ivp .ivp-card-for { margin: 0; }
@keyframes ivp-qr-in { from { opacity: 0; transform: translateY(.75rem); } to { opacity: 1; transform: none; } }
@keyframes ivp-qr-lock { 0% { transform: scale(1.025); opacity: .35; } 60%, 100% { transform: none; opacity: 1; } }
@keyframes ivp-qr-beam { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-4px); } 75% { transform: translateY(4px); } }

.ivp-card { padding: .6rem .9rem; border: 1px solid var(--rule); border-radius: 1.1rem; background: var(--card); }
.ivp-card summary { min-height: 2.25rem; margin: 0; padding-block: .35rem; cursor: pointer; }
.ivp-card-cv { display: block; width: min(15rem, 100%); height: auto; margin: .5rem auto; border-radius: .85rem; box-shadow: 0 .5rem 1.4rem rgba(60, 35, 10, .2); }
.ivp-card-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding-bottom: .35rem; }

.ivp-foot { position: relative; z-index: 1; flex: none; padding: .7rem 1.25rem calc(.7rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); background: var(--card); }
.ivp .ivp-status { font-size: .9rem; font-weight: 700; }
.ivp .ivp-status.is-on { margin-bottom: .55rem; padding: .5rem .8rem; border-radius: .75rem; background: #e4f3e3; color: #14501b; }
.ivp .ivp-status.is-on.is-bad { background: #fbe9e7; color: #8f1d17; }
.ivp .ivp-manual { margin-bottom: .55rem; }
.ivp-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.ivp .ivp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; margin: 0; padding: .5rem 1.2rem; border: 1px solid var(--acc); border-radius: 999px; font-family: inherit; font-size: .95rem; font-weight: 700; line-height: 1.35; text-align: center; text-decoration: none; transition: filter .15s, background-color .15s; }
.ivp .ivp-btn-line { background: transparent; color: var(--acc); }
.ivp .ivp-go { min-width: 13rem; background: var(--acc); color: var(--on); box-shadow: 0 .45rem 1rem rgba(60, 30, 5, .22); }
.ivp .ivp-go[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.ivp[dir="rtl"] .ivp-go .ivp-ic { transform: scaleX(-1); }
.ivp[dir="rtl"][data-ch="cp"] .ivp-go .ivp-ic { transform: none; }
/* the buttons: at rest as before; under the pointer, with the keyboard or while pressed a bar of the app's own colour sweeps in (from the reading side) */
.ivp .ivp-tab, .ivp .ivp-btn, .ivp .ivp-x { position: relative; isolation: isolate; overflow: hidden; -webkit-tap-highlight-color: transparent; transition: color .26s ease .04s, border-color .3s ease, background-color .15s; }
.ivp .ivp-tab::before, .ivp .ivp-btn::before, .ivp .ivp-x::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: var(--fx, var(--acc)); transform: scaleX(0); transform-origin: left center; transition: transform .32s cubic-bezier(.3, .7, .3, 1); }
.ivp[dir="rtl"] .ivp-tab::before, .ivp[dir="rtl"] .ivp-btn::before, .ivp[dir="rtl"] .ivp-x::before { transform-origin: right center; }
.ivp .ivp-ic svg { overflow: visible; }
.ivp .ivp-tab-wa, .ivp[data-ch="wa"] .ivp-go { --fx: #107a3d; }
.ivp .ivp-tab-wa::before, .ivp[data-ch="wa"] .ivp-go::before { background: linear-gradient(0deg, #25d366 3px, #107a3d 3px); }
.ivp .ivp-tab-tg, .ivp[data-ch="tg"] .ivp-go { --fx: #14719f; }
.ivp .ivp-tab-tg::before, .ivp[data-ch="tg"] .ivp-go::before { background: linear-gradient(0deg, #229ed9 3px, #14719f 3px); }
.ivp .ivp-tab-ml, .ivp[data-ch="ml"] .ivp-go { --fx: #c0352a; }
.ivp .ivp-tab-ml::before, .ivp[data-ch="ml"] .ivp-go::before { background: linear-gradient(0deg, #ea4335 3px, #c0352a 3px); }
.ivp .ivp-go-cp::before { background: linear-gradient(rgba(0, 0, 0, .28), rgba(0, 0, 0, .28)), var(--acc); }   /* this button is house-coloured at rest: a deeper shade of it */
.ivp .ivp-x::before { background: #fff; }   /* on the dark head the bar is white */
@media (hover: hover) {
  .ivp .ivp-tab[aria-selected="false"]:hover::before,
    .ivp .ivp-btn:not([aria-disabled="true"]):hover::before,
    .ivp .ivp-x:hover::before { transform: scaleX(1); }
  .ivp .ivp-tab[aria-selected="false"]:hover, .ivp .ivp-btn:not([aria-disabled="true"]):hover { color: #fff; border-color: var(--fx, var(--acc)); }
  .ivp .ivp-x:hover { color: var(--ink); border-color: #fff; }
  .ivp .ivp-tab-wa:hover .ivp-ic svg { animation: ivp-i-ring .38s ease-in-out; }
  .ivp .ivp-tab-tg:hover .ivp-ic svg { animation: ivp-i-fly .38s ease-in-out; }
  .ivp .ivp-tab-ml:hover .ivp-ic svg path { animation: ivp-i-flap .38s ease-in-out; }
  .ivp .ivp-tab-cp:hover .ivp-ic svg rect { animation: ivp-i-front .38s ease-in-out; }
  .ivp .ivp-tab-cp:hover .ivp-ic svg path { animation: ivp-i-back .38s ease-in-out; }
  .ivp .ivp-go:not(.ivp-go-cp):not([aria-disabled="true"]):hover .ivp-ic svg { animation: ivp-i-fly .38s ease-in-out; }
  .ivp .ivp-go-cp:hover .ivp-ic svg rect { animation: ivp-i-front .38s ease-in-out; }
  .ivp .ivp-go-cp:hover .ivp-ic svg path { animation: ivp-i-back .38s ease-in-out; }
  .ivp .ivp-x:hover .ivp-ic svg { animation: ivp-i-turn .38s ease-in-out; }
}
.ivp .ivp-tab[aria-selected="false"]:focus-visible::before,
  .ivp .ivp-btn:not([aria-disabled="true"]):focus-visible::before,
  .ivp .ivp-x:focus-visible::before { transform: scaleX(1); }
.ivp .ivp-tab[aria-selected="false"]:focus-visible, .ivp .ivp-btn:not([aria-disabled="true"]):focus-visible { color: #fff; border-color: var(--fx, var(--acc)); }
.ivp .ivp-x:focus-visible { color: var(--ink); border-color: #fff; }
.ivp .ivp-tab-wa:focus-visible .ivp-ic svg { animation: ivp-i-ring .38s ease-in-out; }
.ivp .ivp-tab-tg:focus-visible .ivp-ic svg { animation: ivp-i-fly .38s ease-in-out; }
.ivp .ivp-tab-ml:focus-visible .ivp-ic svg path { animation: ivp-i-flap .38s ease-in-out; }
.ivp .ivp-tab-cp:focus-visible .ivp-ic svg rect { animation: ivp-i-front .38s ease-in-out; }
.ivp .ivp-tab-cp:focus-visible .ivp-ic svg path { animation: ivp-i-back .38s ease-in-out; }
.ivp .ivp-go:not(.ivp-go-cp):not([aria-disabled="true"]):focus-visible .ivp-ic svg { animation: ivp-i-fly .38s ease-in-out; }
.ivp .ivp-go-cp:focus-visible .ivp-ic svg rect { animation: ivp-i-front .38s ease-in-out; }
.ivp .ivp-go-cp:focus-visible .ivp-ic svg path { animation: ivp-i-back .38s ease-in-out; }
.ivp .ivp-x:focus-visible .ivp-ic svg { animation: ivp-i-turn .38s ease-in-out; }
.ivp .ivp-tab[aria-selected="false"]:active::before,
  .ivp .ivp-btn:not([aria-disabled="true"]):active::before,
  .ivp .ivp-x:active::before { transform: scaleX(1); }
.ivp .ivp-tab[aria-selected="false"]:active, .ivp .ivp-btn:not([aria-disabled="true"]):active { color: #fff; border-color: var(--fx, var(--acc)); }
.ivp .ivp-x:active { color: var(--ink); border-color: #fff; }
.ivp .ivp-tab-wa:active .ivp-ic svg { animation: ivp-i-ring .38s ease-in-out; }
.ivp .ivp-tab-tg:active .ivp-ic svg { animation: ivp-i-fly .38s ease-in-out; }
.ivp .ivp-tab-ml:active .ivp-ic svg path { animation: ivp-i-flap .38s ease-in-out; }
.ivp .ivp-tab-cp:active .ivp-ic svg rect { animation: ivp-i-front .38s ease-in-out; }
.ivp .ivp-tab-cp:active .ivp-ic svg path { animation: ivp-i-back .38s ease-in-out; }
.ivp .ivp-go:not(.ivp-go-cp):not([aria-disabled="true"]):active .ivp-ic svg { animation: ivp-i-fly .38s ease-in-out; }
.ivp .ivp-go-cp:active .ivp-ic svg rect { animation: ivp-i-front .38s ease-in-out; }
.ivp .ivp-go-cp:active .ivp-ic svg path { animation: ivp-i-back .38s ease-in-out; }
.ivp .ivp-x:active .ivp-ic svg { animation: ivp-i-turn .38s ease-in-out; }
@keyframes ivp-i-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(13deg); } 60% { transform: rotate(-9deg); } 80% { transform: rotate(5deg); } }
@keyframes ivp-i-fly { 0% { transform: translate(0, 0); opacity: 1; } 45% { transform: translate(7px, -7px); opacity: 0; } 46% { transform: translate(-7px, 6px); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }
.ivp .ivp-ic svg path { transform-box: view-box; }
.ivp .ivp-tab-ml .ivp-ic svg path { transform-origin: 12px 7.5px; }
@keyframes ivp-i-flap { 0%, 100% { transform: scaleY(1); } 55% { transform: scaleY(-.6); } }
@keyframes ivp-i-front { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2.5px, 2.5px); } }
@keyframes ivp-i-back { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-2px, -2px); } }
@keyframes ivp-i-turn { 0% { transform: rotate(0); } 100% { transform: rotate(90deg); } }

/* INVITE-PICTURE: the clearly first button: the large picture card as a real photo. Its room is there from the start, so nothing moves when the picture arrives */
.ivp-pic { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .15rem .9rem; margin-bottom: .55rem; }
.ivp .ivp-pic-go { flex: 1 1 18rem; min-width: 0; min-height: 3.25rem; gap: .75rem; padding: .35rem 1rem; padding-inline-start: .5rem; background: var(--acc); color: var(--on); font-size: 1.05rem; font-weight: 800; box-shadow: 0 .5rem 1.2rem rgba(60, 30, 5, .28); }
.ivp .ivp-pic-img { display: block; flex: none; width: 4rem; height: 2.125rem; max-width: none; margin: 0; border: 2px solid #fff; border-radius: .6rem; background: #fff; object-fit: cover; }
.ivp .ivp-pic-img:not([src]) { visibility: hidden; }
.ivp-pic-t { min-width: 0; overflow-wrap: anywhere; }
.ivp .ivp-pic [aria-disabled="true"] { opacity: .6; cursor: progress; }
.ivp-pic-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1rem; }
.ivp .ivp-pic-more .ivp-link { min-height: 2.75rem; }
/* the line shown when the app did not open */
.ivp-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; margin-bottom: .55rem; padding: .4rem .5rem; padding-inline-start: .8rem; border: 1px dashed var(--rule); border-radius: .85rem; font-size: .9rem; font-weight: 700; }
.ivp-alt-t { flex: 1 1 10rem; min-width: 0; }
@media (max-width: 599px) {
  .ivp .ivp-pic-go { flex-basis: 100%; min-height: 3rem; font-size: .95rem; }
  .ivp-pic { margin-bottom: .35rem; }
  .ivp-pic-more { flex: 1 1 100%; }
  .ivp .ivp-pic-more .ivp-link { min-height: 2.25rem; }
  .ivp .ivp-alt-btn { flex: 1 1 100%; }
}
/* a small phone: the head and tabs get shorter and the buttons at the bottom keep to half the height (they scroll inside it), so the main button stays in sight and the text keeps its room */
@media (max-width: 599px) and (min-height: 561px) and (max-height: 700px) {
  .ivp .ivp-sub { display: none; }
  .ivp-tab { min-height: 2.75rem; }
  .ivp-foot { max-height: 50vh; max-height: 50dvh; overflow-y: auto; padding-top: .5rem; }
}
/* LINKFIX: on the WhatsApp tab the picture card is the second, quieter button; the paste hint after it is large */
.ivp .ivp-pic.is-second { margin: .55rem 0 0; justify-content: center; }
.ivp .ivp-pic.is-second .ivp-pic-go { flex: 0 1 auto; min-height: 2.75rem; padding-block: .25rem; background: transparent; color: var(--acc); box-shadow: none; font-size: .925rem; font-weight: 700; }
@media (hover: hover) { .ivp .ivp-pic.is-second .ivp-pic-go:not([aria-disabled="true"]):hover { color: #fff; } }
.ivp .ivp-pic.is-second .ivp-pic-go:not([aria-disabled="true"]):focus-visible, .ivp .ivp-pic.is-second .ivp-pic-go:not([aria-disabled="true"]):active { color: #fff; }
.ivp .ivp-pic.is-second .ivp-pic-img { width: 3rem; height: 1.6rem; }
.ivp .ivp-pic.is-second .ivp-pic-more { display: none; }
.ivp .ivp-pic-step { flex: 1 1 100%; margin: 0; font-size: .75rem; line-height: 1.6; color: var(--mut); text-align: center; }
.ivp .ivp-pic-fall { flex: 1 1 100%; }
.ivp .ivp-status.is-on.is-big { padding: .7rem .9rem; border: 2px solid #14501b; font-size: 1.15rem; line-height: 1.7; text-align: center; }
@media (max-width: 599px) { .ivp .ivp-status.is-on.is-big { font-size: 1.05rem; } .ivp .ivp-pic.is-second .ivp-pic-go { flex-basis: 100%; } }
.ivp .ivp-privacy { margin-top: .5rem; font-size: .75rem; color: var(--mut); text-align: center; }
.ivp .ivp-hidden { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.ivp-host { display: none; }

@media (min-width: 800px) { .ivp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem; } }
@media (min-width: 1900px) { .ivp { width: 72rem; font-size: 1.0625rem; } }
@media (max-width: 599px) {
  .ivp { width: 100%; height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh; border-radius: 0; }
  .ivp-head { gap: .6rem; padding: .6rem .75rem; }
  .ivp-mark { display: none; }
  .ivp .ivp-title { font-size: 1.1rem; }
  .ivp .ivp-sub { font-size: .75rem; }
  .ivp-tabs { gap: .3rem; padding: .45rem .5rem; }
  .ivp-tab { flex-direction: column; gap: .15rem; min-height: 3.25rem; padding: .3rem .15rem; border-radius: .85rem; font-size: .75rem; }
  .ivp-body { padding: .85rem .75rem; }
  .ivp-foot { padding-inline: .75rem; }
  .ivp-acts > .ivp-btn { flex: 1 1 8rem; }
  .ivp-acts > .ivp-go { flex-basis: 100%; min-width: 0; order: -1; }
}
/* little height (a phone held sideways, a very small window): the whole box scrolls, nothing is squeezed away */
@media (max-height: 560px) {
  .ivp { height: 100%; max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); overflow-y: auto; }
  .ivp[open] { display: block; }
  .ivp-body { overflow: visible; }
  .ivp-head { padding-block: .45rem; }
  .ivp-sub { display: none; }
}
@keyframes ivp-in { from { opacity: 0; transform: translateY(1.25rem) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ivp[open] { animation: none; } .ivp * { transition: none !important; } .ivp-qr-body, .ivp-qr-frame::before, .ivp-qr-mark .ivp-beam { animation: none !important; } .ivp .ivp-tab::before, .ivp .ivp-btn::before, .ivp .ivp-x::before { transition: none !important; } .ivp .ivp-tab .ivp-ic svg, .ivp .ivp-tab .ivp-ic svg *, .ivp .ivp-btn .ivp-ic svg, .ivp .ivp-btn .ivp-ic svg *, .ivp .ivp-x .ivp-ic svg { animation: none !important; } }
@media print { .ivp { display: none !important; } }
