:root {
  --bg: #f3f6f8;
  --bg2: #ffffff;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2dd4bf;
  --accent-ink: #042f2e;
  --accent-dark: #0f766e;
  --good: #16a34a;
  --mid: #d97706;
  --bad: #e11d48;
  --nav: 86px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --android-sat: 0px;
  --android-sab: 0px;
  --android-sal: 0px;
  --android-sar: 0px;
  --sat: max(env(safe-area-inset-top, 0px), var(--android-sat));
  --sab: max(env(safe-area-inset-bottom, 0px), var(--android-sab));
  --sal: max(env(safe-area-inset-left, 0px), var(--android-sal));
  --sar: max(env(safe-area-inset-right, 0px), var(--android-sar));
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  color-scheme: light;
  font: 16px/1.45 system-ui, "Segoe UI", sans-serif;
}
html.ff-feed-on,
html.ff-feed-on body,
html.ff-shop-on,
html.ff-shop-on body,
html.ff-chat-on,
html.ff-chat-on body,
html.ff-me-on,
html.ff-me-on body {
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
}
html.klev-native {
  --android-sat: 36px;
  --android-sab: 20px;
}
body {
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
}
.ff { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--bg); }
.ff-screen { padding: 1.1rem 1rem 1.4rem; }
.ff-screen--main { padding-bottom: calc(var(--nav) + 1.2rem + var(--sab)); }
.ff-screen--main.is-cal {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: calc(-1 * var(--sat));
}
.ff-hero { text-align: center; padding: 2.2rem 0 1.1rem; }
.ff-logo { font-size: 3rem; }
.ff-logo img { width: 72px; height: 72px; border-radius: 18px; display: block; margin: 0 auto; }
.ff-hero h1, .ff-screen > h1 { font-size: 1.45rem; margin: 0.4rem 0 0.35rem; font-weight: 750; }
.ff-hero p, .ff-lead { color: var(--muted); margin: 0 0 1rem; }
.ff-auth-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 0.85rem;
  padding: 0.22rem;
  background: #1c1c1e;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.ff-auth-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: #4db6ac;
  border-radius: 999px;
  min-height: 42px;
  font-weight: 650;
  font-size: 0.92rem;
}
.ff-auth-tabs button.is-on {
  background: linear-gradient(180deg, #2c2c30 0%, #232326 100%);
  color: #5eead4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.ff-auth-or {
  text-align: center;
  margin: 0.55rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
#screen-auth #install-offer { display: none !important; }
.ff-btn--vk {
  background: #0077ff;
  color: #fff;
}
.ff-link {
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 650;
  padding: 0.35rem 0;
  text-align: left;
}
.ff-install {
  background: #fff;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 0.9rem;
}
.ff-install h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.ff-install p { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.9rem; }
.ff-install .ff-btn { margin-top: 0.35rem; }
.ff-ios-steps {
  margin: 0 0 0.7rem;
  padding: 0.6rem 0.6rem 0.6rem 1.4rem;
  background: #f0fdfa;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}
.ff-ios-steps li { margin: 0.25rem 0; }
@media (display-mode: standalone) {
  body { background: var(--accent-dark); }
}
.ff-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}
.ff-card label { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
input[type="tel"], input[type="text"], input[type="search"], input[type="file"],
input[type="email"], input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  font-size: 1.05rem;
  background: #f8fafc;
  color: var(--ink);
}
.ff-btn {
  border: 0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--accent-ink);
  min-height: 48px;
  display: block;
  text-align: center;
  text-decoration: none;
}
.ff-btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.ff-msg { margin: 0; color: var(--mid); font-size: 0.9rem; }
.ff-msg.is-err { color: var(--bad); }
.ff-list { display: grid; gap: 0.4rem; }
.ff-list button {
  text-align: left;
  background: #f8fafc;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
}
.ff-list small { display: block; color: var(--muted); font-size: 0.8rem; }
.ff-top { display: none; }
.ff-city-btn {
  display: none;
}
.ff-muted { color: var(--muted); font-size: 0.85rem; }

.ff-dash { padding: 0 0 1rem; }
.ff-hero-card {
  background: linear-gradient(160deg, #115e59 0%, #0f766e 55%, #0d9488 100%);
  color: #fff;
  padding: calc(1.15rem + var(--sat)) 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  border-radius: 0 0 22px 22px;
}
.ff-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  opacity: 0.8;
  font-weight: 700;
}
.ff-hero-city {
  display: block;
  margin: 0.15rem 0 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 800;
  text-align: left;
}
.ff-hero-meta { margin: 0; font-size: 0.88rem; opacity: 0.9; }
.ff-day-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
}
.ff-day-nav .ff-hero-meta {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.ff-day-nav button {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
}
.ff-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin: 0 0 0.8rem;
}
.ff-week__d {
  border: 0;
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.32rem 0.08rem;
  min-height: 48px;
  color: var(--ink);
}
.ff-week__d small {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
}
.ff-week__d b { font-size: 0.95rem; }
.ff-week__d.is-today { font-weight: 800; }
.ff-week__d.is-on {
  outline: 2px solid var(--accent-dark);
  background: #ccfbf1;
}
.ff-map-card {
  margin: 0.85rem 0 0.35rem;
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem;
  box-shadow: var(--shadow);
}
.ff-map-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.ff-map-place {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.ff-map-q {
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #f8fafc;
}
.ff-map-hits {
  margin: 0 0 0.45rem;
  max-height: 9.5rem;
  overflow-y: auto;
}
.ff-map-frame {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
  display: block;
  background: #0f172a;
}
.ff-map-acts { margin-top: 0.5rem; }
.ff-map-acts .ff-btn { width: 100%; }
.ff-map-top__acts { display: flex; gap: 0.35rem; flex: 0 0 auto; }
.ff-imap__hint { margin: 0 0 0.45rem; font-size: 0.8rem; }
.ff-imap {
  position: relative;
  width: 100%;
  height: min(58vh, 440px);
  border-radius: 14px;
  overflow: hidden;
  background: #1e293b;
  touch-action: none;
}
.ff-imap__layer { position: absolute; inset: 0; }
.ff-imap__tile {
  position: absolute;
  width: 256px;
  height: 256px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ff-imap__zoom {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.ff-imap__zoom button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font: 700 1.15rem/1 system-ui, sans-serif;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.ff-imap__copy {
  position: absolute;
  left: 0.45rem;
  bottom: 0.4rem;
  z-index: 2;
  margin: 0;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.ff-imap__save {
  margin: 0.5rem 0 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.ff-imap__save input {
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.ff-imap__save-row { display: flex; gap: 0.4rem; }
.ff-imap__save-row .ff-btn { flex: 1; }
.ff-spot-card {
  margin: 0.55rem 0 0;
  padding: 0.7rem 0.75rem;
  border: 1px solid #d7efec;
  border-radius: 14px;
  background: #f4fbfa;
}
.ff-spot-card__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
}
.ff-spot-card__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
}
.ff-spot-card__acts .ff-btn { margin: 0; }
.ff-spot-card__t {
  margin: 0.35rem 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.ff-spot-catch {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  margin: 0 0 0.3rem;
  font: inherit;
}
.ff-spot-link { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ff-spot-pin.is-on { background: #0f766e; outline: 2px solid #fff; }
.ff-composer__spot {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: #0f766e;
}
.ff-composer__spot .ff-btn { margin: 0.2rem 0.25rem 0 0; }
.ff-spots-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}
.ff-spots-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.ff-spot-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  background: #ef4444;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ff-spots-list { margin-top: 0.5rem; }
.ff-spot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
}
.ff-spot-row:last-child { border-bottom: 0; }
.ff-gauge {
  width: 86px;
  height: 86px;
  flex: 0 0 86px;
  border-radius: 50%;
  background: conic-gradient(#5eead4 calc(var(--p, 0) * 1%), rgba(255,255,255,.18) 0);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 8px rgba(15, 23, 42, 0.18);
}
.ff-gauge span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #134e4a;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.05;
  font-weight: 800;
}
.ff-gauge b { font-size: 1.15rem; }
.ff-gauge small { display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.8; }

.ff-dash-body { padding: 0.9rem 1rem 1.2rem; }
.ff-verdict {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--good);
}
.ff-verdict.is-ok { color: var(--mid); }
.ff-verdict.is-bad { color: var(--bad); }
.ff-weather-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  align-items: start;
}
.ff-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.ff-kpi {
  background: #fff;
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
  box-shadow: var(--shadow);
}
.ff-kpi span { display: block; color: var(--muted); font-size: 0.72rem; }
.ff-kpi b { font-size: 1.05rem; }
.ff-kpi em { display: block; font-style: normal; color: var(--muted); font-size: 0.72rem; margin-top: 0.1rem; }
.ff-wx {
  width: 92px;
  text-align: center;
  padding-top: 0.3rem;
}
.ff-wx .ff-wx-ico { font-size: 2.6rem; line-height: 1; }
.ff-wx small { display: block; color: var(--muted); margin-top: 0.25rem; font-size: 0.78rem; }

.ff-band {
  margin-top: 0.7rem;
  background: #e8f6fb;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
}
.ff-band--moon { background: #eef6ff; }
.ff-band strong { display: block; margin-bottom: 0.2rem; }
.ff-band p { margin: 0.15rem 0 0; color: #334155; }

.ff-sec { margin: 1rem 0 0.35rem; font-size: 1.02rem; }
.ff-sec small { color: var(--muted); font-weight: 500; float: right; }
.ff-bar-row {
  display: grid;
  grid-template-columns: 5.4rem 1fr 2.4rem;
  gap: 0.5rem;
  align-items: center;
  margin: 0.4rem 0;
  font-size: 0.9rem;
}
.ff-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.ff-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.ff-fish-row {
  display: grid;
  grid-template-columns: 1.4rem minmax(4.8rem, 6.4rem) 1fr 2.2rem;
  gap: 0.4rem;
  align-items: center;
  padding: 0.28rem 0;
}
.ff-fish-all { display: none; }
#ff-fish-box.is-all .ff-fish-best { display: none; }
#ff-fish-box.is-all .ff-fish-all { display: block; }
#ff-fish-more {
  width: 100%;
  margin-top: 0.35rem;
}
.ff-fish-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-fish-dot {
  width: 18px;
  height: 12px;
  border-radius: 40% 40% 40% 40% / 60% 60% 40% 40%;
}
.ff-cal-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 0.8rem;
  margin-top: 1rem;
  box-shadow: var(--shadow);
}
.ff-cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}
.ff-cal-head {
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.2rem 0;
}
.ff-cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}
.ff-cal-nav button {
  background: #f1f5f9;
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  font-size: 1.2rem;
}
.ff-cal-cell {
  background: #f8fafc;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  padding: 0.4rem 0.1rem;
  font-size: 0.72rem;
  min-height: 52px;
}
.ff-cal-cell.is-today { font-weight: 800; }
.ff-cal-cell.is-on {
  outline: 2px solid var(--accent-dark);
  box-shadow: 0 0 0 3px #ccfbf1;
  font-weight: 800;
}
.ff-share {
  width: 100%;
  margin: 0.15rem 0 0.85rem;
}
.ff-share-sheet { max-width: 26rem; }
.ff-share-acts { display: grid; gap: 0.45rem; margin-top: 0.35rem; }

.ff-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0;
  background: transparent;
  border: 0;
  padding: 0 0.7rem calc(0.42rem + var(--sab));
  z-index: 20;
  pointer-events: none;
}
.ff-nav__bar {
  pointer-events: auto;
  width: 100%;
  max-width: 560px;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f4fbfa;
  border: 1px solid #d7efec;
  border-radius: 999px;
  padding: 0.18rem;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.1);
}
.ff-nav__btn {
  flex: 1 1 0;
  max-width: none;
  min-width: 0;
  background: transparent;
  color: #5b7c79;
  border: 0;
  border-radius: 999px;
  min-height: 52px;
  padding: 0.22rem 0.02rem 0.16rem;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
}
.ff-nav__ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  line-height: 0;
  position: relative;
}
.ff-nav__ico svg { display: block; }
.ff-nav__badge {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
.ff-nav__lbl {
  line-height: 1.1;
  white-space: nowrap;
}
.ff-nav__btn.is-on {
  background: rgba(45, 212, 191, 0.14);
  color: #0f766e;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.1), 0 0 12px rgba(45, 212, 191, 0.32);
}
.ff-nav__btn--plus {
  flex: 0 0 2.7rem;
  max-width: 2.7rem;
  align-self: center;
  min-height: 2.55rem;
  height: 2.55rem;
  padding: 0;
  color: #0f766e;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(15, 118, 110, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(45, 212, 191, 0.28);
}
.ff-nav__btn--plus.is-on {
  background: rgba(45, 212, 191, 0.16);
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 14px rgba(45, 212, 191, 0.4);
}
.ff-nav__btn--plus .ff-nav__lbl { display: none; }
.ff-nav__lbl--ghost {
  visibility: hidden;
  pointer-events: none;
}
.ff-pane--feed {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--nav) - 1.5rem - var(--sat) - var(--sab));
  min-height: 0;
}
.ff-screen--main.is-feed {
  padding: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ff-screen--main.is-feed .ff-pane--feed {
  margin: 0;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding: 0;
  padding-bottom: calc(var(--nav) + var(--sab));
}
.ff-screen--main.is-feed .ff-feed {
  padding: 0 0.5rem 1rem;
  gap: 0.6rem;
  height: 100%;
}
.ff-screen--main.is-feed .ff-post {
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  overflow: hidden;
}
.ff-feed > #stories-bar {
  flex: 0 0 auto;
  position: static;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.ff-screen--main.is-feed .ff-stories {
  padding-top: calc(0.35rem + var(--sat));
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  background: #fff;
}
.ff-stories {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem 0.9rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-stories::-webkit-scrollbar { display: none; }
.ff-story {
  flex: 0 0 auto;
  width: 92px;
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.38rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.ff-story span.ff-story__name {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-story__ring {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(145deg, #2dd4bf, #0f766e);
  position: relative;
  box-shadow: none;
}
.ff-story--me .ff-story__ring { background: #cbd5e1; }
.ff-story--me.has-story .ff-story__ring { background: linear-gradient(145deg, #2dd4bf, #0f766e); }
.ff-story__ring img,
.ff-story__ph {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: #1a1d21;
}
.ff-story__plus {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.28);
  font-size: 0;
  line-height: 0;
}
.ff-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0 0.35rem 1rem;
}
.ff-feed-sent {
  flex: 0 0 auto;
  height: 1px;
  pointer-events: none;
}
.ff-post {
  position: relative;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.ff-media {
  display: block;
  background: #0f172a;
  min-height: 0;
  position: relative;
}
.ff-media.is-1 {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f4f7f8;
  min-height: 0;
}
.ff-media.is-1 img,
.ff-media.is-1 video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(62vh, 26rem);
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  margin: 0 auto;
  vertical-align: top;
}
.ff-media.is-1[data-act="zoom"] { cursor: pointer; }
.ff-media.is-1:has(video) { cursor: pointer; }
.ff-collage {
  display: grid;
  gap: 3px;
  background: #0f172a;
  overflow: hidden;
  width: 100%;
  max-height: 28rem;
  position: relative;
}
.ff-collage--2 {
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 2 / 1.12;
}
.ff-collage--3 {
  grid-template-columns: 1.18fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 0.98;
}
.ff-collage--3 .ff-collage__cell:first-child { grid-row: 1 / span 2; }
.ff-collage--4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 1;
}
.ff-collage--5 {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1.18fr 1fr;
  aspect-ratio: 1 / 1.05;
}
.ff-collage--5 .ff-collage__cell:nth-child(1) { grid-column: 1 / 4; grid-row: 1; }
.ff-collage--5 .ff-collage__cell:nth-child(2) { grid-column: 4 / 7; grid-row: 1; }
.ff-collage--5 .ff-collage__cell:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
.ff-collage--5 .ff-collage__cell:nth-child(4) { grid-column: 3 / 5; grid-row: 2; }
.ff-collage--5 .ff-collage__cell:nth-child(5) { grid-column: 5 / 7; grid-row: 2; }
.ff-collage--6,
.ff-collage.is-many {
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: minmax(5.4rem, 1fr);
  max-height: 32rem;
}
.ff-collage__cell {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #0f172a;
  position: relative;
  display: block;
}
.ff-collage__cell img,
.ff-collage__cell video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ff-collage__play { display: none !important; }
.ff-vid-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0f172a;
  z-index: 1;
  pointer-events: none;
}
.ff-collage__cell .ff-vid-poster,
.ff-collage__cell img.ff-cover {
  object-fit: cover;
}
.ff-media.is-playing > .ff-vid-poster,
.ff-carousel__slide.is-playing > .ff-vid-poster {
  display: none;
}
.ff-media video::-webkit-media-controls-start-playback-button,
.ff-media video::-webkit-media-controls-overlay-play-button,
.ff-carousel video::-webkit-media-controls-start-playback-button,
.ff-carousel video::-webkit-media-controls-overlay-play-button,
.ff-collage video::-webkit-media-controls-overlay-play-button,
.ff-collage video::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
}
.ff-carousel {
  position: relative;
  background: #0f172a;
}
.ff-carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-carousel__track::-webkit-scrollbar { display: none; }
.ff-carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}
.ff-carousel__slide img,
.ff-carousel__slide video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0f172a;
}
.ff-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  z-index: 2;
}
.ff-carousel__prev { left: 0.4rem; }
.ff-carousel__next { right: 0.4rem; }
.ff-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.28rem;
  padding: 0.4rem 0 0.55rem;
  background: #0f172a;
}
.ff-carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 0;
  padding: 0;
}
.ff-carousel__dot.is-on { background: #fff; width: 16px; border-radius: 999px; }
.ff-carousel__n {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.ff-post--photo-text .ff-media.is-1 img,
.ff-post--photo-text .ff-media.is-1 video {
  width: auto;
  max-width: 100%;
  max-height: min(62vh, 26rem);
}
.ff-cap a.ff-link-in,
.ff-mini-post a.ff-link-in,
.ff-story-view__cap a.ff-link-in {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  word-break: break-word;
}
.ff-shop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.2rem 0.2rem 0.1rem 0;
  padding: 0.5rem 0.95rem;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font: 800 0.88rem/1.2 system-ui, sans-serif;
}
.ff-shop-cta-row { margin-top: 0.45rem; }
.ff-story-view__ctas .ff-shop-cta { min-height: 44px; }
.ff-react {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.ff-react .ff-side__btn,
.ff-react .ff-like,
.ff-react .ff-share-btn {
  flex-direction: row;
  min-width: 0;
  min-height: 40px;
  padding: 0.28rem 0.7rem;
  background: #f1f5f9;
  box-shadow: none;
  gap: 0.35rem;
}
.ff-like-n,
.ff-view-n {
  font-size: 0.92rem;
  font-weight: 800;
}
.ff-side__btn,
.ff-like {
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  font: inherit;
  min-width: 48px;
  min-height: 48px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
.ff-side__btn span,
.ff-like span { font-size: 1.25rem; line-height: 1; }
.ff-like.is-on { color: #e11d48; background: #fff; }
.ff-ico {
  width: 1.42rem;
  height: 1.42rem;
  display: inline-block;
  flex: 0 0 auto;
  transform: translateZ(0);
}
.ff-ico--heart {
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 42%, #64748b 100%);
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.75))
    drop-shadow(0 2px 3px rgba(15, 23, 42, 0.28));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12.1 21.35l-1.1-1C6.14 15.7 3 12.78 3 9.2 3 6.3 5.32 4 8.2 4c1.74 0 3.41.81 4.5 2.09C13.79 4.81 15.46 4 17.2 4 20.08 4 22.4 6.3 22.4 9.2c0 3.58-3.14 6.5-7.99 11.15l-1.11 1z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12.1 21.35l-1.1-1C6.14 15.7 3 12.78 3 9.2 3 6.3 5.32 4 8.2 4c1.74 0 3.41.81 4.5 2.09C13.79 4.81 15.46 4 17.2 4 20.08 4 22.4 6.3 22.4 9.2c0 3.58-3.14 6.5-7.99 11.15l-1.11 1z'/></svg>") center / contain no-repeat;
}
.ff-like.is-on .ff-ico--heart {
  background: linear-gradient(180deg, #fecdd3 0%, #fb7185 28%, #e11d48 58%, #9f1239 100%);
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.55))
    drop-shadow(0 3px 4px rgba(159, 18, 57, 0.42));
  transform: scale(1.08);
}
.ff-ico--eye {
  background: linear-gradient(180deg, #f1f5f9 0%, #94a3b8 40%, #334155 100%);
  filter:
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.8))
    drop-shadow(0 2px 3px rgba(15, 23, 42, 0.28));
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 5C6.5 5 2.3 9.2 1 12c1.3 2.8 5.5 7 11 7s9.7-4.2 11-7c-1.3-2.8-5.5-7-11-7zm0 11.5A4.5 4.5 0 1 1 16.5 12 4.5 4.5 0 0 1 12 16.5zM12 9.5A2.5 2.5 0 1 0 14.5 12 2.5 2.5 0 0 0 12 9.5z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 5C6.5 5 2.3 9.2 1 12c1.3 2.8 5.5 7 11 7s9.7-4.2 11-7c-1.3-2.8-5.5-7-11-7zm0 11.5A4.5 4.5 0 1 1 16.5 12 4.5 4.5 0 0 1 12 16.5zM12 9.5A2.5 2.5 0 1 0 14.5 12 2.5 2.5 0 0 0 12 9.5z'/></svg>") center / contain no-repeat;
}
.ff-media,
.ff-carousel {
  position: relative;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.ff-media img,
.ff-carousel img,
.ff-media video,
.ff-carousel video {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.ff-mute {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ff-carousel .ff-mute { bottom: 2.45rem; }
.ff-mute.is-muted .ff-mute__on { display: none; }
.ff-mute:not(.is-muted) .ff-mute__off { display: none; }
.ff-mute svg { display: block; }
.ff-media-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.55rem 1.4rem;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.12) 70%, transparent);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.ff-media-bar > * { pointer-events: auto; }
.ff-media-bar .ff-ava {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}
.ff-media-bar__who {
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-media-bar .ff-author { color: #fff; }
.ff-follow {
  flex: 0 0 auto;
  border: 0;
  background: #fff;
  color: #0f766e;
  font: 700 0.72rem/1 system-ui, sans-serif;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  min-height: 30px;
}
.ff-follow.is-on {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75);
}
.ff-dots { flex: 0 0 auto; }
.ff-dots__btn {
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
}
.ff-dots__btn svg { display: block; }
.ff-dots--ink .ff-dots__btn { color: #0f172a; }
.ff-cap__top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: space-between;
}
.ff-cap__top .ff-kind { margin-bottom: 0; }
.ff-post-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ff-post-menu[hidden] { display: none; }
.ff-post-menu__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}
.ff-post-menu__sheet {
  position: relative;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 0.45rem 0.55rem calc(0.65rem + var(--sab));
  box-shadow: 0 -10px 32px rgba(15, 23, 42, 0.16);
}
.ff-post-menu__sheet button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 48px;
  border: 0;
  background: transparent;
  font: 700 1rem/1.2 system-ui, sans-serif;
  padding: 0 0.7rem;
  color: var(--ink);
}
.ff-post-menu__sheet .is-danger { color: #b91c1c; }
.ff-post-menu__sheet #post-menu-cancel {
  margin-top: 0.2rem;
  color: #64748b;
  font-weight: 650;
  border-top: 1px solid #eef2f5;
}
.ff-heart-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  font-size: 5.2rem;
  line-height: 1;
  color: #fff;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
  animation: ff-heart-pop 0.72s ease-out forwards;
  filter: drop-shadow(0 6px 16px rgba(225, 29, 72, 0.45));
}
.ff-heart-burst--ink { color: #e11d48; }
@keyframes ff-heart-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.12); }
  22% { opacity: 1; transform: translate(-50%, -50%) scale(1.18); }
  52% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.06); }
}
.ff-author {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-align: left;
}
.ff-profile-head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.ff-ava {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #ccfbf1;
  flex: 0 0 auto;
}
.ff-ava--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent-dark);
}
.ff-ava--ph svg { display: block; color: #1a1d21; }
.ff-stats {
  display: flex;
  gap: 1.1rem;
  margin: 0.4rem 0 0.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.ff-stats b { display: block; color: var(--ink); font-size: 1.05rem; }
.ff-admin-kpis { flex-wrap: wrap; gap: 0.55rem 0.85rem; }
.ff-admin-kpis > div { min-width: 5.2rem; max-width: 8rem; }
.ff-admin-row {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.ff-admin-row__body { min-width: 0; flex: 1 1 auto; }
.ff-admin-thumbs {
  display: flex;
  gap: 0.28rem;
  flex: 0 0 auto;
}
.ff-admin-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}
.ff-admin-thumb img,
.ff-admin-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-admin-thumb--vid::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  background: rgba(15, 23, 42, 0.28);
  pointer-events: none;
}
.ff-admin-media {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 0.45rem;
}
.ff-admin-media img,
.ff-admin-media video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}
.ff-admin-media video { object-fit: contain; background: #0b1220; }
.ff-admin-row p { margin: 0.15rem 0 0; font-size: 0.92rem; }
.ff-admin-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}
.ff-admin-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  min-height: 36px;
  padding: 0 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
}
.ff-admin-btn--danger { color: #b91c1c; border-color: #fecaca; }
.ff-mini-post {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.ff-st-pending { color: #b45309; font-size: 0.78rem; font-weight: 700; }
.ff-st-rejected { color: #b91c1c; font-size: 0.78rem; font-weight: 700; }
.ff-profile-sheet { max-height: min(92dvh, 860px); overflow-y: auto; }
.ff-ig-handle { margin: 0.1rem 0 0; font-size: 0.88rem; color: var(--muted); }
.ff-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 0.75rem -0.15rem 0;
}
.ff-ig-cell {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #e2e8f0;
  overflow: hidden;
}
.ff-ig-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-ig-txt {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.4rem;
  font-size: 0.68rem;
  color: #475569;
  text-align: center;
}
.ff-ig-play {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
  z-index: 1;
}
.ff-find { padding: 0.15rem 0.15rem 0.45rem; }
.ff-find input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  background: #fff;
}
.ff-find-hit {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 0.45rem 0.1rem;
}
.ff-find-hit .ff-ava { width: 40px; height: 40px; }
.ff-find-hit i { color: var(--muted); font-style: normal; }
.ff-compose__feed {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  color: var(--ink);
}
.ff-pr-post { margin-top: 0.6rem; }
.ff-me-form label { display: grid; gap: 0.25rem; font-size: 0.85rem; color: var(--muted); }
.ff-me-form input,
.ff-me-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #f8fafc;
}
.ff-post .ff-cap {
  position: static;
  padding: 0.7rem 0.85rem 0.8rem;
  background: none;
  color: var(--ink);
}
.ff-post .ff-cap b { display: inline; margin-bottom: 0; }
.ff-post .ff-cap p {
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
}
.ff-post .ff-cap__text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ff-post.is-open .ff-cap__text {
  display: inline;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.ff-cap__wrap {
  position: relative;
  margin-top: 0.25rem;
}
.ff-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #f0fdfa;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 750;
  font-size: 0.88rem;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  margin: 0.45rem 0 0.15rem;
  border-radius: 10px;
}
.ff-post .ff-more {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0 0 0 1.35rem;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #fff 0.9rem, #fff 100%);
  color: #0f766e;
  font: 700 0.72rem/1.45 system-ui, sans-serif;
}
.ff-post.is-open .ff-more {
  position: static;
  display: inline;
  padding: 0;
  margin: 0 0 0 0.35rem;
  background: none;
  vertical-align: baseline;
}
.ff-kind {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #ccfbf1;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.ff-fab {
  position: fixed;
  right: max(1rem, var(--sar));
  bottom: calc(var(--nav) + 0.7rem + var(--sab));
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  z-index: 21;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}
.ff-compose {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 30;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.ff-compose.is-kb {
  top: var(--ff-vv-top, 0px);
  height: var(--ff-vv-h, 100dvh);
  bottom: auto;
}
.ff-compose[hidden],
.ff-fab[hidden],
.ff-story-view[hidden],
.ff-zoom[hidden],
[hidden] {
  display: none !important;
}
.ff-compose__sheet {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 0;
  padding: calc(0.45rem + var(--sat)) 1rem calc(0.45rem + var(--sab));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 0;
  box-shadow: none;
}
.ff-composer {
  height: 100%;
  max-height: none;
  overflow: hidden;
}
.ff-composer__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.ff-composer__top h2 {
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
}
.ff-composer__x {
  width: 40px;
  height: 40px;
  border: 0;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
}
.ff-composer__go {
  border: 0;
  background: var(--accent-dark);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.ff-composer__go:disabled { opacity: 0.55; }
.ff-composer__me {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.ff-composer__me .ff-ava { width: 40px; height: 40px; }
.ff-composer__me small { display: block; font-weight: 500; color: var(--muted); }
.ff-compose.is-kb .ff-composer__me,
.ff-compose.is-kb .ff-composer__hint { display: none; }
.ff-compose.is-kb .ff-story-btns { display: flex; }
.ff-compose.is-kb .ff-stmake__tools { display: flex; }
.ff-compose__sheet textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 0.55rem;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  resize: none;
  min-height: 6.5rem;
  flex: 1 1 auto;
  box-sizing: border-box;
}
#story-text { min-height: 4.5rem; }
.ff-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
}
.ff-stmake {
  background: #0b0f14;
  color: #fff;
}
.ff-stmake__sheet {
  background: #0b0f14;
  color: #fff;
  gap: 0.65rem;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ff-stmake__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.ff-stmake__top h2 {
  flex: 1;
  margin: 0;
  font-size: 1.02rem;
  text-align: center;
  font-weight: 750;
}
.ff-stmake__x,
.ff-stmake__send {
  border: 0;
  min-height: 40px;
  font: inherit;
  font-weight: 750;
}
.ff-stmake__x {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
}
.ff-stmake__send {
  background: #fff;
  color: #0b0f14;
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.92rem;
}
.ff-stmake__send:disabled { opacity: 0.5; }
.ff-stmake__stage {
  flex: 1 1 auto;
  min-height: 8rem;
  border-radius: 18px;
  background: #141a22;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ff-stmake__empty {
  flex: 1;
  display: grid;
  place-content: center;
  place-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1.5rem 1rem;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
}
.ff-stmake__empty p { margin: 0; font-size: 1.05rem; font-weight: 750; color: #fff; }
.ff-stmake__empty small { color: rgba(255,255,255,0.5); }
.ff-stmake #story-grid {
  max-height: none;
  flex: 1;
  margin: 0;
  padding: 0.55rem;
  background: transparent;
  grid-template-columns: repeat(auto-fill, minmax(7.2rem, 1fr));
  align-content: start;
}
.ff-stmake .ff-composer__tile {
  background: #1c2430;
  aspect-ratio: 9 / 16;
}
.ff-stmake #story-grid[hidden] { display: none !important; }
.ff-stmake #story-text {
  min-height: 3.2rem;
  flex: 0 0 auto;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 14px;
}
.ff-stmake #story-text::placeholder { color: rgba(255,255,255,0.42); }
.ff-stmake__bar {
  margin: 0;
  background: #2563eb;
  color: #fff;
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-weight: 750;
  font-size: 0.9rem;
}
.ff-stmake__bar.is-work {
  background: linear-gradient(90deg, #1d4ed8, #3b82f6, #1d4ed8);
  background-size: 180% 100%;
  animation: ff-stbar 1.1s linear infinite;
}
@keyframes ff-stbar {
  to { background-position: 180% 0; }
}
.ff-stmake__bar.is-err { background: #be123c; animation: none; }
.ff-stmake__bar.is-ok { background: #0f766e; animation: none; }
.ff-story-btns {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 0 0 auto;
}
.ff-stmake__tools {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.15rem 0 0.35rem;
}
.ff-stmake__tool {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.38rem;
  min-height: 76px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  padding: 0;
}
.ff-stmake__tool b {
  font-size: 0.75rem;
  font-weight: 650;
  color: rgba(255,255,255,0.78);
}
.ff-stmake__fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ff-stmake__empty .ff-stmake__fab {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.16);
  margin-bottom: 0.15rem;
}
.ff-stmake__ico {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
  background: #fff;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.ff-stmake__ico--photo {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 5h-3.2l-1.2-2H8.4L7.2 5H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-8 13.2A5.2 5.2 0 1 1 17.2 13 5.2 5.2 0 0 1 12 18.2zM12 9.4A3.6 3.6 0 1 0 15.6 13 3.6 3.6 0 0 0 12 9.4z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M20 5h-3.2l-1.2-2H8.4L7.2 5H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-8 13.2A5.2 5.2 0 1 1 17.2 13 5.2 5.2 0 0 1 12 18.2zM12 9.4A3.6 3.6 0 1 0 15.6 13 3.6 3.6 0 0 0 12 9.4z'/></svg>");
}
.ff-stmake__ico--video {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M17 10.5V7c0-1.1-.9-2-2-2H4C2.9 5 2 5.9 2 7v10c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2v-3.5l5 4v-11l-5 4z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M17 10.5V7c0-1.1-.9-2-2-2H4C2.9 5 2 5.9 2 7v10c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2v-3.5l5 4v-11l-5 4z'/></svg>");
}
.ff-stmake__ico--link {
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3.9 12a5 5 0 0 1 5-5h4v2h-4a3 3 0 0 0 0 6h4v2h-4a5 5 0 0 1-5-5zm7.1 1h2v-2h-2v2zm4.1-6h4a5 5 0 0 1 0 10h-4v-2h4a3 3 0 0 0 0-6h-4V7z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3.9 12a5 5 0 0 1 5-5h4v2h-4a3 3 0 0 0 0 6h4v2h-4a5 5 0 0 1-5-5zm7.1 1h2v-2h-2v2zm4.1-6h4a5 5 0 0 1 0 10h-4v-2h4a3 3 0 0 0 0-6h-4V7z'/></svg>");
}
.ff-stmake .ff-story-btnrow {
  background: #fff;
  border: 0;
  border-radius: 16px;
  padding: 0.7rem 0.75rem 0.75rem;
}
.ff-stmake .ff-story-btnrow input {
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 12px;
  min-height: 44px;
}
.ff-stmake .ff-story-btnrm {
  background: #e2e8f0;
  color: #0f172a;
}
.ff-composer__clip {
  position: relative;
  overflow: hidden;
}
.ff-story-btnrow {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  position: relative;
}
.ff-story-btnrow input {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  min-height: 44px;
  box-sizing: border-box;
}
.ff-story-btnrm {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1;
}
.ff-story-view__cap a.ff-link-in {
  color: #fff;
}
.ff-story-view__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.ff-story-cta {
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  min-height: 44px;
}
.ff-composer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.15rem 0 0.2rem;
  flex: 0 1 auto;
  max-height: 34vh;
  overflow-y: auto;
}
.ff-compose.is-kb .ff-composer__grid {
  max-height: 4.8rem;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: 4.6rem;
  overflow-x: auto;
  overflow-y: hidden;
}
.ff-composer__tile,
.ff-composer__addtile {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}
.ff-composer__tile img,
.ff-composer__tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-composer__spin {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}
.ff-composer__spin i {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.28);
  border-top-color: #fff;
  animation: ff-spin 0.7s linear infinite;
}
.ff-composer__ok {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 1px 5px rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: 2;
}
.ff-composer__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: #1e293b;
}
.ff-composer__ph--video {
  background: #1e293b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M17 10.5V7c0-1.1-.9-2-2-2H4C2.9 5 2 5.9 2 7v10c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2v-3.5l5 4v-11l-5 4z'/></svg>") center / 2.2rem no-repeat;
}
@keyframes ff-spin {
  to { transform: rotate(360deg); }
}
.ff-composer__rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 0.85rem;
  line-height: 22px;
}
.ff-composer__addtile {
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 1.6rem;
}
.ff-composer__st {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  pointer-events: none;
}
.ff-composer__st.is-ok { background: rgba(13, 148, 136, 0.88); }
.ff-composer__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}
.ff-composer__tile.is-busy .ff-composer__play { opacity: 0.35; }
  font-size: 0.85rem;
}
.ff-composer__tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.4rem;
}
.ff-composer__clip {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #1a1d21;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ff-composer__clip .ff-stmake__ico {
  background: #0f766e;
}
.ff-composer__tool {
  border: 0;
  background: #ecfdf5;
  color: var(--accent-dark);
  border-radius: 12px;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  padding: 0 0.85rem;
}
.ff-composer__emo {
  display: flex;
  gap: 0.2rem;
  overflow-x: auto;
}
.ff-composer__emo button {
  flex: 0 0 auto;
  border: 0;
  background: #f1f5f9;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.15rem;
}
.ff-composer__hint { margin: 0; color: var(--muted); font-size: 0.78rem; }
.ff-story-view {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #0b1220;
  color: #fff;
}
.ff-story-view__bars {
  display: flex;
  gap: 3px;
  padding: 0.7rem 0.7rem 0.4rem;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--sat);
  z-index: 2;
}
.ff-story-view__bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.28);
  border-radius: 99px;
  overflow: hidden;
}
.ff-story-view__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.ff-story-view__bar.is-done i { width: 100%; }
.ff-story-view__bar.is-on i { animation: ffStoryFill 4.5s linear forwards; }
@keyframes ffStoryFill { from { width: 0; } to { width: 100%; } }
.ff-story-view__top {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(1.3rem + var(--sat));
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.75rem;
  font-weight: 700;
}
.ff-story-view__top .ff-ava { width: 32px; height: 32px; }
.ff-story-view__x {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
}
.ff-story-view__del {
  border: 0;
  background: rgba(15, 23, 42, 0.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
}
.ff-story-view__top .ff-follow {
  margin-left: 0.15rem;
}
.ff-story-view__snd {
  position: absolute;
  right: 0.75rem;
  bottom: calc(1.2rem + var(--sab));
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}
.ff-story-view__snd.is-off { opacity: 0.72; }
.ff-story-view__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.ff-story-view__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.2rem 1rem calc(1.4rem + var(--sab));
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  z-index: 4;
  white-space: pre-wrap;
  pointer-events: auto;
}
.ff-story-view__hit {
  position: absolute;
  top: 18%;
  bottom: 18%;
  width: 42%;
  z-index: 3;
}
.ff-story-view__hit--l { left: 0; }
.ff-story-view__hit--r { right: 0; }
.ff-empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
@media (max-width: 420px) {
  .ff-nav__btn { min-height: 48px; font-size: 0.5rem; }
}
@media (min-width: 900px) {
  .ff { padding-top: 0; box-shadow: var(--shadow); }
}

.ff-pane--game {
  margin: 0 -1rem;
  min-height: calc(100dvh - var(--nav) - 1.4rem - var(--sab));
}
.fq-hub-card .ff-btn { margin-top: 0.15rem; }

.fq {
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color: #2b1908;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
}
.fq-app {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,200,0.25), transparent 40%),
    repeating-linear-gradient(-18deg, #4f8a22 0 14px, #3f7419 14px 28px);
  border: 4px solid #3b220c;
  border-radius: 18px;
  min-height: calc(100dvh - var(--nav) - 1.6rem - var(--sab));
  padding: 0.7rem 0.7rem 1rem;
  box-shadow: 0 8px 0 #2a1608, 0 12px 24px rgba(0,0,0,0.25);
}
.fq-app--menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1.4rem 1rem;
}
.fq-logo { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 4px 0 #2a1608); }
.fq-title {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  color: #fff8dc;
  text-shadow: 3px 3px 0 #2a1608, -1px -1px 0 #2a1608;
  letter-spacing: 0.02em;
}
.fq-tag, .fq-best {
  margin: 0;
  color: #e8f5c8;
  font-weight: 700;
  text-shadow: 1px 1px 0 #2a1608;
}
.fq-end { text-align: left; white-space: normal; line-height: 1.4; }
.fq-hud {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: space-between;
  background: #fff3b0;
  border: 3px solid #3b220c;
  border-radius: 12px;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}
.fq-hud i { color: #b45309; font-style: normal; }
.fq-scene, .fq-mini {
  background: #fff8dc;
  border: 3px solid #3b220c;
  border-radius: 14px;
  padding: 0.75rem 0.7rem 0.85rem;
  box-shadow: 4px 4px 0 #2a1608;
  overflow: hidden;
}
.fq-art {
  margin: -0.75rem -0.7rem 0.65rem;
  overflow: hidden;
  border-bottom: 3px solid #3b220c;
  background: #1c1008;
  line-height: 0;
}
.fq-art img {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  object-position: center 28%;
}
.fq-art--hero {
  margin: 0 0 0.7rem;
  border: 3px solid #3b220c;
  border-radius: 14px;
  box-shadow: 4px 4px 0 #2a1608;
}
.fq-art--hero img {
  height: 168px;
  object-position: center 58%;
  border-radius: 11px;
}
.fq-mini--fish .fq-art img { height: 92px; object-position: center 45%; }
.fq-ava.fq-ava--pic {
  display: block;
  width: 56px;
  height: 56px;
  padding: 0;
  font-size: 0;
  color: transparent;
  object-fit: cover;
  object-position: center 18%;
  background: #fff8dc;
}
.fq-mini h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.fq-hint { margin: 0 0 0.6rem; color: #6b4a1b; font-size: 0.88rem; font-weight: 650; }
.fq-who {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.fq-who small { display: block; color: #7c5a2a; font-weight: 650; }
.fq-ava {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  border: 3px solid #3b220c;
  color: #fff;
  flex: 0 0 auto;
}
.fq-bubble {
  background: #fff;
  border: 2px dashed #c4a574;
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 4.5rem;
  margin-bottom: 0.65rem;
}
.fq-choices, .fq-fish-act { display: grid; gap: 0.45rem; }
.fq-choice, .fq-btn, .fq-item, .fq-spot, .fq-wake, .fq-snooze {
  font: inherit;
  font-weight: 800;
  border: 3px solid #3b220c;
  border-radius: 12px;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  box-shadow: 0 3px 0 #2a1608;
}
.fq-choice, .fq-item, .fq-spot {
  background: #ffe566;
  color: #2b1908;
  text-align: left;
}
.fq-choice:active, .fq-btn:active, .fq-item:active, .fq-spot:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #2a1608;
}
.fq-btn {
  background: #7ed957;
  color: #14330a;
  text-align: center;
}
.fq-btn--go {
  background: #ffd93d;
  font-size: 1.05rem;
}
.fq-btn--ghost {
  background: #f4e4c1;
  color: #3b220c;
}
.fq-btn[disabled] { opacity: 0.45; }
.fq-alarm {
  position: relative;
  height: 220px;
  background: radial-gradient(circle at 50% 30%, #fff, #fde68a 55%, #f59e0b);
  border: 3px solid #3b220c;
  border-radius: 14px;
  overflow: hidden;
  touch-action: none;
  margin-bottom: 0.55rem;
}
.fq-clock {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: 900;
  color: #7f1d1d;
}
.fq-snooze {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: #fda4af;
  font-size: 0.85rem;
  min-height: 40px;
  padding: 0.35rem 0.6rem;
  z-index: 2;
}
.fq-wake {
  position: absolute;
  background: #86efac;
  font-size: 0.95rem;
  z-index: 3;
  touch-action: none;
}
.fq-bar {
  height: 12px;
  background: #e7d3a1;
  border: 2px solid #3b220c;
  border-radius: 99px;
  overflow: hidden;
}
.fq-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #16a34a;
}
.fq-timer { margin: 0.4rem 0 0; font-weight: 800; text-align: center; }
.fq-items, .fq-spots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.fq-item, .fq-spot {
  display: grid;
  gap: 0.15rem;
  min-height: 84px;
}
.fq-item.is-on { background: #86efac; outline: 3px solid #166534; }
.fq-item__ico, .fq-spot span { font-size: 1.4rem; }
.fq-item small, .fq-spot small { color: #6b4a1b; font-size: 0.72rem; font-weight: 650; }
.fq-pump { height: 180px; margin: 0.4rem 0 0.6rem; }
.fq-pump__track {
  position: relative;
  width: 46px;
  height: 100%;
  margin: 0 auto;
  background: #e7d3a1;
  border: 3px solid #3b220c;
  border-radius: 99px;
  overflow: hidden;
}
.fq-pump__green {
  position: absolute;
  left: 0; right: 0;
  height: 22%;
  background: rgba(34, 197, 94, 0.55);
}
.fq-pump__knob {
  position: absolute;
  left: 4px; right: 4px;
  height: 14px;
  background: #dc2626;
  border-radius: 8px;
  border: 2px solid #3b220c;
}
.fq-mini--fish .fq-cv {
  width: 100%;
  height: 240px;
  display: block;
  border: 3px solid #3b220c;
  border-radius: 12px;
  background: #0e7490;
  touch-action: none;
  margin-bottom: 0.5rem;
}
.fq-fishbar {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.fq-tension {
  position: relative;
  height: 16px;
  background: #fecaca;
  border: 2px solid #3b220c;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}
.fq-tension i {
  display: block;
  height: 100%;
  width: 50%;
  background: #22c55e;
}
.fq-tension i.is-bad { background: #dc2626; }
.fq-tension em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 800;
  color: #1c1917;
}
.fq-event {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 0.8rem;
  z-index: 5;
}
.fq-event__card {
  background: #fff8dc;
  border: 4px solid #3b220c;
  border-radius: 14px;
  padding: 0.85rem;
  width: 100%;
  max-width: 22rem;
  display: grid;
  gap: 0.45rem;
  box-shadow: 6px 6px 0 #2a1608;
}
.fq-event__card h3 { margin: 0; }
.fq-event__card p { margin: 0 0 0.2rem; }
@media (min-width: 900px) {
  .fq-app { max-width: 420px; }
  .fq-items, .fq-spots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .fq-choice, .fq-btn, .fq-item { min-height: 46px; }
  .fq-mini--fish .fq-cv { height: 200px; }
}

.ff-ava {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(15, 23, 42, 0.16);
}
.ff-ava--ph {
  background: #e2e8f0;
  color: #1a1d21;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.ff-ava-btn {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  flex: 0 0 auto;
  border-radius: 50%;
}
.ff-ava-btn .ff-ava-edit {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px #fff;
}
.ff-btn--sm {
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  width: 100%;
}
.ff-me-form .ff-btn--sm { margin: 0.15rem 0 0.35rem; }

.ff-screen--main.is-chat {
  padding: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
.ff:has(.ff-screen--main.is-shop) {
  max-width: 100%;
}
.ff-screen--main.is-shop {
  padding: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ff-screen--main.is-me {
  padding: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.ff-pane--me {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 calc(var(--nav) + var(--sab));
}
.ff-igme__top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: calc(0.3rem + var(--sat)) 0.45rem 0.3rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.ff-igme__top strong {
  font-size: 1.08rem;
  font-weight: 800;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-igme__top .ff-dots__btn { color: #0f172a; }
.ff-igme__who {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem 0.4rem;
}
.ff-igme__ava {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  flex: 0 0 auto;
}
.ff-igme__ava .ff-ava {
  width: 86px;
  height: 86px;
  font-size: 1.8rem;
}
.ff-igme__ava.has-story .ff-ava {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0f766e;
}
.ff-igme__stats {
  flex: 1;
  display: flex;
  justify-content: space-around;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
}
.ff-igme__stats b {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}
.ff-igme__bio {
  padding: 0 1rem 0.55rem;
}
.ff-igme__bio b { display: block; font-size: 0.95rem; }
.ff-igme__bio p { margin: 0.18rem 0 0; }
.ff-igme__hi {
  padding: 0.15rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
}
.ff-igme__hi .ff-stories {
  padding-top: 0.15rem;
  padding-bottom: 0.2rem;
}
.ff-igme__feed {
  padding: 0.55rem 0.5rem 1rem;
  gap: 0.55rem;
}
.ff-igme__empty {
  text-align: center;
  padding: 1.6rem 1rem;
}
.ff-pane--shop {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f6f7f8;
}
.ff-shop {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--nav) + 4.6rem + var(--sab));
}
.ff-shop-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: linear-gradient(#0f766e 0%, #0f766e calc(var(--sat) + 0.15rem), #fff calc(var(--sat) + 0.15rem));
  padding: calc(0.45rem + var(--sat)) 0.7rem 0.45rem;
  border-bottom: 1px solid var(--line);
}
.ff-shop-search {
  position: relative;
}
.ff-shop-search input {
  width: 100%;
  border: 1px solid #d7dee6;
  border-radius: 12px;
  padding: 0.62rem 0.85rem;
  font: inherit;
  background: #f8fafc;
  min-height: 44px;
}
.ff-shop-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 12;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  max-height: min(52dvh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.ff-shop-suggest[hidden] { display: none; }
.ff-shop-suggest__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  padding: 0.42rem 0.65rem;
  min-height: 52px;
  color: inherit;
  font: inherit;
}
.ff-shop-suggest__row:last-child { border-bottom: 0; }
.ff-shop-suggest__row:active { background: #f0fdfa; }
.ff-shop-suggest__thumb {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}
.ff-shop-suggest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-shop-suggest__txt {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}
.ff-shop-suggest__txt b {
  font-size: 0.88rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ff-shop-suggest__txt em {
  font-style: normal;
  color: #0f766e;
  font-size: 0.8rem;
  font-weight: 750;
}
.ff-shop-suggest__empty {
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: #64748b;
  font-size: 0.88rem;
}
.ff-shop-cats {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  margin: 0.5rem -0.7rem 0;
  padding: 0 0.7rem 0.15rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-shop-cats::-webkit-scrollbar { display: none; }
.ff-shop-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 10.5rem;
  border: 1px solid #dbe4ea;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.32rem 0.62rem 0.32rem 0.42rem;
  font: 650 0.78rem/1.2 system-ui, sans-serif;
  min-height: 36px;
  white-space: nowrap;
}
.ff-shop-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ff-shop-chip__ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #0f766e;
}
.ff-shop-chip.is-on {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}
.ff-shop-chip.is-on .ff-shop-chip__ico { color: #fff; }
.ff-shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.65rem 0.7rem 0.2rem;
}
.ff-shop-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 0 #e8edf1, 0 8px 18px rgba(15, 23, 42, 0.05);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ff-shop-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
}
.ff-shop-card__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}
.ff-shop-card__hit {
  display: grid;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
}
.ff-shop-card__img,
.ff-shop-card__ph {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #fff;
  display: block;
  padding: 0.4rem;
  box-sizing: border-box;
  pointer-events: none;
}
.ff-shop-card__ph {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, #e8eef2 0 28%, transparent 30%),
    #fff;
}
.ff-shop-card__ph--lg { min-height: 14rem; border-radius: 12px; }
.ff-shop-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0.4rem 0.55rem 0.15rem;
  font: 650 0.82rem/1.25 system-ui, sans-serif;
  min-height: 2.05em;
}
.ff-shop-card__price {
  display: block;
  margin: 0 0.55rem 0.2rem;
  font: 800 0.92rem/1.2 system-ui, sans-serif;
  color: #0f766e;
}
.ff-shop-thumbs {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0.15rem 0.5rem 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-shop-thumbs::-webkit-scrollbar { display: none; }
.ff-shop-thumbs__i {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d7efec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.ff-shop-thumbs__img,
.ff-shop-thumbs__i .ff-shop-card__ph {
  width: 38px;
  height: 38px;
  padding: 2px;
  object-fit: contain;
  background: #fff;
  display: block;
}
.ff-shop-thumbs__n {
  font-size: 0.68rem;
  font-weight: 800;
  color: #0f766e;
  white-space: nowrap;
}
.ff-shop-thumbs__more {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  color: #5b7c79;
}
.ff-shop-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.4rem;
  margin: 0 0.55rem 0.55rem;
}
.ff-shop-store {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.ff-shop-store.is-ok { color: #2e7d32; }
.ff-shop-store.is-low { color: #e65100; }
.ff-shop-store.is-out { color: #c62828; }
.ff-shop-card__add {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
  font: 800 1.25rem/1 system-ui, sans-serif;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.32);
  pointer-events: auto;
  touch-action: manipulation;
}
.ff-shop-card__add::before {
  content: "";
  position: absolute;
  inset: -10px;
}
.ff-shop-card__add:active { transform: scale(0.9); }
.ff-shop-card__step {
  position: absolute;
  right: 0.35rem;
  bottom: 0.35rem;
  z-index: 5;
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 12px;
  background: #0f766e;
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.32);
  overflow: visible;
  pointer-events: auto;
  touch-action: manipulation;
}
.ff-shop-card__step button {
  width: 32px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 800 1.1rem/1 system-ui, sans-serif;
}
.ff-shop-card__step span {
  min-width: 1.15rem;
  text-align: center;
  font: 800 0.84rem/1 system-ui, sans-serif;
}
.ff-shop-fly {
  position: fixed;
  z-index: 80;
  margin: 0;
  padding: 0.2rem;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
  pointer-events: none;
  transform: translate(0, 0) scale(1);
  transition: transform 0.4s cubic-bezier(.2, .85, .2, 1), opacity 0.4s ease;
}
@keyframes ff-cart-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.16); }
  100% { transform: scale(1); }
}
.ff-shop-fab.is-pop,
.ff-shop-sheet__cart.is-pop,
.ff-nav__btn.is-pop { animation: ff-cart-pop 0.38s ease; }
.ff-shop-status, .ff-shop-empty, .ff-shop-ok {
  margin: 0.8rem 1rem;
  text-align: center;
  color: var(--muted);
}
.ff-shop-ok { color: #0f766e; font-weight: 700; }
.ff-shop-sent { height: 8px; }
.ff-shop-product-on .ff-shop-fab { visibility: hidden; }
html.ff-shop-product-on .ff-nav { display: none; }
.ff-shop-fab {
  position: absolute;
  right: max(0.85rem, var(--sar));
  bottom: calc(var(--nav) + 0.7rem + var(--sab));
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #0f766e;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.32);
  display: grid;
  place-items: center;
}
.ff-shop-fab.is-full {
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.45);
}
.ff-shop-fab.is-pop { animation: ff-cart-pop 0.38s ease; }
#shop-cart-sheet { z-index: 16; }
.ff-shop-fab__n {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font: 800 0.68rem/1.2rem system-ui, sans-serif;
}
.ff-shop-sheet {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: calc(var(--nav) + 0.35rem);
}
.ff-shop-sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}
.ff-shop-sheet__panel {
  position: relative;
  max-height: min(86dvh, 40rem);
  background: #fff;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(0.6rem + var(--sab));
}
.ff-shop-sheet__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem 0.4rem;
}
.ff-shop-sheet__hd h2 { margin: 0; font-size: 1.05rem; }
.ff-shop-sheet__back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #ecfdf5;
  color: #0f766e;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ff-shop-sheet__back svg { display: block; }
.ff-shop-sheet__cart {
  margin-left: auto;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #ecfdf5;
  color: #0f766e;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.ff-shop-sheet__cart svg { display: block; }
.ff-shop-sheet--page .ff-shop-sheet__hd h2 {
  flex: 1 1 auto;
  min-width: 0;
}
.ff-shop-buy {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem 0.55rem;
  background: #fff;
  border-top: 1px solid #e8eef2;
  box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.05);
}
.ff-shop-buy__go {
  width: 100%;
  margin: 0;
  background: #0f766e;
  color: #fff;
}
.ff-shop-buy__step {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  border-radius: 14px;
  background: #0f766e;
  color: #fff;
  overflow: hidden;
}
.ff-shop-buy__step button {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  font: 800 1.25rem/1 system-ui, sans-serif;
}
.ff-shop-buy__step span {
  font: 800 1.05rem/1 system-ui, sans-serif;
}
.ff-shop-buy__to {
  flex: 0 0 auto;
  margin: 0;
  min-width: 7.2rem;
  padding: 0.7rem 0.75rem;
  color: #0f766e;
  border-color: #9de4dc;
}
.ff-shop-sheet--page {
  z-index: 12;
  justify-content: stretch;
  padding-bottom: 0;
}
.ff-shop-sheet--page .ff-shop-sheet__panel {
  max-height: none;
  height: 100%;
  border-radius: 0;
  padding-top: 0;
  padding-bottom: var(--sab);
}
.ff-shop-sheet--page .ff-shop-sheet__hd {
  justify-content: flex-start;
  gap: 0.35rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.08) 62%, transparent);
  padding: calc(0.28rem + var(--sat)) 0.55rem 1.35rem;
  border-bottom: 0;
  pointer-events: none;
}
.ff-shop-sheet--page .ff-shop-sheet__hd > * { pointer-events: auto; }
.ff-shop-sheet--page .ff-shop-sheet__hd h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.ff-shop-sheet--page .ff-shop-sheet__back,
.ff-shop-sheet--page .ff-shop-sheet__cart {
  background: rgba(15, 23, 42, 0.38);
  color: #fff;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.ff-shop-sheet--page .ff-shop-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}
.ff-shop-sheet--page .ff-shop-pphoto {
  max-height: none;
  aspect-ratio: 1;
  border-radius: 0;
  margin: 0;
  width: 100%;
}
.ff-shop-sheet__x {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
}
.ff-shop-sheet__body {
  overflow: auto;
  padding: 0.2rem 0.9rem 0.8rem;
}
.ff-shop-citem {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid #eef2f5;
}
.ff-shop-citem__thumb img,
.ff-shop-citem__thumb .ff-shop-card__ph {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}
.ff-shop-citem__meta { min-width: 0; }
.ff-shop-citem__meta b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.86rem;
}
.ff-shop-citem__meta span { color: #0f766e; font-weight: 700; font-size: 0.84rem; }
.ff-shop-step {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.ff-shop-step button {
  width: 30px;
  height: 30px;
  border: 1px solid #dbe4ea;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
}
.ff-shop-ctotal {
  display: flex;
  justify-content: space-between;
  margin: 0.7rem 0 0.5rem;
  font-size: 1.02rem;
}
.ff-shop-field {
  display: grid;
  gap: 0.25rem;
  margin: 0.4rem 0;
  font-size: 0.82rem;
  color: #64748b;
}
.ff-shop-field input {
  border: 1px solid #d7dee6;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
}
.ff-shop-pphoto {
  margin-bottom: 0.55rem;
  width: 100%;
  aspect-ratio: 1;
  max-height: none;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.ff-shop-gal {
  position: relative;
  background: #fff;
}
.ff-shop-gal__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ff-shop-gal__track::-webkit-scrollbar { display: none; }
.ff-shop-gal__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  width: 100%;
  aspect-ratio: 1;
  max-height: min(92vw, 34rem);
  background: #f8fafc;
  display: grid;
  place-items: center;
}
.ff-shop-pimg,
.ff-shop-pphoto .ff-shop-card__ph,
.ff-shop-gal__slide .ff-shop-card__ph {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border-radius: 0;
}
.ff-shop-gal__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  display: flex;
  justify-content: center;
  gap: 0.28rem;
  pointer-events: none;
  z-index: 1;
}
.ff-shop-gal__dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
}
.ff-shop-gal__dot.is-on { background: #0f766e; width: 16px; }
.ff-shop-pmeta {
  padding: 0.55rem 0.9rem 1.1rem;
}
.ff-shop-pname {
  margin: 0;
  font: 800 1.12rem/1.25 system-ui, sans-serif;
}
.ff-shop-pprice { font: 800 1.2rem/1.2 system-ui, sans-serif; color: #0f766e; margin: 0.28rem 0 0.2rem; }
.ff-shop-prating {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: #64748b;
}
.ff-shop-prating em {
  font-style: normal;
  color: #f59e0b;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
}
.ff-shop-pdesc {
  margin: 0.15rem 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #475569;
}
.ff-shop-pmeta .ff-shop-stores { margin: 0 0 0.7rem; }
.ff-shop-pmeta .ff-shop-vars { margin: 0 0 0.55rem; }
.ff-rev {
  margin: 0.4rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid #eef2f5;
}
.ff-rev__hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.7rem;
}
.ff-rev__hd h4 {
  margin: 0;
  font: 800 1.02rem/1.2 system-ui, sans-serif;
}
.ff-rev__hd span { font-size: 0.8rem; color: #64748b; }
.ff-rev__form {
  margin: 0 0 1rem;
  padding: 0.7rem 0.75rem 0.65rem;
  border: 1px solid #e8edf1;
  border-radius: 14px;
  background: #f8fafc;
}
.ff-rev__form-row {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.55rem;
  align-items: start;
}
.ff-rev__ava {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #d1fae5;
  color: #0f766e;
  font: 800 0.85rem/1 system-ui, sans-serif;
  overflow: hidden;
}
.ff-rev__ava--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-rev__form-name { display: block; font-size: 0.82rem; margin: 0 0 0.2rem; }
.ff-rev__picker { display: flex; gap: 0.1rem; margin: 0 0 0.35rem; }
.ff-rev__star {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.05rem;
}
.ff-rev__star.is-on { color: #f59e0b; }
.ff-rev__input {
  width: 100%;
  min-height: 4.2rem;
  resize: vertical;
  border: 1px solid #d7dee6;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
  font: inherit;
  color: inherit;
  background: #fff;
}
.ff-rev__bar {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.4rem;
}
.ff-rev__ico {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #0f766e;
  border-radius: 10px;
}
.ff-rev__send {
  margin-left: auto;
  width: 40px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  display: grid;
  place-items: center;
}
.ff-rev__previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.ff-rev__prev {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}
.ff-rev__prev img,
.ff-rev__prev video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-rev__prev-x {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
}
.ff-rev__err {
  margin: 0.4rem 0 0;
  color: #b91c1c;
  font-size: 0.82rem;
}
.ff-rev__card {
  padding: 0.7rem 0;
  border-top: 1px solid #f1f5f9;
}
.ff-rev__top {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.45rem;
  align-items: center;
}
.ff-rev__who b { display: block; font-size: 0.88rem; }
.ff-rev__stars { color: #f59e0b; font-size: 0.78rem; letter-spacing: 0.04em; }
.ff-rev__top time { font-size: 0.72rem; color: #94a3b8; }
.ff-rev__txt {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}
.ff-rev__media {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.ff-rev__photo {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}
.ff-rev__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-rev__video video {
  max-width: 100%;
  max-height: 12rem;
  border-radius: 10px;
  background: #0f172a;
}
.ff-shop-zoom {
  position: absolute;
  inset: 0;
  z-index: 22;
  background: rgba(15, 23, 42, 0.94);
  display: grid;
  place-items: center;
  padding: 2.4rem 0.6rem 0.8rem;
}
.ff-shop-zoom[hidden] { display: none !important; }
.ff-shop-zoom img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ff-shop-zoom__x {
  position: absolute;
  top: calc(0.35rem + var(--sat));
  right: 0.55rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}
.ff-shop-stock {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #e8edf1;
  border-radius: 12px;
  background: #fafbfc;
}
.ff-shop-stock__t {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.ff-shop-stock__row {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}
.ff-shop-stock__row + .ff-shop-stock__row { margin-top: 0.25rem; }
.ff-shop-stock__row.is-ok { color: #2e7d32; }
.ff-shop-stock__row.is-low { color: #e65100; }
.ff-shop-stock__row.is-out { color: #c62828; }
.ff-shop-vars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.8rem, 1fr));
  gap: 0.4rem;
  margin: 0 0 0.8rem;
}
.ff-shop-var {
  border: 1px solid #dbe4ea;
  background: #fff;
  border-radius: 12px;
  padding: 0.28rem 0.4rem;
  font-size: 0.72rem;
  color: inherit;
}
.ff-shop-var--pic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.22rem;
  min-width: 0;
  text-align: center;
  line-height: 1.15;
}
.ff-shop-var--pic span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
.ff-shop-var__img,
.ff-shop-var--pic .ff-shop-card__ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  display: block;
  padding: 0.15rem;
  box-sizing: border-box;
}
.ff-shop-var.is-on { background: #ecfdf5; border-color: #0f766e; color: #0f766e; }
@media (min-width: 700px) {
  .ff-shop-grid { grid-template-columns: repeat(3, 1fr); }
}
.ff-pane--chat {
  margin: 0;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  padding-bottom: calc(var(--nav) + var(--sab));
}
.ff-chat, .ff-chat-list, .ff-chat-thread {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.ff-chat-list {
  overflow-y: auto;
  padding: calc(0.35rem + var(--sat)) 0.55rem 0.8rem;
  gap: 0.2rem;
}
.ff-chat-sec {
  margin: 0.85rem 0.2rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ff-chat-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0.2rem;
  min-height: 64px;
  color: inherit;
}
.ff-chat-row .ff-ava { width: 46px; height: 46px; font-size: 1.05rem; }
.ff-chat-row b { display: block; font-size: 0.98rem; }
.ff-chat-row small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70vw;
}
.ff-chat-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: calc(0.35rem + var(--sat)) 0.45rem 0.35rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  background: #fff;
}
.ff-chat-back, .ff-chat-lock {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #1a1d21;
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 0;
}
.ff-chat-back svg, .ff-chat-lock svg { display: block; }
.ff-chat-lock__on { display: none; }
.ff-chat-lock.is-on .ff-chat-lock__on { display: block; }
.ff-chat-lock.is-on .ff-chat-lock__off { display: none; }
.ff-chat-lock.is-on { color: #1a1d21; }
.ff-chat-head__who {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
}
.ff-chat-head__who .ff-ava { width: 40px; height: 40px; font-size: 0.95rem; }
.ff-chat-head__who b { display: block; font-size: 0.95rem; }
.ff-chat-head__who small { color: var(--muted); font-size: 0.72rem; }
.ff-chat-msgs {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0.7rem 0.65rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: #f1f5f4;
}
.ff-chat-bubble {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
  max-width: 92%;
}
.ff-chat-bubble.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ff-chat-ava {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
}
.ff-chat-bubble .ff-ava { width: 32px; height: 32px; font-size: 0.8rem; box-shadow: none; }
.ff-chat-bubble__body {
  background: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 0.45rem 0.65rem 0.35rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  min-width: 0;
}
.ff-chat-bubble.is-mine .ff-chat-bubble__body {
  background: #ccfbf1;
  border-radius: 16px 16px 4px 16px;
}
.ff-chat-name {
  display: block;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
  text-align: left;
}
.ff-chat-bubble__body p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 0.95rem; }
.ff-chat-bubble__body time {
  display: block;
  text-align: right;
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0;
}
.ff-chat-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.ff-chat-like {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.05rem 0.15rem;
  min-height: 28px;
}
.ff-chat-like.is-on { color: #e11d48; }
.ff-chat-media { margin-top: 0.35rem; }
.ff-chat-media--photo {
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
  max-width: 100%;
}
.ff-chat-media--photo img {
  display: block;
  max-width: min(72vw, 280px);
  max-height: 220px;
  border-radius: 12px;
  object-fit: contain;
  background: #0f172a;
}
.ff-chat-bubble.has-video {
  max-width: min(96%, 440px);
}
.ff-chat-bubble.has-video .ff-chat-bubble__body {
  padding: 0.28rem 0.28rem 0.32rem;
  width: min(86vw, 360px);
  max-width: min(86vw, 360px);
}
.ff-chat-media--video {
  margin-top: 0.12rem;
  width: 100%;
}
.ff-chat-media--video video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(58vh, 400px);
  border-radius: 12px;
  object-fit: contain;
  background: #0b1220;
}
.ff-chat-media--voice {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: min(64vw, 220px);
  max-width: 100%;
}
.ff-chat-media--voice audio { display: none; }
.ff-voice__play {
  flex: 0 0 auto;
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #14b8a6;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}
.ff-chat-bubble.is-mine .ff-voice__play { background: #0f766e; }
.ff-voice__play:active { transform: scale(0.96); }
.ff-voice__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.ff-voice__track {
  position: relative;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.ff-voice__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 0.4rem;
  opacity: 0.9;
}
.ff-voice__bars i {
  flex: 1 1 0;
  display: block;
  height: calc(var(--h, 8) * 1px);
  max-height: 80%;
  border-radius: 2px;
  background: #0f766e;
  opacity: 0.55;
}
.ff-voice__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(15, 118, 110, 0.28);
  pointer-events: none;
}
.ff-voice__time {
  font-size: 0.72rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.ff-chat-geo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: #ecfdf5;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.ff-chat-chip--geo {
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: #ecfdf5;
  color: #0f766e;
}
.ff-chat-dock {
  flex: 0 0 auto;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.05);
}
.ff-chat-attach {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.65rem 0.7rem 0.2rem;
  flex: 0 0 auto;
  -webkit-overflow-scrolling: touch;
}
.ff-chat-chip {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
}
.ff-chat-chip--video {
  width: 118px;
  height: 80px;
}
.ff-chat-chip--audio {
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #0f766e;
}
.ff-chat-chip img,
.ff-chat-chip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ff-chat-chip__ico {
  display: grid;
  place-items: center;
}
.ff-chat-chip__play {
  position: absolute;
  left: 0.4rem;
  bottom: 0.4rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.ff-chat-chip__play::before {
  content: "";
  position: absolute;
  left: 0.48rem;
  top: 0.38rem;
  border-style: solid;
  border-width: 0.28rem 0 0.28rem 0.42rem;
  border-color: transparent transparent transparent #fff;
}
.ff-chat-chip.is-busy img,
.ff-chat-chip.is-busy video { opacity: 0.72; }
.ff-chat-chip__spin {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.38);
}
.ff-chat-chip__spin::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ff-spin 0.7s linear infinite;
}
.ff-chat-chip button {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  z-index: 2;
  width: 1.45rem;
  height: 1.45rem;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}
.ff-chat-compose {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  padding: 0.35rem 0.45rem 0.5rem;
  background: #fff;
  border-top: 0;
  flex: 0 0 auto;
  z-index: 3;
}
.ff-chat-iconbtn {
  flex: 0 0 auto;
  width: 2.5rem;
  min-height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  border: 0;
  color: #1a1d21;
  padding: 0;
}
.ff-chat-iconbtn svg { display: block; }
.ff-chat-reply {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.ff-chat-reply textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 1rem;
  background: #f8fafc;
  resize: none;
  min-height: 2.6rem;
  max-height: 7rem;
}
.ff-chat-voice-hud {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.7rem;
  border-radius: 16px;
  background: #fff1f2;
  color: #9f1239;
  font-size: 0.82rem;
  font-weight: 700;
}
.ff-chat-reply.is-voice-cancel .ff-chat-voice-hud { background: #e2e8f0; color: #475569; }
.ff-chat-voice-hud__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #ef4444;
  animation: ff-chat-pulse 1s infinite;
}
@keyframes ff-chat-pulse {
  50% { opacity: 0.35; }
}
.ff-chat-voice-btn, .ff-chat-send {
  flex: 0 0 auto;
  width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.ff-chat-send {
  background: #1a1d21;
  color: #fff;
  border-color: #1a1d21;
  font-size: 0;
  touch-action: manipulation;
}
.ff-chat-send.is-wait {
  opacity: 0.42;
  pointer-events: none;
}
.ff-chat-voice-btn.is-recording {
  color: #fff;
  background: #ef4444;
  border-color: #ef4444;
}
.ff-chat-voice-btn.is-voice-cancel {
  background: #64748b;
  border-color: #64748b;
}
.ff-chat-ctx {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.8rem 0.8rem calc(0.8rem + var(--sab));
  gap: 0.4rem;
}
.ff-chat-ctx button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
}
.ff-chat-ctx__x { color: var(--muted); }
#ff-chat-ctx-del { color: #b91c1c; font-weight: 800; }
.ff-chat-zoom {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.ff-chat-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ff-zoom {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: #0b1220;
  color: #fff;
}
.ff-zoom__stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(3.4rem + var(--sat)) 3.2rem calc(2.8rem + var(--sab));
}
.ff-zoom__stage img,
.ff-zoom__stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.ff-zoom__x {
  position: absolute;
  top: calc(0.55rem + var(--sat));
  right: 0.7rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}
.ff-zoom__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}
.ff-zoom__prev { left: 0.4rem; }
.ff-zoom__next { right: 0.4rem; }
.ff-zoom__n {
  text-align: center;
  padding: 0.55rem 0 calc(0.7rem + var(--sab));
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}
