


@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("/fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }


@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/unbounded-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/unbounded-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0020-007E, U+00A0, U+00B0, U+2212, U+2013; }


html:root {
  --pal-brand-300: #ff9a70;   
  --pal-brand-400: #ff7a45;
  --pal-brand-500: #f0602a;
  --pal-brand-700: #c2410c;
  --pal-brand-800: #9a3412;

  --pal-aqua-300:  #3fd6c6;   
  --pal-aqua-400:  #2dd4bf;
  --pal-aqua-500:  #22b8a6;
  --pal-aqua-700:  #0f766e;
  --pal-aqua-800:  #0b5e58;

  
  --precip-0: #a6dcf7;
  --precip-1: #5aaeea;
  --precip-2: #2f78d8;
  --precip-3: #4a46c8;
  --precip-4: #7a3cc2;

  
  --aqi-1: #2bb5ad;
  --aqi-2: #4caf6e;
  --aqi-3: #e0b81c;
  --aqi-4: #f0553f;
  --aqi-5: #a3214a;
  --aqi-6: #7b2d8e;

  
  --uv-1: var(--aqi-2);
  --uv-2: var(--aqi-3);
  --uv-3: #ef8a2b;
  --uv-4: var(--aqi-4);
  --uv-5: var(--aqi-6);


  --pal-calm-400:  #a39cff;
  --pal-calm-600:  #5147d6;

  --pal-leaf-400:  #a3d95b;
  --pal-leaf-500:  #4ade80;
  --pal-leaf-700:  #15803d;
  --pal-leaf-800:  #4d7c0f;

  --pal-ruble-400: #f2b544;
  --pal-ruble-700: #8a5a00;

  
  --social-tg: #229ED9;
  --social-vk: #07f;
  --social-ya: #FC3F1D;

  --pal-air-400:   #5ab8f0;
  --pal-air-700:   #0369a1;

  --pal-care-400:  #e58ce8;   
  --pal-care-700:  #a21caf;

  --pal-alarm-400: #ff5a6e;   
  --pal-alarm-700: #be123c;

  --pal-ink-950:   #0b0d18;
  --pal-ink-900:   #121416;
  --pal-ink-850:   #17191c;
  --pal-ink-800:   #1d2023;
  --pal-ink-700:   #25292d;
  --pal-ink-600:   #2f3337;
  --pal-paper-50:  #ffffff;
  --pal-paper-100: #f5f7f6;
  --pal-paper-200: #ebefee;
  --pal-paper-300: #dbe2e0;
}

:is(html:root, .style-scope),
:is(html:root, .style-scope).dark,
:is(html:root, .style-scope)[data-theme="dark"] {
  color-scheme: dark;   
  --primary:        var(--pal-brand-400);
  --primary-dark:   var(--pal-brand-500);
  --primary-light:  color-mix(in srgb, var(--primary) 18%, transparent);
  --primary-bg:     color-mix(in srgb, var(--primary) 10%, transparent);
  --accent:         var(--primary);
  --accent-dark:    var(--primary-dark);
  --accent-light:   var(--primary-light);
  --spark:          var(--pal-aqua-400);

  --bg:             var(--pal-ink-900);
  --bg-warm:        var(--pal-ink-850);
  --card:           var(--pal-ink-800);
  --text:           #eef2f1;
  --text-dim:       #b9c2c0;
  --text-muted:     #86908e;
  --border:         var(--pal-ink-600);
  --border-light:   var(--pal-ink-700);

  --bg-input:       #16181b;
  --bg-skeleton:    #2c3136;   
  --sk-shine:       #3a4046;
  --bg-header:      color-mix(in srgb, var(--bg) 97%, transparent);
  --bg-tabbar:      color-mix(in srgb, #0d0f11 98%, transparent);
  --bg-tabbar-float: color-mix(in srgb, var(--bg) 42%, transparent);   
  --scrim-tab:      color-mix(in srgb, #08090a 72%, transparent);
  --scrim-top:      color-mix(in srgb, #08090a 88%, transparent);

  --orange:         var(--primary);
  --orange-light:   color-mix(in srgb, var(--orange) 15%, transparent);
  --danger:         var(--pal-alarm-400);
  --danger-light:   color-mix(in srgb, var(--danger) 15%, transparent);
  --success:        var(--pal-leaf-500);
  --success-light:  color-mix(in srgb, var(--success) 15%, transparent);
  --warning:        var(--pal-ruble-400);

  --sidebar-bg:         var(--pal-ink-850);
  --sidebar-text:       var(--text-dim);
  --sidebar-text-hover: var(--text);
  --sidebar-active:     var(--primary);
  --sidebar-border:     var(--border);
  --sidebar-surface:    var(--card);

  
  --shadow-c:   color-mix(in srgb, var(--bg) 35%, #000000);
  --shadow-xs:  0 1px 2px  color-mix(in srgb, var(--shadow-c) 60%, transparent);
  --shadow:     0 2px 10px color-mix(in srgb, var(--shadow-c) 55%, transparent);
  --shadow-md:  0 6px 20px color-mix(in srgb, var(--shadow-c) 60%, transparent);
  --shadow-lg:  0 12px 32px color-mix(in srgb, var(--shadow-c) 70%, transparent);

  
  --dom-workout:    #a8d65e;                   
  
  --chart-1:        #3987e5;
  --chart-2:        #c98500;
  --chart-3:        #9085e9;
  
  --piste-green:    #4cc06d;
  --piste-blue:     #4d95ee;
  --piste-red:      #ef5b5b;
  --piste-black:    #0b0c0d;
  --piste-yellow:   #f2c94c;
  --piste-casing:   #1b1e21;
  --piste-casing-black: #c9cdd1;
  --piste-ring:     color-mix(in srgb, var(--text) 45%, transparent);
  
  --map-land:             #111417;
  --map-park:             #141f1b;
  --map-water:            #10242c;
  --map-water-edge:       #1b4a55;
  --map-building:         #1a1f23;
  --map-building-edge:    #252b30;
  --map-building-shadow:  #0b0d0f;
  --map-urban:            #14181c;
  --map-road:             #1f252a;
  --map-road-major:       #2a3137;
  --map-road-highway:     #3a3a30;
  --map-road-casing:      #111417;
  --map-label:            #8c9694;
  --map-label-city:       #e3e8e6;
  --map-label-halo:       #111417;
  --map-label-minor:      #5f6866;
  --map-track:            #6b3b2c;
  --map-glass:            rgba(18,20,22,.72);
  --map-glass-edge:       rgba(238,242,241,.08);
  --map-cluster-ring:     #2dd4bf;   
  --map-cluster-text:     #eef2f1;
  --map-sport:            #2dd4bf;   
  --map-sport-edge:       #1f8f82;
  --map-cluster-bg:       #2a2f33;   
  
  --ring-move:      #c6f432;
  --ring-food:      #f2b544;
  --ring-calm:      #a39cff;
  --dom-food:       #5fcf8a;                   
  --dom-mind:       var(--pal-calm-400);       
  --dom-place:      var(--pal-air-400);        
  --dom-care:       var(--pal-care-400);       
  --dom-money:      var(--pal-ruble-400);      
  
  --loop-body:      var(--pal-brand-400);
  --loop-mode:      var(--pal-aqua-400);
  --loop-body-text: var(--pal-brand-400);
  --loop-mode-text: var(--pal-aqua-300);
}

:is(html:root, .style-scope).light,
:is(html:root, .style-scope)[data-theme="light"] {
  color-scheme: light;
  --primary:        var(--pal-brand-700);
  --primary-dark:   var(--pal-brand-800);
  --primary-light:  color-mix(in srgb, var(--primary) 14%, transparent);
  --primary-bg:     color-mix(in srgb, var(--primary) 8%, transparent);
  --accent:         var(--primary);
  --accent-dark:    var(--primary-dark);
  --accent-light:   var(--primary-light);
  --spark:          var(--pal-aqua-700);

  --bg:             var(--pal-paper-100);
  --bg-warm:        var(--pal-paper-200);
  --card:           var(--pal-paper-50);
  --text:           #15201e;
  --text-dim:       #445250;
  --text-muted:     #58635f;   
  --border:         var(--pal-paper-300);
  --border-light:   #e6ebea;

  --bg-input:       var(--pal-paper-50);
  --bg-skeleton:    #e6ebe9;
  --sk-shine:       #f3f6f5;
  --bg-header:      color-mix(in srgb, var(--bg) 97%, transparent);
  --bg-tabbar:      color-mix(in srgb, var(--bg) 98%, transparent);
  --bg-tabbar-float: color-mix(in srgb, var(--bg) 55%, transparent);
  --scrim-tab:      color-mix(in srgb, #f6f8f7 78%, transparent);
  --scrim-top:      color-mix(in srgb, #f6f8f7 92%, transparent);

  --orange:         var(--primary);
  --orange-light:   color-mix(in srgb, var(--orange) 14%, transparent);
  --danger:         var(--pal-alarm-700);
  --danger-light:   color-mix(in srgb, var(--danger) 12%, transparent);
  --success:        var(--pal-leaf-700);
  --success-light:  color-mix(in srgb, var(--success) 12%, transparent);
  --warning:        var(--pal-ruble-700);

  --sidebar-bg:         var(--pal-paper-200);
  --sidebar-text:       var(--text-dim);
  --sidebar-text-hover: var(--text);
  --sidebar-active:     var(--primary);
  --sidebar-border:     var(--border);
  --sidebar-surface:    #e4e9e8;

  --shadow-c:   var(--text);
  --shadow-xs:  0 1px 2px  color-mix(in srgb, var(--shadow-c) 6%, transparent);
  --shadow:     0 2px 10px color-mix(in srgb, var(--shadow-c) 8%, transparent);
  --shadow-md:  0 6px 20px color-mix(in srgb, var(--shadow-c) 10%, transparent);
  --shadow-lg:  0 12px 32px color-mix(in srgb, var(--shadow-c) 14%, transparent);

  --dom-workout:    #3f6212;
  --chart-1:        #2a78d6;
  --chart-2:        #b87a00;
  --chart-3:        #4a3aa7;
  --piste-green:    #2e9d4f;
  --piste-blue:     #2a78d6;
  --piste-red:      #d63b3b;
  --piste-black:    #1f2326;
  --piste-yellow:   #d9a400;
  --piste-casing:   #ffffff;
  --piste-casing-black: #ffffff;
  --piste-ring:     transparent;
  --map-land:             #f3efe7;
  --map-park:             #e4ead6;
  --map-water:            #d0e2e8;
  --map-water-edge:       #9cc6db;
  --map-building:         #e6dfd2;
  --map-building-edge:    #d9d0c0;
  --map-building-shadow:  #d3c9b8;
  --map-urban:            #ece6db;
  --map-road:             #ffffff;
  --map-road-major:       #fffaf0;
  --map-road-highway:     #f7e7c8;
  --map-road-casing:      #ddd5c6;
  --map-label:            #5f6468;
  --map-label-city:       #2a2f33;
  --map-label-halo:       #f3efe7;
  --map-label-minor:      #8a8f92;   
  --map-track:            #e9b3a0;   
  --map-glass:            rgba(245,247,246,.72);  
  --map-glass-edge:       rgba(21,32,30,.08);
  --map-cluster-ring:     #ffffff;
  --map-cluster-text:     #ffffff;
  --map-sport:            #e8a400;   
  --map-sport-edge:       #d29a1a;
  --map-cluster-bg:       #1d2023;
  --ring-move:      #65a30d;
  --ring-food:      #b45309;
  --ring-calm:      #7c3aed;
  --dom-food:       #15803d;
  --dom-mind:       var(--pal-calm-600);
  --dom-place:      var(--pal-air-700);
  --dom-care:       var(--pal-care-700);
  --dom-money:      var(--pal-ruble-700);
  --loop-body:      var(--pal-brand-400);
  --loop-mode:      var(--pal-aqua-500);
  --loop-body-text: var(--pal-brand-700);
  --loop-mode-text: var(--pal-aqua-700);
}

:is(html:root, .style-scope).night,
:is(html:root, .style-scope)[data-theme="night"] {
  --primary:        var(--pal-brand-300);
  --primary-dark:   var(--pal-brand-400);
  --primary-light:  color-mix(in srgb, var(--primary) 18%, transparent);
  --primary-bg:     color-mix(in srgb, var(--primary) 10%, transparent);
  --accent:         var(--primary);
  --accent-dark:    var(--primary-dark);
  --accent-light:   var(--primary-light);
  --spark:          var(--pal-aqua-300);

  --bg:             var(--pal-ink-950);
  --bg-warm:        #10131f;
  --card:           #141828;
  --text:           #d9dcef;
  --text-dim:       #a3a8c6;
  --text-muted:     #7a80a3;
  --border:         #232a42;
  --border-light:   #1a2036;

  --bg-input:       #0f1322;
  --bg-skeleton:    #232a42;   
  --sk-shine:       #2f3754;
  --bg-header:      color-mix(in srgb, #070912 97%, transparent);
  --bg-tabbar:      color-mix(in srgb, #05070e 98%, transparent);
  --bg-tabbar-float: color-mix(in srgb, var(--bg) 42%, transparent);
  --scrim-tab:      color-mix(in srgb, #04050b 72%, transparent);
  --scrim-top:      color-mix(in srgb, #04050b 88%, transparent);

  --orange:         var(--primary);
  --orange-light:   color-mix(in srgb, var(--orange) 15%, transparent);
  --danger:         #ff7089;
  --danger-light:   color-mix(in srgb, var(--danger) 15%, transparent);
  --success:        #5ec48a;
  --success-light:  color-mix(in srgb, var(--success) 15%, transparent);
  --warning:        #e3ad4b;

  --sidebar-bg:         #0e1120;
  --sidebar-text:       var(--text-dim);
  --sidebar-text-hover: var(--text);
  --sidebar-active:     var(--primary);
  --sidebar-border:     var(--border);
  --sidebar-surface:    #11152a;

  --shadow-c:   color-mix(in srgb, var(--bg) 35%, #000000);
  --shadow-xs:  0 1px 2px  color-mix(in srgb, var(--shadow-c) 60%, transparent);
  --shadow:     0 2px 10px color-mix(in srgb, var(--shadow-c) 55%, transparent);
  --shadow-md:  0 6px 20px color-mix(in srgb, var(--shadow-c) 60%, transparent);
  --shadow-lg:  0 12px 32px color-mix(in srgb, var(--shadow-c) 70%, transparent);

  --dom-workout:    #c6f432;
  --chart-1:        #3987e5;
  --chart-2:        #c98500;
  --chart-3:        #9085e9;
  --piste-green:    #4cc06d;
  --piste-blue:     #4d95ee;
  --piste-red:      #ef5b5b;
  --piste-black:    #0b0c0d;
  --piste-yellow:   #f2c94c;
  --piste-casing:   #1b1e21;
  --piste-casing-black: #c9cdd1;
  --piste-ring:     color-mix(in srgb, var(--text) 45%, transparent);
  --map-land:             #111417;
  --map-park:             #141f1b;
  --map-water:            #10242c;
  --map-water-edge:       #1b4a55;
  --map-building:         #1a1f23;
  --map-building-edge:    #252b30;
  --map-building-shadow:  #0b0d0f;
  --map-urban:            #14181c;
  --map-road:             #1f252a;
  --map-road-major:       #2a3137;
  --map-road-highway:     #3a3a30;
  --map-road-casing:      #111417;
  --map-label:            #8c9694;
  --map-label-city:       #e3e8e6;
  --map-label-halo:       #111417;
  --map-label-minor:      #5f6866;
  --map-track:            #6b3b2c;
  --map-glass:            rgba(18,20,22,.72);
  --map-glass-edge:       rgba(238,242,241,.08);
  --map-cluster-ring:     #2dd4bf;   
  --map-cluster-text:     #eef2f1;
  --map-sport:            #2dd4bf;   
  --map-sport-edge:       #1f8f82;
  --map-cluster-bg:       #2a2f33;   
  --ring-move:      #c6f432;
  --ring-food:      #f2b544;
  --ring-calm:      #a39cff;
  --dom-food:       #6fd69a;
  --dom-mind:       #9d98ff;
  --dom-place:      #5fb2e0;
  --dom-care:       #e79bea;
  --dom-money:      #e3ad4b;
  --loop-body:      var(--pal-brand-400);
  --loop-mode:      var(--pal-aqua-400);
  --loop-body-text: var(--pal-brand-300);
  --loop-mode-text: var(--pal-aqua-300);
}

:is(html:root, .style-scope),
:is(html:root, .style-scope):is(.dark, .light, .night),
:is(html:root, .style-scope)[data-theme] {
  
  --spark-bg:       color-mix(in srgb, var(--spark) 14%, transparent);
  
  --loop-track-body: color-mix(in srgb, var(--loop-body) 22%, transparent);
  --loop-track-mode: color-mix(in srgb, var(--loop-mode) 22%, transparent);

  
  --sel-bg:          var(--text);
  --sel-text:        var(--bg);
  --sel-line:        var(--text);
  --sel-tint:        color-mix(in srgb, var(--text) 10%, transparent);
  --link:            var(--text);
  --link-hover:      var(--text-dim);

  --chip-bg-active:      var(--sel-bg);
  --chip-text-active:    var(--sel-text);
  --chip-border-active:  var(--sel-bg);
  --tab-bg-active:       var(--sel-bg);
  --tab-text-active:     var(--sel-text);
  --menu-item-active-bg:   var(--sel-bg);
  --menu-item-active-text: var(--sel-text);
  --btn-sec-text:        var(--text);
  --toggle-accent:       var(--text);
  --input-border-focus:  var(--text-dim);

  
  --font-sans: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-num:  tabular-nums;
  --font-display-num: "Barlow Condensed", var(--font-sans);  
  --font-display: "Unbounded", var(--font-sans);  

  
  --media-bg:          #000000;   
  --on-media:          #ffffff;
  --on-media-dim:      color-mix(in srgb, #ffffff 78%, transparent);
  --media-scrim:       color-mix(in srgb, #000000 78%, transparent);
  --media-scrim-soft:  color-mix(in srgb, #000000 45%, transparent);
  --media-scrim-grad:  linear-gradient(to top, color-mix(in srgb, #000000 78%, transparent) 0%, color-mix(in srgb, #000000 35%, transparent) 55%, transparent 100%);

  
  --dur-fast:   140ms;
  --dur-base:   220ms;
  --dur-press:  120ms;   
  --dur-pop:    220ms;   
  --dur-sheet:  320ms;   
  --dur-celebrate: 900ms; 
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);   
  --dur-slow:   320ms;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --stagger:    60ms;
  --transition: var(--dur-fast) var(--ease-out);   
  --press-scale: 0.97;                             

  
  --space-1:  4px;
  --space-2:  8px;
  --space-3: 12px;   
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;   
  --space-8: 32px;
  --space-10: 40px;

  
  --btn-bg-disabled:     color-mix(in srgb, var(--text) 9%, var(--card));   
  --btn-text-disabled:   var(--text-muted);
  --btn-border-disabled: transparent;     
  
  --fs-min:      12px;   
  --fs-caption:  13px;   
  --fs-body:     14px;   
  --fs-body-lg:  15px;   
  --fs-title:    17px;   
  --fs-h2:       18px;   
  --fs-num-s:    20px;   
  --fs-num:      22px;   
  --fs-h1:       28px;   
  --fs-hero:     40px;   
  
  --fw-regular:  400;
  --fw-medium:   500;   
  --fw-semibold: 600;   
  --fw-bold:     700;   
  --chip-h:      36px;   
  --tap-min:     44px;   
  --iconact-size: 48px;  

  
  --dom-workout-bg: color-mix(in srgb, var(--dom-workout) 14%, transparent);
  --dom-food-bg:    color-mix(in srgb, var(--dom-food) 14%, transparent);
  --dom-mind-bg:    color-mix(in srgb, var(--dom-mind) 14%, transparent);
  --dom-place-bg:   color-mix(in srgb, var(--dom-place) 14%, transparent);
  --dom-care-bg:    color-mix(in srgb, var(--dom-care) 14%, transparent);
  --dom-money-bg:   color-mix(in srgb, var(--dom-money) 14%, transparent);

  
  --muscle-1:      var(--pal-brand-500);   
  --muscle-2:      #ff8a3d;                
  --muscle-3:      #ffd3b5;                
  --muscle-3-line: #e0a27c;                
  --muscle-bg:     #f6f3ef;                
  
  --atlas-1:       #f2c94c;   
  --atlas-2:       #f2994a;   
  --atlas-3:       #4f8fd9;   
  --atlas-4:       #a8cf5e;   
  --atlas-5:       #3fa35a;   
  --atlas-6:       #d24d8c;   
  --atlas-line:    #1f2326;   

  
  --badge-bg:      var(--danger);
  --badge-text:    var(--bg);       
  
  --staff-bg:      var(--sel-bg);
  --staff-text:    var(--sel-text);
  --staff-accent:  var(--warning);

  
  --phase-period:  var(--chart-3);   
  --phase-after:   var(--dom-food);  
  --phase-mid:     var(--chart-2);   
  --phase-before:  var(--chart-1);   

  
  --primary-line:   color-mix(in srgb, var(--primary) 18%, transparent);
  --primary-press:  color-mix(in srgb, var(--primary) 22%, transparent);
  --focus-ring:     0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
  
  --focus-outline:  2px solid var(--primary);
  --focus-offset:   2px;

  
  
  --crowd-low:      color-mix(in srgb, var(--dom-place) 35%, var(--card));
  --crowd-mid:      color-mix(in srgb, var(--dom-place) 70%, var(--card));
  --crowd-high:     var(--dom-place);
  --crowd-none:     var(--border);             

  
  --pin-bg:          var(--primary);
  --pin-fg:          var(--bg);
  --pin-ring:        var(--bg);
  --pin-private-bg:  color-mix(in srgb, var(--text-muted) 45%, var(--card));
  --pin-private-fg:  var(--text-dim);
  --pin-selected-bg: var(--spark);

  
  
  --pin-group-gyms:    #7c5cff;   
  --pin-group-outdoor: #e8a400;   
  --pin-group-parks:   #2fa865;   
  --pin-group-water:   #1f7ae0;   
  --pin-group-ice:     #4fb8e8;   
  --pin-group-spa:     #a07c5c;   
  --pin-group-other:   #7d8794;   
  --pin-recommended:   var(--success);   
  
  --map-cluster-1:     #3a4048;
  --map-cluster-2:     #30353c;
  --map-cluster-3:     #272b31;
  --map-cluster-4:     #1f2328;

  
  --esc-e1:          var(--dom-mind);                    
  --esc-e2:          var(--warning);                     
  --esc-e3:          var(--danger);                      
  --crisis:          var(--dom-mind);                    

  
  --pause:           color-mix(in srgb, var(--dom-mind) 70%, var(--text-muted));
  --pause-bg:        color-mix(in srgb, var(--pause) 16%, transparent);
  --day-done:        var(--loop-body);
  --day-rest:        color-mix(in srgb, var(--loop-body) 30%, var(--card));
  --day-empty:       var(--border);
  --stone:           var(--loop-body);

  
  --idx-great:      var(--success);            
  --idx-good:       var(--dom-place);          
  --idx-fair:       var(--warning);            
  --idx-poor:       var(--danger);             

  
  --coin:           var(--spark);         
  --coin-bg:        var(--spark-bg);
  --price:          var(--dom-money);

  
  --btn-danger-text: var(--bg);
  --fab-shadow:     0 4px 18px color-mix(in srgb, var(--primary) 38%, transparent);
}

:where(button, input, select, textarea) { font-family: inherit; }



html:root .btn--primary:disabled,
html:root .btn--primary[aria-disabled="true"],
html:root .btn-primary:disabled,
html:root .btn-primary[aria-disabled="true"] {
  background: var(--btn-bg-disabled);
  color: var(--btn-text-disabled);
  border: 1px solid var(--btn-border-disabled);
  opacity: 1;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
html:root .btn--primary:disabled svg,
html:root .btn-primary:disabled svg { color: inherit; }
.btn-hint {
  margin: 6px 0 0; text-align: center;
  font-size: var(--fs-caption); line-height: 1.4; color: var(--text-muted);
}

html:root .btn:not(:disabled):not([aria-disabled="true"]):active {
  transform: scale(var(--press-scale));
}
html:root .btn { transition-property: background-color, border-color, color, opacity, transform; transition-duration: var(--dur-fast); transition-timing-function: var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html:root *, html:root *::before, html:root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html:root :is(button, a[href], summary, select, [role="button"], [role="tab"], [role="switch"], [role="menuitem"],
  [role="option"], [tabindex]:not([tabindex="-1"]), input[type="checkbox"], input[type="radio"]):focus-visible {
  outline: var(--focus-outline); outline-offset: var(--focus-offset);
}

html:root .swipe-track:focus-visible { outline: var(--focus-outline); outline-offset: calc(-2 * var(--focus-offset)); }
html:root .desktop-header-search:focus-within { border-color: var(--primary); }

.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field-label { font-size: var(--fs-caption); font-weight: 600; color: var(--text-dim); }
.field-error { margin: 0; font-size: var(--fs-caption); line-height: 1.4; color: var(--danger); }
.field--invalid input, .field--invalid textarea, .field--invalid select,
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger) !important; }

html:root :is(.input-affix, .set-input--prefix):has(> input[aria-invalid="true"]),
html:root :is(.input-affix, .set-input--prefix):has(> input[aria-invalid="true"]):focus-within {
  border-color: var(--danger) !important;
}

html:root .field-status {
  display: flex; align-items: center; gap: var(--space-1); min-height: 1.4em;
  margin: 0; font-size: var(--fs-caption); line-height: 1.4; color: var(--text-muted);
  transition: opacity var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
html:root .field-status svg { width: 14px; height: 14px; flex: none; }
html:root .field-status--busy::before {
  content: ""; width: 12px; height: 12px; flex: none; border-radius: var(--radius-pill);
  border: 2px solid var(--border-light); border-top-color: var(--text-dim);
  animation: field-status-spin 0.8s linear infinite;
}
html:root .field-status--ok { color: var(--success); }
html:root .field-status--err { color: var(--danger); }
html:root .field-status--hidden { opacity: 0; }
@keyframes field-status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html:root .field-status--busy::before { animation: none; border-top-color: var(--border-light); }
}


html:root .seg-btn--sm {
  min-height: var(--chip-h);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-caption);
}

html:root .seg-btn--wrap {
  max-width: 100%; height: auto; min-height: var(--chip-h);
  white-space: normal; text-align: left; line-height: 1.3;
}

.status-note {
  display: flex; align-items: flex-start; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-sm);
  background: var(--bg-warm); color: var(--text-dim);
  font-size: var(--fs-caption); line-height: 1.45;
}
.status-note > svg { flex: none; margin-top: 1px; color: var(--text-muted); }
.status-note--error { background: var(--danger-light); color: var(--text); }
.status-note--error > svg { color: var(--danger); }

.input--num {
  width: 88px; min-width: 72px; text-align: right;
  font-variant-numeric: var(--font-num);
  -moz-appearance: textfield; appearance: textfield;
}
.input--num::-webkit-outer-spin-button,
.input--num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.link-quiet {
  display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap-min);
  font-size: var(--fs-caption); color: var(--text-muted); text-decoration: none;
}
.link-quiet > svg { flex: none; width: 14px; height: 14px; }
.link-quiet:active { color: var(--text); }

button.link-quiet {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-size: var(--fs-caption); cursor: pointer;
}

html:root .seg-btn:hover:not(.active) { border-color: var(--border-light); color: var(--text-dim); }
html:root .chip:hover:not(.active)    { border-color: var(--chip-border); }
@media (hover: hover) {
  html:root .seg-btn:hover:not(.active) { border-color: var(--text-muted); color: var(--text); }
  html:root .chip:hover:not(.active)    { border-color: var(--text-muted); }
}

html:root input[type="range"],
html:root input[type="range"]:focus {
  -webkit-appearance: none; appearance: none; height: var(--tap-min);
  background: transparent; cursor: pointer; touch-action: none;
  
  border: 0; padding: 0; border-radius: 0; box-shadow: none; outline: none;
}

html:root input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--sel-line); }
html:root input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--sel-line); }
html:root input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: var(--radius-xs);
  background: linear-gradient(to right, var(--text) var(--pct, 0%), var(--border-light) var(--pct, 0%));
}
html:root input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; margin-top: -8px; border: 0;
  border-radius: var(--radius-pill); background: var(--text); box-shadow: var(--shadow-xs);
}
html:root input[type="range"]::-moz-range-track { height: 4px; border-radius: var(--radius-xs); background: var(--border-light); }
html:root input[type="range"]::-moz-range-progress { height: 4px; border-radius: var(--radius-xs); background: var(--text); }
html:root input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border: 0;
  border-radius: var(--radius-pill); background: var(--text); box-shadow: var(--shadow-xs);
}

html:root .btn--secondary:hover { border-color: var(--btn-sec-border); background: var(--btn-sec-bg); }
@media (hover: hover) {
  html:root .btn--secondary:hover:not(:disabled) {
    border-color: var(--text-muted);
    background: color-mix(in srgb, var(--text) 6%, var(--btn-sec-bg));
  }
}

html:root .home-scrim {
  height: calc(var(--safe-top) + var(--header-height));
  
  background: var(--bg);
  border-bottom: 0;
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  -webkit-mask-image: none; mask-image: none;
}
@supports (background: color-mix(in srgb, red 50%, transparent)) {
  html:root .home-scrim { background: color-mix(in srgb, var(--bg) 72%, transparent); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html:root .home-scrim { background: var(--bg); }
}

html:root details.disclosure > summary {
  list-style: none; display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: var(--tap-min); cursor: pointer; color: var(--link);
  font-size: var(--fs-caption); text-decoration: underline; text-underline-offset: 2px;
}
html:root details.disclosure > summary::-webkit-details-marker { display: none; }
html:root details.disclosure > summary .disclosure-chev {
  width: 14px; height: 14px; flex: none; transition: transform var(--dur-fast) var(--ease-out);
}
html:root details.disclosure[open] > summary .disclosure-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
  html:root details.disclosure > summary .disclosure-chev { transition: none; }
}

html:root .age-badge {
  display: inline-flex; align-items: center; flex: none;
  padding: 0 var(--space-2); min-height: 20px; border-radius: var(--radius-pill);
  background: var(--bg-warm); border: 1px solid var(--border);
  color: var(--text-dim); font-size: var(--fs-min); font-weight: 600; line-height: 1;
  font-variant-numeric: var(--font-num);
}
html:root .age-note {
  display: flex; align-items: center; gap: var(--space-1); margin: 0;
  color: var(--text-muted); font-size: var(--fs-min); line-height: 1.4;
}
html:root .age-note svg { width: 12px; height: 12px; flex: none; }

html:root .tag {
  display: inline-flex; align-items: center; gap: var(--space-1); flex: none;
  min-height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-pill);
  background: var(--bg-warm); border: 1px solid var(--border);
  color: var(--text-dim); font-size: var(--fs-caption); font-weight: 600; line-height: 1;
}
html:root .tag svg { width: 14px; height: 14px; flex: none; }
html:root .tag--price { color: var(--price); }
html:root .tag--ok { color: var(--success); }
html:root .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }

html:root .author-verified { background: var(--spark); color: var(--bg); }
html:root .author-rank-chip--official {
  background: var(--bg-warm); border: 1px solid var(--border); color: var(--text-dim);
  font-size: var(--fs-min); font-weight: 600; padding: 1px var(--space-2); border-radius: var(--radius-pill);
}

html:root .post-author-line1 .author-rank-chip--official {
  height: 18px; padding: 0 var(--space-2); line-height: 1; flex-shrink: 0; white-space: nowrap;
}
html:root .comment-item--official { background: var(--bg-warm); }
html:root .comment-author--klevat { color: var(--text); }

.search-field { position: relative; display: block; }
.search-field > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-field > input { padding-left: 36px; }

.sheet-sticky-action { position: sticky; bottom: 0; padding: var(--space-2) 0; background: linear-gradient(var(--card), var(--card)) var(--bg); }

.page-sticky-action {
  position: sticky; z-index: var(--z-sticky);
  bottom: calc(var(--tab-height) + var(--space-2) + env(safe-area-inset-bottom, 0px));
  margin-top: var(--space-3); padding: var(--space-2);
  border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-md);
}
.page-sticky-action > .btn { margin-top: 0; }

.app-main:has(.page-sticky-action) { overflow: visible; }

@media (min-width: 1024px) and (min-height: 600px) {
  .page-sticky-action { bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }
}

html:root { touch-action: manipulation; }
@media (pointer: coarse) {
  html:root :is(input:not([type="range"], [type="checkbox"], [type="radio"], [type="button"], [type="submit"], [type="file"], [type="color"], [type="hidden"]), textarea, select) {
    font-size: 16px !important;
  }
}

.eb {
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: calc(24px + var(--safe-top)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  text-align: center; background: var(--bg); color: var(--text);
}
.eb-ic {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
  background: var(--card); border: 1px solid var(--border); color: var(--text-dim);
}
.eb-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.eb-text { margin: 0; max-width: 320px; font-size: var(--fs-body); line-height: 1.5; color: var(--text-dim); }
.eb-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; max-width: 320px; margin-top: 12px; }
.eb-actions .btn { margin-bottom: 4px; }
.eb-actions .link-quiet { min-height: var(--tap-min); }
.eb-details { margin-top: 12px; max-width: 320px; width: 100%; text-align: left; font-size: var(--fs-caption); color: var(--text-muted); }
.eb-details summary { cursor: pointer; min-height: var(--tap-min); display: flex; align-items: center; }
.eb-details code { display: block; white-space: pre-wrap; word-break: break-all; }

.avatar-fallback { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  border-radius: var(--radius-pill); background: var(--bg-warm); color: var(--text-dim); font-weight: 700; }


html:root :is(.dash-qb__ic, .dash-cmp__ic, .dash-lrows__ic) { background: color-mix(in srgb, currentColor 15%, transparent); border-radius: var(--radius); }
html:root .dash-qb__ic { width: 40px; height: 40px; }
html:root .dash-lrows__ic { width: 32px; height: 32px; display: inline-grid; place-items: center; }

html:root :is(.dash-num b, .dash-tiny__v, .dash-dnum) { color: var(--spark); }

html:root .hdr-btn--create { color: var(--primary); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 70%, transparent); border-radius: var(--radius); }
html:root .hdr-btn--music { color: var(--spark); }

html:root .tab-bar > .tab-item--feed .tab-icon { width: 52px; height: 52px; margin-top: -20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-text);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--btn-bg) 40%, transparent); }
html:root .tab-bar > .tab-item--feed .tab-icon svg { color: inherit; fill: currentColor; }
html:root .tab-bar > .tab-item--feed.active { color: var(--text); }
html:root .tab-bar--compact > .tab-item--feed .tab-icon { width: 44px; height: 44px; margin-top: -12px; }

html:root .tab-bar > .tab-item.active:not([href="/"]), html:root .tab-bar > .tab-item.active:not([href="/"]) .tab-icon { color: var(--text); }

html:root :is(.more-row-icon, .mu-pl-ic) { background: color-mix(in srgb, currentColor 15%, transparent); }

@keyframes icon-pop { 0% { transform: scale(0.82); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  html:root :is(.tab-bar .tab-item, .hdr-btn, .dash-qb) :is(.tab-icon, svg, .dash-qb__ic) { transition: transform 120ms var(--ease-out); }
  html:root :is(.tab-bar .tab-item, .hdr-btn, .dash-qb):active :is(.tab-icon, .dash-qb__ic, svg) { transform: scale(0.86); }
  html:root .tab-bar .tab-item.active .tab-icon { animation: icon-pop 220ms var(--ease-out); }
}

html:root .app-header:has(.header-login-btn) .hdr-btn--create { color: var(--text); box-shadow: none; }

html:root body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
html:root :is(h1, h2, .hb-title, .section-title, .page-title) { letter-spacing: -0.01em; text-wrap: balance; }
html:root :is(.tr-stat-value, .dash-num b, .dash-tiny__v, .dash-dnum, time) { font-variant-numeric: tabular-nums; }

@media (hover: hover) { html:root .seg-btn:not(.active):not(.seg-btn--cta):hover { border-color: var(--text-muted); } }

html:root .sidebar-nav-item { min-height: 44px; border-radius: var(--radius); font-weight: 500; color: var(--text-dim); }
html:root .sidebar-nav-item svg { color: var(--text-muted); transition: transform 120ms var(--ease-out); }
html:root .sidebar-nav-item.active { background: var(--bg-warm); color: var(--text); font-weight: 600; }
html:root .sidebar-nav-item.active svg { color: var(--text); }
@media (hover: hover) { html:root .sidebar-nav-item:not(.active):hover { background: color-mix(in srgb, var(--bg-warm) 60%, transparent); color: var(--text); } }
@media (prefers-reduced-motion: no-preference) { html:root .sidebar-nav-item:active svg { transform: scale(0.86); } }
html:root .sidebar-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--badge-bg); color: var(--badge-text); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
html:root .sidebar-rail-section-title, html:root .sidebar-section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); }

html:root .tab-u-row { display: flex; gap: var(--space-4); border-bottom: 1px solid var(--border-light); overflow-x: auto; scrollbar-width: none; }
html:root .tab-u-row::-webkit-scrollbar { display: none; }
html:root .tab-u {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--tap-min);
  padding: 0 2px; background: none; border: 0; font: 600 15px/1 var(--font-sans); color: var(--text-muted); cursor: pointer;
}
html:root .tab-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: var(--tab-u-h, 2px); border-radius: 2px; background: transparent; }
html:root .tab-u.active, html:root .tab-u[aria-selected="true"] { color: var(--text); }
html:root .tab-u.active::after, html:root .tab-u[aria-selected="true"]::after { background: var(--tab-u-c, var(--text)); }
html:root .tab-u:focus-visible { outline: 2px solid var(--sel-line); outline-offset: 2px; border-radius: var(--radius-xs); }

html:root .switch { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 46px; height: 28px; margin: 0;
  padding: 0; border: 0; border-radius: var(--switch-radius, 999px); background: var(--border); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out); }
html:root .switch::after, html:root .switch > span { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: var(--switch-radius, 999px); background: var(--card); box-shadow: var(--shadow-xs);
  transition: transform var(--dur-pop) var(--ease-spring); }
html:root button.switch::after { content: none; }
html:root .switch:is(:checked, [aria-checked="true"]) { background: var(--toggle-accent); }
html:root .switch:is(:checked, [aria-checked="true"])::after, html:root .switch[aria-checked="true"] > span { transform: translateX(18px); }
html:root .switch:focus-visible { outline: 2px solid var(--sel-line); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html:root .switch::after, html:root .switch > span { transition: none; } }

html:root .icon-btn.icon-btn--media { background: var(--media-scrim-soft); color: var(--on-media);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); min-width: var(--tap-min); min-height: var(--tap-min); }
html:root .icon-btn.icon-btn--media:active { background: var(--media-scrim); }

@media (hover: hover) { html:root .set-item:hover { background: var(--bg-warm); } }
html:root .set-item:active { background: var(--bg-warm); }
html:root .set-item:focus-visible { outline: 2px solid var(--sel-line); outline-offset: -2px; }

html:root .set-item:has(> .set-item-chev) { position: relative; padding-inline-end: calc(14px + 26px); }
html:root .set-item > .set-item-chev { position: absolute; inset-inline-end: 14px; inset-block: 0; margin-block: auto; }
html:root .set-item > .set-item-label { flex: 1 1 45%; min-width: min-content; overflow-wrap: normal; }

html:root .set-item > .set-item-value { flex: 0 1 auto; min-width: min-content; max-width: 100%; margin-inline-start: auto; overflow-wrap: normal; }

html.text-xl .set-item:has(> .set-item-ico):not(:has(> :not(.set-item-ico, .set-item-label, .set-item-chev))) > .set-item-label {
  min-width: 0; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 6 6;
}

:where(.btn, .chip, .seg-btn, .seg-group button) { position: relative; }
:where(.btn, .chip, .seg-btn, .seg-group button)::before {
  content: ''; position: absolute;
  inset-block: min(0px, calc(50% - var(--tap-min) / 2));
  inset-inline: min(0px, calc(50% - var(--tap-min) / 2));
}



.style-scope {
  --btn-bg: var(--primary); --btn-bg-hover: var(--primary-dark); --btn-text: var(--bg);
  --btn-sec-bg: var(--card); --btn-sec-border: var(--border); --btn-sec-text: var(--text); --btn-danger-bg: var(--danger);
  --input-bg: var(--bg-warm); --input-bg-focus: var(--card); --input-border: var(--border); --input-text: var(--text);
  --input-placeholder: var(--text-muted);
  --chip-bg: var(--card); --chip-border: var(--border); --chip-text: var(--text-muted);
  background-color: var(--bg); background-image: var(--page-image, none); color: var(--text); font-family: var(--font-sans);
}

:is(html:root, .style-scope):is([data-style="clean"], [data-style="clay"], [data-style="glass"], [data-style="paper"], [data-style="neon"], [data-style="nordic"], [data-style="retro"], [data-style="board"], [data-style="watercolor"], [data-style="anime"])
  :is(.dash-w, .post-card, .kcard, .card, .more-section-list, .dash-week, .rating-row, .lb-card) {
  background: var(--surface-bg); border: var(--surface-border); box-shadow: var(--surface-shadow);
  -webkit-backdrop-filter: var(--surface-blur); backdrop-filter: var(--surface-blur);
}

html:root:is([data-style="glass"], [data-style="paper"], [data-style="retro"], [data-style="watercolor"], [data-style="anime"]) body { background-color: var(--bg); background-image: var(--page-image); background-attachment: fixed; }


:is(html:root, .style-scope)[data-style="clean"] {
  --radius: 10px; --radius-sm: 8px; --radius-xs: 6px; --radius-lg: 12px; --radius-xl: 14px;
  --btn-radius: 8px; --btn-radius-sm: 8px;
  --surface-bg: var(--card); --surface-border: 1px solid var(--border-light); --surface-shadow: none; --surface-blur: none;
  --dur-pop: 160ms; --press-scale: 0.98; --ease-spring: cubic-bezier(0.2, 0, 0, 1);
}
:is(html:root, .style-scope)[data-style="clean"][data-theme="light"] {
  --bg: #fbfbfa; --bg-warm: #f2f2f0; --card: #ffffff; --border: #e6e6e3; --border-light: #eeeeeb;
  --text: #111214; --text-dim: #45474a; --text-muted: #606266; --spark: #1d4ed8; --primary: #1c1d20; --primary-dark: #000000;
  --bg-input: #f2f2f0; --bg-skeleton: #ececea; --shadow: none; --shadow-md: 0 2px 8px rgba(0,0,0,0.05); --shadow-xs: none;
  --bg-header: color-mix(in srgb, #fbfbfa 96%, transparent); --bg-tabbar: color-mix(in srgb, #fbfbfa 98%, transparent);
  --dom-workout: #3d3f42; --dom-food: #3d3f42; --dom-mind: #3d3f42; --dom-place: #3d3f42; --dom-care: #3d3f42; --dom-money: #3d3f42;
}
:is(html:root, .style-scope)[data-style="clean"][data-theme="dark"] {
  --bg: #0e0e0f; --bg-warm: #18181a; --card: #141415; --border: #2a2a2c; --border-light: #212123;
  --text: #f2f2f0; --text-dim: #c4c4c1; --text-muted: #8d8d8a; --spark: #7aa7ff; --primary: #f2f2f0; --primary-dark: #ffffff;
  --bg-input: #18181a; --bg-skeleton: #222224; --shadow: none; --shadow-md: 0 2px 10px rgba(0,0,0,0.4); --shadow-xs: none;
  --bg-header: color-mix(in srgb, #0e0e0f 96%, transparent); --bg-tabbar: color-mix(in srgb, #0e0e0f 98%, transparent);
  --dom-workout: #d6d6d3; --dom-food: #d6d6d3; --dom-mind: #d6d6d3; --dom-place: #d6d6d3; --dom-care: #d6d6d3; --dom-money: #d6d6d3;
}


:is(html:root, .style-scope)[data-style="clay"] {
  --radius: 20px; --radius-sm: 16px; --radius-xs: 12px; --radius-lg: 24px; --radius-xl: 28px;
  --btn-radius: 999px; --btn-radius-sm: 999px; --input-radius: 16px;
  --surface-bg: var(--card); --surface-border: 0 solid transparent; --surface-blur: none;
  --dur-pop: 300ms; --dur-press: 140ms; --press-scale: 0.94; --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
:is(html:root, .style-scope)[data-style="clay"][data-theme="light"] {
  --bg: #f1e9de; --bg-warm: #e9dfd1; --card: #fffaf3; --border: #e6dace; --border-light: #eee4d8;
  --text: #2a211b; --text-dim: #54473d; --text-muted: #76675a; --spark: #12806a; --primary: #b3365f; --primary-dark: #962c4f;
  --dom-workout: #d0692f; --dom-food: #2f9a62; --dom-mind: #7b62c9; --dom-place: #2f7fc0; --dom-care: #c0558f; --dom-money: #a87a1c;
  --bg-input: #f7f1ea; --bg-skeleton: #ece2d6;
  --shadow: 0 6px 16px rgba(150, 90, 50, 0.12); --shadow-md: 0 10px 24px rgba(150, 90, 50, 0.14); --shadow-xs: 0 2px 6px rgba(150, 90, 50, 0.08);
  --surface-shadow: 0 10px 24px rgba(150, 90, 50, 0.12), inset 0 -2px 0 rgba(150, 90, 50, 0.05);
  --bg-header: color-mix(in srgb, #f3eee7 94%, transparent); --bg-tabbar: color-mix(in srgb, #fffaf4 96%, transparent);
}
:is(html:root, .style-scope)[data-style="clay"][data-theme="dark"] {
  --bg: #1d1a21; --bg-warm: #252029; --card: #2a2530; --border: #3a3440; --border-light: #322c38;
  --text: #f4ede6; --text-dim: #cfc5bc; --text-muted: #a1968c; --spark: #5fd8b8; --primary: #ff9cc0; --primary-dark: #ff84b0;
  --dom-workout: #ffa06a; --dom-food: #6fd69a; --dom-mind: #b6a2ff; --dom-place: #7cc0ff; --dom-care: #f29ac8; --dom-money: #e8bd5a;
  --bg-input: #252029; --bg-skeleton: #352f3b;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.35); --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.4); --shadow-xs: 0 2px 6px rgba(0, 0, 0, 0.3);
  --surface-shadow: 0 10px 24px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --bg-header: color-mix(in srgb, #1d1a21 94%, transparent); --bg-tabbar: color-mix(in srgb, #2a2530 96%, transparent);
}


:is(html:root, .style-scope)[data-style="glass"] {
  --radius: 18px; --radius-sm: 14px; --radius-xs: 10px; --radius-lg: 22px; --radius-xl: 26px;
  --btn-radius: 16px; --btn-radius-sm: 12px;
  --surface-bg: var(--card); --surface-blur: blur(18px) saturate(1.4);
  --btn-bg: linear-gradient(135deg, #7c3aed, #db2777); --btn-text: #ffffff;
  --dur-pop: 260ms; --dur-sheet: 380ms; --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}
:is(html:root, .style-scope)[data-style="glass"][data-theme="light"] {
  --bg: #eef3f6; --bg-warm: rgba(255, 255, 255, 0.45); --card: rgba(255, 255, 255, 0.58);
  --border: rgba(255, 255, 255, 0.8); --border-light: rgba(255, 255, 255, 0.65);
  --text: #14202a; --text-dim: #34434e; --text-muted: #55646f; --spark: #0e7490; --primary: #6d28d9; --primary-dark: #5b21b6;
  --dom-workout: #7c3aed; --dom-food: #0e9f6e; --dom-mind: #6366f1; --dom-place: #0891b2; --dom-care: #db2777; --dom-money: #c2410c;
  --bg-input: rgba(255, 255, 255, 0.55); --bg-skeleton: rgba(20, 40, 60, 0.08);
  --surface-border: 1px solid rgba(255, 255, 255, 0.8); --surface-shadow: 0 8px 28px rgba(40, 60, 80, 0.12);
  --shadow: 0 8px 24px rgba(40, 60, 80, 0.10); --shadow-md: 0 12px 32px rgba(40, 60, 80, 0.14);
  --bg-header: rgba(238, 243, 246, 0.55); --bg-tabbar: rgba(255, 255, 255, 0.55); --bg-tabbar-float: rgba(255, 255, 255, 0.45);
  --page-image: radial-gradient(120% 60% at 0% 0%, #a5f3fc 0%, transparent 55%), radial-gradient(90% 50% at 100% 35%, #f5c2ff 0%, transparent 60%), radial-gradient(100% 50% at 30% 100%, #c4b5fd 0%, transparent 60%);
}
:is(html:root, .style-scope)[data-style="glass"][data-theme="dark"] {
  --bg: #0d1116; --bg-warm: rgba(255, 255, 255, 0.06); --card: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.14); --border-light: rgba(255, 255, 255, 0.09);
  --text: #eef4f8; --text-dim: #c3d0d9; --text-muted: #8fa1ad; --spark: #22d3ee; --primary: #a78bfa; --primary-dark: #8b5cf6;
  --dom-workout: #c4b5fd; --dom-food: #6ee7b7; --dom-mind: #a5b4fc; --dom-place: #67e8f9; --dom-care: #f9a8d4; --dom-money: #fdba74;
  --bg-input: rgba(255, 255, 255, 0.07); --bg-skeleton: rgba(255, 255, 255, 0.08);
  --surface-border: 1px solid rgba(255, 255, 255, 0.14); --surface-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4); --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --bg-header: rgba(13, 17, 22, 0.5); --bg-tabbar: rgba(20, 24, 30, 0.55); --bg-tabbar-float: rgba(20, 24, 30, 0.45);
  --page-image: radial-gradient(120% 60% at 0% 0%, #0e4a5c 0%, transparent 55%), radial-gradient(90% 50% at 100% 35%, #5b1f5e 0%, transparent 60%), radial-gradient(100% 50% at 30% 100%, #2e1f6a 0%, transparent 60%);
}


:is(html:root, .style-scope)[data-style="paper"] {
  --radius: 14px; --radius-sm: 10px; --radius-xs: 6px; --radius-lg: 16px; --radius-xl: 20px;
  --btn-radius: 12px; --btn-radius-sm: 10px;
  --surface-bg: var(--card); --surface-blur: none;
  --dur-pop: 220ms; --ease-spring: cubic-bezier(0.3, 0.7, 0.4, 1);
  --page-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .15 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
:is(html:root, .style-scope)[data-style="paper"][data-theme="light"] {
  --bg: #f6f1e7; --bg-warm: #efe8da; --card: #fffcf6; --border: #e3dacb; --border-light: #ebe4d7;
  --text: #2a251f; --text-dim: #4d463e; --text-muted: #655b4f; --spark: #c2462b; --primary: #1e5f5a; --primary-dark: #164a46;
  --dom-workout: #1e7a6e; --dom-food: #5a8a2f; --dom-mind: #6a5aa8; --dom-place: #2c6a9a; --dom-care: #b0466e; --dom-money: #9a6b1a;
  --bg-input: #fffcf6; --bg-skeleton: #ece4d6;
  --surface-border: 1px solid #e6ddce; --surface-shadow: 0 1px 2px rgba(70, 50, 30, 0.05), 0 6px 18px rgba(70, 50, 30, 0.06);
  --shadow: 0 2px 8px rgba(70, 50, 30, 0.07); --shadow-md: 0 6px 18px rgba(70, 50, 30, 0.09); --shadow-xs: 0 1px 2px rgba(70, 50, 30, 0.05);
  --bg-header: color-mix(in srgb, #f6f1e7 95%, transparent); --bg-tabbar: color-mix(in srgb, #fffcf6 97%, transparent);
}
:is(html:root, .style-scope)[data-style="paper"][data-theme="dark"] {
  --bg: #1f1c19; --bg-warm: #27231f; --card: #29251f; --border: #3a342c; --border-light: #322d26;
  --text: #f1e9dc; --text-dim: #d3c9ba; --text-muted: #a3988b; --spark: #ff8a65; --primary: #7cc9b8; --primary-dark: #9ad8ca;
  --dom-workout: #6fcfbd; --dom-food: #a8d06f; --dom-mind: #b3a6e8; --dom-place: #86bde6; --dom-care: #ee9ab8; --dom-money: #e3b866;
  --bg-input: #27231f; --bg-skeleton: #352f28;
  --surface-border: 1px solid #36302a; --surface-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 18px rgba(0, 0, 0, 0.25);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3); --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35); --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --bg-header: color-mix(in srgb, #1f1c19 95%, transparent); --bg-tabbar: color-mix(in srgb, #29251f 97%, transparent);
}

:is(html:root, .style-scope)[data-style] :is(.btn, .header-login-btn, .chip, .seg-btn, .seg-group) { transition-property: background, border-color, color, box-shadow, transform; }

:is(html:root, .style-scope)[data-style="clean"] :is(.btn, .header-login-btn) { border-radius: 8px; box-shadow: none; font-weight: 600; letter-spacing: 0; }
:is(html:root, .style-scope)[data-style="clean"] .btn--secondary { background: transparent; border-width: 1px; }
:is(html:root, .style-scope)[data-style="clean"] .chip { border-radius: 8px; border-width: 1px; background: transparent; font-weight: 500; }
:is(html:root, .style-scope)[data-style="clean"] :is(.seg-group) { border-radius: 8px; background: transparent; }
:is(html:root, .style-scope)[data-style="clean"] .seg-btn { border-radius: 6px; }

:is(html:root, .style-scope)[data-style="clay"] :is(.btn, .header-login-btn) { border-radius: 999px; }
:is(html:root, .style-scope)[data-style="clay"] :is(.btn--primary, .header-login-btn) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 82%, #fff) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 35%, transparent), inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  border: 0;
}
:is(html:root, .style-scope)[data-style="clay"] .btn--secondary {
  border: 0; background: var(--card);
  box-shadow: 0 6px 14px rgba(120, 70, 40, 0.14), inset 0 -2px 0 rgba(120, 70, 40, 0.08);
}
:is(html:root, .style-scope)[data-style="clay"] .chip { border: 0; border-radius: 999px; background: var(--card); box-shadow: 0 4px 10px rgba(120, 70, 40, 0.12); }
:is(html:root, .style-scope)[data-style="clay"] .seg-group { border: 0; border-radius: 999px; background: var(--bg-warm); box-shadow: inset 0 2px 5px rgba(120, 70, 40, 0.14); padding: 3px; }
:is(html:root, .style-scope)[data-style="clay"] .seg-btn { border-radius: 999px; }
:is(html:root, .style-scope)[data-style="clay"] :is(.btn, .chip, .seg-btn):active { transform: scale(0.94); }
:is(html:root, .style-scope)[data-style="clay"][data-theme="dark"] :is(.btn--secondary, .chip) { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06); }

:is(html:root, .style-scope)[data-style="glass"] :is(.btn, .header-login-btn) { border-radius: 16px; }
:is(html:root, .style-scope)[data-style="glass"] :is(.btn--primary, .header-login-btn) {
  background: var(--btn-bg); color: #fff; border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
:is(html:root, .style-scope)[data-style="glass"] :is(.btn--secondary, .chip, .seg-group) {
  background: var(--card); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
:is(html:root, .style-scope)[data-style="glass"] .chip { border-radius: 999px; }
:is(html:root, .style-scope)[data-style="glass"] .seg-group { border-radius: 14px; }
:is(html:root, .style-scope)[data-style="glass"] .seg-btn { border-radius: 11px; }
:is(html:root, .style-scope)[data-style] .chip.active { background: var(--sel-bg); color: var(--sel-text); }

:is(html:root, .style-scope)[data-style="paper"] :is(.btn, .header-login-btn) { border-radius: 12px; }
:is(html:root, .style-scope)[data-style="paper"] :is(.btn--primary, .header-login-btn) {
  border: 1.5px solid var(--text); box-shadow: 1px 1px 0 var(--text);
}
:is(html:root, .style-scope)[data-style="paper"] .btn--secondary { border: 1.5px solid var(--text); background: var(--card); box-shadow: 1px 1px 0 var(--text); }
:is(html:root, .style-scope)[data-style="paper"] .chip { border: 1.5px solid color-mix(in srgb, var(--text) 75%, transparent); background: var(--card); }
:is(html:root, .style-scope)[data-style="paper"] .chip.active { border-color: var(--text); }
:is(html:root, .style-scope)[data-style="paper"] .seg-group { border: 1.5px solid color-mix(in srgb, var(--text) 75%, transparent); border-radius: 12px; }
:is(html:root, .style-scope)[data-style="paper"] :is(.btn--primary, .btn--secondary, .header-login-btn):active { transform: translate(1px, 1px); box-shadow: none; }

:is(html:root, .style-scope)[data-style="paper"] { --shadow-offset: 1px; }
:is(html:root, .style-scope)[data-style="paper"][data-theme] {
  --ink: #2b2724; --sticker: #fffdf8;
  --surface-bg: var(--sticker); --surface-border: 1px solid color-mix(in srgb, var(--ink) 85%, transparent);
  --surface-shadow: none; --radius-lg: 18px; --radius: 14px;
}
:is(html:root, .style-scope)[data-style="paper"][data-theme="dark"][data-theme] { --ink: #efe6d6; --sticker: #2b2620; }

:is(html:root, .style-scope)[data-style="paper"] .dash-w::before { background: none; }
:is(html:root, .style-scope)[data-style="paper"] .dash-w__mark { opacity: 0.06; }

:is(html:root, .style-scope)[data-style="paper"] .dash-w__title {
  align-self: flex-start; padding: 2px 8px; border-radius: 999px; color: var(--ink); letter-spacing: 0.04em;
  background: color-mix(in srgb, var(--dom-workout) 16%, var(--sticker)); border: 1px solid color-mix(in srgb, var(--ink) 70%, transparent);
}

:is(html:root, .style-scope)[data-style="paper"] :is(.dash-cmp__ic, .dash-lrows__ic, .more-row-icon, .mu-pl-ic) {
  border: 1px solid color-mix(in srgb, var(--ink) 75%, transparent); box-shadow: none;
}

:is(html:root, .style-scope)[data-style="paper"] :is(.dash-w, .post-card, .more-section-list) :is(hr, .divider) { border: 0; border-top: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
:is(html:root, .style-scope)[data-style="paper"] .post-card .post-actions { border-top: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); }

html:root[data-style="paper"] .app-header { background: var(--bg); border-bottom: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; }
html:root[data-style="paper"] :is(.tab-bar, .tab-bar--float) {
  background: var(--sticker); border: 1px solid color-mix(in srgb, var(--ink) 85%, transparent); box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html:root[data-style="paper"] .tab-blob { background: color-mix(in srgb, var(--dom-workout) 18%, var(--sticker)); border: 1px solid color-mix(in srgb, var(--ink) 85%, transparent); box-shadow: none; }

:is(html:root, .style-scope)[data-style="paper"] :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), textarea, select, .search-field) {
  border-color: color-mix(in srgb, var(--ink) 55%, transparent);
}


:is(html:root, .style-scope):is([data-style="clean"], [data-style="board"]) :is(.icon-btn, .lightbox-close, .chat-edit-banner-close, .sw-update-close, .map-pending-close, .pf-input-clear, .page-hdr-back) { border-radius: var(--radius-xs); }
:is(html:root, .style-scope):is([data-style="clay"], [data-style="watercolor"], [data-style="glass"], [data-style="nordic"], [data-style="retro"], [data-style="neon"], [data-style="paper"]) :is(.icon-btn, .lightbox-close, .chat-edit-banner-close, .sw-update-close, .map-pending-close, .pf-input-clear, .page-hdr-back) { border-radius: 999px; }
:is(html:root, .style-scope)[data-style] :is(.icon-btn, .page-hdr-back, .page-hdr-create):active { background: var(--bg-warm); transform: scale(var(--press-scale)); }
:is(html:root, .style-scope)[data-style="clay"] :is(.icon-btn, .page-hdr-back):active { box-shadow: inset 0 2px 6px rgba(120, 70, 40, 0.18); }
:is(html:root, .style-scope)[data-style="neon"][data-theme="dark"] :is(.icon-btn, .page-hdr-back):active { box-shadow: 0 0 14px rgba(198, 255, 61, 0.35); color: var(--spark); }
:is(html:root, .style-scope)[data-style="paper"] :is(.icon-btn, .page-hdr-back):active { box-shadow: inset 0 0 0 1px var(--ink); }
:is(html:root, .style-scope)[data-style="board"] :is(.icon-btn, .page-hdr-back):active { background: var(--sel-bg); color: var(--sel-text); }

:is(html:root, .style-scope)[data-style] :is(.comm-sheet-row, .avatar-sheet-row, .map-sheet-item, .clip-more-item, .kx-option, .set-item) { border-radius: var(--radius-sm); }
:is(html:root, .style-scope)[data-style] :is(.comm-sheet-row, .avatar-sheet-row, .map-sheet-item, .clip-more-item, .kx-option, .set-item):active { background: var(--bg-warm); }
:is(html:root, .style-scope)[data-style="board"] :is(.comm-sheet-row, .avatar-sheet-row, .map-sheet-item, .clip-more-item, .kx-option, .set-item):active { background: var(--sel-bg); color: var(--sel-text); }
:is(html:root, .style-scope)[data-style="neon"][data-theme="dark"] :is(.comm-sheet-row, .avatar-sheet-row, .map-sheet-item, .clip-more-item, .kx-option, .set-item):active { box-shadow: inset 3px 0 0 var(--spark); }
:is(html:root, .style-scope)[data-style="retro"] :is(.comm-sheet-row, .avatar-sheet-row, .map-sheet-item, .clip-more-item, .kx-option, .set-item):active { box-shadow: inset 4px 0 0 var(--spark); }

:is(html:root, .style-scope)[data-style] :is(.share-action-ic, .circle-act, .gprofile-act) { transition: transform var(--dur-press) var(--ease-spring); }
:is(html:root, .style-scope)[data-style] :is(.share-action, .circle-act, .gprofile-act):active :is(.share-action-ic, svg) { transform: scale(var(--press-scale)); }
:is(html:root, .style-scope)[data-style="clay"] :is(.share-action-ic, .circle-act) { box-shadow: 0 6px 14px rgba(120, 70, 40, 0.16), inset 0 2px 0 rgba(255, 255, 255, 0.35); border: 0; }
:is(html:root, .style-scope)[data-style="glass"] :is(.share-action-ic, .circle-act) { background: var(--card); border: 1px solid var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
:is(html:root, .style-scope):is([data-style="paper"], [data-style="retro"]) :is(.share-action-ic, .circle-act) { border: 1.5px solid var(--text); box-shadow: 1px 1px 0 var(--text); }
:is(html:root, .style-scope)[data-style="board"] :is(.share-action-ic, .circle-act) { border-radius: 2px; border: 2px solid var(--text); box-shadow: none; }
:is(html:root, .style-scope)[data-style="neon"][data-theme="dark"] :is(.share-action-ic, .circle-act) { border: 1px solid rgba(198, 255, 61, 0.35); box-shadow: 0 0 12px rgba(198, 255, 61, 0.15); }

:is(html:root, .style-scope)[data-style="board"] :is(.link-quiet, .mt-link, .body-link) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-transform: uppercase; font-weight: 800; }
:is(html:root, .style-scope)[data-style="neon"] :is(.link-quiet, .mt-link, .body-link) { color: var(--spark); }
:is(html:root, .style-scope)[data-style="retro"] :is(.link-quiet, .mt-link, .body-link) { color: var(--spark); font-weight: 700; }

:is(html:root, .style-scope)[data-style="clean"] { --input-radius: 8px; --input-border-w: 1px; --input-bg: var(--card); }
:is(html:root, .style-scope)[data-style="clay"] { --input-radius: 16px; --input-border-w: 0px; --input-bg: var(--bg-warm); }
:is(html:root, .style-scope)[data-style="glass"] { --input-radius: 14px; --input-border-w: 1px; --input-bg: var(--card); }
:is(html:root, .style-scope)[data-style="paper"] { --input-radius: 10px; --input-border-w: 1px; --input-bg: var(--sticker); --input-border: color-mix(in srgb, var(--ink) 55%, transparent); }
:is(html:root, .style-scope)[data-style="neon"] { --input-radius: 10px; --input-border-w: 1px; --input-border-focus: var(--spark); }
:is(html:root, .style-scope)[data-style="nordic"] { --input-radius: 12px; --input-border-w: 0px; --input-bg: var(--bg-warm); }
:is(html:root, .style-scope)[data-style="retro"] { --input-radius: 14px; --input-border-w: 1.5px; --input-border: var(--text); --input-bg: var(--card); }
:is(html:root, .style-scope)[data-style="board"] { --input-radius: 0px; --input-border-w: 2px; --input-border: var(--text); --input-bg: var(--card); --input-border-focus: var(--sel-bg); }
:is(html:root, .style-scope)[data-style="watercolor"] { --input-radius: 18px; --input-border-w: 0px; --input-bg: var(--card); }
:is(html:root, .style-scope):is([data-style="clay"], [data-style="nordic"], [data-style="watercolor"]) :is(input:not([type="range"]):not([type="checkbox"]):not([type="radio"]), textarea, select):focus { box-shadow: 0 0 0 2px var(--input-border-focus); }

:is(html:root, .style-scope)[data-style="board"] { --switch-radius: 0px; }
:is(html:root, .style-scope)[data-style="board"] :is(.btn--secondary, .btn--ghost, .btn--sm) { text-transform: none; letter-spacing: 0; }
:is(html:root, .style-scope)[data-style="neon"] .switch:is(:checked, [aria-checked="true"]) { box-shadow: 0 0 12px color-mix(in srgb, var(--spark) 55%, transparent); }
:is(html:root, .style-scope):is([data-style="paper"], [data-style="retro"]) .switch { box-shadow: inset 0 0 0 1.5px var(--text); }

:is(html:root, .style-scope)[data-style] .chip.chip--long { text-transform: none; letter-spacing: 0; font-weight: 600; white-space: normal; text-align: start; }

html:root:is([data-style="glass"], [data-style="watercolor"])[data-theme="light"] .tab-bar .ui-icon:not(.ui-icon--active) { filter: grayscale(0.25) saturate(1.1); opacity: 0.92; }

:is(html:root, .style-scope)[data-style="board"] { --tab-u-h: 4px; --tab-u-c: var(--sel-bg); }
:is(html:root, .style-scope)[data-style="neon"] { --tab-u-c: var(--spark); }
:is(html:root, .style-scope)[data-style="retro"] { --tab-u-h: 3px; --tab-u-c: var(--spark); }
:is(html:root, .style-scope):is([data-style="clay"], [data-style="watercolor"]) { --tab-u-h: 3px; --tab-u-c: var(--primary); }

:is(html:root, .style-scope)[data-style="glass"][data-theme="light"] { --card-solid: #f3f5fa; }
:is(html:root, .style-scope)[data-style="glass"][data-theme="dark"] { --card-solid: #1e1b2e; }
:is(html:root, .style-scope)[data-style="glass"] .post-read-more-overlay {
  background: linear-gradient(to right, transparent, var(--card-solid) 38%);
}


:is(html:root, .style-scope)[data-style="neon"] {
  --radius: 12px; --radius-sm: 10px; --radius-xs: 6px; --radius-lg: 14px; --radius-xl: 18px; --btn-radius: 10px; --btn-radius-sm: 8px;
  --surface-bg: var(--card); --surface-blur: none; --dur-pop: 180ms; --press-scale: 0.96;
}
:is(html:root, .style-scope)[data-style="neon"][data-theme="dark"] {
  --bg: #07080c; --bg-warm: #10121a; --card: #11141d; --border: #262b3b; --border-light: #1b1f2c;
  --text: #f2f5ff; --text-dim: #bcc4da; --text-muted: #8590ab; --spark: #c6ff3d; --primary: #c6ff3d; --primary-dark: #b2f01f;
  --btn-text: #07080c; --bg-input: #10121a; --bg-skeleton: #1b1f2c;
  --dom-workout: #c6ff3d; --dom-food: #3dffa8; --dom-mind: #a07cff; --dom-place: #3dd8ff; --dom-care: #ff4fd8; --dom-money: #ffc23d;
  --surface-border: 1px solid rgba(198, 255, 61, 0.22); --surface-shadow: 0 0 22px rgba(198, 255, 61, 0.07);
  --shadow: 0 0 16px rgba(198, 255, 61, 0.08); --shadow-md: 0 0 24px rgba(198, 255, 61, 0.12);
  --bg-header: color-mix(in srgb, #07080c 94%, transparent); --bg-tabbar: color-mix(in srgb, #10121a 96%, transparent);
}
:is(html:root, .style-scope)[data-style="neon"][data-theme="light"] {
  --bg: #eef1f6; --bg-warm: #e3e8f0; --card: #ffffff; --border: #d6dce8; --border-light: #e4e8f0;
  --text: #0b0d14; --text-dim: #353c50; --text-muted: #59627a; --spark: #2c7a00; --primary: #0b0d14; --primary-dark: #000000;
  --btn-text: #c6ff3d; --bg-input: #f5f7fb; --bg-skeleton: #e3e8f0;
  --dom-workout: #3d8a00; --dom-food: #00875a; --dom-mind: #6b3df0; --dom-place: #0077cc; --dom-care: #c0269f; --dom-money: #a86f00;
  --surface-border: 1px solid #d6dce8; --surface-shadow: 0 2px 10px rgba(11, 13, 20, 0.06);
  --bg-header: color-mix(in srgb, #eef1f6 95%, transparent); --bg-tabbar: color-mix(in srgb, #ffffff 96%, transparent);
}
:is(html:root, .style-scope)[data-style="neon"] :is(.btn, .header-login-btn) { border-radius: 10px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 800; }
:is(html:root, .style-scope)[data-style="neon"][data-theme="dark"] :is(.btn--primary, .header-login-btn) { box-shadow: 0 0 18px rgba(198, 255, 61, 0.45); }
:is(html:root, .style-scope)[data-style="neon"] .btn--secondary { background: transparent; border: 1px solid var(--spark); color: var(--spark); }
:is(html:root, .style-scope)[data-style="neon"] .chip { border-radius: 8px; border-width: 1px; background: transparent; text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px; }
:is(html:root, .style-scope)[data-style="neon"] .seg-group { border-radius: 10px; background: transparent; }
:is(html:root, .style-scope)[data-style="neon"] .dash-w__title { color: var(--spark); }

:is(html:root, .style-scope)[data-style="nordic"] {
  --radius: 16px; --radius-sm: 12px; --radius-xs: 8px; --radius-lg: 18px; --radius-xl: 22px; --btn-radius: 14px; --btn-radius-sm: 12px;
  --surface-bg: var(--card); --surface-blur: none; --dur-pop: 260ms; --ease-spring: cubic-bezier(0.25, 0.8, 0.3, 1);
}
:is(html:root, .style-scope)[data-style="nordic"][data-theme="light"] {
  --bg: #f4f2ee; --bg-warm: #ebe7e0; --card: #fbfaf7; --border: #e2ddd4; --border-light: #ebe7df;
  --text: #2e3230; --text-dim: #4f5551; --text-muted: #6d736f; --spark: #4f6f5c; --primary: #3f5a4c; --primary-dark: #31473b;
  --bg-input: #f7f5f1; --bg-skeleton: #e8e4dc;
  --dom-workout: #5f7f6a; --dom-food: #7a8a4b; --dom-mind: #747aa0; --dom-place: #5f7f96; --dom-care: #a07a80; --dom-money: #94805a;
  --surface-border: 1px solid #e6e1d8; --surface-shadow: 0 1px 2px rgba(40, 40, 30, 0.03);
  --shadow: 0 1px 3px rgba(40, 40, 30, 0.05); --shadow-md: 0 4px 14px rgba(40, 40, 30, 0.06);
  --bg-header: color-mix(in srgb, #f4f2ee 96%, transparent); --bg-tabbar: color-mix(in srgb, #fbfaf7 97%, transparent);
}
:is(html:root, .style-scope)[data-style="nordic"][data-theme="dark"] {
  --bg: #1b1d1c; --bg-warm: #222523; --card: #232624; --border: #333734; --border-light: #2b2f2c;
  --text: #e9ece8; --text-dim: #c4c9c4; --text-muted: #939993; --spark: #9cbfa8; --primary: #a9c7b3; --primary-dark: #bcd5c4;
  --bg-input: #222523; --bg-skeleton: #2e322f;
  --dom-workout: #9cbfa8; --dom-food: #b6c48a; --dom-mind: #aeb3d6; --dom-place: #9cbdd2; --dom-care: #d1aab0; --dom-money: #cdb98d;
  --surface-border: 1px solid #2f3330; --surface-shadow: none;
  --bg-header: color-mix(in srgb, #1b1d1c 96%, transparent); --bg-tabbar: color-mix(in srgb, #232624 97%, transparent);
}
:is(html:root, .style-scope)[data-style="nordic"] :is(.btn, .header-login-btn) { border-radius: 14px; box-shadow: none; font-weight: 600; }
:is(html:root, .style-scope)[data-style="nordic"] .btn--secondary { border: 0; background: var(--bg-warm); }
:is(html:root, .style-scope)[data-style="nordic"] .chip { border: 0; background: var(--bg-warm); border-radius: 12px; font-weight: 500; }
:is(html:root, .style-scope)[data-style="nordic"] .seg-group { border: 0; background: var(--bg-warm); border-radius: 14px; padding: 3px; }
:is(html:root, .style-scope)[data-style="nordic"] .seg-btn { border-radius: 11px; }

:is(html:root, .style-scope)[data-style="retro"] {
  --radius: 18px; --radius-sm: 14px; --radius-xs: 8px; --radius-lg: 20px; --radius-xl: 24px; --btn-radius: 999px; --btn-radius-sm: 999px;
  --surface-bg: var(--card); --surface-blur: none; --dur-pop: 240ms; --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --btn-bg: linear-gradient(90deg, #ff7a18, #ff3d7f 55%, #7b2ff7); --btn-text: #ffffff;
}
:is(html:root, .style-scope)[data-style="retro"] { --shadow-offset: 2px; }

:is(html:root, .style-scope)[data-style="retro"][data-theme="light"] {
  --bg: #fff4e6; --bg-warm: #ffe8cc; --card: #fffaf2; --border: #f0d2ad; --border-light: #f6e0c4;
  --text: #2b1640; --text-dim: #4b3563; --text-muted: #6f5888; --spark: #d6246a; --primary: #6b2fbf; --primary-dark: #5523a0;
  --bg-input: #fffaf2; --bg-skeleton: #f6e0c4;
  --dom-workout: #e8590c; --dom-food: #0c8f68; --dom-mind: #6b2fbf; --dom-place: #1c7ed6; --dom-care: #d6246a; --dom-money: #b8860b;
  --surface-border: 1.5px solid #2b1640; --surface-shadow: 2px 2px 0 #ff3d7f;
  --shadow: 1px 1px 0 rgba(255, 61, 127, 0.5); --shadow-md: 2px 2px 0 #ff3d7f;
  --bg-header: #fff4e6; --bg-tabbar: #fffaf2;
  --page-image: linear-gradient(180deg, rgba(255, 122, 24, 0.10), transparent 240px);
}
:is(html:root, .style-scope)[data-style="retro"][data-theme="dark"] {
  --bg: #1a0f2b; --bg-warm: #23153a; --card: #241640; --border: #3d2a5f; --border-light: #2f1f4d;
  --text: #fff1e0; --text-dim: #e4d0ec; --text-muted: #ad97c2; --spark: #ff5c9a; --primary: #ffb347; --primary-dark: #ffa023;
  --bg-input: #23153a; --bg-skeleton: #2f1f4d;
  --dom-workout: #ff8c42; --dom-food: #3ddc97; --dom-mind: #b28cff; --dom-place: #5cb8ff; --dom-care: #ff5c9a; --dom-money: #ffd166;
  --surface-border: 1.5px solid #ff5c9a; --surface-shadow: 2px 2px 0 #7b2ff7;
  --shadow: 1px 1px 0 rgba(123, 47, 247, 0.6); --shadow-md: 2px 2px 0 #7b2ff7;
  --bg-header: #1a0f2b; --bg-tabbar: #241640;
  --page-image: linear-gradient(180deg, rgba(255, 61, 127, 0.14), transparent 240px);
}
:is(html:root, .style-scope)[data-style="retro"] :is(.btn--primary, .header-login-btn) { background: var(--btn-bg); color: #fff; border: 1.5px solid var(--text); box-shadow: 2px 2px 0 var(--text); font-weight: 800; }
:is(html:root, .style-scope)[data-style="retro"] .btn--secondary { border: 1.5px solid var(--text); background: var(--card); box-shadow: 2px 2px 0 var(--spark); border-radius: 999px; }
:is(html:root, .style-scope)[data-style="retro"] .chip { border: 1.5px solid var(--text); border-radius: 999px; background: var(--card); font-weight: 700; }
:is(html:root, .style-scope)[data-style="retro"] .seg-group { border: 1.5px solid var(--text); border-radius: 999px; padding: 3px; }
:is(html:root, .style-scope)[data-style="retro"] .seg-btn { border-radius: 999px; }
:is(html:root, .style-scope)[data-style="retro"] .dash-w__title { color: var(--spark); font-weight: 800; }

:is(html:root, .style-scope)[data-style="board"] {
  --radius: 2px; --radius-sm: 2px; --radius-xs: 0px; --radius-lg: 4px; --radius-xl: 4px; --btn-radius: 2px; --btn-radius-sm: 2px;
  --surface-bg: var(--card); --surface-blur: none; --surface-shadow: none; --dur-pop: 120ms; --press-scale: 0.97;
}
:is(html:root, .style-scope)[data-style="board"][data-theme="light"] {
  --bg: #ffffff; --bg-warm: #f1f1f1; --card: #ffffff; --border: #111111; --border-light: #d0d0d0;
  --text: #000000; --text-dim: #1f1f1f; --text-muted: #4a4a4a; --spark: #000000; --primary: #000000; --primary-dark: #000000;
  --btn-text: #ffd400; --bg-input: #ffffff; --bg-skeleton: #ececec; --sel-bg: #ffd400; --sel-text: #000000;
  --dom-workout: #e63900; --dom-food: #008a43; --dom-mind: #2a2ae6; --dom-place: #0072d6; --dom-care: #d1006f; --dom-money: #b07d00;  
  --surface-border: 2px solid #000000; --shadow: none; --shadow-md: none;
  --bg-header: #ffffff; --bg-tabbar: #ffffff;
}
:is(html:root, .style-scope)[data-style="board"][data-theme="dark"] {
  --bg: #000000; --bg-warm: #111111; --card: #000000; --border: #ffffff; --border-light: #3a3a3a;
  --text: #ffffff; --text-dim: #e6e6e6; --text-muted: #b0b0b0; --spark: #ffd400; --primary: #ffd400; --primary-dark: #ffe14d;
  --btn-text: #000000; --bg-input: #111111; --bg-skeleton: #1e1e1e; --sel-bg: #ffd400; --sel-text: #000000;
  --dom-workout: #ff6a3d; --dom-food: #3ddc84; --dom-mind: #8c8cff; --dom-place: #4db3ff; --dom-care: #ff4fa3; --dom-money: #ffa31a;  
  --surface-border: 2px solid #ffffff; --shadow: none; --shadow-md: none;
  --bg-header: #000000; --bg-tabbar: #000000;
}
:is(html:root, .style-scope)[data-style="board"] :is(.btn, .header-login-btn) { border-radius: 2px; box-shadow: none; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 900; }
:is(html:root, .style-scope)[data-style="board"] .btn--secondary { border: 2px solid var(--text); background: transparent; color: var(--text); }
:is(html:root, .style-scope)[data-style="board"] .chip { border: 2px solid var(--text); border-radius: 2px; background: transparent; text-transform: uppercase; font-weight: 800; font-size: 12px; }
:is(html:root, .style-scope)[data-style="board"] .seg-group { border: 2px solid var(--text); border-radius: 2px; padding: 0; background: transparent; }
:is(html:root, .style-scope)[data-style="board"] .seg-btn { border-radius: 0; text-transform: uppercase; }
:is(html:root, .style-scope)[data-style="board"] .dash-w::before { background: none; }
:is(html:root, .style-scope)[data-style="board"] .dash-w__title { color: var(--text); font-weight: 900; }

:is(html:root, .style-scope)[data-style="watercolor"] {
  --radius: 22px; --radius-sm: 16px; --radius-xs: 10px; --radius-lg: 26px; --radius-xl: 30px; --btn-radius: 999px; --btn-radius-sm: 999px;
  --surface-bg: var(--card); --surface-blur: blur(10px); --dur-pop: 320ms; --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --btn-bg: linear-gradient(135deg, #9b7fd1, #e48aa8); --btn-text: #ffffff;
}
:is(html:root, .style-scope)[data-style="watercolor"][data-theme="light"] {
  --bg: #fbf7f4; --bg-warm: rgba(255, 255, 255, 0.55); --card: rgba(255, 255, 255, 0.72); --border: rgba(160, 130, 170, 0.18); --border-light: rgba(160, 130, 170, 0.12);
  --text: #3a3346; --text-dim: #564e65; --text-muted: #736b82; --spark: #b2557a; --primary: #7d5cb8; --primary-dark: #6a4aa3;
  --bg-input: rgba(255, 255, 255, 0.7); --bg-skeleton: rgba(160, 130, 170, 0.12);
  --dom-workout: #c06b55; --dom-food: #4f9a78; --dom-mind: #7d5cb8; --dom-place: #4f86b8; --dom-care: #b2557a; --dom-money: #b08a3a;
  --surface-border: 1px solid rgba(255, 255, 255, 0.8); --surface-shadow: 0 10px 30px rgba(150, 120, 160, 0.14);
  --shadow: 0 6px 18px rgba(150, 120, 160, 0.12); --shadow-md: 0 10px 30px rgba(150, 120, 160, 0.16);
  --bg-header: rgba(251, 247, 244, 0.7); --bg-tabbar: rgba(255, 255, 255, 0.7);
  --page-image: radial-gradient(60% 40% at 10% 5%, rgba(200, 170, 240, 0.45), transparent 70%), radial-gradient(55% 35% at 95% 30%, rgba(255, 190, 170, 0.45), transparent 70%), radial-gradient(60% 40% at 30% 95%, rgba(170, 225, 205, 0.45), transparent 70%);
}
:is(html:root, .style-scope)[data-style="watercolor"][data-theme="dark"] {
  --bg: #1c1a22; --bg-warm: rgba(255, 255, 255, 0.05); --card: rgba(44, 39, 55, 0.72); --border: rgba(255, 255, 255, 0.08); --border-light: rgba(255, 255, 255, 0.05);
  --text: #efe9f5; --text-dim: #d2c9de; --text-muted: #a69db5; --spark: #f0a6c0; --primary: #c8b3f0; --primary-dark: #d7c6f5;
  --bg-input: rgba(255, 255, 255, 0.06); --bg-skeleton: rgba(255, 255, 255, 0.07);
  --dom-workout: #f0a58f; --dom-food: #8fd6b4; --dom-mind: #c8b3f0; --dom-place: #94c2ef; --dom-care: #f0a6c0; --dom-money: #e6c27a;
  --surface-border: 1px solid rgba(255, 255, 255, 0.08); --surface-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --bg-header: rgba(28, 26, 34, 0.7); --bg-tabbar: rgba(44, 39, 55, 0.7);
  --page-image: radial-gradient(60% 40% at 10% 5%, rgba(120, 90, 180, 0.35), transparent 70%), radial-gradient(55% 35% at 95% 30%, rgba(180, 90, 110, 0.3), transparent 70%), radial-gradient(60% 40% at 30% 95%, rgba(70, 140, 120, 0.3), transparent 70%);
}
:is(html:root, .style-scope)[data-style="watercolor"] :is(.btn--primary, .header-login-btn) { background: var(--btn-bg); color: #fff; border: 0; box-shadow: 0 8px 22px rgba(155, 127, 209, 0.35); }
:is(html:root, .style-scope)[data-style="watercolor"] .btn--secondary { border: 0; background: var(--card); box-shadow: var(--shadow); }
:is(html:root, .style-scope)[data-style="watercolor"] .chip { border: 0; border-radius: 999px; background: var(--card); box-shadow: 0 4px 12px rgba(150, 120, 160, 0.12); }
:is(html:root, .style-scope)[data-style="watercolor"] .seg-group { border: 0; border-radius: 999px; background: var(--bg-warm); padding: 3px; }
:is(html:root, .style-scope)[data-style="watercolor"] .seg-btn { border-radius: 999px; }

:is(html:root, .style-scope)[data-style="anime"] {
  --radius: 18px; --radius-sm: 14px; --radius-xs: 8px; --radius-lg: 20px; --radius-xl: 24px; --btn-radius: 14px; --btn-radius-sm: 12px;
  --surface-bg: var(--card); --surface-blur: blur(16px) saturate(1.3);
  --dur-pop: 260ms; --ease-spring: cubic-bezier(0.22, 1, 0.36, 1); --press-scale: 0.97;
  --input-radius: 14px; --input-border-w: 1px; --input-bg: var(--card);
  --tab-u-h: 3px; --tab-u-c: var(--primary);
  --btn-bg: linear-gradient(100deg, #1f5fcf 0%, #2f7bea 45%, #e8642c 100%); --btn-text: #ffffff;
}
:is(html:root, .style-scope)[data-style="anime"][data-theme="light"] {
  --bg: #eaf3fb; --bg-warm: rgba(255, 255, 255, 0.5); --card: rgba(255, 255, 255, 0.72); --border: rgba(255, 255, 255, 0.9); --border-light: rgba(20, 33, 61, 0.08);
  --text: #14213d; --text-dim: #33405c; --text-muted: #55617a; --spark: #c2410c; --primary: #1f63d6; --primary-dark: #184fae;
  --bg-input: rgba(255, 255, 255, 0.8); --bg-skeleton: rgba(20, 33, 61, 0.07);
  --dom-workout: #d9531e; --dom-food: #13855f; --dom-mind: #6a4bd1; --dom-place: #1f63d6; --dom-care: #c0367a; --dom-money: #8a5f00; --price: #7a5200;
  --surface-border: 1px solid rgba(255, 255, 255, 0.9); --surface-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 30px rgba(31, 70, 140, 0.12);
  --shadow: 0 6px 18px rgba(31, 70, 140, 0.12); --shadow-md: 0 12px 30px rgba(31, 70, 140, 0.16);
  --bg-header: rgba(234, 243, 251, 0.6); --bg-tabbar: rgba(255, 255, 255, 0.62);
  --page-image: radial-gradient(70% 35% at 85% 0%, rgba(255, 214, 160, 0.75), transparent 70%),
    radial-gradient(60% 30% at 10% 12%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #bcd9f5 0%, #eaf3fb 38%, #fde7d6 100%);
}
:is(html:root, .style-scope)[data-style="anime"][data-theme="dark"] {
  --bg: #0e1a33; --bg-warm: rgba(255, 255, 255, 0.06); --card: rgba(24, 35, 63, 0.72); --border: rgba(255, 255, 255, 0.12); --border-light: rgba(255, 255, 255, 0.07);
  --text: #eef2fa; --text-dim: #c8d1e6; --text-muted: #96a2bf; --spark: #ffb07a; --primary: #6aa8ff; --primary-dark: #8bbcff;
  --bg-input: rgba(255, 255, 255, 0.07); --bg-skeleton: rgba(255, 255, 255, 0.08);
  --dom-workout: #ff9459; --dom-food: #4fd6a0; --dom-mind: #b6a2ff; --dom-place: #6aa8ff; --dom-care: #f49ac8; --dom-money: #ffd86b;
  --surface-border: 1px solid rgba(255, 255, 255, 0.12); --surface-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.35); --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.45);
  --bg-header: rgba(14, 26, 51, 0.6); --bg-tabbar: rgba(24, 35, 63, 0.62);
  --page-image: radial-gradient(1px 1px at 20% 12%, #fff, transparent), radial-gradient(1px 1px at 70% 6%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 45% 20%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 85% 28%, #fff, transparent),
    radial-gradient(70% 30% at 80% 100%, rgba(255, 120, 70, 0.28), transparent 70%),
    linear-gradient(180deg, #0b1630 0%, #1a2550 55%, #2a2350 100%);
}

:is(html:root, .style-scope)[data-style="anime"] :is(.btn--primary, .header-login-btn) {
  position: relative; overflow: hidden; background: var(--btn-bg); background-color: #1f5fcf; color: #ffffff; border: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
:is(html:root, .style-scope)[data-style="anime"] :is(.btn--primary, .header-login-btn)::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(100deg, transparent 0 10px, rgba(255, 255, 255, 0.35) 10px 12px);
  transition: opacity 120ms ease-out, transform 400ms var(--ease-out); transform: translateX(-30%);
}
:is(html:root, .style-scope)[data-style="anime"] :is(.btn--primary, .header-login-btn):active::after { opacity: 1; transform: translateX(10%); }
:is(html:root, .style-scope)[data-style="anime"] .btn--secondary { background: var(--card); border: 1px solid var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
:is(html:root, .style-scope)[data-style="anime"] .chip { background: var(--card); border: 1px solid var(--border); border-radius: 999px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
:is(html:root, .style-scope)[data-style="anime"] .chip.active { background: var(--sel-bg); }
:is(html:root, .style-scope)[data-style="anime"] .seg-group { background: var(--bg-warm); border: 1px solid var(--border); border-radius: 14px; }
:is(html:root, .style-scope)[data-style="anime"] .dash-w__title { color: var(--primary); }
@media (prefers-reduced-motion: reduce) { :is(html:root, .style-scope)[data-style="anime"] :is(.btn--primary, .header-login-btn)::after { transition: none; } }


:is(html:root, .style-scope)[data-style="clay"][data-theme="light"] { --price: #7a5208; --dom-money: #8a5f0a; }
:is(html:root, .style-scope)[data-style="neon"][data-theme="light"] { --price: #7a5200; --dom-money: #8a5a00; }
:is(html:root, .style-scope)[data-style="retro"][data-theme="light"] { --price: #7a5600; --dom-money: #8a6400; }
:is(html:root, .style-scope)[data-style="watercolor"][data-theme="light"] { --price: #7a5a20; --dom-money: #87652a; }
:is(html:root, .style-scope)[data-style="nordic"][data-theme="light"] { --text-muted: #5f6561; --price: #776646; }
:is(html:root, .style-scope)[data-style="board"][data-theme="light"] { --price: #8a6200; }

:is(html:root, .style-scope)[data-style="retro"] { --btn-bg: linear-gradient(90deg, #c2410c, #be185d 55%, #6d28d9); }
:is(html:root, .style-scope)[data-style="watercolor"] { --btn-bg: linear-gradient(135deg, #6d4fae, #a8456e); }
:is(html:root, .style-scope)[data-style="glass"] { --btn-bg: linear-gradient(135deg, #6d28d9, #be185d); }
:is(html:root, .style-scope):is([data-style="retro"], [data-style="watercolor"], [data-style="glass"]) :is(.btn--primary, .header-login-btn) {
  background-color: #5b21b6; color: #ffffff; }

@media (prefers-reduced-transparency: reduce) {
  :is(html:root, .style-scope)[data-style="glass"] { --surface-blur: none; }
  :is(html:root, .style-scope)[data-style="glass"][data-theme="light"] { --card: rgba(255, 255, 255, 0.92); }
  :is(html:root, .style-scope)[data-style="glass"][data-theme="dark"] { --card: rgba(30, 36, 44, 0.95); }
}


:is(html:root, .style-scope)[data-style="clean"][data-theme="light"] {
  --map-land: #f7f7f6; --map-park: #e3ebe0; --map-water: #d4e2ea; --map-water-edge: #bccfd9;
  --map-building: #ececea; --map-building-edge: #dcdcda; --map-building-shadow: #e2e2e0; --map-urban: #f1f1ef;
  --map-road: #ffffff; --map-road-major: #ffffff; --map-road-highway: #efefec; --map-road-casing: #d9d9d6;
  --map-label: #6e7073; --map-label-city: #111214; --map-label-halo: #f7f7f6; --map-label-minor: #9a9b9d;
  --map-track: #e3c6bc; --map-sport: #b9b9b4; --map-sport-edge: #9a9a95;
  --map-glass: rgba(255, 255, 255, 0.97); --map-glass-edge: #e6e6e3;
  --map-cluster-bg: #111214; --map-cluster-ring: #ffffff; --map-cluster-text: #ffffff;
}
:is(html:root, .style-scope)[data-style="clean"][data-theme="dark"] {
  --map-land: #0e0e0f; --map-park: #141a15; --map-water: #111a20; --map-water-edge: #1e2a32;
  --map-building: #18181a; --map-building-edge: #232325; --map-building-shadow: #08080a; --map-urban: #131314;
  --map-road: #1d1d1f; --map-road-major: #262628; --map-road-highway: #2f2f31; --map-road-casing: #0e0e0f;
  --map-label: #8d8d8a; --map-label-city: #f2f2f0; --map-label-halo: #0e0e0f; --map-label-minor: #5f5f5c;
  --map-track: #4a3330; --map-sport: #6f6f6b; --map-sport-edge: #575753;
  --map-glass: rgba(20, 20, 21, 0.97); --map-glass-edge: #2a2a2c;
  --map-cluster-bg: #f2f2f0; --map-cluster-ring: #0e0e0f; --map-cluster-text: #0e0e0f;
}

:is(html:root, .style-scope)[data-style="clay"][data-theme="light"] {
  --map-land: #f3ebe0; --map-park: #d8e7cd; --map-water: #c2def0; --map-water-edge: #a5cce6;
  --map-building: #ecdfcf; --map-building-edge: #e0d0bd; --map-building-shadow: #e3d4c2; --map-urban: #efe4d7;
  --map-road: #fffaf3; --map-road-major: #fff3e4; --map-road-highway: #fae0bf; --map-road-casing: #e3d3c0;
  --map-label: #76675a; --map-label-city: #2a211b; --map-label-halo: #f3ebe0; --map-label-minor: #9b8b7d;
  --map-track: #efb8a2; --map-sport: #e2a83f; --map-sport-edge: #cc922c;
  --map-glass: rgba(255, 250, 243, 0.97); --map-glass-edge: rgba(150, 90, 50, 0.08);
  --map-cluster-bg: #b3365f; --map-cluster-ring: #fffaf3; --map-cluster-text: #ffffff;
  --pin-group-gyms: #7b62c9; --pin-group-outdoor: #e2a21f; --pin-group-parks: #2f9a62; --pin-group-water: #2f7fc0; --pin-group-ice: #4fb3e0; --pin-group-spa: #b08463; --pin-group-other: #8a7d72;
}
:is(html:root, .style-scope)[data-style="clay"][data-theme="dark"] {
  --map-land: #1d1a21; --map-park: #212a24; --map-water: #1b2735; --map-water-edge: #2c3f55;
  --map-building: #2a2530; --map-building-edge: #352f3b; --map-building-shadow: #141217; --map-urban: #221e26;
  --map-road: #2e2934; --map-road-major: #38323f; --map-road-highway: #463a3c; --map-road-casing: #1d1a21;
  --map-label: #a1968c; --map-label-city: #f4ede6; --map-label-halo: #1d1a21; --map-label-minor: #766c63;
  --map-track: #6e3f45; --map-sport: #b8903a; --map-sport-edge: #93722c;
  --map-glass: rgba(42, 37, 48, 0.97); --map-glass-edge: rgba(255, 255, 255, 0.05);
  --map-cluster-bg: #ff9cc0; --map-cluster-ring: #2a2530; --map-cluster-text: #1d1a21;
  --pin-group-gyms: #b6a2ff; --pin-group-outdoor: #e8bd5a; --pin-group-parks: #6fd69a; --pin-group-water: #7cc0ff; --pin-group-ice: #9fd8f5; --pin-group-spa: #d6a985; --pin-group-other: #a1968c;
}

:is(html:root, .style-scope)[data-style="glass"][data-theme="light"] {
  --map-land: #e9eff3; --map-park: #d2e9de; --map-water: #b3dbea; --map-water-edge: #8ecadf;
  --map-building: #e0e7ec; --map-building-edge: #cfd9e0; --map-building-shadow: #d5dfe5; --map-urban: #e5ecf0;
  --map-road: #ffffff; --map-road-major: #fbfdfe; --map-road-highway: #e7e2f7; --map-road-casing: #ced8df;
  --map-label: #55646f; --map-label-city: #14202a; --map-label-halo: #eef3f6; --map-label-minor: #8796a0;
  --map-track: #efb7c8; --map-sport: #9b87f5; --map-sport-edge: #7c69e6;
  --map-glass: rgba(255, 255, 255, 0.55); --map-glass-edge: rgba(255, 255, 255, 0.8);
  --map-cluster-bg: #6d28d9; --map-cluster-ring: #ffffff; --map-cluster-text: #ffffff;
}
:is(html:root, .style-scope)[data-style="glass"][data-theme="dark"] {
  --map-land: #0d1116; --map-park: #0f1f1c; --map-water: #0c2230; --map-water-edge: #164257;
  --map-building: #151b22; --map-building-edge: #1e2630; --map-building-shadow: #07090c; --map-urban: #11161c;
  --map-road: #1a2129; --map-road-major: #232c36; --map-road-highway: #2b2540; --map-road-casing: #0d1116;
  --map-label: #8fa1ad; --map-label-city: #eef4f8; --map-label-halo: #0d1116; --map-label-minor: #5c6c77;
  --map-track: #5a2f45; --map-sport: #7c69e6; --map-sport-edge: #5b4bc0;
  --map-glass: rgba(20, 24, 30, 0.55); --map-glass-edge: rgba(255, 255, 255, 0.14);
  --map-cluster-bg: #a78bfa; --map-cluster-ring: #0d1116; --map-cluster-text: #0d1116;
}

:is(html:root, .style-scope)[data-style="paper"][data-theme="light"] {
  --map-land: #f4ede0; --map-park: #dde3c6; --map-water: #c6dad9; --map-water-edge: #a7c2c1;
  --map-building: #eae1d1; --map-building-edge: #d6cab5; --map-building-shadow: #ddd1bd; --map-urban: #eee6d7;
  --map-road: #fffcf6; --map-road-major: #fff8ec; --map-road-highway: #f2e0c0; --map-road-casing: #d8ccb6;
  --map-label: #5e5549; --map-label-city: #2a251f; --map-label-halo: #f6f1e7; --map-label-minor: #8d8273;
  --map-track: #e2b29a; --map-sport: #c9952a; --map-sport-edge: #ad7f22;
  --map-glass: rgba(255, 252, 246, 0.95); --map-glass-edge: #e3dacb;
  --map-cluster-bg: #fffcf6; --map-cluster-ring: #72685c; --map-cluster-text: #2a251f;
  --pin-group-gyms: #6a5aa8; --pin-group-outdoor: #c9952a; --pin-group-parks: #4f8a4a; --pin-group-water: #2c6a9a;
  --pin-group-ice: #5aa2c8; --pin-group-spa: #a07c5c; --pin-group-other: #7d7466;
}
:is(html:root, .style-scope)[data-style="paper"][data-theme="dark"] {
  --map-land: #1f1c19; --map-park: #232a20; --map-water: #1b292a; --map-water-edge: #2d4345;
  --map-building: #29251f; --map-building-edge: #342e27; --map-building-shadow: #171513; --map-urban: #24211d;
  --map-road: #2d2923; --map-road-major: #36312a; --map-road-highway: #42392c; --map-road-casing: #1f1c19;
  --map-label: #a3988b; --map-label-city: #f1e9dc; --map-label-halo: #1f1c19; --map-label-minor: #7a7064;
  --map-track: #6b4433; --map-sport: #b08a3a; --map-sport-edge: #8a6c2c;
  --map-glass: rgba(41, 37, 31, 0.95); --map-glass-edge: #3a342c;
  --map-cluster-bg: #29251f; --map-cluster-ring: #a3988b; --map-cluster-text: #f1e9dc;
  --pin-group-gyms: #b3a6e8; --pin-group-outdoor: #e3b866; --pin-group-parks: #8fc48a; --pin-group-water: #86bde6;
  --pin-group-ice: #9ad0ea; --pin-group-spa: #c9a27f; --pin-group-other: #a3988b;
}

:is(html:root, .style-scope)[data-style="neon"][data-theme="light"] {
  --map-land: #eef1f6; --map-urban: #e7eaef; --map-park: #cfdecf; --map-water: #bad6ed;
  --map-water-edge: #94c3e6; --map-building: #dee1e6; --map-building-edge: #d0d3d9; --map-building-shadow: #d7dadf;
  --map-road: #ffffff; --map-road-major: #ffffff; --map-road-highway: #d1e2c7; --map-road-casing: #cacdd2;
  --map-label: #59627a; --map-label-city: #0b0d14; --map-label-halo: #eef1f6; --map-label-minor: #8d94a5;
  --map-track: #e8b3c4; --map-sport: #8db67b; --map-sport-edge: #70a456; --map-glass: rgba(255, 255, 255, 0.97);
  --map-glass-edge: #d6dce8; --map-cluster-bg: #0b0d14; --map-cluster-ring: #eef1f6; --map-cluster-text: #c6ff3d;
}
:is(html:root, .style-scope)[data-style="neon"][data-theme="dark"] {
  --map-land: #0b0f24; --map-urban: #12162b; --map-park: #123132; --map-water: #154559;
  --map-water-edge: #1a6476; --map-building: #1d2136; --map-building-edge: #292d40; --map-building-shadow: #060812;
  --map-road: #232e27; --map-road-major: #303f29; --map-road-highway: #3a4b2a; --map-road-casing: #0b0f24;
  --map-label: #8590ab; --map-label-city: #f2f5ff; --map-label-halo: #0b0f24; --map-label-minor: #5a637c;
  --map-track: #6d214d; --map-sport: #688730; --map-sport-edge: #85ab34; --map-glass: rgba(17, 20, 29, 0.97);
  --map-glass-edge: #262b3b; --map-cluster-bg: #c6ff3d; --map-cluster-ring: #0b0f24; --map-cluster-text: #07080c;
}

:is(html:root, .style-scope)[data-style="nordic"][data-theme="light"] {
  --map-land: #f4f2ee; --map-urban: #eeece8; --map-park: #dfe4da; --map-water: #d3d9db;
  --map-water-edge: #bbc6cd; --map-building: #e6e5e1; --map-building-edge: #dad9d5; --map-building-shadow: #e0dfdb;
  --map-road: #fbfaf7; --map-road-major: #fbfaf7; --map-road-highway: #d2d7d1; --map-road-casing: #d4d3d0;
  --map-label: #5f6561; --map-label-city: #2e3230; --map-label-halo: #f4f2ee; --map-label-minor: #939692;
  --map-track: #e3d2c8; --map-sport: #9aa69d; --map-sport-edge: #7e8f85; --map-glass: rgba(251, 250, 247, 0.97);
  --map-glass-edge: #e2ddd4; --map-cluster-bg: #3f5a4c; --map-cluster-ring: #f4f2ee; --map-cluster-text: #fbfaf7;
}
:is(html:root, .style-scope)[data-style="nordic"][data-theme="dark"] {
  --map-land: #1a2028; --map-urban: #20262e; --map-park: #263132; --map-water: #2b3642;
  --map-water-edge: #3a4a59; --map-building: #2b3037; --map-building-edge: #353b41; --map-building-shadow: #0d1014;
  --map-road: #2f343b; --map-road-major: #373d43; --map-road-highway: #3e4a4b; --map-road-casing: #1a2028;
  --map-label: #939993; --map-label-city: #e9ece8; --map-label-halo: #1a2028; --map-label-minor: #696f6e;
  --map-track: #473938; --map-sport: #62746e; --map-sport-edge: #778d82; --map-glass: rgba(35, 42, 51, 0.97);
  --map-glass-edge: #333c47; --map-cluster-bg: #a9c7b3; --map-cluster-ring: #1a2028; --map-cluster-text: #1a2028;
}

:is(html:root, .style-scope)[data-style="retro"][data-theme="light"] {
  --map-land: #fff4e6; --map-urban: #f9ede1; --map-park: #dfe6d0; --map-water: #cddae2;
  --map-water-edge: #a9c7e0; --map-building: #f0e4da; --map-building-edge: #e3d7d0; --map-building-shadow: #eaded5;
  --map-road: #fffaf2; --map-road-major: #fffaf2; --map-road-highway: #decde7; --map-road-casing: #ddd0cb;
  --map-label: #6f5888; --map-label-city: #2b1640; --map-label-halo: #fff4e6; --map-label-minor: #a18fa9;
  --map-track: #f9caa8; --map-sport: #b592d2; --map-sport-edge: #9f74cd; --map-glass: rgba(255, 250, 242, 0.97);
  --map-glass-edge: #f0d2ad; --map-cluster-bg: #6b2fbf; --map-cluster-ring: #fff4e6; --map-cluster-text: #fff4e6;
}
:is(html:root, .style-scope)[data-style="retro"][data-theme="dark"] {
  --map-land: #1a0f2b; --map-urban: #211630; --map-park: #1f2836; --map-water: #273155;
  --map-water-edge: #334f7c; --map-building: #2c2139; --map-building-edge: #382c43; --map-building-shadow: #0d0816;
  --map-road: #31263d; --map-road-major: #3a2f44; --map-road-highway: #533832; --map-road-casing: #1a0f2b;
  --map-label: #ad97c2; --map-label-city: #fff1e0; --map-label-halo: #1a0f2b; --map-label-minor: #7a678d;
  --map-track: #763554; --map-sport: #8c6139; --map-sport-edge: #af7a3d; --map-glass: rgba(36, 22, 64, 0.97);
  --map-glass-edge: #3d2a5f; --map-cluster-bg: #ffb347; --map-cluster-ring: #1a0f2b; --map-cluster-text: #1a0f2b;
}

:is(html:root, .style-scope)[data-style="board"][data-theme="light"] {
  --map-land: #ffffff; --map-urban: #f7f7f7; --map-park: #deefdf; --map-water: #c7e0f6;
  --map-water-edge: #9ec9ef; --map-building: #ededed; --map-building-edge: #dedede; --map-building-shadow: #e6e6e6;
  --map-road: #ffffff; --map-road-major: #ffffff; --map-road-highway: #fff6c7; --map-road-casing: #d6d6d6;
  --map-label: #4a4a4a; --map-label-city: #000000; --map-label-halo: #ffffff; --map-label-minor: #898989;
  --map-track: #ffee99; --map-sport: #ffea80; --map-sport-edge: #ffe359; --map-glass: rgba(255, 255, 255, 0.97);
  --map-glass-edge: #111111; --map-cluster-bg: #000000; --map-cluster-ring: #ffffff; --map-cluster-text: #ffd400;
}
:is(html:root, .style-scope)[data-style="board"][data-theme="dark"] {
  --map-land: #000000; --map-urban: #080808; --map-park: #091b0d; --map-water: #0f2433;
  --map-water-edge: #1d4461; --map-building: #141414; --map-building-edge: #212121; --map-building-shadow: #000000;
  --map-road: #1a1a1a; --map-road-major: #242424; --map-road-highway: #403500; --map-road-casing: #000000;
  --map-label: #b0b0b0; --map-label-city: #ffffff; --map-label-halo: #000000; --map-label-minor: #727272;
  --map-track: #665500; --map-sport: #806a00; --map-sport-edge: #a68a00; --map-glass: rgba(0, 0, 0, 0.97);
  --map-glass-edge: #ffffff; --map-cluster-bg: #ffd400; --map-cluster-ring: #000000; --map-cluster-text: #000000;
}

:is(html:root, .style-scope)[data-style="watercolor"][data-theme="light"] {
  --map-land: #fbf7f4; --map-urban: #f5f1ef; --map-park: #e7ece3; --map-water: #d5dee7;
  --map-water-edge: #baccdd; --map-building: #ede9e8; --map-building-edge: #e2dedd; --map-building-shadow: #e8e3e3;
  --map-road: #fdfbf9; --map-road-major: #fdfbf9; --map-road-highway: #e1d8eb; --map-road-casing: #dcd8d8;
  --map-label: #736b82; --map-label-city: #3a3346; --map-label-halo: #fbf7f4; --map-label-minor: #a39caa;
  --map-track: #f3d4da; --map-sport: #bcaad6; --map-sport-edge: #a992cd; --map-glass: rgba(253, 251, 249, 0.97);
  --map-glass-edge: #e9e1ec; --map-cluster-bg: #7d5cb8; --map-cluster-ring: #fbf7f4; --map-cluster-text: #fbf7f4;
}
:is(html:root, .style-scope)[data-style="watercolor"][data-theme="dark"] {
  --map-land: #1f1a22; --map-urban: #252028; --map-park: #2c2f31; --map-water: #313066;
  --map-water-edge: #393a83; --map-building: #302b33; --map-building-edge: #3a353d; --map-building-shadow: #100d11;
  --map-road: #342f37; --map-road-major: #3c3740; --map-road-highway: #494056; --map-road-casing: #1f1a22;
  --map-label: #a69db5; --map-label-city: #efe9f5; --map-label-halo: #1f1a22; --map-label-minor: #776f82;
  --map-track: #562b40; --map-sport: #746689; --map-sport-edge: #8d7da8; --map-glass: rgba(37, 34, 45, 0.97);
  --map-glass-edge: #34303d; --map-cluster-bg: #c8b3f0; --map-cluster-ring: #1f1a22; --map-cluster-text: #1f1a22;
}

:is(html:root, .style-scope)[data-style="clean"] :is(.map-wx-w, .map-wx-alert, .map-wxtop, .map-wxdock .wxb-tile, .map-wxdock-time, .map-locate-fab, .map-fab, .wx-line, .wx-line-list, .wx-pick) { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
:is(html:root, .style-scope)[data-style="clay"] :is(.map-wx-w, .map-wx-alert, .map-wxtop, .map-wxdock .wxb-tile, .map-wxdock-time, .map-locate-fab, .map-fab, .wx-line, .wx-line-list, .wx-pick) { -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: var(--shadow-md); }
:is(html:root, .style-scope)[data-style="glass"] :is(.map-wx-w, .map-wx-alert, .map-wxtop, .map-wxdock .wxb-tile, .map-wxdock-time, .map-locate-fab, .map-fab, .wx-line, .wx-line-list, .wx-pick) { -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); }
:is(html:root, .style-scope)[data-style="paper"] :is(.map-wx-w, .map-wx-alert, .map-wxtop, .map-wxdock .wxb-tile, .map-wxdock-time, .map-locate-fab, .map-fab, .wx-line, .wx-line-list, .wx-pick) { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow-md); }

:is(html:root, .style-scope)[data-style] .btn.btn--round { border-radius: var(--radius-pill); }

:is(html:root, .style-scope)[data-style] :is(.btn--primary, .btn-primary, .header-login-btn):is(:disabled, [aria-disabled="true"]) {
  background: var(--btn-bg-disabled); color: var(--btn-text-disabled);
  border: 1px solid var(--btn-border-disabled); box-shadow: none; text-shadow: none;
}



:where(h1, h2, h3, h4, h5, h6, .page-title, .section-title, .hb-title, [class*='__title'], [class*='-title']) {
  hyphens: manual;
  text-wrap: balance;
}

:where(button, [role='button'], [role='tab'], .btn, [class*='btn'], [class*='chip'], label) {
  hyphens: none;
}

:where(p, li, dd, figcaption, blockquote, [class*='__desc'], [class*='-desc'], [class*='__hint'], [class*='-hint'], [class*='__text'], [class*='-sub']) {
  text-wrap: pretty;
}



:where(.sec-title, .sec-label) { margin: 0; }
.sec-title {
  font-size: 16px; font-weight: 700; line-height: 1.3;
  color: var(--text);
}
.sec-label {
  font-size: var(--fs-min); font-weight: 600; line-height: 1.35;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
}



html:root:not([data-look="old"]) .hdr-btn--create { color: var(--text); box-shadow: none; }

html:root:not([data-look="old"]) .tab-bar > .tab-item--feed .tab-icon,
html:root:not([data-look="old"]) .tab-bar--compact > .tab-item--feed .tab-icon {
  width: auto; height: auto; margin-top: 0; border-radius: 0; display: inline-flex;
  background: none; color: inherit; box-shadow: none;
}
html:root:not([data-look="old"]) .tab-blob { display: none; }
html:root:not([data-look="old"]) .tab-bar > .tab-item.active { color: var(--primary); font-weight: 700; }
html:root:not([data-look="old"]) .tab-bar > .tab-item.active .tab-icon { color: var(--primary); }

html:root:not([data-look="old"]) .feed-post-group { gap: 0; }
html:root:not([data-look="old"]) .feed-page .posts-list .post-card {
  box-shadow: none; border: none; border-radius: 0; border-bottom: 1px solid var(--border-light);
}
@media (hover: hover) and (pointer: fine) {
  html:root:not([data-look="old"]) .feed-page .posts-list .post-card:hover { box-shadow: none; }
}

html:root:not([data-look="old"]) .fpromo-row {
  border: none; border-radius: 0; background: var(--bg);
  border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}

html:root:not([data-look="old"]) .post-cta {
  display: inline-flex; align-items: center; gap: var(--space-1); min-height: 44px; padding: 0 var(--space-4);
  border: 1px solid var(--border); border-radius: var(--btn-radius); color: var(--text); text-decoration: none;
}
html:root:not([data-look="old"]) .post-cta:active { background: var(--bg-warm); }

html:root:not([data-look="old"]) .more-section-list {
  background: none; border: none; border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
html:root:not([data-look="old"]) .more-row { padding-inline: 0; }
html:root:not([data-look="old"]) .more-row-icon { border: none; background: none; }

html:root:not([data-look="old"]) .dash-w {
  border: none; box-shadow: none; background: var(--card);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

html:root:not([data-look="old"]) .dash-w::before { content: none; }
html:root:not([data-look="old"]) .dash-w__mark { display: none; }
html:root:not([data-look="old"]) .dash-open {
  border-top: none; justify-content: flex-start; margin-inline: 0; padding-inline: 0; color: var(--link);
  min-height: var(--tap-min);   
}



.hm-loop { display: block; flex: none; max-width: 100%; height: auto; }
.hm-loop__track, .hm-loop__arc { fill: none; }
.hm-loop__track { stroke-linejoin: round; }
.hm-loop__stop--body { stop-color: var(--loop-track-body); }
.hm-loop__stop--mode { stop-color: var(--loop-track-mode); }
.hm-loop__arc { stroke-linecap: round; transition: stroke-dasharray var(--dur-sheet) var(--ease-out); }
.hm-loop__arc--body { stroke: var(--loop-body); }
.hm-loop__arc--mode { stroke: var(--loop-mode); }

.bk-kick { font-style: normal; font-size: var(--fs-min); font-weight: var(--fw-bold); line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.bk-h2 { margin: var(--space-6) 0 var(--space-3); font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-semibold); letter-spacing: -.01em; line-height: 1.2; color: var(--text); }

.bk-sh { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin: var(--space-6) 0 var(--space-3); }
.bk-sh > .bk-h2 { margin: 0; }
.bk-h2:first-child, .bk-sh:first-child { margin-top: 0; }
.bk-sh__a {
  display: inline-flex; align-items: center; gap: var(--space-1); flex: none; min-height: var(--tap-min); padding: 0; border: 0; background: none; cursor: pointer;
  font: var(--fw-semibold) var(--fs-body)/1 var(--font-sans); color: var(--link); text-decoration: none;
}
.bk-num { font-family: var(--font-display); font-size: var(--fs-num); font-weight: var(--fw-semibold); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: var(--font-num); color: var(--text); }
.bk-num--body { color: var(--loop-body-text); }
.bk-num--mode { color: var(--loop-mode-text); }
.bk-unit { font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: var(--fw-medium); letter-spacing: 0; line-height: 1.35; color: var(--text-muted); }
.bk-num + .bk-unit { margin-inline-start: var(--space-1); }

.bk-quote { margin: 0; padding-inline-start: var(--space-3); border-inline-start: 3px solid var(--text); font-size: var(--fs-body); line-height: 1.45; color: var(--text); }

.bk-card { padding: var(--space-4); border-radius: var(--radius-xl); background: var(--card); color: var(--text); }
.bk-card--list { padding-block: var(--space-1); }

.bk-card--list > .bk-kick { padding-top: var(--space-3); }

.bk-card:not(.bk-card--list) > .bk-row:first-child { padding-top: 0; }
.bk-card:not(.bk-card--list) > .bk-row:last-child { padding-bottom: 0; }
.bk-cols { display: grid; gap: var(--space-3); }
.bk-col { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
@media (min-width: 768px) {
  .bk-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
}

.bk-go, .btn.bk-go { width: 100%; height: 52px; margin-top: var(--space-4); font-size: var(--fs-title); }

.bk-loopcard {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4);
  padding: var(--space-4); border-radius: var(--radius-xl); background: var(--card); color: var(--text);
}
.bk-loopcard > .bk-legend { flex: 1 1 0; }
.bk-loopcard > :not(.hm-loop):not(.bk-legend) { flex: 1 1 100%; min-width: 0; }
.bk-legend { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.bk-legend__item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bk-legend__key { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-caption); font-weight: var(--fw-semibold); line-height: 1.35; color: var(--text-dim); }
.bk-legend__val { display: flex; align-items: baseline; flex-wrap: wrap; }
.bk-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: var(--radius-pill); }
.bk-dot--body { background: var(--loop-body); }
.bk-dot--mode { background: var(--loop-mode); }

.bk-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); min-height: 68px; padding: var(--space-3) 0;
  color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
:where(button).bk-row { width: 100%; margin: 0; border: 0; background: none; font: inherit; text-align: start; cursor: pointer; }
.bk-row:not(.bk-row--card) + .bk-row:not(.bk-row--card) { border-top: 1px solid var(--border-light); }
.bk-row--card { min-height: 72px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); background: var(--card); }
:is(a, button).bk-row--card:active { background: var(--bg-warm); }
.bk-row__icon { flex: none; width: 44px; height: 44px; object-fit: contain; }
.bk-row__main { display: flex; flex: 1 1 6em; flex-direction: column; gap: 2px; min-width: 0; }

.bk-row__title { font-size: var(--fs-body-lg); font-weight: var(--fw-semibold); line-height: 1.3; color: var(--text); }
.bk-row__sub { font-size: var(--fs-caption); line-height: 1.35; color: var(--text-muted); }
.bk-row__val {
  flex: none; margin-inline-start: auto; font-family: var(--font-display); font-size: var(--fs-num-s); font-weight: var(--fw-semibold); letter-spacing: -.02em;
  line-height: 1.1; text-align: end; white-space: nowrap; font-variant-numeric: var(--font-num);
}
.bk-row__val small { display: block; margin-top: 2px; font: var(--fw-medium) var(--fs-min)/1.2 var(--font-sans); letter-spacing: 0; color: var(--text-muted); }

.bk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.bk-tile {
  position: relative; display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; overflow: hidden;
  padding: var(--space-4); border-radius: var(--radius-xl); background: var(--card); color: var(--text); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bk-tile--inset { padding: var(--space-3); border-radius: var(--radius-lg); background: var(--bg); }
:where(button).bk-tile { width: 100%; margin: 0; border: 0; font: inherit; text-align: start; cursor: pointer; }
:is(a, button).bk-tile:active { filter: brightness(.97); }
.bk-tile__ic { position: absolute; inset-inline-end: var(--space-3); top: var(--space-3); width: 48px; height: 48px; object-fit: contain; }
.bk-tile__ic ~ :is(.bk-kick, .bk-h2) { padding-inline-end: 52px; }
.bk-tile > .bk-h2 { margin: 0; font-size: var(--fs-body-lg); }

.bk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.bk-week__d { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); min-width: 0; }
.bk-week__wd { font-size: var(--fs-min); font-weight: var(--fw-semibold); line-height: 1.2; color: var(--text-muted); }
.bk-week__dot {
  --bk-ring-in: 0 0 0 0 transparent; --bk-ring-out: 0 0 0 0 transparent;
  position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-pill);
  background: var(--day-empty); color: var(--bg); box-shadow: var(--bk-ring-in), var(--bk-ring-out);
}
.bk-week--sm .bk-week__dot { width: 22px; height: 22px; }
.bk-week--body .bk-week__dot.is-on { background: var(--loop-body); }
.bk-week--mode .bk-week__dot.is-on { background: var(--loop-mode); }
.bk-week__dot.is-freeze { background: var(--card); --bk-ring-in: inset 0 0 0 2px var(--loop-mode); }
.bk-week__dot.is-freeze::after { content: ''; position: absolute; inset: 30%; border-radius: var(--radius-pill); background: var(--loop-track-mode); }
.bk-week__dot.is-rest { background: transparent; --bk-ring-in: inset 0 0 0 1.5px var(--border); }
.bk-week__dot.is-pause { background: var(--pause); }
.bk-week__dot.is-today { background: var(--card); --bk-ring-out: 0 0 0 2px var(--sel-line); }
.bk-week__dot.is-today:is(.is-on, .is-freeze, .is-pause) { --bk-ring-out: 0 0 0 2px var(--card), 0 0 0 4px var(--sel-line); }
.bk-week__dot.is-today.is-pause { background: var(--pause); }

.bk-check {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: var(--radius-pill);
  background: transparent; box-shadow: inset 0 0 0 2px var(--border); color: var(--text-muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.bk-check::after { content: ''; position: absolute; inset: calc((100% - var(--tap-min)) / 2); border-radius: var(--radius-pill); }
.bk-check--lg { width: 40px; height: 40px; }
.bk-check.is-on { background: var(--sel-bg); box-shadow: none; color: var(--sel-text); }
.bk-check--body.is-on { background: var(--loop-body); color: var(--bg); }
.bk-check--mode.is-on { background: var(--loop-mode); color: var(--bg); }
.bk-check:disabled { cursor: default; opacity: .5; }
.bk-check:focus-visible { outline: 2px solid var(--sel-line); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bk-check { transition: none; } }



@font-face {
  font-family: 'LifixyWordmark';
  src: url('data:font/woff2;base64,d09GMgABAAAAAAOgABAAAAAAB0wAAANEAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhobgVAcKAZgP1NUQVQqAFQRCAqCPIFqCxAAATYCJAMcBCAFhDgHIAwHG9YFyAQeKM/vzSQpvHI+oJWU/lW78km62biKc7G2iD5dNIpGQqYWWPDFG9x0xCRZyEyXRoMm3kwT/Ut4e95tP3ICjIZ+RJ/2MJmNADy4TIFER6QN+90uoslE1q3ftC2+Qb1GDGFe9Gqm30XGwH7DhuCgwlakI3H4KuOyWJLGTKZ8TAP1sctOQ0ATq5SQi8Wp6wza05Rc4okUTu0PJZLfUG9jauo+hrqPbb6BUJ+R6jOa+ixpt8slhtqMTf1cTI76iE19N9xYYhlFQZmWo78qya6aiVElZ8qOQJPjJKI7mSKGsEvEbuo/rJfFSUw6aR///wXto9DLheKTPEeYOJeLjhwsvq8qjxxtBUcICAYi4dTM9gAJaiSHRiZ0aj4sALxMx6Q+jWhKp2mbYuSO/6DeqyPqkDqgtk5PxyVCKfxol7B4iFvrGkcvgkPfw4BWyQMS9NDmsMe7Db/e26t52rVp17JLq7at3YZb7yy89NdwBW518f3ezq7+7k7ufj6rXccu7bu4+9ifurq4+7bV3LLGuYhzm0ZlPcgqtWbxxYuLNeeRO3e2UuPcnnPRjgU9FnSPXhBaoPW7P4hZ3H4xP05UKeqdfu9IQlHf4uNi3Ozap/PeN5ld53j2VUr9852/dj08/3r4UuD8wn8N9jRYrJYfEGUW19g4f3APf9VvDk17BcM8ffLuf7DoZeVSiWry/z7+2locbbj1DQwPcCb/SDX5329/bYTfgV2uoIbsTA2RQQ2ZRw15F7fcj5NDA2ba2YuPZi9tS2h4jH4Xk84e3Wm5G0VRmcDks0zi461MI5ftnXq5zKAyI2Q2TNpKfeRSMSYEHrr2CKd8F+oxhhEMoxe1CTGIvnSgH4VYBBmxLR1BmOFUJs3sG04fhlFImBEMJ5UfU8ggUgkxDIs0WlCfplZ1JCPoT2G/lM4p7XFYs9IQQzDJIFVa002oChb9BYZIpcPpQjqpFMjhTPLoxrF/d4NZVBmK0nq6xUgG0YthRE1mZh1ChBm7RAOASpNM0skkA+ioIP0wO1jWkmGEGEA/+sSxVgkGkViHi97xENFqtDzISHqTSh9CDEbX1CGAaZMiUqgPC7Bjwo9A58eppWQSph8UaspOfQ4AAA==') format('woff2');
  font-weight: 800;
  font-display: block;
}


.hdr-home {
  display: flex; align-items: center; gap: 0;
  flex: 1; min-width: 0; width: 100%;
}
.hdr-wordmark {
  margin-inline-end: auto;
  font-family: 'LifixyWordmark', var(--font-sans);
  font-weight: 800; font-size: 23px; line-height: 1;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap; user-select: none;
}
.hdr-home .hdr-btn,
.hdr-unified .hdr-btn {
  width: var(--tap-min); min-width: var(--tap-min); height: var(--tap-min); flex-shrink: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .hdr-home .hdr-btn:hover, .hdr-unified .hdr-btn:hover { background: var(--bg-warm); } }
.hdr-home .hdr-btn:active, .hdr-unified .hdr-btn:active { background: var(--bg-warm); }
.hdr-home .hdr5-login { margin-inline-start: 6px; }

@media (max-width: 374px) {
  .hdr-home--guest .hdr5-login { padding: 0 12px; }
  .hdr-home--guest .hdr5-login svg { display: none; }
}



.tab-bar--float .tab-item .tab-icon { display: flex; align-items: center; justify-content: center; }


@media (max-width: 767px) {
  .app-header { transition: transform 0.22s ease; }
  
  .app-header.app-header--hidden,
  .app-header.header-scrolled.app-header--hidden { transform: translateY(calc(-100% - var(--safe-top))); }
  
  .home-scrim { transition: opacity 0.2s ease, transform 0.22s ease; }
  
  .home-scrim.home-scrim--hidden { transform: translateY(calc(-100% + env(safe-area-inset-top, 0px))); }
}
@media (prefers-reduced-motion: reduce) {
  .app-header, .home-scrim { transition: none; }
}


.hdr-unified {
  display: flex; align-items: center; gap: 0;
  flex: 1; min-width: 0; width: 100%;
}
.hdr-unified--root .hdr-wordmark { margin-inline-end: auto; }
.hdr-unified .hdr-unified-back { margin-inline-start: -8px; }
.hdr-unified-title {
  flex: 1; min-width: 0;
  font-size: var(--fs-title); font-weight: 700; line-height: 1.2; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-inline-start: 2px;
}

html:root .hdr-unified .hdr-unified-rich {
  position: static; left: auto; right: auto; top: auto; width: auto; height: auto; max-width: none;
  flex: 1 1 auto; min-width: 0;
}
.hdr-unified .hdr-unified-node { display: flex; align-items: center; flex: 0 0 auto; }

.hdr-unified-actions {
  display: flex; align-items: center; gap: 0;
  margin-inline-start: auto; flex-shrink: 0;
}
.hdr-unified-actions .hdr5-login { margin-inline-start: 6px; }


.hdr-more-wrap { position: relative; }
.hdr-more-overlay { position: fixed; inset: 0; z-index: 600; }
.hdr-more-menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 601;
  min-width: 200px; padding: 6px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}

.hdr-more-item { min-height: var(--tap-min); }


.hdr-eq { position: absolute; inset-inline-end: -6px; bottom: -2px; pointer-events: none; }


.hdr-home .hdr-btn--music-idle, .hdr-unified .hdr-btn--music-idle { color: var(--spark); }
.hdr-home .hdr-btn--playing, .hdr-unified .hdr-btn--playing { color: var(--btn-bg); }
.hdr-btn--playing .hdr-eq i { background: var(--text); }


html:root:is([data-style="glass"], [data-style="retro"], [data-style="watercolor"]) :is(.hdr-home, .hdr-unified) .hdr-btn--playing { color: var(--primary); }


.hdr-titlecol { display: flex; flex: 1; flex-direction: column; justify-content: center; min-width: 0; gap: 1px; }
.hdr-titlecol > .hdr-unified-title { flex: none; }
.hdr-titlecol--root { flex: 0 1 auto; margin-inline-end: auto; padding-inline-end: var(--space-2); }
.hdr-titlecol--root > .hdr-wordmark { margin-inline-end: 0; }
.hdr-now {
  display: block; max-width: 100%; min-width: 0; margin: 0; padding: 0 0 0 2px; border: 0; background: none; cursor: pointer;
  font: 500 var(--fs-min)/1.3 var(--font-sans); color: var(--text-muted); text-align: start;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-tap-highlight-color: transparent;
}
.hdr-titlecol--root > .hdr-now { padding-inline-start: 0; }
.hdr-now:focus-visible { outline: 2px solid var(--sel-line); outline-offset: 2px; border-radius: var(--radius-xs); }


.large-title { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); margin: var(--space-2) 0 var(--space-1); }
.large-title .large-title__text {   
  flex: 1; min-width: 0; margin: 0; font-size: var(--fs-h1); font-weight: 700;
  letter-spacing: -.02em; line-height: 1.12; color: var(--text); overflow-wrap: anywhere;
}
.large-title__side { display: flex; align-items: center; flex: none; margin-inline-end: calc(-1 * var(--space-2)); }
.large-title__side .icon-btn { min-width: var(--tap-min); min-height: var(--tap-min); color: var(--text); }
.hdr-unified-title { transition: opacity var(--dur-fast) var(--ease-out); }
.hdr-unified-title--under-large { opacity: 0; }


html.has-miniplayer { --miniplayer-h: 62px; }   
.miniplayer {
  position: fixed; z-index: 400; left: var(--nav-inset); right: var(--nav-inset);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6px + var(--tab-panel-h) + 6px);
  height: 56px; padding: 0 var(--nav-pad);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  background: var(--bg-tabbar-float); box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  transform: translateZ(0);
}
.pwa-standalone .miniplayer { bottom: calc(env(safe-area-inset-bottom, 20px) + 6px + var(--tab-panel-h) + 6px); }
.miniplayer--hidden, html.kb-open .miniplayer, body.clips-fullscreen .miniplayer { display: none; }
html.kb-open { --miniplayer-h: 0px; }
@media (min-width: 1024px) and (min-height: 600px) {
  html.has-miniplayer { --miniplayer-h: 68px; }
  .miniplayer {
    left: max(var(--space-4), calc((100vw - var(--page-max-desktop)) / 2 + var(--space-4)));
    right: max(var(--space-4), calc((100vw - var(--page-max-desktop)) / 2 + var(--space-4)));
    bottom: var(--space-3); padding: 0 var(--space-2);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .miniplayer { animation: miniplayer-in var(--dur-base) var(--ease-out); }
  @keyframes miniplayer-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateZ(0); } }
}


.app-header--map-overlay .app-header-inner:has(.hdr-unified) { padding: 0 12px; }
.app-header--map-overlay .hdr-unified { pointer-events: auto; height: var(--header-height); }
.home-scrim--map { transition: opacity 0.2s ease; }
body.map-panel-open .home-scrim--map { opacity: 0; }
body.map-panel-open .app-header--map-overlay:has(.hdr-unified) {
  
  background: linear-gradient(var(--card), var(--card)), var(--bg) !important;
  border-bottom: 0 !important;
}

.app-header--map-overlay:has(.hdr-unified) .hdr-search-bar {
  margin-inline: 0; border-inline: 0; border-radius: 0;
  background: var(--card);
}


.app-header--clips-overlay .hdr-wordmark,
.app-header--clips-overlay .hdr-unified .hdr-btn { color: var(--on-media); }
.app-header--clips-overlay .hdr-unified { position: relative; }


html.kb-open .tab-bar, html.kb-open .tab-scrim { display: none !important; }  


.desk-page-hdr {
  position: sticky; top: var(--desktop-header-h); z-index: 20;
  margin-top: -12px; padding: 10px 0;
  background: var(--bg);
}
.desk-page-hdr .hdr-search-bar { margin: 8px 0 0; }
.desktop-center:has(> .desk-page-hdr) :is(.page-hdr, .page-header) { display: none !important; }



.story-ring { position: relative; display: inline-flex; flex: none; padding: 2px; border-radius: var(--radius-pill); }
.story-ring-inner { display: block; width: 100%; height: 100%; border-radius: var(--radius-pill); overflow: hidden;
  border: 2px solid var(--bg); background: var(--bg); }
.story-ring-inner > img, .story-ring-inner > span { display: flex; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-pill); }
.story-ring--new { background: conic-gradient(from 210deg, var(--pal-brand-400), var(--pal-aqua-400), var(--pal-brand-400)); }
.story-ring--seen { box-shadow: inset 0 0 0 1.5px var(--border); }
.story-ring--none .story-ring-inner { border-color: transparent; }


.stories-bar { display: flex; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: var(--space-2) 16px; margin: 0 -12px; }
.stories-bar::-webkit-scrollbar { display: none; }
.stories-cell { position: relative; flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
.stories-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: var(--radius-pill); }
.stories-av { align-items: center; justify-content: center; font-size: 22px; }
.stories-av--icon { background: var(--bg-warm); color: var(--text); }
.stories-av.person-av-ph, .stv-av.person-av-ph, .stv-viewer-av.person-av-ph { background: var(--bg-warm); color: var(--text-dim); font-weight: 700; }
.stories-plus { position: absolute; top: 44px; left: 48px; width: 20px; height: 20px; padding: 0; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--bg);
  background: var(--primary); color: var(--btn-text); cursor: pointer; }
.stories-plus::after { content: ''; position: absolute; inset: -12px; }   
.stories-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--fs-min); color: var(--text-dim); }


.stv, .stc { position: fixed; inset: 0; z-index: 2990;   
  display: flex; flex-direction: column; background: var(--media-bg); color: var(--on-media);
  touch-action: none; user-select: none; }
.stv-stage, .stc-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.stv-media { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.stv-caption { position: absolute; left: 16px; right: 16px; bottom: 140px; margin: 0; padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm); background: var(--media-scrim); color: var(--on-media); font-size: 15px; line-height: 1.4; text-align: center; }

.stv-top { position: relative; padding: calc(env(safe-area-inset-top) + 8px) 12px 16px;
  background: linear-gradient(to bottom, var(--media-scrim-soft), transparent); }
.stv-bars { display: flex; gap: 4px; }
.stv-bar { flex: 1; height: 2px; border-radius: 1px; background: color-mix(in srgb, var(--on-media) 35%, transparent); overflow: hidden; }
.stv-bar-fill { display: block; height: 100%; background: var(--on-media); }
.stv-head { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); }
.stv-av { width: 32px; height: 32px; border-radius: var(--radius-pill); object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.stv-name { font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stv-time { font-size: var(--fs-caption); color: color-mix(in srgb, var(--on-media) 70%, transparent); flex: none; }
.stv-icon { margin-left: auto; width: var(--tap-min); height: var(--tap-min); flex: none; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--on-media); cursor: pointer; padding: 0; }

.stv-bottom { position: relative; margin-top: auto; padding: 24px 12px calc(env(safe-area-inset-bottom) + 12px);
  background: linear-gradient(to top, var(--media-scrim), transparent); display: flex; flex-direction: column; gap: var(--space-2); }
.stv-reactions { display: flex; gap: var(--space-1); overflow-x: auto; scrollbar-width: none; }
.stv-reactions::-webkit-scrollbar { display: none; }
.stv-react { flex: none; width: var(--tap-min); height: var(--tap-min); border: 0; border-radius: var(--radius-pill); padding: 0;
  background: color-mix(in srgb, var(--on-media) 14%, transparent); font-size: 22px; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out); }
.stv-react.active { background: color-mix(in srgb, var(--on-media) 28%, transparent); transform: scale(1.12); }
.stv--still .stv-react { transition: none; }
.stv--still .stv-react.active { transform: none; }
.stv-reply { display: flex; align-items: center; gap: var(--space-2); }
.stv .stv-reply .stv-reply-input { flex: 1; min-width: 0; height: var(--tap-min); padding: 0 16px; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--on-media) 45%, transparent); background: transparent; color: var(--on-media);
  font: inherit; font-size: 16px; }
.stv .stv-reply-input::placeholder { color: var(--on-media-dim); }
.stv-reply .stv-icon { margin-left: 0; }
.stv-own { display: flex; align-items: center; }
.stv-chip { display: inline-flex; align-items: center; gap: 12px; height: var(--tap-min); padding: 0 var(--space-3);
  border: 0; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--on-media) 14%, transparent); color: var(--on-media);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.stv-chip-part { display: inline-flex; align-items: center; gap: var(--space-1); }


.stv-sheet-note { margin: 0 0 var(--space-3); color: var(--text-muted); font-size: 15px; }
.stv-viewers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stv-viewers li { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; }
.stv-viewers li + li { border-top: 1px solid var(--border); }
.stv-viewer-av { width: 40px; height: 40px; border-radius: var(--radius-pill); object-fit: cover; display: flex; align-items: center; justify-content: center; flex: none; }
.stv-viewer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 15px; }
.stv-viewer-react { font-size: 22px; flex: none; }
.stv-menu-item { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: var(--tap-min);
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
  font: inherit; font-size: 15px; cursor: pointer; }
.stv-danger, .stv-danger svg { color: var(--danger); }
.stv-confirm { display: flex; flex-direction: column; gap: var(--space-2); }


.stc-top { position: relative; z-index: 1; display: flex; align-items: center; padding: calc(env(safe-area-inset-top) + 4px) 8px 8px;
  background: linear-gradient(to bottom, var(--media-scrim-soft), transparent); }
.stc-top .stv-icon { margin-left: 0; }
.stc-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.stc .stc-stage .stc-caption { position: absolute; left: 16px; bottom: 200px; width: calc(100% - 32px); box-sizing: border-box; height: var(--tap-min); padding: 0 var(--space-3);
  border: 0; border-radius: var(--radius-sm); background: var(--media-scrim); color: var(--on-media); font: inherit; font-size: 16px; text-align: center; }
.stc .stc-caption::placeholder { color: var(--on-media-dim); }
.stc-bottom { position: relative; z-index: 1; margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  padding: 24px 16px calc(env(safe-area-inset-bottom) + 16px); background: linear-gradient(to top, var(--media-scrim), transparent); }
.stc-bottom .seg-group { background: var(--card); }
.stc-hint { margin: 0; font-size: var(--fs-caption); color: var(--on-media-dim); }
.stc-error { margin: 0; font-size: var(--fs-caption); color: var(--on-media); background: var(--media-scrim); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); text-align: center; }


.stc-bottom .btn--block { align-self: stretch; }


.stv-ref { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: min(260px, calc(100% - 64px));
  display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); text-align: left;
  border: 0; border-radius: var(--radius); background: var(--card); color: var(--text); box-shadow: var(--shadow-lg);
  font: inherit; cursor: pointer; }
.stv-ref--gone { cursor: default; text-align: center; color: var(--text-muted); font-size: var(--fs-caption); }
.stv-ref-head { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.stv-ref-head b { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stv-ref-av { width: 28px; height: 28px; flex: none; border-radius: var(--radius-pill); object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.stv-ref-av.person-av-ph { background: var(--bg-warm); color: var(--text-dim); font-weight: 700; }
.stv-ref-line { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stv-ref-kind { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-min); color: var(--text-muted); }

.stv-ref-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); pointer-events: none; }
.stv-ref-bg { position: absolute; inset: 0; background: linear-gradient(160deg, var(--pal-brand-400), var(--pal-aqua-400)); }
.stv-ref--gone b { color: var(--text); font-size: 15px; }
.stv-ref-gone-note { font-size: var(--fs-caption); }


.rx-glyph { width: 28px; height: 28px; object-fit: contain; display: block; }
.stv-react .rx-emoji { font-size: 24px; line-height: 1; }
.stv-burst { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.stv-burst-item { position: absolute; bottom: 120px; font-size: calc(36px * var(--s)); line-height: 1;
  animation: stvFly 1.4s var(--ease-out) both; }
.stv-burst-item .rx-glyph { width: calc(40px * var(--s)); height: calc(40px * var(--s)); }
@keyframes stvFly {
  0%   { transform: translateY(0) scale(.4); opacity: 0; }
  15%  { opacity: 1; transform: translateY(-40px) scale(1); }
  100% { transform: translateY(-55vh) translateX(10px) scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .stv-burst { display: none; } }



.dn-fab {
  position: fixed; left: 0; z-index: 4000;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6px + (var(--tab-panel-h) - 44px) / 2);
  width: 24px; height: 44px; border-radius: 0 12px 12px 0; border: none; cursor: pointer;
  background: var(--staff-bg); color: var(--staff-text); border-left: 3px solid var(--staff-accent);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); padding: 0;
}
.dn-fab svg { width: 16px; height: 16px; }

@media (min-width: 768px) and (min-height: 600px),
       (min-width: 640px) and (pointer: coarse) and (orientation: landscape) {
  .dn-fab { left: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; }
}
.dn-fab-badge {
  position: absolute; top: -9px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--badge-bg); color: var(--badge-text); font-size: var(--fs-min); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dn-panel {
  position: fixed; z-index: 4001; max-width: calc(100vw - 12px); min-width: 240px;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.dn-head {
  display: flex; align-items: center; gap: 6px; padding: 11px 10px; cursor: move;
  background: color-mix(in srgb, var(--staff-accent) 12%, transparent); border-bottom: 1px solid var(--border-light);
  user-select: none; touch-action: none;
}
.dn-resize {
  position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; cursor: nwse-resize;
  touch-action: none; z-index: 2;
  background: linear-gradient(135deg, transparent 50%, var(--text-muted) 50%, var(--text-muted) 60%, transparent 60%, transparent 72%, var(--text-muted) 72%, var(--text-muted) 82%, transparent 82%);
  opacity: .5; border-end-end-radius: 12px;
}
.dn-previews { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.dn-preview { position: relative; display: inline-block; }
.dn-preview img { height: 84px; width: auto; max-width: 100%; border-radius: 8px; border: 1px solid var(--border-light); display: block; object-fit: cover; }
.dn-preview-x { position: absolute; top: 4px; right: 4px; background: var(--sel-bg); border: none; color: var(--sel-text); border-radius: 50%; width: 20px; height: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.dn-uploading { font-size: var(--fs-min); color: var(--text-muted); margin-top: 5px; }
.dn-add-row { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.dn-attach { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--bg-warm); border: 1px solid var(--border-light); color: var(--text-dim); padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.dn-item-img { max-width: 100%; max-height: 110px; border-radius: 7px; border: 1px solid var(--border-light); margin-top: 6px; cursor: pointer; display: block; }

.dn-item-photos { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.dn-item-photo { height: 84px; width: auto; max-width: 100%; border-radius: 7px; border: 1px solid var(--border-light); cursor: pointer; object-fit: cover; }

a.dn-item-link { color: var(--link); text-decoration: underline; }
.dn-head b { font-size: 14px; color: var(--text); }
.dn-grip { color: var(--text-muted); flex-shrink: 0; }
.dn-head-counts { flex: 1; display: flex; gap: 6px; align-items: center; }
.dn-count { font-size: var(--fs-min); font-weight: 600; padding: 2px 9px; border-radius: 999px; cursor: pointer; background: var(--bg-warm); border: 1px solid var(--border-light); color: var(--text-dim); white-space: nowrap; }
.dn-count.on { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-text); }

.dn-filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 8px 2px; border-bottom: 1px solid var(--border-light); }
.dn-fchip { font-size: var(--fs-min); font-weight: 600; padding: 3px 9px; border-radius: 999px; cursor: pointer; background: var(--bg-warm); border: 1px solid var(--border-light); color: var(--text-dim); white-space: nowrap; }
.dn-fchip:hover { color: var(--text); }
.dn-fchip.on { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-text); }
.dn-fchip-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; margin-inline-start: 5px; padding: 0 5px; border-radius: 999px; font-size: var(--fs-min); font-weight: 700; background: var(--primary); color: var(--bg); }

.dn-fchip.dn-f-reopened .dn-fchip-count { background: var(--danger); color: var(--bg); }
.dn-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px; }
.dn-add { padding: 10px; border-bottom: 1px solid var(--border-light); }
.dn-add textarea {
  width: 100%; box-sizing: border-box; resize: none; overflow-y: auto; font: inherit; font-size: 13px;
  line-height: 1.35; min-height: 34px; max-height: 66px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-light);
  border-radius: 8px; padding: 7px 9px;
}
.dn-add-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 12px;
  background: var(--btn-bg); color: var(--btn-text); border: none; border-radius: 8px; font-weight: 600;
  font-size: 13px; cursor: pointer; white-space: nowrap;
}
.dn-add-btn:disabled { opacity: .6; }
.dn-add-page { font-size: var(--fs-min); color: var(--text-muted); margin-top: 5px; }

.dn-target-row { display: flex; gap: 6px; align-items: center; margin-top: 7px; }
.dn-asfeedback { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: var(--fs-min); color: var(--text-dim); cursor: pointer; user-select: none; }
.dn-asfeedback input { width: auto; flex: none; margin: 0; accent-color: var(--primary); cursor: pointer; }
.dn-asfeedback svg { color: var(--primary); flex-shrink: 0; }
.dn-target {
  flex: 1; min-width: 0; font: inherit; font-size: 12px; padding: 6px 8px; border-radius: 8px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-light); cursor: pointer;
}

.dn-picker { position: relative; flex: 1; min-width: 0; }
.dn-picker-input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 12px; padding: 6px 8px;
  border-radius: 8px; background: var(--bg); color: var(--text); border: 1px solid var(--border-light);
}
.dn-picker-input::placeholder { color: var(--text); opacity: .8; }
.dn-picker-list {
  z-index: 100; max-height: 240px; overflow-y: auto; background: var(--bg-warm);
  border: 1px solid var(--border-light); border-radius: 8px; box-shadow: var(--shadow-lg);
}
.dn-picker-opt {
  padding: 7px 9px; font-size: 12.5px; color: var(--text); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dn-picker-opt:hover { background: var(--sel-tint); }
.dn-picker-clear { color: var(--text-muted); }
.dn-picker-add { color: var(--text); font-weight: 600; }
.dn-picker-empty { padding: 8px 9px; font-size: 12px; color: var(--text-muted); }
.dn-autopush {
  display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; font-size: var(--fs-min); font-weight: 600;
  padding: 6px 8px; border-radius: 8px; cursor: pointer; font-family: inherit;
  background: var(--bg-warm); border: 1px solid var(--border-light); color: var(--text-dim);
}
.dn-autopush.on { background: color-mix(in srgb, var(--staff-accent) 16%, transparent); border-color: var(--staff-accent); color: var(--text); }
.dn-item-session { font-size: var(--fs-min); font-weight: 700; color: var(--text-dim); background: var(--bg-warm); padding: 1px 6px; border-radius: 7px; white-space: nowrap; flex-shrink: 0; }

.dn-item-assign { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.dn-assign-label { font-size: var(--fs-min); color: var(--text-muted); flex-shrink: 0; }
.dn-item-target {
  flex: 1; min-width: 0; font: inherit; font-size: var(--fs-min); padding: 4px 6px; border-radius: 7px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-light); cursor: pointer;
}
.dn-item-delivered { font-size: 12px; font-weight: 700; color: var(--success); flex-shrink: 0; }

.dn-reply-btn { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; font-size: var(--fs-min); font-weight: 600; padding: 5px 8px; border-radius: 7px; cursor: pointer; background: var(--bg-warm); border: 1px solid var(--border-light); color: var(--text-dim); font-family: inherit; }
.dn-noreply { margin-top: 7px; padding: 6px 9px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--warning) 12%, transparent); border: 1px solid var(--warning); }
.dn-reply-btn.on { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-text); }
.dn-reply { margin-top: 7px; padding: 8px; border-radius: 8px; background: var(--bg-warm); border: 1px solid var(--border-light); display: flex; flex-direction: column; gap: 7px; }
.dn-reply-text { width: 100%; box-sizing: border-box; resize: none; overflow-y: auto; font: inherit; font-size: 12.5px; line-height: 1.35; min-height: 32px; max-height: 66px; padding: 6px 8px; border-radius: 7px; background: var(--bg); color: var(--text); border: 1px solid var(--border-light); }
.dn-reply-coins { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.dn-reply-coins-lbl { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-min); color: var(--text-muted); }
.dn-coin-preset { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; cursor: pointer; background: var(--bg); border: 1px solid var(--border-light); color: var(--text); }
.dn-coin-preset:hover { border-color: var(--sel-line); color: var(--text); }
.dn-coin-total { font-size: 12.5px; font-weight: 700; color: var(--success); }
.dn-coin-reset { font-size: var(--fs-min); padding: 3px 8px; border-radius: 7px; cursor: pointer; background: none; border: 1px solid var(--border-light); color: var(--text-muted); }
.dn-reply-actions { display: flex; gap: 6px; align-items: center; }
.dn-reply-send { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 7px 10px; border-radius: 8px; cursor: pointer; background: var(--btn-bg); color: var(--btn-text); border: none; font-weight: 600; font-size: 12.5px; }
.dn-reply-send:disabled { opacity: .55; }
.dn-reply-cancel { font-size: 12px; padding: 6px 10px; border-radius: 8px; cursor: pointer; background: none; border: 1px solid var(--border-light); color: var(--text-muted); }

.dn-replied { margin-top: 7px; padding: 8px 10px; border-radius: 8px; background: var(--success-light); border: 1px solid var(--success); }
.dn-replied-head { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-min); font-weight: 700; color: var(--success); }
.dn-replied-coins { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 6px; padding: 1px 6px; border-radius: 10px; background: var(--success); color: var(--bg); }
.dn-replied-text { margin-top: 5px; font-size: 12px; color: var(--text); line-height: 1.4; white-space: pre-wrap; }

.dn-author-reply { margin-top: 7px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-warm); border: 1px solid var(--border); }
.dn-author-reply--new { border-color: var(--primary); background: var(--primary-bg); }
.dn-author-reply-head { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-min); font-weight: 700; color: var(--text-dim); }
.dn-author-reply--new .dn-author-reply-head { color: var(--primary); }
.dn-author-reply-badge { margin-inline-start: 6px; padding: 1px 6px; border-radius: var(--radius-sm); font-size: var(--fs-min); font-weight: 700; background: var(--primary); color: var(--bg); }
.dn-author-reply-text { margin-top: 5px; font-size: 12px; color: var(--text); line-height: 1.4; white-space: pre-wrap; }
.dn-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.dn-empty { color: var(--text-muted); font-size: 13px; text-align: center; padding: 16px 0; }
.dn-item { border: 1px solid var(--border-light); border-radius: 9px; padding: 8px 9px; background: var(--bg-warm); }
.dn-item-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.dn-badge { font-size: var(--fs-min); font-weight: 700; padding: 1px 7px; border-radius: 8px; text-transform: uppercase; letter-spacing: .3px; }
.dn-st-open .dn-badge, .dn-badge.dn-st-open { background: var(--bg-warm); color: var(--text-dim); }
.dn-st-fixed .dn-badge, .dn-badge.dn-st-fixed { background: var(--success-light); color: var(--success); }
.dn-st-done .dn-badge, .dn-badge.dn-st-done { background: var(--success-light); color: var(--success); }
.dn-st-reopened .dn-badge, .dn-badge.dn-st-reopened { background: var(--danger-light); color: var(--danger); }
.dn-st-progress .dn-badge, .dn-badge.dn-st-progress { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--text); }
.dn-st-rejected .dn-badge, .dn-badge.dn-st-rejected { background: var(--bg-warm); color: var(--text-muted); }
.dn-st-clarify .dn-badge, .dn-badge.dn-st-clarify { background: var(--sel-tint); color: var(--text); }
.dn-st-voting .dn-badge, .dn-badge.dn-st-voting { background: var(--bg-warm); color: var(--text-dim); }
.dn-vote-btn { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; font-size: var(--fs-min); font-weight: 600; padding: 5px 8px; border-radius: 7px; cursor: pointer; background: var(--bg-warm); border: 1px solid var(--border-light); color: var(--text-dim); font-family: inherit; }
.dn-vote-btn:hover { border-color: var(--primary); color: var(--primary); }
.dn-item-page { flex: 1; font-size: var(--fs-min); color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dn-item-date { font-size: var(--fs-min); color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

.dn-item-author { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 5px; text-decoration: none; width: fit-content; }
.dn-author-ava { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-warm); }
.dn-author-ava--ph { display: flex; align-items: center; justify-content: center; font-size: var(--fs-min); font-weight: 700; color: var(--primary); border: 1px solid var(--border); }
.dn-author-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.dn-item-author:hover .dn-author-name { color: var(--primary); text-decoration: underline; }
.dn-del { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 1px; }
.dn-copy { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 1px; display: inline-flex; align-items: center; }
.dn-copy:hover { color: var(--text); }
.dn-item-text { font-size: 13px; color: var(--text); line-height: 1.4; white-space: pre-wrap; }
.dn-item-comment { font-size: 12px; color: var(--danger); margin-top: 4px; }
.dn-item-actions { display: flex; gap: 6px; margin-top: 7px; }
.dn-item-actions button { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--border-light); cursor: pointer; font-family: inherit; }
.dn-act-done { background: var(--success-light); color: var(--success); border-color: var(--success) !important; }
.dn-act-reopen { background: var(--bg); color: var(--text-dim); }
.dn-lightbox { position: fixed; inset: 0; z-index: 4100; background: var(--scrim-top); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.dn-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }


.dn-sev { font-size: 13px; line-height: 1; }
.dn-qa-tag { background: var(--bg-warm); color: var(--text-dim); text-transform: none; letter-spacing: 0; }
.dn-qa { margin-top: 8px; }
.dn-qa-wait { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.dn-qa-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.dn-qa-actions button { flex: 1 1 0; min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 0 8px; border-radius: 10px; border: 1px solid var(--border-light); cursor: pointer; font-family: inherit; }
.dn-qa-actions button:disabled { opacity: .5; cursor: default; }
.dn-qa-actions button.on { border-color: var(--primary); color: var(--primary); }
.dn-qa-checked { font-size: 12px; color: var(--success); margin-top: 6px; }

.eq-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; flex-shrink: 0; pointer-events: none; }
.eq-bars i {
  display: block; width: 3px; height: 100%; border-radius: 1px; background: var(--text);
  transform-origin: bottom; animation: eq-bars 0.9s ease-in-out infinite;
}
.eq-bars i:nth-child(2) { animation-delay: 0.2s; }
.eq-bars i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq-bars { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .eq-bars i { animation: none; transform: scaleY(0.7); } }

.appbanner .appbanner-x { justify-content: center; min-width: var(--tap-min); min-height: var(--tap-min); margin-inline: -12px -6px; padding: 0; }
.appbanner .appbanner-btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap-min); min-width: var(--tap-min); padding-block: 0; }

.evc {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 12px 4px; padding: 6px 6px 6px 12px; min-height: 52px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.evc-ic { flex: none; color: var(--text-dim); }
.evc-text { flex: 1 1 0; min-width: 0; font-size: var(--fs-body); line-height: 1.3; color: var(--text); }
.evc-send { flex: none; min-height: 40px; white-space: nowrap; }
.evc-close {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 10px; color: var(--text-muted); cursor: pointer;
}
.evc-close:active { background: var(--bg-warm); }

@media (max-width: 400px) {
  .evc { gap: 8px; }
  .evc-ic { display: none; }
}



:root {
  
  --map-pill-left: 26px;
  --map-pill-right: 26px;
  
  --build: 3200;
  --primary:        #7fa17a;
  --primary-dark:   #6b8d68;
  --primary-light:  rgba(127,161,122,0.15);
  --primary-bg:     rgba(127,161,122,0.10);
  --accent:         #7fa17a;
  --accent-dark:    #6b8d68;
  --accent-light:   rgba(127,161,122,0.15);

  
  --bg:             #1a1f1c;
  --bg-warm:        #1f2522;
  --card:           #242b27;

  
  --text:           #e8e2d4;
  --text-dim:       #b8b0a3;
  --text-muted:     #8a837a;

  
  --border:         #353c37;
  --border-light:   #2b322e;

  
  --bg-input:       #1c2c2a;
  --bg-skeleton:    #1e2e2b;
  --bg-header:      rgba(18,26,23,0.97);
  --bg-tabbar:      rgba(10,15,12,0.98);
  --bg-tabbar-float: rgba(14,20,17,0.42);
  --scrim-tab: rgba(8,12,10,0.72);
  --scrim-top: rgba(8,12,10,0.88);

  
  --orange:         #c9a876;
  --orange-light:   rgba(201,168,118,0.15);
  --danger:         #c57a7a;
  --danger-light:   rgba(197,122,122,0.15);
  --success:        #7fa17a;
  --success-light:  rgba(127,161,122,0.15);
  --warning:        #c9a876;

  
  
  --brand-tg:       #29A0D9;
  --brand-tg-dark:  #2490c5;
  --brand-max:      #2C6BED;
  --brand-max-dark: #2559cc;
  --brand-vk:       #0077ff;
  --brand-fg:       #ffffff;   
  
  --medal-gold:     #f5c542;
  --medal-silver:   #c9c9c9;
  --medal-bronze:   #cd7f32;
  
  --badge-bg:       #E2DBCB;
  --badge-rim:      #BFB6A3;
  --radius:         12px;
  --radius-sm:      10px;
  --radius-xs:      6px;
  --radius-lg:      16px;   
  --radius-xl:      18px;   
  --radius-pill:    999px;

  
  --game-aqua:      #4a9fc4;  --game-aqua-bg:     rgba(74,159,196,.12);
  --game-arena:     #5b9bd5;  --game-arena-bg:    rgba(91,155,213,.12);
  --game-duel:      #8b8fd4;  --game-duel-bg:     rgba(139,143,212,.12);
  --game-chaos:     #c4934a;  --game-chaos-bg:    rgba(196,147,74,.12);
  --game-bloody:    #c0605a;  --game-bloody-bg:   rgba(192,96,90,.12);
  --game-wardrobe:  #a890d0;  --game-wardrobe-bg: rgba(168,144,208,.12);
  --game-caps:      var(--warning);  --game-caps-bg: rgba(201,168,118,.12);
  --game-room:      var(--primary);  --game-room-bg: var(--primary-bg);
  
  
  --ch:             var(--primary);
  --coin:           var(--warning);  --coin-bg:      rgba(201,168,118,.14);

  
  --card-padding:   8px;

  
  
  --miniplayer-h:        0px;
  --tab-height:          calc(56px + var(--miniplayer-h));   
  --tab-panel-h:         50px;
  
  --nav-inset:           26px;   
  --nav-pad:              6px;   
  --nav-track:           32px;   
  --nav-c1:              calc(var(--nav-track) + (100vw - 2 * var(--nav-track)) / 10);
  --header-height:       56px;
  --desktop-header-h:    64px;  
  --bottom-nav-height:   calc(64px + var(--miniplayer-h));
  --feed-tile-h:     64px;   
  --city-kb-offset:   0px;   
  --hdr-search-h:   58px;   
  
  --safe-top: env(safe-area-inset-top, 0px);

  
  --shadow-xs:  0 1px 2px rgba(44,40,37,0.04);
  --shadow:     0 2px 6px rgba(44,40,37,0.06);
  --shadow-md:  0 4px 12px rgba(44,40,37,0.08);
  --shadow-lg:  0 6px 20px rgba(44,40,37,0.12);

  
  --transition: 0.15s ease;

  
  --sidebar-bg:         #f9f8f5;
  --sidebar-text:       #4a4541;
  --sidebar-text-hover: #2c2825;
  --sidebar-active:     #3d9b8f;
  --sidebar-border:     #e4e0db;
  --sidebar-surface:    #f4f2ee;

  
  --z-base:       1;
  --z-sticky:     10;
  --z-dropdown:   300;
  --z-header:     500;
  --z-avatar:     600;
  --z-modal:      600;
  --z-sheet:      602;
  --z-overlay:    700;
  --z-toast:      4000;
  --z-lightbox:   9999;
  --z-topmost:    10000;

  

  
  --btn-bg:            var(--primary);     
  --btn-bg-hover:      var(--primary-dark);
  --btn-text:          var(--bg);          
  --btn-radius:        var(--radius-xs);   
  --btn-radius-sm:     var(--radius-xs);
  --btn-shadow:        none;               
  --btn-shadow-hover:  none;
  --btn-h:             44px;               
  --btn-h-md:          36px;               
  --btn-h-sm:          32px;               
  --btn-pad:           0 20px;             
  --btn-pad-sm:        0 14px;
  --btn-font:          13.5px;             
  --btn-font-sm:       12px;
  --btn-weight:        700;
  
  --btn-sec-bg:        var(--card);
  --btn-sec-border:    var(--border);
  --btn-sec-text:      var(--primary);
  
  --btn-danger-bg:     var(--danger);
  --btn-danger-text:   #1a1f1c;

  
  --input-bg:           var(--bg-warm);
  --input-bg-focus:     var(--card);
  --input-border:       var(--border);
  --input-border-focus: var(--primary);
  --input-text:         var(--text);
  --input-placeholder:  var(--text-muted);
  --input-radius:       var(--radius-sm);  
  --input-h:            44px;
  --input-pad:          12px 14px;
  --input-font:         15px;
  --input-border-w:     1.5px;

  
  
  --chip-bg:          var(--card);
  --chip-border:      var(--border);
  --chip-text:        var(--text-muted);
  --chip-bg-active:   var(--primary);
  --chip-text-active: var(--bg);        
  --chip-border-active: var(--primary);
  --chip-radius:      20px;

  
  --tab-bg:           transparent;
  --tab-border:       var(--border);
  --tab-text:         var(--text-muted);
  --tab-bg-active:    var(--primary);
  --tab-text-active:  var(--bg);         
  --tab-radius:       var(--radius-xs);

  
  --toggle-accent:    var(--primary);

  
  
  --action-btn-size:   44px;
  --action-btn-radius: 8px;

  --back-bg:          var(--card);
  --back-border:      var(--border);      
  --back-text:        var(--text);        
  --back-size:        var(--action-btn-size);
  --back-radius:      var(--action-btn-radius);
  --back-icon:        20px;
  --back-icon-stroke: 2.4;               

  
  --fab-bg:           var(--primary);
  --fab-bg-hover:     var(--primary-dark);
  --fab-text:         var(--bg);          
  --fab-size:         var(--action-btn-size);   
  --fab-radius:       var(--action-btn-radius);
  --fab-icon:         24px;
  --fab-shadow:       0 4px 18px rgba(74,130,78,0.40);

  
  --icon-btn-size:    36px;
  --icon-btn-radius:  var(--radius-sm);

  
  --menu-bg:            var(--card);
  --menu-border:        var(--border-light);
  --menu-radius:        12px;
  --menu-shadow:        0 10px 30px rgba(0,0,0,0.32);
  --menu-item-pad:      11px 14px;
  --menu-item-hover:    var(--bg-warm);
  --menu-item-active-bg:   var(--primary);   
  --menu-item-active-text: var(--bg);        
}


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: none;
}


body {
  
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 15px;
}

html, body {
  overscroll-behavior: none;
}

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--link-hover); }



.app-layout { min-height: 100dvh; display: flex; flex-direction: column; }


.app-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  
  min-height: var(--header-height);
  
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  padding-top: var(--safe-top);
}

.app-header--tools { background: var(--bg); }

.app-layout { padding-top: calc(var(--header-height) + var(--safe-top)); }

.app-layout--home {
  
  padding-top: var(--safe-top);
  
  --header-height: 48px;
}

.feed-page > .feed-banners { display: contents; }
.home-tiles-slot { padding-top: var(--safe-top); padding-bottom: 6px; }
.home-tiles-slot:empty {
  
  padding-bottom: 0;
}

.home-tiles-slot .feed-tiles--carousel { padding-inline: 12px; }
.app-layout--home .app-header {
  
  position: sticky; top: var(--safe-top);
  padding-top: 0;
  
  background: transparent;
  border-bottom: none;
}

.home-scrim {
  position: fixed; left: 0; right: 0; top: 0;
  height: calc(var(--safe-top) + var(--header-height) + 26px);
  z-index: 499;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  
  background: linear-gradient(to bottom, var(--bg) 0, var(--bg) calc(100% - 26px), transparent 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent 100%);
  transform: translateZ(0);
}
.home-scrim.is-on { opacity: 1; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .app-layout--home .app-header.header-scrolled { background: var(--bg); }
}

.app-layout--search { padding-top: calc(var(--header-height) + var(--safe-top) + var(--hdr-search-h)); }
.app-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  height: var(--header-height);
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 768px) {
  
  :root {
    --header-height: 50px;
    --safe-top: max(0px, calc(env(safe-area-inset-top, 0px) - 6px));
    
    --hdr-btn-left: clamp(36px, 10vw, 44px);
    --hdr-btn-right: clamp(44px, 12.5vw, 52px);
    
    --hdr-gap: calc((100vw - 24px - 4 * var(--hdr-btn-left) - 3 * var(--hdr-btn-right)) / 6);
  }
  .app-header { border-bottom: none; box-shadow: none; }
  
  .app-header-inner { gap: 8px; padding: 0 12px; }
  .app-header-inner .app-logo img { height: 36px !important; }
  .app-header-right { margin-inline-start: 0 !important; gap: 4px !important; }
  
  .app-header-right .icon-btn {
    width: 40px !important; height: 40px !important;
    padding: 0 !important;
    border-radius: 11px !important;
    background: var(--primary-bg) !important;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent) !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
  }
  .app-header-right .icon-btn:active { background: color-mix(in srgb, var(--primary) 22%, transparent) !important; }
}

.app-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 900; color: var(--text);
  letter-spacing: -0.5px; text-decoration: none;
}
.app-logo svg { color: var(--primary); }
.app-logo-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-logo-img { height: 44px; width: auto; display: block; }
.header-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.header-logo-name { font-weight: 800; font-size: 16.5px; color: var(--primary); letter-spacing: 1.5px; }
.header-logo-tagline { font-weight: 500; font-size: 12px; color: #847c73; letter-spacing: 0.5px; }
.app-header-right { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }


.header-feed-filter-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 300;
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  min-width: 148px;
}
.header-feed-filter-item {
  display: block; width: 100%;
  padding: 11px 16px; text-align: start;
  font-size: 13.5px; font-weight: 400; font-family: inherit;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.header-feed-filter-item + .header-feed-filter-item {
  border-top: 1px solid rgba(255,255,255,0.04);
}
.header-feed-filter-item:active { background: var(--primary-bg); }
.header-feed-filter-item.active { color: var(--text); font-weight: 600; }


.app-main {
  flex: 1;
  padding-bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px));
  padding-inline-start: env(safe-area-inset-left, 0px);
  padding-inline-end: env(safe-area-inset-right, 0px);
  overflow-y: auto;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-inline-start: 12px;
  padding-inline-end: 12px;
}


.tab-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px));
  background: var(--bg-tabbar);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center;
  z-index: 400;
  padding: 0 10px env(safe-area-inset-bottom, 0px);
  gap: 4px;
  
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}


.tab-bar--float {
  left: var(--nav-inset); right: var(--nav-inset);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 6px);
  height: var(--tab-panel-h);
  padding: 0 var(--nav-pad);
  border-radius: var(--radius);
  
  border: 1px solid var(--border-light);
  background: var(--bg-tabbar-float);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: var(--shadow-md);
}

.tab-bar--float .tab-item.active { background: none; }
.tab-bar--float .tab-item { position: relative; z-index: 1; }

.tab-bar--float .tab-item svg {
  width: 26px; height: 26px; stroke-width: 1.75;
  flex: 0 0 auto;
}
.tab-bar--float .tab-item { gap: 2px; height: 100%; min-width: 0; padding: 3px 1px; }   

.tab-scrim {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px) + 28px);
  z-index: 399;
  pointer-events: none;
  background: linear-gradient(to top, var(--scrim-tab), transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to top, #000 42%, transparent 100%);
  mask-image: linear-gradient(to top, #000 42%, transparent 100%);
  transform: translateZ(0);
  transition: opacity 0.2s ease;
}

body:has(.clips-page) .tab-scrim,
body.clips-fullscreen .tab-scrim { opacity: 0; }

.tab-bar--float .tab-item > span:not(.tab-icon) {
  display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--fs-min); font-weight: 500; line-height: 1.25; letter-spacing: 0;
}

html.tab-labels-tight .tab-bar--float .tab-item > span:not(.tab-icon) { visibility: hidden; height: 0; }

.tab-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; gap: 5px;
  text-decoration: none; font-weight: 400;
  position: relative;
  border-radius: var(--radius);
  padding: 7px 4px 6px;
  height: calc(var(--tab-height) - 8px);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease, background 0.18s ease;
  letter-spacing: 0.01em;
}
.tab-item.active {
  color: var(--primary);
  font-weight: 600; font-size: 12px;
  background: var(--primary-bg);
}
.tab-item.active::before { display: none; }
.tab-item.active::after  { display: none; }

.tab-item svg {
  width: 24px; height: 24px; stroke-width: 1.6;
  flex-shrink: 0;
  transition: color 0.18s ease;
}
.tab-item span { line-height: 1; }


.tab-item--play {
  color: rgba(255,200,80,0.55);
}
.tab-item--play.active {
  color: #ffc84a;
  background: rgba(255,200,80,0.12);
}
.tab-play-icon {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 22%, transparent), color-mix(in srgb, var(--primary) 10%, transparent));
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  transition: background 0.18s, border-color 0.18s;
  flex-shrink: 0;
}
.tab-item--play.active .tab-play-icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 34%, transparent), color-mix(in srgb, var(--primary) 18%, transparent));
  border-color: color-mix(in srgb, var(--primary) 55%, transparent);
}
.tab-badge--play { top: -5px; right: -6px; }

@keyframes battle-urgent-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); background: rgba(239,68,68,0.1); }
  50%       { box-shadow: 0 0 8px 3px rgba(239,68,68,0.6); background: rgba(239,68,68,0.25); }
}
.tab-item--urgent .tab-play-icon {
  animation: battle-urgent-pulse 0.6s ease-in-out infinite;
  border-color: rgba(239,68,68,0.7) !important;
}
.tab-item--urgent span:last-child { color: var(--danger) !important; }


.tab-icon {
  position: relative;
  width: 28px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tab-badge {
  position: absolute; top: -4px; right: -8px;
  min-width: 15px; height: 15px;
  background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 700;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
  border: 1.5px solid rgba(10,15,12,0.98);
}



.badge {
  position: absolute; top: -6px; right: -8px;
  background: #ff3b30; color: #fff;
  font-size: 10px; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; font-weight: 700; line-height: 1;
  border: 2px solid var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.28);
  letter-spacing: 0; font-variant-numeric: tabular-nums;
}


.tab-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 32px;
}
.tab-nav-badge {
  position: absolute;
  top: -3px; right: -4px;
  min-width: 17px; height: 17px;
  background: var(--danger);
  color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid rgba(10,15,13,0.97);
  pointer-events: none;
  letter-spacing: -0.3px;
}


.page { padding: 0 0 24px; overflow-x: clip; }

@media (min-width: 768px) { .page { overflow: visible; } }


.feed-page {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-header {
  display: flex; align-items: center; gap: 8px;
  padding: 0 0 8px;
  min-height: 36px;
}
.page-header h1 {
  font-size: 17px; font-weight: 700; flex: 1;
  letter-spacing: -0.2px; color: var(--text);
  margin: 0;
}
.page-header .icon-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs); color: var(--text-muted);
}
.page-header .icon-btn:hover { background: var(--bg-warm); color: var(--text); }
.header-actions { display: flex; gap: 4px; }


@media (min-width: 768px) {
  .page { max-width: none; margin: 0; padding: 0 0 24px; }
  
}

.page-subtitle { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }

.back-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); color: var(--text);
  box-shadow: var(--shadow-xs); transition: all var(--transition);
  text-decoration: none;
}
.back-btn:hover { box-shadow: var(--shadow); }


.global-back-bar { padding: 8px 0 2px 4px; }
.page-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--back-size); height: var(--back-size); flex-shrink: 0;
  border-radius: var(--back-radius); cursor: pointer;
  background: var(--back-bg); color: var(--back-text);
  border: 1px solid var(--back-border);
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.page-back-btn:hover { background: var(--bg-warm); }
.page-back-btn:active { transform: scale(0.92); background: var(--bg-warm); }

.page-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.page-head h1, .page-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.page-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.page-header-left h1, .page-header-left h2 { margin: 0; }



@media (max-width: 767px) {
  .page-hdr,
  .page-header { display: none !important; }
}
.page-hdr {
  display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 10px 0;
  
  position: sticky; top: var(--desktop-header-h); z-index: 20;
  margin-top: -12px;
  background: var(--bg);
}
.page-hdr-back, .hdr-action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--back-size); height: var(--back-size); flex-shrink: 0;
  border-radius: var(--back-radius); cursor: pointer;
  background: var(--back-bg); color: var(--back-text);
  border: 1px solid var(--back-border);
  transition: background 0.13s, color 0.13s, border-color 0.13s;
  -webkit-tap-highlight-color: transparent;
}

.page-hdr-back:hover, .hdr-action-btn:hover { background: var(--bg-warm); }
.hdr-action-btn--active { background: var(--primary-bg); border-color: var(--sel-line); color: var(--text); }
.page-hdr-back:active { background: var(--border); }

.app-header--more .app-header-inner { padding-inline-end: 12px; }

.app-header--glass {
  border-bottom: none;
  box-shadow: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .app-header--glass { background: var(--bg) !important; }
}

.more-search-toggle { margin-inline-start: auto; position: relative; z-index: 502; }
.page-hdr-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 18px; font-weight: 700; color: var(--text);
  margin: 0; line-height: 1; flex: 1; min-width: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.page-hdr-title svg { flex-shrink: 0; }
.page-hdr-right { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }

.page-hdr-create {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--back-size); padding: 0 14px; flex-shrink: 0;
  background: var(--primary); color: var(--bg);
  border: none; border-radius: var(--action-btn-radius);
  font-size: 13.5px; font-weight: 700; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.page-hdr-create:hover { background: var(--primary-dark); color: var(--bg); }
.page-hdr-create:active { transform: scale(0.97); }
.page-hdr-create svg { flex-shrink: 0; }
.page-hdr-create:disabled { opacity: 0.45; cursor: default; transform: none; }

.page-hdr-book {
  display: inline-flex; align-items: center; gap: 6px;
  height: var(--back-size); padding: 0 13px; flex-shrink: 0;
  background: var(--primary); color: var(--bg);
  border: none; border-radius: var(--action-btn-radius);
  font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: background .15s, transform .1s; -webkit-tap-highlight-color: transparent;
}
.page-hdr-book:active { transform: scale(0.97); }
.page-hdr-book svg { flex-shrink: 0; }



.hdr-tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.app-header--tools .app-header-inner { padding-inline-end: 12px; }
.header-inner-page--tools .header-page-title {
  position: static; left: auto; right: auto; top: auto;
  height: auto; max-width: none; padding: 0;
  display: flex !important; align-items: center; justify-content: center;
  text-align: center; flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.header-page-title.header-page-title--rich {
  justify-content: flex-start; text-align: start;
  gap: 8px; white-space: normal; overflow: visible;
  pointer-events: auto; padding: 0;
  
  background: none; border: none; border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.header-page-title--rich .hpt-avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; background: var(--card);
}
.header-page-title--rich .hpt-avatar--square {
  border-radius: 7px; object-fit: contain; background: #fff; padding: 1px;
}
.header-page-title--rich .hpt-textcol {
  display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; line-height: 1.12;
}
.header-page-title--rich .hpt-main {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 16px; font-weight: 800; color: var(--text);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.header-page-title--rich .hpt-main > svg { flex-shrink: 0; color: var(--text-muted); }
.header-page-title--rich .hpt-sub {
  font-size: 12px; font-weight: 500; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

.app-header .page-hdr-search--inline { flex: 1; min-width: 0; margin: 0; height: var(--action-btn-size); }

.page-hdr-search {
  display: flex; align-items: center; gap: 8px;
  height: var(--action-btn-size); padding: 0 12px; margin: 4px 0 10px;
  
  background: transparent;
  border: var(--input-border-w) solid var(--input-border);
  border-radius: var(--input-radius);
}
.page-hdr-search > svg { flex-shrink: 0; color: var(--text-muted); }
.page-hdr-search input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-size: 14px; color: var(--input-text);
}
.page-hdr-search input::placeholder { color: var(--text-muted); }
.page-hdr-search-clear {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: none; border-radius: var(--action-btn-radius);
  background: var(--bg-warm); color: var(--text-muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}


.wip-page { padding: 12px 0 80px; }
.wip-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); padding: 28px 20px; text-align: center;
  max-width: 480px; margin: 8px auto 0;
}
.wip-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary);
}
.wip-badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: #d97706; background: rgba(217,119,6,0.13);
  padding: 4px 12px; border-radius: var(--radius); margin-bottom: 12px;
}
.wip-card h2 { font-size: 18px; margin: 0 0 10px; color: var(--text); }
.wip-card p { font-size: 14px; line-height: 1.55; color: var(--text-dim); margin: 0 auto 14px; max-width: 380px; }
.wip-features {
  display: flex; flex-direction: column; gap: 8px; text-align: start;
  max-width: 320px; margin: 0 auto 14px;
}
.wip-feature {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--text); font-weight: 500;
}
.wip-feature svg { color: var(--primary); flex-shrink: 0; }
.wip-note { font-size: 13px !important; color: var(--text-muted) !important; }




.market-my-shop, .market-open-shop {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 11px 14px; margin-bottom: 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  border: 1px solid var(--border-light); background: var(--card); color: var(--text);
  font-family: inherit;
}
.market-open-shop { border-style: dashed; color: var(--primary); justify-content: center; }
.market-my-shop svg, .market-open-shop svg { color: var(--primary); flex-shrink: 0; }

.shops-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }


















































.community-page { padding: 0 0 90px; max-width: none; margin: 0; }









.clev-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--primary) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-radius: var(--radius-lg);
  padding: 12px 14px; margin-bottom: 0;
}
.clev-head { display: flex; align-items: center; gap: 12px; }
.clev-emoji { font-size: 30px; flex-shrink: 0; }
.clev-tier { font-size: 15px; font-weight: 800; color: var(--text); }
.clev-pts { font-size: 13px; color: var(--text-dim); margin-top: 1px; }
.clev-next { font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.clev-next code { background: color-mix(in srgb, var(--primary) 18%, transparent); padding: 1px 6px; border-radius: var(--radius-xs); color: var(--primary); }
.clev-join-btn {
  display: block; text-align: center; margin-top: 12px;
  padding: 10px; border-radius: var(--btn-radius); font-weight: var(--btn-weight); font-size: 14px;
  background: var(--btn-bg); color: var(--btn-text); text-decoration: none;
  transition: background 0.15s;
}


















































@media (min-width: 700px) {
  .cm-features { grid-template-columns: 1fr 1fr 1fr; }
}



.cm2-cats {
  display: flex;
  gap: 6px;
  padding: 8px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cm2-cats::-webkit-scrollbar { display: none; }



.fb-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin: 2px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fb-form-textarea {
  width: 100%;
  min-height: 90px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--input-radius);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}
.fb-form-textarea:focus { outline: none; border-color: var(--primary); }
.fb-form-textarea::placeholder { color: var(--text-muted); }

.net-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 8px 16px; padding: 0 12px;
  border-radius: var(--radius); background: var(--bg-warm); color: var(--text-dim); font-size: var(--fs-caption); }
.net-bar__main { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: var(--tap-min);
  padding: 0; border: none; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.net-bar__main svg { flex: none; color: var(--text-muted); }
.net-bar__main span { min-width: 0; }
.net-bar__main--static { cursor: default; }
.net-bar__retry { flex: none; min-height: var(--tap-min); padding: 0 4px; border: none; background: none; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.net-bar__more { flex: 1 0 100%; margin: 0; padding: 0 0 10px 24px; color: var(--text-muted); line-height: 1.4; }

.fb-form-preview { position: relative; display: inline-block; }
.fb-form-img { max-height: 140px; border-radius: 8px; display: block; }
.fb-form-previews { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.fb-form-previews .fb-form-preview { width: 74px; height: 74px; }
.fb-form-previews .fb-form-img { width: 100%; height: 100%; object-fit: cover; max-height: none; }

.avatar-photo-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.avatar-photo-lb img { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); object-fit: contain; }
.fb-form-remove-photo {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,0.6); border: none; border-radius: 50%;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; padding: 0;
}
.fb-form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fb-form-submit {
  margin-inline-start: auto;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px;
  background: var(--primary); color: var(--btn-text);
  border: none; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.fb-form-submit:disabled { opacity: 0.55; cursor: default; }
.fb-spin { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.fb-form--sent {
  min-height: 80px;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 10px;
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
}
.fb-form-ok-icon { color: var(--primary); }
.fb-form-ok-text { font-size: 14px; font-weight: 600; color: var(--text); }

.cm2-feed { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.cm2-empty { padding: 32px 16px; text-align: center; color: var(--text-muted); font-size: 13.5px; }


.fbpost {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}


















































.reward-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-end;
  padding: 0;
}
.reward-popover {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reward-popover-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}
.reward-popover-sub { font-size: 13px; color: var(--text-muted); margin-top: -6px; }
.reward-popover-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reward-amt-btn {
  flex: 1;
  min-width: 60px;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg-warm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.reward-amt-btn--active {
  border-color: var(--sel-line);
  background: rgba(16,185,129,0.12);
  color: var(--text);
}
.reward-popover-actions { display: flex; gap: 10px; }
.reward-cancel-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.reward-confirm-btn {
  flex: 2;
  padding: 12px;
  border-radius: var(--radius);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.reward-confirm-btn:disabled { opacity: 0.6; }





.community-page { padding: 0 0 90px; max-width: none; margin: 0; }

.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary); text-decoration: none; font-size: 14px;
  margin-bottom: 12px; font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

.icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); padding: 8px;
  border-radius: 50%; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
@media (hover: hover) { .icon-btn:hover { background: var(--bg); } }

:where(.icon-btn) { position: relative; }
.icon-btn:not(.set-sw, .mtp-sw, .post-menu)::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: max(100%, var(--tap-min)); height: max(100%, var(--tap-min));
  transform: translate(-50%, -50%);
}
.icon-btn:active { background: transparent; }

.icon-btn--create { color: var(--primary); font-weight: 700; }
.icon-btn--create:hover { color: var(--primary); }


.header-icons5 {
  
  
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 0;
  align-items: center; justify-items: center;
  flex: 1; min-width: 0; width: 100%;
  padding-inline: calc(var(--nav-track) - 12px);
}

.header-icons5.header-icons5--guest > .hdr5-login { grid-column: 4 / 6; justify-self: center; }
.hdr5-login {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 15px;
  border-radius: var(--radius-pill);
  background: var(--primary); color: var(--btn-text);
  font-size: 14px; font-weight: 800; letter-spacing: 0.2px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.16);
  -webkit-tap-highlight-color: transparent;
}
.hdr5-login:hover, .hdr5-login:focus-visible { color: var(--btn-text); filter: brightness(1.06); }
.hdr5-login:active { filter: brightness(0.94); transform: translateY(1px); }
.header-icons5 .hdr5-btn {
  width: 44px; height: 44px; flex-shrink: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  color: var(--text-dim); border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .header-icons5 .hdr5-btn:hover { background: var(--bg-warm); color: var(--text); } }
.header-icons5 .hdr5-btn:active { background: var(--bg-warm); }
.header-icons5 .hdr5-btn svg { width: 26px; height: 26px; }   
.header-icons5 .hdr5-profile { width: 44px; height: 44px; }
.hdr5-ava {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.hdr5-ava--ph { background: var(--bg-warm); color: var(--text-dim); border-color: var(--border); }


.inline-search-city {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
  background: var(--bg-warm); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 6px 10px; max-width: 130px;
  color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer;
}
.inline-search-city svg { color: var(--primary); flex-shrink: 0; }
.inline-search-city span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-pro { color: #d97706; }
.icon-pro:hover { background: rgba(217,119,6,0.12); }


.btn-close {
  width: 32px; height: 32px; min-width: 32px;
  border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg-warm); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.btn-close:hover { background: var(--bg); color: var(--text); }
.btn-close:active { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }

.icon-btn-sm {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--text-muted); border-radius: var(--radius-xs); transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.icon-btn-sm:hover { background: var(--danger-light); color: var(--danger); }
.icon-btn.danger, .icon-btn-sm.danger { color: var(--danger); }



.lang-pill { flex-shrink: 0; padding-inline: var(--space-3); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 9999; min-width: 140px; overflow: hidden;
}
.lang-menu-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 9px 14px; border: none; background: none;
  color: var(--text); font-size: 13px; cursor: pointer; text-align: start;
  transition: background .12s;
}
.lang-menu-item:hover { background: var(--bg); }
.lang-menu-item.active { color: var(--text); font-weight: 600; }
@media (min-width: 768px) {
  .lang-btn-wrap--mobile { display: none; }
}

.btn-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border-light);
  cursor: pointer; color: var(--text); transition: background var(--transition);
}
.btn-icon:hover { background: var(--border-light); }

.section-title {
  font-size: 18px; font-weight: 700; color: var(--text);
  margin: 20px 0 12px; letter-spacing: -0.3px;
}


.auth-page {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 24px
           calc(24px + env(safe-area-inset-bottom, 0px));
  
  background: var(--bg) center / cover no-repeat;
  position: relative; overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(16, 20, 18, 0.10) 0%,
    rgba(16, 20, 18, 0.18) 35%,
    rgba(16, 20, 18, 0.42) 72%,
    rgba(16, 20, 18, 0.70) 100%
  );
  pointer-events: none;
}

.auth-card {
  
  background: rgba(24, 30, 27, 0.52) !important;
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  color: var(--text) !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 22px 18px 18px; width: 100%; max-width: 360px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.07) inset;
  position: relative; z-index: 1;
}

.auth-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  padding: 0; margin: -8px 0 18px; transition: color .15s;
}
.auth-back:hover { color: var(--primary); }
.auth-back svg { flex-shrink: 0; }

.auth-logo { text-align: center; margin-bottom: 14px; position: relative; }

.auth-logo::before {
  content: ''; position: absolute; left: 50%; top: 34px;
  width: 190px; height: 190px; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 16%, transparent) 0%, transparent 68%);
}
.auth-logo svg { color: var(--primary); }
.auth-logo h1 {
  font-size: 22px; margin-top: 8px; font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: var(--primary) !important;
}
.auth-card h1 {
  background: none !important;
  -webkit-text-fill-color: var(--primary) !important;
  color: var(--primary) !important;
}
.auth-card .auth-logo svg { color: var(--primary) !important; }

.auth-card form { display: flex; flex-direction: column; gap: 10px; }
.auth-link { text-align: center; margin-top: 18px; color: var(--text-muted); font-size: 13px; }
.auth-link a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }

.auth-card input, .auth-card select, .auth-card textarea {
  background: var(--bg-warm) !important; color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-xs) !important;
  padding: 11px 14px !important;
  font-size: 16px !important;
  height: 44px;
  font-family: inherit;
}
.auth-card input:focus, .auth-card select:focus {
  
  background: var(--bg-warm) !important;
  border-color: var(--primary) !important;
  box-shadow: none !important;
  outline: none;
}
.auth-card input::placeholder { color: var(--text-muted) !important; }
.auth-card .btn-primary {
  background: var(--primary) !important;
  color: var(--bg) !important;
  font-weight: 700;
  height: 44px;
  border-radius: var(--radius-xs) !important;
  border: none;
  cursor: pointer;
  box-shadow: none !important;
  transition: background 0.15s;
}
.auth-card .btn-primary:hover { background: var(--primary-dark) !important; }
.auth-card .btn-primary:disabled { opacity: 0.6; cursor: wait; }


.oauth-section { margin-top: 20px; }
.oauth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px;
  color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 600;
}
.oauth-divider::before,
.oauth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.oauth-buttons {
  display: flex; flex-direction: column; gap: 8px;
}


.oauth-btn {
  
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  width: 100%; height: 44px; padding: 0 16px;
  border-radius: var(--radius-xs);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.oauth-btn:hover {
  background: var(--bg-warm);
  border-color: var(--primary);
  color: var(--text);
}
.oauth-btn-icon {
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}


.oauth-heading {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.oauth-btn .chev { margin-left: auto; }


.oauth-tg-wrap {
  width: 100%; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs);
  background: #229ED9; cursor: pointer;
  transition: filter 0.15s;
}
.oauth-tg-wrap:hover { filter: brightness(1.08); }
.oauth-tg-wrap iframe { display: block; }


.oauth-google-wrap {
  width: 100%;
  display: flex; justify-content: center;
}
.oauth-google-wrap > div {
  width: 100% !important;
}
.oauth-google-wrap iframe {
  width: 100% !important;
  margin: 0 !important;
}


.auth-subtitle {
  text-align: center; color: var(--text-muted);
  font-size: 13px; margin-top: 4px;
}
.auth-error {
  background: var(--danger-light); color: var(--danger);
  border: 1px solid var(--danger); border-radius: var(--radius-xs);
  padding: 10px 12px; font-size: 13px; text-align: center;
  margin-bottom: 12px;
}
.oauth-tg-divider {
  display: flex; justify-content: center; margin-top: 2px;
}

.oauth-btn-text {
  background: none; border: none; box-shadow: none;
  margin-top: 16px; padding: 6px 4px;
  min-height: var(--tap-min);   
  color: var(--primary); font-family: inherit; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.oauth-btn-text:hover, .oauth-btn-text:focus-visible {
  color: var(--primary); background: none; text-decoration: underline; text-underline-offset: 3px;
}
.oauth-btn-text:disabled { opacity: 0.5; cursor: default; text-decoration: none; }
.chev { transition: transform 0.2s; }
.chev.open { transform: rotate(180deg); }

.auth-email-form {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 10px;
  animation: slide-in 0.18s ease-out;
}
@keyframes slide-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

.auth-footer {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
}
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-footer-sep { color: var(--text-muted); }

.auth-demo-toggle {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; margin-top: 14px; padding: 6px;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; font-family: inherit;
}
.auth-demo-toggle:hover { color: var(--text); }
.auth-demo-list {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 6px; padding: 8px; border-radius: var(--radius-xs);
  background: var(--bg);
  animation: slide-in 0.18s ease-out;
}
.auth-demo-item {
  padding: 7px 10px; font-size: 13px;
  background: transparent; color: var(--text-dim);
  border: none; border-radius: var(--radius-xs);
  cursor: pointer; text-align: start; font-family: inherit;
  transition: background 0.1s;
}
.auth-demo-item:hover { background: var(--bg-warm); color: var(--text); }
.auth-demo-item:disabled { opacity: 0.5; cursor: wait; }

.demo-login-section {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.demo-title { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 8px; }
.demo-buttons { display: flex; flex-direction: column; gap: 6px; }
.auth-card .demo-title { color: #6b7280 !important; }
.auth-card .error-msg { color: var(--danger) !important; }


input, textarea, select {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 16px; background: var(--bg-warm);
  outline: none; transition: all var(--transition);
  color: var(--text); font-family: inherit;
}
input:focus, textarea:focus, select:focus {
  
  border-color: var(--primary);
  box-shadow: none;
}

.page-hdr-search input,
.page-hdr-search input:focus {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; min-height: 80px; }

.form { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }

.settings-card { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px; }

.settings-group-title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -0.2px; margin: 18px 0 2px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.settings-group-title:first-child { margin-top: 2px; padding-top: 0; border-top: none; }
.settings-group-title svg { color: var(--primary); flex-shrink: 0; }


.settings-group { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); margin-top: 8px; overflow: hidden; }
.settings-group:first-of-type { margin-top: 2px; }
.settings-group.is-open { border-color: var(--primary); }
.settings-group-head {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 14px; background: none; border: none;
  font-size: 15px; font-weight: 700; color: var(--text); text-align: left; cursor: pointer;
}
.settings-group-head > svg:first-child { color: var(--primary); flex-shrink: 0; }
.settings-group-chevron { margin-inline-start: auto; color: var(--text-muted); transition: transform .2s; flex-shrink: 0; }
.settings-group.is-open .settings-group-chevron { transform: rotate(180deg); }

.settings-group-body { display: flex; flex-direction: column; gap: 10px; padding: 4px 14px 16px; border-top: 1px solid var(--border-light); }

.settings-group-body .settings-card { background: none; border: none; border-radius: 0; padding: 0; }


.set-page { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 24px; }


.set-profile { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); text-align: left; cursor: pointer; color: var(--text); }
.set-profile.is-open { border-color: var(--border-light); }
.set-profile-av { position: relative; width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }
.set-profile-av img, .set-profile-av video, .set-profile-av .set-profile-ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.set-profile-ph { background: var(--bg-warm); display: flex; align-items: center; justify-content: center; }
.set-profile-cam { position: absolute; right: -2px; bottom: -2px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; background: var(--sel-bg); color: var(--sel-text); display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); }

.set-profile-av.av-frame--gold::after, .set-profile-av.av-frame--silver::after, .set-profile-av.av-frame--rainbow::after { z-index: 1; }
.set-profile-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.set-profile-name { font-size: 16px; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.set-profile-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.set-profile-edit { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--link); margin-top: 5px; }
.set-profile-edit svg { flex-shrink: 0; }
.set-profile-chev { align-self: center; color: var(--text-muted); flex-shrink: 0; transition: transform .2s; }
.set-profile.is-open > .set-profile-chev { transform: rotate(180deg); }



.set-cap { font-size: var(--fs-min); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin: 8px 4px 4px; }


.set-list { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }


.set-item { display: flex; flex-wrap: wrap; row-gap: 2px; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; background: none; border: none; text-align: left; cursor: pointer; color: var(--text); font-size: 15px; font-family: inherit; }
.set-item + .set-item, .set-body + .set-item, .set-item + .set-body { border-top: 1px solid var(--border-light); }
.set-item-ico { width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--bg-warm); color: var(--text-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }


.set-item-label { flex: 1 1 0; min-width: min-content; font-weight: 500; white-space: normal; hyphens: manual; }

.set-item-value { color: var(--text-muted); font-size: 14px; flex: 0 1 auto; min-width: min-content; max-width: 50%; margin-inline-start: auto; text-align: right; overflow-wrap: break-word; }
.set-item-chev { color: var(--text-muted); flex-shrink: 0; transition: transform .2s; }
.set-item.is-open .set-item-chev { transform: rotate(180deg); }
.set-item--danger { color: var(--danger); }
.set-item--danger .set-item-ico { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.set-item--ok .set-item-value { color: var(--success); }


.set-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; background: var(--bg-warm); border-top: 1px solid var(--border-light); }
.set-body .form-label:first-child { margin-top: 0; }

.set-body .linked-accounts { background: none; border: none; padding: 0; margin: 0; }
.set-body .linked-accounts-title { display: none; }
.set-body .linked-list { gap: 8px; }

.set-body .linked-row { background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 10px 12px; }

.set-body > .form-label:first-child { margin-top: 0; }


.set-autosave { align-self: center; margin: 4px auto 0; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--primary-bg); color: var(--primary); font-size: 12px; font-weight: 700; }
.set-field-error { color: var(--danger); font-size: 13px; margin-top: 2px; }

.set-photo-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 7px 12px; border-radius: var(--btn-radius); background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; }
.set-photo-link:hover { border-color: var(--primary); color: var(--primary); }
.set-photo-link svg { color: var(--primary); flex-shrink: 0; }


.set-field { display: flex; flex-direction: column; gap: 6px; }
.set-field-cap { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.set-field-row { display: flex; gap: 10px; }
.set-field-row > .set-field { flex: 1; min-width: 0; }
.set-input { width: 100%; height: 44px; padding: 0 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--input-radius); color: var(--text); font-size: 15px; font-family: inherit; }
.set-input::placeholder { color: var(--text-muted); }
.set-input:focus { border-color: var(--primary); outline: none; }
.set-textarea { height: auto; min-height: 48px; max-height: 160px; padding: 11px 12px; resize: none; line-height: 1.45; }

.set-input--prefix { display: flex; align-items: center; gap: 4px; padding: 0 12px; }
.set-input--prefix span { color: var(--text-muted); font-size: 15px; flex-shrink: 0; }
.set-uname-save { flex: none; margin-inline-end: -6px; }   

.set-input--prefix input { flex: 1; min-width: 0; height: 100%; border: none; background: transparent !important; box-shadow: none !important; color: var(--text); font-size: 15px; padding: 0; font-family: inherit; }
.set-input--prefix input:focus { outline: none; background: transparent !important; box-shadow: none !important; }
.set-input--prefix:focus-within { border-color: var(--primary); }
.set-hint { font-size: var(--fs-min); color: var(--text-muted); line-height: 1.4; }
.set-hint.err { color: var(--danger); }
.set-hint b { color: var(--primary); font-weight: 700; }
.set-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.set-body > .btn { align-self: flex-start; }


.set-sw { width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--border); flex-shrink: 0; position: relative; transition: background .18s; cursor: pointer; border: none; padding: 0; }
.set-sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s; }
.set-sw.on { background: var(--sel-bg); }
.set-sw.on::after { transform: translateX(18px); }
.set-sw:disabled { opacity: .5; }


.set-ntf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14px; font-weight: 500; }
.set-ntf + .set-ntf { border-top: 1px solid var(--border-light); }
.set-ntf-head { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; margin: 6px 0 -2px; }

.set-ntf-hint { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.35; color: var(--text-muted); }


.ntf-matrix { margin: 12px 0 2px; }
.ntf-matrix-head,
.ntf-matrix-row {
  display: grid; grid-template-columns: 1fr repeat(3, 40px);
  gap: 6px; align-items: center;
}
.ntf-matrix-head { padding-bottom: 8px; }
.ntf-matrix-col {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-muted);
}
.ntf-matrix-col small { font-size: 12px; line-height: 1.15; text-align: center; }
.ntf-matrix-group-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
  color: var(--text-muted); margin: 14px 0 2px;
}
.ntf-matrix-row { padding: 7px 0; border-top: 1px solid var(--border-light); }
.ntf-matrix-label { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.ntf-cell {
  width: 28px; height: 28px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-xs);
  background: transparent; color: transparent; cursor: pointer;
  transition: all var(--transition);
}
.ntf-cell.on { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-text); }
.ntf-cell:active { transform: scale(0.92); }


.set-opts { display: flex; flex-direction: column; gap: 2px; }
.set-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14.5px; font-weight: 500; background: none; border: none; color: var(--text); text-align: left; font-family: inherit; }
.set-opt:hover { background: var(--card); }
.set-opt.sel { background: var(--primary-bg); color: var(--primary); font-weight: 700; }
.set-opt .set-opt-flag { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.set-opt .set-opt-tick { margin-inline-start: auto; color: var(--primary); opacity: 0; flex-shrink: 0; }
.set-opt.sel .set-opt-tick { opacity: 1; }

.settings-row-note { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin: 2px 0 8px; }

.settings-card-title { margin-bottom: 8px; }

.settings-note { font-size: 13px; color: var(--text-dim); line-height: 1.5; margin: 0 0 10px; }

.settings-link-row { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.settings-link-row-sub { margin-inline-start: auto; color: var(--text-muted); font-size: 13px; }


.blocked-user-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.blocked-user-row:last-child { border-bottom: none; }
.blocked-user-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: var(--text); }
.blocked-user-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.blocked-user-avatar--empty { display: flex; align-items: center; justify-content: center; background: var(--primary-bg); color: var(--primary); font-weight: 700; }
.blocked-user-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }



.oauth-btn--apple { background: #000; color: #fff; border-color: rgba(255,255,255,0.18); }
.oauth-btn--apple:hover { background: #141414; }
.oauth-btn--apple:active { background: #1f1f1f; }


.native-oauth-waiting { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--border-light); border-radius: var(--radius);
  background: var(--card); font-size: 14px; color: var(--text-dim); }
.native-oauth-waiting button { background: none; border: none; color: var(--primary);
  font-weight: 600; font-size: 14px; cursor: pointer; padding: 0; }



.sec-block { display: flex; flex-direction: column; gap: 12px; }
.sec-2fa {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px; border-radius: var(--radius-sm);
  background: var(--bg-warm); border: 1px solid var(--border-light);
}
.sec-2fa-head { display: flex; align-items: flex-start; gap: 9px; }
.sec-2fa-head svg { flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }
.sec-2fa-head svg.is-on { color: var(--primary); }
.sec-2fa-head b { display: block; font-size: 14px; color: var(--text); }
.sec-2fa-head span { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.sec-code { display: flex; flex-direction: column; gap: 7px; }
.sec-cap {
  font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--text-muted); margin-top: 2px;
}
.sec-list { display: flex; flex-direction: column; gap: 7px; }
.sec-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--bg-warm); border: 1px solid var(--border-light);
}
.sec-row.is-current { border-color: var(--primary); }
.sec-row > svg { flex-shrink: 0; color: var(--text-muted); }
.sec-row-main { flex: 1; min-width: 0; }
.sec-row-main b { display: block; font-size: 13.5px; color: var(--text); }
.sec-row-main span {
  display: block; font-size: 12px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sec-row button {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--danger);
}
.sec-all { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--danger); }


.adcr-draft-banner { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--bg-warm); border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-dim); }
.adcr-draft-banner button { background: none; border: none; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; }
.adcr-form  { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 80px; }  
.adcr-block { display: flex; flex-direction: column; gap: 8px; }
.adedit-page { padding-bottom: calc(var(--tab-height) + 70px); }


.adcr-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 300;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,.35); overflow: hidden;
}
.adcr-suggest-item {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 14px; background: none; border: none;
  border-bottom: 1px solid var(--border-light); cursor: pointer; font-family: inherit;
  text-align: start; -webkit-tap-highlight-color: transparent;
}
.adcr-suggest-item:last-child { border-bottom: none; }
.adcr-suggest-item:active { background: var(--bg-warm); }
.adcr-suggest-item--drill { background: var(--bg-warm); }
.adcr-suggest-item--drill .adcr-suggest-name { color: var(--primary); }
.adcr-suggest-item--drill .adcr-suggest-meta { color: var(--primary); opacity: .7; }
.adcr-suggest-name { font-size: 14px; font-weight: 600; color: var(--text); }
.adcr-suggest-meta { font-size: 12px; color: var(--text-muted); white-space: nowrap; margin-inline-start: 8px; }
.adedit-section {
  display: flex; flex-direction: column; gap: 8px;
  margin: 0 -12px; padding: 10px 16px;
  border-top: 1px solid var(--border);
}
.adedit-section:first-of-type { border-top: none; margin-top: 0; }
.adedit-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; gap: 8px; padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); border-top: 1px solid var(--border); z-index: 100;
}
.adcr-row2  { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adcr-hint  { font-size: 12px; color: var(--text-muted); }


.adcr-input { width: 100%; box-sizing: border-box; padding: 10px 12px; background: var(--input-bg); border: 1.5px solid var(--input-border); border-radius: var(--input-radius); color: var(--text); font-size: 15px; font-family: inherit; }
.adcr-input:focus { outline: none; border-color: var(--input-border-focus); }
.adcr-textarea { resize: vertical; min-height: 72px; }
.adcr-textarea--loading { opacity: 0.5; cursor: not-allowed; background: var(--bg-warm); }


.adcr-chips { display: flex; gap: 6px; flex-wrap: wrap; }


.adcr-cat-header { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; margin-bottom: 6px; }
.adcr-cat-hint { font-size: 12px; color: var(--text-muted); font-weight: 400; letter-spacing: 0.02em; }
.adcr-cat-scroll-wrap { display: flex; align-items: stretch; gap: 6px; }
.adcr-cat-scroll { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; min-width: 0; mask-image: linear-gradient(to right, black 60%, transparent 100%); -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%); }
.adcr-cat-scroll::-webkit-scrollbar { display: none; }
.adcr-cat-chip { display: inline-flex; align-items: center; gap: 5px; scroll-snap-align: start; white-space: nowrap; flex-shrink: 0; }
.adcr-cat-chip span { pointer-events: none; }
.adcr-cat-all-btn { flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 5px 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: none; color: var(--text-muted); cursor: pointer; transition: background 0.15s; }
.adcr-cat-all-btn:hover, .adcr-cat-all-btn.active { background: var(--bg-warm); color: var(--text); border-color: var(--sel-line); }

.adcr-cat-tree { margin-top: 8px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; }
.adcr-cat-tree-back { display: flex; align-items: center; gap: 6px; width: 100%; padding: 9px 12px; background: var(--bg-warm); border: none; border-bottom: 1px solid var(--border-light); color: var(--primary); font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; text-align: start; }
.adcr-cat-tree-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; background: none; border: none; border-bottom: 1px solid var(--border-light); color: var(--text); font-size: 14px; cursor: pointer; font-family: inherit; text-align: start; transition: background 0.12s; }
.adcr-cat-tree-row:last-child { border-bottom: none; }
.adcr-cat-tree-row:hover { background: var(--bg-warm); }
.adcr-cat-tree-row.active { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.adcr-cat-tree-icon { display: flex; align-items: center; color: var(--text-muted); flex-shrink: 0; }
.adcr-cat-tree-label { flex: 1; }
.adcr-cat-tree-arrow { color: var(--text-muted); flex-shrink: 0; }


.adcr-media { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }
.adcr-thumb { position: relative; width: 70px; height: 70px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; flex-shrink: 0; background: var(--bg-warm); border: 1px solid var(--border-light); transition: opacity 0.15s, transform 0.15s; user-select: none; touch-action: none; }
.adcr-thumb:hover { border-color: var(--primary); }
.adcr-thumb img, .adcr-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.adcr-thumb--video { background: var(--bg-header); }
.adcr-thumb-video-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--btn-text); }
.adcr-thumb--dragging { opacity: 0.45; transform: scale(0.95); }
.adcr-thumb-grip { position: absolute; bottom: 2px; left: 3px; color: rgba(255,255,255,.7); pointer-events: none; }
.adcr-thumb-x { position: absolute; top: 3px; right: 3px; background: rgba(0,0,0,.75); border: none; border-radius: var(--action-btn-radius); width: 18px; height: 18px; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
.adcr-video-lbl { position: absolute; bottom: 3px; left: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; border-radius: 3px; padding: 1px 4px; }
.adcr-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 70px; height: 70px; border-radius: var(--radius-sm); border: 1.5px dashed var(--border); background: none; color: var(--text-muted); font-size: 12px; cursor: pointer; flex-shrink: 0; font-family: inherit; }

.adcr-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.adcr-lightbox-close { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.15); border: none; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; }
.adcr-lightbox-media { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }

.adcr-ai-header { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.adcr-ai-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid var(--primary); border-radius: var(--radius-sm); background: none; color: var(--primary); font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background 0.15s; flex-shrink: 0; align-self: flex-start; }
.adcr-ai-btn:hover:not(:disabled) { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.adcr-ai-btn:disabled { opacity: 0.45; cursor: default; }
.adcr-ai-btn.adcr-ai--busy { opacity: 0.7; animation: adcr-ai-pulse 1.2s ease-in-out infinite; }
@keyframes adcr-ai-pulse { 0%,100% { opacity: 0.7; } 50% { opacity: 0.4; } }

.adcr-pkg-auto-badge { font-size: 12px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); border-radius: 4px; padding: 2px 6px; font-weight: 500; }

.adcr-ai-toast { font-size: 12px; padding: 5px 10px; border-radius: var(--radius-sm); margin-top: 4px; margin-bottom: 2px; }
.adcr-ai-toast.ok  { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.adcr-ai-toast.err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }

.adcr-dims-toggle { background: none; border: none; color: var(--primary); font-size: 12px; cursor: pointer; padding: 6px 0 0; font-family: inherit; text-align: start; }
.adcr-dims-panel { margin-top: 8px; padding: 10px; background: var(--bg-warm); border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.adcr-dims-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adcr-dims-result { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-light); }
.adcr-dims-result-pkg { font-size: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adcr-dims-result-tk { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.adcr-dims-apply-btn { font-size: 12px; padding: 3px 8px; border: 1px solid var(--primary); border-radius: var(--radius-sm); background: none; color: var(--primary); cursor: pointer; font-family: inherit; }


.adcr-cond-row { flex-direction: row !important; align-items: flex-start; }
.adcr-cond-block { flex: 1; }
.adcr-qty-block { flex-shrink: 0; }
.adcr-qty-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.adcr-qty-btn { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--border-light); background: var(--card); color: var(--text); font-size: 18px; font-weight: 700; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.adcr-qty-btn:active { background: var(--bg-warm); }
.adcr-qty-val { min-width: 28px; text-align: center; font-size: 16px; font-weight: 700; color: var(--text); }



.adcr-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.adcr-spec-row { display: flex; flex-direction: column; gap: 3px; }
.adcr-spec-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.adcr-spec-input { font-size: 14px !important; padding: 8px 10px !important; }
select.adcr-input, select.adcr-spec-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-inline-end: 32px !important; cursor: pointer;
}
@media (max-width: 360px) { .adcr-specs-grid { grid-template-columns: 1fr; } }

.adcr-city-chip { display: flex; align-items: center; gap: 6px; background: var(--input-bg); border: 1.5px solid var(--input-border); border-radius: var(--input-radius); padding: 8px 12px; font-size: 14px; color: var(--text); }
.adcr-city-region { font-size: 12px; color: var(--text-muted); flex: 1; }
.adcr-city-chip button { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0; display: flex; line-height: 1; }
.adcr-city-drop { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); z-index: 200; max-height: 200px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.adcr-city-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: none; border: none; border-bottom: 1px solid var(--border-light); cursor: pointer; width: 100%; text-align: start; color: var(--text); }
.adcr-city-row:last-child { border-bottom: none; }
.adcr-city-name { font-size: 14px; font-weight: 600; }
.adcr-city-reg  { font-size: 12px; color: var(--text-muted); }


.adcr-contacts-head { display: flex; align-items: center; justify-content: space-between; }
.adcr-from-profile { font-size: 12px; color: var(--primary); background: none; border: none; cursor: pointer; font-weight: 600; padding: 0; font-family: inherit; }
.adcr-contacts { display: flex; flex-direction: column; gap: 8px; }

.adcr-contact-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
  gap: 8; min-height: 44px;
}
.adcr-contact-row:last-of-type { border-bottom: none; }
.adcr-contact-info { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.adcr-contact-icon { color: var(--text-muted); flex-shrink: 0; }
.adcr-contact-value { font-size: 14px; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adcr-contact-missing { font-size: 13px; color: var(--text-muted); }
.adcr-contact-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; letter-spacing: 0.4px;
  padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
}
.adcr-contact-badge--max { background: var(--primary); color: #fff; }
.adcr-contact-badge--vk  { background: #0077ff; color: #fff; }
.adcr-contact-toggle {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: 13px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.adcr-contact-toggle input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; }
.adcr-contact-link-btn {
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: none; border: none; cursor: pointer; padding: 0; font-family: inherit;
  white-space: nowrap; flex-shrink: 0;
}
.adcr-contact-vk-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: 13px; color: var(--text); font-family: inherit; min-width: 0;
  border-bottom: 1px solid var(--border); padding: 2px 0;
}

.adcr-contact-ico { font-size: 15px; flex-shrink: 0; line-height: 1; color: var(--text-muted); }
.adcr-contact-lbl { font-size: 12px; font-weight: 700; color: var(--text-dim); flex-shrink: 0; min-width: 30px; letter-spacing: 0.3px; }
.adcr-contact-input { flex: 1; background: transparent !important; border: none; outline: none; padding: 10px 0; color: var(--text); font-size: 14px; font-family: inherit; width: auto; }
.adcr-contact-input:-webkit-autofill,
.adcr-contact-input:-webkit-autofill:hover,
.adcr-contact-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--input-bg) inset !important;
  -webkit-text-fill-color: var(--text) !important;
  transition: background-color 9999s ease-in-out 0s;
}


.adcr-pkg-list { display: flex; flex-direction: column; gap: 8px; }
.adcr-pkg-item {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--bg-warm); border: 1.5px solid var(--border-light);
  cursor: pointer; text-align: start; font-family: inherit; width: 100%; box-sizing: border-box;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.adcr-pkg-item.active { border-color: var(--sel-line); background: var(--primary-bg); }
.adcr-pkg-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.adcr-pkg-item.active .adcr-pkg-title { color: var(--text); }
.adcr-pkg-sub { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.adcr-pkg-hint { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.adcr-pkg-warn {
  margin-top: 8px; padding: 10px 12px;
  background: var(--danger-light); border: 1px solid var(--danger);
  border-radius: var(--radius-sm); font-size: 12px; color: var(--text);
}

.adcr-submit { width: 100%; padding: 13px; font-size: 15px; font-weight: 700; }


.adcr-attach-bar { display: flex; gap: 8px; }
.adcr-attach-btn {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  height: 56px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--bg-warm); border: 1px solid var(--border-light);
  color: var(--text-dim); font-size: 12px; font-weight: 600; font-family: inherit;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: border-color .15s, color .15s;
}
.adcr-attach-btn svg { color: var(--primary); }
.adcr-attach-btn:active { background: var(--border-light); }


.adcr-thumb--main { border: 2px solid var(--primary) !important; }
.adcr-thumb--main::after { content: 'Главное'; position: absolute; bottom: 0; left: 0; right: 0; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 2px 0; letter-spacing: 0.3px; pointer-events: none; }
.adcr-star-btn { position: absolute; top: 3px; left: 3px; background: rgba(0,0,0,.65); border: none; border-radius: 3px; width: 18px; height: 18px; cursor: pointer; color: rgba(255,210,0,.95); display: flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
.adcr-star-btn:active { background: rgba(0,0,0,.85); }


.adcr-frame-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.96); display: flex; flex-direction: column; }
.adcr-frame-video { flex: 1; object-fit: contain; width: 100%; min-height: 0; }
.adcr-frame-footer { padding: 16px; display: flex; gap: 10px; flex-shrink: 0; safe-area-inset-bottom: env(safe-area-inset-bottom); }
.adcr-frame-pick { flex: 1; padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.adcr-frame-cancel { padding: 13px 16px; background: rgba(255,255,255,.12); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; font-family: inherit; }
.adcr-frame-hint { color: rgba(255,255,255,.55); font-size: 12px; text-align: center; padding: 0 16px 4px; }


.mkt-shops-cta { text-decoration: none; padding: 12px 28px; margin-top: 4px; display: inline-block; }
.mkt-shops-or { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.mkt-shops-contacts { display: flex; flex-direction: row; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.mkt-shops-contact-btn { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .12s; }
.mkt-shops-contact-btn:hover { border-color: var(--primary); }
.mkt-shops-contact-ico { font-size: 16px; flex-shrink: 0; }







.form-section {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px; background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.form-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.form-row { display: flex; gap: 10px; }
.form-row > .form-field { flex: 1; }
.form-field small { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.form-group input[type="text"],
.form-group textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-xs);
  font-size: 16px; background: var(--bg-warm); color: var(--text);
  box-sizing: border-box;
}
.form-group textarea { resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-error {
  background: var(--danger-light); color: var(--danger);
  padding: 8px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px;
}

.form-label-inline { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); padding: 8px 0; }
.form-label-inline input[type="checkbox"] { width: auto; }

.quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim); margin-bottom: 12px; cursor: pointer;
}
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--primary); }
.toggle-label {
  display: flex !important; align-items: center; gap: 8px; cursor: pointer; font-weight: 400 !important;
}
.toggle-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.coords-display { color: var(--primary); font-weight: 400; font-size: 12px; }




.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: var(--btn-h-md); padding: var(--btn-pad);
  border: none; border-radius: var(--btn-radius);
  font-family: inherit; font-size: var(--btn-font); font-weight: var(--btn-weight);
  line-height: 1; white-space: nowrap; letter-spacing: 0.2px;
  cursor: pointer; text-decoration: none; box-shadow: var(--btn-shadow);
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), opacity var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { box-shadow: var(--btn-shadow-hover); }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn svg { flex-shrink: 0; }

.btn--primary   { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
.btn--secondary { background: var(--btn-sec-bg); color: var(--btn-sec-text); border: 1.5px solid var(--btn-sec-border); }
.btn--ghost     { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--primary); border-color: var(--primary); }
.btn--danger    { background: var(--btn-danger-bg); color: var(--btn-danger-text); }
.btn--danger:hover { filter: brightness(0.94); color: var(--btn-danger-text); }

.btn--danger-ghost { background: transparent; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); }
.btn--danger-ghost:hover { background: var(--danger-light); color: var(--danger); }

.btn--lg { height: var(--btn-h); }
.btn--sm { height: var(--btn-h-sm); padding: var(--btn-pad-sm); font-size: var(--btn-font-sm); border-radius: var(--btn-radius-sm); }

.btn--round { padding: 0; border-radius: var(--radius-pill); }

.btn--block { width: 100%; }


.kx-select {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: var(--input-h); padding: var(--input-pad);
  background: var(--input-bg); color: var(--input-text);
  border: var(--input-border-w) solid var(--input-border); border-radius: var(--input-radius);
  font-family: inherit; font-size: var(--input-font); cursor: pointer; text-align: start;
  transition: border-color var(--transition), background var(--transition);
}
.kx-select:hover, .kx-select[aria-expanded="true"] { border-color: var(--input-border-focus); }
.kx-select-chevron { color: var(--text-muted); transition: transform var(--transition); flex-shrink: 0; }
.kx-select[aria-expanded="true"] .kx-select-chevron { transform: rotate(180deg); }
.kx-select--placeholder { color: var(--input-placeholder); }
.kx-menu {
  background: var(--menu-bg); border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius); box-shadow: var(--menu-shadow);
  padding: 6px; z-index: var(--z-dropdown);
  max-height: 320px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.kx-menu::-webkit-scrollbar { width: 8px; }
.kx-menu::-webkit-scrollbar-track { background: transparent; }
.kx-menu::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; border: 2px solid var(--menu-bg); }
.kx-menu::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.kx-option {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: var(--menu-item-pad); border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; color: var(--text); text-align: start;
  border-radius: 8px; transition: background var(--transition), color var(--transition);
}
.kx-option:hover, .kx-option.highlighted { background: var(--menu-item-hover); }
.kx-option.active, .kx-option[aria-selected="true"] {
  background: var(--menu-item-active-bg); color: var(--menu-item-active-text); font-weight: 700;
}

.kx-option-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kx-option-type {
  flex-shrink: 0; font-size: 12px; font-weight: 500; color: var(--text-muted);
  padding: 2px 7px; border-radius: var(--radius-xs); background: var(--bg-warm);
}
.kx-option.active .kx-option-type, .kx-option.highlighted .kx-option-type {
  background: rgba(0,0,0,0.14); color: var(--menu-item-active-text);
}


.kx-combo { position: relative; width: 100%; }
.kx-combo-input {
  width: 100%; height: var(--input-h); padding: var(--input-pad); padding-inline-end: 40px;
  background: var(--input-bg); color: var(--input-text);
  border: var(--input-border-w) solid var(--input-border); border-radius: var(--input-radius);
  font-family: inherit; font-size: var(--input-font); outline: none;
  transition: border-color var(--transition), background var(--transition);
}
.kx-combo-input:focus { border-color: var(--input-border-focus); background: var(--input-bg-focus); }
.kx-combo-input::placeholder { color: var(--input-placeholder); }
.kx-combo-chevron {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; transition: transform var(--transition);
}
.kx-combo[aria-expanded="true"] .kx-combo-chevron { transform: translateY(-50%) rotate(180deg); }
.kx-combo .kx-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; }

.kx-option .kx-match { color: var(--primary); font-weight: 700; }
.kx-option.active .kx-match, .kx-option.highlighted .kx-match { color: inherit; }

.kx-empty { padding: var(--menu-item-pad); color: var(--text-muted); font-size: 13px; text-align: center; }


.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text); border: none;
  padding: var(--btn-pad); border-radius: var(--btn-radius);
  font-size: var(--btn-font); font-weight: var(--btn-weight);
  cursor: pointer; transition: all var(--transition);
  letter-spacing: 0.2px; font-family: inherit;
  min-height: var(--btn-h); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--btn-shadow);
  width: 100%;
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  box-shadow: var(--btn-shadow-hover);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; box-shadow: none; transform: none; cursor: not-allowed; }
.btn-primary.btn-danger {
  background: var(--danger);
  box-shadow: 0 2px 12px rgba(239,68,68,0.3);
}

.btn-secondary {
  background: var(--btn-sec-bg); color: var(--btn-sec-text);
  border: 1.5px solid var(--btn-sec-border);
  padding: var(--btn-pad); border-radius: var(--btn-radius);
  min-height: var(--btn-h);
  font-size: var(--btn-font); font-weight: 600;
  cursor: pointer; width: 100%; text-align: center;
  font-family: inherit; transition: all var(--transition);
  min-height: var(--btn-h); display: inline-flex; align-items: center; justify-content: center;
}
.btn-secondary:hover { border-color: var(--btn-bg); background: var(--primary-light); }

.btn-sm {
  padding: var(--btn-pad-sm); font-size: var(--btn-font-sm); border: none;
  border-radius: var(--btn-radius-sm); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; font-weight: var(--btn-weight);
  min-height: var(--btn-h-sm);
}

.btn-accent {
  background: var(--btn-bg); color: var(--btn-text); border: none;
  padding: 9px 16px; border-radius: var(--btn-radius-sm);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: var(--btn-weight); transition: background var(--transition);
}
.btn-accent:hover { background: var(--btn-bg-hover); }



.btn-follow,
.btn-message,
.btn-icon-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--btn-h-md); border-radius: var(--btn-radius);
  font-size: 13px; font-weight: var(--btn-weight); cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: all 0.15s; box-sizing: border-box;
}
.btn-follow,
.btn-message { flex: 1 1 0; min-width: 0; padding: 0 10px; }
.btn-action-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.btn-follow {
  background: var(--primary); color: var(--bg);
  border: 1px solid var(--primary);
}
.btn-follow:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--bg); }
.btn-follow.following { background: transparent; color: var(--primary); }
.btn-follow.following:hover {
  background: var(--danger); border-color: var(--danger); color: #fff;
}
.btn-follow:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-message {
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-message:hover { background: var(--primary-light); }

.btn-icon-action {
  flex: 0 0 auto; width: var(--btn-h-md); padding: 0;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-icon-action:hover { border-color: var(--primary); color: var(--primary); }
.btn-icon-action--report:hover {
  border-color: var(--danger); color: var(--danger); background: var(--danger-light);
}
.btn-icon-action--wide { width: auto; padding: 0 14px; }


@media (max-width: 379px) {
  .btn-follow svg, .btn-message svg { display: none; }
  .btn-follow, .btn-message { padding: 0 6px; font-size: 12.5px; }
}

.error-msg {
  color: var(--danger); font-size: 13px; text-align: center;
  padding: 10px 14px; background: var(--danger-light); border-radius: var(--radius-xs);
  border: 1px solid rgba(239,68,68,0.15);
}




.fab {
  position: fixed; bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px) + 16px); right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  
  background: color-mix(in srgb, var(--primary) 58%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  color: rgba(255,255,255,0.98);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.5);
  cursor: pointer; z-index: 50;
  transition: transform 0.16s cubic-bezier(.34,1.56,.64,1), background 0.16s ease;
}
.fab svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.45)); }
.fab:hover { background: color-mix(in srgb, var(--primary) 74%, transparent); }
.fab:active { transform: scale(0.9); }



.fresh-posts-pill {
  position: fixed;
  top: calc(var(--safe-top) + var(--header-height) + 8px);
  left: 50%; transform: translateX(-50%);
  z-index: 550;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  
  background: var(--sel-bg);
  color: var(--sel-text);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  border: 0; cursor: pointer;
  box-shadow: var(--shadow-md);
  -webkit-tap-highlight-color: transparent;
  
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s;
  visibility: visible;
}

.fresh-posts-pill--idle {
  opacity: 0;
  transform: translate(-50%, -10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0s linear 0.28s;
}
.fresh-posts-pill:active { filter: brightness(0.93); }
@media (prefers-reduced-motion: reduce) {
  .fresh-posts-pill, .fresh-posts-pill--idle { transition: opacity 0.01s linear; transform: translate(-50%, 0); }
}


.tab-create {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  gap: 2px; padding: 4px 2px;
  color: rgba(130,145,138,0.6); font-size: 12px; font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  height: var(--tab-height);
  letter-spacing: 0.02em;
}
.tab-create-icon {
  width: 52px; height: 36px; border-radius: var(--radius-xl);
  background: var(--btn-bg);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; 
  box-shadow: 0 6px 20px rgba(90,140,90,0.65), 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: transform 0.15s cubic-bezier(.34,1.56,.64,1), box-shadow 0.15s ease;
  transform: translateY(-7px);
}
.tab-create-icon svg { width: 20px !important; height: 20px !important; flex-shrink: 0; stroke-width: 2 !important; }
.tab-create:active .tab-create-icon {
  transform: scale(0.92);
  box-shadow: 0 1px 6px rgba(90,140,90,0.3);
}


.feed-quick-stats-inline {
  display: flex; gap: 6px; padding: 0 4px 10px;
  flex-wrap: wrap;
}
.quick-stat-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--chip-radius); padding: 5px 10px;
  font-size: 12px; color: var(--text-muted); text-decoration: none;
  transition: background 0.15s;
}
.quick-stat-chip:hover { background: var(--border); }

.fab-add-spot {
  position: fixed; bottom: 80px; right: 20px; z-index: 900;
  width: var(--fab-size); height: var(--fab-size); border-radius: var(--fab-radius);
  background: var(--fab-bg); color: var(--fab-text); border: none;
  box-shadow: var(--fab-shadow);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab-add-spot:hover { transform: scale(1.1); box-shadow: 0 6px 24px color-mix(in srgb, var(--primary) 50%, transparent); }


.mobile-fish-fab {
  position: fixed; bottom: 80px; right: 16px;
  width: var(--fab-size); height: var(--fab-size); border-radius: var(--fab-radius);
  background: var(--fab-bg);
  color: var(--fab-text); display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: var(--fab-shadow);
  z-index: 100; text-decoration: none; transition: transform 0.2s;
}
.mobile-fish-fab:hover { transform: scale(1.1); }



.mobile-header-city {
  display: none;
  align-items: center; gap: 4px;
  background: var(--primary-bg);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: var(--radius-sm); padding: 0 10px 0 8px;
  height: 36px;
  font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; white-space: nowrap;
  flex: 1; min-width: 0;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.mobile-header-city span { overflow: hidden; text-overflow: ellipsis; }
.mobile-header-city svg { color: var(--primary); flex-shrink: 0; }
@media (min-width: 769px) { .mobile-header-city { display: none; } }


.mobile-profile-btn { position: relative; }
.mobile-header-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.mobile-profile-btn.is-auth::after {
  content: '';
  position: absolute; bottom: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  border: 1.5px solid color-mix(in srgb, var(--bg) 97%, transparent);
}



.header-collapsible {
  display: flex; align-items: center;
  overflow-x: auto; scrollbar-width: none;
  
  justify-content: flex-start;
  gap: var(--hdr-gap);
  flex: 1; min-width: 0; width: 100%;
}

.header-collapsible .icon-btn {
  width: auto; height: auto; flex-shrink: 0;
  flex-direction: column; gap: 3px; padding: 8px 9px 5px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--text-muted); font-size: 12px; font-weight: 600;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.header-collapsible::-webkit-scrollbar { display: none; }

.header-collapsible { padding-inline-end: 54px; }

@media (max-width: 400px) {
  .header-collapsible .icon-btn { padding-inline-start: 4px; padding-inline-end: 4px; font-size: 12px; }
  .header-collapsible .icon-btn svg { width: 20px; height: 20px; }
  .header-collapsible { padding-inline-end: calc(var(--hdr-btn-left) + 10px); }
}
.header-collapsible .icon-btn > span { line-height: 1; }
.header-collapsible .icon-btn svg { width: 22px; height: 22px; }

.hdr-ico-wrap { position: relative; display: inline-flex; }
.hdr-ico-wrap .badge {
  position: absolute; top: -4px; right: -8px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--badge-bg); color: var(--badge-text);
  font-size: var(--fs-min); font-weight: 700; line-height: 1;
  border-radius: var(--radius-pill); display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--bg);
  pointer-events: none;
}
.hdr-ico-wrap .badge--warning { background: var(--warning); color: #1a1a1a; }


.header-collapsible .icon-btn--framed {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  
  background: var(--card);
  border: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  color: var(--text);
}
.header-collapsible .icon-btn--framed svg { width: 24px; height: 24px; }
.header-collapsible .header-avatar-inline { overflow: hidden; }
.header-collapsible .header-avatar-img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
@media (max-width: 767px) {
  .app-header {
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .app-header.header-scrolled { transform: none; }
}


.header-inner-page {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0;
  position: relative;
}

.header-search-fixed {
  position: fixed;
  right: 12px;
  top: calc(env(safe-area-inset-top, 0px) + 6px);
  z-index: 600;
}

.header-back-btn {
  display: flex; align-items: center; justify-content: center;
  width: var(--back-size); height: var(--back-size); border-radius: var(--back-radius); flex-shrink: 0;
  background: var(--back-bg);
  border: 1px solid var(--back-border);
  color: var(--back-text); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative; z-index: 1; 
}
.header-back-btn:active { background: transparent; }

.header-inner-page > .header-back-btn {
  margin-inline-start: calc(var(--nav-c1) - 12px - var(--back-size) / 2);
}
.header-search-fixed {
  right: calc(var(--nav-c1) - var(--back-size) / 2) !important;
}



.header-back-btn--nav {
  width: 44px; height: 44px; flex-shrink: 0; padding: 0;
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 0;
  background: none; border: none; border-radius: var(--radius-sm);
  color: var(--text-dim);
}
.header-back-btn--nav svg { width: 28px; height: 28px; }   

@media (hover: hover) {
  .header-back-btn--nav:hover { background: var(--primary-bg); color: var(--primary); }
  .hdr-nav-btn:hover { color: var(--primary); background: var(--primary-bg); }
  .header-collapsible .icon-btn:hover { background: var(--primary-bg); color: var(--primary); }
  .icon-btn:hover { background: var(--bg); }
}
.header-back-btn--nav:active { background: transparent !important; }
.app-header button:active,
.app-header a:active { background: transparent !important; }
.header-back-btn--nav span { display: none; }   

.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav) {
  display: grid;
  
  
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 0;
  align-items: center;
  justify-items: center;
  
  padding-inline: calc(var(--nav-track) - 12px);
}

.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav) > .header-back-btn--nav:first-child { grid-column: 1; }
.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav) > .header-nav-profile { grid-column: 5; }

.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav) > .header-back-btn,
.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav) .more-search-toggle {
  margin-inline-start: 0;
  margin-inline-end: 0;
}

.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav):has(.header-page-title) {
  display: flex;
  gap: 8px;
}
.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav):has(.header-page-title) > .header-back-btn {
  margin-inline-start: calc(var(--nav-c1) - var(--nav-track) - var(--back-size) / 2);
}
.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav):has(.header-page-title) .hdr-tools {
  display: flex; margin-inline-start: auto; gap: 8px; flex-shrink: 0;
  
  margin-inline-end: calc(var(--nav-c1) - var(--nav-track) - var(--back-size) / 2);
}

.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav):has(.header-page-title):has(.header-nav-profile) .hdr-tools {
  margin-inline-end: 4px;
}
.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav):has(.header-page-title) > .header-nav-profile {
  
  margin-inline-end: calc(var(--nav-c1) - var(--nav-track) - var(--back-size) / 2);
}
.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav):has(.header-page-title) .header-page-title {
  flex: 1 1 auto; min-width: 0;
}

.header-inner-page--mapnav { gap: 4px; }

.header-inner-page--nav .header-node-slot {
  flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none;
  display: flex; align-items: center; gap: 8px;
}

.hdr-nav-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  white-space: nowrap; flex-shrink: 0; letter-spacing: -0.2px; padding-inline-start: 2px;
}

@media (max-width: 767px) {
  .hdr-nav-title--actions { padding-inline-end: 150px; }
}
.header-inner-page--nav .header-node-slot::-webkit-scrollbar { display: none; }

.header-nav-profile {
  flex: 0 0 auto; margin-inline-start: 2px;
  
  width: var(--hdr-btn-left); height: var(--hdr-btn-left);
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
  background: var(--card); color: var(--text); cursor: pointer;
  display: grid; place-items: center; overflow: hidden; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.header-nav-profile .header-avatar-img { width: 100%; height: 100%; object-fit: cover; }

.hdr-avatar-btn {
  flex: 0 0 auto; width: var(--hdr-btn-left); height: var(--hdr-btn-left);
  display: grid; place-items: center; padding: 0; overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--primary) 50%, transparent); border-radius: 50%;
  background: var(--card); color: var(--text-dim); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hdr-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.hdr-avatar-btn img.is-coat { object-fit: contain; background: #fff; padding: 2px; }


body.mkt-page-active .header-nav-profile,
body.mkt-page-active .header-cart-btn { display: none; }


.app-header--map-overlay {
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  pointer-events: none;              
}

.app-header--map-overlay .app-header-inner { padding: 0; }
.app-header--map-overlay .header-inner-page {
  pointer-events: auto;
  margin: 6px var(--map-pill-inset, 26px) 0;
  height: var(--map-pill-h, 50px); padding: 0 6px;   
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: background .22s ease, border-radius .22s ease, box-shadow .22s ease;
}

body.map-panel-open .app-header--map-overlay .header-inner-page {
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  box-shadow: 0 4px 0 rgba(0,0,0,0);
}

.app-header--map-overlay .header-back-btn--nav,
.app-header--map-overlay .hdr-nav-btn { color: var(--on-media); }
.app-header--map-overlay .header-back-btn--nav svg,
.app-header--map-overlay .hdr-nav-btn svg { color: var(--on-media); }

.app-header--map-overlay .hdr-nav-btn.is-active,
.app-header--map-overlay .hdr-nav-btn.is-active svg { color: var(--text); }

.app-layout:has(.app-header--map-overlay) { padding-top: 0 !important; }

.app-header--map-overlay:has(.hdr-search-bar) .header-inner-page {
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  box-shadow: 0 4px 0 rgba(0,0,0,0);
}

.app-header--map-overlay .hdr-search-bar {
  
  pointer-events: auto;
  margin: 0;
  margin-left: var(--map-pill-left);
  margin-right: var(--map-pill-right);
  border: 1px solid rgba(255,255,255,0.08); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 16px 38px rgba(0,0,0,.5);
  
  padding: 8px 10px 10px;
  animation: hdr-search-drop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes hdr-search-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}


.header-inner-page--mapnav { gap: 0; }
.header-inner-page--mapnav .header-back-btn--nav { display: none; }
.header-inner-page--mapnav .header-node-slot { flex: 1 1 0; overflow: visible; }
.header-inner-page--mapnav .hdr-nav-panel { width: 100%; gap: 0; height: 100%; }
.header-inner-page--mapnav .hdr-nav-btn { flex: 1 1 0; min-width: 0; padding: 0; height: 100%; }
.header-inner-page--mapnav .hdr-nav-btn span { display: none; }   

.header-inner-page--mapnav .hdr-nav-btn svg { width: 28px; height: 28px; stroke-width: 1.75; flex: 0 0 auto; }


.header-inner-page--clipsnav { gap: 0; }
.header-inner-page--clipsnav .header-back-btn,
.header-inner-page--clipsnav .header-back-btn--nav { display: none; }
.header-inner-page--clipsnav .header-nav-profile { display: none; }
.header-inner-page--clipsnav .header-cart-btn { display: none; }
.header-inner-page--clipsnav .header-node-slot { flex: 1 1 0; min-width: 0; overflow: visible; }


.app-header--clips-overlay::before {
  content: ''; position: absolute; inset: 0 0 auto 0;
  height: calc(var(--safe-top) + var(--map-pill-h, 46px) + 40px);
  
  background: var(--media-scrim-grad); transform: scaleY(-1);
  pointer-events: none; opacity: 1; transition: opacity .24s ease;
}
.app-header--clips-overlay:has(.hdr-search-bar)::before { opacity: 0; }


.app-header--clips-overlay {
  background: transparent !important;
  transition: background .24s ease;
}
.app-header--clips-overlay .header-inner-page {
  margin: 0; border-radius: 0; height: var(--map-pill-h, 46px);
  background: transparent; border-color: transparent; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

.app-header--clips-overlay:has(.hdr-search-bar) { background: var(--card) !important; }
.app-header--clips-overlay:has(.hdr-search-bar) .header-inner-page {
  background: transparent;
}

.app-header--clips-overlay .hdr-search-bar {
  margin: 0; padding: 2px 12px 10px;
  border: none; border-radius: 0; box-shadow: none;
  background: #0d100f;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  animation: hdr-search-drop 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-header--clips-overlay .hdr-search-field {
  height: 40px; padding: 0 14px;
  background: rgba(255,255,255,0.12);
  border: none; border-radius: 999px;
  color: rgba(255,255,255,0.75);
}
.app-header--clips-overlay .hdr-search-field > svg { color: rgba(255,255,255,0.75); }
.app-header--clips-overlay .hdr-search-field input { color: #fff; font-size: 15px; }
.app-header--clips-overlay .hdr-search-field input::placeholder { color: rgba(255,255,255,0.5); }
.app-header--clips-overlay .hdr-search-clear { color: rgba(255,255,255,0.7); }


.hdr-search-bar.is-closing {
  animation: hdr-search-lift 0.18s ease forwards; pointer-events: none;
}
@keyframes hdr-search-lift {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-6px); }
}


body:has(.clips-page) .tab-bar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: transparent !important;
  border-top-color: transparent !important;
}

.clips-page::after {
  content: ''; position: fixed; left: 0; right: 0; bottom: 0; z-index: 399;
  height: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px) + 54px);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.30) 46%, rgba(0,0,0,0.66) 100%);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 38%, #000 72%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 38%, #000 72%);
  pointer-events: none;
  transition: opacity .2s ease;
}
body.clips-fullscreen .clips-page::after { opacity: 0; }


.header-cart-btn {
  flex: 0 0 auto; margin-inline-start: 2px; position: relative;
  width: var(--hdr-btn-left); height: var(--hdr-btn-left);
  border-radius: var(--radius); border: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
  background: var(--card); color: var(--text); cursor: pointer;
  display: grid; place-items: center; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.header-cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 17px; height: 17px; border-radius: 10px;
  background: var(--primary); color: white;
  font-size: 10px; font-weight: 700; line-height: 17px;
  text-align: center; padding: 0 4px; pointer-events: none;
}


.header-mute {
  flex: 0 0 auto; margin-inline-start: 2px;
  width: var(--hdr-btn-left); height: var(--hdr-btn-left);
  border-radius: var(--radius); border: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--primary); cursor: pointer;
  display: grid; place-items: center; padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .13s, border-color .13s;
}
.header-mute:active { transform: scale(.94); background: color-mix(in srgb, var(--primary) 18%, transparent); }


.hdr-nav-panel { display: flex; align-items: stretch; gap: 2px; }

.hdr-nav-btn {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 0; padding: 0; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-family: inherit;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.hdr-nav-btn > span { display: none; }   
.hdr-nav-btn svg { flex-shrink: 0; width: 26px; height: 26px; }


.header-inner-page--nav .header-node-slot--left,
.header-inner-page--nav .header-node-slot--left > .hdr-nav-panel,
.header-inner-page--nav > .hdr-nav-panel,
.header-inner-page--nav .hdr-tools { display: contents; }

.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav) .header-node-slot,
.header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav) .header-node-slot > .hdr-nav-panel { display: contents; }

.header-inner-page--nav .hdr-nav-title { display: none; }

.hdr-nav-btn--create { color: var(--primary); }

.app-header .hdr-action-btn {
  width: 44px; height: 44px;
  background: none; border: none; color: var(--text-dim);
  border-radius: var(--radius-sm);
}
.app-header .hdr-action-btn svg { width: 26px; height: 26px; }
@media (hover: hover) { .app-header .hdr-action-btn:hover { background: var(--bg-warm); border-color: transparent; color: var(--text); } }
.app-header .hdr-action-btn.is-active,
.app-header .hdr-action-btn--active { background: var(--primary-bg); color: var(--text); border-color: transparent; }


.header-inner-page--nav .header-node-slot--left,
.header-inner-page--nav .header-node-slot--left > .hdr-nav-panel,
.header-inner-page--nav > .hdr-nav-panel,
.header-inner-page--nav .hdr-tools { display: contents; }

.header-inner-page--nav .hdr-nav-title { display: none; }

.hdr-nav-btn--create { color: var(--primary); }

.app-header .hdr-action-btn {
  width: 44px; height: 44px;
  background: none; border: none; color: var(--text-dim);
  border-radius: var(--radius-sm);
}
.app-header .hdr-action-btn svg { width: 26px; height: 26px; }
@media (hover: hover) { .app-header .hdr-action-btn:hover { background: var(--bg-warm); border-color: transparent; color: var(--text); } }
.app-header .hdr-action-btn.is-active,
.app-header .hdr-action-btn--active { background: var(--primary-bg); color: var(--text); border-color: transparent; }



.hdr-search-bar {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 10px;
  animation: hdrSearchDrop 0.16s ease;
}
@keyframes hdrSearchDrop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.hdr-search-field {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: var(--action-btn-size); padding: 0 12px;
  
  background: transparent;
  border: var(--input-border-w) solid var(--input-border);
  border-radius: var(--input-radius);
  color: var(--text-muted);
}
.hdr-search-field > svg { flex-shrink: 0; }

.hdr-search-field input,
.hdr-search-field input:focus {
  flex: 1; min-width: 0;
  border: none !important; outline: none;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--input-text); font-size: 14px;
}
.hdr-search-field input::placeholder { color: var(--text-muted); }
.hdr-search-clear {
  flex-shrink: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border: none; background: none; cursor: pointer;
  color: var(--text-muted);
}
.hdr-search-tool {
  flex-shrink: 0;
  width: var(--action-btn-size); height: var(--action-btn-size);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: var(--input-border-w) solid var(--input-border);
  border-radius: var(--action-btn-radius);
  color: var(--text-muted); cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}
.hdr-search-tool.is-active { color: var(--text); border-color: var(--sel-line); }
.hdr-search-tool.is-open { color: var(--primary); border-color: var(--primary); }

.hdr-search-menu {
  position: absolute; top: calc(100% - 6px); right: 12px; z-index: 60;
  min-width: 220px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px; border-radius: var(--radius);
  background: var(--card);
  border: var(--input-border-w) solid var(--input-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  animation: hdrSearchDrop 0.14s ease;
}
.hdr-search-menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 9px 12px;
  background: none; border: none; cursor: pointer;
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px; font-weight: 500; text-align: start;
}
.hdr-search-menu-item:hover { background: var(--bg-warm); }
.hdr-search-menu-item.is-active { color: var(--text); font-weight: 600; }
.hdr-search-menu-item > svg { flex-shrink: 0; }

.hdr-search-toggle.is-active { color: var(--text); }




.header-avatar-fixed--sm {
  width: var(--hdr-btn-left) !important; height: var(--hdr-btn-left) !important;
  border-radius: var(--radius) !important;
  
  top: calc(env(safe-area-inset-top, 0px) + (var(--header-height) - var(--hdr-btn-left)) / 2) !important;
}

.avatar-dd-item--create {
  display: flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 700;
}
.avatar-dd-item--create svg { flex-shrink: 0; }

.header-page-title {
  font-size: 17px; font-weight: 700; color: var(--text);
  letter-spacing: -0.3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: calc(100vw - 160px);
}

@media (max-width: 767px) {
  .header-page-title {
    position: fixed;
    left: 0; right: 0;
    top: env(safe-area-inset-top, 0px);
    height: var(--header-height);
    display: flex !important;
    align-items: center; justify-content: center;
    text-align: center;
    padding: 0 60px; 
    max-width: none;
    pointer-events: none;
    z-index: 501; 
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  }
}


@media (max-width: 767px) {
  .header-page-title--actions {
    justify-content: flex-start; text-align: start;
    padding: 0 175px 0 60px;
  }
}


@media (max-width: 360px) {
  .header-page-title { padding: 0 44px; font-size: 15px; }
  .header-back-btn { left: 6px !important; }
  
  .header-inner-page--nav:not(.header-inner-page--mapnav):not(.header-inner-page--clipsnav) > .header-back-btn { left: 0 !important; }
  
  .header-page-title--actions { padding: 0 150px 0 52px; }
}


.header-avatar-fixed { display: none; }
.header-fab-fixed    { display: none; }
.header-msg-fixed    { display: none; }
@media (max-width: 767px) {
  

  .header-avatar-fixed {
    display: flex;
    position: fixed;
    top: calc(var(--safe-top) + 2px);
    right: 12px;
    z-index: 600;
    width: var(--hdr-btn-right); height: var(--hdr-btn-right);
    border-radius: var(--action-btn-radius);
    border: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
    background: var(--card);
    align-items: center; justify-content: center;
    color: var(--text); cursor: pointer;
    transition: width 0.28s ease, height 0.28s ease,
                top 0.28s ease, border-color 0.28s ease,
                box-shadow 0.28s ease;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
  }
  .header-avatar-fixed--lg {
    border-color: var(--primary);
    box-shadow: 0 2px 18px rgba(0,0,0,0.45), 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
  }
  .header-avatar-fixed .header-avatar-img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  
  .header-avatar-fixed::after {
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 56px; height: 56px; border-radius: 50%;
  }

  
  .header-msg-fixed {
    display: flex;
    position: fixed;
    top: calc(var(--safe-top) + 2px);
    
    right: calc(12px + var(--hdr-btn-right) + var(--hdr-gap));
    z-index: 600;
    width: var(--hdr-btn-right); height: var(--hdr-btn-right);
    border-radius: var(--action-btn-radius);
    background: var(--card);
    color: var(--text);
    border: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
    align-items: center; justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .header-msg-fixed--lg {
    border-color: var(--primary);
    box-shadow: 0 2px 18px rgba(0,0,0,0.45), 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
  }

  
  .header-fab-fixed {
    display: flex;
    position: fixed;
    top: calc(var(--safe-top) + 2px);
    
    right: calc(12px + 2 * (var(--hdr-btn-right) + var(--hdr-gap)));
    z-index: 600;
    width: var(--hdr-btn-right); height: var(--hdr-btn-right);
    border-radius: var(--action-btn-radius);
    background: var(--card);
    color: var(--text);
    border: 2px solid color-mix(in srgb, var(--primary) 50%, transparent);
    align-items: center; justify-content: center;
    cursor: pointer;
    transition: width 0.28s ease, height 0.28s ease,
                top 0.28s ease, right 0.28s ease,
                border-color 0.28s ease;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
  }
  .header-fab-fixed--lg {
    border-color: var(--primary);
    box-shadow: 0 2px 18px rgba(0,0,0,0.45), 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
  }
  .header-fab-fixed:active { transform: scale(0.92); }

  
  .header-fab-fixed, .header-msg-fixed, .header-avatar-fixed {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
  
  .header-fab-fixed > svg, .header-msg-fixed > svg, .header-avatar-fixed > svg {
    width: 22px; height: 22px;
  }
}


.avatar-msg-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: #ff3b30; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  border: 2px solid var(--bg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.28);
  letter-spacing: 0; font-variant-numeric: tabular-nums;
}


.avatar-dd-overlay {
  position: fixed; inset: 0; z-index: 1999;
  background: transparent;
}
.avatar-dd { display: none; }
@media (max-width: 767px) {
  .avatar-dd {
    display: block;
    position: fixed;
    right: 12px;
    z-index: 2000;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-width: 190px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: avatar-dd-in 0.18s cubic-bezier(0.34, 1.4, 0.64, 1);
    transform-origin: top right;
  }
}
@keyframes avatar-dd-in {
  from { opacity: 0; transform: scale(0.86) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.avatar-dd-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 13px 16px;
  background: none; border: none;
  border-top: 1px solid var(--border-light);
  font-size: 15px; font-weight: 500; color: var(--text);
  text-align: start; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.avatar-dd-item:first-child { border-top: none; }
.avatar-dd-item:active { background: var(--primary-bg); }
.avatar-dd-badge {
  background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 1px 6px; border-radius: 9px;
  min-width: 18px; text-align: center;
  margin-inline-start: auto;
}
.avatar-dd-shortcut { font-size: 14px; padding: 11px 16px; }
.avatar-dd-header {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 14px 16px 13px;
  background: none; border: none;
  cursor: pointer; text-align: start;
  -webkit-tap-highlight-color: transparent;
}
.avatar-dd-header:active { background: var(--primary-bg); }
.avatar-dd-header-ava {
  width: 42px; height: 42px; border-radius: var(--radius-pill);
  object-fit: cover; flex-shrink: 0;
}
.avatar-dd-header-ava--ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--btn-text);
  font-weight: 700; font-size: 19px; text-transform: uppercase;
}
.avatar-dd-header-info { min-width: 0; flex: 1; }
.avatar-dd-header-name {
  font-size: 15px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avatar-dd-header-uname {
  font-size: 13px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.avatar-dd-display {
  color: var(--primary);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.85;
}
.avatar-dd-logout {
  color: var(--danger);
  font-size: 13px;
}
.avatar-dd-divider {
  height: 1px; background: var(--border-light);
  margin: 2px 0;
}
.avatar-dd-langs {
  padding: 6px 10px 10px;
  display: flex; flex-wrap: wrap; gap: 5px;
  border-top: 1px solid var(--border-light);
}
.avatar-dd-lang-item {
  padding: 6px 11px; border-radius: 8px; font-size: 13px;
  background: var(--primary-bg);
  border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.avatar-dd-lang-item.active {
  background: var(--primary-light);
  border-color: var(--sel-line);
  color: var(--text); font-weight: 600;
}



.avatar-sheet-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(0,0,0,0.45);
  animation: fade-in 0.2s ease;
}
.avatar-sheet {
  position: fixed; top: 0; left: 0; right: 0; z-index: 801;
  max-height: 90vh; overflow-y: auto;
  background: var(--card);
  border-end-start-radius: var(--radius); border-end-end-radius: var(--radius);
  padding: max(env(safe-area-inset-top, 0px), 6px) 12px 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  animation: sheet-down 0.28s cubic-bezier(.22,1,.36,1);
  
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1);
}
@keyframes sheet-down { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.avatar-sheet-handle {
  display: block; width: 36px; height: 4px; margin: 10px auto 2px;
  border: none; border-radius: var(--radius-pill); background: var(--border); cursor: grab;
}
.avatar-sheet-profile {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 10px; background: var(--bg-warm); border: 1px solid var(--border-light);
  border-radius: var(--radius); cursor: pointer;
  text-align: start; -webkit-tap-highlight-color: transparent;
}
.avatar-sheet-profile:active { background: var(--border-light); }
.avatar-sheet-ava { width: 42px; height: 42px; border-radius: var(--radius-pill); object-fit: cover; flex-shrink: 0; }
.avatar-sheet-ava--ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--btn-text); font-weight: 700; font-size: 22px;
}
.avatar-sheet-pinfo { flex: 1; min-width: 0; }
.avatar-sheet-name { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-sheet-uname { font-size: 13px; color: var(--text-dim); }
.avatar-sheet-pchev { color: var(--text-dim); flex-shrink: 0; }

.avatar-sheet-actions { display: flex; gap: 8px; margin-top: 8px; }
.asa {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 8px; border: 1px solid var(--border-light); background: var(--primary-bg);
  color: var(--primary); border-radius: var(--radius); font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.asa:active { background: var(--border-light); }
.avatar-sheet-glabel {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-dim); padding: 9px 6px 5px;
}
.avatar-sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.asg {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; background: var(--bg-warm); border: none;
  border-radius: var(--radius); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.asg:active { background: var(--border-light); }
.asg-ic { color: var(--coin); display: flex; }
.asg-t { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.1; }
.avatar-sheet-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 6px; background: none; border: none; cursor: pointer;
  font: inherit; color: var(--text); text-align: start;
  -webkit-tap-highlight-color: transparent;
}
.avatar-sheet-row:active { background: var(--bg-warm); }
.avatar-sheet-row-ic { color: var(--primary); flex-shrink: 0; }
.avatar-sheet-row-t { flex: 1; font-size: 14px; font-weight: 500; }
.avatar-sheet-row-chev { color: var(--text-dim); opacity: 0.6; flex-shrink: 0; }
.avatar-sheet-row--admin .avatar-sheet-row-t { color: var(--primary); font-weight: 600; }
.avatar-sheet-row--logout .avatar-sheet-row-ic,
.avatar-sheet-row--logout .avatar-sheet-row-t { color: var(--danger); }
.avatar-sheet-div { height: 1px; background: var(--border-light); margin: 6px 0; }
.avatar-sheet-theme { margin: 0 0 4px; align-items: center; gap: 10px; color: var(--text-muted); }

.avatar-sheet-theme-label { flex: 1; color: var(--text); font-size: var(--fs-body); }


.tab-bar--hidden { display: none !important; }
.tab-bar .tab-item { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.nav-slot-list { display: flex; flex-direction: column; gap: var(--space-1); padding-bottom: var(--space-3); }
.nav-slot-item { display: flex; align-items: center; gap: var(--space-3); min-height: 48px; padding: 0 var(--space-3);
  border: none; background: transparent; color: var(--text); font-size: var(--fs-body); border-radius: var(--radius); cursor: pointer; text-align: left; }
.nav-slot-item span { flex: 1; }
.nav-slot-item.active { background: var(--sel-bg); color: var(--sel-text); }

.nav-slot-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-1); padding: var(--space-2);
  background: var(--card); border-radius: var(--radius); }
.nav-slot-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px;
  padding: var(--space-1) 2px; border: none; background: transparent; color: var(--text); border-radius: var(--radius);
  font-size: var(--fs-min); cursor: pointer; }
.nav-slot-cell span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-slot-cell:active { background: var(--bg); }
.nav-slot-cell--fixed { color: var(--text-muted); cursor: default; }

.create-sheet-list { display: flex; flex-direction: column; gap: var(--space-1); padding-bottom: var(--space-3); }

.create-sheet-item { min-height: 56px; }
.create-sheet-item > svg { flex-shrink: 0; }
.create-sheet-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.create-sheet-t { font-size: var(--fs-body); font-weight: 600; }
.create-sheet-sub { font-size: var(--fs-caption); color: var(--text-muted); }

.badge-dot { position: absolute; top: -1px; right: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--badge-bg); border: 2px solid var(--bg); box-sizing: border-box; pointer-events: none; }

.nav-slot-hint { position: fixed; left: 50%; transform: translateX(-50%); z-index: 60; pointer-events: none;
  bottom: calc(var(--bottom-nav-height) + 8px + env(safe-area-inset-bottom)); width: max-content;
  max-width: min(360px, calc(100vw - 32px)); padding: 10px 14px; background: var(--card); color: var(--text);
  box-shadow: var(--shadow); border-radius: var(--radius); font-size: var(--fs-body); line-height: 1.35; }

.avatar-menu-overlay {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fade-in 0.18s ease;
}
.avatar-menu-sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 701;
  background: var(--bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  padding: 0 0 max(env(safe-area-inset-bottom, 0px), 16px);
  max-height: 88dvh; overflow-y: auto;
  animation: slide-up-sheet 0.26s cubic-bezier(0.32,0.72,0,1);
}
@keyframes slide-up-sheet {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.avatar-menu-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: color-mix(in srgb, var(--primary) 30%, transparent);
  margin: 10px auto 6px;
}


.avatar-menu-user-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--primary-bg);
}
.avatar-menu-avatar-wrap {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--primary); overflow: hidden;
}
.avatar-menu-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-menu-avatar-placeholder {
  width: 100%; height: 100%;
  background: color-mix(in srgb, var(--primary) 25%, transparent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--primary);
}
.avatar-menu-name { font-size: 15px; font-weight: 700; color: var(--text); }
.avatar-menu-city { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.avatar-menu-login-btn {
  display: block; width: calc(100% - 40px); margin: 14px 20px 8px;
  padding: 12px; border-radius: var(--radius);
  background: var(--primary); color: var(--btn-text);
  font-size: 15px; font-weight: 700; text-align: center;
  border: none; cursor: pointer;
}


.avatar-menu-nav {
  padding: 6px 12px;
  border-bottom: 1px solid var(--primary-bg);
}
.avatar-menu-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 13px 8px;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 15px; font-weight: 500;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.avatar-menu-item:active { background: var(--primary-bg); }
.avatar-menu-item svg { color: var(--primary); flex-shrink: 0; }
.avatar-menu-item span:first-of-type { flex: 1; text-align: start; }
.avatar-menu-badge {
  background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 1px 6px; border-radius: 9px; min-width: 18px; text-align: center;
}


.avatar-menu-shortcuts-section { padding: 10px 16px 4px; }
.avatar-menu-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.avatar-menu-section-hdr > span { font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.avatar-menu-edit-btn {
  font-size: 13px; font-weight: 600; color: var(--primary);
  background: none; border: none; cursor: pointer; padding: 2px 4px;
}
.shortcuts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.shortcut-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px 8px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: var(--radius); cursor: pointer;
  color: var(--text); font-size: 12px; font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}
.shortcut-item:active { background: color-mix(in srgb, var(--primary) 18%, transparent); }
.shortcut-item svg { color: var(--primary); }


.avatar-menu-lang {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 16px 4px;
  border-top: 1px solid var(--primary-bg);
}
.avatar-lang-item {
  padding: 6px 10px; border-radius: 8px; font-size: 13px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--text-muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.avatar-lang-item.active {
  background: color-mix(in srgb, var(--text) 20%, transparent); color: var(--text);
  border-color: var(--sel-line); font-weight: 600;
}


.avatar-menu-close-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-bg); border: none; cursor: pointer;
  color: var(--text-muted);
}


.shortcuts-editor-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 8px;
  font-size: 15px; font-weight: 700; color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
}
.shortcuts-editor-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 14px 12px;
}
.shortcut-editor-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 4px 8px; position: relative;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: var(--radius); cursor: pointer;
  color: var(--text-muted); font-size: 12px; font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.shortcut-editor-item.pinned {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  border-color: var(--primary); color: var(--text);
}
.shortcut-editor-item.pinned svg { color: var(--primary); }
.shortcut-editor-item svg { color: var(--text-muted); }
.shortcut-check {
  position: absolute; top: 4px; right: 6px;
  font-size: 12px; font-weight: 800; color: var(--primary);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }


.sw-update-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9998;
  display: flex; align-items: center; gap: 10px;
  
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  background: rgba(20, 30, 25, 0.86);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 0 6px 22px rgba(0,0,0,0.45);
  animation: sw-banner-in 0.3s ease;
}
@keyframes sw-banner-in {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.sw-update-text { flex: 1; font-size: 13.5px; font-weight: 600; color: color-mix(in srgb, var(--text) 92%, transparent); line-height: 1.35; }

.sw-update-btn { flex-shrink: 0; white-space: nowrap; }
.sw-update-close {
  background: none; border: none; cursor: pointer;
  color: #9ca3af; padding: 4px;
  display: flex; align-items: center; justify-content: center;
}


.mobile-inline-search {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 8px;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  animation: inline-search-in 0.18s ease;
}
@keyframes inline-search-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.inline-search-back {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); padding: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.inline-search-input {
  flex: 1; background: var(--input-bg);
  border: var(--input-border-w) solid var(--input-border);
  border-radius: var(--input-radius); padding: 8px 12px;
  font-size: 16px; color: var(--input-text); outline: none;
  touch-action: manipulation;
}
.inline-search-input::placeholder { color: var(--input-placeholder); }
.inline-search-input:focus { border-color: var(--input-border-focus); background: var(--input-bg-focus); }

.inline-search-go { flex-shrink: 0; }


.mobile-inline-search--inhdr {
  width: 100%; padding: 0; background: none; animation: none;
}

.app-header--searching .app-header-inner { padding-inline-end: 12px !important; }


.mobile-city-dropdown {
  position: absolute; top: calc(100% + 4px); left: 12px; right: 12px;
  z-index: 300; max-height: 300px; overflow-y: auto;
}




.spots-inline-banner {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--card-padding); margin: 0;
}
.spots-inline-header {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 10px;
}
.spots-inline-more {
  margin-inline-start: auto; font-size: 12px; color: var(--primary);
  text-decoration: none; font-weight: 600;
}
.spots-inline-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.spots-inline-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 10px; text-decoration: none;
  transition: background 0.15s;
}
.spots-inline-card:hover { background: var(--border); }
.spots-inline-name {
  font-size: 12px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px;
}
.spots-inline-meta {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--text-muted);
}
.spots-inline-sep { opacity: 0.5; }
.spots-inline-fish { color: var(--text-muted); }



.more-page { padding: 8px 0 100px; }


.more-featured {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; margin: 16px 0 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}
.more-featured:active { background: var(--bg-warm); }
.more-featured-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--bg-warm); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
}
.more-featured-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.more-featured-title { font-size: 15px; font-weight: 700; color: var(--text); }
.more-featured-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.3; }
.more-featured-arrow { color: var(--text-dim); flex-shrink: 0; }
.more-section { margin-bottom: 20px; }
.more-section-label {
  
  font-size: var(--fs-min); font-weight: 700; letter-spacing: 0.7px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0 4px; margin-bottom: 6px;
}
.more-section-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.more-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: var(--card-padding) 10px; text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.more-row:last-child { border-bottom: none; }
.more-row:active { background: color-mix(in srgb, var(--primary) 7%, transparent); }
.more-row-icon {
  
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); flex-shrink: 0; margin-top: 1px;
}
.more-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.more-row-title { font-size: 14px; font-weight: 600; color: var(--text); }
.more-row-desc  { font-size: 12px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more-row-arrow { color: var(--text-muted); flex-shrink: 0; }
.more-row-badge {
  flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-sm);
  background: var(--primary); color: var(--btn-text); font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.more-empty {
  text-align: center; color: var(--text-muted); font-size: 14px;
  padding: 32px 16px;
}


.location-selector {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--primary);
  cursor: pointer; transition: all var(--transition);
  margin-top: 12px; margin-bottom: 10px;
}
.location-selector:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.location-selector svg { flex-shrink: 0; }

.location-picker {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border-light);
  animation: slideDown 0.2s ease-out;
  max-height: 400px; overflow-y: auto;
}
.location-picker-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.location-search { margin-bottom: 10px; padding: 10px 14px; font-size: 16px; border-radius: var(--radius-sm); background: var(--bg); touch-action: manipulation; }
.location-picker-header h3 { font-size: 16px; font-weight: 700; }
.location-picker h4 { font-size: 14px; font-weight: 600; margin: 12px 0 8px; color: var(--text-dim); }
.location-picker-regions, .location-picker-cities { display: flex; flex-wrap: wrap; gap: 6px; }
.location-chip {
  padding: 6px 14px; border-radius: var(--chip-radius);
  background: var(--chip-bg); border: 1px solid var(--chip-border);
  font-size: 12px; font-weight: 600; color: var(--chip-text);
  cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.location-chip:hover { border-color: var(--btn-bg); background: var(--primary-light); }
.location-chip.active { background: var(--chip-bg-active); color: var(--chip-text-active); border-color: var(--chip-bg-active); }




.feed-quick-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 20px;
}
.quick-stat {
  background: var(--card); border-radius: var(--radius-sm);
  padding: 16px 10px; text-align: center;
  box-shadow: var(--shadow-xs); transition: all var(--transition);
  color: var(--text); border: 1px solid var(--border-light);
}
.quick-stat:hover { box-shadow: var(--shadow); border-color: var(--primary-light); }
.quick-stat-num { display: block; font-size: 24px; font-weight: 800; color: var(--primary); line-height: 1.2; }
.quick-stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-top: 3px; font-weight: 600; }


.top-spots-section { margin-bottom: 20px; }
.top-spots-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.top-spots-carousel {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; scrollbar-width: none;
}
.top-spots-carousel::-webkit-scrollbar { display: none; }
.top-spot-card {
  flex: 0 0 auto; min-width: 200px; max-width: 240px;
  background: var(--card); border-radius: var(--radius-sm);
  padding: var(--card-padding); box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light); scroll-snap-align: start;
  transition: all var(--transition); color: var(--text); text-decoration: none;
  display: flex; flex-direction: column; gap: 6px;
}
.top-spot-card:hover {
  box-shadow: var(--shadow-md); border-color: var(--primary-light);
  transform: translateY(-2px);
}
.top-spot-name { font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-spot-rating { display: flex; align-items: center; gap: 2px; }
.top-spot-rating .star-filled { color: #c4943a; fill: #c4943a; }
.top-spot-rating .star-empty { color: var(--border); }
.top-spot-rating-num { font-size: 13px; font-weight: 600; margin-inline-start: 4px; color: var(--text-muted); }
.top-spot-reviews { font-size: 12px; color: var(--text-muted); margin-inline-start: 2px; }
.top-spot-species { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--text-muted); }
.top-spot-species .species-tag {
  font-size: 12px; background: var(--bg);
  padding: 2px 8px; border-radius: var(--radius-sm); color: var(--text-muted); white-space: nowrap;
}



.feed-tabs { display: none; }
.feed-tab { display: none; }
.feed-page .feed-sort { display: none; }
.feed-page .sort-chip { display: none; }


.sort-chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center;
  padding: 5px 13px; border-radius: var(--chip-radius);
  font-size: 13px; font-weight: 500; font-family: inherit;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg); color: var(--chip-text);
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.sort-chip:hover { background: var(--bg-warm); color: var(--text); }
.sort-chip.active {
  background: var(--chip-bg-active);
  color: var(--chip-text-active); border-color: var(--chip-bg-active);
  font-weight: 600;
}

.feed-sort {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 12px;
}



.feed-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px 6px;
  gap: 8px;
  flex-shrink: 0;
}
.feed-filter-left {
  display: flex; align-items: center; gap: 6px;
}
.feed-filter-dropdown-wrap { position: relative; }
.feed-filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px;
  border-radius: var(--chip-radius);
  background: var(--primary-bg);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text-muted); font-size: 12.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.feed-filter-chip:active { background: color-mix(in srgb, var(--primary) 18%, transparent); }
.feed-filter-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 200;
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  min-width: 140px;
}
.feed-filter-menu-item {
  display: block; width: 100%;
  padding: 10px 14px; text-align: start;
  font-size: 13px; font-weight: 400; font-family: inherit;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  transition: background 0.12s;
}
.feed-filter-menu-item:hover { background: var(--border-light); }
.feed-filter-menu-item.active { color: var(--text); font-weight: 600; }
.feed-notif-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: none; cursor: pointer;
  color: rgba(150,165,158,0.55);
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.feed-notif-btn.active { color: var(--sel-text); background: var(--sel-bg); }
.feed-notif-badge {
  position: absolute; top: 1px; right: 1px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--badge-bg); color: var(--badge-text);
  font-size: var(--fs-min); font-weight: 700; line-height: 1;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 2.5px; line-height: 1;
  border: 1.5px solid var(--bg);
}


@media (max-width: 767px) {
  
  .page.feed-page {
    overflow-x: clip;
    
    padding-top: 8px;
  }
  .feed-filter-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--bg);
  }
  
  
  .spawn-ban-banner { position: relative; z-index: 0; }
}


.feed-fab { display: none; }
@media (max-width: 767px) {
  .feed-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: calc(var(--tab-height) + env(safe-area-inset-bottom) + 16px);
    right: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 45%, transparent);
    z-index: 89;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
  }
  .feed-fab:active {
    transform: scale(0.93);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--primary) 30%, transparent);
  }
}


.feed-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 auto 14px; gap: 8px;
  max-width: 600px; width: 100%;
}
@media (min-width: 768px) {
  .feed-toolbar {
    position: sticky;
    top: var(--desktop-header-h);
    z-index: 101;
    background: var(--bg);
    padding: 0 0 10px;
    margin: 0 0 8px;
    width: 100%;
    max-width: none;
  }
  
  .posts-list > *,
  .post-card,
  .recommend-card,
  .ad-banner,
  .empty-state,
  .loading {
    max-width: none !important;
    width: 100%;
    margin-inline-start: 0;
    margin-inline-end: 0;
  }
}
.feed-toolbar-tabs { display: flex; gap: 4px; }
.feed-toolbar-tab {
  padding: 7px 16px; border-radius: var(--tab-radius);
  font-size: 13px; font-weight: 600; border: none; cursor: pointer;
  background: var(--tab-bg); color: var(--tab-text);
  transition: all 0.15s; font-family: inherit;
}
.feed-toolbar-tab:hover { background: var(--border-light); color: var(--text); }
.feed-toolbar-tab.active { background: var(--tab-bg-active); color: var(--tab-text-active); }
.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--danger); color: #fff; border-radius: 9px;
  font-size: 12px; font-weight: 700; margin-inline-start: 5px; line-height: 1;
  transition: background 0.2s;
}
.feed-toolbar-tab.active .tab-badge { background: rgba(255,255,255,0.3); }


.notif-feed { display: flex; flex-direction: column; gap: 4px; }
.notif-feed-topbar { display: flex; align-items: center; gap: 4px; padding: 2px 0 8px; }
@media (max-width: 767px) {
  
  .notif-feed-topbar {
    position: sticky; top: calc(var(--safe-top) + var(--header-height));
    z-index: 499;
    background: var(--bg);
    margin-inline: -12px; padding-inline: 12px;
  }
  
  .notif-feed-topbar::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 100%;
    height: calc(var(--safe-top) + var(--header-height) + 8px);
    background: var(--bg);
    pointer-events: none;
  }
  
  .app-main:has(.notif-feed-topbar) { overflow: visible; }
}
.notif-feed-back {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  color: var(--text); border-radius: var(--radius-sm);
  text-decoration: none;
}
.notif-feed-back:hover { background: var(--bg-warm); }
.notif-feed-heading { font-size: 17px; font-weight: 700; color: var(--text); }
.notif-feed-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 4px 10px; border-bottom: 1px solid var(--border-light); margin-bottom: 4px;
}
.notif-feed-count { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.notif-feed-mark-all {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--primary); background: none; border: none;
  cursor: pointer; padding: 4px 8px; border-radius: var(--radius-xs);
  font-family: inherit; transition: background 0.15s;
}
.notif-feed-mark-all:hover { background: var(--primary-light); }
.notif-feed-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; border: 1px solid transparent;
  transition: all var(--transition);
}
.notif-feed-item:hover { background: var(--bg-warm); }
.notif-feed-item.unread { background: var(--primary-light); border-color: color-mix(in srgb, var(--primary) 12%, transparent); }
.notif-feed-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-warm); color: var(--primary);
}
.notif-feed-body { flex: 1; min-width: 0; }

.notif-feed-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notif-feed-title {
  font-size: 13px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-feed-text { font-size: 12px; color: var(--text-dim); margin-top: 1px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-feed-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }


.notif-sheet { min-height: 50dvh; }
.notif-sheet-bar { display: flex; align-items: center; gap: 6px; margin: 2px 2px 10px; }
.notif-sheet-count {
  flex: 1 1 auto; min-width: 0;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-sheet-btn {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 6px 10px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: transparent; color: var(--text-muted);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.notif-sheet-btn:active { background: var(--bg-warm); }

@media (max-width: 380px) {
  .notif-sheet-btn { flex-shrink: 0; padding: 6px 8px; }
  .notif-sheet-btn--settings { min-width: 34px; justify-content: center; }
  .notif-sheet-btn--settings .notif-sheet-btn-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
}
.notif-sheet-list {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;     
}
.notif-sheet .notif-feed-item {
  width: 100%; text-align: start; background: transparent;
  font: inherit; cursor: pointer;
}
.notif-sheet .notif-feed-item.unread { background: var(--primary-light); }

.notif-sheet .notif-feed-item.is-expanded .notif-feed-title,
.notif-sheet .notif-feed-item.is-expanded .notif-feed-text { white-space: normal; overflow: visible; }


.feed-filter-wrap { position: relative; }
.feed-filter-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-xs);
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-muted); cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.feed-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.feed-filter-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px;
  box-shadow: var(--shadow-md); z-index: 300; min-width: 180px;
  animation: hover-card-in 0.12s ease-out;
}
.feed-filter-title {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  padding: 4px 8px 8px; border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px;
}
.feed-filter-option {
  display: block; width: 100%; text-align: start;
  padding: 8px 10px; border: none; background: none;
  border-radius: var(--radius-xs); font-size: 13px;
  font-weight: 500; color: var(--text-dim); cursor: pointer;
  font-family: inherit; transition: all 0.1s;
}
.feed-filter-option:hover { background: var(--bg); }
.feed-filter-option.active { color: var(--sel-text); font-weight: 700; background: var(--sel-bg); }


.feed-promo { margin-bottom: 16px; }
.promo-card {
  display: block; padding: 20px; border-radius: var(--radius);
  color: white; text-decoration: none;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 30%, transparent);
}
.promo-title { display: block; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.promo-desc { display: block; font-size: 13px; opacity: 0.85; }


.recommend-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  border-inline-start: 3px solid var(--primary);
  background: var(--card);
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  margin: 0;
}
.recommend-card:hover { background: var(--bg-warm); border-color: var(--border); }
.recommend-card-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
}
.recommend-card-body { flex: 1; min-width: 0; }
.recommend-card-title {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.recommend-card-text {
  font-size: 14px; font-weight: 600; color: var(--text);
  margin-top: 2px; line-height: 1.35;
}
.recommend-card-meta { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.recommend-card-action {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0;
}
.recommend-card-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border-light);
}
.recommend-card-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-warm); font-weight: 700; font-size: 15px; color: var(--text-muted);
}
.recommend-card-follow-btn {
  background: var(--btn-bg); color: var(--btn-text);
  border: none; border-radius: var(--btn-radius-sm);
  padding: 4px 10px; font-size: 12px; font-weight: var(--btn-weight);
  cursor: pointer; white-space: nowrap; transition: background 0.15s; font-family: inherit;
}
.recommend-card-follow-btn:hover { background: var(--btn-bg-hover); }
.recommend-card-arrow {
  font-size: 20px; color: var(--text-muted); flex-shrink: 0; line-height: 1;
}


.tip-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.tip-popup {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.tip-popup-header {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px; border-bottom: 2px solid var(--border-light);
}
.tip-popup-icon {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.tip-popup-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--text-muted); margin-bottom: 3px;
}
.tip-popup-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.35; }
.tip-popup-close {
  margin-inline-start: auto; flex-shrink: 0; background: none; border: none;
  color: var(--text-muted); cursor: pointer; padding: 2px;
}
.tip-popup-close:hover { color: var(--text); }
.tip-popup-body { padding: 16px 18px; }
.tip-popup-body p { font-size: 15px; color: var(--text-dim); line-height: 1.6; margin: 0; }
.tip-popup-detail { margin-top: 10px !important; font-size: 13px !important; color: var(--text-muted) !important; }

.knowledge-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 9px 13px; margin-bottom: 10px;
}
.knowledge-search input {
  border: none; background: none; outline: none; font-size: 14px;
  color: var(--text); flex: 1; font-family: inherit;
}
.knowledge-search svg { color: var(--text-muted); flex-shrink: 0; }
.knowledge-filters { margin-bottom: 8px; }
.knowledge-count { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.knowledge-section { margin-bottom: 20px; }
.knowledge-section-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted); margin-bottom: 8px; padding-inline-start: 2px;
}
.knowledge-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-inline-start: 3px solid var(--primary); border-radius: var(--radius-sm);
  margin-bottom: 6px; cursor: pointer; transition: all 0.15s;
}
.knowledge-card:hover { background: var(--bg-warm); }
.knowledge-card.expanded { border-color: var(--border); }
.knowledge-card-header {
  display: flex; align-items: flex-start; gap: 10px; padding: var(--card-padding);
}
.knowledge-card-icon {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.knowledge-card-text {
  flex: 1; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4;
}
.knowledge-card-chevron {
  font-size: 12px; color: var(--text-muted); flex-shrink: 0; padding-top: 2px;
}
.knowledge-card-detail {
  padding: 0 14px 13px 54px;
  font-size: 13px; color: var(--text-dim); line-height: 1.6;
  border-top: 1px solid var(--border-light); padding-top: 10px;
  margin-top: 0;
}

.tip-popup-catalog-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 8px 14px;
  background: var(--btn-bg); color: var(--btn-text);
  border-radius: var(--btn-radius-sm); font-size: 13px; font-weight: var(--btn-weight);
  text-decoration: none; transition: background 0.15s;
}
.tip-popup-catalog-btn:hover { background: var(--btn-bg-hover); }


.posts-list { display: flex; flex-direction: column; gap: 8px; }

.feed-post-group { display: flex; flex-direction: column; gap: 8px; }

.post-card {
  
  --card-padding: 12px;
  background: var(--card); border-radius: var(--radius-lg);
  padding: 6px 0 var(--card-padding); box-shadow: var(--shadow);
  border: none;
  transition: all var(--transition); overflow: hidden;
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}
@media (min-width: 768px) {
  .post-card {
    max-width: none; margin: 0; width: 100%;
    border-radius: var(--radius-lg);
  }
}

.post-card.share-open,
.post-card.menu-open {
  overflow: visible;
  content-visibility: visible;
  contain: none;
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { box-shadow: var(--shadow-md); }
}

@media (max-width: 767px) {
  .post-card { padding: 6px 0 var(--card-padding); }
  
  .app-main:has(.feed-page) { padding-inline: 0; }
  
  .app-main:has(.aq-wrap) { padding-inline: 0; }
  
  .feed-page > *:not(.posts-list) { padding-inline: 12px; }
  
  .feed-page .posts-list .post-card {
    border-radius: 0; border: none; box-shadow: none;
  }
  
  .feed-page .posts-list .post-header,
  .feed-page .posts-list .post-text-wrap,
  .feed-page .posts-list .post-actions,
  .feed-page .posts-list .post-pinned-label { padding-inline: 12px; }
  .feed-page .posts-list .post-catch-location-row { margin-inline: 12px; }
  
  .post-author .avatar-sm,
  .post-author .avatar-placeholder { width: 36px; height: 36px; flex-shrink: 0; }
  .post-author { flex: 1; min-width: 0; }
  .post-author-info { flex-wrap: nowrap; min-width: 0; }
  .author-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .post-time-dot, .post-time { flex-shrink: 0; }
  
  .post-mosaic-single img,
  .post-mosaic-single video {
    width: 100%; height: auto; max-height: 86vw;
    object-fit: cover; object-position: center 15%;
  }
  
  .post-card--feed .post-text { margin-top: 4px; }
  
  .post-catch-location-row,
  .post-gallery-meta { justify-content: flex-start !important; text-align: start; gap: 6px; }
  .post-catch-location-row { margin: var(--card-padding) var(--card-padding) 0; }
  
  .post-actions { min-height: 0; align-items: center; padding-top: 8px; padding-bottom: 4px; margin-top: 4px; gap: 2px; }
  .action-btn { min-height: 0; min-width: 36px; justify-content: center; padding: 4px 6px; gap: 5px; }
  .bookmark-btn { min-width: 40px; }
  .post-follow-btn-action { height: 34px; padding: 0 10px; }
}


.post-pinned-label {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px var(--card-padding) 0;
  margin-bottom: 2px;
  font-size: 12px; font-weight: 600;
  color: var(--primary);
}
.post-header { margin-bottom: 4px; display: flex; align-items: center; padding: 0 var(--card-padding); }
.post-header--modal { gap: 8px; }
.post-modal-back-btn { margin-inline-end: 2px; flex-shrink: 0; }
.post-seq-id-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border-radius: 7px;
  padding: 2px 7px;
  pointer-events: none;
  letter-spacing: 0.3px;
}
.post-author {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  
  flex: 1 1 auto; min-width: 0;
}
.post-follow-btn-action--header, .post-menu-wrapper { flex-shrink: 0; }
.post-author .avatar-sm { width: 34px; height: 34px; }
.post-author .avatar-placeholder { width: 34px; height: 34px; font-size: 13px; }
.post-author-info { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; flex-wrap: nowrap; min-width: 0; flex: 1 1 auto; }
.post-author-line1 { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }

.post-author-line2 { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; overflow: hidden; width: 100%; }
.post-author-line2 > * { flex-shrink: 0; }
.post-author-line2 .post-rank-inline { flex-shrink: 1; min-width: 0; display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; overflow: hidden; }

.post-rank-inline .post-rank-league { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.post-rank-inline b { flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 14px; }
.post-time-dot { color: var(--text-muted); margin: 0 3px; font-size: 12px; }
.post-time { font-size: 12px; color: var(--text-muted); }

.post-scheduled-badge {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 600;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent);
  padding: 1px 8px; border-radius: 999px;
}
.post-author-line2 .author-rank-chip + .post-time::before,
.post-author-line2 .post-rank-inline + .post-time::before,
.post-author-line2 .author-meta-stat + .post-time::before { content: '· '; }

.post-rank-inline { font-size: 12px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.post-rank-inline b { color: var(--primary); font-weight: 800; }

.post-rank-score { display: inline; white-space: nowrap; }
.post-rank-score svg { display: inline-block; vertical-align: -1px; margin-inline-start: 3px; }

.post-rank-inline:hover b { text-decoration: underline; }
.post-test-badge {
  display: inline-flex; align-items: center; line-height: 1.5;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  color: #b45309; background: rgba(245,158,11,.18);
  border: 1px solid rgba(245,158,11,.4); border-radius: var(--radius-xs);
  padding: 1px 6px; text-transform: uppercase;
}
.verified-badge { display: inline-flex; align-items: center; color: #1d9bf0; vertical-align: middle; margin-inline-start: 3px; flex-shrink: 0; }



.rank-ring .avatar-sm,
.rank-ring .avatar-placeholder { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px rgba(148,163,184,0.30); }
.rank-ring--1 .avatar-sm, .rank-ring--1 .avatar-placeholder { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px #6aa84f; }
.rank-ring--2 .avatar-sm, .rank-ring--2 .avatar-placeholder { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px #3b9ed1; }
.rank-ring--3 .avatar-sm, .rank-ring--3 .avatar-placeholder { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px #9b59d0; }
.rank-ring--4 .avatar-sm, .rank-ring--4 .avatar-placeholder { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px #f0b429; }


.author-level-badge { display: none; }

.post-author .avatar-online-wrap .online-dot { top: -1px; right: -1px; bottom: auto; }


.author-rank-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 9px;
  line-height: 1.5; color: #94a3b8; background: rgba(148,163,184,0.12);
}
.author-rank-chip--1 { color: #6aa84f; background: rgba(106,168,79,0.14); }
.author-rank-chip--2 { color: #3b9ed1; background: rgba(59,158,209,0.14); }
.author-rank-chip--3 { color: #9b59d0; background: rgba(155,89,208,0.15); }
.author-rank-chip--4 { color: #d99a00; background: rgba(240,180,41,0.16); }
.author-meta-stat {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; color: var(--text-muted); font-weight: 600;
}
.author-meta-stat svg { flex-shrink: 0; opacity: 0.85; }
.author-clev-badge {
  font-size: 13px; line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 0 2px color-mix(in srgb, var(--primary) 50%, transparent));
}



.author-badge-btn--founder {
  border: 1px solid var(--primary); border-radius: var(--radius-pill);
  background: transparent;
}
.author-founder-emoji { font-size: 12px; }



.author-badge-btn {
  background: none; border: none; padding: 0; margin: 0;
  width: 18px; height: 18px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.author-badge-btn svg { width: 14px; height: 14px; display: block; }
.author-badge-btn .author-badge,
.author-badge-btn .author-founder-emoji { font-size: 12px; line-height: 1; }

.post-author-line1 .author-name {
  flex: 0 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


.post-author-line1 .author-founder-badge,
.post-author-line1 .post-test-badge,
.post-author-line2 .author-rank-chip {
  height: 18px; padding: 0 8px; line-height: 1;
  font-size: 12px; border-radius: var(--radius-pill);
}

.founder-modal-ov {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.founder-modal {
  position: relative; width: 100%; max-width: 340px; text-align: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 20px 22px;
}
.founder-modal-x {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--text-dim); cursor: pointer;
}
.founder-modal-emoji { font-size: 34px; line-height: 1; margin-bottom: 6px; }
.founder-modal-title { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.founder-modal-text { font-size: 14px; line-height: 1.5; color: var(--text-dim); margin: 0 0 12px; }
.founder-modal-thanks { font-size: 14px; font-weight: 700; color: var(--primary); }


.author-badge {
  font-size: 13px; line-height: 1; flex-shrink: 0; margin-inline-start: 3px;
  cursor: help; vertical-align: middle;
}


.post-text-wrap { display: flex; flex-direction: column; padding: 0 var(--card-padding); }
.post-title-line {
  font-size: 14px; font-weight: 700; color: var(--text);
  padding: 6px 12px 0; letter-spacing: 0.02em; line-height: 1.4;
}
.post-read-more {
  display: inline; padding: 0; margin-inline-start: 4px;
  font-size: 13px; color: var(--primary); font-weight: 600;
  white-space: nowrap;
}
.post-read-more--block {
  display: block;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}
.post-text--clickable { cursor: pointer; }
.post-text {
  font-size: 15px; line-height: 1.5; margin: var(--card-padding) 0 0;
  white-space: pre-wrap; color: var(--text);
  word-break: break-word; overflow-wrap: anywhere;
}

.post-text-clamped-wrap { position: relative; }
.post-text--clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal; 
}

.post-read-more-overlay {
  position: absolute;
  bottom: 0; right: 0;
  height: 1.6em; 
  display: flex; align-items: center;
  padding-inline-start: 48px;
  border: none; cursor: pointer;
  font-size: 15px; font-weight: 400;
  color: var(--text-muted);
  background: linear-gradient(to right, transparent, var(--card) 38%);
}


.post-catch-location-row {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 5px; flex-wrap: nowrap; margin: 7px var(--card-padding) 3px; text-align: start;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.post-catch-location-row::-webkit-scrollbar { display: none; }

.post-catch-badge,
.post-location-badge,
.post-record-badge,
.post-pb-badge,
.post-catch-big {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 500; line-height: 1;
  height: 22px; padding: 0 7px; border-radius: var(--radius-xs); white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  
  appearance: none; -webkit-appearance: none;
  font-family: inherit; cursor: default; box-sizing: border-box;
  vertical-align: middle;
}

.post-catch-badge > *,
.post-location-badge > *,
.post-record-badge > *,
.post-pb-badge > *,
.post-catch-big > * {
  display: inline-flex; align-items: center; line-height: 1;
}
.post-catch-badge svg,
.post-location-badge svg { flex-shrink: 0; display: block; }

.post-catch-badge { color: rgba(255,255,255,0.55); }
.post-catch-badge svg { color: rgba(255,255,255,0.45); }

.post-location-badge { flex-shrink: 1; min-width: 0; color: rgba(255,255,255,0.45); overflow: hidden; }
.post-location-badge svg { color: rgba(255,255,255,0.35); flex-shrink: 0; display: block; }
.post-record-badge.rec-city    { color: rgba(180,184,200,0.70); cursor: pointer; }
.post-record-badge.rec-region  { color: rgba(190,160,60,0.80); cursor: pointer; }
.post-record-badge.rec-country { color: rgba(70,185,205,0.80); cursor: pointer; }
.post-record-badge:hover { opacity: 0.85; }
.post-pb-badge  { color: rgba(60,175,155,0.80); }
.post-catch-big { color: rgba(255,255,255,0.45); }

.catch-badge-hint { opacity: 0.5; font-size: 12px; line-height: 1; }

.catch-badge-weight { font-size: 12px; font-weight: 700; line-height: 1; color: rgba(255,255,255,0.85); }
.post-gallery-meta .catch-badge-weight { color: #ffe9b0; }

.post-location-text {
  overflow: hidden; white-space: nowrap; min-width: 0; text-overflow: ellipsis;
}

.post-catch-badge--btn,
.post-location-badge--btn {
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.post-catch-badge--btn:hover,
.post-catch-badge--btn.active {
  background: var(--accent); color: #fff; border-color: transparent;
}
.post-location-badge--btn:hover,
.post-location-badge--btn.active {
  border-color: rgba(255,255,255,0.15); color: var(--text);
}

.post-gallery-meta {
  transition: opacity 0.25s;
}


.post-gallery-meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; justify-content: flex-start;
  gap: 5px; flex-wrap: nowrap; text-align: start;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 28px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.20) 50%, transparent);
  pointer-events: none;
}
.post-gallery-meta > * { pointer-events: auto; }
.post-gallery-meta .post-catch-badge,
.post-gallery-meta .post-location-badge,
.post-gallery-meta .post-record-badge,
.post-gallery-meta .post-pb-badge,
.post-gallery-meta .post-catch-big {
  background: rgba(0,0,0,0.42); color: rgba(255,255,255,0.90);
  border-color: rgba(255,255,255,0.12); text-shadow: none;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.post-gallery-meta .post-catch-badge svg { color: #e8c060; }
.post-gallery-meta .post-location-badge svg { color: #c4936a; }

.post-gallery-meta .post-catch-badge--btn:hover,
.post-gallery-meta .post-catch-badge--btn.active { background: var(--accent); color: #fff; }


.post-inline-map {
  margin: 6px var(--card-padding) 4px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); position: relative;
}
.post-inline-map-frame {
  width: 100%; height: 190px; border: none; display: block;
}
.post-inline-map-open {
  display: block; text-align: end; padding: 5px 10px;
  font-size: 12px; font-weight: 600; color: var(--primary);
  background: var(--bg-warm); border-top: 1px solid var(--border-light);
}
.post-inline-map-nocoords {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  font-size: 13px; color: var(--text-dim); min-width: 0;
}
.post-inline-map-loc {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.post-inline-map-link {
  margin-inline-start: auto; color: var(--primary); font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}


.skel { background: var(--border); border-radius: 4px; }
.skel-line { height: 12px; }
.skel-bar { height: 8px; border-radius: 4px; }


.post-catch {
  display: inline-flex; gap: 10px; font-size: 13px; font-weight: 700;
  margin-bottom: 4px; align-items: center;
  color: var(--accent); background: var(--accent-light);
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.post-catch span { display: flex; align-items: center; gap: 4px; }
.post-location {
  font-size: 13px; color: var(--text-dim);
  display: flex; align-items: center; gap: 4px; margin-bottom: 4px;
}
.post-location svg { color: var(--orange); flex-shrink: 0; }
.post-fish-illustration { display: none; }


.post-gallery-wrap {
  position: relative;
  width: 100%;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 0;
  touch-action: pan-y;
}
.gallery-container { position: relative; touch-action: pan-y; }



.post-mosaic-single {
  position: relative;
  width: 100%;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}
.post-mosaic-single img,
.post-mosaic-single video {
  width: 100%;
  height: auto;
  display: block;
}


@media (min-width: 768px) {
  .post-card--feed .post-mosaic-single {
    max-height: 600px;
    overflow: hidden;
  }
  .post-card--feed .post-mosaic-single img,
  .post-card--feed .post-mosaic-single video {
    max-height: 600px;
    object-fit: cover;
    object-position: center 15%;
  }
}


.video-sound-toggle {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.15s;
}
.post-mosaic-single:hover .video-sound-toggle,
.post-mosaic-item:hover .video-sound-toggle { opacity: 1; }
.video-sound-toggle:hover { background: rgba(0,0,0,0.8); }


.post-mosaic-single.video-playing .post-mosaic-video-badge,
.post-mosaic-item.video-playing .post-mosaic-video-badge { opacity: 0; transition: opacity 0.2s; }



.post-mosaic-smart {
  display: grid;
  gap: 2px;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.post-mosaic-smart.grid-2 {
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16 / 9;
}

.post-mosaic-smart.grid-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 4 / 3;
}
.post-mosaic-smart.grid-3 .post-mosaic-item:first-child {
  grid-row: span 2;
}

.post-mosaic-smart.grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1 / 1;
}
.post-mosaic-item {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  min-width: 0;
  min-height: 0;
}
.post-mosaic-item img,
.post-mosaic-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.mosaic-more-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.52);
  color: #fff; font-size: 28px; font-weight: 700;
  letter-spacing: -0.5px;
  pointer-events: none;
}

.post-mosaic-row {
  display: flex; gap: 0; width: 100%; overflow: hidden;
}


.post-mosaic {
  display: grid;
  gap: 0;
  width: 100%;
  background: var(--bg);
  overflow: hidden;
}


.post-mosaic.count-1 { display: block; background: transparent; }
.post-mosaic.count-1 .post-mosaic-item { background: transparent; max-height: 560px; }
.post-mosaic.count-1 .post-mosaic-item img,
.post-mosaic.count-1 .post-mosaic-item video {
  width: 100%; height: auto; max-height: 560px;
  object-fit: contain; background: #0a0a0a;
}


.post-mosaic.count-2 {
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 16/9;
}


.post-mosaic.count-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 16/10;
}
.post-mosaic.count-3 .post-mosaic-item:nth-child(1) {
  grid-row: span 2;
}


.post-mosaic.count-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1/1;
}


.post-mosaic.count-many {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1/1;
}
.post-mosaic-more {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  color: #fff; font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}


.post-mosaic-video-badge {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.post-mosaic-video-badge-inner {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(0,0,0,0.20); color: rgba(255,255,255,0.70);
  border: 2px solid rgba(255,255,255,0.45);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.post-mosaic-video-badge-inner svg {
  margin-inline-start: 4px;
}
.post-mosaic-video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.65); color: #fff;
  font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  pointer-events: none;
}

@media (min-width: 768px) {
  .post-mosaic.count-1 .post-mosaic-item { max-height: 500px; }
  .post-mosaic.count-1 .post-mosaic-item img,
  .post-mosaic.count-1 .post-mosaic-item video { max-height: 500px; }
}


.post-gallery { display: flex; overflow: hidden; }
.post-gallery::-webkit-scrollbar { display: none; }
.gallery-img {
  min-width: 100%; width: 100%; max-height: 500px; object-fit: contain;
  flex-shrink: 0; background: #0a0a0a;
}
.gallery-video { min-width: 100%; width: 100%; max-height: 500px; background: #000; display: block; }

@media (min-width: 768px) {
  .gallery-img { max-height: 420px; object-fit: contain; border-radius: var(--radius-xs); background: #0a0a0a !important; }
  .gallery-video { max-height: 420px; border-radius: var(--radius-xs); }
}

:root.dark .gallery-img { background: #0a0a0a; }
@media (prefers-color-scheme: dark) { :root:not(.light) .gallery-img { background: #0a0a0a; } }

.photo-counter {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  background: rgba(0,0,0,0.55); color: white;
  font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--radius);
}


.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.48); color: white; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s; z-index: 2; padding: 0;
}
.gallery-arrow:hover { background: rgba(0,0,0,0.72); }
.gallery-container:hover .gallery-arrow { opacity: 1; }
.gallery-arrow-left { left: 6px; }
.gallery-arrow-right { right: 6px; }
@media (max-width: 767px) { .gallery-arrow { display: none !important; } }


.gallery-dots {
  display: flex; justify-content: center; gap: 5px;
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.gallery-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer;
  transition: all 0.2s; border: none; padding: 0;
}
.gallery-dot.active { background: white; transform: scale(1.3); }
.gallery-dot-video { border: 1.5px solid rgba(255,255,255,0.8); }


.lightbox-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.96); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.15s; cursor: pointer;
}

.lightbox-img {
  max-width: 95vw; max-height: 90vh; object-fit: contain; border-radius: 4px;
  cursor: pointer;
}
.lightbox-video { max-width: 95vw; max-height: 90vh; border-radius: 4px; }
.lightbox-counter {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top, 0px));
  left: 50%; transform: translateX(-50%);
  color: white; font-size: 14px; font-weight: 600;
  background: rgba(0,0,0,0.5); padding: 4px 16px; border-radius: var(--radius-pill);
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12); border: none; color: white;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }



.post-expanded-view {
  position: absolute; inset: 0; background: #0d0d0d;
  display: flex; align-items: center; justify-content: center; z-index: 20;
}
.post-expanded-img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; }


.post-lightbox {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: expandIn 0.18s ease;
  touch-action: none; 
  overscroll-behavior: contain;
}
.post-lightbox--closing {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.post-lightbox-img {
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.post-lightbox-reset-zoom {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-pill); padding: 6px 18px; font-size: 13px; cursor: pointer;
  backdrop-filter: blur(8px);
}
.post-expanded-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.post-exp-counter {
  position: absolute;
  bottom: 12px;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  background: rgba(0,0,0,0.55);
  padding: 3px 14px;
  border-radius: var(--radius);
  pointer-events: none;
}
.post-exp-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.14);
  border: none; color: white;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  backdrop-filter: blur(4px);
}
.post-exp-prev { left: 12px; }
.post-exp-next { right: 12px; }
.post-exp-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 14px));
  right: 14px;
  background: rgba(0,0,0,0.55);
  border: none; color: white;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10001;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@keyframes expandIn { from { opacity: 0.5; } to { opacity: 1; } }


.post-actions {
  display: flex; align-items: center; gap: 2px;
  
  padding: 6px calc(var(--card-padding) - 6px) 2px;
  border-top: 1px solid var(--border-light); margin-top: 6px;
  
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}

.post-actions-gap { flex: 1 1 auto; }
.action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 12.5px; padding: 0 2px;
  font-weight: 600; transition: color var(--transition); font-family: inherit;
  line-height: 1;
}

.post-actions .action-btn > svg { width: 20px; height: 20px; flex-shrink: 0; display: block; }
.action-btn span { line-height: 1; font-size: 13px; }

.post-actions .action-btn {
  min-width: 40px; min-height: 40px; padding: 0 8px;
  justify-content: center; border-radius: var(--radius-pill);
  background: none;
  transition: color var(--transition), background var(--transition);
}

.post-actions .action-btn:active { background: var(--primary-bg); }
@media (hover: hover) {
  .post-actions .action-btn:hover { background: var(--primary-bg); }
}
@media (max-width: 640px) {
  .post-actions .action-btn { min-height: 44px; }
}
.post-actions-time {
  color: var(--text-muted); font-size: 12.5px; padding: 0 6px; white-space: nowrap;
}
.post-views {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  padding: 0 8px; user-select: none;
}
.post-views svg { flex-shrink: 0; display: block; }
.action-btn:hover { color: var(--primary); }
.action-btn.liked { color: var(--danger); }
.action-btn.saved { color: var(--primary); }
.bookmark-btn { transition: color var(--transition); }
.heart-3d { display: block; animation: heart-pop 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards; filter: drop-shadow(0 1px 3px rgba(180,10,10,0.3)); }
@keyframes heart-pop { 0%{transform:scale(0.8)} 60%{transform:scale(1.18)} 100%{transform:scale(1.0)} }




.cw-row { display: grid; grid-template-columns: 3fr 2fr; gap: 8px; margin-bottom: 10px; }
.cw-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 0;
  min-height: var(--feed-tile-h); padding: 8px 10px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; text-decoration: none; text-align: center;
  line-height: 1.15; border: 1px solid var(--border);
}
.cw-btn svg { flex-shrink: 0; }

.cw-btn--notes,
.cw-btn--test { background: var(--card); color: var(--primary); border-color: var(--border); }
.cw-btn--notes:active,
.cw-btn--test:active { background: var(--bg-warm); }

.feed-banner {
  display: flex; align-items: center;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--card-padding); gap: 10px; margin: 0;
  position: relative; overflow: hidden;
}

.feed-banner__link {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0; text-decoration: none; color: inherit;
}

.feed-banner__icon {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: rgba(255,255,255,0.07); color: var(--text-dim);
}
.feed-banner__icon--green  { background: rgba(16,185,129,0.15); color: var(--primary); }
.feed-banner__icon--orange { background: rgba(251,146,60,0.15);  color: #fb923c; }
.feed-banner__icon--blue   { background: rgba(96,165,250,0.15);  color: #60a5fa; }

.feed-banner__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed-banner__title {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed-banner__desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.35;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;
}

.feed-banner__close {
  flex-shrink: 0; background: none; border: none; color: var(--text-muted);
  cursor: pointer; padding: 4px; display: flex; align-items: center;
  opacity: 0.55; margin-inline-start: 2px;
}
.feed-banner__close:hover { opacity: 1; }

.feed-banner__action {
  flex-shrink: 0; height: 28px; padding: 0 12px; border-radius: var(--radius-pill); border: none;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.feed-banner__action:active { transform: scale(0.95); }



.feed-pwa-row {
  display: flex; gap: 8px; align-items: stretch;
}
.feed-pwa-row .pwa-install-banner { flex: 1; min-width: 0; }

.feed-pwa-row:not(:has(.pwa-install-banner)) { display: none; }

.feed-slot1-row {
  display: grid; grid-template-columns: 3fr 2fr; gap: 8px; align-items: stretch;
}
.feed-slot1-row > * { min-width: 0; }

.feed-slot1-row > .contest-banner,
.feed-slot1-row > .spawn-ban-banner,
.feed-slot1-row .bite-forecast-chip { min-height: var(--feed-tile-h); }


.feed-slot1-row:has(> :only-child) { grid-template-columns: 1fr; }
.feed-pwa-row:has(.pwa-install-banner) ~ .feed-slot1-row { grid-template-columns: 1fr; }


.feed-pwa-row:has(.pwa-install-banner) ~ * .bite-chip-slot { display: none; }




@media (min-width: 768px) { .solunar-mini-chip { display: none !important; } }
.solunar-mini-chip {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 10px;
  background: transparent;
  border: 1.5px solid; border-radius: var(--radius-sm);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  min-width: 72px;
}
.solunar-mini-chip:active { opacity: 0.75; }
.solunar-mini-label { font-size: 12px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.solunar-mini-badge { font-size: 12px; font-weight: 700; white-space: nowrap; }


.feed-pwa-row:not(:has(.pwa-install-banner)) .solunar-mini-chip {
  flex: 1; min-width: 0;
  flex-direction: row; gap: 6px; justify-content: center;
}
.feed-pwa-row:not(:has(.pwa-install-banner)) .solunar-mini-label {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.feed-pwa-row:not(:has(.pwa-install-banner)) .solunar-mini-sep {
  font-size: 13px; color: var(--text-muted);
}
.feed-pwa-row:not(:has(.pwa-install-banner)) .solunar-mini-badge { font-size: 14px; }


.solunar-mini-chip--full {
  flex-shrink: 1; flex: 1; width: 100%;
  flex-direction: row; gap: 6px; justify-content: center; min-width: 0;
}
.solunar-mini-chip--full .solunar-mini-label { font-size: 13px; font-weight: 600; color: var(--text); }
.solunar-mini-chip--full .solunar-mini-sep { font-size: 13px; color: var(--text-muted); }
.solunar-mini-chip--full .solunar-mini-badge { font-size: 14px; }



.pwa-install-banner { flex-wrap: wrap; }
.pwa-install-ios-help {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-light);
  font-size: 12px; color: var(--text-dim); line-height: 1.5;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.pwa-install-ios-help b { color: var(--text); }
.pwa-install-ios-help svg { vertical-align: middle; flex-shrink: 0; }
.pwa-install-ios-help {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  font-size: 12.5px; color: var(--text-dim); line-height: 1.5;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.pwa-install-ios-help b { color: var(--text); }
.pwa-install-ios-help svg { vertical-align: middle; flex-shrink: 0; }

.post-repost-msg {
  font-size: 12px; color: var(--text-muted);
  padding: 6px 0 2px;
  text-align: center;
  animation: fade-in-soft 0.25s ease;
}
@keyframes fade-in-soft { from { opacity: 0; } to { opacity: 1; } }



@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.create-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.create-fields input:last-child { grid-column: 1 / -1; }


.edit-post-form {
  background: var(--card); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
}
.edit-post-form textarea {
  min-height: 100px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px; font-size: 14px;
  resize: vertical; font-family: inherit;
}
.edit-actions { display: flex; gap: 8px; }
.comment-top { display: flex; align-items: center; justify-content: space-between; }
.page-header-actions { display: flex; gap: 8px; margin-inline-start: auto; }


.file-upload-label {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px; border-radius: var(--radius);
  background: var(--card); border: 2px dashed var(--border);
  color: var(--text-dim); font-size: 14px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.file-upload-label:hover { border-color: var(--primary); color: var(--primary); }
.photo-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-preview {
  position: relative; width: 90px; height: 90px;
  border-radius: var(--radius-xs); overflow: hidden;
}
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove {
  position: absolute; top: 2px; right: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none;
  font-size: 14px; line-height: 22px; text-align: center; cursor: pointer;
}


.events-list { display: flex; flex-direction: column; gap: 10px; }


.event-card--row {
  display: flex; gap: 12px; align-items: stretch;
  background: var(--card); border-radius: var(--radius);
  padding: 11px; box-shadow: var(--shadow-xs);
  color: var(--text); transition: background var(--transition);
  border: 1px solid var(--border-light); text-decoration: none;
}
.event-card--row:active { background: var(--bg-warm); }
.event-thumb {
  width: 56px; height: 56px; border-radius: var(--radius); flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #fff; align-self: center;
}
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.event-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-badge {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
}
.event-countdown {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700; color: var(--orange);
  background: rgba(232,138,26,0.12); padding: 1px 7px; border-radius: 8px;
}
.event-title { font-size: 14.5px; font-weight: 700; margin: 1px 0; line-height: 1.25; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; color: var(--text-dim); }
.event-meta span { display: flex; align-items: center; gap: 3px; }
.event-meta svg { color: var(--text-muted); flex-shrink: 0; }
.event-bottom { display: flex; align-items: center; gap: 10px; margin-top: 3px; flex-wrap: wrap; }
.event-fee {
  font-size: 12.5px; font-weight: 700; color: var(--primary);
  background: var(--primary-light); padding: 2px 10px; border-radius: var(--radius);
}
.event-prize {
  font-size: 12.5px; color: var(--orange); font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px;
}

.event-cover-large { width: 100%; max-height: 260px; object-fit: cover; border-radius: var(--radius); }
.event-content { padding: 8px 0; }
.event-content h2 { font-size: 22px; font-weight: 800; margin: 10px 0; }
.event-details {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; margin: 14px 0; color: var(--text-dim);
}
.event-details div { display: flex; align-items: center; gap: 8px; }
.event-details svg { color: var(--primary); flex-shrink: 0; }
.event-description { font-size: 15px; line-height: 1.7; margin: 14px 0; white-space: pre-wrap; }
.event-rules {
  margin: 14px 0; padding: 16px; background: var(--bg);
  border-radius: var(--radius-sm); border: 1px solid var(--border-light);
}
.event-rules h3 { font-size: 15px; margin-bottom: 8px; font-weight: 700; }
.event-organizer { margin-top: 20px; font-size: 14px; color: var(--text-dim); }
.event-organizer .label { margin-inline-end: 4px; }

.participants-section { margin-top: 24px; }
.participants-section h3 { font-size: 15px; margin-bottom: 10px; font-weight: 700; }
.participants-list { display: flex; flex-wrap: wrap; gap: 8px; }
.participant {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 13px; color: var(--text); font-weight: 500;
  border: 1px solid var(--border-light); transition: all var(--transition);
}
.participant:hover { border-color: var(--primary-light); background: var(--primary-bg); }


.event-status {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 1px 7px; border-radius: 8px;
}
.event-status--ongoing { color: var(--success); background: var(--success-light); }
.event-status--finished { color: var(--text-muted); background: color-mix(in srgb, var(--text-muted) 12%, transparent); }
.event-status-note {
  margin-top: 8px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border-light);
  color: var(--text-dim); font-size: 14px; font-weight: 600; text-align: center;
}
.event-status-note--live { color: var(--success); background: var(--success-light); border-color: transparent; }


.cal-page { padding: 16px; }
.cal-list-btn {
  background: var(--primary-light); color: var(--primary); border: none;
  border-radius: var(--radius-xs); padding: 6px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 14px; }
.cal-month-label { font-size: 18px; font-weight: 700; }
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.cal-weekday { text-align: center; font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
  height: 48px; border: none; border-radius: var(--radius-sm); background: var(--card);
  color: var(--text); font-size: 15px; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.cal-day--empty { background: none; pointer-events: none; }
.cal-day--skeleton { background: var(--bg); animation: skeleton-pulse 1.5s infinite; pointer-events: none; }
.cal-day--today { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.cal-day--selected { background: var(--primary); color: var(--btn-text); font-weight: 700; }
.cal-dot {
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
}
.cal-dot--multi { width: 18px; height: 14px; border-radius: 7px; }
.cal-day--selected .cal-dot { background: rgba(255,255,255,0.85); color: var(--primary); }
.cal-day-events { margin-top: 20px; }
.cal-day-events-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.cal-day-empty { color: var(--text-muted); font-size: 14px; text-align: center; padding: 20px; }
.cal-event-list { display: flex; flex-direction: column; gap: 8px; }
.cal-event-item {
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 14px; text-align: start; cursor: pointer; display: flex; flex-direction: column; gap: 4px;
}
.cal-event-item:active { background: var(--bg-warm); }
.cal-event-title { font-size: 15px; font-weight: 600; color: var(--text); }
.cal-event-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 12px; flex-wrap: wrap; }


.event-actions { display: flex; gap: 8px; margin: 14px 0; }
.event-action-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  font-size: 13px; font-weight: 600; transition: background var(--transition);
}
.event-action-btn:active { background: var(--bg-warm); }


.event-static-map, .event-map-picker {
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border-light); margin-top: 8px;
}
.event-map-hint {
  font-size: 12px; color: var(--text-muted); padding: 8px 10px;
  background: var(--bg); text-align: center;
}


.event-cover-add {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 22px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--bg); border: 1.5px dashed var(--border); color: var(--text-muted);
  font-size: 14px; font-weight: 600;
}
.event-cover-add:active { background: var(--bg-warm); }
.event-cover-upload { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.event-cover-upload img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
.event-cover-remove {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: none; cursor: pointer; background: rgba(0,0,0,0.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
}


.organizer-onboarding {
  text-align: center; padding: 24px 20px; max-width: 460px; margin: 0 auto;
}
.organizer-onboarding-icon {
  width: 76px; height: 76px; border-radius: 50%; margin: 8px auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.organizer-onboarding h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.organizer-onboarding p { font-size: 15px; line-height: 1.6; color: var(--text-dim); margin-bottom: 16px; }
.organizer-perks {
  list-style: none; padding: 0; margin: 0 0 20px; text-align: start;
  display: flex; flex-direction: column; gap: 12px;
}
.organizer-perks li {
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text);
}
.organizer-perks svg { color: var(--primary); flex-shrink: 0; }
.organizer-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }


.ads-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.ad-card {
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; color: var(--text);
  box-shadow: var(--shadow-xs); transition: all var(--transition);
  border: 1px solid var(--border-light);
}
.ad-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ad-photo { aspect-ratio: 1; overflow: hidden; background: var(--bg); }
.ad-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.ad-card:hover .ad-photo img { transform: scale(1.04); }
.ad-no-photo {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 13px;
  background: linear-gradient(135deg, var(--bg), var(--border-light));
}
.ad-info { padding: 12px; }
.ad-badges { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.ad-type {
  font-size: 12px; padding: 3px 8px; border-radius: var(--radius-sm);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
}
.ad-type-sell { background: var(--success-light); color: var(--success); }
.ad-type-buy { background: var(--primary-light); color: var(--primary); }
.ad-type-exchange { background: var(--orange-light); color: var(--orange); }
.ad-type-rent { background: #f3e8ff; color: #7c3aed; }
.ad-category {
  font-size: 12px; padding: 3px 8px; border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text-muted); font-weight: 600;
}
.ad-title {
  font-size: 14px; font-weight: 700; margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35;
}
.ad-price { font-size: 16px; font-weight: 800; color: var(--primary); }
.ad-meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap;
}
.ad-meta span { display: flex; align-items: center; gap: 2px; }

.ad-photos-gallery { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; scroll-snap-type: x mandatory; }
.ad-photos-gallery img { height: 220px; border-radius: var(--radius-sm); scroll-snap-align: start; }
.ad-content { padding: 8px 0; }
.ad-content h2 { font-size: 20px; font-weight: 800; margin: 8px 0; }
.ad-price-big { font-size: 30px; font-weight: 800; color: var(--primary); margin: 8px 0; }
.ad-description { font-size: 15px; line-height: 1.7; margin: 14px 0; white-space: pre-wrap; }
.ad-meta-detail { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-dim); margin: 14px 0; }
.ad-meta-detail div { display: flex; align-items: center; gap: 8px; }
.ad-contact {
  font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px;
  padding: 14px; background: var(--accent-light); border-radius: var(--radius-sm);
  margin: 14px 0; color: var(--accent); border: 1px solid var(--primary-light);
}
.ad-author { margin-top: 14px; font-size: 14px; }


.ad-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none;
  border: 1px solid var(--border-light); border-inline-start: 3px solid var(--primary);
  background: var(--card); transition: all var(--transition);
  width: 100%; margin: 0;
}
.ad-banner:hover { background: var(--bg-warm); color: var(--text); }
.ad-banner-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.ad-banner-content { flex: 1; min-width: 0; overflow: hidden; }
.ad-banner-title { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-banner-desc { font-size: 12px; color: var(--text-dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-banner-cta {
  font-size: 12px; font-weight: 700; padding: 5px 12px;
  border-radius: var(--radius-pill); background: var(--primary); color: var(--btn-text);
  white-space: nowrap; flex-shrink: 0;
}


.promoted-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px;
  background: linear-gradient(135deg, #ffd700, #ff8f00); color: #5d3200;
}

.demo-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  background: rgba(148, 163, 184, 0.15); color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}


.active-filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-lg);
  background: var(--primary-light); color: var(--text);
  font-size: 12px; font-weight: 700; margin-bottom: 12px;
}
.active-filter-tag button {
  background: none; border: none; cursor: pointer; color: var(--text);
  font-size: 16px; line-height: 1; padding: 0 2px; font-weight: 800;
}
.active-filter-tag--participant {
  display: flex; width: 100%; justify-content: space-between;
  background: var(--accent-light); color: var(--accent);
  border-radius: var(--radius); padding: 8px 14px;
}
.active-filter-tag--participant button { color: var(--text); }


.filter-bar {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
  animation: slideDown 0.2s ease-out;
}
.filter-bar select, .filter-bar input {
  flex: 1; min-width: 120px; padding: 10px 12px; font-size: 13px;
  background: var(--card); border-radius: var(--radius-sm);
}


.chip {
  padding: 8px 18px; border-radius: var(--chip-radius);
  background: var(--card); border: 1.5px solid var(--border);
  font-size: 13px; cursor: pointer; color: var(--text-dim);
  font-weight: 600; transition: all var(--transition); font-family: inherit;
}
.chip:hover { border-color: var(--primary-light); }
.chip.active { background: var(--sel-bg); color: var(--sel-text); border-color: var(--sel-line); }


.weather-page { padding-bottom: 80px; }
.weather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.weather-item {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--shadow-xs); border: 1px solid var(--border-light);
}
.weather-item svg { color: var(--primary); }
.weather-val { font-size: 24px; font-weight: 800; }
.weather-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.weather-region {
  font-size: 14px; color: var(--text-dim); font-weight: 600;
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.weather-current { margin-top: 20px; }
.weather-current h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }

.weather-forecast { margin-top: 24px; }
.weather-forecast h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.forecast-days { display: flex; flex-direction: column; gap: 8px; }
.forecast-day {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.forecast-day-label { font-weight: 600; font-size: 14px; min-width: 90px; color: var(--text); }
.forecast-day-temp { display: flex; gap: 8px; font-size: 16px; font-weight: 700; min-width: 90px; }
.temp-max { color: var(--text); }
.temp-min { color: var(--text-muted); font-weight: 500; }
.forecast-day-details {
  display: flex; gap: 12px; font-size: 12px; color: var(--text-dim); margin-inline-start: auto;
}
.forecast-day-details span { display: flex; align-items: center; gap: 3px; }
@media (max-width: 480px) {
  .forecast-day { flex-wrap: wrap; gap: 6px 8px; padding: 10px 12px; }
  .forecast-day-label { min-width: 72px; font-size: 13px; }
  .forecast-day-temp  { min-width: 72px; font-size: 14px; gap: 6px; }
  .forecast-day-details { margin-inline-start: 0; width: 100%; gap: 8px; flex-wrap: wrap; }
}


.species-bite-section { margin-top: 24px; }
.species-bite-section h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.species-bite-list { display: flex; flex-direction: column; gap: 8px; }
.species-bite-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.species-bite-name { display: flex; align-items: center; gap: 6px; width: 90px; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.species-bite-bar { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.species-bite-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }
.species-bite-score { width: 28px; text-align: end; font-size: 13px; font-weight: 800; }


.factor-name { width: 100px; font-size: 13px; color: var(--text-dim); font-weight: 500; }
.factor-bar { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.factor-fill { height: 100%; border-radius: 4px; transition: width 0.6s ease; }




.weather-page .weather-current { margin-top: 14px; }
.weather-page .weather-current h3,
.weather-page .weather-forecast h3,
.weather-page .bite-forecast-section h3,
.weather-page .species-bite-section h3 { font-size: 15px; margin-bottom: 8px; }
.weather-page .weather-forecast,
.weather-page .bite-forecast-section,
.weather-page .species-bite-section { margin-top: 16px; }
.weather-page .weather-grid { gap: 8px; margin-top: 10px; }
.weather-page .weather-item { padding: 12px; gap: 5px; border-radius: var(--radius); }
.weather-page .weather-val { font-size: 19px; }
.weather-page .forecast-day { padding: 10px 14px; }
.factor-val { width: 30px; font-size: 13px; text-align: end; font-weight: 700; }








.app-main:has(.map-page-v3) { max-width: none; padding-inline-start: 0; padding-inline-end: 0;
  padding-bottom: 0 !important; overflow: hidden; }





















@keyframes searchpulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }





.route-planner {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 16px); max-width: 440px; z-index: 1200;
  background: var(--card); border-radius: var(--radius-sm); padding: 7px 9px 7px;
  box-shadow: 0 6px 20px rgba(0,0,0,.42); border: 1px solid var(--border-light);
}
.route-planner-close {
  position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border: none;
  background: rgba(128,128,128,.14); border-radius: 8px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.route-planner-rows { position: relative; display: flex; flex-direction: column; gap: 4px; padding-inline-end: 28px; }
.route-row {
  display: flex; align-items: center; gap: 9px; padding: 6px 9px; background: var(--bg);
  border-radius: var(--radius-sm); cursor: pointer; border: 1.5px solid transparent; transition: border-color .15s;
}
.route-row.picking { border-color: var(--primary); background: rgba(13,148,136,.08); }
.route-dot {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: #fff;
}
.route-dot--a { background: #16a34a; }
.route-dot--b { background: var(--danger); }
.route-dot--via { background: #d97706; font-size: 15px; }
.route-loc--del { background: rgba(220,38,38,.14); color: var(--danger); }
.route-add-via {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  padding: 3px 9px; border: 1.5px dashed var(--border); background: transparent;
  color: var(--text-muted); border-radius: var(--radius-sm); font-size: 12px;
  font-weight: 600; cursor: pointer; margin-inline-start: 29px;
}
.route-add-via:active { background: var(--bg); }
.route-field {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.route-loc {
  flex-shrink: 0; width: 26px; height: 26px; border: none; background: rgba(13,148,136,.14);
  color: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.route-swap {
  position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card);
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 700; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.route-planner-foot { margin-top: 6px; text-align: center; min-height: 16px; }
.route-hint { font-size: 12px; color: var(--text-muted); }
.route-summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary); }


.route-planner-modes { display: flex; gap: 6px; margin-bottom: 6px; padding-inline-end: 30px; }
.route-planner-mode { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px; border-radius: 9px; border: 1.5px solid var(--border-light); background: var(--bg);
  color: var(--text); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.route-planner-mode.active { background: var(--sel-bg); color: var(--sel-text); border-color: transparent; }
.route-planner-live { margin-top: 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--primary);
  display: inline-flex; align-items: center; gap: 5px; width: 100%; justify-content: center; }
.route-planner-live--wait { color: var(--warning); }
.route-follow {
  margin-top: 6px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 7px; border: none; border-radius: var(--radius-sm); background: var(--primary); color: var(--bg);
  font-size: 13px; font-weight: 800; cursor: pointer;
}
.route-follow.active { background: var(--danger); color: #fff; }


.map-route-modes { display: flex; gap: 8px; margin-top: 8px; }
.map-route-mode { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: 10px; border: 1.5px solid var(--border-light); background: var(--card);
  color: var(--text); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.map-route-mode.active { background: var(--sel-bg); color: var(--sel-text); border-color: transparent; }
.map-route-hint { display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; font-size: 12px;
  color: var(--text-muted); line-height: 1.4; }








































































































@keyframes fadeout { 0%{opacity:1} 70%{opacity:1} 100%{opacity:0} }



.map-container { width: 100%; height: calc(100dvh - var(--tab-height) - var(--header-height)); }






   




   












.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.96); }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px;
  border: none; background: rgba(255,255,255,.14); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox-count { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3;
  color: #fff; font-size: 14px; font-weight: 600; background: rgba(0,0,0,.4); padding: 4px 12px; border-radius: var(--radius-pill); }
.lightbox-track { display: flex; width: 100%; height: 100%; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.lightbox-track::-webkit-scrollbar { display: none; }
.lightbox-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start;
  display: flex; align-items: center; justify-content: center; }
.lightbox-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }








































.booking-hint { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.5; }
.booking-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.booking-field > span { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.booking-field input, .booking-field select, .booking-field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 15px;
  background: var(--bg); color: var(--text); border: 1px solid var(--border-light);
  font-family: inherit; box-sizing: border-box;
}
.booking-field textarea { resize: vertical; }
.booking-err { color: var(--danger); font-size: 13px; font-weight: 600; margin: 2px 0 10px; }
.booking-submit { width: 100%; justify-content: center; margin-top: 4px; }
.booking-done { text-align: center; padding: 14px 4px; }
.booking-done h3 { margin: 12px 0 6px; font-size: 18px; }
.booking-done p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.booking-done .btn-primary { width: 100%; justify-content: center; }

















.bk-confirm, .bk-decline { border: none; border-radius: 8px; padding: 7px 12px; font-size: 12.5px;
  font-weight: 700; cursor: pointer; white-space: nowrap; }
.bk-confirm { background: var(--primary); color: var(--bg); }
.bk-decline { background: rgba(239,68,68,.12); color: var(--danger); }
.bk-status { font-size: 12px; font-weight: 700; white-space: nowrap; }
.bk-status--confirmed { color: var(--primary); }
.bk-status--declined, .bk-status--cancelled { color: var(--text-muted); }


.booking-day { margin: -6px 0 12px; padding: 8px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 600; }
.booking-day--closed { background: rgba(239,68,68,.12); color: var(--danger); }
.booking-day--free { background: rgba(13,148,136,.12); color: var(--primary); }


.avail-cal { margin-bottom: 14px; }
.avail-cal-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.avail-cal-title span { font-weight: 400; color: var(--text-muted); font-size: 12px; }
.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.avail-day {
  position: relative; aspect-ratio: 1; border: 1px solid var(--border-light); border-radius: 9px;
  background: var(--bg); cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 0; -webkit-tap-highlight-color: transparent;
}
.avail-day .avail-dow { font-size: 12px; color: var(--text-muted); line-height: 1; }
.avail-day .avail-num { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.2; }
.avail-day.sel { border-color: var(--primary); box-shadow: 0 0 0 1.5px var(--primary); }
.avail-day.closed { background: rgba(239,68,68,.12); }
.avail-day.closed .avail-num { color: var(--danger); }
.avail-day.full { background: rgba(245,158,11,.14); }
.avail-tag {
  position: absolute; top: 2px; right: 3px; font-size: 9px; font-weight: 800;
  min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px;
  background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center;
}
.avail-day.closed .avail-tag { background: var(--danger); }
.avail-editor { margin-top: 10px; padding: 11px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border-light); }
.avail-editor-date { font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.avail-editor-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.avail-toggle { flex: 1; min-width: 90px; padding: 8px; border-radius: 8px; border: 1.5px solid var(--border-light);
  background: var(--card); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.avail-toggle.on { background: var(--sel-bg); color: var(--sel-text); border-color: transparent; }
.avail-toggle.on-red { background: var(--danger); color: #fff; border-color: transparent; }
.avail-cap-lbl { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.avail-editor-row input { width: 66px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--border-light);
  background: var(--card); color: var(--text); font-size: 14px; }
.avail-cap-save { padding: 7px 14px; border-radius: 8px; border: none; background: var(--primary); color: var(--bg); font-weight: 700; cursor: pointer; }
.avail-cap-hint { font-size: 12px; color: var(--text-muted); }




.sw-gauge { flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.sw-gauge-inner { width: 46px; height: 46px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; }
.sw-score { font-size: 19px; font-weight: 800; }
.sw-main { min-width: 0; flex: 1; }
.sw-label { font-size: 16px; font-weight: 800; }
.sw-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.sw-more { font-size: 12px; color: var(--primary); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 4px; }












.cabinet-tournament-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  margin-top: 10px; padding: 10px; border-radius: var(--radius-sm); border: 1.5px dashed rgba(245,197,66,.6);
  background: none; color: #d99e0b; font-size: 13.5px; font-weight: 700; cursor: pointer; }






.addbase-inline-link { display: block; width: 100%; margin-top: 8px; padding: 9px 11px; text-align: start;
  background: rgba(13,148,136,.1); border: 1px solid rgba(13,148,136,.3); border-radius: 9px;
  color: var(--primary); font-size: 12.5px; font-weight: 700; cursor: pointer; line-height: 1.4; }
.addbase { max-width: 560px; margin: 0 auto; padding: 12px 16px 90px; }
.addbase-hero { display: flex; gap: 11px; align-items: flex-start; padding: 13px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(13,148,136,.12), rgba(245,197,66,.08));
  border: 1px solid rgba(13,148,136,.28); margin-bottom: 16px; color: var(--primary); }
.addbase-hero p { margin: 0; font-size: 13.5px; color: var(--text); line-height: 1.5; }
.addbase .booking-field i { font-weight: 400; font-style: normal; color: var(--text-muted); }
.addbase-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; font-size: 12px;
  color: var(--text-muted); line-height: 1.5; }


































































































.review-ratings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.review-rating-input label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.review-stars { display: flex; gap: 2px; }
.star-btn { background: none; border: none; font-size: 20px; cursor: pointer; color: #d1d5db; padding: 3px; line-height: 1; }
.star-btn.active { color: #c4943a; }


.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-header strong { font-size: 14px; font-weight: 700; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-mini-ratings { display: flex; gap: 10px; font-size: 12px; margin-bottom: 6px; color: var(--text-dim); }
.review-text { font-size: 13px; line-height: 1.5; margin: 0; color: var(--text-dim); }







.comments-section { margin-top: 24px; }
.comments-section h3 { font-size: 18px; margin-bottom: 14px; font-weight: 700; }
.comment { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.comment .comment-author {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 4px; text-decoration: none;
}
.comment p { font-size: 14px; line-height: 1.55; }
.comment > .comment-time { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
.comment-input { display: flex; gap: 8px; margin-top: 14px; }
.comment-input input { flex: 1; background: var(--card); }
.comment-input button {
  background: var(--primary); color: var(--btn-text); border: none;
  border-radius: var(--radius-sm); padding: 10px 16px; cursor: pointer;
  transition: all var(--transition); font-family: inherit; font-weight: 700;
}
.comment-input button:hover { background: var(--primary-dark); }


.post-comments { border-top: 1px solid var(--border-light); margin-top: 8px; padding-top: 8px; }
.comments-list { max-height: 400px; overflow-y: auto; overflow-x: hidden; }
.comment-thread { border-bottom: 1px solid rgba(255,255,255,0.04); }
.comment-thread:last-child { border-bottom: none; }
.comment-item {
  display: flex; gap: 10px; padding: 8px 16px 4px;
  align-items: flex-start;
}
.comment-item--reply { padding-inline-start: 46px; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; cursor: pointer; }
.comment-item--reply .comment-avatar { width: 26px; height: 26px; }
.comment-avatar-placeholder {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0; cursor: pointer;
}
.comment-item--reply .comment-avatar-placeholder { width: 26px; height: 26px; }
.comment-content { flex: 1; min-width: 0; }
.comment-header { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
.comment-author { font-weight: 700; font-size: 13px; color: var(--text); text-decoration: none; }
.comment-author:hover { text-decoration: underline; }
.comment-text { font-size: 14px; line-height: 1.45; color: var(--text); word-break: break-word; white-space: pre-wrap; }
.comment-actions {
  display: flex; align-items: center; gap: 10px; margin-top: 4px; margin-bottom: 6px;
  font-size: 12px; color: var(--text-muted); padding-inline-end: 2px;
}
.comment-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.comment-actions button {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: 12px; padding: 0; display: flex; align-items: center; gap: 3px; transition: color 0.15s;
  min-height: var(--tap-min);   
}
.comment-actions button:hover { color: var(--text); }

.comment-actions .comment-like-btn {
  margin-inline-start: auto; padding: 5px 8px; gap: 4px; font-size: 13px; font-weight: 600;
  border-radius: var(--action-btn-radius); -webkit-tap-highlight-color: transparent;
}
.comment-actions .comment-like-btn:active { background: var(--primary-light); }
.comment-like-btn.liked { color: var(--danger); }
.comment-delete-btn { opacity: 0; transition: opacity 0.15s, color 0.15s !important; }
.comment-item:hover .comment-delete-btn { opacity: 1; }
.comment-delete-btn:hover { color: var(--danger) !important; }


.comment-menu-wrap { position: relative; display: inline-flex; }
.comment-menu-btn {
  font-size: 13px; letter-spacing: 1px; padding: 0 4px;
  color: var(--text-dim); line-height: 1;
  min-height: var(--tap-min); min-width: var(--tap-min); justify-content: center;
}
.comment-menu-btn:hover { color: var(--text); }
.comment-menu-popup {
  position: absolute; bottom: 100%; left: 0; z-index: 20;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: 8px; padding: 4px 0; min-width: 140px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.comment-menu-popup button {
  display: block; width: 100%; text-align: start;
  padding: 7px 12px; font-size: 13px; color: var(--text);
}
.comment-menu-popup button:hover { background: rgba(255,255,255,0.06); }
.comment-menu-delete { color: var(--danger) !important; }


.comment-edit-wrap { margin: 4px 0; }
.comment-edit-input {
  width: 100%; background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 14px;
  padding: 6px 8px; resize: none; font-family: inherit;
}
.comment-edit-actions { display: flex; gap: 6px; margin-top: 4px; }
.comment-edit-save {
  background: var(--accent); color: #000;
  border-radius: var(--radius-xs); padding: 4px 12px; font-size: 13px; font-weight: 600;
}
.comment-edit-cancel {
  color: var(--text-dim); font-size: 13px; padding: 4px 8px;
}
.comment-edited { font-size: 12px; color: var(--text-dim); }
.show-replies-btn {
  display: block; margin: 0 12px 8px 46px;
  font-size: 13px; color: var(--primary); font-weight: 500;
  background: none; border: none; cursor: pointer; padding: 0;
}
.show-replies-btn:hover { text-decoration: underline; }
.comments-empty { padding: 12px; color: var(--text-muted); font-size: 13px; }

.post-quick-comment-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px; border-top: 1px solid var(--border-light); margin-top: 0;
}
.comment-avatar-xs {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; background: var(--card); border: 1px solid var(--border);
}
.comment-avatar-xs.comment-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
}
.quick-comment-form {
  flex: 1; display: flex; align-items: center; gap: 2px;
  border-radius: var(--radius-xl);
}

.quick-comment-form--dragover {
  outline: 2px dashed var(--primary); outline-offset: 3px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}
.quick-comment-form input,
.quick-comment-form textarea {
  
  flex: 1; border: 1px solid var(--border-light); border-radius: var(--radius-xl);
  padding: 8px 14px; font-size: 16px; background: var(--card); color: var(--text); outline: none;
  transition: border-color 0.15s;
}
.quick-comment-form input:focus,
.quick-comment-form textarea:focus { border-color: var(--border); }

.quick-comment-form textarea {
  resize: none; line-height: 20px; height: 38px; min-height: 38px; max-height: 130px;
  overflow-y: auto; font-family: inherit; display: block;
  scrollbar-width: thin;
}
.quick-comment-form button[type="submit"] {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}


.post-view-all-comments {
  display: block; width: 100%; text-align: start; padding: 4px 12px 6px;
  font-size: 13px; font-weight: 600; color: var(--text-muted); background: none; border: none;
  cursor: pointer; transition: color 0.15s;
}
.post-view-all-comments:hover { color: var(--primary); }


.show-more-comments-btn {
  display: block; width: 100%; text-align: center; padding: 6px 12px;
  font-size: 12px; font-weight: 600; color: var(--primary); background: none; border: none;
  cursor: pointer; border-bottom: 1px solid var(--border-light); margin-bottom: 4px;
}


.post-badge-new {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 1px 6px;
  border-radius: var(--radius-xs); background: var(--primary); color: var(--btn-text);
  letter-spacing: 0.03em; line-height: 1.5;
}
.post-badge-hot {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 1px 6px;
  border-radius: var(--radius-xs); background: color-mix(in srgb, var(--warning) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 18%, transparent); color: var(--orange);
  letter-spacing: 0.02em; line-height: 1.5;
}


@keyframes like-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.like-count-anim { animation: like-pop 0.25s ease; }


.feed-filter-chips {
  display: flex; gap: 0; padding: 0 0 2px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}
.feed-filter-chips::-webkit-scrollbar { display: none; }
.feed-chip {
  flex-shrink: 0; padding: 6px 14px 8px; font-size: 13px; font-weight: 500;
  border: none; background: none; color: var(--text-muted);
  cursor: pointer; transition: color 0.15s; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.feed-chip.active {
  color: var(--text); border-bottom-color: var(--sel-line); font-weight: 600;
}
.feed-chip:hover:not(.active) { color: var(--text-dim); }

.comment-form {
  display: flex; align-items: center; gap: 8px; padding: 8px 0 0;
  border-top: 1px solid var(--border-light); margin-top: 4px;
}
.comment-form-avatar { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.comment-form input {
  flex: 1; border: 1px solid var(--border-light); border-radius: var(--radius-pill);
  padding: 8px 14px; font-size: 13px; background: var(--card); color: var(--text); outline: none;
  transition: border-color 0.15s;
}
.comment-form input:focus { border-color: var(--border); }
.comment-form input:disabled { opacity: 0.6; cursor: pointer; }
.comment-form button[type="submit"] {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary);
  color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.comment-form button[type="submit"]:disabled { opacity: 0.4; cursor: default; }























button.profile-settings-icon { cursor: pointer; font: inherit; padding: 0; }


.avatar-online-wrap-md { position: relative; width: 56px; height: 56px; flex-shrink: 0; }





















@media (max-width: 400px) {
  .profile-stats span { font-size: 12px; }
  .profile-stats .profile-stat-btn { padding: 6px 2px; }
}


.badge-item {
  display: flex; align-items: center; gap: 6px;
  background: var(--card); padding: 6px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--border-light); box-shadow: var(--shadow-xs);
}
.badge-emoji { font-size: 16px; }
.badge-name { font-size: 12px; }



.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.stat-card {
  text-align: center; padding: 8px 4px;
  background: var(--bg-warm); border-radius: var(--radius-xs);
}

.stat-card--btn {
  border: 1px solid var(--border-light); font-family: inherit; color: inherit;
  cursor: pointer; width: 100%; transition: border-color 0.15s;
}
.stat-card--btn:hover { border-color: var(--border); }
.stat-card--btn:active { transform: scale(0.97); }
.stat-value { font-size: 16px; font-weight: 800; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.species-breakdown { display: flex; flex-direction: column; gap: 6px; }
.species-stat-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.species-stat-name { width: 60px; font-weight: 700; color: var(--text); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.species-stat-bar-container { flex: 1; height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.species-stat-bar { height: 100%; background: color-mix(in srgb, var(--primary) 75%, transparent); border-radius: 4px; min-width: 4px; transition: width 0.3s; }
.species-stat-info { font-size: 12px; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }






.wall-composer { margin-bottom: 2px; }
.wall-composer-form {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.wall-composer-input {
  width: 100%; resize: none; background: var(--bg); color: var(--text);
  border: 1px solid var(--border-light); border-radius: var(--radius-xs);
  padding: 8px 10px; font-size: 14px; font-family: inherit; line-height: 1.4;
  min-height: 0;
}
.wall-composer-input:focus { outline: none; border-color: var(--primary); }
.wall-composer-error { font-size: 12px; color: var(--danger); }
.wall-composer-actions { display: flex; justify-content: flex-end; gap: 6px; }


.invite-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 14px; margin-top: 0;
}
.invite-card-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 4px;
}
.invite-card-sub {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.45; margin: 0 0 10px;
}
.invite-card-preview {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-input); color: var(--text-dim);
  font-size: 13px; line-height: 1.5; white-space: pre-wrap; margin-bottom: 10px;
}
.invite-card-stats {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-light);
  font-size: 12.5px; color: var(--text-muted);
}
.invite-card-stats b { color: var(--text); }


.referral-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 12px;
  margin-top: 0;
}
.referral-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.referral-emoji { font-size: 24px; }
.referral-title {
  font-weight: 700; font-size: 14px; color: var(--text);
  margin-bottom: 1px;
}
.referral-bonus { font-size: 12px; }
.referral-stats-row {
  font-size: 12px; color: var(--text-muted);
  padding: 6px 0 8px; border-bottom: 1px solid var(--border-light); margin-bottom: 8px;
}
.referral-stats-row b { color: var(--text); }

.referral-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; margin-bottom: 8px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
}
.referral-link-url {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text-dim);
}
.referral-link-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  color: var(--primary); font-size: 12px; font-weight: 600;
  font-family: inherit; flex-shrink: 0;
}
.referral-link-btn:hover { color: var(--primary-dark); }


.referral-mini-icons {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.referral-mini-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  text-decoration: none; border: none; cursor: pointer;
  font-family: inherit; transition: opacity 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.referral-mini-btn:hover { opacity: 0.85; transform: scale(1.08); }
.referral-mini-btn.referral-tg { background: #229ED9; color: #fff; }
.referral-mini-btn.referral-wa { background: #25D366; color: #fff; }
.referral-mini-btn.referral-vk { background: #0077ff; color: #fff; }
.referral-mini-btn:not(.referral-tg):not(.referral-wa):not(.referral-vk) {
  background: var(--bg-warm); border: 1px solid var(--border); color: var(--text-muted);
}

























.post-follow-btn {
  margin-inline-start: auto; margin-inline-end: 8px;
  padding: 4px 12px; height: 26px;
  background: var(--primary); color: var(--bg);
  border: none; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; flex-shrink: 0;
  transition: background 0.15s;
}
.post-follow-btn:hover { background: var(--primary-dark); }
.post-follow-btn.is-followed {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.post-follow-btn.is-followed:hover {
  background: var(--bg-warm); color: var(--text);
}

.post-follow-btn-action {
  margin-inline-start: auto;
  padding: 4px 11px; height: 28px;
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary); border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; flex-shrink: 0; white-space: nowrap;
  transition: all 0.15s;
}
.post-follow-btn-action--header { margin-inline-start: 0; margin-inline-end: 4px; }

.post-follow-btn-action--compact {
  width: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.post-follow-btn-action:hover { background: var(--primary-light); }
.post-follow-btn-action.is-followed {
  color: var(--text-muted); border-color: var(--border);
}
.post-follow-btn-action.is-followed:hover { background: var(--bg-warm); color: var(--text); }


.sidebar-create-post {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; margin-bottom: 14px;
  background: var(--primary); color: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background 0.15s;
}
.sidebar-create-post:hover { background: var(--primary-dark); color: var(--bg); }
.sidebar-create-post svg { flex-shrink: 0; }


.header-create-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 20px; height: 36px;
  background: var(--primary); color: var(--bg);
  border-radius: var(--radius-xs);
  font-size: 13.5px; font-weight: 700;
  text-decoration: none; flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.15s;
}
.header-create-btn:hover { background: var(--primary-dark); color: var(--bg); }
.header-create-btn svg { flex-shrink: 0; }


.linked-accounts {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; margin-top: 16px;
}
.linked-accounts-title {
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 12px;
}
.linked-flash {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-xs);
  font-size: 13px; margin-bottom: 10px;
}
.linked-flash-ok { background: var(--success-light); color: var(--success); border: 1px solid var(--success); }
.linked-flash-err { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger); }
.linked-list { display: flex; flex-direction: column; gap: 10px; }
.linked-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-xs);
  background: var(--bg-warm);
}
.linked-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.linked-info { flex: 1 1 7em; min-width: 0; }
.linked-name { font-size: 13px; font-weight: 700; color: var(--text); }

.linked-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow-wrap: break-word; }

.linked-email { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }


.linked-google-warning {
  display: flex; gap: 10px; align-items: flex-start;
  background: #2d1a00; border: 1px solid #f59e0b; border-radius: 8px;
  padding: 12px; margin-bottom: 12px; color: var(--warning);
}
.linked-google-warning svg { flex-shrink: 0; margin-top: 2px; color: var(--warning); }
.linked-google-warning strong { font-size: 13px; display: block; margin-bottom: 4px; }
.linked-google-warning p { font-size: 12px; color: #d1a44a; margin: 0; line-height: 1.5; }
.linked-deadline-badge {
  font-size: 12px; font-weight: 700; background: var(--warning); color: #000;
  border-radius: 4px; padding: 1px 5px; margin-inline-start: 6px; vertical-align: middle;
}


.linked-row--col { flex-direction: column; align-items: stretch; }
.linked-row-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.linked-password-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.linked-input { background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--input-radius); padding: 8px 12px; font-size: 13px; color: var(--text); width: 100%; box-sizing: border-box; }
.linked-input:focus { outline: none; border-color: var(--primary); }
.linked-password-field { position: relative; }
.linked-password-field .linked-input { padding-inline-end: 36px; }
.linked-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0; display: flex; }

.linked-inline-link { background: none; border: none; padding: 0; margin: 0; font: inherit; color: var(--primary); cursor: pointer; text-decoration: underline; }
.linked-inline-link:hover { opacity: 0.85; }

.linked-row--col .linked-meta { white-space: normal; overflow: visible; }

.linked-icon--phone { background: #34C759; color: #fff; }

.linked-ok-badge { color: var(--success); margin-inline-start: 6px; white-space: nowrap; }   

.linked-row--col .linked-info { min-width: min-content; }
.linked-row--col .linked-email { display: block; contain: inline-size; }
.linked-row--col .linked-email + .linked-ok-badge { margin-inline-start: 0; }

.linked-hint { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.linked-wait-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-inline-end: 4px; vertical-align: middle; animation: linked-wait-pulse 1s ease-in-out infinite; }
@keyframes linked-wait-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }


.vk-login-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 44px; padding: 0 16px; border-radius: var(--radius-xs);
  background: var(--bg-warm); color: var(--text); text-decoration: none;
  border: 1px solid var(--border);
  font-size: 14px; font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.vk-login-btn:hover { background: var(--border-light); border-color: var(--text-muted); color: var(--text); }
.vk-login-btn svg { flex-shrink: 0; color: #07f; }


.bot-login-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 44px; padding: 0 16px; border-radius: var(--radius-xs);
  background: var(--bg-warm); color: var(--text); border: 1px solid var(--border); cursor: pointer;
  font-size: 14px; font-weight: 600; font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.bot-login-btn:hover { background: var(--border-light); border-color: var(--text-muted); }
.bot-login-btn svg { color: #229ED9; flex-shrink: 0; }
.bot-login-btn:disabled { opacity: 0.6; cursor: wait; }
.bot-login-waiting {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-xs);
  background: var(--bg-warm); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}
.bot-login-spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.9s linear infinite; }
.bot-wait-spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  display: inline-block; flex-shrink: 0;
}
.bot-login-msg { flex: 1; }
.bot-login-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  color: var(--primary); text-decoration: none; font-weight: 600;
}
.bot-login-link:hover { text-decoration: underline; }




.avatar-upload label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  color: var(--primary); justify-content: center; font-weight: 700;
}


.avatar-online-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.avatar-online-wrap-lg { display: inline-block; position: relative; }


.avatar-upload-wrap { cursor: pointer; }
.avatar-upload-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center;
  font-size: 22px; opacity: 0; transition: opacity 0.18s; z-index: 3;
}
.avatar-upload-wrap:hover .avatar-upload-overlay { opacity: 1; }
.avatar-upload-overlay.loading { opacity: 1; font-size: 14px; color: #fff; }
.online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--card); z-index: 2;
}
.online-dot-lg { width: 14px; height: 14px; bottom: 2px; right: 2px; border-width: 3px; }

.status-online { color: var(--success); font-weight: 700; }
.status-offline { color: var(--text-muted); }



.notif-filter-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 0 12px; flex-wrap: nowrap;
}

.seg-btn--alert { background: var(--danger); border-color: var(--danger); color: #fff; }
.seg-btn--alert:hover { background: var(--danger); border-color: var(--danger); color: #fff; opacity: 0.9; }
.seg-btn--alert.active { background: var(--danger); border-color: var(--danger); color: #fff; opacity: 0.72; }
.notif-filter-chips {
  display: flex; gap: 6px; overflow-x: auto; flex: 1;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.notif-filter-chips::-webkit-scrollbar { display: none; }

.notif-list { display: flex; flex-direction: column; gap: 4px; }


.push-prompt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; margin: 0 0 8px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--text);
}
.push-prompt__ico { flex: 0 0 auto; display: flex; color: var(--primary); padding-top: 1px; }
.push-prompt__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.push-prompt__text strong { font-size: 14px; font-weight: 700; line-height: 1.3; }
.push-prompt__text span { font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.push-prompt__actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.push-prompt__later {
  padding: 5px 10px; border: none; background: none;
  color: var(--text-muted); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.push-prompt--ok { align-items: center; color: var(--success); font-size: 13.5px; font-weight: 600;
  animation: push-prompt-ok-out 2.6s ease forwards; }

@keyframes push-prompt-ok-out { 0%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 380px) {
  
  .push-prompt { flex-wrap: wrap; }
  .push-prompt__actions { flex-direction: row; width: 100%; justify-content: flex-end; }
}
.notif-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text); transition: all var(--transition);
  text-decoration: none; border: 1px solid transparent;
}
.notif-item:hover { background: var(--bg-warm); }
.notif-item.unread { background: var(--primary-light); border-color: var(--primary-light); }
.notif-item--order { border-inline-start: 3px solid var(--primary); }
.notif-item--order.unread { border-inline-start-color: var(--primary); }
.notif-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--text-dim); background: var(--bg-warm);
}
.notif-content { flex: 1; min-width: 0; }

.notif-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notif-title {
  font-size: 14px; font-weight: 700; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-body { font-size: 13px; color: var(--text-dim); margin-top: 1px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: var(--fs-min); color: var(--text-muted); flex-shrink: 0; }


.roadmap-page { padding-bottom: 80px; }
.roadmap-intro { margin-bottom: 20px; color: var(--text-dim); font-size: 15px; line-height: 1.65; }
.roadmap-timeline { display: flex; flex-direction: column; gap: 16px; }

.roadmap-phase {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light); transition: all var(--transition);
}
.roadmap-phase:hover { box-shadow: var(--shadow); }
.phase-current { border-inline-start: 3px solid var(--primary); }
.phase-done { border-inline-start: 3px solid var(--success); }
.phase-planned { border-inline-start: 3px solid var(--border); }

.phase-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.phase-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0;
}
.phase-icon-current { background: var(--primary); }
.phase-icon-done { background: var(--success); }
.phase-icon-planned { background: var(--text-muted); }

.phase-title-block { flex: 1; }
.phase-title-block h2 { font-size: 16px; font-weight: 800; margin: 0; line-height: 1.3; }
.phase-period { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.phase-status-badge {
  font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: var(--radius-lg);
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.3px;
}
.status-current { background: var(--primary-light); color: var(--primary); }
.status-done { background: var(--success-light); color: var(--success); }
.status-planned { background: var(--bg); color: var(--text-muted); }

.phase-goal { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; font-style: italic; }
.phase-features { display: flex; flex-direction: column; gap: 6px; }
.feature-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-dim); padding: 4px 0;
}
.feature-item svg { flex-shrink: 0; }
.feature-item.done { color: var(--success); }
.feature-item.done svg { color: var(--success); }

.phase-progress { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.phase-progress-bar { flex: 1; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.phase-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.6s ease; }
.phase-progress-text { font-size: 12px; color: var(--text-muted); font-weight: 700; white-space: nowrap; }

.roadmap-backlog { margin-top: 24px; }
.roadmap-backlog h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.backlog-items { display: flex; flex-direction: column; gap: 6px; }
.backlog-item {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim);
  padding: 8px 14px; background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.backlog-item svg { color: var(--text-muted); flex-shrink: 0; }

.roadmap-stats {
  margin-top: 24px; padding: 20px; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.roadmap-stats h3 { font-size: 16px; margin-bottom: 16px; color: var(--text); font-weight: 700; }
.roadmap-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }


.avatar-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-xs { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-lg { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto; position: relative; }
.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: var(--bg); font-weight: 800; font-size: inherit;
}
.avatar-sm.avatar-placeholder { font-size: 16px; }
.avatar-xs.avatar-placeholder { font-size: 12px; }
.avatar-lg.avatar-placeholder { font-size: 32px; }


@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
.skeleton-posts { display: flex; flex-direction: column; gap: 12px; }
.skeleton-card {
  background: var(--card); border-radius: var(--radius-sm); padding: 16px;
  border: 1px solid var(--border-light);
}
.skeleton-header { display: flex; gap: 10px; align-items: center; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; background: #e0e0e0; animation: skeleton-pulse 1.5s infinite; }
.skeleton-lines { flex: 1; }
.skeleton-line { height: 10px; border-radius: 5px; background: #e0e0e0; animation: skeleton-pulse 1.5s infinite; margin-bottom: 4px; }
.skeleton-line.w100 { width: 100%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w30 { width: 30%; }
.skeleton-body { height: 120px; border-radius: var(--radius-xs); margin-top: 12px; background: #e8e8e8; animation: skeleton-pulse 1.5s infinite; }
.skeleton-footer { display: flex; gap: 16px; margin-top: 12px; }


.loading { text-align: center; padding: 48px 20px; color: var(--text-muted); font-size: 15px; }

.empty-state {
  margin: var(--space-2) 0; padding: var(--space-8) var(--space-4);
  background: none; border: 0; border-radius: 0;
  text-align: center; color: var(--text-dim); font-size: var(--fs-body); line-height: 1.45;
}
.empty-state:has(> :is(img, svg, p, .btn, .empty-art, .empty-state__icon, .empty-state__title)) {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.empty-state > p { max-width: 36ch; }
.empty-state__icon { display: block; margin: 0 auto; color: var(--text-muted); }
.empty-state__title {
  display: block; margin: 0; font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-semibold);
  letter-spacing: -.01em; line-height: 1.25; color: var(--text);
}
.feed-pulse-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 16px; font-size: 12px; color: var(--text-muted);
}
.feed-pulse-chip--btn {
  background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: start;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}
.feed-pulse-chip--btn:active { opacity: 0.7; }
.feed-pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
  box-shadow: 0 0 4px color-mix(in srgb, var(--primary) 50%, transparent);
}


.region-users-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: flex-end;
}
.region-users-sheet {
  width: 100%; max-height: 85dvh;
  background: var(--bg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex; flex-direction: column;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.5);
  
}

.region-users-sheet::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 20px;
  background: var(--bg); border-radius: var(--radius-xl) var(--radius-xl) 0 0; pointer-events: none; z-index: 0;
}
.region-users-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15);
  margin: 10px auto 0;
  flex-shrink: 0;
}
.region-users-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 14px 16px 10px;
  flex-shrink: 0;
}
.region-users-title { display: flex; flex-direction: column; gap: 3px; }
.region-users-title > span:first-child { font-size: 16px; font-weight: 700; color: var(--text); }
.region-users-stats { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.region-users-online-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--primary-light); color: var(--primary);
  border-radius: var(--radius-sm); padding: 1px 7px; font-size: 12px; font-weight: 600;
}
.region-users-close { flex-shrink: 0; }
.region-users-controls {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 10px;
  flex-shrink: 0;
}
.region-users-sort-wrap { position: relative; }
.region-users-sort-btn {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px; border-radius: var(--radius-pill);
  background: var(--primary-bg); border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--text-muted); font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.region-users-sort-menu {
  position: absolute; bottom: calc(100% + 6px); top: auto; left: 0; z-index: 200;
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  min-width: 160px;
}
.region-users-sort-item {
  display: block; width: 100%; padding: 10px 14px; text-align: start;
  font-size: 13px; font-family: inherit; background: none; border: none; cursor: pointer;
  color: var(--text-muted); transition: background 0.1s;
}
.region-users-sort-item + .region-users-sort-item { border-top: 1px solid rgba(255,255,255,0.04); }
.region-users-sort-item.active { color: var(--text); font-weight: 600; }
.region-users-online-filter {
  display: inline-flex; align-items: center; gap: 4px;
  height: 28px; padding: 0 10px; border-radius: var(--radius-pill);
  background: none; border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted); font-size: 12px; font-family: inherit; cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.region-users-online-filter.active {
  background: color-mix(in srgb, var(--text) 14%, transparent); border-color: color-mix(in srgb, var(--text) 30%, transparent);
  color: var(--text);
}
.region-users-list { overflow-y: auto; flex: 1; padding: 0 0 16px; }
.region-users-loading,
.region-users-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }
.region-users-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 16px;
  background: none; border: none; cursor: pointer; text-align: start;
  font-family: inherit;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.region-users-item:active { background: rgba(255,255,255,0.04); }
.region-users-rank { font-size: 12px; color: var(--text-muted); width: 18px; text-align: end; flex-shrink: 0; }
.region-users-avatar-wrap { position: relative; flex-shrink: 0; }
.region-users-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.region-users-avatar-placeholder {
  width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
}
.region-users-online-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); border: 2px solid var(--card);
}
.region-users-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.region-users-name { font-size: 13.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region-users-pro { font-size: 12px; background: var(--warning); color: #000; border-radius: 4px; padding: 1px 4px; margin-inline-start: 5px; font-weight: 700; vertical-align: middle; }
.region-users-meta { display: flex; gap: 10px; color: var(--text-muted); font-size: 12px; }
.region-users-meta span { display: inline-flex; align-items: center; gap: 3px; }
.region-users-trophy { flex-shrink: 0; }
.region-users-trophy-0 { color: #FFD700; }
.region-users-trophy-1 { color: #C0C0C0; }
.region-users-trophy-2 { color: #CD7F32; }


.city-sheet-radius-badge {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary);
  font-size: 12px; font-weight: 600; border-radius: var(--radius-sm);
  padding: 2px 8px; pointer-events: none; white-space: nowrap;
}

.feed-fallback-banner {
  margin: 12px 0; padding: 10px 14px;
  background: var(--primary-bg); border: 1px solid var(--primary-light);
  border-radius: var(--radius-sm); font-size: 13px; color: var(--text-dim);
  text-align: center;
}
.feed-search-banner {
  display: flex; align-items: center; justify-content: space-between;
  margin: 8px 0 4px; padding: 8px 14px;
  background: var(--card); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-muted);
}
.feed-search-clear {
  background: none; border: none; cursor: pointer; color: var(--text-dim);
  font-size: 12px; padding: 2px 6px; border-radius: var(--radius-xs);
  border: 1px solid rgba(255,255,255,0.1);
}
.feed-search-clear:hover { color: var(--text); }


.diary-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.diary-tabs .chip { display: flex; align-items: center; gap: 6px; }

.rating-tabs {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-bottom: 2px;
}
.rating-tabs::-webkit-scrollbar { display: none; }
.rating-tabs .chip { flex-shrink: 0; white-space: nowrap; }

.trips-list { display: flex; flex-direction: column; gap: 10px; }
.trip-card {
  background: var(--card); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light); color: var(--text);
  transition: all var(--transition); display: block;
}
.trip-card:hover { box-shadow: var(--shadow-md); }
.trip-date { font-size: 12px; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
.trip-main h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.trip-location { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
.trip-stats-row {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
  font-size: 13px; color: var(--accent); font-weight: 700;
}
.trip-stats-row span { display: flex; align-items: center; gap: 3px; }
.trip-rating { display: flex; gap: 1px; }



.stats-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-num { display: block; font-size: 26px; font-weight: 800; color: var(--primary); }
.stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.stats-section { margin-bottom: 16px; }
.stats-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.stats-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--card); border-radius: var(--radius-xs); margin-bottom: 4px;
  border: 1px solid var(--border-light);
}
.stats-rank { font-size: 12px; color: var(--text-muted); font-weight: 700; width: 24px; }
.stats-name { flex: 1; font-size: 14px; font-weight: 600; }
.stats-value { font-size: 13px; color: var(--accent); font-weight: 700; }


.export-wrapper { position: relative; margin-inline-start: auto; }
.export-dropdown {
  position: absolute; right: 0; top: 36px; z-index: 50;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  overflow: hidden; min-width: 140px;
}
.export-dropdown button {
  display: block; width: 100%; padding: 10px 16px; text-align: start;
  background: none; border: none; font-size: 14px; font-weight: 600;
  color: var(--text); cursor: pointer; transition: background var(--transition);
}
.export-dropdown button:hover { background: var(--bg-warm); }


.analytics-fav-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.analytics-fav { background: var(--card); border-radius: var(--radius-sm); padding: 12px 16px; border: 1px solid var(--border-light); }
.analytics-fav-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.analytics-fav-value { display: block; font-size: 15px; font-weight: 700; color: var(--text); margin-top: 2px; }


.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 8px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bar-value { font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 4px; }
.bar-track { flex: 1; width: 100%; max-width: 36px; background: var(--border-light); border-radius: 4px 4px 0 0; position: relative; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; transition: height 0.4s ease; min-height: 4px; }
.bar-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 4px; }

.hbar-chart { display: flex; flex-direction: column; gap: 8px; }
.hbar-row { display: flex; align-items: center; gap: 10px; }
.hbar-name { font-size: 13px; font-weight: 600; width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { flex: 1; height: 18px; background: var(--border-light); border-radius: 4px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.4s ease; }
.hbar-value { font-size: 12px; font-weight: 700; color: var(--text-dim); width: 32px; text-align: end; }



.diary-tabs.rating-tabs .chip { flex-shrink: 0; white-space: nowrap; }





























.trip-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; position: relative; }
.trip-photos.single { grid-template-columns: 1fr; }
.trip-photos img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.trip-photos.single img { aspect-ratio: auto; height: 160px; }
.trip-photos img:first-child { border-start-start-radius: 10px; }
.trip-photos img:last-child { border-start-end-radius: 10px; }
.trip-photos.single img { border-radius: var(--radius-sm) 10px 0 0; }
.trip-photos-more {
  position: absolute; right: 4px; bottom: 4px;
  background: rgba(0,0,0,0.65); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-sm);
}

.trip-media-vid { position: relative; overflow: hidden; background: #000; }
.trip-media-vid video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.trip-photos.single .trip-media-vid { border-radius: var(--radius-sm) 10px 0 0; }
.trip-photos.single .trip-media-vid video { aspect-ratio: auto; height: 160px; }
.trip-media-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; text-shadow: 0 2px 8px rgba(0,0,0,0.6); pointer-events: none;
}


.trip-pb-badge {
  display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 8px;
  background: linear-gradient(135deg, #f0b429, #e88a1a); color: #fff;
  font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: var(--radius-sm);
  vertical-align: middle;
}

.trip-card--pending { border-style: dashed; border-color: var(--border); }
.trip-pending-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px;
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  background: var(--bg-warm); border: 1px solid var(--border-light);
  padding: 3px 8px; border-radius: var(--radius-sm);
}


.sheet-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.15s ease;
}
.sheet-handle {
  width: 40px; height: 4px; border-radius: 2px; background: var(--border);
  margin: 0 auto 12px;
}
















@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }


























































.form-label--sm { font-size: 12px; color: var(--text-muted); margin-bottom: 3px; }













































.media-lightbox {
  position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
}
.media-lightbox-stage {
  max-width: 100vw; max-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 12px;
}
.media-lightbox-media { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 8px; }
.media-lightbox-close {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 3010;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.5); color: #fff; display: flex; align-items: center; justify-content: center;
}
.media-lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 3010;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.45); color: #fff; display: flex; align-items: center; justify-content: center;
}
.media-lightbox-prev { left: 10px; }
.media-lightbox-next { right: 10px; }
.media-lightbox-counter {
  position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 13px; font-weight: 600; background: rgba(0,0,0,0.5);
  padding: 4px 12px; border-radius: var(--radius); z-index: 3010;
}


.recommend-page { padding: 12px 0 80px; }
.rec-today {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg), var(--primary));
  color: white; margin-bottom: 14px;
}
.rec-today-species { font-size: 20px !important; }


.rec-tools-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px;
}
.rec-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 11px; background: var(--card);
  border: 1px solid var(--border-light); border-radius: var(--radius);
  text-decoration: none; color: var(--text); min-width: 0;
  transition: background 0.15s, transform 0.1s;
}
.rec-tile:active { transform: scale(0.97); background: var(--bg-warm); }
.rec-tile-emoji {
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.rec-tile-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.rec-tile-title {
  font-size: 13px; font-weight: 700; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rec-tile-desc {
  font-size: 12px; color: var(--text-muted); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rec-today svg { opacity: 0.8; flex-shrink: 0; }
.rec-today-title { font-size: 12px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.rec-today-species { font-size: 24px; font-weight: 800; margin-top: 2px; }
.rec-today-score { font-size: 13px; opacity: 0.8; margin-top: 2px; }

.rec-section { margin-bottom: 20px; }
.rec-section h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.rec-species-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.rec-species-name { width: 70px; font-size: 13px; font-weight: 700; }

.rec-spot {
  padding: 14px; background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); margin-bottom: 8px;
}
.rec-spot-name { font-size: 15px; font-weight: 700; }
.rec-spot-reason { font-size: 13px; color: var(--text-dim); margin-top: 3px; }
.rec-spot-species { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 4px; }

.rec-gear {
  display: block; padding: 14px; background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light); margin-bottom: 8px; color: var(--text);
}
.rec-gear-species { font-size: 15px; font-weight: 700; color: var(--primary); }
.rec-gear-info { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.rec-gear-tip { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-style: italic; }


.pro-hero {
  text-align: center; padding: 36px 24px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--bg), var(--primary), var(--primary-dark));
  border-radius: var(--radius); color: white;
  position: relative; overflow: hidden;
}
.pro-hero::after {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.pro-hero svg { color: #ffd700; margin-bottom: 8px; position: relative; z-index: 1; }
.pro-hero h2 { font-size: 28px; font-weight: 800; margin: 8px 0 4px; position: relative; z-index: 1; }
.pro-hero p { font-size: 15px; opacity: 0.85; position: relative; z-index: 1; }

.pro-active-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--success-light); color: var(--success);
  margin-bottom: 16px; border: 1px solid rgba(34,197,94,0.2);
}
.pro-active-banner strong { display: block; font-size: 15px; font-weight: 700; }
.pro-active-banner span { display: block; font-size: 12px; opacity: 0.8; }

.pro-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pro-feature {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px; background: var(--card); border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.pro-feature-icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.pro-feature-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.pro-feature-desc { font-size: 13px; color: var(--text-dim); }

.pro-plans { margin-bottom: 20px; }
.pro-plans h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.pro-plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pro-plan {
  padding: 20px; text-align: center; border-radius: var(--radius);
  background: var(--card); border: 2px solid var(--border); position: relative;
}
.pro-plan.best { border-color: var(--border); }
.pro-plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--btn-text); font-size: 12px; font-weight: 800;
  padding: 2px 10px; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.3px;
}
.pro-plan-price { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.pro-plan-period { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.pro-plan-save { font-size: 12px; color: var(--success); font-weight: 700; margin-bottom: 10px; }
.pro-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }



.shops-list { display: flex; flex-direction: column; gap: 12px; }


















.booking-form textarea {
  width: 100%; min-height: 50px; border: 1.5px solid var(--border);
  border-radius: var(--radius-xs); padding: 8px 12px; font-size: 13px;
  font-family: inherit; margin-bottom: 8px; resize: vertical;
}
.booking-success { color: var(--success); font-weight: 700; padding: 8px 0; }


.rating-filter { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.rating-list { display: flex; flex-direction: column; gap: 6px; }
.rating-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border-light); color: var(--text); transition: all var(--transition);
}
.rating-row:hover { border-color: var(--primary); }

.rating-rank {
  min-width: 24px; text-align: center;
  font-size: 14px; font-weight: 800; color: var(--text-muted); flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.rating-rank.top-1, .rating-rank.top-2, .rating-rank.top-3 {
  font-size: 20px; line-height: 1; color: inherit; background: none;
}


.seg-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.seg-row--scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.seg-row--scroll::-webkit-scrollbar { display: none; }
.seg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--radius); flex-shrink: 0; white-space: nowrap;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--border-light);
  color: var(--text-dim); transition: all var(--transition); text-decoration: none;
}
.seg-btn:hover { border-color: var(--primary); color: var(--text); }
.seg-btn.active { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-text); }
.seg-btn--cta { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); font-weight: var(--btn-weight); }
.seg-btn--cta:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); }
.seg-btn--sm { font-size: 12px; padding: 4px 10px; }


.rtab-bar { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; border-bottom: 1.5px solid var(--border); margin-bottom: 12px; scrollbar-width: none; -ms-overflow-style: none; }
.rtab-bar::-webkit-scrollbar { display: none; height: 0; }


.subtabs-sticky { position: sticky; top: 0; z-index: 20; background: var(--bg); }

@media (min-width: 768px) {
  .subtabs-sticky { top: calc(var(--desktop-header-h) + var(--action-btn-size) + 20px); }
}


.group-feed {
  display: flex; flex-direction: column;
  min-height: calc(100dvh - 174px);   
  padding: 12px 0 80px;
}
.group-feed--compose { padding-bottom: 132px; }
.group-feed-anchor { display: block; margin-top: auto; }


@media (max-width: 767px) {
  .group-feed {
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px) - 34px - var(--tab-height) - env(safe-area-inset-bottom, 0px));
    min-height: 0; padding: 12px 0 16px;
  }
  .group-feed--compose { padding-bottom: 74px; }   
}


.rtab-bar--flush { padding: 0; }

.rtab-bar--flush .rtab { flex: 1 1 0; justify-content: center; }
html:root .rtab-bar--flush .tab-u { flex: 1 1 0; justify-content: center; }   
.rtab {
  flex-shrink: 0; white-space: nowrap; background: transparent; cursor: pointer;
  padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--text-muted);
  border: 1.5px solid transparent; border-bottom: none;
  border-radius: 8px 8px 0 0; margin-bottom: -1.5px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.rtab:hover { color: var(--text); }

.rtab.active { color: var(--text); font-weight: 700; border-color: var(--border); background: var(--card); }


.seg-group { display: inline-flex; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 2px; }
.seg-group button {
  border: none; background: none; padding: 6px 14px; border-radius: var(--radius-xs);
  font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer;
  font-family: inherit; transition: all var(--transition);
}
.seg-group button.active { background: var(--sel-bg); color: var(--sel-text); }


.rlink {
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.rlink:hover { color: var(--primary); }
.rating-info { flex: 1; min-width: 0; }
.rating-name { display: block; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rating-city { display: block; font-size: 12px; color: var(--text-muted); }
.rating-metric { text-align: end; flex-shrink: 0; }
.rating-value { display: block; font-size: 14px; font-weight: 800; color: var(--primary); }
.rating-sub { display: block; font-size: 12px; color: var(--text-muted); }

.rec-fish {
  width: 46px; height: 40px; object-fit: contain; flex-shrink: 0;
  background: var(--bg); border-radius: var(--radius-sm); padding: 2px;
}
.rating-row.rec-mine {
  border-color: #b6862f;
  background: linear-gradient(90deg, rgba(182,134,47,0.12), var(--card) 60%);
}
.rating-row.rec-mine .rating-sub { color: #c79412; font-weight: 800; }
.rating-sub.rec-lead { color: #c79412; font-weight: 800; }
.rating-sub.rec-open { color: #7fae6b; font-weight: 700; }


.challenges-list { display: flex; flex-direction: column; gap: 8px; }
.challenge-card {
  background: var(--card); border-radius: var(--radius);
  padding: var(--card-padding); box-shadow: var(--shadow-xs);
  cursor: pointer; transition: var(--transition);
  border: 1px solid var(--border-light);
}
.challenge-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.challenge-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.challenge-type-badge {
  color: white; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.challenge-days { font-size: 12px; color: var(--text-muted); }
.challenge-card h3 { font-size: 16px; margin-bottom: 6px; font-weight: 700; }
.challenge-card p { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.challenge-card-footer { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.challenge-card-footer span { display: flex; align-items: center; gap: 4px; }
.challenge-arrow { margin-inline-start: auto; color: var(--text-muted); }

.challenge-detail { padding: 0 4px; }
.challenge-detail-badge {
  display: inline-flex; align-items: center; gap: 6px;
  color: white; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 8px;
}
.challenge-detail h2 { font-size: 20px; margin: 4px 0 6px; font-weight: 800; }
.challenge-detail-desc { color: var(--text-dim); margin-bottom: 8px; font-size: 14px; line-height: 1.45; }
.challenge-detail-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; font-size: 13px; }
.challenge-detail-meta > div { display: flex; align-items: center; gap: 6px; color: var(--text-dim); }
.challenge-days-left { color: var(--danger); font-weight: 700; font-size: 13px; }

.challenge-join-form {
  background: var(--primary-bg); padding: 12px; border-radius: var(--radius-sm); margin: 8px 0;
}
.challenge-join-form h3 { font-size: 14px; margin-bottom: 8px; font-weight: 700; }
.challenge-join-inputs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.challenge-join-inputs input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; box-sizing: border-box;
}

.challenge-leaderboard { margin-top: 8px; }
.challenge-leaderboard h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; font-weight: 700; }












































































.guides-list { display: flex; flex-direction: column; gap: 8px; }
.guide-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); border: 1px solid var(--border-light); }
.guide-card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; cursor: pointer; transition: background 0.15s;
}
.guide-card-header:hover { background: var(--bg-warm); }
.guide-icon {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-bg); border-radius: var(--radius); color: var(--primary);
}
.guide-info { flex: 1; }
.guide-info h3 { font-size: 15px; font-weight: 700; }
.guide-level { font-size: 12px; color: var(--text-muted); }
.guide-content { padding: 0 16px 16px; }
.guide-block { margin-bottom: 16px; }
.guide-block h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--primary-dark); }
.guide-block p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.guide-block li { font-size: 13px; color: var(--text-dim); margin-inline-start: 16px; line-height: 1.6; }


































.bcb-short { display: none; }



@media (min-width: 768px) {
  .page.buddy-page { overflow-x: clip; }
  .buddy-page .page-hdr {
    position: sticky; top: var(--desktop-header-h); z-index: 90;
    background: var(--bg);
    margin: -12px 0 0;
    padding: 12px 0 8px;
  }
}








.badge-demo {
  display: inline-flex; align-items: center; height: 22px; box-sizing: border-box;
  font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: var(--radius-pill);
  background: rgba(245,158,11,0.15); color: #b45309; border: 1px solid rgba(245,158,11,0.3);
  letter-spacing: 0.03em; text-transform: uppercase;
}










@media (min-width: 768px) {
  .buddy-page .buddy-filters-row {
    position: sticky; top: 128px; z-index: 85;
    background: var(--bg);
    padding-bottom: 10px; margin-bottom: 6px;
    box-shadow: 0 8px 10px -10px rgba(0, 0, 0, 0.65);
  }
}











.bf-short { display: none; }
@media (max-width: 430px) {
  .bf-full { display: none; }
  .bf-short { display: inline; }
}




















@media (max-width: 420px) {
  .buddy-response-item { flex-wrap: wrap; }
  .buddy-response-actions { width: 100%; justify-content: flex-end; }
}











.post-inline-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }


.post-buddy-cta {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 40px; margin-top: 10px; box-sizing: border-box;
  background: var(--btn-bg); color: var(--btn-text);
  border-radius: var(--btn-radius); text-decoration: none;
  font-size: var(--btn-font); font-weight: 700; letter-spacing: 0.2px;
  transition: background 0.15s;
}
.post-buddy-cta:hover { background: var(--btn-bg-hover); color: var(--btn-text); }


.post-invite {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 8px 10px; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); text-decoration: none; color: inherit;
}
.post-invite:hover { border-color: var(--border); }
.post-invite__body { flex: 1; min-width: 0; }
.post-invite__name {
  font-weight: 700; font-size: 14px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-invite__meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.post-invite .btn { flex-shrink: 0; }
















@media (max-width: 400px) {
  .buddy-detail-label { flex-basis: 128px; font-size: 12px; }
}











.avatar-xxs {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}



















































.empty-state-actions {
  display: flex; gap: 8px; justify-content: center; align-items: center;
  margin-top: 12px; flex-wrap: wrap;
}





@media (max-width: 430px) {
  .buddy-filters-row { gap: 6px; }
  .buddy-filters-row .buddy-filter-input-wrap { padding: 0 10px; }
  .buddy-own-actions { gap: 6px; }
}


::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }


@media (min-width: 768px) {
  .ads-grid { grid-template-columns: 1fr 1fr 1fr; }
  .weather-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}






































@media (min-width: 768px) {
  .chat-view { height: calc(100vh - 76px); min-height: 0; margin-top: 12px; }
}


























































@keyframes chat-spin { to { transform: rotate(360deg); } }






































@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}


.search-page { padding: 0 0 24px; }
.search-item {
  display: block; padding: 10px 12px; border-radius: var(--radius-xs);
  text-decoration: none; color: var(--text); transition: background 0.15s;
}
.search-item:hover { background: var(--primary-light); }
.search-item-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.search-item-meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.search-dropdown-item:hover { background: var(--primary-light); }


.sr-bar {
  position: sticky; top: 0; z-index: 10; background: var(--bg);
  display: flex; align-items: center; gap: 8px; padding: 12px 0;
}
.sr-bar-back {
  background: none; border: none; cursor: pointer; color: var(--text-dim);
  padding: 4px; display: flex; flex-shrink: 0;
}
.sr-bar-field { position: relative; flex: 1; display: flex; align-items: center; }
.sr-bar-icon { position: absolute; left: 12px; color: var(--text-muted); z-index: 2; }
.sr-bar-field input {
  width: 100%; padding: 10px 36px 10px 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 16px;
  background: var(--card); color: var(--text);
}
.sr-bar-clear {
  position: absolute; right: 8px; background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px; display: flex;
}

.sr-dropdown {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 20; overflow: hidden;
  max-height: 300px; overflow-y: auto;
}
.sr-dropdown-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted); text-transform: uppercase;
}
.sr-dropdown-head button {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px; font-size: 12px;
}
.sr-dropdown-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer;
}
.sr-dropdown-item:hover { background: var(--primary-light); }
.sr-dropdown-lead { color: var(--text-muted); flex-shrink: 0; }
.sr-dropdown-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-dropdown-x { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 2px; display: flex; flex-shrink: 0; }

.sr-hint { text-align: center; margin-top: 48px; color: var(--text-muted); }
.sr-hint svg { margin-bottom: 12px; opacity: 0.3; }
.sr-status { text-align: center; margin-top: 24px; color: var(--text-muted); }

.sr-results { display: flex; flex-direction: column; gap: 20px; }
.sr-section-head {
  display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px;
  color: var(--text-muted); margin-bottom: 8px; text-transform: uppercase;
}
.sr-section--feed .sr-section-head { color: var(--accent); }
.sr-list { display: flex; flex-direction: column; gap: 2px; }
.sr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }


.sr-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-xs);
  text-decoration: none; color: var(--text); transition: background 0.15s;
}
.sr-item:hover { background: var(--primary-light); }
.sr-item-thumb {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; overflow: hidden;
  background: var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.sr-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-item-body { min-width: 0; flex: 1; }
.sr-item-title { font-weight: 600; font-size: 15px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; } 
.sr-item-badge { color: var(--accent); font-size: 12px; font-weight: 700; margin-inline-end: 6px; }
.sr-item-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.sr-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.15s;
}
.sr-card:hover { border-color: var(--accent); }
.sr-card-thumb {
  aspect-ratio: 1; background: var(--border); display: flex; align-items: center;
  justify-content: center; color: var(--text-muted);
}
.sr-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-card-body { padding: 8px 10px; }
.sr-card-title { font-weight: 600; font-size: 14px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-card-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg:           #1a1f1c;
    --bg-warm:      #1f2522;
    --card:         #242b27;
    --text:         #e8e2d4;
    --text-dim:     #b8b0a3;
    --text-muted:   #8a837a;
    --border:       #353c37;
    --border-light: #2b322e;

    --primary:        #7fa17a;
    --primary-dark:   #6b8d68;
    --primary-light:  rgba(127,161,122,0.18);
    --primary-bg:     rgba(127,161,122,0.10);
    --accent:         #7fa17a;
    --accent-dark:    #6b8d68;
    --accent-light:   rgba(127,161,122,0.18);

    --orange:         #fb923c;
    --orange-light:   rgba(249,115,22,0.15);
    --danger:         #cf7f7f;
    --danger-light:   rgba(207,127,127,0.15);
    --success:        #4ade80;
    --success-light:  rgba(34,197,94,0.15);
    --warning:        #fbbf24;

    --shadow-xs:  0 1px 0 rgba(0,0,0,0.4);
    --shadow:     0 2px 12px rgba(0,0,0,0.45);
    --shadow-md:  0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  }
}


:root.dark {
  --bg:           #1a1f1c;
  --bg-warm:      #1f2522;
  --card:         #242b27;
  --text:         #e8e2d4;
  --text-dim:     #b8b0a3;
  --text-muted:   #8a837a;
  --border:       #353c37;
  --border-light: #2b322e;

  --primary:        #7fa17a;
  --primary-dark:   #6b8d68;
  --primary-light:  rgba(127,161,122,0.2);
  --primary-bg:     rgba(127,161,122,0.12);
  --accent:         #7fa17a;
  --accent-dark:    #6b8d68;
  --accent-light:   rgba(127,161,122,0.2);

  --orange:         #fb923c;
  --orange-light:   rgba(249,115,22,0.14);
  --danger:         #cf7f7f;
  --danger-light:   rgba(207,127,127,0.15);
  --success:        #4ade80;
  --success-light:  rgba(34,197,94,0.14);
  --warning:        #fbbf24;

  --shadow-xs:  0 1px 0 rgba(0,0,0,0.45);
  --shadow:     0 2px 12px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.55);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.65);
}


:root.dark input, :root.dark select, :root.dark textarea,
:root:not(.light) input:where([data-scheme="dark"]) { background: var(--bg-input); color: var(--input-text); border-color: var(--input-border); }

@media (prefers-color-scheme: dark) {
  :root:not(.light) input,
  :root:not(.light) select,
  :root:not(.light) textarea {
    background: var(--bg-input); color: var(--input-text); border-color: var(--input-border);
  }
  :root:not(.light) input:focus,
  :root:not(.light) select:focus,
  :root:not(.light) textarea:focus {
    border-color: var(--primary);
  }
  :root:not(.light) input::placeholder,
  :root:not(.light) textarea::placeholder { color: var(--input-placeholder); }
}

:root.dark input:focus, :root.dark select:focus, :root.dark textarea:focus {
  border-color: var(--primary);
}
:root.dark input::placeholder, :root.dark textarea::placeholder { color: var(--input-placeholder); }
:root.dark .btn-primary { background: var(--primary); color: var(--btn-text); }




:root.dark .app-header { background: var(--bg); }
:root.dark .tab-bar { background: color-mix(in srgb, var(--bg) 96%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .app-header { background: var(--bg); }
  :root:not(.light) .tab-bar { background: color-mix(in srgb, var(--bg) 96%, transparent); }
}

:root .app-layout--home .app-header,
:root.dark .app-layout--home .app-header { background: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .app-layout--home .app-header { background: transparent; }
}

:root .app-header--glass,
:root.dark .app-header--glass { background: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .app-header--glass { background: transparent; }
}

:root .app-header--glass.app-header--searching,
:root.dark .app-header--glass.app-header--searching { background: var(--bg); }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .app-header--glass.app-header--searching { background: var(--bg); }
}

:root .tab-bar--float,
:root.dark .tab-bar--float { background: var(--bg-tabbar-float); }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .tab-bar--float { background: var(--bg-tabbar-float); }
}


@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tab-bar { background: var(--bg); }
  :root.dark .tab-bar, :root:not(.light) .tab-bar { background: #121e1b; }
}


:root.dark .skeleton-avatar, :root.dark .skeleton-line { background: #253733; }
:root.dark .skeleton-body { background: var(--bg-skeleton); }
:root.dark .ad-no-photo { background: linear-gradient(135deg, #1a2422, var(--bg-skeleton)); }
@media (prefers-color-scheme: dark) {
  :root:not(.light) .skeleton-avatar,
  :root:not(.light) .skeleton-line { background: #253733; }
  :root:not(.light) .skeleton-body { background: var(--bg-skeleton); }
  :root:not(.light) .ad-no-photo { background: linear-gradient(135deg, #1a2422, var(--bg-skeleton)); }
}


:root.dark .spot-ratings-card,
:root.dark .spot-review-card,
:root.dark .spot-review-form { background: var(--card); border-color: var(--border-light); }
:root.dark .map-v3-search { background: var(--card); }
:root.dark .map-v3-fab { background: var(--card); }
:root.dark .map-species-filter { background: var(--card); }
:root.dark .map-add-btn { background: var(--card); color: var(--primary); }
:root.dark .map-locate-btn { background: var(--card); color: var(--text); }
:root.dark .star-btn { color: #3a5550; }
:root.dark .avatar-placeholder {
  background: linear-gradient(135deg, var(--primary-light), color-mix(in srgb, var(--primary) 25%, transparent));
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) .spot-ratings-card,
  :root:not(.light) .spot-review-card,
  :root:not(.light) .spot-review-form { background: var(--card); }
  :root:not(.light) .map-v3-search { background: var(--card); }
  :root:not(.light) .map-v3-fab { background: var(--card); }
  :root:not(.light) .map-species-filter { background: var(--card); }
  :root:not(.light) .map-add-btn { background: var(--card); color: var(--primary); }
  :root:not(.light) .map-locate-btn { background: var(--card); color: var(--text); }
  :root:not(.light) .star-btn { color: #3a5550; }
  :root:not(.light) .avatar-placeholder {
    background: linear-gradient(135deg, var(--primary-light), color-mix(in srgb, var(--primary) 25%, transparent));
  }
}


.theme-section { margin-top: 8px; }
.theme-toggle-group { display: flex; gap: 6px; }

.theme-toggle-group .seg-btn { flex: 1; }
.theme-toggle-btn {
  flex: 1; padding: 10px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg);
  color: var(--text-dim); font-size: 14px; font-weight: 600;
  cursor: pointer; text-align: center; transition: all var(--transition); font-family: inherit;
}
.theme-toggle-btn:hover { border-color: var(--primary); color: var(--text); }
.theme-toggle-btn.active { background: var(--sel-bg); color: var(--sel-text); border-color: var(--sel-line); }


.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon .input-icon {
  position: absolute; left: 14px; color: var(--text-muted);
  pointer-events: none; z-index: 1;
}
.input-with-icon input, .input-with-icon select { width: 100%; padding-inline-start: 42px !important; }
.input-with-icon select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 5.646a.5.5 0 01.708 0L8 8.293l2.646-2.647a.5.5 0 01.708.708l-3 3a.5.5 0 01-.708 0l-3-3a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; cursor: pointer;
}
.register-divider {
  display: flex; align-items: center; gap: 12px; margin: 4px 0;
}
.register-divider::before, .register-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.register-divider span {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}
















@keyframes welcomeFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}







































@media (max-width: 480px) {
  .welcome-container { padding: 28px 20px 20px; border-radius: var(--radius-xl); min-height: 480px; }
  .welcome-step h1 { font-size: 22px; }
  .welcome-step h2 { font-size: 19px; }
  .welcome-icon-big { width: 80px; height: 80px; border-radius: var(--radius-xl); }
  .welcome-icon-big svg { width: 48px !important; height: 48px !important; }
  .welcome-btn-next { padding: 12px 22px; font-size: 14px; }
}


.post-menu-wrapper { position: relative; margin-inline-start: auto; }
.post-menu-btn {
  background: none; border: none; cursor: pointer; padding: 4px; border-radius: var(--action-btn-radius);
  color: var(--text-muted); transition: var(--transition);
  display: flex; align-items: center;
}
.post-menu-btn:hover { background: var(--border-light); color: var(--text); }

.post-dropdown-menu {
  position: absolute; top: 100%; right: 0; z-index: 50;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.14);
  min-width: 220px; overflow-x: hidden; overflow-y: auto;
  max-height: min(70vh, 460px);
  padding: 6px 0;
  animation: dropdown-fade 0.13s ease;
}
@keyframes dropdown-fade {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.post-dropdown-menu button,
.post-dropdown-link-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 11px 16px; background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: background 0.1s; font-family: inherit; text-align: start;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.post-dropdown-menu button:hover,
.post-dropdown-link-item:hover { background: var(--bg-warm); }
.post-dropdown-menu button svg,
.post-dropdown-link-item svg { flex-shrink: 0; color: var(--text-muted); }
.post-dropdown-menu button.post-dropdown-danger { color: var(--danger); }
.post-dropdown-menu button.post-dropdown-danger svg { color: var(--danger); opacity: 0.8; }
.post-dropdown-menu button.post-dropdown-danger:hover { background: var(--danger-light); }
.post-dropdown-divider { height: 1px; background: var(--border-light); margin: 5px 0; }
.post-dropdown-locked { display: block; padding: 6px 16px; font-size: 12px; color: var(--text-muted); cursor: default; }

@keyframes overlay-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes modal-slide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.report-reasons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.report-reason-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px; color: var(--text); transition: var(--transition);
}
.report-reason-item:hover { border-color: var(--primary); background: var(--primary-bg); }
.report-reason-item.selected { border-color: var(--sel-line); background: var(--sel-bg); color: var(--sel-text); }
.report-reason-item input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }
.report-description {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit;
  resize: vertical; min-height: 60px; margin-bottom: 12px;
  color: var(--text); background: var(--bg-warm); transition: var(--transition);
}
.report-description:focus { outline: none; border-color: var(--input-border-focus); }
.report-description::placeholder { color: var(--text-muted); }

.report-photo { margin-bottom: 12px; }
.report-photo-add {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; width: 100%; justify-content: center;
  background: var(--bg-warm); color: var(--text-dim); cursor: pointer;
  border: 1.5px dashed var(--border); border-radius: var(--input-radius);
  font-size: 13px; font-weight: 600; font-family: inherit;
  transition: border-color var(--transition), color var(--transition);
}
.report-photo-add:hover { border-color: var(--primary); color: var(--primary); }
.report-photo-preview { position: relative; display: inline-block; border-radius: var(--input-radius); overflow: hidden; }
.report-photo-preview img { display: block; max-height: 160px; max-width: 100%; border-radius: var(--input-radius); }
.report-photo-remove {
  position: absolute; top: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.report-error {
  color: var(--danger); font-size: 13px; margin-bottom: 10px;
  padding: 8px 10px; background: var(--danger-light); border-radius: var(--radius-xs);
}
.report-success { text-align: center; padding: 20px 0; }
.report-success p { font-size: 15px; color: var(--text); margin-bottom: 16px; line-height: 1.5; }
.report-submit-btn { width: 100%; padding: 12px; font-size: 15px; font-weight: 700; border-radius: var(--radius-sm); }
.report-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }


.modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.62); display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: overlay-fade 0.2s ease;
}

.modal-content {
  background: var(--card); color: var(--text); border-radius: var(--radius-lg);
  width: 100%; max-width: 480px; max-height: 88vh; max-height: 88dvh;
  overflow-y: auto; box-shadow: 0 14px 44px rgba(0,0,0,0.45);
  animation: modal-slide 0.2s ease; border: 1px solid var(--border-light);
}
.modal-content.create-spot-modal {
  background: var(--card); border-radius: var(--radius); width: 100%; max-width: 540px;
  max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35); animation: modal-slide 0.2s ease;
  min-height: 0;
}
.modal-content.create-spot-modal .modal-body {
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; min-height: 0;
}

@media (max-width: 600px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-content.create-spot-modal {
    max-width: 100%; width: 100%; max-height: 92dvh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal-content.create-spot-modal .modal-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    position: sticky; bottom: 0; background: var(--card); z-index: 2;
  }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border-light);
}
.modal-header h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0; font-weight: 700; }
.modal-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px; border-top: 1px solid var(--border-light);
}
.fish-chips { display: flex; flex-wrap: wrap; gap: 6px; }



























.community-region-label {
  font-size: 13px; color: var(--text-dim); margin-bottom: 12px;
  padding: 8px 12px; background: var(--primary-bg); border-radius: var(--radius-xs);
}
.community-trip-card { display: block !important; text-decoration: none; color: inherit; }
.community-author { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.community-author-name { font-weight: 700; text-decoration: none; color: var(--text); }
.community-region-tag {
  font-size: 12px; color: var(--text-muted); background: var(--bg);
  padding: 2px 6px; border-radius: 4px; margin-inline-start: auto;
}
.community-notes { margin-top: 6px; font-size: 12px; color: var(--text-dim); line-height: 1.4; }


.stories-bar {
  display: flex; gap: 12px; overflow-x: auto; padding: 12px 4px;
  scrollbar-width: none;
}
.stories-bar::-webkit-scrollbar { display: none; }
.story-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex-shrink: 0; text-decoration: none;
}
.story-avatar-ring {
  width: 66px; height: 66px; border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.story-avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--card);
}
.story-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 20px;
}
.story-name {
  font-size: 12px; color: var(--text-dim); max-width: 66px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
}


.doubletap-heart {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); z-index: 10;
  pointer-events: none; animation: doubletap-heart-anim 0.8s ease-out forwards;
}
@keyframes doubletap-heart-anim {
  0%   { transform: translate(-50%, -50%) scale(0);   opacity: 1; }
  20%  { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  40%  { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1);   opacity: 0; }
}


.poll-widget { padding: 12px 16px; margin: 0 0 4px; }
.poll-question {
  display: flex; align-items: center; gap: 6px; font-weight: 700;
  font-size: 14px; margin-bottom: 10px; color: var(--text);
}
.poll-options { display: flex; flex-direction: column; gap: 8px; }
.poll-option {
  position: relative; display: flex; align-items: center; width: 100%;
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-warm); cursor: pointer; font-size: 14px; text-align: start;
  transition: border-color 0.2s, background 0.2s; overflow: hidden; font-family: inherit;
  
  color: var(--text);
}
.poll-option:not(.voted):hover { border-color: var(--primary); background: var(--primary-bg); }
.poll-option.voted { cursor: default; border-color: var(--border); }
.poll-option.voted.selected { border-color: var(--sel-line); background: color-mix(in srgb, var(--text) 7%, transparent); }
.poll-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: color-mix(in srgb, var(--primary) 12%, transparent); border-radius: var(--radius-sm);
  transition: width 0.4s ease; z-index: 0;
}
.poll-option-text { position: relative; z-index: 1; flex: 1; }
.poll-option-pct {
  position: relative; z-index: 1; font-weight: 700; font-size: 13px;
  color: var(--text-muted); margin-inline-start: 8px; min-width: 36px; text-align: end;
}
.poll-total { margin-top: 8px; font-size: 12px; color: var(--text-muted); }



.spawn-ban-banner {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 12px; margin: 0;
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
  border-radius: var(--radius-sm); color: var(--text-dim);
}
.spawn-ban-content {
  display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0;
  text-decoration: none; color: inherit;
}
.spawn-ban-content svg { flex-shrink: 0; color: var(--danger); margin-top: 1px; }
.spawn-ban-text { font-size: 13px; line-height: 1.45; color: var(--text-dim); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.spawn-ban-text strong { display: inline; font-size: 13px; font-weight: 700; color: var(--danger); margin-inline-end: 2px; }
.spawn-ban-close {
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--text-muted); opacity: 0.6; flex-shrink: 0;
}
.spawn-ban-close:hover { opacity: 1; }
@media (prefers-color-scheme: dark) {
  .spawn-ban-banner { background: color-mix(in srgb, var(--danger) 8%, transparent); border-color: color-mix(in srgb, var(--danger) 20%, transparent); }
}



.repost-header {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px 4px;
  font-size: 12px; color: var(--text-muted);
}
.repost-header a { color: var(--text-muted); font-weight: 600; text-decoration: none; }
.repost-header a:hover { color: var(--text); }
.repost-header .post-time { margin-inline-start: auto; }


.repost-body { padding: 0 var(--card-padding) 4px; }
.repost-quote-text {
  font-size: 15px; color: var(--text); line-height: 1.5;
  padding: 2px 0 10px; margin: 0;
}


.repost-quote-card {
  display: block; text-decoration: none;
  margin: 0 0 4px;
  padding: 11px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  transition: background 0.15s;
}
.repost-quote-card:hover { background: var(--bg-warm); }
.repost-quote-author {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
}
.repost-quote-avatar {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.repost-quote-avatar--ph {
  background: var(--border); display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-muted);
}
.repost-quote-name { font-size: 13px; font-weight: 700; color: var(--text); }
.repost-quote-dot { color: var(--text-muted); font-size: 12px; }
.repost-quote-time { font-size: 12px; color: var(--text-muted); }
.repost-quote-body {
  font-size: 13px; color: var(--text-muted); line-height: 1.45;
  margin: 0 0 8px; word-break: break-word;
}
.repost-quote-thumb {
  position: relative; border-radius: 8px; overflow: hidden;
  max-height: 160px;
}
.repost-quote-thumb img {
  width: 100%; max-height: 160px; object-fit: cover; display: block;
}
.repost-quote-more {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,0.55); color: #fff;
  font-size: 12px; padding: 2px 7px; border-radius: var(--radius-sm); font-weight: 600;
}


.repost-sheet-overlay {
  
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: flex-end;
  animation: overlay-in 0.2s ease;
  
  touch-action: none;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
.repost-sheet {
  width: 100%; max-width: 480px; margin: 0 auto;
  
  background: linear-gradient(var(--card), var(--card)) var(--bg); border-radius: var(--radius) var(--radius) 0 0;
  
  
  max-height: 66dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: sheet-up 0.25s cubic-bezier(0.34,1.2,0.64,1);
  
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1);
  overscroll-behavior: none;
  
  touch-action: pan-y;
}

.repost-sheet-handle { cursor: grab; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.repost-sheet-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 0 auto 14px;
}
.repost-sheet-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 14px;
}

.repost-sheet-head {
  position: sticky; top: -8px; z-index: 2;
  margin: -8px -16px 0; padding: 8px 16px 12px;
  background: linear-gradient(var(--card), var(--card)) var(--bg);
}
.repost-sheet-head > .repost-sheet-title { margin-bottom: 0; }


.repost-sheet-preview {
  display: flex; align-items: center; gap: 10px;
  background: none; border-radius: 0;
  padding: 0 2px; margin-bottom: 14px;
}
.repost-sheet-preview-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.repost-sheet-preview-avatar--ph {
  background: var(--border); display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 700; color: var(--text-muted);
}
.repost-sheet-preview-text {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
}
.repost-sheet-preview-name { font-size: 13px; font-weight: 700; color: var(--text); }
.repost-sheet-preview-body {
  font-size: 12px; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.repost-sheet-preview-thumb {
  width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}


.repost-sheet-textarea {
  width: 100%; box-sizing: border-box;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 10px 12px;
  min-height: 46px;
  font-size: 14px; color: var(--text); font-family: inherit;
  resize: none; outline: none; margin-bottom: 14px;
  transition: border-color 0.15s;
}
.repost-sheet-textarea:focus { border-color: var(--border); }
.repost-sheet-textarea::placeholder { color: var(--text-muted); }


.repost-sheet-feed-btn {
  width: 100%; height: 46px; border-radius: var(--radius);
  background: var(--primary); color: var(--btn-text);
  font-size: 15px; font-weight: 700; font-family: inherit;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.15s;
  margin-bottom: 16px;
}
.repost-sheet-feed-btn:hover { opacity: 0.9; }
.repost-sheet-feed-btn:disabled { opacity: 0.6; cursor: not-allowed; }


.repost-sheet-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 12px; margin-bottom: 14px;
}
.repost-sheet-divider::before,
.repost-sheet-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}


.repost-sheet-external {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 16px;
  flex-wrap: wrap;
}
.repost-sheet-ext-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--bg-warm); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 12px; color: var(--text-muted); font-family: inherit;
  cursor: pointer; min-width: 72px; transition: background 0.15s;
}
.repost-sheet-ext-btn:hover { background: var(--border-light); }
.repost-sheet-ext-btn svg { flex-shrink: 0; }


.repost-sheet-cancel {
  width: 100%; height: 42px; border-radius: var(--radius-sm);
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px; font-family: inherit;
  cursor: pointer; transition: background 0.15s;
}
.repost-sheet-cancel:hover { background: var(--bg-warm); color: var(--text); }
.repost-sheet-cancel--link {
  border: none; background: none; height: 36px;
  color: var(--text-muted); font-size: 14px; font-weight: 600;
}
.repost-sheet-cancel--link:hover { background: none; color: var(--text); }


.share-menu-wrapper { position: relative; display: inline-flex; }
.share-dropdown { bottom: 100%; top: auto; right: 0; margin-bottom: 4px; }
.share-dropdown button { color: var(--text) !important; }
.share-dropdown button:hover { background: var(--primary-light) !important; }

.share-menu {
  position: absolute; bottom: 40px; right: 0; background: var(--card);
  border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 8px 0;
  box-shadow: var(--shadow-md); z-index: 50; min-width: 200px;
}
.share-menu-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  font-size: 14px; cursor: pointer; color: var(--text); white-space: nowrap;
}
.share-menu-item:hover { background: var(--bg-warm); }


@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.shimmer-placeholder {
  background: linear-gradient(90deg, #f0f2f5 25%, #e4e7ec 50%, #f0f2f5 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmer 1.5s ease-in-out infinite;
}
.shimmer-placeholder.loaded { animation: none !important; background: transparent !important; }
:root.dark .shimmer-placeholder {
  background: linear-gradient(90deg, #1a2422 25%, #243330 50%, #1a2422 75%) !important;
  background-size: 200% 100% !important;
}
:root.dark .shimmer-placeholder.loaded { animation: none !important; background: transparent !important; }


@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: page-fade-in 0.22s ease-out; }


.pull-refresh-indicator {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: height 0.15s ease-out; position: relative; z-index: 50;
}
.pull-refresh-spinner { transition: transform 0.1s linear; }
.pull-refresh-spinner.spinning { animation: pull-spin 0.8s linear infinite; }
@keyframes pull-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.user-hover-card {
  position: fixed; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow-lg);
  z-index: 1000; min-width: 220px; animation: hover-card-in 0.15s ease-out;
}
@keyframes hover-card-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.user-hover-name { font-weight: 800; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.user-hover-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.user-hover-actions { display: flex; gap: 8px; }
.user-hover-btn {
  flex: 1; padding: 7px 12px; border-radius: var(--radius-xs);
  font-size: 12px; font-weight: 700; text-align: center; text-decoration: none;
  background: var(--primary); color: var(--btn-text); transition: opacity 0.2s;
  border: 1px solid transparent; 
}
.user-hover-btn:hover { opacity: 0.85; color: #fff; }
.user-hover-btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.user-hover-btn-secondary:hover { background: var(--border-light); color: var(--text); }


.desktop-header-city-wrap { position: relative; flex-shrink: 0; }
.city-search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 10px;
  box-shadow: var(--shadow-lg); z-index: 500; min-width: 260px;
  animation: hover-card-in 0.15s ease-out;
}
.city-search-input {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: var(--radius-xs); font-size: 16px; background: var(--card);
  color: var(--text); outline: none; box-sizing: border-box;
  touch-action: manipulation;
}
.city-search-input:focus { border-color: var(--border); box-shadow: none; background: var(--card); }
.city-search-input::placeholder { color: var(--text-muted); }
.city-search-results { margin-top: 6px; max-height: 240px; overflow-y: auto; }
.city-search-item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 8px 10px; border: none; background: none; cursor: pointer;
  border-radius: var(--radius-xs); text-align: start; color: var(--text); font-size: 14px;
  transition: background 0.15s; font-family: inherit;
}
.city-search-item:hover { background: var(--bg-warm); }
.city-search-name { font-weight: 700; }
.city-search-region { font-size: 12px; color: var(--text-muted); margin-inline-start: 8px; }
.city-search-empty { padding: 12px 10px; font-size: 13px; color: var(--text-muted); text-align: center; }
.city-search-radius { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-light); }
.city-search-radius label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 700; }
.city-search-radius input[type="range"] {
  width: 100%; accent-color: var(--primary);
  touch-action: none; cursor: pointer;
  position: relative; z-index: 1;
}
.mobile-city-dropdown { max-height: 420px; overflow-y: auto; }


.city-sheet-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(3px);
  padding-bottom: var(--city-kb-offset);
  transition: padding-bottom 0.22s ease;
}
@media (min-width: 769px) {
  .city-sheet-overlay { align-items: center; }
}
.city-sheet {
  width: 100%;
  max-height: min(70dvh, calc(100dvh - var(--city-kb-offset) - 16px));
  background: var(--card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  animation: city-sheet-up 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.35);
  transition: max-height 0.22s ease;
}
@media (min-width: 769px) {
  .city-sheet {
    width: 440px; max-height: 74vh;
    border-radius: var(--radius-xl);
    animation: city-sheet-in 0.22s cubic-bezier(0.34,1.3,0.64,1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  }
}
@keyframes city-sheet-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes city-sheet-in {
  from { transform: scale(0.94) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.city-sheet-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px; margin: 10px auto 0; flex-shrink: 0;
}
@media (min-width: 769px) { .city-sheet-handle { display: none; } }


.city-sheet-filters {
  display: flex; gap: 6px;
  padding: 10px 16px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--primary-bg);
  flex-shrink: 0;
}
.city-sheet-filters::-webkit-scrollbar { display: none; }
.city-filter-chip {
  flex-shrink: 0; padding: 7px 14px;
  border-radius: var(--chip-radius); font-size: 13px; font-weight: 500;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--text-muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.city-filter-chip.active {
  background: color-mix(in srgb, var(--text) 22%, transparent);
  border-color: var(--sel-line);
  color: var(--text); font-weight: 600;
}
.city-filter-chip:active { opacity: 0.75; }


.city-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 10px; flex-shrink: 0;
}
.city-sheet-header span {
  font-weight: 700; font-size: 17px; color: var(--text); letter-spacing: -0.2px;
}
.city-sheet-close {
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  background: var(--bg-warm); border: none; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.city-sheet-close:hover { background: var(--border); color: var(--text); }



.city-sheet-search-row {
  padding: 0 16px 12px; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
}
.city-sheet-search-wrap {
  flex: 1; display: flex; align-items: center; gap: 8px;
  padding: 0 12px; border-radius: var(--radius); height: 42px; box-sizing: border-box;
  background: var(--bg-warm); border: 1.5px solid var(--border-light);
  min-width: 0; transition: border-color 0.15s;
}
.city-sheet-search-wrap:focus-within { border-color: var(--border); }
.city-sheet-search-input {
  flex: 1; border: none !important; background: transparent !important;
  font-size: 16px; color: var(--text); outline: none !important;
  font-family: inherit; padding: 0; width: 0; min-width: 0;
  line-height: 1.4; box-shadow: none !important;
}
.city-sheet-search-input:focus,
.city-sheet-search-input:focus-visible {
  border: none !important; box-shadow: none !important;
  outline: none !important; background: transparent !important;
}
.city-sheet-search-input::placeholder { color: var(--text-muted); font-size: 14px; }
.city-sheet-search-clear {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: background 0.12s;
}
.city-sheet-search-clear:hover { background: var(--border-light); color: var(--text); }
.city-sheet-country-pill {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 0 12px; border-radius: var(--radius); height: 42px; box-sizing: border-box;
  border: 1.5px solid var(--border-light); background: var(--bg-warm);
  font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; font-family: inherit; transition: border-color 0.15s;
  white-space: nowrap;
}
.city-sheet-country-pill:hover,
.city-sheet-country-pill.open { border-color: var(--primary); color: var(--primary); }


.city-sheet-country-inline {
  flex-shrink: 0; border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}
.city-sheet-country-search-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-bottom: 1px solid var(--border-light);
}
.city-sheet-country-list {
  max-height: 180px; overflow-y: auto; padding: 4px 8px;
}


.city-sheet-body {
  flex: 1; overflow-y: auto; padding: 0 16px 16px;
}
.city-sheet-results { display: flex; flex-direction: column; }


.city-sheet-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 8px; border: none; background: none;
  cursor: pointer; border-radius: var(--radius); font-family: inherit; text-align: start;
  transition: background 0.12s;
}
.city-sheet-item:hover { background: var(--bg-warm); }
.city-sheet-item.active { background: var(--sel-bg); }
.city-sheet-item-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.city-sheet-item-name { font-weight: 600; font-size: 14px; color: var(--text); }
.city-sheet-item.active .city-sheet-item-name { color: var(--btn-text); }
.city-sheet-item-region { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-sheet-item-check { color: var(--primary); flex-shrink: 0; }
.city-sheet-empty {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px; color: var(--text-muted); font-size: 14px;
}



.city-sheet-gps-btn { margin-bottom: 16px; margin-top: 4px; }
.city-sheet-gps-btn svg, .city-sheet-gps-btn img { flex-shrink: 0; }
.gps-spin { animation: gpsSpin 1s linear infinite; }
@keyframes gpsSpin { to { transform: rotate(360deg); } }

.city-sheet-gps-error {
  margin-top: 10px; padding: 10px 12px;
  background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.35);
  border-radius: var(--radius); font-size: 13px; color: var(--text-dim);
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.45;
}
.city-sheet-gps-error span { flex: 1; }
.city-sheet-gps-error-close {
  flex-shrink: 0; background: none; border: none; color: var(--text-muted);
  font-size: 14px; cursor: pointer; padding: 0 2px; line-height: 1;
  margin-top: 1px;
}


.city-sheet-section-label {
  font-size: 12px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 0 4px 8px; margin-top: 4px;
}
.city-sheet-popular {
  display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px;
}
.city-sheet-pop-chip {
  padding: 7px 14px; border-radius: var(--chip-radius);
  border: 1.5px solid var(--border-light); background: var(--bg-warm);
  font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.city-sheet-pop-chip:hover { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.city-sheet-pop-chip.active { background: var(--sel-bg); color: var(--sel-text); border-color: var(--sel-line); }
.city-sheet-pop-all { border-style: dashed; color: var(--text-muted); }
.city-sheet-pop-all.active { border-style: solid; }


.city-sheet-current {
  border-top: 1px solid var(--border-light);
  padding-top: 14px; margin-top: 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.city-sheet-current-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px;
}
.city-sheet-current-row svg { color: var(--primary); flex-shrink: 0; }
.city-sheet-current-name { font-weight: 600; color: var(--text); flex: 1; }
.city-sheet-current-count { font-size: 12px; color: var(--text-muted); }
.city-sheet-current-clear {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.12s, color 0.12s;
}
.city-sheet-current-clear:hover { background: var(--border-light); color: var(--danger); }
.city-sheet-radius-row {
  display: flex; align-items: center; gap: 10px;
}
.city-sheet-radius-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.city-sheet-radius-row input[type="range"] {
  flex: 1; accent-color: var(--primary); touch-action: none; cursor: pointer; height: 22px;
}
.city-sheet-radius-val {
  font-size: 12px; font-weight: 700; color: var(--primary);
  white-space: nowrap; min-width: 46px; text-align: end;
}












.pwa-standalone {
  
  --safe-top: max(6px, calc(env(safe-area-inset-top, 44px) - 6px));
}
.pwa-standalone .app-header {
  
  padding-top: var(--safe-top) !important;
  height: calc(var(--header-height) + var(--safe-top)) !important;
}

.pwa-standalone .app-layout--home .app-header {
  padding-top: 0 !important;
  height: var(--header-height) !important;
}
.pwa-standalone .app-header-inner {
  height: var(--header-height) !important; 
}
.pwa-standalone .tab-bar {
  
  height: calc(var(--tab-height) + env(safe-area-inset-bottom, 20px)) !important;
  padding-bottom: env(safe-area-inset-bottom, 20px) !important;
}

.pwa-standalone .tab-bar--float {
  height: var(--tab-panel-h) !important;
  padding-bottom: 0 !important;
  bottom: calc(env(safe-area-inset-bottom, 20px) + 6px);
}

.pwa-standalone .clips-feed {
  top: 0;
  bottom: 0;
}
.pwa-standalone .clips-upload-fab {
  bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 20px) + 14px);
}
.pwa-standalone .tab-item { font-size: 12px !important; }
.pwa-standalone .tab-item svg { stroke-width: 1.65 !important; }


body.clips-fullscreen .app-header {
  opacity: 0;
  pointer-events: none;
}
body.clips-fullscreen .tab-bar {
  opacity: 0;
  pointer-events: none;
}
body.clips-fullscreen .clips-feed {
  top: 0;
  bottom: 0;
}

.pwa-standalone .app-main:not(:has(.map-page-v3)) {
  padding-bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 20px)) !important;
}
.pwa-standalone .auth-page {
  padding-top: calc(var(--header-height) + var(--safe-top));
}
.pwa-standalone .map-container {
  height: calc(100dvh - var(--header-height) - var(--safe-top) - var(--tab-height) - env(safe-area-inset-bottom, 20px)) !important;
}

.pwa-standalone .map-page-v3 { height: 100dvh !important; }





:root:not(.light) {
  --bg:           #1a1f1c;
  --bg-warm:      #1f2522;
  --card:         #242b27;
  --text:         #e8e2d4;
  --text-dim:     #b8b0a3;
  --text-muted:   #8a837a;
  --border:       #353c37;
  --border-light: #2b322e;
  --shadow-xs:    0 1px 2px rgba(0,0,0,0.3);
  --shadow:       0 2px 8px rgba(0,0,0,0.35);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg:    0 8px 28px rgba(0,0,0,0.55);
}
:root:not(.light) body { background: var(--bg); color: var(--text); }

:root:not(.light) input,
:root:not(.light) select,
:root:not(.light) textarea { background: var(--input-bg); color: var(--input-text); border-color: var(--input-border); }
:root:not(.light) input::placeholder,
:root:not(.light) select::placeholder,
:root:not(.light) textarea::placeholder { color: var(--text-muted); }




.desktop-header-search { display: none; }
.desktop-header-city { display: none; }
.desktop-inline-header { display: none; }
.desktop-inline-header-inner { display: none; }
.sidebar-top-row { display: none; }
.sidebar-search { display: none; }
.desktop-header-coins { display: none; }
.desktop-header-avatar { display: none; }
.desktop-header-msg { display: none; }
.desktop-left-sidebar { display: none; }
.desktop-right-sidebar { display: none; }
.desktop-layout { display: contents; }
.header-login-btn { display: none; }
.header-sort-tabs { display: none; }


.mobile-search-btn { display: flex; }


.desktop-header-create { display: none; }




@media (min-width: 768px) and (min-height: 600px),
       (min-width: 640px) and (pointer: coarse) and (orientation: landscape) {
  
  .app-layout { padding-top: 0 !important; }
  
  .tab-bar, .tab-scrim { display: none !important; }
  .mobile-search-btn { display: none !important; }
  .mobile-fish-fab { display: none !important; }
  .fab { display: none !important; }
  
  .top-spots-section { display: none !important; }
  .location-selector { display: none !important; }
  .feed-promo { display: none !important; }
  .feed-quick-stats { display: none !important; }
  
  .feed-sort { display: none !important; }
  
  .app-header { display: none !important; }
  
  .home-scrim { display: none !important; }

  

  
  .desktop-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: 64px 1fr;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
  }

  
  .desktop-inline-header {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    grid-column: 1 / -1;
    grid-row: 1;
    height: 64px;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    gap: 0;
  }
  
  .desktop-inline-header > .app-logo {
    width: 220px;
    flex-shrink: 0;
    padding-inline-start: 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
  }
  
  .desktop-inline-header-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    min-width: 0;
  }
  
  .desktop-inline-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 12px 0 16px;
    flex-shrink: 0;
  }

  
  .desktop-left-sidebar {
    display: flex !important;
    flex-direction: column;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    position: sticky;
    top: 76px;
    
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 10px;
    margin: 12px 0 12px 12px;
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
  }
  
  .desktop-left-sidebar::-webkit-scrollbar { width: 6px; }
  .desktop-left-sidebar::-webkit-scrollbar-thumb {
    background: var(--border); border-radius: 3px;
  }

  
  .app-main.desktop-center {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    padding: 12px 12px 48px;
    background: transparent;
    overflow-y: visible;
    position: relative;
  }
  
  .app-main.desktop-center::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg);
    z-index: 100;
    pointer-events: none;
  }

  
  .desktop-right-sidebar { display: none !important; }

  
  .desktop-inline-header .app-logo { text-decoration: none; }

  
  .desktop-header-city {
    display: flex !important;
    align-items: center; gap: 5px;
    padding: 0 12px; height: 36px; border-radius: var(--radius-xs);
    background: var(--bg); color: var(--text-dim);
    font-size: 13px; font-weight: 600; border: 1px solid var(--border);
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    font-family: inherit; transition: all 0.15s;
    max-width: 200px; min-width: 130px;
    justify-content: flex-start;
  }
  .desktop-header-city span {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; text-align: start;
  }
  .desktop-header-city:hover { background: var(--border); }
  .desktop-header-city svg { color: var(--primary); }

  
  .desktop-header-search {
    display: flex !important;
    flex: 1; max-width: none;
    align-items: center; gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0 14px; height: 36px;
    cursor: pointer; transition: all 0.15s;
    box-sizing: border-box;
  }
  .desktop-header-search:hover { border-color: var(--border); }
  .desktop-header-search svg { color: var(--text-muted); flex-shrink: 0; }
  .desktop-header-search input,
  :root:not(.light) .desktop-header-search input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100%;
    font-size: 13px;
    color: var(--text);
    flex: 1;
    min-width: 0;
    cursor: pointer;
    font-family: inherit;
  }
  .desktop-header-search input::placeholder { color: var(--text-muted); }

  
  .desktop-header-coins {
    display: flex !important;
    align-items: center; gap: 5px; text-decoration: none; color: var(--text-dim);
    font-size: 13px; font-weight: 700; padding: 0 12px; height: 34px; border-radius: var(--radius-xs);
    background: var(--bg); transition: background 0.15s;
  }
  .desktop-header-coins:hover { background: var(--border); }
  .desktop-header-coins svg { color: #b8903a; }

  
  .desktop-header-avatar {
    display: flex !important;
    width: 36px; height: 36px; border-radius: var(--action-btn-radius); overflow: hidden;
    flex-shrink: 0; text-decoration: none;
    border: 2px solid var(--border); transition: border-color 0.15s;
  }
  .desktop-header-avatar:hover { border-color: var(--border); }
  .desktop-header-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .desktop-header-avatar-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--primary); color: var(--btn-text); font-weight: 700; font-size: 15px;
  }
  
  .desktop-header-msg {
    display: flex !important; position: relative;
    width: 36px; height: 36px; border-radius: var(--action-btn-radius);
    align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--text-dim); text-decoration: none;
    border: 1px solid var(--border); background: var(--card);
    transition: color 0.15s, border-color 0.15s;
  }
  .desktop-header-msg:hover { color: var(--primary); border-color: var(--primary); }
  .desktop-header-msg-badge {
    position: absolute; top: -5px; right: -5px;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--bg);
  }

  
  .header-login-btn {
    display: inline-flex !important;
    align-items: center;
    padding: 0 20px;
    height: 34px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
  }
  .header-login-btn:hover { background: var(--primary-dark); color: #fff; }

  
  .desktop-header-create {
    display: flex !important;
    align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--radius-xs);
    background: var(--primary); color: var(--btn-text); text-decoration: none;
    flex-shrink: 0; transition: background 0.15s;
  }
  .desktop-header-create:hover { background: var(--primary-dark); color: white; }

  
  .desktop-inline-header .icon-btn {
    color: var(--text-muted);
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-xs);
  }
  .desktop-inline-header .icon-btn:hover { background: var(--bg); color: var(--text); }

  
  .header-sort-tabs { display: none !important; }

  
  .sidebar-top-row { display: none !important; }
  .sidebar-search { display: none !important; }
  .sidebar-user-card { display: none !important; }
  .sidebar-login-btn { display: none !important; }
  .sidebar-coins {
    display: flex !important;
    align-items: center; gap: 8px;
    margin-top: 12px; padding: 10px 14px;
    background: var(--bg-warm); border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text); text-decoration: none;
    font-size: 13px; font-weight: 600;
    transition: all 0.15s;
  }
  .sidebar-coins:hover { border-color: var(--primary); color: var(--primary); }
  .sidebar-coins svg { color: var(--coin); flex-shrink: 0; }
  
  .sidebar-coins--right { margin-top: 0; margin-bottom: 14px; }
  .sidebar-coins-num { font-weight: 800; font-size: 15px; }
  .sidebar-coins-label { color: var(--text-muted); font-size: 12px; margin-inline-start: auto; }
  .sidebar-achievements { display: none !important; }

  
  .sidebar-nav { display: flex; flex-direction: column; gap: 1px; }
  .sidebar-nav-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    border-radius: var(--radius-xs); color: var(--text-dim); text-decoration: none;
    font-size: 14px; font-weight: 500; transition: all 0.15s;
  }
  .sidebar-nav-item:hover { background: var(--bg); color: var(--text); }
  .sidebar-nav-item.active {
    background: var(--primary-light); color: var(--primary); font-weight: 700;
  }
  .sidebar-nav-item.active svg { color: var(--primary); }
  .sidebar-nav-item svg { flex-shrink: 0; color: var(--text-muted); }
  .sidebar-badge {
    margin-inline-start: auto; background: var(--primary); color: var(--btn-text);
    font-size: 12px; font-weight: 800; padding: 1px 6px; border-radius: var(--radius-sm);
  }
  .sidebar-section-label {
    font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-muted); padding: 12px 14px 4px; user-select: none;
  }
  .sidebar-nav-divider {
    height: 1px; background: var(--border-light); margin: 8px 10px;
  }
  
  .sidebar-nav--foot {
    position: sticky; bottom: -12px; z-index: 1;
    margin: 0 -10px; padding: 0 10px 12px;
    background: var(--bg-warm);
  }
  .sidebar-nav--foot .sidebar-nav-divider { margin-top: 0; }

  
  .feed-tabs { display: none !important; }

  
  .sidebar-widget {
    background: transparent; border: none;
    border-radius: 0; padding: 16px 4px; margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .sidebar-widget:last-child { border-bottom: none; }
  .sidebar-widget-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; color: var(--text); }
  .sidebar-widget-title--link {
    display: flex; align-items: center; justify-content: space-between;
    text-decoration: none; cursor: pointer; transition: color 0.15s;
  }
  .sidebar-widget-title--link:hover { color: var(--primary); }
  .sidebar-widget-title--link svg { color: var(--primary); }
  .sidebar-widget-more {
    display: block; text-align: center; font-size: 13px; color: var(--primary);
    text-decoration: none; padding-top: 8px; margin-top: 6px;
    border-top: 1px solid var(--border-light); font-weight: 600;
  }
  .sidebar-widget-more:hover { text-decoration: underline; }
  .sidebar-bite-widget { text-decoration: none; color: var(--text); display: block; cursor: pointer; padding: 14px 4px; border-bottom: 1px solid #e5e7eb; }
  .sidebar-bite-widget:hover > div { opacity: 0.92; }
  .desktop-right-sidebar .sidebar-bite-widget { padding-top: 0; border-bottom: none; }
  .sidebar-bite-row { display: flex; align-items: center; gap: 10px; }
  .sidebar-bite-emoji { font-size: 28px; }
  .sidebar-bite-info { flex: 1; }
  .sidebar-bite-value { font-weight: 700; font-size: 15px; }
  .sidebar-bite-score { font-size: 12px; color: var(--text-muted); }
  .sidebar-bite-temp { font-size: 12px; color: var(--text-muted); }
  .sidebar-spot-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 0; text-decoration: none; color: var(--text); font-size: 13px;
    border-bottom: 1px solid var(--border-light);
  }
  .sidebar-spot-item:last-of-type { border-bottom: none; }
  .sidebar-spot-item:hover { color: var(--primary); }
  .sidebar-spot-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-inline-end: 8px; }
  .sidebar-spot-rating { display: flex; align-items: center; gap: 3px; font-size: 12px; color: #c4943a; font-weight: 700; }
  .sidebar-top-user {
    display: flex; align-items: center; gap: 8px; padding: 7px 0;
    text-decoration: none; color: var(--text); font-size: 13px;
    border-bottom: 1px solid var(--border-light);
  }
  .sidebar-top-user:last-of-type { border-bottom: none; }
  .sidebar-top-user:hover { color: var(--primary); }
  .sidebar-top-user-rank { width: 18px; font-weight: 800; font-size: 12px; color: var(--text-muted); }
  .sidebar-top-user-avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
  .sidebar-top-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .sidebar-avatar-placeholder-sm {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary); font-weight: 700; font-size: 12px; border-radius: 50%;
  }
  .sidebar-top-user-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
  .sidebar-top-user-posts { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
  .sidebar-avatar-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary); font-weight: 800; border-radius: 50%;
  }
  .location-selector { margin-bottom: 8px; }
}


@media (min-width: 768px) and (max-width: 1023px) {
  .tab-bar { display: flex !important; }
  .tab-scrim { display: block !important; }
}


@media (orientation: landscape) and (max-height: 500px) {
  :root { --header-height: 46px; --tab-height: calc(50px + var(--miniplayer-h)); --tab-panel-h: 44px; }
  .tab-item { font-size: 12px; gap: 2px; }
  .tab-item svg { width: 20px; height: 20px; }
  
  .feed-promo, .bite-banner { margin-bottom: 6px; }
}


@media (min-width: 1200px) {
  .desktop-layout {
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    max-width: 1060px;
  }
  
  .desktop-inline-header-right {
    width: auto;
    box-sizing: border-box;
    justify-content: flex-end;
    padding: 0 12px 0 12px;
    gap: 8px;
    flex-shrink: 0;
  }
  .desktop-inline-header-right .header-create-btn {
    flex: none;
    justify-content: center;
    white-space: nowrap;
  }
  
  .desktop-right-sidebar {
    display: flex !important;
    flex-direction: column;
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    position: sticky;
    top: 76px;
    padding: 9px 12px 12px;
    margin: 12px 12px 12px 0;
    background: var(--bg-warm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
  }
}



.sidebar-tablet-actions { display: none; }

@media (pointer: coarse) and (orientation: landscape) and (min-width: 640px) and (max-height: 599px) {
  .desktop-layout {
    grid-template-columns: minmax(0, 1fr) 244px !important;
    grid-template-rows: auto 1fr !important;   
    max-width: none !important;
  }
  .desktop-inline-header { display: none !important; }
  .tab-bar, .tab-scrim { display: none !important; }

  
  .app-main.desktop-center {
    grid-column: 1 !important;
    grid-row: 1 / -1 !important;
    padding-top: 12px !important;
  }
  .app-main.desktop-center::before { display: none !important; }

  
  .desktop-right-sidebar {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 10px 10px 0 !important;
    margin: 0 !important;
    position: static !important;
    border-inline-start: 1px solid var(--border-light);
  }
  
  .desktop-right-sidebar .sidebar-widget { display: none !important; }

  
  .desktop-left-sidebar {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-height: 0;
    overflow-y: auto;
    border-inline-start: 1px solid var(--border-light);
    border-inline-end: none;
  }

  
  .sidebar-tablet-actions {
    display: flex; align-items: center; justify-content: space-around;
    gap: 4px; padding: 8px 6px; margin: 4px 0 8px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
  }
  
  .sta-btn { position: relative; width: 40px; height: 40px; text-decoration: none; }
  .sta-badge {
    position: absolute; top: -3px; right: -3px;
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: #e5484d; color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  
  .sta-search-panel {
    display: flex; align-items: center; gap: 6px;
    margin: 0 0 8px; padding: 0 2px;
    overflow: hidden;
  }
  .sta-search-panel input {
    flex: 1; min-width: 0; height: 36px; padding: 0 10px;
    border-radius: var(--radius-sm); border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font-size: 13px;
    font-family: inherit; outline: none;
  }

  
  .sidebar-rail-section { margin-bottom: 4px; }
  .sidebar-rail-section-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-dim);
    padding: 10px 12px 3px;
  }
}

:root {
  
  --sidebar-w: 232px; --rail-w: 300px;
  --page-max-tablet: 760px; --page-max-desktop: 1200px; --page-max-feed: 1240px;
}

@media (min-width: 768px) and (min-height: 600px) {
  .desktop-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--page-max-tablet);
  }
  .desktop-left-sidebar { display: none !important; }
  .app-main.desktop-center { grid-column: 1; padding-inline: var(--space-4); }
  .desktop-inline-header > .app-logo { width: auto; padding-inline-end: var(--space-2); }
  .desktop-inline-header-right .header-create-btn span { display: none; }
}
@media (min-width: 1024px) and (min-height: 600px) {
  .tab-bar, .tab-scrim { display: none !important; }
  .desktop-layout {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    max-width: var(--page-max-desktop);
  }
  .desktop-left-sidebar { display: flex !important; }
  .app-main.desktop-center { grid-column: 2; padding-inline: var(--space-4); }
  .desktop-inline-header > .app-logo { width: var(--sidebar-w); }
  .desktop-inline-header-right .header-create-btn span { display: inline; }
}
@media (min-width: 1200px) and (min-height: 600px) {
  .desktop-layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); max-width: var(--page-max-desktop); }
  .desktop-right-sidebar { display: none !important; }
  .desktop-layout--feed {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--rail-w);
    max-width: var(--page-max-feed);
  }
  .desktop-layout--feed .desktop-right-sidebar { display: flex !important; }
}
@media (min-width: 1024px) { .nav-slot-hint { display: none; } }



:root.dark .desktop-left-sidebar { border-color: rgba(255,255,255,0.06); }

@media (prefers-color-scheme: dark) {
  :root:not(.light) .desktop-left-sidebar { border-color: rgba(255,255,255,0.06); }
}
:root.dark .desktop-right-sidebar { border-color: rgba(255,255,255,0.06); }
:root.dark .sidebar-widget { background: var(--card); border-color: rgba(255,255,255,0.06); }
:root.dark .desktop-header-search { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
:root.dark .desktop-header-coins { background: rgba(255,255,255,0.06); }

@media (prefers-color-scheme: dark) {
  :root:not(.light) .desktop-right-sidebar { border-color: rgba(255,255,255,0.06); }
  :root:not(.light) .sidebar-widget { border-color: rgba(255,255,255,0.06); }
  :root:not(.light) .desktop-header-search { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
  :root:not(.light) .desktop-header-coins { background: rgba(255,255,255,0.06); }
}


.post-comments { border-top: 1px solid var(--border-light); margin-top: 8px; padding-top: 8px; }
.comments-list { max-height: 400px; overflow-y: auto; overflow-x: hidden; }


.share-menu { position: absolute; bottom: 40px; right: 0; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 8px 0; box-shadow: var(--shadow-md); z-index: 50; min-width: 200px; }
.share-menu-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 14px; cursor: pointer; color: var(--text); white-space: nowrap; }
.share-menu-item:hover { background: var(--bg-warm); }


.post-card--hidden {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--card); border-radius: var(--radius); margin-bottom: 12px;
  color: var(--text-muted); font-size: 14px;
}
.post-hidden-undo {
  margin-inline-start: auto; background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px 12px; font-size: 13px; color: var(--text-dim);
  cursor: pointer; transition: var(--transition);
}
.post-hidden-undo:hover { border-color: var(--primary); color: var(--primary); }


.comment-bar-icons {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.comment-bar-icons button {
  background: none; border: none; cursor: pointer; padding: 4px;
  color: var(--text-muted); opacity: 0.55; display: flex; align-items: center;
  border-radius: var(--radius-xs); transition: opacity 0.15s, color 0.15s;
}
.comment-bar-icons button:hover { color: var(--text-dim); opacity: 0.9; background: none; }


.comment-bar-attach { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.comment-bar-right { display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.comment-attach-btn,
.comment-emoji-btn, .comment-voice-btn, .comment-send-btn {
  background: none; border: none; cursor: pointer; padding: 5px;
  color: var(--text-muted); opacity: 0.8;
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; min-height: 36px; border-radius: 50%;
  transition: color 0.15s, background 0.15s, opacity 0.15s;
}

.comment-send-swap { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
.comment-send-swap .swap-item {
  position: absolute; inset: 0; min-width: 36px; min-height: 36px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.comment-send-swap .swap-hidden {
  opacity: 0; transform: scale(0.5) rotate(-15deg); pointer-events: none;
}
.comment-attach-btn:hover,
.comment-emoji-btn:hover, .comment-voice-btn:hover {
  color: var(--text); opacity: 1; background: rgba(127,127,127,0.14);
}
.comment-send-btn { color: #fff; opacity: 1; background: var(--primary); }
.comment-send-btn:hover { background: var(--primary); filter: brightness(1.06); }


.comment-attach-backdrop { position: fixed; inset: 0; z-index: 4000; }
.comment-attach-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 50;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px; min-width: 200px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
  display: flex; flex-direction: column; gap: 2px;
}

.comment-attach-menu--fixed { position: fixed; z-index: 4001; }

.comment-emoji-panel.comment-emoji-panel--fixed { position: fixed; left: auto; z-index: 4001; }
.comment-attach-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; min-height: 48px; cursor: pointer; text-align: start;
  background: none; border: none; color: var(--text); font-size: 15px;
  border-radius: 10px; transition: background 0.12s, color 0.12s;
}
.comment-attach-item:hover { background: var(--primary-light); color: var(--primary); }
.comment-attach-item svg { flex-shrink: 0; color: var(--primary); }


.comment-emoji-panel {
  position: absolute; bottom: calc(100% + 8px); right: 0; z-index: 50;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px; width: min(340px, 88vw);
  max-height: 240px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
}
.comment-emoji-cell {
  background: none; border: none; cursor: pointer; font-size: 22px; line-height: 1;
  padding: 4px; border-radius: 8px; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.comment-emoji-cell:hover { background: var(--primary-light); }


@media (max-width: 640px) {
  .comment-attach-btn,
  .comment-emoji-btn, .comment-voice-btn, .comment-send-btn {
    min-width: 40px; min-height: 44px;
  }
  .comment-send-swap { width: 40px; height: 44px; }
  .comment-send-swap .swap-item { min-width: 40px; min-height: 44px; }
  .comment-attach-btn svg,
  .comment-emoji-btn svg, .comment-voice-btn svg, .comment-send-btn svg { width: 22px; height: 22px; }
}

.comment-photo-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px; z-index: 50; min-width: 170px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.comment-photo-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 12px; cursor: pointer;
  color: var(--text); font-size: 13px; border-radius: 7px;
  transition: background .12s; user-select: none;
}
.comment-photo-menu-item:hover { background: var(--primary-light); color: var(--primary); }

.comment-error-bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px;
  background: var(--danger-light); color: var(--danger); font-size: 13px;
  border-top: 1px solid var(--border-light);
}
.comment-error-bar button {
  margin-inline-start: auto; background: none; border: none; cursor: pointer;
  color: var(--danger); display: flex; padding: 2px;
}
.comment-delete-confirm-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: rgba(239,68,68,0.08); border-top: 1px solid rgba(239,68,68,0.2);
  font-size: 13px; color: var(--text);
}
.comment-delete-confirm-bar span { flex: 1; }
.comment-delete-confirm-yes {
  background: var(--danger); color: #fff; border: none; border-radius: 8px;
  padding: 4px 12px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.comment-delete-confirm-no {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 8px; padding: 4px 12px; font-size: 13px; cursor: pointer;
}




.comment-photo-preview {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; background: var(--bg-warm);
  border-top: 1px solid var(--border-light);
}
.comment-photo-thumb {
  width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  cursor: pointer; flex-shrink: 0; border: 1px solid var(--border);
  transition: opacity 0.15s;
}
.comment-photo-thumb:hover { opacity: 0.85; }
.comment-photo-preview-right { flex: 1; min-width: 0; }
.comment-photo-label { font-size: 13px; color: var(--text); display: block; font-weight: 500; }
.comment-photo-hint { font-size: 12px; color: var(--text-muted); display: block; margin-top: 2px; }
.comment-photo-remove {
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  padding: 4px; display: flex; flex-shrink: 0;
  border-radius: 50%; transition: var(--transition);
}
.comment-photo-remove:hover { color: var(--danger); background: var(--danger-light); }

.comment-photo-attachment {
  max-width: 220px; max-height: 220px; border-radius: var(--radius-sm);
  margin-top: 6px; cursor: pointer; display: block;
  object-fit: cover; border: 1px solid var(--border);
  transition: opacity 0.15s;
}
.comment-photo-attachment:hover { opacity: 0.9; }


.comment-loc-menu {
  position: fixed; z-index: 4001;
  min-width: 220px;
  display: flex; flex-direction: column; gap: 2px;
}
.comment-loc-gps-loading { opacity: 0.65 !important; cursor: wait !important; pointer-events: none; }
@keyframes comment-loc-spin { to { transform: rotate(360deg); } }
.comment-loc-spinner { animation: comment-loc-spin 0.9s linear infinite; flex-shrink: 0; }

.comment-loc-preview {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px;
  margin: 2px 0; border-radius: 8px;
  background: var(--menu-item-hover);
}
.comment-loc-preview-text { flex: 1; font-size: 13px; color: var(--text); }
.comment-loc-preview button {
  flex-shrink: 0; padding: 5px 12px; background: var(--primary); color: var(--btn-text);
  border: none; border-radius: 7px; font-size: 12px; font-weight: 600; cursor: pointer;
}

.comment-loc-manual { padding: 4px 2px 2px; }
.comment-loc-manual .kx-combo-input { width: 100%; }
.comment-loc-suggests { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }


.comment-loc-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer;
  max-width: 100%; text-align: start;
  transition: background 0.14s, filter 0.14s;
}
.comment-loc-chip:hover:not(:disabled) { filter: brightness(1.05); }
.comment-loc-chip:disabled { cursor: default; opacity: 0.85; }
.comment-loc-chip svg { flex-shrink: 0; }
.comment-loc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-loc-chip--attached { margin-top: 6px; }

.comment-loc-chip-preview { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }


.clm-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.clm-sheet {
  width: 100%; max-width: 520px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.clm-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border-light);
}
.clm-header svg { color: var(--primary); flex-shrink: 0; }
.clm-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.clm-close {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(127,127,127,0.14); color: var(--text-dim); border: none; cursor: pointer;
}
.clm-close:active { background: rgba(127,127,127,0.28); }
.clm-map { width: 100%; height: min(60vh, 380px); }
.clm-map .leaflet-container { width: 100%; height: 100%; background: var(--bg-warm); }
.clm-open-external {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; font-size: 14px; font-weight: 600;
  color: var(--primary); text-decoration: none;
  border-top: 1px solid var(--border-light);
}
.clm-open-external:active { background: var(--primary-light); }


.create-loc-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }




.create-my-spots { }
.create-my-spots-label {
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.4px;
  margin-bottom: 6px; display: block;
}
.create-my-spots-list {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.create-my-spot-chip {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--chip-radius); font-size: 13px;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text-dim); cursor: pointer; font-family: inherit;
  transition: all 0.12s; -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.create-my-spot-chip.active {
  border-color: var(--sel-line); background: var(--primary-light);
  color: var(--text); font-weight: 600;
}
.create-my-spot-chip:active:not(.active) { background: var(--bg-warm); }






.create-suggestion-pin { color: var(--primary); flex-shrink: 0; }




.create-spot-link { margin: 4px 0 0; }
.create-spot-link-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 6px;
}
.create-spot-link-label { font-size: 12px; color: var(--text-dim); font-weight: 600; flex: 1; }
.create-spot-open-map {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--primary); cursor: pointer; font-family: inherit; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.create-spot-link-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.create-spot-link-list::-webkit-scrollbar { display: none; }
.create-spot-link-item {
  flex-shrink: 0; display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light);
  background: var(--bg); color: var(--text);
  font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: all .15s;
}
.create-spot-link-item.active {
  border-color: var(--sel-line); background: var(--primary-bg); color: var(--text); font-weight: 600;
}
.create-spot-link-count { font-size: 12px; color: var(--text-dim); }



@media (min-width: 768px) { .create-page { padding: 0; } }






.create-publish-btn {
  height: 38px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--primary); color: var(--bg);
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
  transition: background 0.15s, opacity 0.15s; white-space: nowrap;
}
.create-publish-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.create-publish-btn:hover:not(:disabled) { background: var(--primary-dark); }

.create-form {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 0 max(14px, env(safe-area-inset-bottom));
}





























@keyframes spin { to { transform: rotate(360deg); } }



@media (min-width: 600px) {
  .loc-modal-overlay { align-items: center; justify-content: center; }
}

@media (min-width: 600px) {
  .loc-modal { border-radius: var(--radius); max-width: 520px; max-height: 80vh; }
}
@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}














































.modal-box {
  background: var(--card); border-radius: var(--radius);
  width: 100%; max-width: 400px; padding: 24px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35); animation: modal-slide 0.2s ease;
}
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.modal-body { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; line-height: 1.5; }
.modal-textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1.5px solid var(--border-light); border-radius: var(--radius-xs);
  background: var(--bg); color: var(--text); font-family: inherit;
  font-size: 14px; resize: vertical; margin-bottom: 8px;
}
.modal-textarea:focus { outline: none; border-color: var(--border); }
.modal-input {
  width: 100%; box-sizing: border-box; padding: 9px 12px;
  border: 1.5px solid var(--border-light); border-radius: var(--radius-xs);
  background: var(--bg); color: var(--text); font-family: inherit;
  font-size: 14px; margin-bottom: 8px;
}
.modal-input:focus { outline: none; border-color: var(--border); }
.modal-box--edit { max-width: 480px; max-height: 90vh; overflow-y: auto; }

.edit-photos { margin-top: 4px; }
.edit-photos-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }


.edit-cover-section { margin-top: 12px; }
.edit-cover-previews { display: flex; gap: 12px; margin-bottom: 10px; }
.edit-cover-preview-wrap { display: flex; flex-direction: column; gap: 4px; }
.edit-cover-preview-label { font-size: 12px; color: var(--text-muted); text-align: center; }
.edit-cover-preview {
  overflow: hidden; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-warm);
  flex-shrink: 0;
}
.edit-cover-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edit-cover-preview--mobile  { width: 120px; height: 90px; }   
.edit-cover-preview--desktop { width: 200px; height: 115px; }  
.edit-cover-slider-row { display: flex; align-items: center; gap: 8px; }
.edit-cover-slider { flex: 1; accent-color: var(--primary); cursor: pointer; }
.edit-cover-slider-hint { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.edit-photos-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.edit-photo-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.edit-photo-wrap {
  width: 72px; height: 72px;
  border-radius: 8px; overflow: hidden;
  background: var(--bg-warm);
  display: flex; align-items: center; justify-content: center;
}
.edit-photo-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.edit-photo-rotate {
  display: flex; align-items: center; justify-content: center;
  gap: 3px; font-size: 12px; padding: 3px 8px;
  border-radius: var(--radius-xs); border: 1px solid var(--border);
  background: var(--bg-warm); color: var(--text-muted); cursor: pointer;
}
.edit-photo-rotate:hover { color: var(--primary); border-color: var(--primary); }
.modal-error { font-size: 13px; color: var(--danger); margin-bottom: 10px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.modal-btn {
  padding: 8px 18px; border-radius: var(--radius-xs); font-size: 14px;
  font-weight: 600; cursor: pointer; border: none; transition: opacity 0.15s;
}
.modal-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.modal-btn-cancel { background: var(--bg); color: var(--text-dim); }
.modal-btn-cancel:hover { background: var(--border-light); }
.modal-btn-danger { background: var(--danger); color: #fff; }
.modal-btn-danger:hover { background: #b91c1c; }
.modal-btn-primary { background: var(--primary); color: var(--btn-text); }
.modal-btn-primary:hover { opacity: 0.88; }


.avatar-crop-modal {
  background: var(--card); border-radius: var(--radius);
  width: 100%; max-width: 380px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4); animation: modal-slide 0.2s ease;
  display: flex; flex-direction: column;
}
.avatar-crop-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; font-weight: 700; font-size: 15px; color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.avatar-crop-close {
  background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px;
  display: flex; align-items: center; border-radius: 50%;
}
.avatar-crop-close:hover { background: var(--bg); }
.avatar-crop-body {
  padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.avatar-crop-canvas-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.avatar-crop-canvas {
  border-radius: 50%; cursor: grab; display: block;
  box-shadow: 0 0 0 2px var(--primary);
}
.avatar-crop-canvas:active { cursor: grabbing; }
.avatar-crop-hint { font-size: 12px; color: var(--text-muted); }
.avatar-crop-zoom {
  display: flex; align-items: center; gap: 8px; width: 100%;
}
.avatar-crop-zoom-btn {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xs);
  padding: 6px; display: flex; align-items: center; color: var(--text-dim);
  cursor: pointer; flex-shrink: 0;
}
.avatar-crop-zoom-btn:hover { border-color: var(--primary); color: var(--primary); }
.avatar-crop-slider {
  flex: 1; accent-color: var(--primary); height: 3px;
}
.avatar-crop-replace-btn {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xs);
  padding: 7px 14px; color: var(--text-dim); cursor: pointer; width: 100%;
  justify-content: center; font-family: inherit;
}
.avatar-crop-replace-btn:hover { border-color: var(--primary); color: var(--primary); }
.avatar-crop-history { width: 100%; }
.avatar-crop-history-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.avatar-crop-history-list { display: flex; gap: 10px; }
.avatar-crop-history-item {
  position: relative; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--border); padding: 0; cursor: pointer; flex-shrink: 0;
  transition: border-color 0.15s;
}
.avatar-crop-history-item:hover { border-color: var(--border); }
.avatar-crop-history-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-crop-history-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity 0.15s;
}
.avatar-crop-history-item:hover .avatar-crop-history-overlay { opacity: 1; }
.avatar-crop-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 12px 18px 16px; border-top: 1px solid var(--border-light);
}
.avatar-crop-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-muted); border-radius: 50%;
  background: var(--bg);
}
.avatar-crop-canvas-wrap { position: relative; }
.avatar-crop-empty {
  width: 240px; height: 240px; border-radius: 50%;
  border: 2px dashed var(--border); display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: 13px; color: var(--text-muted); padding: 20px; box-sizing: border-box;
}






.fishing-types-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fishing-type-chip {
  padding: 3px 7px; border-radius: var(--chip-radius); font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text-muted); cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.fishing-type-chip.active {
  background: var(--sel-bg); color: var(--sel-text); border-color: var(--sel-line);
}
.fishing-type-chip:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

















.garage-skin-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }


.fisherbase-slot {
  display: flex; flex-direction: column; align-items: center;
  padding: 48px 24px; text-align: center;
}
.fisherbase-slot-icon { font-size: 48px; margin-bottom: 12px; }
.fisherbase-slot-title {
  font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 8px;
}
.fisherbase-slot-desc {
  font-size: 14px; color: var(--text-muted); max-width: 280px; line-height: 1.5; margin: 0 0 16px;
}
.fisherbase-slot-hint {
  font-size: 13px; color: var(--text-muted);
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 10px 16px; max-width: 300px; line-height: 1.5;
}


.rewards-page { max-width: 560px; margin: 0 auto; padding: 0 0 80px; }
.rewards-header { padding: 24px 16px 8px; }
.rewards-header h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.rewards-header p { color: var(--text-muted); font-size: 14px; margin: 0; }
.rewards-list { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px; }


.reward-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity .2s;
}
.reward-card--claimed { opacity: .7; }


.reward-card-top { display: flex; gap: 14px; align-items: flex-start; }
.reward-card-icon { font-size: 36px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.reward-card-body { flex: 1; min-width: 0; }
.reward-card-title { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.reward-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.45; margin: 0 0 8px; }
.reward-card-coins { font-size: 20px; font-weight: 700; color: var(--primary); white-space: nowrap; }


.reward-card-action { width: 100%; }

.reward-tg-steps,
.reward-vk-steps { display: flex; flex-direction: column; gap: 8px; }

.reward-tg-hint { font-size: 12px; color: var(--text-muted); margin: 0; line-height: 1.4; }

.reward-vk-check { display: flex; gap: 8px; align-items: stretch; }
.reward-vk-input {
  flex: 1; min-width: 0; padding: 11px 12px; border-radius: var(--radius-sm); font-size: 14px;
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text); outline: none;
}
.reward-vk-input:focus { border-color: var(--primary); }
.reward-error { font-size: 13px; color: var(--danger); margin: 4px 0 0; }
.reward-claimed-badge {
  display: flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; font-size: 15px;
  background: rgba(76,175,80,.1); border-radius: var(--radius-sm); padding: 10px 14px;
}

.rewards-footer { padding: 16px; text-align: center; }
.rewards-footer p { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; }
.rewards-footer-link { color: var(--link); font-size: 14px; font-weight: 600; text-decoration: none; }


.rewards-section-title {
  padding: 20px 16px 4px; font-size: 13px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.rewards-admin-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--primary); background: rgba(76,175,80,.12);
  border-radius: var(--radius-xs); padding: 2px 8px;
}
.rewards-login-hint { padding: 4px 16px 8px; }
.rwc-admin-note {
  margin: 8px 16px 0; font-size: 12px; font-weight: 600;
  color: var(--primary); background: rgba(76,175,80,.1);
  border-radius: 8px; padding: 6px 10px;
}


.wallet-page { max-width: 560px; margin: 0 auto; padding: 0 0 90px; }
.wallet-head { padding: 20px 16px 6px; }
.wallet-head h1 { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.wallet-head p { color: var(--text-muted); font-size: 13px; margin: 0; line-height: 1.4; }

.wallet-tabs {
  display: flex; gap: 4px; padding: 12px 16px 8px;
  position: sticky; top: var(--header-height); z-index: 5; background: var(--bg);
}

html:root .wallet-tabs.tab-u-row { gap: var(--space-2); }
html:root .wallet-tab { flex: 1 0 auto; flex-direction: column; justify-content: center; gap: 2px;
  padding-block: 6px; font-size: var(--fs-min); line-height: 1.2; white-space: nowrap; }

.wallet-pane { padding: 4px 16px; }

.wallet-guest { text-align: center; padding: 40px 16px; }
.wallet-guest p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.wallet-guest .btn { padding-inline: 28px; }

.wallet-balance-card {
  background: linear-gradient(135deg, rgba(76,175,80,.14), rgba(76,175,80,.04));
  border: 1px solid var(--primary); border-radius: var(--radius-xl);
  padding: 22px 18px; text-align: center; margin-top: 4px;
}
.wallet-balance-big { font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1; }
.wallet-balance-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.wallet-balance-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.wallet-balance-stats > div { display: flex; align-items: center; gap: 4px; }
.wallet-balance-stats b { color: var(--text); }

.wallet-goal { margin-top: 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.wallet-goal-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.wallet-goal-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.wallet-goal-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width .4s; }

.wallet-section-title { margin: 20px 0 10px; }   

.wallet-txns { display: flex; flex-direction: column; gap: 2px; }
.wallet-txn { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.wallet-txn-desc { font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline-end: 10px; }
.wallet-txn-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wallet-txn-amt { font-size: 15px; font-weight: 700; color: var(--coin); }
.wallet-txn-amt--neg { color: var(--danger); }
.wallet-txn-date { font-size: 12px; color: var(--text-muted); min-width: 44px; text-align: end; }
.wallet-empty { text-align: center; color: var(--text-muted); font-size: 13px; padding: 24px 8px; }

.wallet-social-cta {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 13px 16px; border-radius: var(--radius); margin-top: 8px;
  background: var(--card); border: 1px solid var(--primary);
  color: var(--primary); font-size: 14px; font-weight: 600; text-decoration: none;
}

.wallet-lb { display: flex; flex-direction: column; gap: 4px; }
.wallet-lb-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); }
.wallet-lb-row--top { border-color: var(--primary); }
.wallet-lb-rank { font-size: 15px; font-weight: 700; min-width: 26px; text-align: center; }

.wallet-lb-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-lb-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.wallet-lb-pro { font-size: 12px; font-weight: 800; color: #fff; background: var(--primary); border-radius: 4px; padding: 1px 5px; }
.wallet-lb-coins { font-size: 14px; font-weight: 700; color: var(--primary); white-space: nowrap; }

.wallet-shop { display: flex; flex-direction: column; gap: 8px; }
.wallet-shop-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.wallet-shop-item--owned { opacity: .6; }
.wallet-shop-icon { font-size: 24px; flex-shrink: 0; }
.wallet-shop-body { flex: 1; min-width: 0; }
.wallet-shop-name { font-size: 14px; font-weight: 600; }
.wallet-shop-desc { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.wallet-shop-price { font-size: 15px; font-weight: 700; color: var(--primary); white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; }
.wallet-shop-owned { font-size: 12px; color: var(--text-muted); }
.wallet-shop-cta { margin: 14px 0 4px; }

.wallet-soon { display: flex; flex-direction: column; gap: 6px; }
.wallet-soon-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); padding: 8px 12px; border-radius: var(--radius-sm); border: 1px dashed var(--border); }
.wallet-soon-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex-shrink: 0; opacity: .6; }

.rwc-group { padding: 8px 16px 0; }
.rwc-group-title { margin: 8px 0 6px; }   
.rwc-list { display: flex; flex-direction: column; gap: 8px; }

.rwc-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
}
.rwc-row--override { border-color: var(--primary); }
.rwc-icon { font-size: 26px; line-height: 1; flex-shrink: 0; margin-top: 2px; }

.rwc-body { flex: 1 1 min(10em, calc(100% - 3.5em)); min-width: 0; }
.rwc-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.rwc-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-bottom: 4px; }
.rwc-freq-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rwc-freq {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--text-muted); background: var(--border);
  border-radius: var(--radius-xs); padding: 1px 8px;
}
.rwc-badge {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 600;
  border-radius: var(--radius-xs); padding: 1px 8px;
  color: var(--text-muted); background: var(--border);
}
.rwc-badge--done { color: var(--primary); background: rgba(76,175,80,.12); }
.rwc-badge--full { color: var(--danger); background: rgba(220,38,38,.1); }
.rwc-row--done { opacity: .62; }

.rwc-amount-col { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; margin-inline-start: auto; }
.rwc-amount {
  font-size: 17px; font-weight: 700; color: var(--primary);
  white-space: nowrap; display: flex; align-items: center;
}
.rwc-amount--var { font-size: 12px; font-weight: 600; color: var(--text-muted); font-style: italic; }
.rwc-edit-btn {
  background: none; border: none; cursor: pointer; padding: 2px;
  color: var(--text-muted); display: flex; align-items: center;
}
.rwc-edit-btn:hover { color: var(--primary); }

.rwc-edit { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; align-items: flex-end; }
.rwc-edit-field { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.rwc-edit-field input {
  width: 68px; padding: 5px 8px; border-radius: 8px; font-size: 13px;
  background: var(--input-bg); border: 1px solid var(--border);
  color: var(--text); outline: none; text-align: end;
}
.rwc-edit-field input:focus { border-color: var(--primary); }
.rwc-edit-actions { display: flex; gap: 6px; }
.rwc-btn {
  border: none; cursor: pointer; border-radius: var(--radius-sm); padding: 6px;
  display: flex; align-items: center; justify-content: center;
}
.rwc-btn--ok { background: var(--primary); color: #fff; }
.rwc-btn--cancel { background: var(--border); color: var(--text); }
.rwc-btn:disabled { opacity: .5; cursor: default; }



.pa-loading, .pa-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }

.pa-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 0 16px; }
.pa-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; }
.pa-stat-value { display: block; font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.pa-stat-label { display: block; font-size: 12px; color: var(--text-muted); }

.pa-section { margin-bottom: 20px; }
.pa-section-title { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }

.pa-bars { display: flex; gap: 6px; align-items: flex-end; height: 90px; }
.pa-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; height: 100%; }
.pa-bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.pa-bar-fill { width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 4px; transition: height .3s; }
.pa-bar-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.pa-bar-count { font-size: 12px; font-weight: 600; }

.pa-fish-list { display: flex; flex-direction: column; gap: 8px; }
.pa-fish-row { display: flex; align-items: center; gap: 8px; }
.pa-fish-name { font-size: 13px; min-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-fish-bar-wrap { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.pa-fish-bar { height: 100%; background: var(--primary); border-radius: 3px; min-width: 4px; transition: width .3s; }
.pa-fish-count { font-size: 12px; font-weight: 600; min-width: 24px; text-align: end; }

.pa-achievements { display: flex; flex-direction: column; gap: 6px; }
.pa-ach-progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.pa-ach-bar { height: 100%; background: var(--primary); border-radius: 4px; transition: width .4s; }
.pa-ach-label { font-size: 13px; color: var(--text-muted); }


.onboarding-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 1100; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
.onboarding-modal { background: var(--card); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 24px 20px 32px; width: 100%; max-width: 520px; position: relative; animation: slideUp .25s ease-out; max-height: 90vh; overflow-y: auto; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.onboarding-top { text-align: center; margin-bottom: 20px; }
.onboarding-fish { font-size: 36px; display: block; margin-bottom: 8px; }
.onboarding-title { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.onboarding-sub { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.4; }
.onboarding-body { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.onboarding-field { display: flex; flex-direction: column; gap: 5px; }
.onboarding-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.onboarding-input { background: var(--bg-warm); border: 1px solid var(--border-light); border-radius: var(--input-radius); color: var(--text); font-size: 15px; padding: 10px 12px; width: 100%; outline: none; transition: border-color .15s; }
.onboarding-input:focus { border-color: var(--accent); }
.onboarding-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.onboarding-chip { padding: 6px 12px; border-radius: var(--chip-radius); border: 1px solid var(--border-light); background: var(--bg-warm); color: var(--text-dim); font-size: 13px; cursor: pointer; transition: all .15s; }
.onboarding-chip.active { background: var(--accent); color: #14201a; border-color: transparent; font-weight: 600; }
.onboarding-actions { display: flex; flex-direction: column; gap: 8px; }
.onboarding-btn-save { width: 100%; padding: 13px; font-size: 15px; font-weight: 700; border-radius: var(--radius); background: var(--accent); color: #14201a; border: none; cursor: pointer; transition: background .15s; }
.onboarding-btn-save:hover { background: var(--accent-dark); }
.onboarding-btn-save:disabled { opacity: .6; cursor: default; }
.onboarding-btn-skip { width: 100%; padding: 10px; font-size: 13px; color: var(--text-muted); background: none; border: none; cursor: pointer; }
.onboarding-btn-skip:hover { color: var(--text); }
.onboarding-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onboarding-name-hint { font-size: 12px; color: var(--text-muted); margin: -8px 0 0; }
.onboarding-select-wrap { position: relative; }
.onboarding-select-wrap::after { content: '▾'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px; color: var(--text-muted); }
.onboarding-select { appearance: none; -webkit-appearance: none; padding-inline-end: 32px !important; }

.onboarding-skip { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 13px; cursor: pointer; padding: 4px 8px; }
.onboarding-icon { color: var(--primary); margin-bottom: 16px; }
.onboarding-desc { font-size: 15px; color: var(--text-muted); line-height: 1.5; margin-bottom: 24px; }
.onboarding-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 24px; }
.onboarding-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: background .2s, transform .2s; }
.onboarding-dot.active { background: var(--sel-bg); transform: scale(1.2); }
.onboarding-btn { width: 100%; padding: 13px; font-size: 15px; font-weight: 600; border-radius: var(--radius); text-align: center; }


.feed-engagement-block { display: flex; flex-direction: column; }


.engagement-combined-card {
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.engagement-combined-card .daily-widget {
  background: transparent; border: none; border-radius: 0;
}
.engagement-combined-card .idle-fishing-widget {
  background: transparent; border: none; border-radius: 0; margin: 0;
}
.engagement-combined-divider {
  height: 1px; background: var(--border-light); margin: 0;
}


.srb-feed { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; position: relative; margin: 0; }
.srb-feed--claimed { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; }
.srb-feed-claimed-label { font-size: 12px; color: var(--text-muted); }
.srb-feed-claimed-link { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; text-decoration: none; color: #fff; transition: opacity .15s; }
.srb-feed-claimed-link--tg { background: #229ED9; }
.srb-feed-claimed-link--vk { background: #0077FF; }
.srb-feed-claimed-link:hover { opacity: .85; }
.srb-feed-claimed-link svg { filter: brightness(0) invert(1); }
.srb-feed-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; line-height: 1; padding: 2px 6px; opacity: .5; }
.srb-feed-close:hover { opacity: 1; }
.srb-feed-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding-inline-end: 24px; }
.srb-feed-rows { display: flex; flex-direction: column; gap: 6px; }
.srb-feed-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,.04); text-decoration: none; color: inherit; cursor: pointer; border: none; width: 100%; text-align: start; transition: background .15s; }
.srb-feed-row:hover { background: rgba(255,255,255,.08); }
.srb-feed-row--btn { font-size: 14px; }
.srb-feed-row--done { opacity: .6; }
.srb-feed-icon { font-size: 18px; flex-shrink: 0; }
.srb-feed-name { flex: 1; font-size: 14px; font-weight: 600; }
.srb-feed-coins { font-size: 13px; font-weight: 700; color: var(--coin); white-space: nowrap; }
.srb-feed-done { font-size: 16px; }
.srb-feed-auth-hint { display: block; margin-top: 10px; font-size: 12px; color: var(--primary); text-decoration: none; font-weight: 600; }
.srb-feed-auth-hint:hover { text-decoration: underline; }
.srb-feed--guest .srb-feed-title { font-size: 14px; }


.srb-sidebar { padding: 0 0 12px; }
.srb-sidebar-title { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.srb-sidebar-row { margin-bottom: 4px; }
.srb-sidebar-link { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); text-decoration: none; padding: 4px 2px; transition: color .15s; }
.srb-sidebar-link:hover { color: var(--text); }
.srb-sidebar-earn { display: flex; align-items: center; gap: 7px; background: none; border: none; padding: 4px 2px; cursor: pointer; width: 100%; text-align: start; color: inherit; font-size: 13px; }
.srb-sidebar-earn-label { flex: 1; color: var(--text); font-weight: 500; }
.srb-sidebar-earn-coins { font-size: 12px; font-weight: 700; color: var(--coin); white-space: nowrap; }
.srb-sidebar-earn:hover .srb-sidebar-earn-label { color: var(--primary); }
.srb-sidebar-icon { display: flex; align-items: center; flex-shrink: 0; }
.srb-row--soon { display: flex; align-items: center; gap: 7px; padding: 4px 2px; opacity: .6; cursor: default; pointer-events: none; }
.srb-feed-row--soon { cursor: default; pointer-events: none; opacity: .65; }
.srb-soon-label { flex: 1; font-size: 13px; color: #9ca3af; }
.srb-soon-badge { font-size: 12px; font-weight: 600; color: #6b7280; background: rgba(156,163,175,.12); padding: 2px 7px; border-radius: var(--radius-xs); white-space: nowrap; flex-shrink: 0; }


.srb-feed-claimed-link--max { background: #2C6BED; }


.scm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 500; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .15s; }
.scm-sheet { background: linear-gradient(var(--card), var(--card)) var(--bg); border-radius: var(--radius-xl) var(--radius-xl) 0 0; padding: 8px 20px 40px; width: 100%; max-width: 480px; animation: slideUp .2s ease-out; }
.scm-handle { width: 40px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 20px; }
.scm-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
.scm-icon { font-size: 28px; flex-shrink: 0; }
.scm-title { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.scm-sub { font-size: 13px; color: var(--text-muted); }
.scm-x { margin-inline-start: auto; background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; padding: 0 4px; opacity: .6; flex-shrink: 0; }
.scm-x:hover { opacity: 1; }
.scm-steps { display: flex; flex-direction: column; gap: 16px; }
.scm-step { display: flex; gap: 12px; }
.scm-step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.scm-step-body { flex: 1; }
.scm-step-label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.scm-subscribe-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-sm); background: var(--border); color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; transition: background .15s; }
.scm-subscribe-btn:hover { background: rgba(255,255,255,.12); }
.scm-verify-btn { padding: 9px 18px; border-radius: var(--radius-sm); background: var(--primary); color: #fff; border: none; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.scm-verify-btn:disabled { opacity: .5; cursor: not-allowed; }
.scm-verify-btn:not(:disabled):hover { opacity: .9; }
.scm-verify-btn--sm { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.scm-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; }
.scm-vk-row { display: flex; gap: 8px; align-items: center; }
.scm-vk-input { flex: 1; padding: 9px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--input-radius); color: inherit; font-size: 16px; }
.scm-vk-input::placeholder { color: var(--text-muted); }
.scm-error { font-size: 12px; color: var(--danger); margin-top: 8px; line-height: 1.4; }
.scm-done { text-align: center; padding: 16px 0 8px; }
.scm-done-icon { font-size: 48px; margin-bottom: 12px; }
.scm-done-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.scm-done-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }


.sidebar-admin-link { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); text-decoration: none; padding: 6px 12px; margin-top: 4px; border-radius: 8px; transition: background .15s, color .15s; opacity: .7; }
.sidebar-admin-link:hover { background: rgba(255,255,255,.06); color: var(--text); opacity: 1; }


.scm-waiting-btns { display: flex; flex-direction: column; gap: 8px; }
.scm-retry-btn { padding: 8px 14px; border-radius: var(--radius-sm); background: none; border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; cursor: pointer; transition: background .15s; }
.scm-retry-btn:hover { background: rgba(255,255,255,.06); }
.scm-retry-btn:disabled { opacity: .4; cursor: not-allowed; }


.post-modal-overlay { position: fixed; inset: 0; z-index: 600; background: rgba(0,0,0,.7); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px 16px; overflow-y: auto; animation: fadeIn .15s; }
.post-modal { position: relative; width: 100%; max-width: 640px; background: var(--card); border-radius: var(--radius-lg); overflow: hidden; }

.post-modal-header { display: flex; align-items: center; gap: 8px; padding: 8px 12px; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,.08); background: var(--card); }
.post-modal-back { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; cursor: pointer; background: transparent; color: var(--text-dim); border: 1px solid var(--border-light); transition: background 0.13s, color 0.13s; -webkit-tap-highlight-color: transparent; }
.post-modal-back:hover { background: var(--card); color: var(--text); }
.post-modal-back:active { background: var(--border); }

.post-modal-author-block { flex: 1; min-width: 0; }

.post-modal-body .post-header { display: none; }

.post-modal-close { display: none; }

.post-modal-drag-handle {
  display: none;
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.25);
  margin: 8px auto 0; flex-shrink: 0;
}

@media (max-width: 767px) {
  .post-modal-overlay { padding: 0; align-items: stretch; background: rgba(0,0,0,0.3); }
  .post-modal { border-radius: 0; max-height: none; max-width: none; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  .post-modal-drag-handle { display: block; }
  .post-modal-header { padding: 10px 12px; }
  .post-modal-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px) + 8px); }
}

@media (max-width: 767px) {
  .post-modal-body .post-quick-comment-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--card);
    border-top: 1px solid var(--border-light);
    padding-bottom: max(4px, env(safe-area-inset-bottom));
    margin-top: 0;
  }
}


.post-bs-overlay {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  height: 100dvh;  
  background: rgba(0,0,0,0.45);
  transition: background 0.28s ease;
  touch-action: none; 
}
.post-bs-overlay--dim0 { background: rgba(0,0,0,0); } 


.post-bs-positioner {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 100dvh;  
  z-index: 602;
  pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end;  
}


.post-bs-curtain {
  position: fixed;
  left: 0; right: 0;
  background: var(--card);
  z-index: 601;
  pointer-events: none;
  display: none; 
}

.post-bs-sheet {
  position: relative;
  width: 100%;
  height: auto;           
  
  max-height: calc(100% - env(safe-area-inset-top, 0px) - 12px);
  pointer-events: all;
  background: var(--card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  will-change: transform;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32,0.72,0,1);
}
.post-bs-sheet--open    { transform: translateY(0); }
.post-bs-sheet--closing { transform: translateY(110%); transition: transform 0.28s ease; }


.post-bs-topzone {
  flex-shrink: 0;
  padding: 6px 12px 4px;   
  touch-action: none;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.post-bs-handle {
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.22);
  margin: 0 auto 6px;
}
.post-bs-header-row {
  display: flex; align-items: center;
  margin-bottom: 2px;
}
.post-bs-ver { font-size: 12px; opacity: .5; margin-inline-start: 6px; font-weight: 400; }
.post-bs-title {
  flex: 1;
  font-size: 16px; font-weight: 700; color: var(--text);
  text-align: center;
}
.post-bs-close-btn {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
  color: var(--text-dim);
  border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.13s;
}
.post-bs-close-btn:active { background: rgba(255,255,255,0.2); }
.post-bs-stats {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 12px; color: var(--text-dim);
  padding-bottom: 2px;
}
.post-bs-dot { opacity: 0.5; }


.post-bs-body {
  display: flex; flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

.post-bs-body .post-comments {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}

.post-bs-body .comments-list {
  max-height: none;
  overflow: visible;
}

.post-bs-body .post-quick-comment-bar {
  flex-shrink: 0;
  position: static;
  border-top: 1px solid var(--border-light);
  background: var(--card);
  
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 15px);
}


@media (min-width: 640px) {
  .post-bs-positioner {
    top: auto; bottom: 0;
    left: 50%; right: auto; width: 600px;
    height: auto; max-height: 93dvh;
    transform: translateX(-50%);
  }
  .post-bs-sheet {
    height: auto; max-height: 93dvh;
    transform: translateY(100%);
  }
  .post-bs-sheet--open    { transform: translateY(0); }
  .post-bs-sheet--closing { transform: translateY(110%); }
  .post-bs-curtain { display: none; }
}








@media (max-width: 767px) {
  .profile-rank-label { font-size: 12px; }
}








.post-pb-badge,
.post-catch-big { flex-shrink: 0; }


.clips-feed {
  position: fixed;
  
  top: 0;
  left: 0; right: 0;
  bottom: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  background: #000;
  -webkit-overflow-scrolling: touch;
}
.clips-feed::-webkit-scrollbar { display: none; }

.clips-feed--empty {
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.clips-loading {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.5); font-size: 14px;
}
.clips-empty {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.6); text-align: center; padding: 24px;
}
.clips-empty h3 { color: #fff; font-size: 18px; margin: 8px 0 0; }
.clips-empty p { font-size: 14px; margin: 0; max-width: 260px; }
.clips-empty-upload {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: var(--btn-radius-sm); border: none;
  background: var(--btn-bg); color: var(--btn-text);
  font-size: 14px; font-weight: var(--btn-weight); cursor: pointer;
}




































.clips-upload-fab {
  position: fixed; bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px) + 14px);
  right: 16px; z-index: 60;
  height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  background: var(--fab-bg); color: var(--fab-text);
  border: none; display: flex; align-items: center; gap: 7px;
  box-shadow: var(--fab-shadow);
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(.34,1.56,.64,1);
}
.clips-upload-fab:active { transform: scale(0.92); }



@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateY(-4px); }
  15%  { opacity: 1; transform: translateY(0); }
  70%  { opacity: 1; }
  100% { opacity: 0; pointer-events: none; }
}






.clips-top-bar {
  position: fixed;
  top: var(--header-height);
  left: 0; right: 0;
  z-index: 25;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 12px 0;
  pointer-events: none;
}
.clips-tabs {
  display: flex; align-items: center; gap: 0;
  pointer-events: all;
}
.clips-tab {
  position: relative;
  padding: 10px 20px 9px;
  background: none; border: none;
  color: rgba(255,255,255,0.5); font-size: 15px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.01em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.85);
  transition: color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.clips-tab.active { color: #fff; font-weight: 700; }
.clips-tab.active::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2px; border-radius: 2px;
  background: #fff;
}
.clips-upload-top {
  position: absolute; left: 12px; top: 6px;
  height: 34px; padding: 0 14px 0 11px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary); border: none;
  color: #fff; font-size: 13px; font-weight: 700;
  cursor: pointer; pointer-events: all;
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, filter 0.15s;
}
.clips-upload-top:active { transform: scale(0.94); filter: brightness(0.92); }


















@media (min-width: 900px) {
  .clips-page {
    position: relative;
    height: calc(100vh - 76px - 24px);
    overflow: hidden;
    border-radius: var(--radius);
  }
  .clips-top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 8px 12px 0;
  }
  .clips-feed {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    height: 100%;
    max-width: none;
    margin: 0;
    border-radius: var(--radius);
  }
  .clips-feed--empty { height: 100%; }
  .clips-upload-fab {
    position: absolute;
    bottom: 14px;
    right: 16px;
  }
}

































































.upload-clip-page { padding: 0 0 80px; }
.upload-clip-header {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
}
.upload-clip-header h2 { font-size: 18px; margin: 0; }
.upload-clip-dropzone {
  width: 100%; aspect-ratio: 9/12; max-height: 50dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  background: var(--card); color: var(--text-muted);
  cursor: pointer; font-size: 15px; font-weight: 600;
}
.upload-clip-dropzone small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.upload-clip-preview {
  position: relative; width: 100%; aspect-ratio: 9/12; max-height: 50dvh;
  border-radius: var(--radius-lg); overflow: hidden; background: #000;
}
.upload-clip-video { width: 100%; height: 100%; object-fit: contain; }
.upload-clip-clear {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.6); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.upload-clip-duration {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 12px;
  padding: 3px 8px; border-radius: 8px;
}
.upload-clip-form { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.upload-clip-label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-top: 8px; }
.upload-clip-input {
  height: 44px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 14px;
}
.upload-clip-species { display: flex; flex-wrap: wrap; gap: 6px; }
.upload-clip-chip {
  padding: 7px 12px; border-radius: var(--radius-lg);
  background: var(--primary-bg); border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  color: var(--text-muted); font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.upload-clip-chip.active { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-text); font-weight: 600; }
.upload-clip-progress {
  position: relative; height: 28px; border-radius: 8px;
  background: var(--border-light); overflow: hidden; margin-top: 12px;
  display: flex; align-items: center; justify-content: center;
}
.upload-clip-progress-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--btn-bg);
  transition: width 0.2s;
}
.upload-clip-progress span { position: relative; font-size: 12px; font-weight: 600; color: #fff; }
.upload-clip-submit {
  margin-top: 16px; height: 50px; border-radius: var(--btn-radius); border: none;
  background: var(--btn-bg); color: var(--btn-text);
  font-size: 16px; font-weight: var(--btn-weight); cursor: pointer;
}
.upload-clip-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.upload-clip-music-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border-light);
  background: none; color: var(--text-muted);
  font-size: 14px; cursor: pointer; width: 100%;
  transition: border-color 0.15s, color 0.15s;
}
.upload-clip-music-btn:hover { border-color: var(--primary); color: var(--primary); }

.upload-clip-music-selected {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary); background: color-mix(in srgb, var(--primary) 7%, transparent);
  color: var(--text);
}
.upload-clip-music-info { flex: 1; min-width: 0; }
.upload-clip-music-title { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-clip-music-meta  { display: block; font-size: 12px; color: var(--text-muted); }
.upload-clip-music-change { font-size: 12px; color: var(--primary); background: none; border: none; cursor: pointer; white-space: nowrap; }
.upload-clip-music-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; display: flex; }










.contests-page .contest-hero {
  background: linear-gradient(135deg, #1f2d26, #14302a);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px;
}
.contest-hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.contest-pool { font-size: 26px; font-weight: 900; color: #f0c040; letter-spacing: -0.5px; }
.contest-left { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 4px; }
.contest-title { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.contest-sub { font-size: 13px; color: var(--text-dim); line-height: 1.4; }

.contest-mytickets {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px;
}
.contest-mt-main { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.contest-mt-num { font-size: 20px; font-weight: 800; color: var(--text); }
.contest-mt-num span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.contest-mt-odds { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.contest-mt-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.contest-mt-chip {
  font-size: 12px; padding: 4px 9px; border-radius: var(--chip-radius);
  background: var(--bg-warm); border: 1px solid var(--border-light);
  color: var(--text-muted); text-decoration: none;
}
.contest-mt-chip b { color: var(--text); }

.contest-section {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px;
}
.contest-section h2 {
  display: flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700; margin: 0 0 4px; color: var(--text);
}
.contest-section-sub { font-size: 12px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.4; }

.contest-rules { display: flex; flex-direction: column; gap: 8px; }
.contest-rule-row { display: flex; align-items: center; gap: 10px; }
.contest-rule-badge {
  flex-shrink: 0; min-width: 34px; text-align: center;
  font-size: 13px; font-weight: 800; color: var(--accent);
  background: color-mix(in srgb, var(--primary) 16%, transparent); border-radius: 8px; padding: 3px 6px;
}
.contest-rule-label { flex: 1; font-size: 13px; color: var(--text); }
.contest-rule-cap { font-size: 12px; color: var(--text-muted); }

.contest-noms { display: flex; flex-direction: column; gap: 8px; }
.contest-nom {
  background: var(--bg-warm); border: 1px solid var(--border-light);
  border-radius: var(--radius-xs); padding: 10px 12px;
}
.contest-nom--lottery { border-color: rgba(212,160,23,0.4); background: rgba(212,160,23,0.08); }
.contest-nom-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.contest-nom-title { font-size: 13px; font-weight: 700; color: var(--text); }
.contest-nom-prize { font-size: 13px; font-weight: 800; color: #f0c040; white-space: nowrap; }
.contest-nom-desc { font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.35; }


.giveaway-list { display: flex; flex-direction: column; gap: 8px; }
.giveaway-card {
  background: var(--bg-warm); border: 1px solid var(--border-light);
  border-radius: var(--radius-xs); overflow: hidden;
}
.giveaway-card--over { opacity: 0.65; }
.giveaway-head {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; background: none; border: none; cursor: pointer; text-align: start;
}
.giveaway-cover {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); overflow: hidden;
}
.giveaway-cover img { width: 100%; height: 100%; object-fit: cover; }
.giveaway-head-main { flex: 1; min-width: 0; }
.giveaway-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 3px; }
.giveaway-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 100px; white-space: nowrap;
}
.giveaway-badge--muted { background: var(--card); color: var(--text-muted); }
.giveaway-badge--external { background: rgba(80,140,220,0.14); color: #78b0f0; }
.giveaway-badge--native   { background: var(--primary-bg); color: var(--primary); }
.giveaway-badge--platform { background: rgba(212,160,23,0.14); color: #f0c040; }
.giveaway-title { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.25; }
.giveaway-meta { display: flex; align-items: center; gap: 12px; margin-top: 3px; font-size: 12px; color: var(--text-muted); }
.giveaway-meta span { display: inline-flex; align-items: center; gap: 3px; }
.giveaway-you { color: var(--primary) !important; font-weight: 700; }
.giveaway-chev { flex-shrink: 0; color: var(--text-muted); transition: transform var(--transition); }
.giveaway-chev--open { transform: rotate(180deg); }
.giveaway-body { padding: 0 12px 12px; }
.giveaway-poster { display: block; margin: 2px 0 10px; border-radius: var(--radius-xs); overflow: hidden; background: var(--bg-warm); }
.giveaway-poster img { display: block; width: 100%; height: auto; }
.giveaway-rules { font-size: 12px; color: var(--text-muted); line-height: 1.45; margin-bottom: 10px; }
.giveaway-tasks-hd { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.giveaway-tasks-cnt { font-size: 12px; font-weight: 800; color: var(--primary); background: color-mix(in srgb, var(--primary) 16%, transparent); border-radius: 100px; padding: 1px 8px; }
.giveaway-task {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 4px; background: none; border: none; border-bottom: 1px solid var(--border-light);
  cursor: pointer; text-align: start; color: var(--text);
}
.giveaway-task:last-of-type { border-bottom: none; }
.giveaway-task-ic { flex-shrink: 0; color: var(--text-muted); }
.giveaway-task-ic--done { color: var(--primary); }
.giveaway-task-label { flex: 1; font-size: 12.5px; line-height: 1.3; }
.giveaway-task-go { flex-shrink: 0; color: var(--text-muted); }
.giveaway-note { font-size: 12px; color: var(--text-muted); line-height: 1.4; margin-top: 8px; }

.giveaway-cta { margin-top: 12px; }
.giveaway-reward { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--primary); }


.lg-seg { display: flex; gap: 6px; margin-bottom: 4px; }
.lg-seg-btn {
  flex: 1; padding: 8px 6px; border: 1px solid var(--border-light); border-radius: var(--radius-xs);
  background: var(--bg-warm); color: var(--text-muted); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.lg-seg-btn--on { background: var(--sel-bg); color: var(--sel-text); border-color: var(--sel-bg); }
.lg-label { display: block; font-size: 12px; font-weight: 700; color: var(--text); margin: 12px 0 5px; }
.lg-input {
  width: 100%; padding: 10px; border: 1px solid var(--border-light); border-radius: var(--radius-xs);
  background: var(--bg-warm); color: var(--text); font-size: 13.5px; font-family: inherit; resize: vertical;
}
.lg-input:focus { outline: none; border-color: var(--primary); }


.giveaway-mod { display: flex; gap: 8px; margin-top: 10px; }
.giveaway-mod .btn { flex: 1; }
.contest-mb-12 { margin-bottom: 12px; }
.contest-group-label { font-size: var(--fs-min); font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--text-muted); margin: 2px 0 8px; display: flex; align-items: center; }
.contest-group-label--spaced { margin-top: 16px; }
.contest-group-ic { margin-inline-end: 4px; flex-shrink: 0; }


.phc-short { display: none; }
@media (max-width: 380px) {
  .phc-full { display: none; }
  .phc-short { display: inline; }
}


.invite-card-share { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-card-share .btn { flex: 1 1 auto; }
.invite-copy-btn { margin-bottom: 10px; }
.invite-hub-link { margin-top: 10px; }















.gvp-prizes { font-size: 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 2px; opacity: 0.92; }
.gvp-prizes div { display: flex; align-items: center; gap: 5px; }








@keyframes gv-spin { to { transform: rotate(360deg); } }




























.gvp-skin { width: 100%; max-width: 360px; border-radius: var(--radius); padding: 12px; font-size: 13px; line-height: 1.45; }
.gvp-tg { background: #17212b; color: #e9edf0; }
.gvp-vk { background: #edeef0; color: #000; }
.gvp-max { background: #1b1b2e; color: #eef; }
.gvp-klevat { background: var(--card); color: var(--text); border: 1px solid var(--border-light); }
.gvp-head { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; margin-bottom: 8px; opacity: 0.9; }
.gvp-ava { width: 22px; height: 22px; border-radius: 100px; flex-shrink: 0; }
.gvp-ava-tg { background: linear-gradient(135deg,#2aabee,#229ed9); }
.gvp-ava-vk { background: #07f; }
.gvp-ava-max { background: linear-gradient(135deg,#8a5cff,#5b8cff); }
.gvp-media { width: 100%; border-radius: 8px; margin-bottom: 8px; display: block; }
.gvp-title { display: flex; align-items: center; gap: 5px; font-weight: 700; margin-bottom: 6px; }
.gvp-text { white-space: pre-wrap; margin-bottom: 8px; opacity: 0.95; }
.gvp-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gvp-link { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; opacity: 0.85; }
.gvp-cond { font-size: 12px; margin-bottom: 8px; }
.gvp-cond ul { margin: 4px 0 0; padding-inline-start: 18px; }
.gvp-cond li { margin-bottom: 2px; }
.gvp-partners { font-size: 12px; opacity: 0.7; margin-bottom: 8px; }
.gvp-actions { display: flex; gap: 14px; padding-top: 8px; border-top: 1px solid rgba(128,128,128,0.25); }
.gvp-act { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; opacity: 0.8; }
.gvp-vk .gvp-actions { border-top-color: rgba(0,0,0,0.1); }


.boosted-gv-banner {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 10px;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--text);
  background: linear-gradient(100deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--primary) 5%, transparent));
  border: 1px solid var(--primary);
}
.boosted-gv-badge { flex-shrink: 0; font-size: 12px; font-weight: 800; color: var(--primary); background: var(--card); border-radius: 100px; padding: 4px 10px; }
.boosted-gv-banner .feed-banner__title { font-weight: 700; }
.contest-summary { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); margin: 0 0 12px; }
.contest-summary b { color: var(--text); font-weight: 800; }
.contest-summary-sep { opacity: 0.5; }
.contest-summary-dot { width: 7px; height: 7px; border-radius: 100px; background: var(--text-muted); }
.contest-summary-dot--live { background: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }

.contest-board { display: flex; flex-direction: column; gap: 2px; }
.contest-board-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 6px;
  text-decoration: none; color: var(--text); border-radius: var(--radius-xs);
  border-bottom: 1px solid var(--border-light);
}
.contest-board-row:last-child { border-bottom: none; }
.contest-board-rank { width: 22px; text-align: center; font-weight: 700; font-size: 14px; }
.contest-board-name { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contest-board-meta { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.contest-fair ul { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; }
.contest-fair li { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.contest-fair-link {
  display: inline-block; margin-top: 10px; padding: 8px 0;
  background: none; border: none; font-family: inherit; text-align: start;
  font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; cursor: pointer;
}


.legal-page { padding-bottom: 32px; }
.legal-page p { font-size: 14px; line-height: 1.6; color: var(--text-dim); margin: 0 0 12px; }
.legal-page h2 { font-size: 15px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.legal-page ul { margin: 0 0 12px; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-page li { font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.legal-page a { color: var(--accent); }
.legal-updated { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.legal-muted { font-size: 13px; color: var(--text-muted); }

.legal-cards { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.legal-card {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  color: var(--accent);
}
.legal-card b { color: var(--text); font-size: 14px; margin-top: 4px; }
.legal-card span { color: var(--text-muted); font-size: 12px; line-height: 1.4; }

.legal-cta {
  display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 6px; text-decoration: none;
  color: var(--btn-text) !important; -webkit-text-fill-color: var(--btn-text) !important;
}

.contact-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.contact-row {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
}
.contact-icon { width: 42px; height: 42px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-text { display: flex; flex-direction: column; gap: 1px; }
.contact-text b { font-size: 14px; }
.contact-text span { font-size: 12px; color: var(--text-muted); }


.sidebar-footer-links {
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 1px;
}
.sidebar-footer-links a {
  display: block; padding: 4px 12px; font-size: 12px; line-height: 1.3;
  color: var(--text-muted); text-decoration: none; opacity: .6;
  border-radius: 8px; transition: background .15s, opacity .15s;
}
.sidebar-footer-links a:hover { background: rgba(255,255,255,.06); opacity: 1; }


.more-footer-links {
  margin-top: 20px; padding: 16px 0 8px; border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center;
}
.more-footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.more-footer-copy { font-size: var(--fs-min); color: var(--text-muted); margin-top: 4px; }


.register-agree {
  display: flex; align-items: flex-start; gap: 9px; margin: 4px 2px 14px;
  font-size: 12.5px; line-height: 1.4; color: var(--text-muted); cursor: pointer;
}
.register-agree input { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); }
.register-agree a { color: var(--accent); }

.register-agree--top {
  padding: 10px 12px; margin: 4px 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
}

.register-agree--error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-light);
  animation: register-agree-shake 0.28s ease;
}
.register-agree--error input { accent-color: var(--danger); outline: 2px solid var(--danger); outline-offset: 1px; }
@keyframes register-agree-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.register-agree-hint {
  color: var(--danger); font-size: 12.5px; line-height: 1.4;
  margin: -6px 2px 12px; padding-inline-start: 2px;
}

.auth-consent-note {
  margin: 14px 4px 0; font-size: 12px; line-height: 1.45;
  color: var(--text-muted); text-align: center;
}
.auth-consent-note a { color: var(--primary); }


.adm-ip-reminder {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; margin: 4px 0 14px;
  border: 1px solid var(--danger); background: var(--danger-light);
  border-radius: var(--radius); text-decoration: none; color: var(--text);
}
.adm-ip-reminder__badge {
  flex-shrink: 0; color: var(--danger); font-weight: 800; font-size: 12px;
  letter-spacing: 0.5px; padding: 2px 8px;
  border: 1.5px solid var(--danger); border-radius: var(--radius-xs);
}
.adm-ip-reminder__text { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; color: var(--text); }
.adm-ip-reminder__arrow { flex-shrink: 0; color: var(--danger); font-weight: 700; }
.adm-ip-reminder:active { background: var(--danger-light); filter: brightness(0.94); }


button.notif-item, button.notif-feed-item {
  width: 100%; text-align: start; background: none; border: none;
  font: inherit; cursor: pointer; color: inherit;
}


.contest-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 5px 8px; margin: 0;
  
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warning) 32%, transparent);
  border-radius: var(--radius);
  text-align: center;
}
.contest-banner-content { display: flex; gap: 10px; align-items: center; justify-content: center; text-decoration: none; color: var(--text-dim); flex: 1; min-width: 0; }
.contest-banner-emoji { font-size: 20px; flex-shrink: 0; line-height: 1; display: flex; align-items: center; }
.contest-banner-text { font-size: 13px; line-height: 1.45; color: var(--text-dim); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.contest-banner-text strong { display: inline; font-size: 13px; font-weight: 700; color: var(--warning); margin-inline-end: 2px; }
.contest-banner__title { color: var(--warning) !important; }

.contest-banner .feed-banner__desc { -webkit-line-clamp: 1; }

.contest-banner--guest { margin-top: 8px; }


.first-post-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(16,185,129,0.08));
  border: 1px solid rgba(34,197,94,0.35);
  text-decoration: none; color: inherit;
  transition: transform 0.15s, border-color 0.15s;
}
.first-post-banner:active { transform: scale(0.99); }
.first-post-banner-emoji { font-size: 22px; flex-shrink: 0; }
.first-post-banner-text { flex: 1; min-width: 0; }
.first-post-banner-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--success); }
.first-post-banner-text span { font-size: 12px; color: var(--text-muted); }
.first-post-banner-arrow { font-size: 18px; color: var(--success); flex-shrink: 0; }


.post-author--system { display: flex; align-items: center; gap: 10px; cursor: default; }
.post-author--system .avatar-sm { object-fit: contain; background: var(--bg-warm); }
.author-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.author-rank-chip--official {
  background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--accent);
  font-weight: 600; padding: 1px 8px; border-radius: var(--radius-sm); font-size: 12px;
}


.comment-item--official { background: color-mix(in srgb, var(--primary) 4%, transparent); border-radius: 8px; padding: 8px; margin: 0 -8px; }
.comment-author--klevat { color: var(--accent); font-weight: 800; font-size: 13px; }
.comment-author-verified {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 8px; font-weight: 900;
  flex-shrink: 0; margin-inline-start: -2px;
}
.comment-official-badge {
  display: inline-flex; align-items: center;
  background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
  padding: 1px 6px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
  flex-shrink: 0;
}


.comment-as-trigger {
  background: none; border: none; padding: 0; cursor: pointer; position: relative;
  display: flex; align-items: center;
}
.comment-as-dot {
  position: absolute; bottom: 0; right: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 1.5px solid var(--card);
}
.comment-as-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 300;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 4px; min-width: 190px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.comment-as-option {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 10px; border: none; background: none; cursor: pointer;
  border-radius: 7px; color: var(--text); font-size: 13px; font-weight: 500;
  transition: background 0.12s;
}
.comment-as-option:hover { background: var(--border-light); }
.comment-as-option.active { background: var(--sel-bg); color: var(--sel-text); }
.comment-as-ava { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-as-ava--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 700;
}
.comment-as-official-badge {
  display: inline-flex; align-items: center;
  background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--accent);
  font-size: 12px; font-weight: 700; padding: 1px 5px; border-radius: var(--radius-xs);
  margin-inline-start: 3px;
}

button.post-read-more {
  background: none; border: none; cursor: pointer; font: inherit; padding: 0;
  display: inline; vertical-align: baseline;
}


.photo-viewer {
  position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
.photo-viewer-img { width: 94vw; height: 88vh; max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 8px; user-select: none; }

.photo-viewer-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; padding: 0; }
.photo-viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; padding: 0; }
.photo-viewer-nav--prev { left: 10px; }
.photo-viewer-nav--next { right: 10px; }
.photo-viewer-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; background: rgba(0,0,0,.45); padding: 4px 12px; border-radius: var(--radius);
}
.photo-viewer-like {
  position: absolute; bottom: 18px; right: 18px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75); border-radius: var(--radius-pill);
  padding: 8px 14px; cursor: pointer; font-size: 14px; font-weight: 600;
  transition: color .15s, background .15s, border-color .15s;
}
.photo-viewer-like--center {
  right: auto; left: 50%; transform: translateX(-50%);
  padding: 10px 22px; font-size: 15px;
}
.photo-viewer-like:hover { background: rgba(0,0,0,.7); color: #fff; }
.photo-viewer-like--active { color: #f43f5e; border-color: #f43f5e; }
button.profile-photo-item { padding: 0; border: none; background: none; cursor: pointer; display: block; width: 100%; }
.avatar-viewable { cursor: pointer; }



.feed-banners { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.feed-banners > * { margin: 0 !important; }


.feed-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
}
.feed-tiles > * { margin: 0 !important; min-height: 42px; }

.feed-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }

.feed-tiles > .daily-widget.is-open { grid-column: 1 / -1; min-height: 0; }

.feed-tiles > .pwa-install-ios-help { grid-column: 1 / -1; }

.feed-tiles > :nth-child(n+7) { display: none; }


.feed-tiles--carousel {
  
  --ctile-w: 104px;
  --ctile-h: 52px;
  --ctile-cap: 38%;   
  display: flex;
  grid-template-columns: none;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  position: relative;
  
  padding: 3px 3px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#daily-body-slot:empty { display: none; }

.feed-page > .feed-banners { margin-bottom: 0 !important; }
.feed-tiles--carousel::-webkit-scrollbar { display: none; }

.feed-tiles--carousel > * {
  flex: 0 0 var(--ctile-w) !important;
  width: var(--ctile-w) !important;
  height: var(--ctile-h) !important;
  min-width: var(--ctile-w) !important;
  max-width: var(--ctile-w) !important;
  min-height: 0;
  grid-column: auto !important;
  box-sizing: border-box;
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0;
  padding: 0;
  text-align: center;
  
  background:
    radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 58%),
    var(--card);
  
  box-shadow: none;
}
.feed-tiles--carousel > :nth-child(n+7) { display: flex; }

.feed-tiles--carousel .daily-widget .daily-dot {
  position: absolute; top: 5px; right: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: #fbbf24; box-shadow: 0 0 5px rgba(251,191,36,0.75);
}
.feed-tiles--carousel > :first-child { border-color: var(--primary); }


.feed-tiles--carousel .daily-widget__header,
.feed-tiles--carousel .feed-banner__body {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%; gap: 2px; padding: 0; margin: 0;
  text-align: center; min-width: 0;
}
.feed-tiles--carousel .daily-widget__title-row {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1px; min-width: 0;
}


.feed-tiles--carousel .feed-tile__title,
.feed-tiles--carousel .feed-banner__title,
.feed-tiles--carousel .ctile-name {
  
  flex: 0 0 var(--ctile-cap);
  width: 100%; box-sizing: border-box; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-min); line-height: 1; font-weight: 700; color: var(--text);
  text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.feed-tiles--carousel .feed-tile__desc,
.feed-tiles--carousel .feed-banner__desc {
  font-size: var(--fs-min); line-height: 1.15; font-weight: 500; opacity: 0.72;
  white-space: normal; text-align: center;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-tiles--carousel .ctile-kicker {
  font-size: var(--fs-min); font-weight: 800; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--primary); line-height: 1;
}
.feed-tiles--carousel .ctile-prize {
  font-size: var(--fs-min); font-weight: 800; color: var(--primary); line-height: 1.1;
}

.feed-tiles--carousel .ctile-sub,
.feed-tiles--carousel .ctile-kicker,
.feed-tiles--carousel .ctile-prize,
.feed-tiles--carousel .feed-tile__desc,
.feed-tiles--carousel .feed-banner__desc { display: none !important; }



.feed-tiles--carousel > * { position: relative; }
.feed-tiles--carousel > * > * { position: relative; z-index: 1; }
.feed-tiles--carousel .ctile--bite {
  background: radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 62%), var(--card);
}
.feed-tiles--carousel .ctile--contest {
  background: radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--warning) 22%, transparent), transparent 62%), var(--card);
}
.feed-tiles--carousel .ctile--report {
  background: radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--danger) 16%, transparent), transparent 62%), var(--card);
}
.feed-tiles--carousel .pwa-install-banner {
  background: radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--primary) 15%, transparent), transparent 62%), var(--card);
}
.feed-tiles--carousel .daily-widget {
  background: radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--warning) 16%, transparent), transparent 62%), var(--card);
}

.feed-tiles--carousel > *::after {
  position: absolute; right: 1px; bottom: -4px;
  font-size: 36px; line-height: 1;
  opacity: 0.13; filter: grayscale(0.35);
  pointer-events: none; z-index: 0;
}
.feed-tiles--carousel .ctile--bite::after { content: '🐟'; }
.feed-tiles--carousel .ctile--contest::after { content: '🎁'; }
.feed-tiles--carousel .ctile--report::after { content: '🐞'; }
.feed-tiles--carousel .pwa-install-banner::after { content: '📲'; }
.feed-tiles--carousel .daily-widget::after { content: '🔥'; }

.feed-tiles--carousel .ctile--diary {
  background: radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 62%), var(--card);
}
.feed-tiles--carousel .ctile--gear {
  background: radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--warning) 18%, transparent), transparent 62%), var(--card);
}
.feed-tiles--carousel .ctile--about {
  background: radial-gradient(circle at 82% 14%, rgba(91,155,213,0.16), transparent 62%), var(--card);
}
.feed-tiles--carousel .ctile--socials {
  background: radial-gradient(circle at 82% 14%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 62%), var(--card);
}
.feed-tiles--carousel .ctile--diary::after { content: '📔'; }
.feed-tiles--carousel .ctile--gear::after { content: '🎣'; }
.feed-tiles--carousel .ctile--about::after { content: '📖'; }
.feed-tiles--carousel .ctile--socials::after { content: '💬'; }


.comm-filter-bar {
  display: flex; gap: 8px; padding: 8px 12px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border-light);
}
.comm-filter-bar::-webkit-scrollbar { display: none; }
.comm-filter {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-pill); background: var(--card);
  font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--text-dim); cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.comm-filter.active { background: var(--sel-bg); border-color: var(--sel-line); color: var(--sel-text); }
.comm-filter-badge {
  min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box;
  border-radius: var(--radius-pill); background: var(--danger); color: var(--btn-text);
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.comm-filter.active .comm-filter-badge,
.seg-btn.active .comm-filter-badge { background: var(--btn-text); color: var(--primary); }

.seg-btn .comm-filter-badge { margin-inline-start: -1px; }

.comm-list { display: flex; flex-direction: column; }
.comm-empty { text-align: center; color: var(--text-dim); padding: 40px 16px; font-size: 14px; }
.comm-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; text-decoration: none; color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.comm-row:active { background: var(--bg-warm); }
.comm-ava-wrap { position: relative; flex-shrink: 0; }
.comm-ava {
  width: 50px; height: 50px; border-radius: var(--radius-pill);
  object-fit: cover; background: var(--bg-warm);
}

.comm-ava--coat { object-fit: contain; background: #fff; padding: 2px; }
.comm-ava--ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: var(--btn-text); font-weight: 700; font-size: 20px;
}
.comm-online-dot {
  position: absolute; right: 1px; bottom: 1px;
  width: 12px; height: 12px; border-radius: var(--radius-pill);
  background: var(--success); border: 2px solid var(--card);
}
.comm-row-body { flex: 1; min-width: 0; }
.comm-row-top { display: flex; align-items: baseline; gap: 8px; }
.comm-row-name {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 4px;
}
.comm-row-gicon, .comm-row-pin { color: var(--text-dim); flex-shrink: 0; }
.comm-row-time { flex-shrink: 0; font-size: 12px; color: var(--text-dim); }
.comm-row-bottom { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.comm-row-preview {
  flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.comm-row-badge {
  flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
  border-radius: var(--radius-pill); background: var(--primary); color: var(--btn-text);
  font-size: 12px; font-weight: 700; line-height: 18px; text-align: center;
}
.comm-row-badge.muted { background: var(--text-muted); }

.comm-row-badge--mark { min-width: 12px; width: 12px; height: 12px; padding: 0; }


.comm-filter-note {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 8px 0 2px; padding: 8px 12px;
  background: var(--primary-bg); border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-dim);
}
.comm-filter-note button {
  border: none; background: none; padding: 0; cursor: pointer; flex-shrink: 0;
  color: var(--primary); font-weight: 700; font-size: 13px; font-family: inherit;
}
.comm-row-mute { color: var(--text-muted); flex-shrink: 0; margin-inline-start: 2px; }


.comm-swipe { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-light); }
.comm-swipe .comm-row { border-bottom: none; }
.comm-swipe-actions {
  position: absolute; top: 0; right: 0; bottom: 0; display: flex; z-index: 0;
}
.comm-sa {
  width: 72px; border: none; cursor: pointer; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; font-weight: 600; -webkit-user-select: none; user-select: none;
}
.comm-sa--mute { background: #6b7280; }
.comm-sa--arch { background: #3b82f6; }
.comm-sa--del  { background: var(--danger); }
.comm-row--swipe {
  position: relative; z-index: 1; background: var(--bg); touch-action: pan-y;
  will-change: transform;
}
.comm-swipe.is-open .comm-row--swipe { box-shadow: -8px 0 12px -8px rgba(0,0,0,.35); }


.comm-check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.comm-check.on { background: var(--sel-bg); border-color: var(--sel-line); }


.comm-filter--add { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; }


.comm-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 10px 0; border-bottom: 1px solid var(--border-light);
  
  position: sticky; top: 0; z-index: 20; background: var(--bg);
}
.comm-toolbar .comm-filter-bar { flex: 1; min-width: 0; border-bottom: none; padding: 0 0 10px; }




.comm-bulkbar {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px));
  max-width: 960px; margin: 0 auto; z-index: 40;
  display: flex; background: var(--card); border-top: 1px solid var(--border-light);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 768px) { .comm-bulkbar { bottom: 0; padding-inline-start: 232px; } }
.comm-bulk-btn {
  flex: 1; border: none; background: none; cursor: pointer; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px; font-size: 12px; font-weight: 600;
}
.comm-bulk-btn:disabled { opacity: .4; }
.comm-bulk-btn--danger { color: var(--danger); }


.comm-preview-back {
  position: fixed; inset: 0; z-index: 900; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.comm-preview {
  width: 100%; max-width: 440px; max-height: 80vh; overflow: hidden;
  background: var(--card); border-radius: var(--radius-lg); display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.comm-preview-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); }
.comm-preview-head b { font-size: 15px; }
.comm-preview-body { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.comm-preview-line { font-size: 13.5px; color: var(--text-dim); line-height: 1.4; word-break: break-word; }
.comm-preview-empty { color: var(--text-muted); font-size: 13px; text-align: center; padding: 16px; }
.comm-preview-acts { display: flex; flex-direction: column; border-top: 1px solid var(--border-light); }
.comm-preview-acts button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: start;
  border: none; background: none; cursor: pointer; color: var(--text);
  padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border-light);
}
.comm-preview-acts button:last-child { border-bottom: none; }
.comm-preview-acts button:active { background: var(--bg-warm); }
.comm-preview-acts .comm-preview-danger { color: var(--danger); }


.comm-sheet-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; box-sizing: border-box; min-height: 46px;
  padding: 10px 12px; margin-bottom: 2px;
  border: none; background: none; color: var(--text);   
  font-size: 14px; font-family: inherit; text-align: start; cursor: pointer;
}
.comm-sheet-row svg { flex-shrink: 0; color: var(--text-muted); }
.comm-sheet-count { margin-inline-start: auto; font-weight: 700; color: var(--text-muted); }
.comm-sheet-row--danger, .comm-sheet-row--danger svg { color: var(--danger); }
.comm-sheet-row.is-on, .comm-sheet-row.is-on svg { color: var(--primary); font-weight: 600; }

.gm-embedded-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }


.group-tabs { padding-top: 10px; }
html:root .group-tabs .tab-u { color: var(--text-dim); }
html:root .group-tabs .tab-u.active { color: var(--text); }


.repost-sheet--split {
  display: flex; flex-direction: column;
  overflow: hidden;                 
}
.repost-sheet--split > * { flex: 0 0 auto; }
.comm-people {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;     
}


.repost-sheet--split .share-section-title--gap {
  position: relative; z-index: 2; background: var(--card);
  margin-bottom: 0; padding-bottom: 8px;
}

.comm-letter {
  position: sticky; top: -1px; z-index: 1;
  padding: 10px 2px 4px; background: var(--card);
  font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--text-muted);
}
.comm-person {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px;
  padding: 6px 2px; border: none; background: none; cursor: pointer;
  color: var(--text); font-size: 14px; font-family: inherit; text-align: start;
}
.comm-person:active { opacity: .7; }
.comm-person-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.comm-person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comm-person-sub { font-size: 12px; color: var(--text-muted); }


.gprofile-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 14px; }
.gprofile-logo {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.gprofile-logo--coat { object-fit: contain; background: #fff; border-radius: var(--radius); }
.gprofile-logo--ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-warm); color: var(--text-muted);
}
.gprofile-head .geo-ico { width: 96px; height: 96px; }
.gprofile-name {
  margin: 6px 0 0; font-size: 20px; font-weight: 800; text-align: center;
  line-height: 1.25; color: var(--text);
}
.gprofile-sub {
  border: none; background: none; cursor: pointer; padding: 0;
  font-size: 13.5px; font-family: inherit; color: var(--text-muted);
}

.gprofile-acts { display: flex; gap: 8px; margin-bottom: 14px; }
.gprofile-act {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  height: auto; padding: 10px 4px;                      
  font-size: 12px; white-space: nowrap;
}
.gprofile-act-ic { color: var(--primary); display: flex; }

.gprofile-card {
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px;
}
.gprofile-field + .gprofile-field { margin-top: 12px; border-top: 1px solid var(--border-light); padding-top: 12px; }
.gprofile-label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px;
}
.gprofile-link { font-size: 14px; color: var(--primary); word-break: break-all; }
.gprofile-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-dim); white-space: pre-wrap; }

.gprofile-settings {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
  min-height: 50px; padding: 10px 14px; margin-bottom: 14px;   
  font-size: 14.5px;
}
.gprofile-settings > span:nth-child(2) { flex: 1; min-width: 0; }
.gprofile-settings svg { color: var(--text-muted); flex-shrink: 0; }
.gprofile-settings-ic {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-sm);
  background: var(--primary-bg); display: flex; align-items: center; justify-content: center;
}
.gprofile-settings-ic svg { color: var(--primary); }


.gatt { margin-bottom: 14px; }
.gatt .seg-row { margin-bottom: 10px; }
.gatt-empty { padding: 18px 4px; text-align: center; color: var(--text-muted); font-size: 13px; }
.gatt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gatt-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.gatt-links { display: flex; flex-direction: column; gap: 8px; }
.gatt-link {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); font-size: 14px;
}
.gatt-link-host { font-weight: 700; display: flex; align-items: center; gap: 5px; }
.gatt-link-url { font-size: 12.5px; color: var(--primary); word-break: break-all; }
.gatt-link-meta { font-size: 12px; color: var(--text-muted); }
.gatt-link audio { width: 100%; height: 34px; }


.gmembers { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.gmember {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 2px;
  border: none; border-bottom: 1px solid var(--border-light); background: none;
  color: var(--text); font-family: inherit; text-align: start; cursor: pointer;
}
.gmember:last-child { border-bottom: none; }
.gmember:active { background: var(--bg-warm); }
.gmember-chev { color: var(--text-muted); flex-shrink: 0; }
.gmember-ava { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.gmember-ava--ph { background: var(--bg-warm); color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.gmember-text { flex: 1; min-width: 0; }
.gmember-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; font-size: 14px; }
.gmember-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmember-city { font-size: 12px; color: var(--text-muted); }
.gmember-acts { display: flex; gap: 4px; flex-shrink: 0; }


.feed-tiles--carousel .daily-widget__header-right svg { display: none; }
.feed-tiles--carousel .daily-widget__header-right { justify-content: center; }


.feed-tile {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; min-width: 0;
  padding: 5px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text); font: inherit;
  text-decoration: none; text-align: center;
  cursor: pointer;
}
.feed-tile:active { background: var(--bg-warm); }

.feed-tile--accent {
  color: var(--primary); font-weight: 700; line-height: 1.15;
}
.feed-tile--accent .feed-tile__title { color: var(--primary); }
.feed-tile--accent svg { flex-shrink: 0; }
.feed-tile__body { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; width: 100%; }
.feed-tile__title { font-size: 13px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-tile__desc { font-size: 12px; color: var(--text-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


.feed-tiles--carousel .ctile--diary,
.feed-tiles--carousel .ctile--gear,
.feed-tiles--carousel .ctile--about,
.feed-tiles--carousel .ctile--socials,
.feed-tiles--carousel .ctile--report {
  justify-content: flex-end !important;
  align-items: center;
  border-color: transparent;
}

.feed-tiles--carousel .ctile--diary::before,
.feed-tiles--carousel .ctile--gear::before,
.feed-tiles--carousel .ctile--about::before,
.feed-tiles--carousel .ctile--socials::before,
.feed-tiles--carousel .ctile--report::before,
.feed-tiles--carousel .ctile--bite::before,
.feed-tiles--carousel .ctile--contest::before,
.feed-tiles--carousel .daily-widget::before {
  content: ''; position: absolute; z-index: 0;
  inset: 0;
  background-image: var(--ctile-img);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.feed-tiles--carousel .ctile--diary   { --ctile-img: url(/tile-art/tile_diary.webp); }
.feed-tiles--carousel .ctile--gear    { --ctile-img: url(/tile-art/tile_gear.webp); }
.feed-tiles--carousel .ctile--about   { --ctile-img: url(/tile-art/tile_about.webp); }
.feed-tiles--carousel .ctile--socials { --ctile-img: url(/tile-art/tile_socials.webp); }
.feed-tiles--carousel .ctile--report  { --ctile-img: url(/tile-art/tile_report.webp); }
.feed-tiles--carousel .ctile--contest { --ctile-img: url(/tile-art/tile_contest.webp); }
.feed-tiles--carousel .daily-widget   { --ctile-img: url(/tile-art/tile_daily.webp); }
.feed-tiles--carousel .ctile--bite    { --ctile-img: url(/tile-art/tile_bite.webp); }

.feed-tiles--carousel .ctile--diary .feed-tile__title,
.feed-tiles--carousel .ctile--gear .feed-tile__title,
.feed-tiles--carousel .ctile--about .feed-tile__title,
.feed-tiles--carousel .ctile--socials .feed-tile__title,
.feed-tiles--carousel .ctile--report .feed-tile__title {
  color: var(--text) !important; text-shadow: none;
}

.feed-tiles--carousel .ctile--diary::after,
.feed-tiles--carousel .ctile--gear::after,
.feed-tiles--carousel .ctile--about::after,
.feed-tiles--carousel .ctile--socials::after,
.feed-tiles--carousel .ctile--report::after { content: none; }


.feed-tiles--carousel .ctile--bite {
  background: var(--card) !important;
  border-color: transparent !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  gap: 0 !important;
}
.feed-tiles--carousel .ctile--bite .ctile-name { color: var(--text) !important; text-shadow: none; }
.feed-tiles--carousel .ctile--bite .ctile-sub { color: rgba(255,255,255,0.82) !important; text-shadow: 0 1px 3px rgba(0,0,0,0.9); }
.feed-tiles--carousel .ctile--bite::after { content: none; }


.feed-tiles--carousel .ctile--contest {
  background: var(--card) !important;
  border-color: transparent !important;
  justify-content: flex-end !important;
}
.feed-tiles--carousel .ctile--contest .ctile-name { color: var(--text) !important; text-shadow: none; }
.feed-tiles--carousel .ctile--contest .ctile-prize { color: #f5c518 !important; text-shadow: 0 1px 4px rgba(0,0,0,0.95); }
.feed-tiles--carousel .ctile--contest::after { content: none; }


.feed-tiles--carousel .daily-widget {
  background: var(--card) !important;
  border-color: transparent !important;
  padding: 0 !important; overflow: hidden;
}
.feed-tiles--carousel .daily-widget__tile {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  width: 100%; height: 100%; gap: 0; padding: 0;
  box-sizing: border-box; background: none; border: none; cursor: pointer;
  font: inherit; text-align: center; position: relative;
}
.feed-tiles--carousel .daily-widget .ctile-sub { display: inline-flex; align-items: center; }
.feed-tiles--carousel .daily-widget .ctile-name { color: var(--text) !important; text-shadow: none; }
.feed-tiles--carousel .daily-widget .ctile-sub { color: rgba(255,255,255,0.82) !important; text-shadow: 0 1px 3px rgba(0,0,0,0.9); }
.feed-tiles--carousel .daily-widget::after { content: none; }


.feed-tile--daily {
  padding: 0; gap: 0;
  align-items: stretch; justify-content: flex-start;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.feed-tile--daily .daily-widget__header { width: 100%; min-height: 42px; }

.feed-tiles > .contest-banner,
.feed-tiles > .bite-forecast-chip { min-height: 42px; box-sizing: border-box; }


#daily-body-slot:empty { display: none; }
#daily-body-slot .daily-widget__body {
  margin-top: 8px;
  padding: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.guest-hero {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 10px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.guest-hero-features-link {
  font-size: 13px; font-weight: 600; color: var(--accent);
  text-decoration: none; letter-spacing: 0.1px;
}
.guest-hero-features-link:hover { color: var(--text); }
.guest-hero-actions { display: flex; gap: 8px; align-items: stretch; }


.guest-bar { display: flex; gap: 8px; padding: 2px 12px 8px; }
.guest-bar__tile {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.guest-bar__tile--main {
  flex: 1 1 auto; min-width: 0;
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}
.guest-bar__tile:active { background: var(--bg-warm); }

.guest-bar__tile:hover, .guest-bar__tile:focus-visible { color: var(--text); }
.guest-bar__tile--main:hover, .guest-bar__tile--main:focus-visible { color: var(--primary); background: color-mix(in srgb, var(--primary) 20%, transparent); }



.post-badge-test {
  font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 8px;
  background: rgba(148,163,184,0.18); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.4px;
}

.sidebar-launch-note { font-size: 12px; color: var(--text-muted); opacity: .5; padding: 6px 12px 0; }



button.author-meta-stat--btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--text-muted); display: inline-flex; align-items: center; gap: 3px;
}
button.author-meta-stat--btn:hover { color: var(--accent); }
button.author-meta-stat--btn:focus, button.author-meta-stat--btn:focus-visible { outline: none; }


.auth-card .input-with-icon select,
.auth-card .input-with-icon input {
  background: var(--bg); color: var(--text);
}
.auth-card .input-with-icon select option {
  background: var(--card); color: var(--text);
}
.register-hint {
  font-size: 12.5px; color: var(--text-muted); padding: 10px 14px;
  background: var(--bg-warm); border: 1px dashed var(--border-light); border-radius: var(--radius-sm);
}
.register-fishing-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.reg-fish-chip {
  padding: 7px 13px; border-radius: var(--radius-xl); font-size: 13px; cursor: pointer;
  background: var(--bg-warm); color: var(--text-dim);
  border: 1px solid var(--border-light); transition: all .15s; font-family: inherit;
}
.reg-fish-chip:hover { border-color: var(--accent); }
.reg-fish-chip.on {
  background: color-mix(in srgb, var(--text) 18%, transparent); color: var(--text);
  border-color: var(--accent); font-weight: 600;
}


.pwd-checks {
  display: flex; flex-wrap: wrap; gap: 5px 10px;
  margin: -4px 0 10px 0; padding: 8px 10px;
  background: var(--bg-warm);
  border-radius: 8px; border: 1px solid var(--border-light);
}
.pwd-check {
  font-size: 12px; display: inline-flex; align-items: center; gap: 4px;
}
.pwd-check.ok { color: var(--success); }
.pwd-check.fail { color: var(--text-dim); }


.auth-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  margin-bottom: 10px; padding: 4px 0;
}
.auth-back:hover { color: var(--accent); }
.auth-logo-img { width: 56px; height: 56px; object-fit: contain; display: block; margin: 0 auto; }


.fb-verdict { margin: 10px 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-warm); border: 1px solid var(--border-light); }
.fb-verdict-q { font-weight: 600; margin-bottom: 10px; color: var(--text); }
.fb-verdict-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-verdict-reopen textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 54px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-light); background: var(--bg); color: var(--text); font: inherit; margin-bottom: 8px; }
.fb-verdict-done { margin: 10px 12px; padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--text-dim); background: var(--bg-warm); border: 1px solid var(--border-light); }


.daily-widget {
  margin: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  overflow: hidden;
}
.daily-widget__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; background: none; border: none; width: 100%;
  cursor: pointer; color: var(--text); gap: 8px;
  border-radius: var(--radius-sm); text-align: start; font: inherit;
}
.daily-widget__header:not(:last-child) {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.daily-widget__header--v2 {
  position: relative;
  flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 5px 8px; text-align: center;
}
.daily-widget__icon { flex-shrink: 0; }
.daily-widget__title-row {
  display: flex; align-items: center; justify-content: center;
}
.daily-widget__header-right {
  position: absolute; top: 4px; right: 6px;
  display: flex; align-items: center; gap: 4px; color: var(--text-muted);
}

.daily-widget__chips-row {
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: hidden;
  font-size: 12px; color: var(--text-muted); line-height: 1.35;
}
.daily-chip { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.daily-chip--alert { color: var(--warning); font-weight: 600; }
.daily-chip-sep { color: var(--text-muted); opacity: 0.35; }

.daily-widget__left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daily-widget__right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.daily-streak { display: flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 700; }
.daily-streak__icon { color: var(--warning); }
.daily-fish-badge { display: flex; align-items: center; gap: 4px; font-size: 12px; background: var(--primary-bg); color: var(--primary); padding: 2px 8px; border-radius: var(--radius-sm); }
.daily-fish-badge__mult { font-weight: 700; color: var(--warning); }
.daily-quest-counter { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.daily-badge { background: var(--warning); color: var(--bg); font-size: 11px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.daily-widget__body { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; }


.daily-streak-block { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: color-mix(in srgb, var(--warning) 12%, transparent); border-radius: var(--radius-sm); }
.daily-streak-block .daily-streak__icon { font-size: 16px; color: var(--warning); flex-shrink: 0; }
.daily-streak-block__label { font-size: 12px; font-weight: 600; color: var(--text); }
.daily-streak-block__sub { font-size: 12px; color: var(--text-muted); }


.daily-fish-block { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--primary-bg); border-radius: var(--radius-sm); }
.daily-fish-block__label { font-size: 12px; color: var(--text); }


.daily-coins-hint { font-size: 12px; color: var(--text-muted); padding: 2px 2px 0; line-height: 1.4; }


.daily-quests { display: flex; flex-direction: column; gap: 5px; }
.daily-quest {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border-radius: var(--radius-sm); padding: 8px 10px;
  border: 1px solid var(--border-light);
}
.daily-quest--claimed { opacity: .6; }
.daily-quest--link { cursor: pointer; color: inherit; }
.daily-quest--link:hover { border-color: var(--primary); background: var(--card); }
.daily-quest__icon { font-size: 17px; flex-shrink: 0; line-height: 1; display: inline-flex; color: var(--primary); }
.daily-quest__info { flex: 1; min-width: 0; }
.daily-quest__title { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
.daily-quest__desc { font-size: 12px; color: var(--text-muted); }


.daily-quest__reward { display: flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; flex-shrink: 0; white-space: nowrap; }


.daily-quest__progress-row { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.daily-quest__progress-bar { flex: 1; height: 3px; background: var(--border-light); border-radius: 2px; overflow: hidden; position: relative; }
.daily-quest__progress-bar::after { content: ''; position: absolute; inset: 0; width: var(--pct, 0%); background: var(--color, #4caf50); border-radius: 2px; transition: width .3s; }
.daily-quest__progress-label { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }


.daily-quest__claim-inline { background: var(--primary); color: var(--bg); border: none; border-radius: var(--radius-xs); padding: 2px 9px; font-size: 12px; font-weight: 700; cursor: pointer; margin-top: 2px; }
.daily-quest__claim-inline:disabled { opacity: .6; }


.daily-quest__status--claimed { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--primary); }

.daily-all-done { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); padding: 7px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; text-align: center; }
.daily-all-hint { background: color-mix(in srgb, var(--warning) 12%, transparent); color: var(--warning); padding: 7px 10px; border-radius: var(--radius-sm); font-size: 12px; text-align: center; }

.daily-widget__extra {
  border-top: 1px solid var(--border-light);
  margin-top: 4px;
}
.daily-widget__extra .idle-fishing-widget {
  background: transparent; border: none; border-radius: 0; margin: 0;
}


.idle-fishing-widget {
  margin: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  padding: 10px 10px;
}
.idle-fishing-widget__header {
  display: flex; align-items: center; gap: 4px; margin-bottom: 8px;
  font-size: 12px; font-weight: 600; color: var(--text-dim);
  flex-wrap: wrap;
}
.idle-fishing-widget__count { margin-inline-start: auto; font-size: 12px; color: var(--text-muted); font-weight: 400; }
.idle-fishing-widget__close {
  margin-inline-start: auto; background: none; border: none; cursor: pointer; padding: 2px;
  color: var(--text-muted); display: flex; align-items: center; opacity: 0.6;
}
.idle-fishing-widget__close:hover { opacity: 1; }

.idle-fishing-widget__btn {
  width: 100%; padding: 8px 6px; border-radius: var(--radius-sm); border: none;
  font-size: 12px; font-weight: 700; cursor: pointer; text-align: center;
}

.idle-fishing-widget__btn--cast { background: var(--primary); color: var(--bg); }
.idle-fishing-widget__btn--collect { background: var(--primary); color: var(--bg); }
.idle-fishing-widget__btn:disabled { opacity: .6; cursor: default; }

.idle-fishing-widget__waiting {
  text-align: center; padding: 10px; font-size: 13px; color: var(--text-dim);
  background: var(--bg-warm); border-radius: var(--radius-sm);
}
.idle-fishing-widget__result {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); padding: 8px 12px;
  border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 8px;
}
.idle-fishing-widget__result-close {
  background: none; border: none; color: var(--success); font-size: 16px; cursor: pointer; line-height: 1; flex-shrink: 0;
}


.weekly-page { max-width: 480px; margin: 0 auto; padding-bottom: 80px; }
.weekly-page__header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--border-light); }
.weekly-page__back { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 2px; display: flex; align-items: center; }
.weekly-page__title { font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.weekly-page__loading { padding: 40px; text-align: center; color: var(--text-muted); font-size: 14px; }

.weekly-fish-card { margin: 12px 14px 8px; display: flex; align-items: center; gap: 14px; background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.25); border-radius: var(--radius); padding: 14px; }
.weekly-fish-card__icon { font-size: 36px; flex-shrink: 0; }
.weekly-fish-card__title { font-size: 14px; font-weight: 600; color: var(--text); }
.weekly-fish-card__hint { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.weekly-fish-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.weekly-fish-card__bonus { background: rgba(251,191,36,.2); color: var(--warning); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.weekly-fish-card__days { font-size: 12px; color: var(--text-muted); }

.weekly-my-rank { margin: 0 14px 10px; display: flex; align-items: center; gap: 8px; background: rgba(34,197,94,.12); color: var(--success); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; }
.weekly-my-rank--none { background: rgba(100,116,139,.1); color: var(--text-muted); }

.weekly-board { margin: 0 14px; }
.weekly-board__label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; padding: 4px 0 8px; }
.weekly-board__empty { text-align: center; color: var(--text-muted); font-size: 14px; padding: 24px 0; line-height: 1.6; }

.weekly-entry { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); margin-bottom: 6px; background: var(--bg-warm); border: 1px solid var(--border-light); cursor: pointer; transition: background .15s; }
.weekly-entry:active { background: rgba(255,255,255,.05); }
.weekly-entry--me { border-color: rgba(34,197,94,.5); background: rgba(34,197,94,.08); }
.weekly-entry--podium { border-color: rgba(251,191,36,.3); }

.weekly-entry__rank { width: 28px; text-align: center; font-size: 20px; flex-shrink: 0; }
.weekly-entry__rank-num { font-size: 14px; font-weight: 700; color: var(--text-muted); }

.weekly-entry__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.weekly-entry__avatar img { width: 100%; height: 100%; object-fit: cover; }
.weekly-entry__avatar-stub { width: 100%; height: 100%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }

.weekly-entry__info { flex: 1; min-width: 0; }
.weekly-entry__name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weekly-entry__meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.weekly-entry__kg { text-align: end; flex-shrink: 0; }
.weekly-entry__kg-val { font-size: 17px; font-weight: 700; color: var(--text); }
.weekly-entry__kg-unit { font-size: 12px; color: var(--text-muted); margin-inline-start: 2px; }

.daily-widget__label { font-size: 13px; font-weight: 600; color: var(--text-dim); }



.orders-page { padding-bottom: 80px; }
























.status-new       { background: rgba(59,130,246,.12);   color: #3b82f6; }
.status-confirmed { background: rgba(34,197,94,.12);    color: #16a34a; }
.status-shipping  { background: rgba(249,115,22,.12);   color: #ea580c; }
.status-delivered { background: rgba(139,92,246,.12);   color: #7c3aed; }
.status-completed { background: rgba(34,197,94,.15);    color: #16a34a; }
.status-cancelled { background: rgba(239,68,68,.12);    color: var(--danger); }
.status-dispute   { background: rgba(234,179,8,.12);    color: #b45309; }
































.garant-pay-modal { max-width: 420px; }
.garant-pay-modal__header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.garant-pay-modal__header h3 { font-size: 17px; font-weight: 700; margin: 0; }
.garant-pay-modal__desc { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.5; }
.garant-pay-modal__amount { font-size: 32px; font-weight: 900; text-align: center; color: var(--primary); margin: 0 0 4px; }
.garant-pay-modal__purpose { font-size: 12px; color: var(--text-muted); text-align: center; margin: 0 0 16px; }
.garant-pay-modal__methods { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.garant-pay-method { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.garant-pay-method svg { flex-shrink: 0; color: var(--primary); }
.garant-pay-method__label { font-size: 12px; color: var(--text-muted); }
.garant-pay-method__value { font-size: 16px; font-weight: 700; }
.garant-pay-method__bank { font-size: 12px; color: var(--text-muted); }
.garant-copy-btn { margin-inline-start: auto; flex-shrink: 0; font-size: 12px; }
.garant-pay-modal__pending { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--card); border-radius: var(--radius-sm); font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.garant-pay-modal__tkassa { display: flex; align-items: center; gap: 8px; padding: 12px; background: rgba(59,130,246,.07); border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }
.garant-pay-modal__tkassa-hint { font-size: 12px; color: var(--text-muted); text-align: center; margin: 4px 0 12px; }



.garant-sbp-card { background: var(--card); border: 1.5px solid var(--primary); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.garant-sbp-card__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--primary); margin-bottom: 10px; }
.garant-sbp-card__phone { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: 1px; cursor: pointer; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.garant-sbp-card__copy { font-size: 12px; font-weight: 400; color: var(--primary); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.garant-sbp-card__bank { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.garant-sbp-card__divider { height: 1px; background: var(--border); margin-bottom: 12px; }
.garant-sbp-card__amount-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.garant-sbp-card__amount-label { font-size: 13px; color: var(--text-muted); }
.garant-sbp-card__amount { font-size: 20px; font-weight: 800; color: var(--text); }
.garant-sbp-card__steps { font-size: 12px; color: var(--text-muted); line-height: 1.8; background: var(--bg); border-radius: 8px; padding: 10px 12px; }


.garant-method-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius); cursor: pointer; text-align: start; transition: border-color 0.15s, background 0.15s; }
.garant-method-card:hover:not(:disabled) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.garant-method-card:disabled { opacity: 0.6; cursor: not-allowed; }
.garant-method-card__icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: var(--radius-sm); }
.garant-method-card__info { flex: 1; min-width: 0; }
.garant-method-card__title { font-size: 14px; font-weight: 700; color: var(--text); }
.garant-method-card__sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.garant-method-card__sub--fee { color: #d97706; }
.garant-method-card__amount { font-size: 16px; font-weight: 800; color: var(--primary); white-space: nowrap; }


.garant-pay-modal { padding: 20px !important; }

























































:root.dark .mkt-product-card,
:root.dark .mkt-seller-card,
:root.dark .mkt-seller-mini-card,
:root.dark .ord-card,
:root.dark .shop-product-card { background: var(--card); }
:root.dark .mkt-search-box,
:root.dark .mkt-filter-btn { background: var(--card); }

@media (prefers-color-scheme: dark) {
  :root:not(.light) .mkt-product-card,
  :root:not(.light) .mkt-seller-card,
  :root:not(.light) .ord-card { background: var(--card); }
}






















































































@media (min-width: 700px) {
  .lb-modal-overlay { align-items: center; justify-content: center; }
  .lb-modal { width: 500px; max-width: 92vw; border-radius: var(--radius-lg); max-height: 88vh; }
  .lb-modal-photo { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 300px; }
  .lb-modal-nophoto { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

























.flag-dialog-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,0.65); display: flex; align-items: center; justify-content: center; padding: 16px; }
.flag-dialog { background: var(--card); border-radius: var(--radius-lg); width: 100%; max-width: 400px; padding: 20px; box-shadow: 0 8px 40px rgba(0,0,0,0.45); }
.flag-dialog-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.flag-reasons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.flag-reason-label { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); cursor: pointer; font-size: 14px; color: var(--text); transition: border-color 0.15s; }
.flag-reason-label.flag-reason-active { border-color: var(--primary); background: rgba(41,128,185,0.09); }
.flag-reason-label input[type="radio"] { flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--primary); }
.flag-comment-input { width: 100%; border: 1.5px solid var(--border); border-radius: var(--input-radius); padding: 10px 12px; font-size: 13px; background: var(--bg); color: var(--text); resize: vertical; margin-bottom: 12px; box-sizing: border-box; outline: none; }
.flag-comment-input:focus { border-color: var(--primary); }
.flag-dialog-actions { display: flex; gap: 8px; }
.flag-dialog-cancel { flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: none; color: var(--text-dim); font-size: 14px; cursor: pointer; }
.flag-dialog-submit { flex: 2; }


.challenge-detail { padding: 0 14px 100px; }
.challenge-detail-badge { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); margin-bottom: 8px; }
.challenge-detail h2 { margin: 0 0 6px; font-size: 20px; }
.challenge-detail-desc { margin: 0 0 12px; font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.challenge-detail-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-dim); padding: 12px; background: var(--bg); border-radius: var(--radius); margin-bottom: 14px; }
.challenge-detail-meta div { display: flex; align-items: center; gap: 6px; }
.challenge-days-left { font-weight: 600; color: var(--primary) !important; }
.challenge-join-form { background: var(--card); border-radius: var(--radius); padding: 14px; border: 1px solid var(--border-light); margin-bottom: 18px; }
.challenge-join-form h3 { margin: 0 0 12px; font-size: 15px; }
.challenge-join-inputs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.challenge-join-inputs input { border: 1px solid var(--border); border-radius: var(--input-radius); padding: 10px 12px; font-size: 14px; background: var(--bg); color: var(--text); outline: none; }
.challenge-join-inputs input:focus { border-color: var(--primary); }
.challenge-leaderboard h3 { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-bottom: 4px; }
.challenge-type-badge { color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); }


.avatar-xs { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg-warm); color: var(--text-dim); font-size: 12px; font-weight: 600; flex-shrink: 0; }


.ch-meta-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.ch-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 10px; border-radius: var(--chip-radius); background: var(--bg); border: 1px solid var(--border-light); color: var(--text-dim); white-space: nowrap; }
.ch-chip-timer { color: var(--primary); border-color: rgba(41,128,185,0.3); font-weight: 600; }


.ch-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ch-title-row h2 { margin: 0; font-size: 20px; flex: 1; min-width: 0; }
.challenge-detail-badge { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); flex-shrink: 0; white-space: nowrap; }

















.ac-wrap { position: relative; }
.ac-wrap input { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: var(--input-radius); padding: 10px 12px; font-size: 14px; background: var(--bg); color: var(--text); outline: none; }
.ac-wrap input:focus { border-color: var(--primary); }
.ac-list { position: absolute; top: calc(100% + 2px); left: 0; right: 0; z-index: 200; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 6px 20px rgba(0,0,0,0.25); overflow: hidden; }
.ac-item { padding: 10px 14px; font-size: 13px; cursor: pointer; color: var(--text); }
.ac-item:hover, .ac-item:active { background: var(--bg); }

















.lbc-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

.lbc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.12s;
}
.lbc:active { background: var(--bg); }
.lbc-podium { border-color: rgba(251,191,36,0.4); }


.lbc-rank {
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  font-size: 20px;
  line-height: 1;
}
.lbc-rank-n {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}


.lbc-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.lbc-nophoto {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--bg);
}


.lbc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.lbc-top {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.lbc-av {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.lbc-av-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.lbc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}
.lbc-chip {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(41,128,185,0.12);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  white-space: nowrap;
}


.lbc-bot {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: nowrap;
  line-height: 1;
}
.lbc-bot b {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.lbc-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-inline-start: auto;
  line-height: 1;
}


.lbc-actions { display: none; }


.lbc-like {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dim);
  min-width: 28px;
  justify-content: center;
  transition: all 0.15s;
  line-height: 1;
  flex-shrink: 0;
}
.lbc-like.on {
  color: var(--danger);
  border-color: rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.07);
}
.lbc-flag {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
  opacity: 0.35;
  padding: 0;
  margin: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.lbc-flag:hover { opacity: 0.8; }
.lbc-flag.done { opacity: 0.15; cursor: default; }


.lbc-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  position: relative;
}
.lbc-icon-btn[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,20,20,0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}


.badge-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-info-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 28px 24px 20px;
  max-width: 320px;
  width: 88%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.badge-info-icon { font-size: 42px; margin-bottom: 10px; line-height: 1; }
.badge-info-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.badge-info-desc { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin-bottom: 20px; }
.badge-info-close {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}


.ch-chip-prize {
  background: rgba(251,191,36,0.15);
  color: #d97706;
  border: 1px solid rgba(251,191,36,0.3);
  font-weight: 700;
}


.ch-prize-block {
  background: rgba(251,191,36,0.07);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 12px;
}
.ch-prize-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.ch-prize-places {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ch-prize-place {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ch-prize-medal { font-size: 20px; line-height: 1; flex-shrink: 0; }
.ch-prize-label { font-size: 13px; color: var(--text-dim); flex: 1; }
.ch-prize-amount { font-size: 14px; font-weight: 700; color: #d97706; }
.ch-prize-total { font-size: 18px; font-weight: 700; color: #d97706; margin-bottom: 4px; }
.ch-prize-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }


@media (min-width: 600px) {
  .loc-picker-overlay { align-items: center; justify-content: center; }
  .loc-picker-modal { width: 520px; max-width: 92vw; border-radius: var(--radius-lg); }
}






.challenge-demo-badge {
  font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-xs);
  background: rgba(148,163,184,0.15); color: #94a3b8; border: 1px solid rgba(148,163,184,0.3);
  letter-spacing: 0.03em; text-transform: uppercase;
}
.challenges-filter-finished {
  display: flex; align-items: center; gap: 7px; font-size: 13px;
  color: var(--text-muted); margin: 0 0 12px; cursor: pointer; user-select: none;
}
.challenges-filter-finished input[type="checkbox"] { accent-color: var(--toggle-accent); width: 15px; height: 15px; }
.cta-organize-btn {
  background: rgba(41,128,185,0.15);
  border: 1px solid rgba(41,128,185,0.35);
  color: var(--primary);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-inline-start: auto;
  white-space: nowrap;
  transition: background 0.15s;
}
.cta-organize-btn:hover { background: rgba(41,128,185,0.25); }



@media (min-width: 600px) {
  .crtm-overlay { align-items: center; }
  .crtm-modal { border-radius: var(--radius-xl) !important; max-height: 88vh; }
}











































.games-section {
  width: 100%;
  box-sizing: border-box;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px;
}
.games-section-header { margin-bottom: 10px; }
.games-section-title { font-size: 14px; font-weight: 700; color: var(--text); display: block; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.4px; }
.games-section-sub { font-size: 12px; color: var(--text-muted); }





.bm-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-bg);
  color: var(--primary);
}
.bm-body { flex: 1; min-width: 0; }
.bm-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.bm-desc { font-size: 12px; color: var(--text-dim); line-height: 1.3; }
.bm-arrow { font-size: 18px; color: var(--text-muted); }
.bm-badge {
  font-size: 12px; font-weight: 700;
  background: rgba(150,150,150,0.15); color: var(--text-muted);
  border-radius: var(--radius-xs); padding: 3px 8px;
}











.gear-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; flex: 1; }
.gear-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 2px solid var(--border-light);
  border-radius: var(--radius); padding: 12px;
  cursor: pointer; text-align: start; width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.gear-card--selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.gear-card-emoji { font-size: 24px; width: 40px; text-align: center; flex-shrink: 0; }
.gear-card-body { flex: 1; min-width: 0; }
.gear-card-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.gear-card-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.gear-card-stats { display: flex; gap: 8px; }
.gear-stat { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-xs); }
.gear-stat--atk { background: rgba(59,130,246,0.12); color: #60a5fa; }
.gear-stat--def { background: rgba(16,185,129,0.12); color: #34d399; }









@keyframes battleSpin { 0%{transform:rotate(-20deg)} 50%{transform:rotate(20deg)} 100%{transform:rotate(-20deg)} }
















.gear-slot-atk { color: #60a5fa; }
.gear-slot-def { color: #34d399; }




.res-hit { color: var(--success); }
.res-miss { color: var(--text-muted); }
.res-dmg { color: var(--danger); }
.res-block { color: #60a5fa; }


.zone-info-table {
  margin: 4px 16px 8px;
  background: var(--card); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 12px;
}
.zone-info-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--border-light); }
.zone-info-row:last-child { border: none; }
.zone-info-fish { flex: 1; color: var(--text-muted); }
.zone-info-dmg { color: var(--danger); font-weight: 700; }




.bz--atk { border-color: #3b82f6; background: rgba(59,130,246,0.08); }
.bz--def { border-color: #10b981; background: rgba(16,185,129,0.08); }
.bz--hit { border-color: var(--success); background: rgba(74,222,128,0.10); }
.bz--gothit { border-color: var(--danger); background: rgba(248,113,113,0.08); }

.bz-top { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.bz-emoji { font-size: 18px; }
.bz-name { font-size: 14px; font-weight: 700; color: var(--text); flex: 1; }
.bz-opp-atk { font-size: 14px; color: var(--danger); }
.bz-opp-def { font-size: 14px; color: #34d399; }
.bz-fish { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

.bz-actions { display: flex; gap: 8px; }
.bz-btn {
  flex: 1; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  border: 1.5px solid; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: background 0.12s, color 0.12s;
}
.bz-btn--atk { border-color: rgba(59,130,246,0.35); color: #60a5fa; background: rgba(59,130,246,0.07); }
.bz-btn--atk.bz-btn--on { background: rgba(59,130,246,0.20); border-color: #3b82f6; color: #93c5fd; }
.bz-btn--def { border-color: rgba(16,185,129,0.35); color: #34d399; background: rgba(16,185,129,0.07); }
.bz-btn--def.bz-btn--on { background: rgba(16,185,129,0.20); border-color: #10b981; color: #6ee7b7; }
.bz-btn:disabled { opacity: 0.3; cursor: not-allowed; }











.bcc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.bcc-emoji { font-size: 28px; flex-shrink: 0; }
.bcc-info { flex: 1; min-width: 0; }
.bcc-name { font-size: 15px; font-weight: 800; color: var(--text); }
.bcc-level { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.bcc-reset-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; }
.bcc-xp-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.bcc-points-badge { font-size: 12px; font-weight: 700; color: var(--warning); background: rgba(251,191,36,0.12); border-radius: 8px; padding: 2px 8px; }
.bcc-alloc-hint { font-size: 12px; font-weight: 600; color: var(--warning); background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25); border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; }
.bcc-stats { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 8px; }
.bcc-stat-row { display: flex; align-items: center; gap: 7px; }
.bcc-stat-label { width: 80px; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.bcc-stat-bar-wrap { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; position: relative; overflow: hidden; }
.bcc-stat-bar-base { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg,#4caf7a,#7fc97a); border-radius: 3px; transition: width 0.3s; }
.bcc-stat-bar-gear { position: absolute; top: 0; bottom: 0; background: rgba(163,233,192,0.7); border-radius: 3px; transition: width 0.3s, left 0.3s; }
.bcc-stat-val { font-size: 13px; font-weight: 700; color: var(--text); min-width: 18px; text-align: end; }
.bcc-gear-bonus { font-size: 12px; font-weight: 700; color: #86efac; min-width: 24px; text-align: start; cursor: help; }
.bcc-stat-plus { background: var(--primary); color: #000; border: none; border-radius: var(--radius-xs); width: 26px; height: 26px; font-size: 18px; font-weight: 900; cursor: pointer; line-height: 1; flex-shrink: 0; }
.bcc-reset-section { border-top: 1px solid var(--border-light); padding-top: 12px; margin-top: 8px; }
.bcc-reset-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.bcc-reset-cost { font-size: 13px; color: var(--warning); margin-bottom: 10px; }
.bcc-reset-cooldown { font-size: 13px; color: var(--danger); }












.bp-avatar { font-size: 28px; flex-shrink: 0; line-height: 1; padding-top: 2px; }
.bp-info { flex: 1; min-width: 0; }
.bp-info--right { text-align: end; }
.bp-name { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp-level { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.bp-hp { font-size: 12px; color: var(--text-muted); margin-top: 2px; font-weight: 600; }



.bz--both { border-color: var(--warning) !important; background: rgba(245,158,11,0.08) !important; }
.bz--both .bz-name::after { content: ' ⚔🛡'; font-size: 10px; }
.bz-opp-hints { display: flex; gap: 3px; font-size: 11px; margin-inline-start: auto; }
.bz-opp-atk { color: var(--danger); }
.bz-opp-def { color: #60a5fa; }









.blr-header { font-size: 12px; font-weight: 700; color: var(--text-muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.blr-line { font-size: 12px; color: var(--text-dim); line-height: 1.5; padding: 1px 0; }
.blr-line--hit { color: var(--success); }
.blr-line--miss { color: var(--text-muted); }
.blr-line--block { color: #60a5fa; }
.zone-info-hint { font-size: 12px; color: var(--text-muted); padding: 6px 8px 0; font-style: italic; }


.bfp { display: flex; align-items: flex-start; gap: 6px; flex: 1; min-width: 0; }
.bfp--opp { flex-direction: row-reverse; }
.bfp-emoji { font-size: 24px; flex-shrink: 0; }
.bfp-body { flex: 1; min-width: 0; }
.bfp-body--right { text-align: end; }
.bfp-name { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.bfp-name strong { color: var(--text); }
.bfp-barwrap { height: 6px; background: var(--border-light); border-radius: 4px; overflow: hidden; margin-bottom: 2px; }
.bfp-bar { height: 100%; border-radius: 4px; transition: width 0.3s; }
.bfp-hp { font-size: 12px; color: var(--text-muted); }
.bfb-hit { color: var(--success); font-weight: 600; }
.bfb-miss { color: var(--text-muted); }
.bfb-dmg { color: var(--danger); font-weight: 600; }
.bfb-block { color: #60a5fa; }
.bfb-sep { color: var(--text-muted); }
.bfb-round { color: var(--text-muted); font-size: 12px; margin-inline-start: auto; }


.bzone-btn--a:not(.on):not(:disabled):hover { border-color: #3b82f6; color: #3b82f6; }
.bzone-btn--d:not(.on):not(:disabled):hover { border-color: #059669; color: #059669; }











.bfighter-bot-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; letter-spacing: 4px; opacity: 0.12;
  pointer-events: none; user-select: none;
  flex-wrap: wrap; padding: 8px;
}









@media (min-width: 768px) {
  .bfight-bottom-zone,
  .battle-result-actions {
    bottom: 0;
    left: max(calc((100vw - 900px) / 2 + 220px), 220px);
    right: max(calc((100vw - 900px) / 2), 0px);
    z-index: 200;
  }
  .battle-scroll-area,
  .battle-scroll-area--result {
    padding-bottom: 60px;
  }
}

@media (min-width: 1200px) {
  .bfight-bottom-zone,
  .battle-result-actions {
    left: max(calc((100vw - 1060px) / 2 + 220px), 220px);
    right: max(calc((100vw - 1060px) / 2 + 260px), 260px);
  }
}




.bres-hero { text-align: center; padding: 28px 16px 16px; display: flex; flex-direction: column; align-items: center; }
.bres-icon { font-size: 72px; line-height: 1.1; margin-bottom: 10px; }
.bres-title { font-size: 42px; font-weight: 900; margin-bottom: 8px; }
.bres-win { color: var(--warning); text-shadow: 0 0 20px rgba(251,191,36,0.4); }
.bres-draw { color: var(--text-muted); }
.bres-loss { color: var(--danger); }
.bres-xp { font-size: 18px; color: var(--warning); font-weight: 700; margin-bottom: 4px; }
.bres-record { font-size: 12px; color: var(--text-muted); }
.bres-btns { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 8px; }


.bfml-round { display: flex; align-items: flex-start; gap: 6px; padding: 2px 0; }
.bfml-rnd { color: #a78bfa; font-weight: 800; font-size: 12px; flex-shrink: 0; padding-top: 2px; min-width: 24px; }
.bfml-lines { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.bfml-hit   { font-size: 12px; color: #86efac; line-height: 1.35; }
.bfml-miss  { font-size: 12px; color: var(--text-muted); opacity: 0.75; line-height: 1.35; }
.bfml-dmg   { font-size: 12px; color: #fca5a5; line-height: 1.35; }
.bfml-guard { font-size: 12px; color: #93c5fd; line-height: 1.35; }


.bchron { margin: 4px 12px 8px; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden; }
.bchron-title { font-size: 12px; font-weight: 700; color: var(--text-muted); padding: 8px 12px 6px; border-bottom: 1px solid var(--border-light); letter-spacing: 0.5px; text-transform: uppercase; }
.bchron-round { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.bchron-round:last-child { border-bottom: none; }

.bchron-rnd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.bchron-rnd-num { font-size: 12px; font-weight: 800; color: #a78bfa; letter-spacing: 0.5px; }
.bchron-hp { font-size: 12px; display: flex; align-items: center; gap: 2px; }
.bchron-hp-me { color: var(--success); font-weight: 600; }
.bchron-hp-opp { color: var(--danger); font-weight: 600; }
.bchron-hp-sep { color: var(--text-muted); }

.bchron-row { display: flex; align-items: center; gap: 4px; padding: 2px 0; font-size: 12px; flex-wrap: wrap; }
.bchron-ico { font-size: 13px; flex-shrink: 0; width: 18px; text-align: center; }
.bchron-actor { font-weight: 700; color: var(--text); flex-shrink: 0; }
.bchron-arrow { color: var(--text-muted); flex-shrink: 0; font-size: 12px; }
.bchron-zone { color: var(--text-muted); flex: 1; min-width: 80px; }
.bchron-result { font-size: 12px; font-weight: 700; flex-shrink: 0; border-radius: 4px; padding: 1px 6px; }
.bchron-result--hit   { color: #86efac; background: rgba(74,222,128,0.12); }
.bchron-result--block { color: var(--text-muted); background: rgba(255,255,255,0.05); }
.bchron-result--dmg   { color: #fca5a5; background: rgba(248,113,113,0.12); }
.bchron-result--guard { color: #93c5fd; background: rgba(96,165,250,0.10); }

.bchron-row--myhit .bchron-narrative   { color: #86efac; }
.bchron-row--opphit .bchron-narrative  { color: #fca5a5; }
.bchron-row--mymiss .bchron-narrative  { color: var(--text-muted); opacity: 0.75; }
.bchron-row--oppmiss .bchron-narrative { color: #93c5fd; }
.bchron-row--neutral .bchron-narrative { color: var(--text-muted); font-style: italic; }
.bchron-narrative { font-size: 12px; line-height: 1.5; }












.create-ai-disabled {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius);
  border: 1px dashed var(--border); background: var(--card);
  color: var(--text-muted); font-size: 14px;
  pointer-events: none; opacity: 0.65;
}
.create-ai-badge {
  margin-inline-start: auto; font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-xs);
  background: rgba(255,255,255,0.08); color: var(--text-dim);
  letter-spacing: 0.3px;
}






















@media (min-width: 640px) {
  .create-preview-overlay { align-items: center; justify-content: center; }
}

@media (min-width: 640px) {
  .create-preview-modal { border-radius: var(--radius-lg); max-width: 420px; max-height: 80vh; }
}














.cp-preview-single { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.cp-preview-mosaic { display: flex; gap: 4px; border-radius: var(--radius-sm); overflow: hidden; }
.cp-preview-mosaic-img { flex: 1; height: 200px; object-fit: cover; }
.cp-preview-grid { display: grid; gap: 4px; border-radius: var(--radius-sm); overflow: hidden; }
.cp-preview-grid--1 { grid-template-columns: 1fr; }
.cp-preview-grid--2 { grid-template-columns: 1fr 1fr; }
.cp-preview-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.cp-preview-grid img { width: 100%; height: 140px; object-fit: cover; }
.cp-preview-carousel { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.cp-preview-carousel-img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.cp-preview-carousel-dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 4px; position: absolute; bottom: 0; left: 0; right: 0; }
.cp-preview-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; border: none; padding: 0; }
.cp-preview-dot.active { background: #fff; }
.cp-prev-btn, .cp-next-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.cp-prev-btn { left: 8px; }
.cp-next-btn { right: 8px; }


.ep-layout { border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.ep-photo {
  position: relative; overflow: hidden; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s;
}
.ep-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-photo--over { outline: 2px dashed var(--primary); }
.ep-remove {
  position: absolute; top: 5px; right: 5px; z-index: 5;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.65); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ep-grip {
  position: absolute; top: 5px; left: 5px; z-index: 5;
  width: 22px; height: 22px; border-radius: var(--radius-xs);
  background: rgba(0,0,0,0.55); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.ep-grip:active { cursor: grabbing; }
.ep-edit-frame {
  position: absolute; bottom: 5px; right: 5px; z-index: 5;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.55); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}



.ep-layout:has(.ep-photo:only-child) .ep-photo { aspect-ratio: auto; background: var(--bg); }
.ep-layout:has(.ep-photo:only-child) .ep-photo img {
  width: 100%; height: auto; max-height: 480px; object-fit: contain;
}


.ep-grid.ep-grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ep-grid.ep-grid--2 .ep-photo { aspect-ratio: 3 / 4; }


.ep-grid.ep-grid--3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2px; }
.ep-grid.ep-grid--3 .ep-photo { aspect-ratio: 1; }


.ep-grid.ep-grid--4 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ep-grid.ep-grid--4 .ep-photo { aspect-ratio: 1; }


.ep-mosaic.ep-mosaic--3 { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; height: 280px; }
.ep-mosaic.ep-mosaic--3 .ep-photo:first-child { grid-row: 1 / 3; }


.ep-mosaic.ep-mosaic--4 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ep-mosaic.ep-mosaic--4 .ep-photo { aspect-ratio: 1; }


.ep-carousel { position: relative; }
.ep-carousel .ep-photo { aspect-ratio: 4 / 3; }
.ep-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0; z-index: 4;
  display: flex; justify-content: center; gap: 5px; pointer-events: none;
}
.ep-carousel-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  pointer-events: all; padding: 0;
}
.ep-carousel-dot.active { background: #fff; }
.ep-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  background: rgba(0,0,0,0.45); color: #fff; border: none;
  width: 32px; height: 32px; border-radius: 50%; font-size: 20px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.ep-carousel-arrow--l { left: 8px; }
.ep-carousel-arrow--r { right: 8px; }










.catch-mini-table {
  position: relative;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg);
}
.catch-mini-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.catch-mini-table td { padding: 5px 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.catch-mini-table td:first-child { color: var(--text-muted); width: 50%; }
.catch-mini-table tr:last-child td { border-bottom: none; }
.catch-mini-remove {
  position: absolute; top: 5px; right: 5px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: none;
  color: var(--text-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
















































@media (min-width: 768px) {
  .peditor-layout {
    display: grid;
    grid-template-areas: "header header" "photo tabs" "panel panel";
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr 150px;
    flex-direction: unset; flex-wrap: unset;
  }
  .peditor-header { grid-area: header; width: auto; }
  .peditor-photo-area { grid-area: photo; }
  .peditor-tabs {
    grid-area: tabs; width: auto; display: flex; flex-direction: column;
    border-inline-start: 1px solid rgba(255,255,255,0.08); border-top: none;
    overflow-y: auto;
  }
  .peditor-tab { flex-direction: row; justify-content: flex-start; height: 44px; padding: 0 12px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .peditor-panel { grid-area: panel; width: auto; max-height: 180px; border-top: 1px solid rgba(255,255,255,0.08); overflow-y: auto; }
}































































































.create-mobile-bar {
  display: none;
  position: sticky; top: 0; z-index: 90;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 8px 14px; justify-content: flex-end; align-items: center; gap: 8px;
}
@media (max-width: 767px) {
  .create-mobile-bar { display: flex; }
}


.create-publish-btn {
  height: 34px; padding: 0 16px; border-radius: var(--radius-sm);
  background: var(--primary); color: var(--bg);
  font-size: 14px; font-weight: 700; border: none;
  cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}
.create-publish-btn:disabled { opacity: 0.55; cursor: not-allowed; }






















































.create-media-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.create-media-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--chip-radius);
  border: 1.5px solid var(--border); background: var(--card);
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}





.create-counters-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.create-counter-col {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.create-counter-lbl {
  font-size: 12px; color: var(--text-muted); text-align: center; white-space: nowrap;
}

















@media (max-width: 600px) {
  .create-weather-chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  }
  .create-weather-chips::-webkit-scrollbar { display: none; }
}


























.post-mosaic-grid {
  display: grid; gap: 3px; overflow: hidden;
  border-radius: var(--radius-xs);
}
.post-mosaic-grid--2 { grid-template-columns: 1fr 1fr; }
.post-mosaic-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.post-mosaic-grid-item { overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.post-mosaic-grid-item img,
.post-mosaic-grid-item video { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-mosaic-grid--3:has(.post-mosaic-grid-item:nth-child(4)) {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
}


.post-mosaic-carousel { position: relative; overflow: hidden; border-radius: var(--radius-xs); }
.post-mosaic-carousel-slide { cursor: pointer; }
.post-mosaic-carousel-slide img,
.post-mosaic-carousel-slide video { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.post-mosaic-carousel-dots {
  display: flex; justify-content: center; gap: 5px;
  position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2;
}
.post-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: none; cursor: pointer; padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.post-carousel-dot.active { background: #fff; transform: scale(1.3); }
.post-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; -webkit-tap-highlight-color: transparent;
}
.post-carousel-arrow--prev { left: 10px; }
.post-carousel-arrow--next { right: 10px; }




input[type=range].ref-calc-slider { height: 24px; }
input[type=range].ref-calc-slider::-webkit-slider-runnable-track { height: 6px; border-radius: var(--radius-xs); background: linear-gradient(to right, var(--primary) var(--pct, 50%), var(--border-light) var(--pct, 50%)); }
input[type=range].ref-calc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(0,0,0,0.25); margin-top: -7px; }
input[type=range].ref-calc-slider::-moz-range-track { height: 6px; border-radius: var(--radius-xs); background: var(--border-light); }
input[type=range].ref-calc-slider::-moz-range-progress { height: 6px; border-radius: var(--radius-xs); background: var(--primary); }
input[type=range].ref-calc-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid var(--card); box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
input[type=range].ref-calc-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--primary-light), 0 1px 4px rgba(0,0,0,0.25); }


.community-widget {  }




:root[data-theme="light"] {
  --bg:             #f4f1ec;
  --bg-warm:        #ede9e3;
  --card:           #fefcf8;
  --text:           #2c2825;
  --text-dim:       #5a5550;
  --text-muted:     #8a837a;
  --border:         #dbd5cc;
  --border-light:   #e8e3dc;
  --primary:        #5a8a56;
  --primary-dark:   #497847;
  --primary-light:  rgba(90,138,86,0.15);
  --primary-bg:     rgba(90,138,86,0.09);
  --accent:         #5a8a56;
  --accent-dark:    #497847;
  --accent-light:   rgba(90,138,86,0.15);
  --orange:         #a87438;
  --orange-light:   rgba(168,116,56,0.14);
  --danger:         #b04c4c;
  --danger-light:   rgba(176,76,76,0.14);
  --success:        #5a8a56;
  --success-light:  rgba(90,138,86,0.14);
  --warning:        #a87438;
  --bg-input:       #ffffff;
  --bg-skeleton:    #e8e3dc;
  --bg-header:      rgba(244,241,236,0.97);
  --bg-tabbar:      rgba(244,241,236,0.98);
  --bg-tabbar-float: rgba(250,248,244,0.55);
  --scrim-tab: rgba(246,243,238,0.78);
  --scrim-top: rgba(246,243,238,0.92);
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 6px 24px rgba(0,0,0,0.13);
  --sidebar-bg:         #eae6e0;
  --sidebar-text:       #3a3530;
  --sidebar-text-hover: #1a1512;
  --sidebar-active:     #5a8a56;
  --sidebar-border:     #d5d0c8;
  --sidebar-surface:    #e4e0da;
}
:root[data-theme="light"] .skeleton-avatar,
:root[data-theme="light"] .skeleton-line { background: #dbd5cc; }

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea { background: var(--input-bg); color: var(--input-text); border-color: var(--input-border); }
:root[data-theme="light"] input:focus,
:root[data-theme="light"] select:focus,
:root[data-theme="light"] textarea:focus { border-color: var(--input-border-focus); }
:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder { color: var(--text-muted); }


:root[data-theme="night"] {
  --bg:             #0c1016;
  --bg-warm:        #101620;
  --card:           #141c28;
  --text:           #ccd6e0;
  --text-dim:       #91a4bb;
  --text-muted:     #4a6a90;
  --border:         #1c2d44;
  --border-light:   #162238;
  --primary:        #3d9e8a;
  --primary-dark:   #30897a;
  --primary-light:  rgba(61,158,138,0.18);
  --primary-bg:     rgba(61,158,138,0.10);
  --accent:         #3d9e8a;
  --accent-dark:    #30897a;
  --accent-light:   rgba(61,158,138,0.18);
  --orange:         #c98a55;
  --orange-light:   rgba(201,138,85,0.15);
  --danger:         #c07272;
  --danger-light:   rgba(192,114,114,0.15);
  --success:        #3d9e8a;
  --success-light:  rgba(61,158,138,0.15);
  --warning:        #c98a55;
  --bg-input:       #0e1a2a;
  --bg-skeleton:    #141c28;
  --bg-header:      rgba(6,10,16,0.97);
  --bg-tabbar:      rgba(4,8,14,0.98);
  --bg-tabbar-float: rgba(7,12,20,0.42);
  --scrim-tab: rgba(3,7,12,0.72);
  --scrim-top: rgba(3,7,12,0.88);
  --shadow-xs:  0 1px 0 rgba(0,0,0,0.6);
  --shadow:     0 2px 16px rgba(0,0,0,0.65);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.72);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.82);
  --sidebar-bg:         #0e1620;
  --sidebar-text:       #7aa0cc;
  --sidebar-text-hover: #dbe4ee;
  --sidebar-active:     #3d9e8a;
  --sidebar-border:     #1c2d44;
  --sidebar-surface:    #101820;
}
:root[data-theme="night"] .skeleton-avatar,
:root[data-theme="night"] .skeleton-line { background: #1c2d44; }
:root[data-theme="night"] input,
:root[data-theme="night"] select,
:root[data-theme="night"] textarea { background: var(--bg-input); color: var(--text); border-color: var(--border); }
:root[data-theme="night"] input:focus,
:root[data-theme="night"] select:focus,
:root[data-theme="night"] textarea:focus { background: #102030; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
:root[data-theme="night"] input::placeholder,
:root[data-theme="night"] textarea::placeholder { color: #3a5a78; }


.avatar-dd-theme-row {
  display: flex; gap: 5px; padding: 8px 12px;
}
.avatar-dd-theme-btn {
  flex: 1; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px;
  padding: 7px 2px; border-radius: var(--radius-xs);
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer; font-size: 12px;
  transition: all 0.15s; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.avatar-dd-theme-btn.active {
  background: var(--primary-light); border-color: var(--sel-line); color: var(--text);
}
.avatar-dd-theme-btn:hover:not(.active) { background: var(--bg-warm); color: var(--text-dim); }


.header-theme-btn { flex-shrink: 0; }



.ai-chat-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}


.app-header--chat-hidden { display: none !important; }

.app-layout:has(.app-header--chat-hidden) { padding-top: 0 !important; }

@media (max-width: 767px) {
  .app-main:has(.ai-chat-page, .chat-view) {
    display: flex;
    flex-direction: column;
    overflow: hidden;          
  }
  .ai-chat-page {
    flex: 1 1 auto;
    min-height: 0;
  }
  
  .app-header--chat-hidden { display: none !important; }
  
  .chat-view {
    position: fixed;
    top: 0; left: 0; right: 0;
    
    height: calc(100dvh - var(--tab-height) - env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column;
    z-index: 600;
    background: var(--bg);
  }
  
  .chat-view .chat-view-header { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .chat-input-bar { padding-bottom: 10px; }
}

@media (min-width: 768px) {
  
  .desktop-layout:has(.ai-chat-page, .chat-view) {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
  }
  .desktop-layout:has(.ai-chat-page, .chat-view) .desktop-left-sidebar,
  .desktop-layout:has(.ai-chat-page, .chat-view) .desktop-right-sidebar {
    
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }
  .app-main.desktop-center:has(.ai-chat-page, .chat-view) {
    height: calc(100vh - 64px);
    overflow: hidden;
    padding: 0;
  }
  
  .ai-chat-page {
    height: calc(100vh - 64px);
    min-height: 0;
    max-width: none;   
  }
}
.ai-chat-context {
  padding: 6px 16px 4px;
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.ai-chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px 4px;
  -webkit-overflow-scrolling: touch;
}
.ai-msg { display: flex; margin-bottom: 12px; }
.ai-msg--user { justify-content: flex-end; }
.ai-msg--assistant { justify-content: flex-start; }
.ai-msg-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-inline-end: 8px;
}
.ai-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.ai-bubble--user {
  background: var(--primary); color: var(--btn-text);
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
}
.ai-bubble--assistant {
  background: var(--card); color: var(--text);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
}
.ai-bubble strong { font-weight: 700; }
.ai-chat-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 4px 14px 8px;
  flex-shrink: 0;
}
.ai-chip {
  font-size: 12.5px; padding: 7px 12px;
  border-radius: var(--radius-lg);
  background: var(--card); color: var(--text-dim);
  border: 1px solid var(--border);
  cursor: pointer; line-height: 1.2;
  transition: background .15s, color .15s;
}
.ai-chip:hover { background: var(--bg-warm); color: var(--text); }
.ai-chat-input {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 8px 12px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-chat-input textarea {
  flex: 1; resize: none;
  min-height: 44px;          
  max-height: 120px;
  border-radius: var(--radius);
  padding: 10px 14px; font-size: 14px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit; line-height: 1.4;
}
.ai-send-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ai-send-btn:disabled { opacity: 0.4; cursor: default; }




.geo-ico {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 1px solid var(--border-light); background: var(--bg-warm);
}
.geo-ico--sm { width: 34px; height: 34px; }
.geo-ico--coa { background: #fff; object-fit: contain; padding: 3px; }
.geo-ico--ph { display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-muted); }
.geo-ico--sm.geo-ico--ph { font-size: 14px; }

.geo-flag, .geo-coa { width: 54px; height: 36px; border-radius: var(--radius-xs); object-fit: contain; flex-shrink: 0; border: 1px solid var(--border-light); }
.geo-coa { background: #fff; padding: 3px; }

.group-card {
  display: flex; gap: 12px; align-items: center; padding: 12px;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); margin-bottom: 8px; text-decoration: none; color: inherit;
}
.group-card:active { background: var(--bg-warm); }
.group-card__title { font-weight: 700; font-size: 15px; color: var(--text); }
.group-card__meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; margin-top: 3px; flex-wrap: wrap; }
.group-avatar { width: 48px; height: 48px; border-radius: var(--radius); object-fit: cover; flex-shrink: 0; }

.group-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-muted); padding: 8px 16px; }
.group-crumbs a { color: var(--primary); text-decoration: none; }

.group-role-badge {
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--primary-bg); color: var(--primary);
}

.group-unread-badge {
  flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; background: var(--primary); color: var(--btn-text);
  font-size: 12px; font-weight: 800; line-height: 1;
}


.group-menu-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; box-sizing: border-box;
  padding: 13px 14px; border: none; border-radius: var(--radius);
  background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 500;
  text-align: start; cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.group-menu-item:active { background: var(--bg-warm); }
.group-menu-item > svg { color: var(--text-muted); flex-shrink: 0; }
.group-menu-item--danger { color: var(--danger); }
.group-menu-item--danger > svg { color: var(--danger); }


.group-reply-quote {
  display: flex; flex-direction: column; gap: 1px;
  border-inline-start: 3px solid var(--primary);
  background: var(--primary-bg);
  border-radius: 0 8px 8px 0;
  padding: 4px 10px; margin: 0 0 7px; max-width: 100%; overflow: hidden;
}
.group-reply-quote .grq-name,
.group-reply-bar .grq-name {
  font-size: 12.5px; font-weight: 700; color: var(--primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.group-reply-quote .grq-text {
  font-size: 12.5px; color: var(--text-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; white-space: normal; overflow-wrap: anywhere;
}

.group-reply-bar .grq-text {
  font-size: 12.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.group-reply-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 12px 8px;
}
.group-reply-bar .grq-bar-body {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  border-inline-start: 3px solid var(--primary); padding-inline-start: 8px; line-height: 1.2;
}


.voice-player {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-pill); padding: 6px 12px 6px 6px; max-width: 100%; margin-top: 4px;
}
.voice-play-btn {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; border: none;
  background: var(--primary); color: var(--btn-text);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.voice-wave { display: flex; align-items: center; gap: 2px; height: 26px; flex: 1; min-width: 90px; overflow: hidden; }
.voice-wbar { width: 3px; border-radius: 2px; background: var(--border); flex-shrink: 0; transition: background .1s; }
.voice-wbar.on { background: var(--primary); }
.voice-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.voice-rec {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  font-size: 14px; color: var(--text); padding: 0 6px;
}
.voice-rec-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--danger); flex-shrink: 0;
  animation: voice-blink 1s ease-in-out infinite;
}
@keyframes voice-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.voice-rec-time { flex-shrink: 0; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text-muted); }

.voice-live-wave {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end;
  gap: 2px; height: 26px; overflow: hidden;
}
.voice-live-bar { width: 3px; border-radius: 2px; background: var(--primary); flex-shrink: 0; }
.voice-live-hint { font-size: 12px; color: var(--text-muted); margin: auto; }


.voice-trim { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 6px 4px; }
.voice-trim-wave { position: relative; height: 42px; touch-action: none; user-select: none; border-radius: 8px; overflow: hidden; }
.vt-bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; gap: 2px; padding: 0 10px; }
.vt-bar { flex: 1; min-width: 2px; border-radius: 2px; background: var(--border); }
.vt-bar.on { background: var(--primary); }
.vt-dim { position: absolute; top: 0; bottom: 0; background: var(--bg); opacity: 0.55; z-index: 2; pointer-events: none; }
.vt-playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); z-index: 4; pointer-events: none; }

.vt-cursor { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--primary); z-index: 3; pointer-events: none; }
.vt-cursor::before { content: ''; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

.vt-zoom-btn { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--text-dim); cursor: pointer; }
.vt-zoom-btn.active { background: var(--primary-light); color: var(--text); border-color: var(--sel-line); }
.vt-zoom-hint { font-size: 12px; color: var(--text-muted); padding: 2px 2px 0; }
.voice-trim-wave { cursor: text; }
.vt-handle { position: absolute; top: 0; bottom: 0; width: 16px; margin-inline-start: -8px; z-index: 5; cursor: ew-resize; touch-action: none; display: flex; align-items: center; justify-content: center; }
.vt-handle::before { content: ''; width: 4px; height: 62%; border-radius: 3px; background: var(--primary); box-shadow: 0 0 0 2px var(--bg); }
.voice-play-btn--sm { width: 30px; height: 30px; }
.voice-trim-ctl { display: flex; align-items: center; gap: 10px; }


.group-thread-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  text-decoration: none; color: inherit;
}
.group-thread-item:active { background: var(--bg-warm); }
.group-thread-title { font-weight: 600; font-size: 14.5px; color: var(--text); }
.group-thread-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.thread-pin { color: var(--primary); font-weight: 700; }


.thread-msg { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.thread-msg--reply { margin-inline-start: 34px; }
.thread-msg__body { flex: 1; min-width: 0; }
.thread-msg__name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.thread-msg__text { font-size: 14px; line-height: 1.5; margin: 3px 0 0; white-space: pre-wrap; word-break: break-word; }


.group-manage-section {
  padding: 16px; background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius); margin-bottom: 10px;
}
.gm-field { margin-bottom: 12px; }
.gm-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 5px; }
.gm-input, .gm-textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
}
.gm-textarea { resize: vertical; min-height: 70px; }
.gm-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; }
.gm-toggle-row span { font-size: 13.5px; color: var(--text); }
.gm-revenue-balance { font-size: 26px; font-weight: 800; color: var(--primary); }
.gm-deal-row { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.gm-deal-status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); white-space: nowrap; }
.gm-deal-status--paid { background: rgba(34,197,94,0.15); color: var(--success); }
.gm-deal-status--pending { background: rgba(234,179,8,0.15); color: #eab308; }
.gm-deal-status--cancelled { background: rgba(148,148,148,0.15); color: var(--text-muted); }


.events-tourn-cta {
  display: flex; align-items: center; gap: 12px; width: calc(100% - 32px);
  margin: 8px 16px 0; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--primary); border-radius: var(--radius);
  background: var(--primary-bg); color: var(--text);
  font-size: 14px; text-align: start; font-family: inherit;
}
.events-tourn-cta svg { color: var(--primary); flex-shrink: 0; }
.events-tourn-cta:active { background: var(--primary-light); }


.group-fab {
  position: fixed; right: 18px; bottom: calc(var(--bottom-nav-height) + 16px);
  width: 52px; height: 52px; border-radius: 50%; background: var(--primary);
  color: #fff; border: none; cursor: pointer; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}







































































.addet-gallery {
  position: relative; background: #111; width: 100%;
  aspect-ratio: 3/2; overflow: hidden; cursor: pointer; user-select: none;
  border-radius: var(--radius); margin-bottom: 8px;
}
.addet-main-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.addet-no-photo {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 32px; flex-direction: column; gap: 8px; color: var(--text-muted);
}
.addet-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.addet-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: background .15s; }
.addet-dot.active { background: #fff; }
.addet-photo-count {
  position: absolute; top: 8px; right: 10px; background: rgba(0,0,0,.55);
  color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px;
}

.addet-section {
  padding: 10px 0;
}

.addet-section--card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 0 0 8px;
  padding: 10px 16px;
}


.surface-stack { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 0; }

.surface-card {
  background: var(--card);
  border: 0;
  border-radius: var(--radius-xl);
  padding: var(--space-4);
}
.surface-card--accent { background: var(--primary-bg); }
.surface-card--tap { cursor: pointer; transition: background var(--dur-fast) var(--ease-out); }
.surface-card--tap:active { background: var(--bg-warm); }
.addet-section-title {
  font-size: 12px; font-weight: 700; color: var(--text-dim);
  margin-bottom: 6px;
}
.addet-delivery-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border-light); gap: 8px;
}
.addet-delivery-row:last-child { border-bottom: none; padding-bottom: 0; }
.addet-delivery-name { font-size: 14px; color: var(--text); font-weight: 500; }
.addet-delivery-meta { font-size: 13px; color: var(--text-muted); }
.addet-delivery-calc { font-size: 13px; color: var(--primary); font-weight: 600; text-decoration: none; }
.addet-delivery-cost { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.addet-delivery-free { font-size: 13px; color: var(--primary); font-weight: 600; }
.addet-chars { display: table; width: 100%; border-collapse: collapse; }
.addet-char-row { display: table-row; }
.addet-char-row span { display: table-cell; padding: 4px 0; font-size: 13px; vertical-align: top; }
.addet-char-row span:first-child { color: var(--text-muted); width: 120px; padding-inline-end: 12px; }
.addet-char-row span:last-child { color: var(--text); font-weight: 500; }
.addet-char-row:not(:last-child) td, .addet-char-row:not(:last-child) span { border-bottom: 1px solid var(--border-light); }

.addet-cat-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 600; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); transition: opacity .15s;
}
.addet-cat-badge:active { opacity: .7; }
.addet-type-text { font-size: 12px; color: var(--text-muted); }

.addet-view-page { padding-bottom: 0 !important; }
.addet-action-bar {
  position: fixed; bottom: var(--tab-height); left: 0; right: 0; z-index: 90;
  display: flex; gap: 10px; align-items: center; flex-shrink: 0;
  padding: 10px 16px 12px; background: var(--card);
  border-top: 1px solid var(--border); box-shadow: 0 -2px 16px rgba(0,0,0,.18);
}
.addet-action-write {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1;
  background: var(--primary); color: #fff; border-radius: var(--btn-radius);
  padding: 13px 20px; font-size: 15px; font-weight: 700; cursor: pointer;
  border: none; transition: opacity .15s;
}
.addet-action-write:active { opacity: .82; }
.addet-action-call {
  display: flex; align-items: center; justify-content: center; flex: 1;
  padding: 13px 20px; border-radius: var(--btn-radius);
  background: var(--text); border: none;
  color: #1a1a1a; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: opacity .15s;
}
.addet-action-call:active { opacity: .75; }

.addet-ask-row { display: flex; gap: 8px; align-items: center; }
.addet-ask-input { flex: 1; margin-bottom: 0 !important; }
.addet-ask-send {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--primary); border: none; border-radius: var(--radius);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity .15s;
}
.addet-ask-send:disabled { opacity: .35; cursor: default; }
.addet-ask-send:not(:disabled):active { opacity: .8; }

.addet-cart-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: var(--btn-radius); border: 1.5px solid var(--primary);
  background: none; color: var(--primary); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s, color .15s;
}
.addet-cart-btn:active { background: var(--primary); color: white; }
.addet-cart-btn--in { background: var(--primary); color: white; }

.addet-seller-ads { overflow-x: auto; scrollbar-width: none; display: flex; gap: 10px; padding-bottom: 4px; }
.addet-seller-ads::-webkit-scrollbar { display: none; }
.addet-seller-ad-card {
  flex-shrink: 0; width: 120px; text-decoration: none; display: flex; flex-direction: column; gap: 4px;
}
.addet-seller-ad-photo {
  width: 120px; height: 100px; border-radius: var(--radius);
  background: var(--bg-warm); border: 1px solid var(--border-light);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.addet-seller-ad-photo img { width: 100%; height: 100%; object-fit: cover; }
.addet-seller-ad-price { font-size: 13px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.addet-seller-ad-name { font-size: 12px; color: var(--text-muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.addet-recs-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.addet-recs-scroll::-webkit-scrollbar { display: none; }
.addet-rec-card {
  flex-shrink: 0; width: 120px; text-decoration: none;
  display: flex; flex-direction: column; gap: 4px;
}
.addet-rec-photo {
  width: 120px; height: 100px; border-radius: var(--radius);
  background: var(--bg-warm); border: 1px solid var(--border-light);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.addet-rec-photo img { width: 100%; height: 100%; object-fit: cover; }
.addet-rec-price { font-size: 13px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.addet-rec-name {
  font-size: 12px; color: var(--text-muted); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.addet-footer { padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.addet-report-btn {
  background: none; border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 10px; font-size: 13px; color: var(--text-muted); font-family: inherit;
  cursor: pointer; transition: border-color .15s, color .15s; display: flex; align-items: center; justify-content: center;
}
.addet-report-btn:hover { border-color: var(--danger); color: var(--danger); }
.addet-footer-meta { font-size: 12px; color: var(--text-muted); text-align: center; }

.addet-thumbs { display: none; }
.addet-thumb { display: none; }


.mkt-feed-banner { background: var(--card); border-radius: var(--radius); margin: 4px 0; overflow: hidden; border: 1px solid var(--border-light); }
.mkt-feed-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; }
.mkt-feed-title { font-size: 14px; font-weight: 700; }
.mkt-feed-all { font-size: 12px; color: var(--primary); text-decoration: none; }
.mkt-feed-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 12px; scrollbar-width: none; }
.mkt-feed-scroll::-webkit-scrollbar { display: none; }
.mkt-feed-card { display: flex; flex-direction: column; min-width: 120px; max-width: 140px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-light); background: var(--bg-warm); text-decoration: none; color: inherit; flex-shrink: 0; }
.mkt-feed-card-img { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--border-light); display: flex; align-items: center; justify-content: center; }
.mkt-feed-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mkt-feed-card-placeholder { font-size: 28px; }
.mkt-feed-card-body { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 2px; }
.mkt-feed-card-title { font-size: 12px; color: var(--text); font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mkt-feed-card-price { font-size: 13px; font-weight: 700; color: var(--primary); }
.mkt-feed-card-city { font-size: 12px; color: var(--text-muted); }


.post-ad-link {
  display: flex; align-items: center;
  margin: 4px 14px 8px;
  padding: 9px 14px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.15s;
}
.post-ad-link:hover { background: var(--border-light); }



.action-btn .reaction-face {
  width: 21px; height: 21px; font-size: 19px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.25));
}

.reaction-pop { animation: reaction-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes reaction-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.reaction-pop::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--danger); opacity: 0; pointer-events: none;
  animation: reaction-ring 0.55s ease-out;
}
@keyframes reaction-ring {
  0%   { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
.action-btn.liked .like-count-anim { color: var(--danger); }

.reaction-picker {
  position: fixed; z-index: 1000;
  display: flex; flex-direction: column; align-items: stretch; padding: 6px 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  animation: reaction-picker-in 0.18s cubic-bezier(0.22, 1.4, 0.36, 1);
}
.reaction-picker-row { display: flex; align-items: center; gap: 2px; }

.reaction-picker-who {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: none; border-top: 1px solid var(--border-light); background: none;
  padding: 7px 6px 3px; margin-top: 4px; cursor: pointer; font-family: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--text-dim);
}
.reaction-picker-who:hover { color: var(--text); text-decoration: underline; }
.reaction-picker-avas { display: inline-flex; }
.reaction-picker-avas img, .rp-ava-ph {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--card); margin-inline-start: -7px; box-sizing: content-box;
  background: var(--bg-warm);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-dim);
}
.reaction-picker-avas img:first-child, .reaction-picker-avas .rp-ava-ph:first-child { margin-inline-start: 0; }
@keyframes reaction-picker-in {
  from { opacity: 0; transform: translateY(10px) scale(0.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.reaction-picker-item {
  width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.reaction-picker-item .rp-emoji {
  font-size: 30px; line-height: 1; display: block;
  transition: transform 0.13s ease;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.reaction-picker-item:hover .rp-emoji { transform: scale(1.35) translateY(-4px); }
.reaction-picker-item:active .rp-emoji { transform: scale(1.15); }
.reaction-picker-item.active { background: var(--primary-light); }


.repost-sheet-dm-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin-top: 8px; padding: 11px 14px;
  background: var(--card); color: var(--text);
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.repost-dm-chevron { margin-inline-start: auto; color: var(--text-muted); font-size: 12px; }
.repost-dm-panel { margin-top: 6px; border: 1px solid var(--border-light); border-radius: var(--radius-sm); overflow: hidden; }
.repost-dm-search {
  width: 100%; border: none; border-bottom: 1px solid var(--border-light);
  background: var(--card); color: var(--text); padding: 9px 12px; font-size: 13px; outline: none;
}
.repost-dm-list { max-height: 208px; overflow-y: auto; }
.repost-dm-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px; background: none; border: none; cursor: pointer;
  color: var(--text); font-family: inherit; text-align: start;
}
.repost-dm-item:hover { background: var(--border-light); }
.repost-dm-item:disabled { cursor: default; opacity: 0.85; }
.repost-dm-ava { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.repost-dm-ava--ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--text-dim); font-weight: 700; font-size: 14px;
}
.repost-dm-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repost-dm-send { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--primary); }
.repost-dm-send.sent { color: var(--success); }
.repost-dm-empty { padding: 14px 12px; font-size: 13px; color: var(--text-muted); text-align: center; }



.reactions-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadeIn 0.15s;
}
.reactions-modal {
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-xl);
  width: 100%; max-width: 380px; max-height: 76vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.reactions-modal-head { display: flex; align-items: center; padding: 14px 16px 10px; font-size: 15px; }
.reactions-modal-head b { flex: 1; }
.reactions-tabs {
  display: flex; gap: 6px; padding: 0 12px 10px;
  border-bottom: 1px solid var(--border-light); overflow-x: auto; scrollbar-width: none;
}
.reactions-tabs button {
  border: none; background: var(--bg); color: var(--text-dim); border-radius: var(--radius-lg);
  padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; font-family: inherit; flex-shrink: 0;
}
.reactions-tabs button.active { background: var(--primary-light); color: var(--text); }
.reactions-list { overflow-y: auto; padding: 8px 10px 12px; min-height: 120px; }
.reactions-row {
  display: flex; align-items: center; gap: 12px; padding: 7px 6px;
  text-decoration: none; color: var(--text); border-radius: var(--radius-sm);
}
.reactions-row:hover { background: var(--border-light); }
.reactions-ava-wrap { position: relative; flex-shrink: 0; }
.reactions-ava {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-warm); font-weight: 700; color: var(--text-dim);
}
.reactions-badge {
  position: absolute; right: -4px; bottom: -4px; font-size: 15px; line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.35));
}
.reactions-name { font-weight: 600; font-size: 14px; }





:root { --drag: 0px; }
:root { --settings-id-field-h: 48px; --settings-id-gap: 7px; --settings-id-h: calc(var(--settings-id-field-h) * 3 + var(--settings-id-gap) * 2); }
.settings-id-row { display: flex; gap: 12px; align-items: center; }
.settings-id-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--settings-id-gap); }

.fld-float { position: relative; }
.fld-float > label {
  position: absolute; top: 5px; left: 12px; z-index: 1; pointer-events: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2px;
  color: var(--text-muted); text-transform: none;
}
.settings-id-fields input {
  width: 100%; height: var(--settings-id-field-h);
  padding: 17px 12px 5px; font-size: 14px; border-radius: var(--radius-xs);
}

.fld-prefix {
  display: flex; align-items: center;
  height: var(--settings-id-field-h);
  padding: 17px 12px 5px; border-radius: var(--radius-xs);
  border: 1.5px solid var(--border); background: var(--bg-warm);
  transition: all var(--transition);
}
.fld-prefix:focus-within { background: var(--card); }
.fld-prefix .fld-at { flex-shrink: 0; font-size: 14px; line-height: 1; color: var(--text-muted); }
.settings-id-fields .fld-prefix input.fld-username {
  flex: 1; min-width: 0; height: auto; padding: 0;
  border: none; background: none; border-radius: 0; font-size: 14px;
}

.settings-username-hint {
  font-size: 12px; color: var(--text-muted); line-height: 1.35;
  margin: 6px 2px 0; transition: color 0.15s;
}
.settings-username-hint.err { color: var(--danger); }

.settings-id-avatar {
  flex-shrink: 0; width: var(--settings-id-h); height: var(--settings-id-h);
  position: relative; padding: 0; border: none; background: none; cursor: pointer;
  border-radius: 50%;
}
.settings-id-avatar-img,
.settings-id-avatar-ph {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.settings-id-avatar-ph {
  background: var(--bg-warm); display: flex; align-items: center; justify-content: center;
}
.settings-id-avatar-cam {
  position: absolute; right: 2px; bottom: 2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}


.av-frame--gold, .av-frame--silver, .av-frame--rainbow { position: relative; }
.av-frame--gold::after, .av-frame--silver::after, .av-frame--rainbow::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
}
.av-frame--gold::after { box-shadow: inset 0 0 0 3px var(--warning); }
.av-frame--silver::after { box-shadow: inset 0 0 0 3px var(--text-muted); }
.av-frame--rainbow::after {
  padding: 3px;
  background: linear-gradient(135deg, #ef4444, #f59e0b, #22c55e, #3b82f6, #8b5cf6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}


.bio-autogrow {
  min-height: 0 !important; height: auto;
  max-height: 132px; overflow-y: auto; resize: none;
  line-height: 1.45;
}


.hdr-save-btn {
  height: var(--back-size); padding: 0 16px; border-radius: var(--back-radius);
  background: var(--primary); color: var(--bg); border: none;
  font-size: 13px; font-weight: 700; font-family: inherit; cursor: pointer;
  white-space: nowrap;
}
.hdr-save-btn:disabled { opacity: 0.45; cursor: default; }
.hdr-icon-btn {
  width: var(--back-size); height: var(--back-size); border-radius: var(--back-radius); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--border-light); color: var(--text-dim);
  cursor: pointer;
}
.hdr-icon-btn--danger { color: var(--danger); }
.hdr-icon-btn--danger:hover { border-color: var(--danger); background: var(--danger-light); }
.header-actions-fixed { display: none; }
@media (max-width: 767px) {
  .header-actions-fixed {
    display: flex; gap: 6px; align-items: center;
    position: fixed;
    top: calc(var(--safe-top) + 5px);
    right: 12px;
    z-index: 600;
  }
  .header-actions-fixed .hdr-save-btn { box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
}
.unsaved-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 16px;
}
.unsaved-modal {
  background: var(--card); color: var(--text); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 20px; width: 100%; max-width: 340px;
  display: flex; flex-direction: column; gap: 8px;
}
.unsaved-title { font-size: 16px; font-weight: 700; }
.unsaved-sub { font-size: 13.5px; color: var(--text-dim); margin-bottom: 6px; }
.unsaved-discard {
  min-height: var(--btn-h-md); border-radius: var(--btn-radius);
  background: transparent; border: 1px solid var(--border); color: var(--text-dim);
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.unsaved-discard:hover { border-color: var(--danger); color: var(--danger); }
.unsaved-cancel {
  min-height: 36px; background: none; border: none; color: var(--text-muted);
  font-size: 13.5px; font-family: inherit; cursor: pointer;
}














.poll-error { font-size: 12px; color: var(--danger); padding: 2px 0 6px; }




































@media (min-width: 600px) { .av-picker-overlay { align-items: center; } }

@media (min-width: 600px) { .av-picker { border-radius: var(--radius-xl); } }










@media (max-width: 380px) { .av-picker-grid { grid-template-columns: repeat(3, 1fr); } }
































































        
 


         
@keyframes avFloat   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6%); } }
@keyframes avWiggle  { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes avBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes avBubble  { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4%) scale(1.04); } }
@keyframes avSwim    { 0%,100% { transform: translateX(-12%) rotate(-3deg); } 50% { transform: translateX(12%) rotate(3deg); } }
@keyframes avJump    { 0%,55%,100% { transform: translateY(0) scaleY(1); } 20% { transform: translateY(-16%) scaleY(1.04); } 45% { transform: translateY(0) scaleY(0.94); } }
@keyframes avJitter  { 0%,100% { transform: translate(0,0) rotate(0); } 20% { transform: translate(-3%,1%) rotate(-3deg); } 40% { transform: translate(3%,-1%) rotate(3deg); } 60% { transform: translate(-2%,2%) rotate(-2deg); } 80% { transform: translate(2%,-2%) rotate(2deg); } }
@keyframes avTailwag { 0%,100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes avPop     { 0%,70%,100% { transform: scale(1); } 35% { transform: scale(1.13); } }
@keyframes avNod     { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(4%) rotate(0); } 25% { transform: translateY(-2%) rotate(-3deg); } 75% { transform: translateY(-2%) rotate(3deg); } }
@keyframes avWobble  { 0%,100% { transform: rotate(-5deg) translateY(0); } 25% { transform: rotate(0) translateY(-3%); } 50% { transform: rotate(5deg) translateY(0); } 75% { transform: rotate(0) translateY(3%); } }
@media (prefers-reduced-motion: reduce) { .av-anim { animation: none !important; } }


video.avatar-lg, video.avatar-sm, video.comment-avatar, video.comment-avatar-xs, video.comment-as-ava,
.av-picker-item video, .clip-comment-pic video, .clip-author-pic video {
  object-fit: cover; display: block; background: var(--bg-warm);
}





@media (min-width: 768px) {
  .create-bottom-actions--sticky { bottom: 8px; }
}



.post-diary-block { margin: 8px var(--card-padding) 0; }
.post-diary-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); color: var(--text-dim);
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  padding: 7px 12px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.post-diary-toggle:hover { color: var(--text); }
.post-diary-chevron { color: var(--text-muted); font-size: 12px; }
.post-diary-details {
  margin-top: 6px; padding: 10px 12px;
  background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  font-size: 13px;
}
.post-diary-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.post-diary-row span { color: var(--text-muted); flex-shrink: 0; }
.post-diary-row b { font-weight: 600; text-align: end; }
.post-diary-catches { border-top: 1px solid var(--border-light); margin-top: 6px; padding-top: 6px; }
.post-diary-notes { border-top: 1px solid var(--border-light); margin-top: 6px; padding-top: 8px; color: var(--text-dim); white-space: pre-wrap; }



.post-verify-badge { cursor: pointer; color: var(--primary); background: var(--primary-bg); border-color: var(--primary-light); }
.post-gallery-meta .post-verify-badge { color: #86dcb0; }
.post-gallery-meta .post-verify-badge svg { color: #86dcb0; }
.post-verify-badge:hover { opacity: 0.85; }
.post-gallery-meta::-webkit-scrollbar { display: none; }


.verify-modal { max-width: 420px; }
.verify-modal-body { padding: 4px 16px 16px; font-size: 13.5px; line-height: 1.5; }
.verify-modal-body > p { margin: 8px 0; color: var(--text-dim); }
.verify-level {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px; margin: 8px 0;
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  color: var(--text-dim);
}
.verify-level.current { border-color: var(--primary); }
.verify-level-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700; color: var(--primary); font-size: 13px;
}
.verify-modal-hint { font-size: 12.5px; color: var(--text-muted); }



























































.settings-username-auto { color: var(--primary); font-weight: 600; }


.profile-notfound {
  text-align: center; padding: 48px 24px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.profile-notfound-icon { color: var(--text-muted); opacity: 0.45; margin-bottom: 6px; }
.profile-notfound h2 { font-size: 18px; font-weight: 700; margin: 0; color: var(--text); }
.profile-notfound p { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; max-width: 280px; line-height: 1.5; }
.profile-notfound-actions { display: flex; gap: 8px; align-items: center; }


.create-audio { margin-top: 8px; }
.create-audio-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.create-audio-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 8px 12px; border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text-dim); font-size: 13px; font-weight: 600; font-family: inherit;
}
.create-audio-btn:hover { color: var(--text); border-color: var(--border); }
.create-audio-hint { font-size: var(--fs-min); color: var(--text-muted); flex: 1 1 100%; }
.create-audio-rec, .create-audio-ready {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
}
.create-audio-timer { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); min-width: 38px; }
.create-audio-stop, .create-audio-cancel, .create-audio-del {
  width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer; background: var(--border-light); color: var(--text);
}
.create-audio-stop { background: var(--danger); color: #fff; }
.create-audio-del { background: none; color: var(--text-muted); }
.create-audio-del:hover { color: var(--danger); }
.voice-trim-range { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-dim); white-space: nowrap; }
.voice-trim-sel { color: var(--text-muted); }
.post-audio { padding: 8px var(--card-padding) 0; }


.comment-audio-rec, .comment-audio-ready {
  display: flex; align-items: center; gap: 10px; margin: 6px var(--card-padding);
  padding: 8px 12px; background: var(--card); border: 1px solid var(--border-light); border-radius: var(--radius-sm);
}
.comment-audio-trim { margin: 6px var(--card-padding); }
.comment-voice { margin-top: 4px; max-width: 260px; }


.create-video-extra { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.create-video-opt { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.create-video-opt--done { color: var(--success); }
.create-video-opt--warn { color: var(--warning); font-weight: 600; }
.create-clips-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; color: var(--text); }
.create-clips-toggle input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }


.translate-block { margin-top: 6px; }

.translate-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 2px 0; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  opacity: .85; transition: opacity .15s;
}
.translate-btn:hover { opacity: 1; }
.translate-btn:disabled { cursor: default; opacity: .6; }
.translate-btn .spin { animation: translate-spin .9s linear infinite; }
@keyframes translate-spin { to { transform: rotate(360deg); } }

.translate-result {
  margin-top: 6px; padding-inline-start: 10px;
  border-inline-start: 2px solid var(--border);
}
.translate-result__text { margin: 0; }

.translate-note,
.translate-error {
  display: block; margin-top: 4px;
  font-size: 12px; color: var(--text-dim);
}
.translate-error { color: var(--danger); }


.post-add-catch {
  display: inline-flex; align-items: center; gap: 6px; margin: 6px var(--card-padding) 2px;
  padding: 8px 14px; border-radius: var(--radius); border: 1.5px dashed var(--primary);
  background: transparent; color: var(--primary); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.post-add-catch:hover { background: var(--primary-light); }

.addcatch-overlay {
  position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,0.6);
  display: flex; align-items: flex-end; justify-content: center;
}
.addcatch-sheet {
  width: 100%; max-width: 480px; background: var(--card); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex; flex-direction: column; max-height: 92dvh;
}
.addcatch-head {
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  padding: 16px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 700; color: var(--text);
}
.addcatch-head button { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: none; background: rgba(255,255,255,0.08); border-radius: 50%; color: var(--text-dim); cursor: pointer; }
.addcatch-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.addcatch-input {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font-size: 15px; font-family: inherit; outline: none;
}
.addcatch-input:focus { border-color: var(--primary); }
.addcatch-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.addcatch-field { display: flex; flex-direction: column; gap: 4px; }
.addcatch-field > label { font-size: 12px; color: var(--text-muted); text-align: center; }
.addcatch-field input {
  height: 44px; padding: 0 8px; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 16px; font-weight: 600; text-align: center; outline: none; font-family: inherit; -moz-appearance: textfield;
}
.addcatch-field input:focus { border-color: var(--primary); }
.addcatch-field input::-webkit-outer-spin-button, .addcatch-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.addcatch-unit { display: grid; grid-template-columns: 1fr 1fr; height: 44px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.addcatch-unit button { border: none; background: var(--card); color: var(--text-dim); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.addcatch-unit button + button { border-inline-start: 1px solid var(--border); }
.addcatch-unit button.active { background: var(--primary-light); color: var(--text); }
.addcatch-actions-row { display: flex; align-items: center; gap: 12px; }
.addcatch-photo-btn {
  flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius); border: 1.5px dashed var(--border); background: var(--bg); color: var(--text-dim);
  font-size: 13px; font-weight: 600; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.addcatch-photo-btn img { width: 100%; height: 60px; object-fit: cover; }
.addcatch-released { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); cursor: pointer; flex-shrink: 0; }
.addcatch-released input { width: 18px; height: 18px; accent-color: var(--primary); }
.addcatch-foot { display: flex; gap: 8px; flex-shrink: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); }
.addcatch-cancel { flex: 1; height: 48px; border-radius: var(--radius); border: 1.5px solid var(--border); background: transparent; color: var(--text-dim); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.addcatch-save { flex: 2; height: 48px; border-radius: var(--radius); border: none; background: var(--primary); color: var(--bg); font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
.addcatch-save:disabled { opacity: .6; }


.oauth-more {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  padding: 10px 8px;
  cursor: pointer;
  align-self: center;
}
.oauth-more:active { color: var(--primary); }



.onboarding-page {
  padding: 0;
  justify-content: flex-end;
}
.onboarding-card {
  position: relative; z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 92px);
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: rgba(22, 28, 25, 0.72);
  backdrop-filter: blur(26px) saturate(120%);
  -webkit-backdrop-filter: blur(26px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45);
}

.onboarding-card h1 { color: var(--primary) !important; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.onboarding-card p { text-shadow: 0 1px 8px rgba(0,0,0,.45); }

.onboarding-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}


@media (max-width: 640px) {
  .post-dropdown-menu {
    position: fixed;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 3000;
    min-width: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    border-inline-start: none;
    border-inline-end: none;
    border-bottom: none;
    max-height: 75dvh;
    padding: 8px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    animation: post-menu-sheet-up 0.18s ease;
  }
  
  .post-dropdown-menu::before {
    content: '';
    display: block;
    width: 38px; height: 4px;
    margin: 2px auto 10px;
    border-radius: var(--radius-pill);
    background: var(--border);
  }
  .post-dropdown-menu button,
  .post-dropdown-menu .post-dropdown-link-item {
    padding: 15px 20px;
    font-size: 15px;
  }
}
@keyframes post-menu-sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}


.post-menu-backdrop { display: none; }
@media (max-width: 640px) {
  .post-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2999;
    background: rgba(0, 0, 0, 0.35);
    animation: post-menu-fade 0.18s ease;
  }
}
@keyframes post-menu-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}


.toast-center-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.toast-center {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  max-width: 78vw;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: rgba(28, 33, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  animation: toast-center-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.toast-center-text { font-size: 15px; line-height: 1.35; }
.toast-center-icon { font-size: 34px; line-height: 1; }


.toast-check { color: var(--success); }   
.toast-check path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: toast-check-draw 0.42s 0.06s ease-out forwards;
}
@keyframes toast-check-draw { to { stroke-dashoffset: 0; } }
@keyframes toast-center-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .toast-check path { animation: none; stroke-dashoffset: 0; }
  .toast-center { animation: none; }
}


@media (max-width: 640px) {
  .post-dropdown-menu.is-closing {
    animation: post-menu-sheet-down 0.18s ease forwards;
  }
}
.post-menu-backdrop.is-closing { animation: post-menu-fade-out 0.18s ease forwards; }
@keyframes post-menu-sheet-down {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}
@keyframes post-menu-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}


.legal-link {
  background: none; border: none; padding: 0;
  color: var(--primary); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.legal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: flex-end; justify-content: center;
}
.legal-sheet {
  width: 100%; max-width: 560px;
  max-height: 88dvh;
  display: flex; flex-direction: column;
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
  animation: sheet-up 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.legal-sheet-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700; color: var(--text);
}
.legal-sheet-head button {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  display: flex; padding: 4px;
}
.legal-sheet-body {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 18px calc(18px + env(safe-area-inset-bottom, 0px));
}


.kcard-price { color: var(--primary); font-size: 15px; font-weight: 900; }
.kcard-body  { gap: 3px; padding: 6px 8px 8px; }
.kcard-city  { font-size: 12px; font-weight: 500; }

.kcard--grid .kcard-title { min-height: 2.6em; }




.socsheet-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.socsheet {
  width: 100%; max-width: 380px;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border-light);
  padding: 14px 16px 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}
.socsheet-head { display: flex; align-items: center; justify-content: space-between; }
.socsheet-head b { font-size: 16px; color: var(--text); }
.socsheet-x {
  width: 30px; height: 30px; border: none; background: transparent;
  color: var(--text-dim); display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
}
.socsheet-sub { font-size: 12.5px; color: var(--text-muted); margin: 2px 0 12px; }
.socsheet-rows { display: flex; flex-direction: column; gap: 8px; }
.socsheet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; width: 100%;
  background: var(--bg-warm); color: var(--text);
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.socsheet-row--btn:active { background: var(--card); }
.socsheet-row--done { opacity: 0.72; cursor: default; }
.socsheet-ic { display: flex; flex-shrink: 0; width: 22px; }
.socsheet-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.socsheet-coins {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 13px; font-weight: 700; color: var(--primary);
}
.socsheet-check { color: var(--success); display: flex; }
.socsheet-auth {
  display: block; text-align: center; margin-top: 14px;
  padding: 11px; font-size: 14px; font-weight: 700;
  background: var(--primary); color: var(--btn-text);
  border-radius: var(--radius-sm); text-decoration: none;
}


.appbanner {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin: 0 0 10px;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.appbanner-x {
  flex-shrink: 0; background: none; border: none; color: var(--text-muted);
  padding: 2px; cursor: pointer; display: flex; align-items: center;
}
.appbanner-ic { width: 34px; height: 34px; border-radius: var(--radius-sm); flex-shrink: 0; }
.appbanner-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.appbanner-txt b { font-size: 14px; color: var(--text); }
.appbanner-txt span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbanner-btn {
  flex-shrink: 0; background: var(--primary); color: var(--btn-text);
  font-weight: 700; font-size: 13px; padding: 7px 16px;
  border-radius: var(--radius-pill); text-decoration: none; white-space: nowrap;
}
.appbanner-btn:active { filter: brightness(0.93); }


.appbanner-later {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  padding: 7px 8px; white-space: nowrap;
}
.appbanner-upd .appbanner-btn { border: none; cursor: pointer; font-family: inherit; }


.share-people { margin-top: 10px; }
.share-section-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
  text-transform: uppercase; color: var(--text-muted);
  margin: 0 2px 8px;
}
.share-section-title--gap { margin-top: 18px; }

.share-search-wrap {
  display: flex; align-items: center; gap: 8px;
  width: 100%; box-sizing: border-box; min-height: 46px;
  padding: 10px 12px; margin-bottom: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg);
  color: var(--text-muted);
  transition: border-color 0.15s;
}
.share-search-wrap:focus-within { border-color: var(--border); }
.share-search-wrap svg { flex-shrink: 0; }

.share-search-wrap input.share-search {
  flex: 1; min-width: 0; min-height: 0;
  padding: 0; outline: none;
  border: none !important; background: transparent !important; box-shadow: none !important;
  color: var(--text); font-size: 14px; font-family: inherit;
}
.share-empty {
  padding: 18px 6px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.share-grid {
  
  display: flex; gap: 14px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 2px;
}
.share-grid::-webkit-scrollbar { display: none; }
.share-grid, .share-actions { touch-action: pan-x; }
.share-people .share-cell { flex: 0 0 auto; width: 62px; }
.share-cell {
  background: none; border: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.share-cell-ava {
  position: relative;
  width: 56px; height: 56px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.share-cell-ava img { width: 100%; height: 100%; object-fit: cover; }
.share-cell-ph { font-size: 20px; font-weight: 700; color: var(--text-muted); }

.share-cell-badge {
  position: absolute; right: -1px; bottom: -1px;
  width: 20px; height: 20px; border-radius: var(--radius-pill);
  background: var(--primary); color: var(--btn-text);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--card);
}
.share-cell-done {
  position: absolute; inset: 0;
  background: rgba(20, 24, 21, 0.72);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.share-cell-name {
  font-size: 12px; line-height: 1.2; color: var(--text-dim);
  max-width: 68px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.share-cell.is-sent .share-cell-name { color: var(--primary); }

.share-actions {
  display: flex; gap: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 0 0 6px;
  margin-bottom: 14px;
}
.share-actions::-webkit-scrollbar { display: none; }
.share-action {
  flex: 0 0 auto;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 68px;
  font-size: 12px; line-height: 1.25; color: var(--text-dim);
  text-align: center;
  
  white-space: nowrap;
}
.share-action > :not(.share-action-ic) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.share-action-ic {
  width: 52px; height: 52px;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.12s, opacity 0.12s;
}
.share-action:active .share-action-ic { transform: scale(0.9); opacity: 0.75; }


.repost-sheet-add-comment {
  
  display: flex; align-items: center; gap: 8px;
  width: 100%; box-sizing: border-box; min-height: 46px;
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; text-align: start;
  color: var(--text-muted); font-size: 14px;
  padding: 10px 12px; margin-bottom: 14px;
  transition: border-color 0.15s, color 0.15s;
}
.repost-sheet-add-comment:hover,
.repost-sheet-add-comment:active { border-color: var(--border); color: var(--text-dim); }
.repost-sheet-add-comment svg { flex-shrink: 0; }


.city-sheet-overlay,
.avatar-sheet-overlay,
.avatar-menu-overlay,
.region-users-overlay,
.sheet-backdrop,
.modal-overlay,
.tip-popup-overlay { touch-action: none; }

.city-sheet,
.avatar-sheet,
.avatar-menu-sheet,
.region-users-sheet,
.modal-content,
.tip-popup { touch-action: pan-y; overscroll-behavior: none; }


.city-sheet-body { touch-action: pan-y; overscroll-behavior: contain; }



.auth-hero {
  position: relative; min-height: 100dvh; overflow: hidden;
  
  background: var(--bg) center / 0 0 no-repeat;
  display: flex; flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px
           calc(14px + env(safe-area-inset-bottom, 0px));
}

.auth-hero::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: inherit;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}

.auth-hero::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(13,17,15,0.28) 0%, rgba(13,17,15,0.04) 20%,
    rgba(13,17,15,0.40) 56%, rgba(13,17,15,0.94) 100%);
}
.auth-hero > * { position: relative; z-index: 1; }


.auth-hero > .sp-life { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.auth-hero .sp-fit {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%; aspect-ratio: 1290 / 2796;
}
.auth-hero .sp-fit span { position: absolute; display: block; }
.auth-hero .sp-fog1 {
  left: -20%; right: -20%; top: 31%; height: 16%; filter: blur(16px);
  background: radial-gradient(24% 90% at 30% 55%, rgba(230,236,226,0.17) 0%, transparent 70%),
              radial-gradient(19% 80% at 63% 45%, rgba(230,236,226,0.13) 0%, transparent 72%),
              radial-gradient(14% 70% at 46% 75%, rgba(230,236,226,0.10) 0%, transparent 72%);
  animation: spFog1 11s ease-in-out infinite alternate;
}
.auth-hero .sp-fog2 {
  left: -20%; right: -20%; top: 38%; height: 13%; filter: blur(20px);
  background: radial-gradient(20% 90% at 62% 50%, rgba(226,232,222,0.12) 0%, transparent 72%),
              radial-gradient(16% 80% at 26% 60%, rgba(226,232,222,0.09) 0%, transparent 74%);
  animation: spFog2 16s ease-in-out infinite alternate;
}
.auth-hero .sp-ping {
  left: 50.83%; top: 25.62%; width: 34.62%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid rgba(168,200,158,0.5); transform: translate(-50%, -50%);
  animation: spPing 2.2s cubic-bezier(.2,.6,.3,1) infinite;
}
.auth-hero .sp-ping2 { animation-delay: 1.1s; }
.auth-hero .sp-sun {
  left: 50%; top: 46%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,199,124,0.20) 0%, rgba(255,199,124,0.08) 42%, transparent 68%);
  animation: spSun 4s ease-in-out infinite;
}
.auth-hero .sp-halo {
  left: 50.83%; top: 25.62%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 17%, transparent) 0%, transparent 62%);
  animation: spHalo 3s ease-in-out infinite;
}
@keyframes spPing {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  70% { opacity: 0.1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.85); }
}
@keyframes spFog1 { from { transform: translate(-10%, 1.5%); } to { transform: translate(10%, -1.5%); } }
@keyframes spFog2 { from { transform: translate(9%, -1%); } to { transform: translate(-9%, 1%); } }
@keyframes spSun {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.07); }
}
@keyframes spHalo {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.98); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .auth-hero .sp-fit span { animation: none; } }


.auth-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-lang { position: relative; flex-shrink: 0; }
.auth-lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: color-mix(in srgb, var(--text) 86%, transparent); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.auth-lang-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  display: flex; flex-direction: column; min-width: 150px; padding: 5px;
  border-radius: var(--radius-sm);
  background: rgba(22,28,25,0.96); border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.auth-lang-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 13.5px; color: color-mix(in srgb, var(--text) 90%, transparent);
}
.auth-lang-item:hover { background: rgba(255,255,255,0.07); }
.auth-lang-item.is-on { color: var(--primary); font-weight: 700; }


.auth-hero-back {
  align-self: flex-start; min-width: 0;
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 12px 0 10px; border-radius: var(--radius-pill);
  background: rgba(20,27,23,0.45); border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  color: rgba(240,236,226,0.94); font-family: inherit; font-size: 12.5px; font-weight: 700;
}
.auth-hero-back:hover { color: var(--primary); }
.auth-lang-btn { background: rgba(20,27,23,0.45); color: rgba(240,236,226,0.94); }


.auth-hero-signup {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 2px 0; font-size: 13.5px; color: color-mix(in srgb, var(--text) 72%, transparent);
}
.auth-hero-signup-btn {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent); background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary); font-weight: 800; text-decoration: none; white-space: nowrap;
}
.auth-hero-signup-btn:hover, .auth-hero-signup-btn:focus-visible { color: var(--primary); background: color-mix(in srgb, var(--primary) 22%, transparent); }


.auth-hero-name { position: absolute; left: 0; right: 0; top: 37%; text-align: center; }
.auth-hero-name h1 {
  margin: 0; font-size: 21px; font-weight: 800; letter-spacing: 4px;
  color: var(--primary) !important; background: none !important;
  -webkit-text-fill-color: var(--primary) !important;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}
.auth-hero-name p {
  margin: 5px 0 0; font-size: 13px; color: color-mix(in srgb, var(--text) 75%, transparent);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.auth-hero-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }  


.oauth-primary {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; height: 48px; border-radius: var(--radius);
  
  background: var(--btn-bg); color: var(--btn-text);
  border: none; font-family: inherit; font-size: 15px; font-weight: 800;
  cursor: pointer; transition: filter .15s;
}
.oauth-primary:hover { filter: brightness(1.07); }
.oauth-primary .oauth-btn-icon svg { stroke: var(--btn-text); color: var(--btn-text); }



.oauth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }

.oauth-grid > .oauth-btn-text { grid-column: 1 / -1; }
.oauth-grid .oauth-btn {
  
  justify-content: center;
  height: 44px; padding: 0 10px; gap: 8px; font-size: 13px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,0.14);
}
.oauth-grid .oauth-btn:hover { background: rgba(255,255,255,0.14); }

.oauth-grid .oauth-btn > span:not(.oauth-btn-icon) {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


.oauth-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.oauth-icons > .oauth-btn {
  flex: 1 1 0; min-width: 0; height: 48px; padding: 0; gap: 0;
  justify-content: center;
}

.oauth-icons > .oauth-btn {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: rgba(255,255,255,0.14);
}
.oauth-icons > .oauth-btn:hover { background: rgba(255,255,255,0.14); }
.oauth-icons > .oauth-btn--apple { color: #fff; }

.oauth-icons > .oauth-btn > span:not(.oauth-btn-icon) { display: none; }
.oauth-icons > .oauth-btn .oauth-btn-icon { width: auto; }

.oauth-icons > .oauth-btn.is-open {
  background: color-mix(in srgb, var(--primary) 22%, transparent); border-color: var(--primary); color: var(--primary);
}

.oauth-icons > .oauth-btn-text { flex: 1 0 100%; order: 9; text-align: center; }


.auth-email-join { display: flex; align-items: stretch; }
.auth-email-join > input, .auth-email-join > .field > input {
  flex: 1; min-width: 0;
  border-top-right-radius: 0; border-bottom-right-radius: 0;
  border-right-color: transparent;
}
.auth-email-join input:focus { border-right-color: var(--primary); }
.auth-email-join > button {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  padding: 0 15px; border: none; cursor: pointer;
  font-family: inherit; font-size: 14.5px; font-weight: 800;
  background: var(--primary); color: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.auth-email-join > button:active { filter: brightness(0.94); }
.auth-email-join > button:disabled { opacity: 0.6; cursor: default; }

.auth-email-join > .field { position: relative; display: flex; flex: 1; min-width: 0; }
.auth-email-join > .field input { padding-right: 40px; }
.field-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border: none; border-radius: 8px;
  background: none; cursor: pointer; color: var(--text-muted);
}
.field-eye:hover { color: var(--primary); }


.auth-email-join.is-error input { border-color: var(--danger); }
.auth-email-join.is-error { animation: field-shake 0.32s ease; }
@keyframes field-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  45% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
}

.field-hint, .field-err {
  font-size: 12px; line-height: 1.4; padding: 0 2px; margin-top: -2px;
}
.field-hint { color: color-mix(in srgb, var(--text) 55%, transparent); }
.field-err { color: var(--danger); }


.auth-email-links {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-top: 4px;
}
.auth-email-links button {
  background: none; border: none; padding: 4px 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: color-mix(in srgb, var(--text) 75%, transparent);
}
.auth-email-links button:hover { color: var(--primary); }


.offscreen-input {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}


.auth-email-who {
  display: flex; align-items: center; gap: 7px; width: 100%;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius-xs); padding: 9px 12px; cursor: pointer;
  font-family: inherit; font-size: 13px; color: color-mix(in srgb, var(--text) 85%, transparent);
}
.auth-email-who span {
  flex: 1; min-width: 0; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.auth-email-who b { color: var(--primary); font-weight: 700; flex-shrink: 0; }

.auth-hero-mail {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: transparent; border: none; cursor: pointer; font-family: inherit;
  color: color-mix(in srgb, var(--text) 82%, transparent); font-size: 13.5px; font-weight: 700; padding: 8px 0;
}

.auth-done { text-align: center; }
.auth-done-ico { color: var(--primary); margin: 0 auto 2px; }
.auth-done-ico--bad { color: var(--danger); }
.auth-done .oauth-primary:disabled { opacity: 0.6; cursor: default; }
.auth-done h2 {
  margin: 0; font-size: 20px; font-weight: 800; letter-spacing: 0.2px;
  color: rgba(240,236,226,0.96); text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.auth-done p {
  margin: 0; font-size: 13.5px; line-height: 1.55;
  color: color-mix(in srgb, var(--text) 78%, transparent); text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.auth-done p b { display: block; margin-top: 4px; color: var(--primary); word-break: break-all; }
.auth-done-note { font-size: 12.5px !important; color: color-mix(in srgb, var(--text) 60%, transparent) !important; }
.auth-done .oauth-primary { margin-top: 6px; text-decoration: none; }
.auth-done .oauth-btn {
  justify-content: center;
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

.auth-hero-legal {
  font-size: 12px; line-height: 1.5; text-align: center;
  color: color-mix(in srgb, var(--text) 60%, transparent);
}
.auth-hero-links {
  display: flex; justify-content: center; gap: 18px; padding-top: 4px;
  font-size: 13px; font-weight: 700;
}




.register-agree--hero {
  display: block; text-align: center; margin: 0; padding: 0 4px;
  font-size: 12px; line-height: 1.5; color: color-mix(in srgb, var(--text) 82%, transparent);
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  cursor: pointer;
}

.register-agree--hero input {
  display: inline-block; vertical-align: -4px;
  margin: 0 7px 0 0; padding: 0; width: 18px; height: 18px;
}

.register-agree--hero.register-agree--error { color: var(--danger); border: none; background: none; }
.register-agree--hero .legal-link { font-size: 12px; }


.auth-hint {
  display: flex; align-items: flex-start; gap: 6px; margin: 6px 2px 0;
  font-size: 12px; line-height: 1.4; color: color-mix(in srgb, var(--text) 62%, transparent);
}
.auth-hint svg { flex-shrink: 0; margin-top: 1px; color: var(--primary); }
.auth-hint-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 2px 0; }
.auth-hint-check {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; line-height: 1.4; color: color-mix(in srgb, var(--text) 62%, transparent);
}
.auth-hint-check svg { flex-shrink: 0; color: color-mix(in srgb, var(--text) 42%, transparent); }
.auth-hint-check.ok, .auth-hint-check.ok svg { color: var(--primary); }


.sg-sheet-demo {
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 16px 16px;
}


.post-header .post-author { flex: 1 1 auto; min-width: 0; }
.post-header-badges {
  display: flex; align-items: center; gap: 6px;
  
  margin-inline-start: auto; margin-inline-end: 0;
  
  
  flex: 0 0 auto; min-width: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
}
.post-header-badges::-webkit-scrollbar { display: none; }
.post-header-badges .author-badge-btn { scroll-snap-align: start; }

.post-header-badges.has-more {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
}


.post-header-badges:empty { display: none; margin: 0; }

.post-header-badges .author-badge-btn {
  width: 28px; height: 28px; border-radius: var(--radius-pill);
  background: none; border: none; overflow: hidden;
}
.post-header-badges .author-badge-btn svg { width: 16px; height: 16px; }
.post-header-badges .author-badge-btn img { width: 28px; height: 28px; border-radius: var(--radius-pill); }
.post-header-badges .author-badge-btn .author-badge,
.post-header-badges .author-badge-btn .author-founder-emoji { font-size: 15px; }

.post-header-badges .author-badge-btn:active { background: var(--primary-bg); }


.app-version-line {
  text-align: center; padding: 14px 16px 22px;
  font-size: 12px; color: var(--text-muted); opacity: .8;
  font-variant-numeric: tabular-nums;
}


.post-status-line {
  display: flex; align-items: center; gap: 6px;
  padding: 0 var(--card-padding); margin: 2px 0 2px;
  min-width: 0;
}
.post-status-line .post-rank-inline { min-width: 0; overflow: hidden; }


.post-header--grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px; row-gap: 2px;
  padding: 0 var(--card-padding);
}
.post-header--grid .post-author-ava {
  grid-column: 1; grid-row: 1 / 3;
  display: flex; align-items: center; text-decoration: none;
}
.post-header--grid .post-author-name-link {
  grid-column: 2; grid-row: 1;
  min-width: 0; color: var(--text); text-decoration: none;
}
.post-header--grid .post-follow-btn-action { grid-column: 3; grid-row: 1; margin: 0; }
.post-header--grid .post-menu-wrapper      { grid-column: 4; grid-row: 1; margin: 0; }
.post-header--grid .post-status-line {
  grid-column: 2; grid-row: 2;
  padding: 0; margin: 0; min-width: 0;
}
.post-header--grid .post-header-badges {
  grid-column: 3; grid-row: 2;
  justify-self: end; margin: 0;
}

.post-header--grid .post-header-badges:only-child { grid-column: 3 / 5; }

.post-header--grid .avatar-sm,
.post-header--grid .avatar-placeholder { width: 44px; height: 44px; }
.post-header--grid .post-author-line1 { width: 100%; }



.post-header--grid .post-menu-btn {
  width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  color: var(--text-muted); background: transparent;
}

.post-header--grid .post-header-badges { grid-column: 3 / 5; }

.post-header--grid .post-rank-inline,
.post-header--grid .post-rank-inline b {
  color: var(--text); font-weight: 600; font-size: 12px;
}

.post-header--grid { margin-bottom: 0; }


.post-header--grid .post-header-badges {
  grid-column: 3 / 5; justify-self: stretch;
  width: 0; min-width: 100%;
}

.post-header--grid .post-header-badges > :first-child { margin-inline-start: auto; }

.post-header--no-follow .post-header-badges { width: auto; min-width: 0; max-width: 168px; }


.post-header--grid .post-follow-btn-action { min-width: 112px; padding: 4px 10px; text-align: center; }
.post-header--grid .post-menu-wrapper { margin-inline-start: 4px; }   
.post-header--grid .post-header-badges { gap: 14px; }

.post-header--grid .post-header-badges:has(> :nth-child(4):last-child) { justify-content: space-between; }
.post-header--grid .post-header-badges:has(> :nth-child(4):last-child) > :first-child { margin-inline-start: 0; }


.badge-art {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--badge-bg); border: 1.5px solid var(--badge-rim);
  box-sizing: border-box; flex-shrink: 0;
}
.badge-art img { width: 72%; height: 72%; object-fit: contain; display: block; }
.post-header-badges .author-badge-btn img { width: 72%; height: 72%; border-radius: 0; }


.post-header--grid .post-header-badges { grid-row: 1; }
.post-header--grid .post-follow-btn-action { grid-row: 2; }
.post-header--grid .post-menu-wrapper      { grid-row: 2; }
.post-header--grid .post-author-name-link  { grid-row: 1; align-self: center; }
.post-header--grid .post-status-line       { grid-row: 2; align-self: center; }
.post-header--grid .author-badge-btn .badge-art {
  background: none; border: none;
}
.post-header--grid .author-badge-btn .badge-art img { width: 86%; height: 86%; }

.post-header--grid { grid-template-rows: 28px 28px; row-gap: 2px; }
.post-header--grid .avatar-sm,
.post-header--grid .avatar-placeholder { width: 58px; height: 58px; font-size: 20px; }


.post-header--grid .author-name { font-size: 15px; }


.post-header--grid .post-header-top {
  grid-column: 2 / 5; grid-row: 1;
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.post-header--grid .post-header-top .post-author-name-link {
  grid-column: auto; grid-row: auto; flex: 1 1 auto; min-width: 0;
}
.post-header--grid .post-header-top .post-header-badges {
  grid-column: auto; grid-row: auto; justify-self: auto;
  flex: 0 0 auto; width: auto; min-width: 0;
  max-width: 140px;              
  justify-content: flex-start;
}
.post-header--grid .post-header-top .post-header-badges > :first-child { margin-inline-start: 0; }


.post-header--grid .post-follow-btn-action {
  border: none; background: var(--primary-light); color: var(--primary);
  font-weight: 700;
}
.post-header--grid .post-follow-btn-action:active { filter: brightness(1.15); }
.post-header--grid .post-menu-btn {
  border: none; background: var(--primary-bg); color: var(--text-dim);
  box-sizing: border-box;
}
.post-header--grid .post-menu-wrapper { align-self: center; display: flex; }


.post-header--grid .author-name { line-height: 1.2; position: relative; top: 1.5px; }
.post-header--grid .post-rank-inline { position: relative; top: 1px; }


.post-header--grid .post-follow-btn-action {
  background: none; border: none; min-width: 0;
  padding: 0 2px; height: 28px;
  color: var(--primary); font-size: 13px; font-weight: 700;
}
.post-header--grid .post-follow-btn-action:active { opacity: 0.6; filter: none; }
.post-header--grid .post-menu-btn {
  background: none; border: none; color: var(--text-dim);
}
.post-header--grid .post-menu-btn:active { opacity: 0.6; }


.post-header--grid .post-menu-wrapper { margin-inline-start: 0; }


.post-header--grid .post-follow-btn-action.is-flash {
  color: var(--text-muted); pointer-events: none;
  animation: follow-flash 1.4s ease forwards;
}
@keyframes follow-flash {
  0%   { transform: scale(1);    opacity: 1; }
  14%  { transform: scale(1.1);  opacity: 1; }
  28%  { transform: scale(1);    opacity: 1; }
  72%  { opacity: 1; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .post-header--grid .post-follow-btn-action.is-flash { animation: none; }
}


.post-header--grid { grid-template-rows: 24px 24px; }
.post-header--grid .avatar-sm,
.post-header--grid .avatar-placeholder { width: 50px; height: 50px; font-size: 18px; }
.post-header--grid .post-header-badges .author-badge-btn { width: 24px; height: 24px; }
.post-header--grid .post-header-top .post-header-badges {
  gap: 10px;
  max-width: 114px;   
}
.post-header--grid .post-follow-btn-action,
.post-header--grid .post-menu-btn { height: 24px; }
.post-header--grid .post-menu-btn { width: 24px; }

.post-header--grid .post-menu-btn { position: relative; }
.post-header--grid .post-menu-btn::after {
  content: ''; position: absolute; inset: calc((24px - var(--tap-min)) / 2);
}


.post-header-badges.has-less {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px);
  mask-image: linear-gradient(to right, transparent 0, #000 22px);
}
.post-header-badges.has-less.has-more {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 26px), transparent 100%);
}


.post-card--feed .post-text { margin-top: 10px; margin-bottom: 10px; } 
.post-diary-block { margin: 8px var(--card-padding) 0; }

.post-diary-toggle {
  background: none; border: none; border-radius: 0;
  padding: 4px 0; gap: 7px;
  color: var(--text-dim); font-size: 13.5px; font-weight: 600;
}
.post-diary-toggle:hover { color: var(--text); }
.post-diary-toggle svg { flex-shrink: 0; }
.post-diary-chevron { color: var(--text-muted); transition: transform 0.2s; }
.post-diary-chevron.is-open { transform: rotate(180deg); }

.post-actions {
  padding: 0 calc(var(--card-padding) - 8px);
  margin-top: 8px;
}
.post-actions .action-btn { min-height: 44px; }

.post-actions .action-btn > span:not(.reaction-face),
.post-actions .post-views,
.post-actions .post-actions-time { position: relative; top: 1px; }


.feed-page .posts-list .post-actions { padding-inline: calc(var(--card-padding) - 8px); }


.post-views--btn {
  background: none; border: none; cursor: pointer; font-family: inherit;
  min-height: 44px; border-radius: var(--radius-pill);
}
.post-views--btn:active { opacity: 0.6; }


.viewers-list { display: flex; flex-direction: column; }
.viewers-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 2px; min-height: 52px;
  color: var(--text); text-decoration: none;
}
.viewers-row + .viewers-row { border-top: 1px solid var(--border-light); }
.viewers-ava { width: 38px; height: 38px; border-radius: var(--radius-pill); object-fit: cover; flex-shrink: 0; }
.viewers-ava--ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--text-dim); font-weight: 700;
}
.viewers-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewers-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.viewers-guests {
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border-light);
  font-size: 12.5px; color: var(--text-muted); text-align: center; line-height: 1.5;
}
.viewers-guests b { color: var(--text-dim); }
.viewers-guests-note { opacity: 0.75; margin-top: 3px; }


.diary-sheet { padding-bottom: 6px; }
.diary-sheet-rows { display: flex; flex-direction: column; }
.diary-sheet-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 2px; font-size: 14px;
}
.diary-sheet-row + .diary-sheet-row { border-top: 1px solid var(--border-light); }
.diary-sheet-row span { color: var(--text-muted); flex-shrink: 0; }
.diary-sheet-row b { font-weight: 600; text-align: end; color: var(--text); }
.diary-sheet-notes { font-size: 14px; line-height: 1.55; color: var(--text-dim); white-space: pre-wrap; padding: 0 2px; }


.post-actions { margin-top: 0; }
.post-card--feed,
.feed-page .posts-list .post-card { padding-bottom: 0; }


.diary-sheet-photos {
  display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x;
}
.diary-sheet-photos::-webkit-scrollbar { display: none; }
.diary-sheet-photo {
  flex: 0 0 auto; width: 112px; height: 112px; padding: 0; border: none;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); cursor: pointer;
}
.diary-sheet-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.diary-sheet-map {
  display: block; position: relative; margin: 12px 0 4px;
  height: 160px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg); text-decoration: none;
}
.diary-sheet-map > *:first-child { width: 100%; height: 100%; }
.diary-sheet-map-ph { width: 100%; height: 100%; background: var(--bg); }
.diary-sheet-map-link {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--radius-pill);
  background: var(--card); color: var(--text); font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow);
}

.diary-sheet-lightbox .media-lightbox { z-index: 3100; }


.map-preview { width: 100%; height: 100%; touch-action: none; }
.map-preview > * { width: 100% !important; height: 100% !important; }
.diary-sheet-map--tall { height: 220px; margin-top: 2px; }
.place-sheet-nocoords { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 12px; }
.place-sheet-open {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none;
}




.record-sheet-list { display: flex; flex-direction: column; }
.record-sheet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 6px; min-height: 56px; border-radius: var(--radius-sm);
}
.record-sheet-row + .record-sheet-row { border-top: 1px solid var(--border-light); }
.record-sheet-row.is-this { background: var(--primary-bg); border-top-color: transparent; }
.record-sheet-row.is-this + .record-sheet-row { border-top-color: transparent; }
.record-sheet-rank {
  width: 22px; flex-shrink: 0; display: inline-flex; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-muted);
}
.record-sheet-ava { width: 38px; height: 38px; border-radius: var(--radius-pill); object-fit: cover; flex-shrink: 0; }
.record-sheet-ava--ph { display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text-dim); font-weight: 700; }
.record-sheet-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.record-sheet-who b { font-size: 14.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-sheet-who span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-sheet-kg { font-size: 15px; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.record-sheet-all {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; margin-top: 10px;
  color: var(--primary); font-weight: 700; font-size: 14px; text-decoration: none;
}

button.post-record-badge { border: none; cursor: pointer; font-family: inherit; }


.catch-sheet-hero { display: flex; align-items: center; gap: 12px; padding: 2px 2px 10px; }
.catch-sheet-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.catch-sheet-thumb--ph { display: inline-flex; align-items: center; justify-content: center; background: var(--bg); color: var(--primary); }
.catch-sheet-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.catch-sheet-what b { font-size: 18px; font-weight: 800; color: var(--text); }
.catch-sheet-what span { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catch-sheet-kg { font-size: 22px; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.catch-sheet-facts { border-top: 1px solid var(--border-light); }
.catch-sheet-first {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--primary-bg); color: var(--text); font-size: 14px; font-weight: 600;
}
.catch-sheet-first svg { color: var(--primary); flex-shrink: 0; }
.catch-sheet-standing { display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 4px; }
.catch-sheet-standing-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--text-dim); }
.catch-sheet-standing-line b { color: var(--text); }
.catch-sheet-record { font-size: 12.5px; color: var(--text-muted); }
.catch-sheet-bar { height: 6px; border-radius: var(--radius-pill); background: var(--bg); overflow: hidden; }
.catch-sheet-bar i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--primary); }
.catch-sheet-top { margin-top: 8px; }


.rank-sheet-hero { display: flex; align-items: center; gap: 12px; padding: 2px 2px 12px; }
.rank-sheet-badge {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-bg); font-size: 28px;
}
.rank-sheet-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank-sheet-what b { font-size: 18px; font-weight: 800; color: var(--text); }
.rank-sheet-what span { font-size: 12.5px; color: var(--text-muted); }
.rank-sheet-pts { display: inline-flex; align-items: center; gap: 4px; font-size: 22px; font-weight: 800; color: var(--text); flex-shrink: 0; }
.rank-sheet-next { display: flex; flex-direction: column; gap: 8px; padding: 0 2px 4px; }
.rank-sheet-next-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--text-dim); }
.rank-sheet-next-line b { color: var(--primary); font-weight: 800; }
.rank-sheet-places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rank-sheet-place {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 10px 6px; border-radius: var(--radius-sm); background: var(--bg);
}
.rank-sheet-place b { font-size: 20px; font-weight: 800; color: var(--text); }
.rank-sheet-place span { font-size: 12px; color: var(--text-muted); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rank-sheet-row { text-decoration: none; }
.rank-sheet-row-pts { font-size: 13.5px; font-weight: 700; color: var(--text-dim); flex-shrink: 0; }


.badge-sheet { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 4px 0; }
.badge-sheet-art { width: 88px; height: 88px; object-fit: contain; margin: 4px 0 10px; }
.badge-sheet-title { font-size: 19px; font-weight: 800; color: var(--text); }
.badge-sheet-text { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.badge-sheet-how {
  width: 100%; box-sizing: border-box; margin-top: 14px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--primary-bg);
  display: flex; flex-direction: column; gap: 4px; text-align: start;
}
.badge-sheet-how span { font-size: 12px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--text-muted); }
.badge-sheet-how b { font-size: 14px; font-weight: 600; color: var(--text); }
.badge-sheet-allbtn { background: none; border: none; cursor: pointer; font-family: inherit; width: 100%; }
.badge-catalog-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  color: var(--primary); font-weight: 700; font-size: 14px; padding: 0 2px;
}
.badge-catalog-row { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: var(--radius-sm); }
.badge-catalog-row + .badge-catalog-row { border-top: 1px solid var(--border-light); }
.badge-catalog-row.is-this { background: var(--primary-bg); border-top-color: transparent; }
.badge-catalog-row img { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.badge-catalog-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.badge-catalog-row b { font-size: 14px; font-weight: 700; color: var(--text); }
.badge-catalog-row span span { font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }


.repost-sheet--split > .viewers-list,
.repost-sheet--split > .badge-catalog {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  margin: 0 -4px; padding: 0 4px;
}
.repost-sheet--split > .viewers-guests { margin-top: 0; }


.league-icon { display: inline-block; vertical-align: -3px; object-fit: contain; }
.rank-sheet-badge .league-icon { vertical-align: middle; }
.rank-sheet-next-name { display: inline-flex; align-items: center; gap: 5px; }
.rank-sheet-row-pts { display: inline-flex; align-items: center; gap: 5px; }
.rating-league-chip { display: inline-flex; align-items: center; gap: 4px; }
.rating-city .league-icon { margin-right: 4px; vertical-align: -3px; }


.post-gallery-meta-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.20) 50%, transparent);
  pointer-events: none;
}
.post-gallery-meta.post-gallery-meta--scroll {
  pointer-events: auto; background: none;
  padding-top: 6px; overscroll-behavior-x: contain;
}
.post-gallery-meta--scroll > * { flex-shrink: 0; }
.post-gallery-meta--scroll .post-location-text { max-width: 60vw; }


.ui-icon { display: block; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.app-header .ui-icon { width: 24px; height: 24px; }
.tab-bar .ui-icon { width: 26px; height: 26px; }
.tab-bar .tab-item:not(.active) .ui-icon { filter: grayscale(0.6); opacity: 0.7; }

html:root .hdr-btn--create:has(> .ui-icon) { border: 0; box-shadow: none; background: none; }


html:root .tab-bar > .tab-item--feed .tab-icon, html:root .tab-bar--compact > .tab-item--feed .tab-icon {
  width: auto; height: auto; margin-top: 0; border-radius: 0; display: inline-flex;
  background: none; color: inherit; box-shadow: none;
}
html:root .tab-bar > .tab-item--feed.active, html:root .tab-bar > .tab-item--feed.active .tab-icon { color: var(--text); }
.tab-bar--float { overflow: visible; }
.tab-bar--float > .tab-item { position: relative; z-index: 1; }
.tab-blob {
  position: absolute; left: 0; top: -18px; width: 54px; height: 54px; border-radius: 50%; z-index: 0;
  background: var(--bg-warm); box-shadow: var(--shadow-md); pointer-events: none; will-change: transform;
  transform-origin: 50% 50%; transition: opacity 0.2s var(--ease-out);
}
.tab-bar--compact .tab-blob { top: -12px; width: 46px; height: 46px; }
html:root .tab-bar .tab-item { --wave-delay: 0ms; }
@keyframes tab-wave {
  0% { transform: none; } 40% { transform: translateY(-9px) scale(1.32); } 70% { transform: translateY(1px) scale(0.96); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html:root .tab-bar .tab-item .tab-icon {
    transition: transform 420ms var(--ease-spring) var(--wave-delay); transform-origin: 50% 60%;
  }
  
  html:root .tab-bar .tab-item.active .tab-icon { transform: translateY(-8px) scale(1.38); animation: none; }
  html:root .tab-bar--compact .tab-item.active .tab-icon { transform: translateY(-11px) scale(1.3); }
  html:root .tab-bar .tab-item.tab-wave .tab-icon { animation: tab-wave 420ms var(--ease-out) var(--wave-delay) both; }
  html:root .tab-bar .tab-item:not(.active):active .tab-icon { transform: scale(0.88); transition-delay: 0ms; }
}
@media (prefers-reduced-motion: reduce) {
  html:root .tab-bar .tab-item.active .tab-icon { transform: translateY(-8px) scale(1.3); }
}


.daily-widget__tile {
  position: relative; display: block; width: 100%; padding: var(--space-2) var(--space-3);
  background: none; border: 0; border-radius: var(--radius-sm); color: var(--text);
  font-weight: 700; font-size: 14px; text-align: center; cursor: pointer;
}
.daily-widget__tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }




[dir='rtl'] .icon-arrow-left,
[dir='rtl'] .icon-arrow-right,
[dir='rtl'] .icon-chevron-left,
[dir='rtl'] .icon-chevron-right,
[dir='rtl'] .back-btn svg,
[dir='rtl'] .page-header__back svg,
[dir='rtl'] .hdr-back svg,
[dir='rtl'] .carousel-arrow svg,
[dir='rtl'] .nav-arrow svg {
  transform: scaleX(-1);
}


[dir='rtl'] .progress-bar__fill,
[dir='rtl'] .xp-bar__fill,
[dir='rtl'] .bite-bar__fill {
  transform-origin: right center;
}



[dir='rtl'] .search-input__icon,
[dir='rtl'] .input-icon-left { left: auto; right: 12px; }
[dir='rtl'] .search-input__clear,
[dir='rtl'] .input-icon-right { right: auto; left: 12px; }
[dir='rtl'] .search-input input,
[dir='rtl'] .input-with-icon input { padding-inline-start: 38px; padding-inline-end: 12px; }


[dir='rtl'] .nav-badge,
[dir='rtl'] .hdr-badge,
[dir='rtl'] .unread-badge { right: auto; left: -4px; }


[dir='rtl'] .dropdown-menu,
[dir='rtl'] .avatar-menu,
[dir='rtl'] .lang-menu,
[dir='rtl'] .context-menu { right: auto; left: 0; }


[dir='rtl'] .toast-container { right: auto; left: 16px; }


[dir='rtl'] .drawer--left { left: auto; right: 0; }
[dir='rtl'] .drawer--right { right: auto; left: 0; }



[dir='rtl'] .username,
[dir='rtl'] .user-handle,
[dir='rtl'] .fish-weight,
[dir='rtl'] .fish-length,
[dir='rtl'] .stat-value,
[dir='rtl'] .phone,
[dir='rtl'] .url,
[dir='rtl'] code {
  unicode-bidi: isolate;
}


[dir='rtl'] time,
[dir='rtl'] .timestamp { direction: ltr; unicode-bidi: isolate; display: inline-block; }


[dir='rtl'] input[type='tel'],
[dir='rtl'] input[type='email'],
[dir='rtl'] input[type='url'],
[dir='rtl'] input[type='number'] { direction: ltr; text-align: start; }



[dir='rtl'] body { line-height: 1.75; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { line-height: 1.5; }



@media (max-width: 767px) {
  [dir='rtl'] .header-avatar-fixed {
    right: auto;
    left: 12px;
  }
  [dir='rtl'] .header-fab-fixed {
    right: auto;
    left: calc(12px + var(--hdr-btn-right) + var(--hdr-gap));
  }
  [dir='rtl'] .header-msg-fixed {
    right: auto;
    left: calc(12px + 2 * (var(--hdr-btn-right) + var(--hdr-gap)));
  }
  
  [dir='rtl'] .header-msg-fixed .hdr-badge,
  [dir='rtl'] .header-fab-fixed .hdr-badge {
    right: auto;
    left: -5px;
  }
}
