:root{
  --bg: #05070a;
  --panel: rgba(8, 12, 18, 0.86);
  --panel-strong: rgba(10, 15, 23, 0.95);
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.22);
  --text: #edf2f7;
  --muted: rgba(237,242,247,0.72);
  --gold: #d6bf74;
  --gold-soft: rgba(214,191,116,0.18);
  --accent-cool: #7ed9ff;
  --shadow: 0 26px 70px rgba(0,0,0,0.42);
}

*{ box-sizing:border-box; }

html,body{
  margin:0;
  min-height:100%;
  background:
    radial-gradient(circle at top left, rgba(214,191,116,0.13), transparent 28%),
    radial-gradient(circle at top right, rgba(126,217,255,0.10), transparent 30%),
    linear-gradient(180deg, #06080b 0%, #090d13 46%, #040608 100%);
  color:var(--text);
  font-family:"Manrope", system-ui, sans-serif;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size:48px 48px;
  opacity:0.14;
  pointer-events:none;
}

img,video{
  display:block;
  max-width:100%;
  user-select:none;
  -webkit-user-drag:none;
}

a{ color:inherit; text-decoration:none; }

.is-hidden{ display:none !important; }

.container{
  width:min(1200px, calc(100vw - 40px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:blur(12px);
  background:rgba(3,5,8,0.72);
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.nav{
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-mark{
  width:52px;
  height:52px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 8px 22px rgba(0,0,0,0.32);
}

.brand span{
  font-family:"Cinzel", serif;
  font-size:24px;
  font-weight:700;
  letter-spacing:0.08em;
}

.nav-copy{ flex:1 1 auto; min-width:0; }
.nav-copy strong{
  display:block;
  font-size:18px;
  font-family:"Space Grotesk", sans-serif;
}

.nav-right{
  display:flex;
  align-items:center;
  gap:12px;
}

.eyebrow{
  margin:0 0 4px;
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:11px;
  color:rgba(214,191,116,0.84);
}

.auth-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.04);
  font-size:12px;
  font-weight:800;
  letter-spacing:0.08em;
}

.auth-badge.auth-online{
  color:#d6ffe8;
  border-color:rgba(79,208,141,0.42);
  background:rgba(79,208,141,0.14);
}

.auth-badge.auth-offline{
  color:#ffd8d8;
  border-color:rgba(220,92,92,0.32);
  background:rgba(220,92,92,0.10);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid transparent;
  font-size:13px;
  font-weight:800;
  letter-spacing:0.04em;
  cursor:pointer;
  transition:transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.btn:hover{ transform:translateY(-1px); }

.btn-primary{
  color:#fff6dd;
  background:linear-gradient(180deg, rgba(164,132,55,0.98), rgba(110,82,24,0.98));
  border-color:rgba(255,227,156,0.32);
  box-shadow:0 14px 34px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.16);
}

.btn-primary:hover{
  background:linear-gradient(180deg, rgba(182,148,62,0.99), rgba(126,94,28,0.99));
}

.btn-ghost{
  color:var(--text);
  background:rgba(255,255,255,0.04);
  border-color:var(--line);
}

.btn-ghost:hover{
  background:rgba(255,255,255,0.08);
  border-color:var(--line-strong);
}

.auth-logout.is-hidden{ display:none; }

.tutorial-shell,
.filter-card{
  border:1px solid rgba(255,255,255,0.08);
  background:var(--panel);
  box-shadow:var(--shadow);
  backdrop-filter:blur(12px);
}

.section{ padding:18px 0 40px; }

.section-head{ margin-bottom:18px; }
.section-head h2{
  margin:0;
  font-family:"Space Grotesk", sans-serif;
  font-size:30px;
}
.section-head p:last-child{
  margin:10px 0 0;
  color:var(--muted);
}

.tutorial-section.is-hidden{ display:none; }

.tutorial-shell{
  border-radius:24px;
  padding:18px;
}

.tutorial-video{
  width:100%;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.08);
  background:#020304;
}

.filters-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.filter-card{
  border-radius:24px;
  overflow:hidden;
}

.filter-card-media{
  position:relative;
  aspect-ratio:16/10;
  background:#030507;
  overflow:hidden;
}

.filter-carousel{
  position:absolute;
  inset:0;
}

.filter-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition:opacity 480ms ease;
}

.filter-slide.is-active{ opacity:1; }

.filter-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.filter-slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent 48%, rgba(0,0,0,0.46) 100%);
}

.filter-dots{
  position:absolute;
  left:18px;
  bottom:16px;
  display:flex;
  gap:8px;
  z-index:2;
}

.filter-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.45);
  background:rgba(255,255,255,0.12);
  transition:background 180ms ease, transform 180ms ease;
}

.filter-dot.is-active{
  background:var(--gold);
  transform:scale(1.08);
}

.filter-card-body{ padding:18px; }

.filter-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.filter-title{
  margin:0;
  font-family:"Space Grotesk", sans-serif;
  font-size:24px;
  line-height:1.05;
}

.filter-updated{
  flex:0 0 auto;
  padding:8px 10px;
  border-radius:999px;
  background:var(--gold-soft);
  border:1px solid rgba(214,191,116,0.16);
  color:#ffe9ae;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.filter-meta{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.filter-meta span{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  font-size:12px;
  color:var(--muted);
}

.filter-download{
  width:100%;
  margin-top:16px;
}

.empty-state{
  border-radius:22px;
  border:1px dashed rgba(255,255,255,0.18);
  padding:28px;
  text-align:center;
  color:var(--muted);
}

.empty-state.is-hidden{ display:none; }

.auth-gate{
  position:fixed;
  inset:0;
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(2,4,7,0.82);
  backdrop-filter:blur(10px);
}

.auth-gate.is-hidden{ display:none; }

.auth-gate-card{
  width:min(440px, 100%);
  border-radius:28px;
  padding:30px 28px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(8,12,18,0.96);
  box-shadow:0 26px 70px rgba(0,0,0,0.48);
  text-align:center;
}

.auth-gate-kicker{
  margin:0 0 12px;
  color:rgba(214,191,116,0.9);
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:11px;
}

.auth-gate-card h2{
  margin:0;
  font-family:"Space Grotesk", sans-serif;
  font-size:34px;
  line-height:1.02;
}

.auth-gate-card p{
  margin:14px 0 0;
  color:var(--muted);
  line-height:1.7;
}

.auth-gate-actions{
  margin-top:22px;
  display:flex;
  justify-content:center;
}

.chat-avatar{
  position:relative;
  width:40px;
  height:40px;
  border-radius:50%;
  flex-shrink:0;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(126,217,255,0.22), rgba(214,191,116,0.18));
  color:var(--text);
  font-weight:800;
  letter-spacing:0.04em;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.08);
}

.chat-avatar::before{
  content:attr(data-fallback);
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  font-size:12px;
}

.chat-avatar.is-fallback::before{ display:inline-flex; }
.chat-avatar.is-fallback img{ opacity:0; }

.chat-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.chat-avatar--tiny{
  width:34px;
  height:34px;
}

.chat-avatar--panel{
  width:44px;
  height:44px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.1), 0 8px 18px rgba(0,0,0,0.2);
}

.chat-avatar-dot{
  position:absolute;
  right:1px;
  bottom:1px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:#22c55e;
  border:2px solid rgba(10,15,24,0.96);
}

.chat-admin-thread-list{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-height:0;
  flex:1 1 auto;
  overflow-y:auto;
  padding-right:2px;
}

.chat-admin-thread-item{
  width:100%;
  border:1px solid transparent;
  background:rgba(255,255,255,0.028);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  gap:9px;
  text-align:left;
  cursor:pointer;
  transition:background 0.16s ease, border-color 0.16s ease;
  appearance:none;
  font:inherit;
}

.chat-admin-thread-item:hover,
.chat-admin-thread-item:focus-visible{
  border-color:rgba(126,217,255,0.26);
  background:rgba(255,255,255,0.04);
}

.chat-admin-thread-item.is-active{
  border-color:rgba(214,191,116,0.34);
  background:linear-gradient(145deg, rgba(214,191,116,0.09), rgba(255,255,255,0.035));
}

.chat-admin-thread-item.is-unread{
  background:linear-gradient(145deg, rgba(8,34,41,0.78), rgba(255,255,255,0.035));
}

.chat-admin-thread-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}

.chat-admin-thread-body{
  display:grid;
  gap:4px;
  min-width:0;
}

.chat-admin-thread-title-row{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}

.chat-admin-thread-title{
  min-width:0;
  font-weight:700;
  font-size:13px;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.chat-admin-thread-handle{
  min-width:0;
  color:rgba(255,255,255,0.44);
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.chat-admin-thread-time{
  color:rgba(255,255,255,0.48);
  font-size:10px;
  white-space:nowrap;
  line-height:1.2;
  padding-top:1px;
}

.site-chat-header-meta,
.site-chat-status,
.chat-attachment-name{
  color:var(--muted);
  font-size:11px;
}

.site-chat-header-meta{
  margin:2px 0 0;
  line-height:1.35;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.chat-admin-thread-preview-row{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.chat-admin-thread-preview{
  min-width:0;
  flex:1 1 auto;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.3;
  color:var(--muted);
  font-size:11px;
}

.chat-admin-thread-meta-inline{
  flex-shrink:0;
  color:rgba(255,255,255,0.42);
  font-size:10px;
  white-space:nowrap;
}

.chat-admin-thread-unread{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:#1fd665;
  color:#052012;
  font-size:10px;
  font-weight:800;
  line-height:1;
  flex-shrink:0;
}

.site-chat-widget{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:140;
  width:min(360px, calc(100vw - 20px));
  display:grid;
  justify-items:end;
  gap:8px;
  pointer-events:none;
}

.site-chat-widget > *{ pointer-events:auto; }

.site-chat-toggle{
  min-width:204px;
  border:1px solid rgba(214,191,116,0.28);
  background:linear-gradient(145deg, rgba(18,24,36,0.98), rgba(11,15,23,0.98));
  color:var(--text);
  border-radius:16px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  box-shadow:0 20px 38px -24px rgba(0,0,0,0.74);
  cursor:pointer;
  transition:transform 0.18s ease, border-color 0.18s ease;
}

.site-chat-toggle:hover,
.site-chat-toggle:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(126,217,255,0.34);
}

.site-chat-toggle-copy{
  display:grid;
  gap:2px;
  text-align:left;
  min-width:0;
  flex:1;
}

.site-chat-toggle-copy strong{
  font-size:14px;
  line-height:1.1;
}

.site-chat-toggle-copy span{
  color:var(--muted);
  font-size:11px;
}

.site-chat-toggle-badge{
  min-width:22px;
  height:22px;
  border-radius:999px;
  background:rgba(126,217,255,0.18);
  color:var(--accent-cool);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 6px;
  font-size:11px;
  font-weight:700;
}

.site-chat-toggle-badge.is-hidden{ display:none; }

.site-chat-panel{
  width:100%;
  max-height:min(700px, calc(100dvh - 24px));
  display:flex;
  flex-direction:column;
  min-height:0;
  gap:8px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(360px circle at 100% 0%, rgba(214,191,116,0.14), transparent 56%),
    linear-gradient(180deg, rgba(18,24,36,0.985), rgba(8,12,19,0.985));
  box-shadow:0 28px 54px -30px rgba(0,0,0,0.74);
  overflow:hidden;
}

.site-chat-panel[hidden],
.site-chat-panel.is-hidden{ display:none !important; }

.site-chat-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(255,255,255,0.06);
  flex:0 0 auto;
}

.site-chat-panel-head-main{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.site-chat-panel-head-main > div:last-child{ min-width:0; }

.site-chat-panel-actions{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.site-chat-panel-head h3{
  margin:2px 0 0;
  font-family:"Space Grotesk", sans-serif;
  font-size:17px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.site-chat-kicker{
  margin:0;
  color:var(--accent-cool);
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-size:9px;
  font-weight:700;
}

.site-chat-close{
  min-height:34px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,0.06);
  color:var(--text);
  padding:6px 10px;
  cursor:pointer;
}

.site-chat-close[disabled]{
  opacity:0.55;
  cursor:wait;
}

.site-chat-status{
  margin:0;
  min-height:14px;
  line-height:1.3;
}

.site-chat-status.is-error{ color:#fecaca; }

.site-chat-login-prompt,
.site-chat-thread-wrap{ min-height:0; }

.site-chat-thread-wrap{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1 1 auto;
}

.site-chat-thread-wrap.is-hidden{ display:none; }

.site-chat-login-prompt{
  display:flex;
  align-items:center;
  padding:12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.07);
  background:rgba(255,255,255,0.03);
  flex:1 1 auto;
}

.site-chat-login-prompt p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.site-chat-messages{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  min-height:0;
  padding:10px 8px;
  padding-right:4px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(circle at 18px 18px, rgba(255,255,255,0.024) 0, rgba(255,255,255,0.024) 1px, transparent 1px),
    radial-gradient(circle at 0 0, rgba(255,255,255,0.018) 0, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8,14,20,0.98), rgba(8,13,18,0.98));
  background-size:18px 18px, 18px 18px, auto;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.02);
  overscroll-behavior:contain;
}

.site-chat-empty{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.06);
  color:var(--muted);
  background:rgba(17,24,33,0.92);
  font-size:12px;
  line-height:1.35;
  max-width:min(78%, 320px);
}

.site-chat-compose{
  flex:0 0 auto;
  display:grid;
  gap:6px;
  padding:8px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  background:linear-gradient(180deg, rgba(12,18,26,0.98), rgba(9,13,20,0.98));
}

.site-chat-compose.is-disabled{ opacity:0.64; }

.chat-compose-field{
  display:grid;
  gap:4px;
  font-size:11px;
  color:var(--muted);
}

.chat-compose-field textarea{
  width:100%;
  min-height:42px;
  max-height:132px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(18,24,32,0.98);
  color:var(--text);
  resize:none;
  font:inherit;
  font-size:13px;
  line-height:1.35;
  overflow-y:auto;
}

.chat-compose-field textarea:focus-visible{
  border-color:rgba(126,217,255,0.58);
  box-shadow:0 0 0 2px rgba(126,217,255,0.12);
  outline:none;
}

.chat-compose-tools{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}

.chat-attachment-row{
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
  flex:1 1 auto;
  min-width:0;
}

.chat-attach-btn,
.chat-send-btn{
  min-height:34px;
  padding:7px 12px;
}

.chat-send-btn{
  min-width:38px;
  border-radius:12px;
  box-shadow:0 12px 24px -18px rgba(214,191,116,0.74);
}

.chat-image-preview{
  width:96px;
  max-width:96px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.025);
  padding:4px;
  align-self:flex-start;
}

.chat-image-preview.is-hidden{ display:none; }

.chat-image-preview img,
.chat-message-image img{
  width:100%;
  height:auto;
  border-radius:8px;
}

.chat-message{
  display:flex;
  justify-content:flex-start;
}

.chat-message.is-self{ justify-content:flex-end; }

.chat-date-separator{
  display:flex;
  justify-content:center;
  padding:2px 0;
}

.chat-date-separator span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:20px;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(17,27,33,0.9);
  color:rgba(255,255,255,0.58);
  font-size:10px;
}

.chat-message-bubble{
  position:relative;
  width:fit-content;
  max-width:min(72%, 340px);
  padding:7px 9px 5px;
  border-radius:12px 12px 12px 4px;
  background:linear-gradient(180deg, rgba(28,39,47,0.98), rgba(20,29,35,0.98));
  display:grid;
  gap:5px;
  color:#e9edef;
  box-shadow:0 6px 16px rgba(0,0,0,0.14);
}

.chat-message-bubble::after{
  content:"";
  position:absolute;
  top:0;
  left:-4px;
  width:8px;
  height:10px;
  background:rgba(28,39,47,0.98);
  clip-path:polygon(100% 0, 100% 100%, 0 0);
}

.chat-message.is-self .chat-message-bubble{
  border-radius:12px 12px 4px 12px;
  background:linear-gradient(180deg, rgba(0,96,78,0.98), rgba(0,80,65,0.98));
  color:#f4fffc;
}

.chat-message.is-self .chat-message-bubble::after{
  left:auto;
  right:-4px;
  background:rgba(0,96,78,0.98);
  clip-path:polygon(0 0, 100% 0, 0 100%);
}

.chat-message-text{
  white-space:pre-wrap;
  word-break:break-word;
  font-size:13px;
  line-height:1.38;
}

.chat-message-image{
  max-width:min(220px, 100%);
}

.chat-message-footer{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  min-height:11px;
  gap:4px;
}

.chat-message-date,
.chat-message-status{
  color:rgba(217,225,230,0.56);
  font-size:10px;
  line-height:1;
}

.chat-message-status.is-read{ color:#7dd3fc; }

.chat-message.is-self .chat-message-date,
.chat-message.is-self .chat-message-status{
  color:rgba(233,255,250,0.74);
}

.site-chat-small,
.site-chat-send{ width:auto; }

.site-chat-messages,
.chat-compose-field textarea{
  scrollbar-width:thin;
  scrollbar-color:rgba(148,163,184,0.32) transparent;
}

.site-chat-messages::-webkit-scrollbar,
.chat-compose-field textarea::-webkit-scrollbar{
  width:6px;
  height:6px;
}

.site-chat-messages::-webkit-scrollbar-track,
.chat-compose-field textarea::-webkit-scrollbar-track{
  background:transparent;
}

.site-chat-messages::-webkit-scrollbar-thumb,
.chat-compose-field textarea::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:rgba(148,163,184,0.28);
}

.site-chat-messages::-webkit-scrollbar-thumb:hover,
.chat-compose-field textarea::-webkit-scrollbar-thumb:hover{
  background:rgba(148,163,184,0.42);
}

@media (max-width: 1080px){
  .filters-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px){
  .nav{
    min-height:auto;
    padding:18px 0;
    flex-wrap:wrap;
  }

  .nav-copy{
    width:100%;
    order:3;
  }
}

@media (max-width: 640px){
  .container{ width:min(100vw - 24px, 1200px); }
  .filters-grid{ grid-template-columns:1fr; }
  .filter-card{ border-radius:22px; }
  .nav-right{
    width:100%;
    justify-content:space-between;
  }
  .filter-card-head{ flex-direction:column; }
  .site-chat-widget{
    right:10px;
    bottom:10px;
    width:min(calc(100vw - 20px), 360px);
  }
  .site-chat-toggle{
    min-width:0;
    width:100%;
  }
  .site-chat-panel{
    max-height:min(640px, calc(100dvh - 14px));
    padding:9px;
  }
  .site-chat-panel-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .site-chat-panel-head-main,
  .site-chat-panel-actions{
    width:100%;
  }
  .site-chat-panel-actions{ justify-content:flex-start; }
}
