/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap");
*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}
::before,
::after {
  --tw-content: '';
}
/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/
html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}
/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/
body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}
/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/
hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}
/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}
/*
Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
/*
Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
  color: inherit;
  text-decoration: inherit;
}
/*
Add the correct font weight in Edge and Safari.
*/
b,
strong {
  font-weight: bolder;
}
/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}
/*
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}
/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/
table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}
/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}
/*
Remove the inheritance of text transform in Edge and Firefox.
*/
button,
select {
  text-transform: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/
button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}
/*
Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
  outline: auto;
}
/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/
:-moz-ui-invalid {
  box-shadow: none;
}
/*
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}
/*
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/*
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}
/*
Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
  padding: 0;
}
legend {
  padding: 0;
}
ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/
textarea {
  resize: vertical;
}
/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/
input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}
/*
Set the default cursor for buttons.
*/
button,
[role="button"] {
  cursor: pointer;
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}
/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/
img,
video {
  max-width: 100%;
  height: auto;
}
/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.container{
  width: 100%;
}
@media (min-width: 640px){
  .container{
    max-width: 640px;
  }
}
@media (min-width: 768px){
  .container{
    max-width: 768px;
  }
}
@media (min-width: 1024px){
  .container{
    max-width: 1024px;
  }
}
@media (min-width: 1280px){
  .container{
    max-width: 1280px;
  }
}
@media (min-width: 1536px){
  .container{
    max-width: 1536px;
  }
}
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.\!visible{
  visibility: visible !important;
}
.visible{
  visibility: visible;
}
.fixed{
  position: fixed;
}
.mt-1{
  margin-top: 0.25rem;
}
.mt-2{
  margin-top: 0.5rem;
}
.mt-3{
  margin-top: 0.75rem;
}
.mt-4{
  margin-top: 1rem;
}
.block{
  display: block;
}
.flex{
  display: flex;
}
.grid{
  display: grid;
}
.\!hidden{
  display: none !important;
}
.hidden{
  display: none;
}
.min-h-\[110px\]{
  min-height: 110px;
}
.min-h-\[120px\]{
  min-height: 120px;
}
.w-full{
  width: 100%;
}
.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.cursor-pointer{
  cursor: pointer;
}
.resize{
  resize: both;
}
.list-disc{
  list-style-type: disc;
}
.flex-col{
  flex-direction: column;
}
.flex-wrap{
  flex-wrap: wrap;
}
.items-center{
  align-items: center;
}
.justify-center{
  justify-content: center;
}
.justify-between{
  justify-content: space-between;
}
.gap-2{
  gap: 0.5rem;
}
.gap-3{
  gap: 0.75rem;
}
.gap-4{
  gap: 1rem;
}
.space-y-1 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-5 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.whitespace-pre-wrap{
  white-space: pre-wrap;
}
.rounded-2xl{
  border-radius: 1rem;
}
.border{
  border-width: 1px;
}
.border-\[color\:var\(--border\)\]{
  border-color: var(--border);
}
.bg-\[rgba\(88\2c 101\2c 242\2c 0\.12\)\]{
  background-color: rgba(88,101,242,0.12);
}
.px-4{
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-3{
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4{
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-8{
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pl-5{
  padding-left: 1.25rem;
}
.text-center{
  text-align: center;
}
.text-2xl{
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-lg{
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm{
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl{
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs{
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-semibold{
  font-weight: 600;
}
.text-emerald-300{
  --tw-text-opacity: 1;
  color: rgb(110 231 183 / var(--tw-text-opacity, 1));
}
.text-rose-400{
  --tw-text-opacity: 1;
  color: rgb(251 113 133 / var(--tw-text-opacity, 1));
}
.text-slate-100{
  --tw-text-opacity: 1;
  color: rgb(241 245 249 / var(--tw-text-opacity, 1));
}
.underline{
  text-decoration-line: underline;
}
.filter{
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-2: #0f172a;
  --surface: #111827;
  --surface-2: #1f2937;
  --surface-3: #0b1226;
  --border: #1f2a44;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --accent: #5865f2;
  --accent-2: #7a86ff;
  --accent-glow: rgba(88, 101, 242, 0.18);
  --success: #22c55e;
  --warning: #f97316;
  --danger: #f43f5e;
  --topbar-height: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  overscroll-behavior-y: none;
}

html {
  scrollbar-color: rgba(148, 163, 184, 0.55) rgba(9, 13, 26, 0.95);
}

html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: rgba(9, 13, 26, 0.95);
}

html::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  border: 2px solid rgba(9, 13, 26, 0.95);
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.65);
}

body {
  font-family: "IBM Plex Sans JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Meiryo", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(88, 101, 242, 0.2), transparent 60%),
    radial-gradient(800px 500px at 90% -20%, rgba(14, 116, 144, 0.16), transparent 55%),
    linear-gradient(180deg, #0b1020 0%, #0b1226 60%, #0a0f1f 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.65;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  width: 100%;
}

.main-content > :first-child {
  margin-top: 0.4rem;
}

.main-content > .notifications-page {
  margin-top: -2rem;
}

::-moz-selection {
  background: rgba(88, 101, 242, 0.35);
  color: #f8fafc;
}

::selection {
  background: rgba(88, 101, 242, 0.35);
  color: #f8fafc;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(148, 163, 184, 0.12), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(94, 234, 212, 0.08), transparent 40%),
    repeating-linear-gradient(
      135deg,
      rgba(148, 163, 184, 0.03),
      rgba(148, 163, 184, 0.03) 1px,
      transparent 1px,
      transparent 6px
    );
  opacity: 0.5;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  margin: 0 auto;
  max-width: 960px;
  padding: 0 1.5rem;
}

.text-muted {
  color: var(--muted);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 13, 26, 0.7);
  border-bottom: 1px solid rgba(31, 42, 68, 0.8);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease,
    background 240ms ease;
  will-change: transform, opacity;
}

body[data-static-topbar="true"] .topbar {
  transform: none !important;
  opacity: 1 !important;
  transition: none;
}

.footer {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(31, 42, 68, 0.8);
  background: rgba(9, 13, 26, 0.8);
}

.footer-links {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-sep {
  color: rgba(148, 163, 184, 0.6);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.admin-table {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.admin-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 160px;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.admin-table-row.admin-table-wide {
  grid-template-columns: minmax(0, 1fr) 80px 80px 80px 180px;
}

.admin-table-row.admin-table-stats {
  grid-template-columns: minmax(0, 1fr) repeat(6, 72px) 90px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.admin-metric {
  border-radius: 16px;
  border: 1px solid rgba(88, 101, 242, 0.18);
  background: rgba(15, 23, 42, 0.55);
  padding: 0.7rem 0.9rem;
  display: grid;
  gap: 0.35rem;
}

.admin-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  text-transform: none;
}

.admin-flag.warning {
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
}

.admin-flag.danger {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

.admin-discord-controls {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.admin-discord-actions {
  display: flex;
  align-items: flex-end;
}

.admin-discord-message {
  display: grid;
  gap: 0.6rem;
}

.admin-discord-filters {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.admin-discord-filter {
  display: grid;
  gap: 0.35rem;
}

.admin-discord-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.admin-discord-toggle input {
  accent-color: #5865f2;
}

.admin-discord-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.admin-discord-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-bot-badge {
  margin-left: 0.4rem;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.2);
  color: #c7d2fe;
}

.admin-discord-content {
  font-size: 0.85rem;
  color: var(--text);
  white-space: pre-wrap;
}

.admin-media-actions {
  display: grid;
  gap: 0.5rem;
}

.admin-media-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-media-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.08);
}

.admin-discord-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-discord-image {
  width: 180px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.6);
}

.admin-discord-video {
  width: 220px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.6);
}

.admin-discord-file {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  font-size: 0.75rem;
  text-decoration: none;
}

.admin-discord-file:hover {
  border-color: rgba(88, 101, 242, 0.6);
}

@media (max-width: 640px) {
  .admin-discord-controls {
    grid-template-columns: 1fr;
  }

  .admin-discord-filters {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-discord-actions {
    width: 100%;
  }
}

.admin-table-head {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.7);
}

.contact-card {
  display: grid;
  gap: 0.6rem;
}

.contact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.contact-header-main {
  display: grid;
  gap: 0.2rem;
}

.contact-name {
  font-weight: 600;
  color: var(--text);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.contact-subject {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.contact-body {
  font-size: 0.85rem;
  color: var(--text);
  white-space: pre-wrap;
}

.contact-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.brand {
  font-family: "Space Grotesk", "M PLUS 1p", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #c7d2fe, #7c83ff, #38bdf8);
  -webkit-background-clip: text;
  color: transparent;
}

.mobile-topbar {
  display: none;
}

.desktop-topbar {
  display: block;
}

.mobile-bottom-bar,
.mobile-fab {
  display: none;
}

.mobile-menu-button {
  width: 38px;
  height: 38px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease, box-shadow 160ms ease;
}

.mobile-menu-button:hover {
  background: transparent;
  color: var(--text);
}

.mobile-menu-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.4);
}

.mobile-menu-icon {
  width: 20px;
  height: 20px;
}

.mobile-menu-overlay {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  animation: mobileMenuOverlayIn 180ms ease;
}

.mobile-menu-overlay.is-closing {
  animation: mobileMenuOverlayOut 180ms ease forwards;
}

.mobile-menu-panel {
  width: min(300px, 86vw);
  height: 100%;
  max-height: 100%;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 0 18px 18px 0;
  padding: 1.1rem 1rem;
  overflow-y: auto;
  transform: translateX(0);
  animation: mobileMenuIn 220ms ease;
  will-change: transform;
}

.mobile-menu-panel.is-closing {
  animation: mobileMenuOut 220ms ease forwards;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

@keyframes mobileMenuIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes mobileMenuOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes mobileMenuOverlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mobileMenuOverlayOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.mobile-menu-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.mobile-menu-list,
.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
  text-align: left;
  font-size: 0.85rem;
  transition: background 160ms ease, color 160ms ease;
}

.mobile-menu-item:hover {
  background: rgba(88, 101, 242, 0.16);
  color: #f8fafc;
}

.mobile-menu-item-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 160ms ease;
}

.mobile-menu-item:hover .mobile-menu-item-icon {
  color: #e2e8f0;
}

.mobile-menu-divider {
  height: 1px;
  background: rgba(51, 65, 85, 0.6);
  margin-top: 0.85rem;
}

.mobile-menu-legal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.mobile-menu-legal-item {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.2rem 0.1rem;
  text-align: left;
  transition: color 160ms ease;
}

.mobile-menu-legal-item:hover {
  color: #f8fafc;
}

.nav-link {
  color: var(--muted);
  transition: color 160ms ease;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.nav-link:hover {
  color: var(--text);
}

.nav-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.6);
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.desktop-nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-chip-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-chip-icon svg {
  width: 100%;
  height: 100%;
}

.post-compose-content {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.post-compose-icon {
  width: 16px;
  height: 16px;
}

.header-action-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-action-icon svg {
  width: 100%;
  height: 100%;
}

.nav-chip:hover {
  color: var(--text);
  background: rgba(88, 101, 242, 0.08);
}

.nav-chip.active {
  color: var(--text);
  background: rgba(88, 101, 242, 0.2);
}

.nav-chip.disabled {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 980px) {
  .desktop-nav {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .desktop-nav-main {
    flex-wrap: nowrap;
    gap: 0.35rem;
  }

  .nav-chip {
    padding: 0.35rem 0.55rem;
  }

  .nav-chip-label {
    display: none;
  }

  .post-compose-button {
    padding: 0.3rem 0.6rem;
  }

  .post-compose-label {
    display: none;
  }

  .user-chip-name {
    display: none;
  }

  .logout-label {
    display: none;
  }

  .login-label {
    display: none;
  }

  .logout-button {
    padding: 0.3rem 0.6rem;
  }
}

.guild-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
}

.guild-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.2);
  background: rgba(10, 16, 30, 0.75);
  overflow-x: auto;
  scrollbar-width: none;
}

.guild-strip::-webkit-scrollbar {
  display: none;
}

.guild-strip::before,
.guild-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
}

.guild-strip::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 16, 30, 0.95), rgba(10, 16, 30, 0));
}

.guild-strip::after {
  right: 0;
  background: linear-gradient(270deg, rgba(10, 16, 30, 0.95), rgba(10, 16, 30, 0));
}

.guild-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.15);
  background: rgba(15, 23, 42, 0.75);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease,
    box-shadow 160ms ease;
  white-space: nowrap;
}

.guild-chip span {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guild-chip-global {
  padding: 0.35rem 0.6rem;
  gap: 0;
  justify-content: center;
  min-width: 2.6rem;
}

.guild-chip:hover {
  color: var(--text);
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
  box-shadow: 0 6px 14px rgba(8, 12, 24, 0.35);
}

.guild-chip.active {
  color: #e0e7ff;
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.22);
  box-shadow: 0 10px 18px rgba(8, 12, 24, 0.35);
}

.guild-picker-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(88, 101, 242, 0.2);
  background: rgba(15, 23, 42, 0.8);
  color: #c7d2fe;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease,
    box-shadow 160ms ease;
}

.guild-picker-toggle:hover {
  border-color: rgba(88, 101, 242, 0.6);
  background: rgba(88, 101, 242, 0.14);
  color: #e0e7ff;
  box-shadow: 0 8px 18px rgba(8, 12, 24, 0.35);
}

.guild-picker-toggle.active {
  border-color: rgba(88, 101, 242, 0.8);
  color: #eef2ff;
}

.guild-picker-icon {
  width: 18px;
  height: 18px;
}

.guild-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 20, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  z-index: 260;
}

.guild-picker-panel {
  width: min(520px, 92vw);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-radius: 22px;
  border: 1px solid rgba(88, 101, 242, 0.25);
  background: linear-gradient(150deg, rgba(15, 23, 42, 0.98), rgba(11, 18, 36, 0.98));
  padding: 1.1rem 1.1rem 1.2rem;
  animation: guild-picker-in 220ms ease;
  overflow: hidden;
}

.guild-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
}

.guild-picker-count {
  font-size: 0.75rem;
  color: var(--muted);
}

.guild-picker-search .input {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.guild-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-right: 0.2rem;
}

.guild-picker-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.guild-picker-item:hover {
  color: var(--text);
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.14);
}

.guild-picker-item.active {
  color: #e0e7ff;
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.2);
}

.guild-picker-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
}

.guild-picker-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-picker-empty {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px dashed rgba(88, 101, 242, 0.25);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.guild-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  -o-object-fit: cover;
     object-fit: cover;
  background: rgba(15, 23, 42, 0.9);
}

.guild-icon-global {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #667084;
  transform: translateY(1.5px);
}

.guild-chip.active .guild-icon-global,
.guild-picker-item.active .guild-icon-global {
  color: #9fb0d8;
}

.guild-icon-global .global-bubble {
  fill: currentColor;
  stroke: none;
}

.guild-icon-global .global-wifi {
  fill: none;
  stroke: var(--bg-2);
  stroke-width: 1.4;
}

.guild-icon-global * {
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes guild-picker-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.guild-icon-lg {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.9);
  -o-object-fit: cover;
     object-fit: cover;
}

.guild-icon-fallback {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(88, 101, 242, 0.25);
  color: #c7d2fe;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.nav-badge {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.7);
  color: #e2e8f0;
  font-size: 0.65rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.card {
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
}

.card-soft {
  background: rgba(15, 23, 42, 0.75);
  border: 1px dashed rgba(148, 163, 184, 0.2);
}

.card-hover {
  transition: box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.card-hover:hover {
  border-color: rgba(88, 101, 242, 0.4);
  background: linear-gradient(160deg, rgba(24, 33, 52, 0.98), rgba(19, 28, 48, 0.94));
}

@media (hover: none) and (pointer: coarse) {
  .card-hover:hover,
  .card-hover:active {
    border-color: var(--border);
    background: linear-gradient(160deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.9));
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  background: rgba(88, 101, 242, 0.08);
  color: #c7d2fe;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  text-transform: uppercase;
}

.post-context-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-context-badge.global {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
}

.post-context-badge.guild {
  border-color: rgba(88, 101, 242, 0.45);
  background: rgba(88, 101, 242, 0.12);
  color: #dbeafe;
}

.button-primary,
.button-secondary,
.button-outline,
.button-ghost,
.button-danger {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 40px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
}

.button-compact {
  padding: 0.3rem 0.85rem;
  min-height: 32px;
  font-size: 0.8rem;
}

.button-primary {
  background: linear-gradient(135deg, #5865f2, #7a86ff);
  color: white;
}

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


.button-danger {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  color: white;
}

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

.button-secondary {
  background: rgba(88, 101, 242, 0.1);
  color: #c7d2fe;
  border: 1px solid rgba(88, 101, 242, 0.3);
}

.button-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(15, 23, 42, 0.6);
}

.button-outline:hover {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
  color: var(--text);
}

.button-ghost {
  color: var(--muted);
}

.button-ghost:hover {
  color: var(--text);
}

.input,
.textarea,
.file-input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.8);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input:focus,
.textarea:focus,
.file-input:focus {
  outline: none;
  border-color: rgba(88, 101, 242, 0.8);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.14);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.meta-row {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.search-shell {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-bar-wrap {
  position: relative;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.45);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-input-wrap:focus-within {
  border-color: rgba(88, 101, 242, 0.75);
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.18);
}

.search-input {
  font-size: 1rem;
  padding-left: 2.4rem;
  padding-right: 2.6rem;
  min-height: 44px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.search-input:focus {
  border-color: transparent;
  box-shadow: none;
}

.search-input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.search-clear:hover {
  color: var(--text);
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
}

.search-clear-icon {
  width: 14px;
  height: 14px;
}

.search-gear {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.search-gear:hover {
  color: var(--text);
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
}

.search-gear-icon {
  width: 20px;
  height: 20px;
}

.search-gear-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.95);
  color: #f8fafc;
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 18px;
  z-index: 60;
  overflow: hidden;
}

.search-dropdown-section {
  padding: 0.75rem;
}

.search-dropdown-section + .search-dropdown-section {
  border-top: 1px solid rgba(51, 65, 85, 0.4);
}

.search-dropdown-title {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.search-empty {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.2rem 0.2rem 0.4rem;
}

.search-suggest-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-suggest-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-suggest-group-title {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 0.35rem;
}

.search-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.65);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.search-suggest-item:hover {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
}

.search-suggest-strong {
  font-weight: 600;
  color: inherit;
}

.search-suggest-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.search-history-remove {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.search-history-remove:hover {
  color: var(--text);
  border-color: rgba(248, 113, 113, 0.65);
  background: rgba(248, 113, 113, 0.12);
}

.search-history-icon {
  width: 12px;
  height: 12px;
}

.search-suggest-icon {
  width: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.search-suggest-text {
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
}

.search-suggest-type {
  font-size: 0.65rem;
  color: var(--muted);
}

.search-filter-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  z-index: 320;
  animation: searchFilterOverlayIn 180ms ease;
}

.search-filter-panel {
  width: min(520px, 96vw);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 22px;
  padding: 1.1rem 1.2rem 1.25rem;
  animation: searchFilterPanelIn 220ms ease;
  will-change: transform, opacity;
}

.search-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.search-filter-title {
  font-weight: 600;
}

.search-filter-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-filter-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-scope-chip {
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.6);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.search-scope-chip.active {
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.2);
  color: #e0e7ff;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.6);
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  color: var(--text);
}

.filter-chip input {
  accent-color: #7a86ff;
}

.filter-chip input:checked + span {
  color: #dbeafe;
}

.search-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.search-filter-overlay.is-closing {
  animation: searchFilterOverlayOut 180ms ease forwards;
}

.search-filter-panel.is-closing {
  animation: searchFilterPanelOut 220ms ease forwards;
}

@keyframes searchFilterOverlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes searchFilterOverlayOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes searchFilterPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes searchFilterPanelOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes searchFilterPanelPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes searchFilterPanelPopOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.94) translateY(-6px);
  }
}

.search-highlight {
  font-weight: 700;
  color: inherit;
  background: none;
  border-radius: 0;
  padding: 0;
}

input[type="search"]::-webkit-search-cancel-button {
  display: none;
}

@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .search-filter-overlay {
    background: rgba(3, 6, 15, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: stretch;
    justify-content: center;
    padding: 0.9rem;
  }

  .search-filter-panel {
    width: 100%;
    margin-top: auto;
  }
}

@media (min-width: 641px) and (hover: hover) and (pointer: fine) {
  .search-filter-panel {
    transform-origin: top right;
    animation: searchFilterPanelPopIn 200ms ease;
  }

  .search-filter-panel.is-closing {
    animation: searchFilterPanelPopOut 200ms ease forwards;
  }
}

.image-frame {
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.8);
}

.image-button {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: zoom-in;
  text-align: inherit;
}

.image-button:focus-visible {
  outline: 2px solid rgba(88, 101, 242, 0.8);
  outline-offset: 3px;
  border-radius: 16px;
}

.image-embed {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.image-thumb {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.image-thumb-embed {
  max-width: 100%;
  max-height: 240px;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.image-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: pan-y;
}

.image-carousel:focus-visible {
  outline: 2px solid rgba(88, 101, 242, 0.8);
  outline-offset: 3px;
}

.image-carousel-thumb {
  --carousel-height: 220px;
}

.image-carousel-detail {
  --carousel-height: 360px;
}

@media (max-width: 640px) {
  .image-carousel-thumb {
    --carousel-height: 180px;
  }

  .image-carousel-detail {
    --carousel-height: 280px;
  }
}

.image-carousel-track {
  display: flex;
  height: var(--carousel-height);
  transition: transform 260ms ease;
  will-change: transform;
}

.image-carousel-slide {
  min-width: 100%;
  height: var(--carousel-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-carousel-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 16px;
}

.image-carousel-img-alpha {
  background: #000;
}

.image-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.image-carousel-nav:hover {
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.2);
}

.image-carousel-nav:disabled {
  opacity: 0.45;
  cursor: default;
  border-color: rgba(51, 65, 85, 0.5);
  background: rgba(15, 23, 42, 0.4);
}

.image-overlay-prev:disabled,
.image-overlay-next:disabled {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: rgba(148, 163, 184, 0.5);
  opacity: 0.5;
}

.image-carousel-prev {
  left: 0.6rem;
}

.image-carousel-next {
  right: 0.6rem;
}

.image-carousel-counter {
  position: absolute;
  right: 0.65rem;
  bottom: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(9, 13, 26, 0.7);
  font-size: 0.65rem;
  color: #e2e8f0;
  z-index: 2;
}

.image-preview {
  border-radius: 0;
  border: 1px solid rgba(51, 65, 85, 0.8);
  overflow: hidden;
  background: rgba(9, 13, 26, 0.9);
}

.image-preview-img {
  width: 100%;
  max-height: 320px;
  -o-object-fit: contain;
     object-fit: contain;
}

.image-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.image-preview-card {
  border-radius: 0;
  border: 1px solid rgba(51, 65, 85, 0.8);
  overflow: hidden;
  background: rgba(9, 13, 26, 0.9);
}

.image-preview-card .image-preview-img {
  height: 160px;
  max-height: none;
  -o-object-fit: cover;
     object-fit: cover;
}

.image-upload {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.image-preview-strip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid rgba(51, 65, 85, 0.75);
  background: rgba(9, 13, 26, 0.75);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

.image-preview-strip::-webkit-scrollbar {
  height: 6px;
}

.image-preview-strip::-webkit-scrollbar-track {
  background: transparent;
}

.image-preview-strip::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.image-preview-strip.drag-active {
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.1);
}

.image-upload-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 90px;
  padding: 0.35rem 0;
  border-radius: 14px;
  border: 1px solid rgba(51, 65, 85, 0.75);
  background: rgba(9, 13, 26, 0.75);
}

.image-upload-empty.drag-active .image-upload-add {
  border-color: rgba(88, 101, 242, 0.8);
  background: rgba(88, 101, 242, 0.12);
}

.image-upload-empty.drag-active {
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.08);
}

.image-preview-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(51, 65, 85, 0.65);
  background: rgba(15, 23, 42, 0.85);
}

.image-preview-thumb .image-preview-img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  cursor: pointer;
}

.image-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.88);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.image-preview-remove svg {
  width: 10px;
  height: 10px;
}

.image-preview-remove:hover {
  background: rgba(248, 113, 113, 0.28);
}

.image-preview-remove:active {
  transform: scale(0.92);
}

.image-upload-add {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.55);
  color: rgba(226, 232, 240, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.image-upload-add-empty {
  border-style: dashed;
}

.image-upload-add:hover {
  border-color: rgba(148, 163, 184, 0.9);
  background: rgba(30, 41, 59, 0.65);
}

.image-upload-add:active {
  transform: scale(0.96);
}

.image-upload-add svg {
  width: 20px;
  height: 20px;
}

.image-upload-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0 0.2rem;
}

.file-input-hidden {
  display: none;
}

.post-composer-overlay .textarea {
  min-height: 110px;
  resize: none;
  overflow: hidden;
}

.post-composer-overlay .image-preview-img {
  max-height: 200px;
}

.post-composer-overlay .image-preview-card .image-preview-img {
  height: 120px;
}

.post-composer-overlay .image-preview-actions {
  padding: 0.4rem 0.6rem;
}

.post-composer-overlay .file-input {
  padding: 0.6rem 0.85rem;
}

.post-composer-overlay .image-preview-strip {
  padding: 0.35rem;
  border-radius: 12px;
}

.post-composer-overlay .image-preview-thumb,
.post-composer-overlay .image-upload-add {
  width: 60px;
  height: 60px;
}

.post-composer-overlay .image-upload-empty {
  min-height: 74px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.9);
  -o-object-fit: cover;
     object-fit: cover;
  flex-shrink: 0;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

.avatar-xs {
  width: 22px;
  height: 22px;
  font-size: 0.7rem;
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #c7d2fe;
  background: radial-gradient(circle at 20% 20%, rgba(88, 101, 242, 0.6), transparent 60%),
    rgba(15, 23, 42, 0.9);
  text-transform: uppercase;
}

.notice {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  padding: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
}

.user-chip:hover {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
}

.user-chip-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-menu-button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease;
}

.post-menu-button:hover {
  color: var(--text);
  background: rgba(88, 101, 242, 0.16);
}

.post-menu-button:focus-visible {
  outline: 2px solid rgba(88, 101, 242, 0.7);
  outline-offset: 2px;
}

.post-menu-dots {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  display: inline-block;
  box-shadow: -6px 0 0 currentColor, 6px 0 0 currentColor;
}

.post-user-link:hover .post-user-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content {
  display: grid;
  gap: 0.4rem;
}

.post-paragraph {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--text);
}

.post-heading,
.post-heading-1,
.post-heading-2,
.post-heading-3 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.post-heading-1 {
  font-size: 1.25rem;
  line-height: 1.4;
}

.post-heading-2 {
  font-size: 1.1rem;
  line-height: 1.45;
}

.post-heading-3 {
  font-size: 1rem;
  line-height: 1.5;
}

.post-quote {
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-left: 3px solid rgba(88, 101, 242, 0.55);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  color: var(--text);
  white-space: pre-wrap;
}

.post-inline-code {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(12, 18, 32, 0.7);
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 0.85em;
  color: #e2e8f0;
}

.post-code-block {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(8, 12, 22, 0.85);
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}

.post-link {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-italic {
  font-style: italic;
}

.post-strike {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.post-spoiler {
  display: inline-block;
  padding: 0.05rem 0.3rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.7);
  color: transparent;
  text-shadow: 0 0 8px rgba(148, 163, 184, 0.6);
  transition: color 140ms ease, text-shadow 140ms ease, background 140ms ease;
}

.post-spoiler:hover,
.post-spoiler:focus {
  color: var(--text);
  text-shadow: none;
  background: rgba(30, 41, 59, 0.7);
}

.post-subtext {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.post-list {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.post-list-bullet {
  color: var(--muted);
  line-height: 1.6;
}

.post-list-item {
  min-width: 0;
  flex: 1;
  white-space: pre-wrap;
}

.post-blank {
  height: 0.5rem;
}

.post-content-sm .post-paragraph {
  font-size: 0.85rem;
}

.post-content-sm .post-heading,
.post-content-sm .post-heading-1,
.post-content-sm .post-heading-2,
.post-content-sm .post-heading-3 {
  font-size: 0.9rem;
}

.post-detail {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.post-detail-card {
  padding: 1.5rem 1.6rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(18, 25, 42, 0.98), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(51, 65, 85, 0.7);
}

.post-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.post-detail-back {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
}

.post-detail-back:hover {
  color: #c7d2fe;
}

.post-detail-title {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
}

.post-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.post-detail-body {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-detail-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.post-detail-footer {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

.post-detail-replies {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.post-detail-replies-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.post-detail-replies-count {
  font-size: 0.75rem;
  color: var(--muted);
}

.repost-block {
  border-radius: 18px;
  border: none;
  background: transparent;
  padding: 0.85rem 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.repost-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: -0.5rem;
}

.repost-author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.repost-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(30, 41, 59, 0.7);
}

.repost-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #c7d2fe;
  background: rgba(88, 101, 242, 0.16);
}

.repost-author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.repost-author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.repost-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: -moz-fit-content;
  width: fit-content;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.35);
  background: rgba(88, 101, 242, 0.12);
  color: #c7d2fe;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.repost-quote {
  border-radius: 16px;
  border-top-left-radius: 0;
  border-bottom-right-radius: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(24, 27, 32, 0.95);
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.6rem;
}

.repost-quote-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.repost-quote-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding-top: 0.35rem;
}

.repost-content {
  color: var(--text);
  display: grid;
  gap: 0.25rem;
}

.repost-paragraph {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  color: var(--text);
}

.repost-heading,
.repost-heading-1,
.repost-heading-2,
.repost-heading-3 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.repost-heading-1 {
  font-size: 1.05rem;
  line-height: 1.4;
}

.repost-heading-2 {
  font-size: 0.95rem;
  line-height: 1.45;
}

.repost-heading-3 {
  font-size: 0.88rem;
  line-height: 1.5;
}

.repost-quote-line {
  margin: 0;
  padding: 0.35rem 0.6rem;
  border-left: 3px solid rgba(88, 101, 242, 0.45);
  border-radius: 10px;
  background: rgba(18, 22, 32, 0.75);
  color: var(--text);
  white-space: pre-wrap;
}

.repost-inline-code {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.3rem;
  border-radius: 6px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(12, 18, 32, 0.7);
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 0.8em;
  color: #e2e8f0;
}

.repost-code-block {
  margin: 0;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(9, 13, 22, 0.9);
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}

.repost-link {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.repost-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.repost-italic {
  font-style: italic;
}

.repost-strike {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.repost-spoiler {
  display: inline-block;
  padding: 0.05rem 0.25rem;
  border-radius: 6px;
  background: rgba(12, 16, 24, 0.75);
  color: transparent;
  text-shadow: 0 0 7px rgba(148, 163, 184, 0.6);
  transition: color 140ms ease, text-shadow 140ms ease, background 140ms ease;
}

.repost-spoiler:hover,
.repost-spoiler:focus {
  color: var(--text);
  text-shadow: none;
  background: rgba(20, 24, 32, 0.8);
}

.repost-subtext {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

.repost-list {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text);
}

.repost-list-bullet {
  color: var(--muted);
  line-height: 1.45;
}

.repost-list-item {
  min-width: 0;
  flex: 1;
  white-space: pre-wrap;
}

.repost-blank {
  height: 0.35rem;
}

.repost-emoji {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: -0.18em;
  margin: 0 0.06em;
}

.repost-poll {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(17, 22, 30, 0.78);
  padding: 0.6rem 0.7rem;
  display: grid;
  gap: 0.45rem;
}

.repost-poll-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.repost-poll-title {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.repost-poll-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.65rem;
  color: var(--muted);
}

.repost-poll-meta-sep {
  color: rgba(148, 163, 184, 0.55);
}

.repost-poll-question {
  font-size: 0.85rem;
  color: var(--text);
  white-space: pre-wrap;
}

.repost-poll-options {
  display: grid;
  gap: 0.45rem;
}

.repost-poll-option {
  display: grid;
  gap: 0.3rem;
}

.repost-poll-option-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.repost-poll-option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--text);
}

.repost-poll-option-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.repost-poll-option-emoji {
  width: 1.2em;
  height: 1.2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.repost-poll-option-count {
  font-size: 0.68rem;
  color: var(--muted);
  flex-shrink: 0;
}

.repost-poll-option-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.repost-poll-option-bar-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.75), rgba(129, 140, 248, 0.5));
}

.repost-poll-footer {
  font-size: 0.65rem;
  color: var(--muted);
}

.repost-media {
  margin-top: 0.15rem;
}

.toast-stack {
  position: fixed;
  top: 88px;
  right: 20px;
  display: grid;
  gap: 0.5rem;
  z-index: 80;
  pointer-events: none;
}

.toast {
  min-width: 160px;
  max-width: 280px;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(20, 24, 32, 0.95);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  animation: toast-in 160ms ease-out;
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(13, 28, 26, 0.95);
  color: #a7f3d0;
}

.toast-error {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(32, 16, 16, 0.95);
  color: #fecaca;
}

.toast.is-closing {
  animation: toast-out 200ms ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@media (max-width: 640px) {
  .toast-stack {
    top: 72px;
    left: 12px;
    right: 12px;
    justify-items: stretch;
  }

  .toast {
    max-width: none;
    width: 100%;
  }
}

.repost-media-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.repost-media-item {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.repost-media-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 220px;
  -o-object-fit: contain;
     object-fit: contain;
  background: transparent;
  border-radius: inherit;
}

.repost-media-video {
  display: inline-block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 240px;
  background: transparent;
  border-radius: 14px;
}

.repost-media-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
}

.repost-media-button:focus-visible {
  outline: 2px solid rgba(88, 101, 242, 0.6);
  outline-offset: 2px;
}

.repost-media-more {
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.repost-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(29, 34, 40, 0.8);
  color: var(--text);
  font-size: 0.75rem;
  text-decoration: none;
  transition: border 160ms ease, background 160ms ease;
}

.repost-file:hover {
  border-color: rgba(88, 101, 242, 0.6);
  background: rgba(88, 101, 242, 0.12);
}

.repost-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 0.4rem;
}

.repost-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.repost-footer-sep {
  color: rgba(148, 163, 184, 0.55);
}

.repost-footer-link {
  color: #c7d2fe;
  text-decoration: none;
}

.repost-footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .repost-media-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .repost-media-img {
    max-height: 180px;
  }

  .repost-media-video {
    max-height: 200px;
  }

  .repost-media-more {
    min-height: 100px;
  }
}

.post-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 160px;
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 14px;
  padding: 0.35rem;
  z-index: 120;
}

.post-menu-item {
  width: 100%;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 160ms ease, color 160ms ease;
}

.post-menu-item:hover {
  background: rgba(88, 101, 242, 0.15);
}

.post-menu-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.post-menu-divider {
  height: 1px;
  background: rgba(51, 65, 85, 0.6);
  margin: 0.25rem 0;
}

.post-menu-item-danger {
  color: #fecdd3;
}

.post-menu-item-danger:hover {
  background: rgba(244, 63, 94, 0.18);
}

.post-composer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-composer-overlay {
  gap: 0.75rem;
  flex: 1;
  min-height: 0;
}

.auth-shell {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-provider {
  justify-content: center;
  gap: 0.6rem;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.auth-cancel {
  text-align: center;
}

.auth-error {
  border-radius: 12px;
  border: 1px solid rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
  font-size: 0.75rem;
  padding: 0.6rem 0.75rem;
}

.discord-icon-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5865f2;
  box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.35);
}

.discord-icon {
  width: 16px;
  height: 16px;
}

.notification-controls {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.notification-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.notification-banner-slot {
  display: flex;
  justify-content: center;
}

.notification-pull {
  padding-top: 0.45rem;
}

.notification-pull .pull-indicator.active {
  margin-top: 0.3rem;
}

.notifications-sticky {
  position: sticky;
  top: var(--topbar-height, 0px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0 0 1.1rem;
}

.notifications-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: linear-gradient(
    180deg,
    rgba(9, 13, 26, 0.92) 0%,
    rgba(9, 13, 26, 0.8) 72%,
    rgba(9, 13, 26, 0.4) 88%,
    rgba(9, 13, 26, 0) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 -1px 0 rgba(31, 42, 68, 0.3);
  pointer-events: none;
  z-index: -1;
}

.notification-header-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: none;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.35rem;
}

.notification-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.notification-filter-count {
  margin-left: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.notification-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification-unread {
  border-color: rgba(88, 101, 242, 0.65);
}

.notification-flash {
  animation: notificationUnreadFade 2s ease forwards;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification-text {
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.9;
  white-space: pre-wrap;
  line-height: 1.5;
}

.notification-reactions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.notification-reaction {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.25);
  background: rgba(88, 101, 242, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.notification-reaction-img {
  width: 18px;
  height: 18px;
}

@keyframes notificationUnreadFade {
  0% {
    border-color: rgba(88, 101, 242, 0.9);
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.35), 0 12px 26px rgba(88, 101, 242, 0.12);
  }
  70% {
    border-color: rgba(88, 101, 242, 0.55);
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.2), 0 8px 20px rgba(88, 101, 242, 0.08);
  }
  100% {
    border-color: var(--border);
    box-shadow: none;
  }
}

.reply-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reply-children {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 1.25rem;
  padding-left: 0.9rem;
  position: relative;
}

.reply-children::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 3px;
  background: linear-gradient(180deg, rgba(88, 101, 242, 0.45), rgba(88, 101, 242, 0.1));
  border-radius: 999px;
}

.reply-child {
  border-left: none;
  background: rgba(13, 19, 32, 0.86);
  border-color: rgba(51, 65, 85, 0.7);
}

.reply-target {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(12, 18, 32, 0.6);
  font-size: 0.72rem;
  color: var(--muted);
}

.reply-target-arrow {
  color: rgba(122, 134, 255, 0.9);
}

.reply-target-label {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.reply-target-name {
  color: #e2e8f0;
  font-weight: 600;
}

.reply-more {
  margin-left: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.reply-more-thread {
  margin-top: 0.35rem;
}

.reply-toggle-button {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c7d2fe;
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.reply-toggle-button:hover {
  border-color: rgba(88, 101, 242, 0.6);
}

.reply-toggle-body {
  width: 100%;
}

[id^="reply-"]:target {
  border-color: rgba(88, 101, 242, 0.8);
}

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
}

.reaction-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.reaction-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  font-size: 0.7rem;
  min-height: 24px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.reaction-chip.active {
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.18);
  color: #dbeafe;
}

.reaction-chip:hover {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
}

.reaction-chip.active:hover {
  border-color: rgba(122, 134, 255, 0.85);
  background: rgba(88, 101, 242, 0.25);
}

.reaction-chip.bump {
  animation: reaction-bump 320ms ease;
}

.reaction-emoji {
  font-size: 0.85rem;
}

.reaction-count {
  font-size: 0.65rem;
  color: var(--muted);
  display: inline-block;
  line-height: 1;
}

.reaction-count-stack {
  position: relative;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  height: 1em;
  overflow: hidden;
}

.reaction-count-sizer {
  visibility: hidden;
  grid-area: 1 / 1;
  line-height: 1;
}

.reaction-count-old,
.reaction-count-new {
  grid-area: 1 / 1;
  line-height: 1;
}

.reaction-count-stack[data-dir="up"] .reaction-count-old {
  animation: reaction-count-old-up 320ms ease;
}

.reaction-count-stack[data-dir="up"] .reaction-count-new {
  animation: reaction-count-new-up 320ms ease;
}

.reaction-count-stack[data-dir="down"] .reaction-count-old {
  animation: reaction-count-old-down 320ms ease;
}

.reaction-count-stack[data-dir="down"] .reaction-count-new {
  animation: reaction-count-new-down 320ms ease;
}

.reaction-more {
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  padding: 0.18rem 0.5rem;
  font-size: 0.65rem;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.6);
  min-height: 24px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.reaction-more:hover {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
  color: var(--text);
}

.reaction-more:active {
  transform: scale(0.97);
}

.reaction-more.bump {
  animation: chip-tap 220ms ease;
}

.reaction-actions {
  position: relative;
  z-index: 2;
}

.reaction-add {
  border-radius: 999px;
  padding: 0 0.55rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  min-height: calc(24px + 0.5rem);
  height: calc(24px + 0.5rem);
  line-height: 1;
}

.reaction-add-icon {
  width: 20px;
  height: 20px;
}

.reaction-add-face {
  fill: rgba(148, 163, 184, 0.9);
  stroke: rgba(148, 163, 184, 0.9);
}

.reaction-add-eye {
  fill: var(--bg);
}

.reaction-add-mouth {
  stroke: var(--bg);
}

.reaction-add:hover {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.12);
}

.reaction-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.reply-button {
  min-width: 96px;
  justify-content: center;
}

.emoji-picker {
  position: fixed;
  top: 0;
  left: 0;
  display: inline-flex;
  flex-direction: column;
  width: auto;
  max-width: 92vw;
  background: transparent;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  z-index: 500;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 15, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 300;
}

.overlay.mobile-menu-overlay {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.post-overlay {
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem 1.5rem 1.5rem;
  overscroll-behavior: contain;
}

.post-overlay-card {
  width: min(640px, 96vw);
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.post-overlay-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.overlay-card {
  width: min(520px, 92vw);
  background: linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 20px;
  padding: 1.25rem;
}

.image-overlay {
  padding: 0;
  touch-action: none;
  overscroll-behavior: none;
}

.image-overlay-carousel {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  touch-action: none;
}

.image-overlay-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 260ms ease;
  will-change: transform;
}

@media (min-width: 641px) and (hover: hover) and (pointer: fine) {
  .image-overlay-track {
    transition: none;
  }
}

.image-overlay-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-overlay-img {
  max-height: 100vh;
  max-width: 100vw;
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
  -o-object-fit: contain;
     object-fit: contain;
}

.image-overlay-prev,
.image-overlay-next {
  width: auto;
  height: auto;
  padding: 0.35rem 0.6rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 2rem;
  color: #e2e8f0;
  box-shadow: none;
  cursor: pointer;
}

.image-overlay-counter {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(9, 13, 26, 0.6);
  color: #e2e8f0;
  font-size: 0.75rem;
  z-index: 2;
}

.image-overlay-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: auto;
  height: auto;
  padding: 0.35rem;
  border-radius: 0;
  border: none;
  background: transparent;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: none;
  cursor: pointer;
  transition: color 160ms ease, text-shadow 160ms ease, transform 160ms ease;
}

.image-overlay-close:hover,
.image-overlay-prev:hover,
.image-overlay-next:hover {
  color: #f8fafc;
  text-shadow: 0 0 12px rgba(148, 163, 184, 0.6);
  background: transparent;
  border-color: transparent;
}

.image-overlay-close-icon {
  width: 18px;
  height: 18px;
}

.image-overlay-prev {
  left: 1.2rem;
}

.image-overlay-next {
  right: 1.2rem;
}

.image-overlay-close:hover {
  transform: none;
}

.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 350;
  padding: 1.5rem;
}

.confirm-overlay {
  z-index: 340;
}

.confirm-card {
  width: min(420px, 92vw);
}

.loading-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 0.8rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(88, 101, 242, 0.18);
  border-top-color: rgba(122, 134, 255, 0.7);
  animation: spin 0.9s linear infinite;
}

.new-posts-banner {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.35);
  background: rgba(88, 101, 242, 0.12);
  color: #c7d2fe;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.new-posts-banner:hover {
  border-color: rgba(88, 101, 242, 0.7);
  background: rgba(88, 101, 242, 0.28);
  transform: translateY(-1px);
}

.timeline-loading,
.timeline-end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0.75rem 0;
}

.scroll-top-button {
  position: fixed;
  left: 1rem;
  bottom: 1.25rem;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  z-index: 60;
}

.scroll-top-button:hover {
  border-color: rgba(88, 101, 242, 0.6);
  background: rgba(88, 101, 242, 0.16);
  color: #f8fafc;
}

.pull-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 0;
  transition: height 160ms ease;
}

.pull-indicator.active {
  height: 38px;
}

.pull-indicator-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.pull-meter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.pull-spinner {
  display: block;
  width: 32px;
  height: 32px;
  border-width: 3px;
}

.pull-meter-svg {
  display: block;
  width: 32px;
  height: 32px;
}

.pull-meter-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 3;
}

.pull-meter-progress {
  fill: none;
  stroke: rgba(88, 101, 242, 0.9);
  stroke-width: 3;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 360ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: stroke-dashoffset;
}

.timeline-pull {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 200ms ease;
  will-change: transform;
}

.timeline-pull.pulling {
  transition: none;
}

.timeline-pull.is-switching {
  pointer-events: none;
}

.route-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
}

.route-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 360;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-title {
  display: inline-grid;
  position: relative;
  transform-origin: left center;
  will-change: transform, opacity, filter;
}

.timeline-title-layer {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: baseline;
  white-space: pre-wrap;
}

.timeline-title-layer.is-leaving {
  pointer-events: none;
}

.timeline-title-char {
  display: inline-block;
  transform-origin: center top;
  animation-delay: var(--char-delay);
  will-change: transform, opacity, filter;
}

.timeline-title-layer.is-leaving .timeline-title-char {
  animation: timelineCharDropOut 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.timeline-title-layer.is-entering .timeline-title-char {
  animation: timelineCharDropIn 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--char-delay) + var(--enter-delay, 0ms));
}

@keyframes timelineCharDropOut {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: none;
  }
  100% {
    opacity: 0;
    transform: translateY(14px) rotate(2deg);
    filter: none;
  }
}

@keyframes timelineCharDropIn {
  0% {
    opacity: 0;
    transform: translateY(-12px) rotate(-2deg);
    filter: none;
  }
  55% {
    opacity: 1;
    transform: translateY(2px) rotate(0.5deg);
    filter: none;
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-title-char {
    animation: none;
  }
}

@keyframes reaction-bump {
  0% {
    transform: scale(1);
    box-shadow: none;
  }
  35% {
    transform: translateY(-2px) scale(1.14);
    box-shadow: none;
  }
  65% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

@keyframes reaction-count-old-up {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-12px);
    opacity: 0;
  }
}

@keyframes reaction-count-new-up {
  0% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes reaction-count-old-down {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

@keyframes reaction-count-new-down {
  0% {
    transform: translateY(-12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes chip-tap {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.card-animate {
  animation: rise 0.5s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .card-animate {
    animation: none;
  }

  .card-hover,
  .button-primary,
  .button-secondary,
  .button-outline,
  .button-ghost {
    transition: none;
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-height: 56px;
  }

  .container {
    padding: 0 1rem;
  }

  .main-content {
    padding-bottom: 5.25rem;
  }

  .footer {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }

  .topbar .container {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .card {
    padding: 1rem;
    border-radius: 16px;
  }

  .input,
  .textarea,
  .file-input {
    font-size: 16px;
  }

  .post-detail-card {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .post-detail-toolbar {
    margin-bottom: 0.7rem;
  }

  .post-detail-title {
    letter-spacing: 0.18em;
  }

  .desktop-topbar {
    display: none;
  }

  .mobile-topbar {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
  }

  .nav-group,
  .header-actions {
    display: none;
  }

  .brand-center {
    justify-self: center;
  }

  body[data-scroll-dir="down"] .topbar {
    transform: translateY(-90%);
    opacity: 0;
  }

  body[data-scroll-dir="up"] .topbar {
    transform: translateY(0);
    opacity: 1;
  }

  .topbar {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(9, 13, 26, 0.7);
  }

  .nav-group {
    width: 100%;
    justify-content: space-between;
    padding: 0.25rem;
  }

  .nav-chip {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.65rem;
  }

  .header-actions {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
  }

  .header-actions .button-primary {
    width: auto;
    flex: 1;
  }

  .user-chip {
    padding: 0.2rem 0.45rem;
  }

  .user-chip-name {
    display: none;
  }

  .logout-button {
    display: none;
  }

  .mobile-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem 0.85rem;
    background: rgba(9, 13, 26, 0.9);
    border-top: 1px solid rgba(31, 42, 68, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 60;
    transition: opacity 200ms ease;
  }

  .mobile-bottom-item {
    position: relative;
    width: 48px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(148, 163, 184, 0.9);
    transition: color 160ms ease, background 160ms ease, opacity 160ms ease;
  }

  .mobile-bottom-item.active {
    color: #f8fafc;
    background: rgba(88, 101, 242, 0.18);
  }

  .mobile-bottom-icon {
    width: 22px;
    height: 22px;
  }

  .mobile-bottom-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-bottom-item .nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
  }

  .mobile-user-avatar,
  .mobile-user-fallback {
    width: 28px;
    height: 28px;
    border-radius: 999px;
  }

  .mobile-user-fallback {
    background: rgba(88, 101, 242, 0.2);
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
  }

  .mobile-fab {
    position: fixed;
    right: 1rem;
    left: auto;
    bottom: 4.75rem;
    display: block;
    z-index: 70;
    transition: opacity 200ms ease;
  }

  .scroll-top-button {
    left: 1rem;
    right: auto;
    bottom: 4.75rem;
  }

  .mobile-fab-button {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #5865f2, #7a86ff);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-height: auto;
  }

  .mobile-fab-icon {
    position: relative;
    width: 28px;
    height: 28px;
    transform: translateY(-2px);
  }

  .fab-plus,
  .fab-pencil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
  }

  .fab-plus {
    width: 16px;
    height: 16px;
    margin-left: -12px;
    margin-top: -12px;
    z-index: 2;
  }

  .fab-pencil {
    width: 24px;
    height: 24px;
    margin-left: -8px;
    margin-top: -8px;
    transform: rotate(-12deg) scale(1.1);
    opacity: 0.85;
  }

  body[data-scroll-dir="down"] .mobile-bottom-bar,
  body[data-scroll-dir="down"] .mobile-fab {
    opacity: 0.2;
  }

  body[data-scroll-dir="up"] .mobile-bottom-bar,
  body[data-scroll-dir="up"] .mobile-fab {
    opacity: 1;
  }

  .guild-switcher {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .guild-strip {
    padding: 0.25rem;
  }

  .guild-strip::before,
  .guild-strip::after {
    content: none;
  }

  .guild-picker-overlay {
    align-items: flex-end;
    padding: 1rem;
  }

  .guild-picker-panel {
    width: 100%;
    max-height: 78vh;
    border-radius: 20px;
  }

  .reply-children {
    margin-left: 0.75rem;
    padding-left: 0.75rem;
  }

  .post-overlay-card {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    padding: 1rem 1rem 1.5rem;
    border: none;
    box-shadow: none;
  }

  .post-overlay {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
    height: 100dvh;
  }

  .post-overlay-body {
    overflow: hidden;
  }

  .post-composer-overlay .textarea {
    min-height: 96px;
    overflow: hidden;
    font-size: 16px;
  }

  .post-overlay-card {
    height: 100%;
    max-height: 100%;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .post-composer-overlay .input {
    font-size: 16px;
  }

  .post-composer-overlay .image-preview-img {
    max-height: 160px;
  }

  .image-overlay-prev,
  .image-overlay-next {
    display: none;
  }
}

.reaction-img {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  -o-object-fit: contain;
     object-fit: contain;
}

.emoji-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(9, 13, 26, 0.95);
  padding-right: 2.4rem;
}

.emoji-tab {
  flex: 1;
  padding: 0.45rem 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  background: transparent;
}

.emoji-tab.active {
  color: #c7d2fe;
  background: rgba(88, 101, 242, 0.2);
}

.emoji-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(9, 13, 26, 0.9);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  z-index: 2;
}

.emoji-close:hover {
  color: var(--text);
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.15);
}

.emoji-panel {
  background: rgba(9, 13, 26, 0.98);
  padding: 0.5rem;
  min-width: 0;
}

.emoji-loading,
.emoji-empty {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.custom-emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.4rem;
  max-height: 260px;
  overflow: auto;
  padding: 0.4rem;
}

.custom-emoji-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.35rem;
}

.custom-emoji-button:hover {
  border-color: rgba(88, 101, 242, 0.5);
}

.custom-emoji-img {
  width: 24px;
  height: 24px;
}

.emoji-picker .emoji-mart {
  background: transparent !important;
  border: none !important;
  width: 100% !important;
}

.emoji-picker .emoji-mart-search input {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(51, 65, 85, 0.7) !important;
  color: var(--text) !important;
}
.image-carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.image-carousel-button:focus-visible {
  outline: 2px solid rgba(88, 101, 242, 0.7);
  outline-offset: 3px;
}

@media (min-width: 641px) {
  .notification-filters {
    justify-content: center;
  }
}

.disabled\:opacity-50:disabled{
  opacity: 0.5;
}

@media (min-width: 640px){
  .sm\:w-auto{
    width: auto;
  }
  .sm\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:flex-row{
    flex-direction: row;
  }
  .sm\:items-center{
    align-items: center;
  }
  .sm\:justify-end{
    justify-content: flex-end;
  }
  .sm\:justify-between{
    justify-content: space-between;
  }
  .sm\:gap-3{
    gap: 0.75rem;
  }
  .sm\:text-right{
    text-align: right;
  }
  .sm\:text-sm{
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

@media (min-width: 1024px){
  .lg\:grid-cols-4{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

