.ff-body{--ff-ink:#182e28;--ff-green:#175d4b;--ff-line:#d4ded8;--ff-muted:#52675f;--ff-paper:#fcfdf9;--ff-surface:#eff4ee;background:#f0f3ee;color:var(--ff-ink)}
.ff-symbols{position:absolute;overflow:hidden;pointer-events:none}
.ff-shell{direction:ltr;text-align:left;max-width:54rem;margin:auto;padding:0 clamp(.65rem,3vw,1.25rem) 2rem;font-family:var(--card-face);box-sizing:border-box}
.ff-shell :where(h1,h2,p,ul){margin:0}
.ff-head{--ff-header-border:1px solid #c6d4cb;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;column-gap:.4rem;margin:1rem 0 .85rem;padding-block-end:.65rem;border-block-end:var(--ff-header-border)}
.ff-head h1,.ff-dialog-head h2{margin:0;font:800 clamp(1.15rem,3vw,1.45rem)/1.2 var(--card-face);letter-spacing:-.025em;display:flex;align-items:center;gap:.45rem;direction:ltr}
.ff-head h1{justify-self:start;font-size:clamp(.84rem,2.3vw,1.05rem);gap:.3rem;white-space:nowrap}
.ff-head #profile{justify-self:end;max-width:100%;min-width:0}
@media(max-width:380px){.ff-shell .ff-head #profile{padding-inline:4px;gap:3px}}
.ff-head #ff-back{box-sizing:border-box;border:var(--ff-header-border);width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--header-bg);color:#000;box-shadow:var(--floating-control-shadow)}
.ff-head h1 img{box-sizing:border-box;width:23px;height:23px;border-radius:8px;padding:3px;background:#d9eae1}
.ff-shell #profile,.ff-actions button,#ff-map-events button,#login{
  font:700 .82rem/1.25 var(--card-face);padding:.52rem .76rem;display:inline-flex;align-items:center;justify-content:center;gap:.35rem;min-height:34px;color:var(--ff-green);border:1px solid #b7c9be;border-radius:10px;background:#f8fbf7;cursor:pointer
}
.ff-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
#ff-access{display:grid;justify-items:center;gap:.55rem;padding:.85rem;border:1px solid var(--ff-line);border-radius:14px;background:var(--ff-paper);text-align:center}
#ff-access-note{font:600 .88rem/1.45 var(--card-face)}
#ff-access-note .special-buddy{width:clamp(26px,6vw,34px);height:auto}
#ff-access[hidden],#ff-content[hidden],#ff-inbox[hidden]{display:none}
.ff-layout{display:grid;gap:1rem;align-items:start}
.ff-events{display:grid;gap:1rem;min-width:0}.ff-events section,.ff-location,.ff-selected{min-width:0}
.ff-section-head,.ff-dialog-head{display:flex;align-items:center;gap:.45rem;margin:0 .13rem .45rem}
.ff-section-head h2{font:800 1rem/1.4 var(--card-face);margin:0;letter-spacing:-.015em}
.ff-section-head small{margin-inline-start:auto;color:var(--ff-muted);font:650 .77rem/1.3 var(--card-face)}
.ff-section-head #live-title{display:flex;gap:.4rem;align-items:center}
#live-title::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:#16835c;box-shadow:0 0 0 2px #cee6d7}
@media(prefers-reduced-motion:no-preference){
  #live-title::before{animation:ff-live-pulse 1.05s ease-out infinite}
  @keyframes ff-live-pulse{from{box-shadow:0 0 0 0 #23865778}to{box-shadow:0 0 0 6px #23865700}}
}
.ff-total{display:grid;place-items:center;min-width:21px;height:21px;padding:0 .25rem;box-sizing:border-box;border-radius:20px;background:#e0e9e2;color:#2c5f4c;font:800 .72rem/1 var(--card-face)}
.ff-location .map-frame{aspect-ratio:auto}
.ff-location .friend-map-label{background:var(--action-teal);color:white;border-color:var(--action-teal);box-shadow:var(--floating-control-shadow);cursor:inherit}
.ff-location #ff-map{height:clamp(140.4px,18.9vh,189px);background:var(--map-bg);direction:ltr;z-index:0;isolation:isolate}
.ff-map-tooltip{white-space:pre-line}
#ff-map-events:not([hidden]){display:grid;gap:4px;padding:6px}
#ff-map-events button{display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:start}
#ff-map-events button bdi:last-child{white-space:nowrap;color:var(--ff-green)}
.ff-count{background:var(--ff-green);color:white;box-shadow:0 0 0 6px #1d6e492b,0 2px 5px #15372a30;border:2px solid white;border-radius:50%;display:grid;place-items:center;font:800 13px/1 var(--card-face)}
.ff-location .map-preview-pin.ff-count{box-sizing:border-box;min-width:24px;width:auto;height:24px;padding-inline:4px;border-radius:20px;box-shadow:var(--floating-control-shadow)}
.ff-location .leaflet-bar,.ff-location .leaflet-control-attribution{box-shadow:none}.ff-location .leaflet-bar{overflow:hidden;border-radius:10px}
.ff-list{display:grid;gap:.45rem}
.ff-event,.ff-selected,.ff-empty{border:1px solid var(--ff-line);border-radius:14px;background:var(--ff-paper)}
.ff-event{min-width:0;overflow:hidden;border-color:#b4c7bc}
.ff-event[open]{border-color:#92b29f;box-shadow:0 2px 6px #203e2f0b}
.ff-shell .ff-event>summary:focus-visible{outline-offset:-3px}
#live>.ff-event{border-color:#68a68b}
@media(prefers-reduced-motion:no-preference){
  #live>.ff-event{animation:ff-live-frame .95s ease-out infinite}
  @keyframes ff-live-frame{
    from{box-shadow:0 0 0 0 rgb(196 49 57 / 58%)}
    to{box-shadow:0 0 2px 5px rgb(196 49 57 / 0%)}
  }
}
.ff-event summary{display:grid;grid-template-columns:48px minmax(0,1fr) 24px;align-items:center;gap:.68rem;cursor:pointer;padding:.7rem .75rem;list-style:none}
.ff-event summary::-webkit-details-marker{display:none}
.ff-info{display:grid;gap:.23rem;min-width:0}
.ff-meta,.ff-social,.ff-unit{display:flex;align-items:center;flex-wrap:wrap;gap:.22rem .5rem}
.ff-meta,.ff-social{font:600 .76rem/1.35 var(--card-face);color:var(--ff-muted)}.ff-unit{gap:.23rem;min-width:0}.ff-unit bdi{overflow-wrap:anywhere}.ff-meta .ff-icon{width:13px;height:13px}
.ff-social{margin-top:.1rem}.ff-stack{display:inline-flex;align-items:center;padding-inline-end:.16rem}
.ff-avatar{--fill:#cce3d6;--ink:#245743;display:inline-grid;place-items:center;width:24px;height:24px;flex:none;background:var(--fill);color:var(--ink);border:2px solid var(--ff-paper);border-radius:50%;font:800 .61rem/1 var(--card-face);box-sizing:border-box}
.ff-stack .ff-avatar+.ff-avatar{margin-inline-start:-7px}.ff-avatar.anonymous{--fill:#dae1dd;--ink:#46574f}.ff-avatar .ff-icon{width:13px;height:13px}
.ff-checked{color:var(--ff-green);font-size:.73rem}.ff-chevron{width:23px;height:23px;box-sizing:border-box;padding:3px;border-radius:50%;background:var(--ff-surface);color:var(--ff-muted)}.ff-event[open] .ff-chevron{transform:rotate(180deg)}
.ff-roster{padding:.1rem .6rem .5rem;border-top:1px solid var(--ff-line)}
.ff-member-panel{margin-block:.55rem;padding:.45rem;border:1px solid var(--ff-line);border-radius:12px;background:var(--ff-surface)}
.ff-roster ul{list-style:none;padding:2px;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem;max-height:13rem;overflow:auto}
.ff-roster li{display:flex;min-width:0}
.ff-person-line{box-sizing:border-box;display:flex;align-items:center;gap:.35rem;min-width:0;width:100%;min-height:30px;padding:.13rem .1rem;text-decoration:none;color:var(--ff-ink);font:650 .78rem/1.24 var(--card-face)}
.ff-roster .ff-avatar{width:22px;height:22px}
.ff-actions{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin-top:.48rem}
.ff-actions .ff-primary,#login{background:var(--ff-green);color:white;border-color:var(--ff-green)}.ff-actions button[data-action=leave]{color:#955040}
.ff-empty,.ff-selected{padding:.75rem}.ff-selected{margin-bottom:.85rem;text-align:center}
.ff-selected h2{text-align:center}
.ff-selected .ff-meta{display:grid;justify-items:center;gap:.15rem;margin-top:.25rem;font-size:.76rem;font-weight:500;line-height:1.4}
.ff-selected .ff-unit{justify-content:center;flex-wrap:nowrap;max-width:100%}
.ff-selected .ff-icon{flex:none}
.ff-empty{text-align:center;font:600 .86rem/1.45 var(--card-face);color:var(--ff-muted);border-style:dashed}
.ff-body #sample{display:block;margin-top:1rem;color:var(--ff-muted);font-size:.73rem}.ff-body :is(#status,#profile-status):not(:empty){text-align:center;color:#982d2d;margin:.55rem 0;font:650 .85rem/1.45 var(--card-face)}
.ff-shell #editor{--ff-dialog-x:-50%;--profile-portrait:78px;width:min(25rem,calc(100% - 2rem));padding:0}
#editor>.choice-heading{grid-template-columns:1fr auto 1fr;padding:10px 12px calc(var(--profile-portrait) / 2 + 6px);border:0}
#edit-title{color:white}
#editor>.choice-heading .choice-caption{grid-column:2;text-align:center}
#editor>.choice-heading .close-button{grid-column:3}
#profile-form{padding:0 clamp(14px,4vw,20px) 18px}
#editor>.ff-inbox{margin:0 1rem .75rem}
.ff-dialog-head{justify-content:space-between;margin:0 0 .7rem}.ff-dialog-head h2{font-size:1.08rem;direction:inherit}.ff-dialog-head #cancel{border-radius:50%;font-size:1.35rem;padding:0;width:32px;min-height:32px}
#profile-form label{display:grid;gap:.2rem;margin:.6rem 0;font:700 .82rem/1.4 var(--card-face)}#profile-form input:not([type="checkbox"]),#profile-form select{font:500 .9rem/1.4 var(--card-face);color:inherit;border:1px solid #bacac0;border-radius:9px;background:white;padding:.47rem .65rem;width:100%;min-width:0;box-sizing:border-box}#profile-form #save{width:100%;margin-top:.55rem}.ff-body :is(button,summary,a,input,select):focus-visible{outline:2px solid #1d7358;outline-offset:3px}
.ff-body :is(.ff-head,.ff-layout,.ff-selected,#editor) [hidden],.ff-body :is(#sample,#login,#selected)[hidden]{display:none!important}
@media(min-width:760px){.ff-layout{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:1.15rem}.ff-location #ff-map{height:clamp(180px,23.4vh,243px)}}
@media(max-width:420px){.ff-head{margin:.7rem 0}.ff-layout,.ff-events{gap:.85rem}.ff-location #ff-map{height:126px}.ff-event summary{gap:.5rem;padding:.6rem;grid-template-columns:41px minmax(0,1fr) 20px}.ff-shell #profile{font-size:.74rem}}
/* The poster and event details share the card body. The attendance drawer has its own full-width handle. */
.ff-event summary{grid-template-columns:48px minmax(0,1fr);gap:0 .55rem;padding:0;border-radius:0}
.ff-thumb{height:100%;min-height:49px;position:relative;display:grid;place-items:center;background:#e3ebe3;color:#60836d;overflow:hidden}
.ff-thumb img,.ff-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ff-thumb .ff-icon{width:22px;height:22px}.ff-event summary .ff-info{gap:.08rem;padding:.18rem .5rem .18rem 0}
.ff-event .ff-meta{font-size:.69rem;align-items:flex-start;gap:.15rem .6rem}.ff-event .ff-meta .ff-unit{flex-wrap:nowrap}.ff-event .ff-meta .ff-unit:first-child bdi{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ff-social{position:relative;grid-column:1/-1;min-height:46px;justify-content:center;gap:.3rem .5rem;margin:0;border-top:1px solid #efddce;background:#fff3e9;color:#713c19;font-size:.9rem;font-weight:700;padding:.3rem 2rem;box-sizing:border-box}
.ff-social .ff-avatar{width:31px;height:31px;font-size:.7rem}
.ff-social .ff-chevron{color:inherit;position:absolute;inset-inline-end:.5rem;width:17px;height:17px;padding:0;background:transparent}
.ff-avatar{position:relative;overflow:hidden;box-shadow:0 0 0 1px #a5b1a9;border:1.5px solid #b0bbb4;--fill:#e4eae6;--ink:#384d43}
.ff-body{--ff-woman:#ce648a;--ff-man:#568ac0;--ff-other:conic-gradient(#ca5165,#e99138,#e3b641,#55a476,#5397c9,#9870bc,#ca5165);--ff-unspecified:#a8aeac}
.ff-avatar[data-gender=woman]{border-color:var(--ff-woman)}.ff-avatar[data-gender=man]{border-color:var(--ff-man)}
.ff-avatar[data-gender=other]{--fill:#fcf6fa;--ink:#563a65;border:2px solid transparent;background:linear-gradient(var(--fill),var(--fill)) padding-box,var(--ff-other) border-box}
.ff-event .ff-avatar{border-width:1px;box-shadow:none;background-clip:padding-box,border-box}
#gender-label{display:inline-flex;align-items:center;gap:.4em}
#gender-label::after{content:"";width:.7em;height:.7em;flex:none;border-radius:50%;background:var(--ff-unspecified)}
label:has(select[name="gender"] option[value="woman"]:checked) #gender-label::after{background:var(--ff-woman)}
label:has(select[name="gender"] option[value="man"]:checked) #gender-label::after{background:var(--ff-man)}
label:has(select[name="gender"] option[value="other"]:checked) #gender-label::after{background:var(--ff-other)}
.ff-stack>*+*{margin-inline-start:-6px}

.ff-shell .ff-roster .ff-member-search{box-sizing:border-box;width:100%;border:1px solid var(--ff-line);border-radius:9px;margin:0 0 .35rem;padding:.4rem .57rem;background:var(--ff-paper);color:var(--ff-ink);font:500 .8rem/1.3 var(--card-face)}
.ff-roster .ff-no-match{text-align:center;font:500 .76rem/1.5 var(--card-face);color:var(--ff-muted);margin:.3rem 0}
.ff-photo-field{position:relative;display:grid;justify-items:center;gap:8px;margin:calc(var(--profile-portrait) / -2) 0 14px;text-align:center;font-size:.8rem}
.ff-photo-picker{position:relative}
#profile-form label.ff-sharing-option{display:flex;align-items:center;gap:.45rem;color:var(--ff-muted);font-size:.77rem}
#profile-form .ff-sharing-option input{box-sizing:border-box;width:17px;height:17px;aspect-ratio:1;flex:none;margin:0}
.ff-photo-preview{display:grid;place-items:center;flex:none;width:52px;height:52px;object-fit:cover;border-radius:50%;background:#e4ece4;overflow:hidden}
.ff-photo-preview img{width:100%;height:100%;object-fit:cover}
.ff-photo-actions{position:absolute;z-index:2;top:calc(100% + 5px);left:50%;transform:translateX(-50%);display:grid;gap:2px;min-width:9rem;width:max-content;max-width:75vw;padding:4px;background:var(--ff-paper);border:1px solid var(--ff-line);border-radius:11px;box-shadow:0 7px 20px #18352c22}
.ff-photo-actions button.ff-photo-remove{color:#9c372d}
.ff-photo-actions button:is(:hover,:focus-visible){background:var(--ff-surface)}
.ff-photo-error:empty{display:none}
.ff-photo-field .ff-photo-error:not(:empty){flex-basis:100%;color:#982d2d}
.ff-photo-actions button{font:650 .82rem/1.35 var(--card-face);color:var(--ff-green);background:transparent;min-height:36px;padding:.38rem .65rem;border:0;border-radius:7px;cursor:pointer}

.ff-shell .ff-actions{justify-content:center;text-align:center}

.ff-region{--section-accent:#47856f;--section-surface:#edf4ee;min-width:0}
#future-region{--section-accent:#78879b;--section-surface:#eef2f7}
.ff-region-frame{
  position:relative;border:1px solid var(--ff-line);border-radius:14px;
  background:var(--section-surface);padding:.7rem;min-width:0;
}
.ff-region-frame::after{
  content:"";position:absolute;pointer-events:none;
  bottom:-1px;left:50%;width:38px;height:1px;transform:translateX(-50%);background:var(--section-accent);
}
.ff-region .ff-region-title{margin:0;font:800 .9rem/1.4 var(--card-face)}
.ff-region-frame>.ff-region-title,.ff-region-frame>.ff-section-head:first-child{margin:0 0 .4rem;text-align:center}
#future-region .ff-section-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
#future-title{grid-column:2;text-align:center}#future-total{grid-column:3;justify-self:start}
.ff-events{row-gap:1.5rem}
.ff-region .ff-section-head h3,.ff-group-day{margin:0;font:650 .75rem/1.4 var(--card-face);color:var(--ff-muted)}
#ff-today-empty{margin:0;padding:.75rem .25rem;text-align:center;color:var(--ff-muted);font:600 .86rem/1.45 var(--card-face)}
.ff-subsection:not([hidden])+.ff-subsection{border-block-start:1px solid var(--ff-line);padding-block-start:.65rem;margin-top:.65rem}
.ff-group-day:not(:first-child){margin-top:.45rem}

.ff-photo-field .ff-photo-upload{position:relative;display:grid;place-items:center;flex:none;box-sizing:border-box;width:var(--profile-portrait);height:var(--profile-portrait);padding:0;border-radius:50%;background:#dfede5;border:1px solid var(--ff-line);color:var(--ff-green);cursor:pointer}
.ff-photo-upload .ff-photo-preview{position:absolute;inset:0;width:100%;height:100%}
.ff-photo-initial{font:700 1.25rem/1 var(--card-face)}
.ff-photo-upload svg{position:absolute;right:-2px;bottom:-1px;width:14px;height:14px;padding:3px;box-sizing:content-box;fill:none;stroke:white;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;background:var(--ff-green);border:2px solid var(--ff-paper);border-radius:50%}

button.ff-person-line{min-height:44px;padding:.35rem .45rem;gap:.45rem;border:1px solid #bdcec4;border-radius:9px;background:var(--ff-paper);cursor:pointer;text-align:start}
button.ff-person-line:is(:hover,:focus-visible){background:#e6f0e9;border-color:var(--ff-green)}
button.ff-person-line:focus-visible{outline:2px solid var(--ff-green);outline-offset:-2px}
button.ff-person-line:active{background:#d9eade}
.ff-profile-chevron{width:15px;height:15px;margin-inline-start:auto;color:var(--ff-green);transform:rotate(-90deg)}
.ff-person-line bdi{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ff-shell #ff-participant{width:min(90vw,356px);max-height:85dvh;box-sizing:border-box;border:1px solid var(--ff-line);border-radius:18px;background:var(--ff-paper);color:var(--ff-ink);padding:1.05rem;text-align:center;box-shadow:0 18px 65px #1b392f30;overflow:auto}
#ff-participant::backdrop{background:#132d255e}
.ff-person-close{position:absolute;top:.6rem;right:.6rem}
.ff-person-portrait{display:grid;place-items:center;margin:.3rem auto .5rem}
.ff-person-portrait .ff-avatar{width:78px;height:78px;font-size:1.35rem;border-width:3px}
.ff-person-portrait .ff-avatar .ff-icon{width:36px;height:36px}
#ff-participant-name{text-transform:none;font:800 1.15rem/1.35 var(--card-face);overflow-wrap:anywhere;margin:.15rem 0}
.ff-person-feedback{font:550 .8rem/1.45 var(--card-face);color:var(--ff-muted);overflow-wrap:anywhere}
.ff-person-photos,.ff-person-contact,.ff-person-actions{display:flex;align-items:center;justify-content:center;gap:.38rem;flex-wrap:wrap}
.ff-person-photos:not(:empty),.ff-person-contact:not(:empty),.ff-person-actions:not(:empty),.ff-person-feedback:not(:empty){margin-block-start:.7rem}
.ff-person-photos .ff-photo-open{width:min(28%,5rem);aspect-ratio:1;border-radius:9px}
.ff-person-contact a,.ff-person-actions button{display:inline-flex;align-items:center;justify-content:center;font:700 .8rem/1.4 var(--card-face);min-height:34px;box-sizing:border-box;border:1px solid #b7c9be;border-radius:9px;padding:.32rem .65rem;background:var(--ff-surface);color:var(--ff-green);text-decoration:none;cursor:pointer;overflow-wrap:anywhere}
.ff-person-actions .ff-show-interest{color:#fff;background:var(--ff-green);border-color:var(--ff-green)}
.ff-person-feedback[data-error]{color:#982d2d}
.ff-inbox{margin-top:.5rem;border:1px solid var(--ff-line);border-radius:10px;background:var(--ff-surface);font:650 .82rem/1.45 var(--card-face)}
.ff-inbox>summary{display:grid;grid-template-columns:17px minmax(0,1fr) auto 16px;align-items:center;gap:.45rem;box-sizing:border-box;min-height:38px;padding:5px 9px;border-radius:inherit;list-style:none;cursor:pointer}
.ff-inbox>summary::-webkit-details-marker{display:none}
.ff-interest-heart{width:17px;height:17px;color:#9d4660;fill:#f8dce4}
#ff-inbox-title{justify-self:start}
#ff-inbox-count:empty{visibility:hidden}
.ff-inbox-chevron{transition:transform .18s ease}
.ff-inbox[open] .ff-inbox-chevron{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){.ff-inbox-chevron{transition:none}}
#ff-inbox-list{display:grid;gap:3px;border-top:1px solid var(--ff-line);padding:.4rem .5rem;color:var(--ff-muted);background:var(--ff-paper);border-radius:0 0 9px 9px;max-height:13rem;overflow:auto;text-align:center}
#ff-inbox-list button{display:flex;align-items:center;gap:.5rem;border:0;background:var(--ff-surface);color:var(--ff-ink);border-radius:8px;padding:.3rem .45rem;text-align:start;cursor:pointer;font:inherit}
#ff-inbox-list button span:not(.ff-avatar){display:grid;min-width:0}
#ff-inbox-list small{color:var(--ff-muted)}



#profile-form .ff-dialog-head{margin-bottom:.1rem}
.ff-profile-fields{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:end;gap:.65rem .6rem}
#profile-form .ff-profile-fields>label{min-width:0;gap:.15rem;margin:0;font-size:.79rem}
#profile-form .ff-profile-fields :is(input:not([type=checkbox]),select){box-sizing:border-box;min-height:40px;padding:.4rem .55rem;line-height:1.35}
#profile-form .ff-contact-field{grid-column:1/-1;min-width:0}
#profile-form .ff-contact-field>label{margin:0 0 .15rem;font-size:.79rem}
#ff-contact-note{margin:.3rem 0 0;color:var(--soft);font:400 .74rem/1.5 var(--card-face);text-align:start}
.ff-instagram-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
#profile-form .ff-instagram-fields .ff-sharing-option{justify-self:start}
.ff-contact-row{display:flex;gap:.45rem;align-items:center}
.ff-contact-row>input{flex:1;min-width:0}
#profile-form .ff-sharing-option{flex:none;min-height:32px;margin:0;white-space:nowrap;cursor:pointer}
#profile-form .ff-dial{position:relative;display:inline-grid;box-sizing:border-box;flex:0 0 5.15rem;min-height:36px;align-items:center;border:1px solid #bacac0;border-radius:9px;background:white;direction:ltr}
#profile-form .ff-dial select{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#profile-form .ff-dial:focus-within{outline:2px solid #1d7358;outline-offset:2px}
.ff-dial bdi{padding:0 1.2rem 0 .35rem;text-align:center;white-space:nowrap;font:500 1rem/1.45 var(--card-face);font-variant-numeric:tabular-nums;direction:ltr;pointer-events:none}
.ff-dial::after{content:"";position:absolute;right:.55rem;top:50%;width:.35rem;height:.35rem;border:solid var(--soft);border-width:0 1.5px 1.5px 0;transform:translateY(-70%) rotate(45deg);pointer-events:none}
#profile-form .profile-save{display:flex;align-items:center;justify-content:center}
#editor .ff-album{margin:12px 0 0;padding:12px 0 0}
#editor .ff-album-grid{margin-top:.25rem}
#editor .ff-album-frame{width:clamp(40px,12vw,47px)}
#profile-form #save{margin-top:14px;min-height:44px;border-radius:14px;background:var(--ff-green)}
@media(max-width:355px){.ff-profile-fields .ff-contact-field{grid-column:1/-1}}
@media(pointer:coarse){#profile-form .ff-profile-fields :is(input:not([type=checkbox]),select){font-size:16px}}

@media (prefers-reduced-motion: no-preference){
  @keyframes ff-arrive{
    from{opacity:0;translate:0 6px}
    to{opacity:1;translate:0 0}
  }
  .ff-body :is(#friend-calendar-header:not(:empty),.ff-head,#ff-access:not([hidden]),.ff-selected:not([hidden]),.ff-location,.ff-region){
    animation:ff-arrive 420ms cubic-bezier(.2,.7,.2,1) backwards;
  }
  .ff-shell :is(button,summary)[aria-haspopup],.ff-shell :is(#profile,#login,.ff-event>summary,.ff-inbox>summary,.ff-photo-upload){
    transition:background-color 130ms ease,border-color 130ms ease,box-shadow 130ms ease;
  }
  .ff-shell :is(button,summary):active:not(:disabled){filter:brightness(.96)}
  .ff-shell :is(#editor,#ff-participant){
    opacity:0;translate:var(--ff-dialog-x,0) 5px;scale:.99;
    transition:opacity 150ms ease,translate 180ms ease,scale 180ms ease;
    transition:opacity 150ms ease,translate 180ms ease,scale 180ms ease,display 180ms allow-discrete,overlay 180ms allow-discrete;
  }
  .ff-shell :is(#editor,#ff-participant)[open]{opacity:1;translate:var(--ff-dialog-x,0) 0;scale:1}
  .ff-shell :is(#editor,#ff-participant)::backdrop{
    animation:none;opacity:0;
    transition:opacity 160ms ease,display 180ms allow-discrete,overlay 180ms allow-discrete;
  }
  .ff-shell :is(#editor,#ff-participant)[open]::backdrop{opacity:1}
  .ff-shell .ff-photo-actions{
    opacity:1;translate:0 0;
    transition:opacity 120ms ease,translate 140ms ease,display 140ms allow-discrete;
  }
  .ff-shell .ff-photo-actions[hidden]{opacity:0;translate:0 -3px}
  .ff-shell :is(.ff-event,.ff-inbox,.map-credits)::details-content{
    opacity:0;
    transition:opacity 150ms ease,content-visibility 150ms allow-discrete;
  }
  .ff-shell :is(.ff-event,.ff-inbox,.map-credits)[open]::details-content{opacity:1}
  @supports (interpolate-size:allow-keywords){
    .ff-shell :is(.ff-event,.ff-inbox)::details-content{
      interpolate-size:allow-keywords;block-size:0;overflow:clip;
      transition:block-size 180ms ease,opacity 150ms ease,content-visibility 180ms allow-discrete;
    }
    .ff-shell :is(.ff-event,.ff-inbox)[open]::details-content{block-size:auto}
  }
  @starting-style{
    .ff-shell :is(#editor,#ff-participant)[open]{opacity:0;translate:var(--ff-dialog-x,0) 5px;scale:.99}
    .ff-shell :is(#editor,#ff-participant)[open]::backdrop{opacity:0}
    .ff-shell .ff-photo-actions:not([hidden]){opacity:0;translate:0 -3px}
  }
}

html[data-friend-entry] .ff-body{visibility:hidden}
#ff-splash{position:fixed;inset:0;z-index:9999;display:grid;place-content:center;justify-items:center;gap:12px;background:var(--ff-surface);color:var(--ff-green);font:700 .875rem/1.3 var(--card-face);direction:ltr}
.ff-direct-entry #ff-splash,#ff-splash[hidden]{display:none}
#ff-splash strong>[lang]{display:none}
html[lang="en"] #ff-splash [lang="en"],html[lang="fa"] #ff-splash [lang="fa"],html[lang="tr"] #ff-splash [lang="tr"]{display:inline}
html[lang="fa"] #ff-splash strong{direction:rtl}
#ff-splash .account-loading-dots span:nth-child(2){animation-delay:.15s}
#ff-splash .account-loading-dots span:nth-child(3){animation-delay:.3s}
.ff-cat-intro{display:flex;align-items:center;justify-content:center;gap:5px}
.ff-cat-intro img{object-fit:contain}
.ff-cat-intro .ff-link-icon{color:#000;width:23px;height:23px;flex:none}
.ff-match-link{color:var(--ff-green);width:24px;height:24px;flex:none}
.ff-cat-left{--approach:21px}.ff-cat-right{--approach:-21px}
#editor[data-loading] #profile-form{display:none}
.ff-editor-loading{display:grid;place-items:center;min-height:min(47vh,260px);color:var(--ff-muted);font:600 .86rem/1.5 var(--card-face)}
.ff-shell dialog h2[tabindex="-1"]:focus{outline:none}
.ff-shell #ff-connections,.ff-shell #ff-match{width:min(25rem,calc(100% - 2rem));--ff-dialog-x:-50%}
.ff-connections .choice-heading{grid-template-columns:1fr auto 1fr}
.ff-connections .choice-caption{grid-column:2}
.ff-connections .choice-heading form{grid-column:3;justify-self:end}
.ff-social-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.ff-social-links{margin-bottom:8px}
.ff-social-links button,.ff-match-done{display:flex;align-items:center;justify-content:center;gap:.35rem;box-sizing:border-box;min-height:40px;padding:5px 8px;border:1px solid var(--ff-line);border-radius:10px;background:var(--ff-paper);color:var(--ff-green);font:650 .84rem/1.35 var(--card-face);cursor:pointer;text-align:center}
.ff-social-links #connections{background-color:#fcf1f4;border-color:#ce9cad;color:#763d53}
.ff-social-links #matches{background-color:#eff7f1;border-color:#9cbca8}
.ff-connection-count{display:inline-grid;place-items:center;flex:none;box-sizing:border-box;min-width:1.25rem;height:1.25rem;padding-inline:.28rem;border-radius:999px;color:white;background:#88425c;font:700 .72rem/1 var(--card-face);font-variant-numeric:tabular-nums}
#matches .ff-connection-count{background:#35674f}
.ff-connection-count[hidden]{display:none}
.ff-social-links .ff-chain-icon{width:19px;height:19px;display:block;flex:none;color:var(--ff-green)}
.ff-heart-label::before{content:"♥";color:#aa4867;font-size:1rem;line-height:1}
.ff-connection-body{display:grid;gap:.65rem;padding:.85rem}
.ff-match-done{background:var(--ff-green);border-color:var(--ff-green);color:white}
.ff-connections #ff-inbox-list{padding:0;border:0;gap:5px;max-height:51dvh;font:600 .83rem/1.4 var(--card-face)}
.ff-connections #ff-inbox-list button{min-height:44px;padding:6px 8px}
.ff-connections #ff-inbox-list .ff-avatar{width:31px;height:31px;flex:none}
.ff-shell #ff-match{padding:1.3rem;text-align:center;align-items:center;gap:.4rem}
.ff-match-portraits{display:flex;align-items:center;justify-content:center;direction:ltr;gap:.5rem}
.ff-match-portraits .ff-avatar{width:65px;height:65px;font-size:1.15rem}
#ff-match-title{font-size:1.27rem;margin:.4rem 0 0}
.ff-match-names{font-weight:700;direction:ltr}
.ff-match-done{margin:.7rem auto 0;min-width:9rem}
.ff-person-actions{flex-direction:column;flex-wrap:nowrap}
.ff-person-actions .ff-withdraw{color:#952b34;background:#fff2f1;border-color:#d8a4a7}
.ff-person-actions .ff-withdraw:hover{background:#f9e2e1}
.ff-whatsapp-share{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:0 6px;color:var(--ff-green);font:650 .82rem/1.4 var(--card-face);cursor:pointer}
.ff-whatsapp-share input{appearance:none;display:grid;place-content:center;box-sizing:border-box;flex:0 0 20px;width:20px;height:20px;padding:0;margin:0;border-radius:50%;border:1.5px solid #85948a;background:var(--ff-paper);cursor:pointer}
.ff-whatsapp-share input:checked{background:var(--ff-green);border-color:var(--ff-green)}
.ff-whatsapp-share input:checked::after{content:"";width:8px;height:4px;border-left:2px solid white;border-bottom:2px solid white;transform:translateY(-1px) rotate(-45deg)}
.ff-whatsapp-share input:disabled{cursor:wait}
.ff-person-contact a{text-decoration:underline;text-underline-offset:3px}
@media(forced-colors:active){.ff-whatsapp-share input{appearance:auto}}
@media(prefers-reduced-motion:no-preference){
  #ff-splash{transition:opacity 220ms ease,display 220ms allow-discrete}
  #ff-splash[hidden]{opacity:0;pointer-events:none}
  .ff-cat-intro img{animation:ff-cats-meet 1.65s ease-in-out infinite}
  .ff-cat-intro .ff-link-icon{animation:ff-cats-link 1.65s ease-in-out infinite}
  @keyframes ff-cats-meet{0%,100%{transform:translateX(calc(-.35 * var(--approach)))}45%,65%{transform:translateX(calc(.52 * var(--approach))) translateY(-3px)}}
  @keyframes ff-cats-link{0%,100%{transform:scale(.7)}48%,65%{transform:translateY(-8px) scale(1.05)}}
  .ff-shell #future-region{animation-delay:65ms}
  .ff-shell #today-region{animation-delay:30ms}
  .ff-match-portraits .ff-avatar,.ff-match-link{animation:ff-arrive 320ms ease-out backwards}
}
.ff-shell .ff-join-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));direction:ltr;gap:6px;width:min(100%,19rem);margin-inline:auto}
.ff-join-pair>button{width:100%;min-width:0;height:100%;text-align:center}
.ff-actions button[data-action=join]:not(.ff-primary){color:#40494e;background:#e4e7e8;border-color:#b9c1c4}

/* Friend Finder social cards */
.ff-shell :is(#editor,#ff-participant,#ff-match,#ff-connections) {
  --social-arch:repeating-radial-gradient(ellipse at 100% 110%,transparent 0 12px,#ffffff24 13px 14px,transparent 15px 22px);
  width:min(25rem,calc(100% - 2rem));max-height:85dvh;border-radius:20px;
  color:var(--ff-ink);background:var(--ff-paper);box-shadow:var(--dialog-shadow);
}
.ff-shell :is(#ff-participant,#ff-match){padding:0 20px 20px}
:is(#ff-participant,#ff-match,#ff-connections)::backdrop{background:var(--dialog-backdrop)}
#editor>.choice-heading,.ff-person-stage,.ff-match-stage{
  background:var(--social-arch),linear-gradient(116deg,#144d42,#21634e);
}
.ff-person-stage,.ff-match-stage{
  margin:0 -20px 12px;display:grid;place-items:center;
}
.ff-person-stage{height:76px;position:relative;margin-bottom:44px}
.ff-person-close{z-index:1}
.ff-person-portrait{position:absolute;bottom:-32px;margin:0}
.ff-portrait-open{display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;font:inherit;cursor:zoom-in}
.ff-person-portrait .ff-avatar,.ff-match-portraits .ff-avatar{box-sizing:border-box;width:78px;height:78px}
.ff-photo-upload,.ff-person-portrait .ff-avatar,.ff-match-portraits .ff-avatar{
  box-shadow:0 0 0 4px var(--ff-paper),0 5px 16px #163c3226;
}
#ff-participant-name,#ff-match-title{font:750 1.42rem/1.4 var(--friendly-face,var(--card-face));color:var(--ff-ink);margin:0;overflow-wrap:anywhere}
.ff-match-event,.ff-person-event{margin:3px 0 0}
.ff-match-event,.ff-person-event,.ff-connections[data-view="matches"] #ff-inbox-list small{color:#68766e;overflow-wrap:anywhere}
.ff-person-photos:empty,.ff-person-contact:empty,.ff-person-feedback:empty,.ff-person-actions:empty{display:none}
.ff-person-contact a{min-height:40px;border-radius:24px;background:white;text-decoration:none}
.ff-person-feedback:not(:empty){width:fit-content;max-width:100%;box-sizing:border-box;margin:12px auto 0;padding:5px 13px;border-radius:16px;background:#edf3ea;color:#325746;font-weight:650}
.ff-person-feedback[data-error]{background:#fff0ef;color:#8c3838}
.ff-person-actions:not(:empty){border-top:1px solid var(--ff-line);padding-top:14px;margin-top:16px;gap:10px}
.ff-person-actions button,.ff-match-done{width:100%;min-height:44px;gap:8px;border-radius:14px;font-weight:750}
.ff-person-actions .ff-show-interest{background:#81465b;border-color:#81465b}
.ff-show-interest .icon{width:16px;height:16px}
.ff-person-actions .ff-withdraw{background:transparent;color:#734451;border-color:#dac8ce}
.ff-whatsapp-share{width:100%;box-sizing:border-box;padding:12px;gap:12px;border-radius:14px;background:#edf3ea;justify-content:space-between;text-align:start}
.ff-whatsapp-share span{display:grid;gap:3px}
.ff-whatsapp-share small{color:var(--ff-muted);font-weight:500;line-height:1.5}
.ff-whatsapp-share input{flex-basis:23px;height:23px;width:23px}
.ff-whatsapp-share:has(:checked){box-shadow:inset 0 0 0 1px #88b698}
.ff-shell #ff-match{align-items:stretch;gap:0}
.ff-match-stage{min-height:140px;margin-bottom:20px}
.ff-shell :is(#editor,#ff-connections,#ff-match,#ff-participant)::backdrop{backdrop-filter:blur(3px)}
.ff-connections #ff-inbox-list:is([data-empty],[data-error]){min-height:132px;align-content:center;justify-items:center;gap:10px}
.ff-connections[data-view="likes"] #ff-inbox-list[data-empty]{--status-cat:url("/assets/cats/tabby-happy.svg")}
.ff-connections #ff-inbox-list:is([data-empty],[data-error])::before{content:"";display:block;width:46px;height:46px;margin:0;background:var(--status-cat) center/contain no-repeat}
.ff-match-portraits{gap:9px}
.ff-match-link{box-sizing:content-box;background:#f5d3a9;color:#184d3d;border-radius:50%;padding:8px;width:18px;height:18px}
.ff-match-names{margin:6px 0 0;overflow-wrap:anywhere}
.ff-match-done{margin:16px auto 0}
.ff-connections .choice-heading{
  grid-template-columns:auto 1fr auto;gap:10px;padding:14px 16px;
  background:var(--social-arch),#1c5646;color:#fff;
}
.ff-connections[data-view="likes"] .choice-heading{background:var(--social-arch),#774253}
.ff-connections .choice-heading h2{color:inherit;text-align:left;margin:0}
.ff-list-symbol{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#ffffff20}
.ff-list-symbol .icon{width:19px;height:19px}
.ff-connections .ff-connection-body{padding:5px 14px}
.ff-connections #ff-inbox-list{gap:0;border-radius:0;padding-block:10px}
.ff-connections #ff-inbox-list button[data-member]{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;width:100%;min-height:64px;background:transparent;padding:8px 2px;border-radius:0}
.ff-connections #ff-inbox-list button[data-member]+button{border-top:1px solid var(--ff-line)}
.ff-connections #ff-inbox-list button[data-member]:is(:hover,:focus-visible){background:var(--ff-surface)}
.ff-connections #ff-inbox-list .ff-avatar{width:42px;height:42px}
.ff-connections #ff-inbox-list small{margin-top:3px;overflow-wrap:anywhere}
.ff-connections #ff-inbox-list bdi{font-size:.94rem;overflow-wrap:anywhere}
.ff-connections time{border:1px solid var(--ff-line);padding:3px 7px;border-radius:8px;font-size:.72rem;font-weight:650;color:var(--ff-muted)}
html[lang="fa"] .ff-connections #ff-inbox-list{direction:rtl}

.ff-person-contact a{gap:7px;max-width:100%;box-sizing:border-box}
.ff-person-contact img,.ff-whatsapp-share img{flex:none}
.ff-person-contact .ff-contact-instagram{
  border:1px solid transparent;color:#773252;
  background:linear-gradient(#fff7fa,#fff7fa) padding-box,linear-gradient(35deg,#d67413,#d83271,#7042ba) border-box;
}
.ff-person-contact .ff-contact-whatsapp,.ff-whatsapp-share{color:#165c39;background:#eff9f2;border:1px solid #80bf99}
.ff-whatsapp-share span{flex:1;min-width:0}
.ff-more-actions{width:100%}
.ff-person-actions:has(>.ff-more-actions:only-child){margin-top:5px;padding-top:0;border:0}
.ff-more-actions summary{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:fit-content;min-height:44px;margin:auto;padding:4px 12px;border-radius:10px;color:var(--ff-green);font:650 .8rem/1.4 var(--card-face);cursor:pointer;list-style:none}
.ff-more-actions summary::after{content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1px 1px 0;transform:translateY(-2px) rotate(45deg)}
.ff-more-actions[open] summary::after{transform:translateY(2px) rotate(225deg)}
.ff-more-actions summary:is(:hover,:focus-visible){background:var(--ff-surface)}
.ff-more-actions summary::-webkit-details-marker{display:none}
.ff-more-actions[open] summary{margin-bottom:10px}
.ff-removal-confirm{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;background:#fcf3f4;border-radius:14px}
.ff-removal-confirm p{grid-column:1/-1;margin:0;font-size:.88rem}
.ff-more-actions [hidden]{display:none}
