@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/inter/inter-cyrillic-ext-wght-normal.251d36f2b5a6.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/inter/inter-cyrillic-wght-normal.de93fdc85e3d.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/inter/inter-latin-ext-wght-normal.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/inter/inter-latin-wght-normal.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #202626;
  --bg-elevated: #263030;
  --surface: #2F3F3F;
  --surface-hover: #364848;
  --surface-2: #404444;
  --surface-2-hover: #4A5050;
  --surface-input: #1B2121;
  --border: rgba(225, 227, 230, .08);
  --border-strong: rgba(225, 227, 230, .16);
  --text: #E1E3E6;
  --text-secondary: #A9B8B8;
  --text-muted: #7E9090;
  --text-input: #BFE2FF;
  --accent: #176B5B;
  --accent-hover: #1D836F;
  --accent-contrast: #F0FFFA;
  --accent-soft: rgba(34, 185, 156, .14);
  --green: #60DA64;
  --link: #22B99C;
  --cyan: #B4F9F9;
  --cyan-soft: #B9EAEA;
  --blue: #4CABFF;
  --danger: #DA5757;
  --danger-hover: #E46B6B;
  --warning: #E6BC50;
  --like: #E04848;
  --focus: #2FAE66;
  --bubble-out: #176B5B;
  --bubble-in: #343F46;
  --overlay: rgba(0, 0, 0, .6);
  --gold-gradient: linear-gradient(135deg, #F6DA86 0%, #E6BC50 55%, #D7A33A 100%);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .4);
  --shadow-3: 0 18px 50px rgba(0, 0, 0, .5);
  --focus-ring: 0 0 0 3px rgba(47, 174, 102, .32);
  --danger-ring: 0 0 0 3px rgba(218, 87, 87, .3);
  --hover-tint: rgba(225, 227, 230, .06);
  --press-tint: rgba(225, 227, 230, .1);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-17: 17px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-30: 30px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 150ms;
  --dur: 180ms;
  --dur-slow: 260ms;
  --sidebar-w: 248px;
  --rail-w: 72px;
  --content-w: 640px;
  --content-wide-w: calc(var(--content-w) + var(--layout-gap) + var(--aside-w));
  --aside-w: 320px;
  --layout-gap: 24px;
  --gutter: 12px;
  --topbar-h: 56px;
  --bottom-nav-h: 60px;
  --main-pt: 12px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --sticky-top: calc(var(--topbar-h) + var(--safe-top));
  --chrome-bg: rgba(38, 48, 48, .86);
  --page-bg-translucent: rgba(32, 38, 38, .86);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-gutter: stable;
  scrollbar-color: #4A5C5C transparent;
  scroll-padding-top: calc(var(--sticky-top) + 64px);
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  font-feature-settings: "cv11";
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img,
picture,
video,
canvas {
  display: block;
  max-width: 100%;
}

svg {
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:not([class]):hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-24);
}

h2 {
  font-size: var(--fs-20);
}

h3 {
  font-size: var(--fs-17);
}

h4,
h5,
h6 {
  font-size: var(--fs-15);
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.4em;
}

ul[role="list"],
ol[role="list"] {
  padding: 0;
  list-style: none;
}

hr {
  height: 0;
  border: 0;
  border-top: 1px solid var(--border);
}

table {
  border-collapse: collapse;
}

code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
  font-size: .92em;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: rgba(180, 249, 249, .28);
  color: #FFFFFF;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: var(--r-full);
  background: #3F5050 padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #557070;
}

.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon--filled {
  fill: currentColor;
}

.icon--12 { width: 12px; height: 12px; }
.icon--14 { width: 14px; height: 14px; }
.icon--16 { width: 16px; height: 16px; }
.icon--18 { width: 18px; height: 18px; }
.icon--22 { width: 22px; height: 22px; }
.icon--24 { width: 24px; height: 24px; }
.icon--28 { width: 28px; height: 28px; }
.icon--32 { width: 32px; height: 32px; }
.icon--36 { width: 36px; height: 36px; }
.icon--40 { width: 40px; height: 40px; }
.icon--48 { width: 48px; height: 48px; stroke-width: 1.75; }
.icon--56 { width: 56px; height: 56px; stroke-width: 1.5; }
.icon--64 { width: 64px; height: 64px; stroke-width: 1.5; }

.skip-link {
  position: fixed;
  top: calc(12px + var(--safe-top));
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: none;
}

.text-xs { font-size: var(--fs-12); }
.text-sm { font-size: var(--fs-13); }
.text-md { font-size: var(--fs-15); }
.text-lg { font-size: var(--fs-17); }
.text-xl { font-size: var(--fs-20); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-danger { color: var(--danger-hover); }
.text-success { color: var(--green); }
.text-warning { color: var(--warning); }
.text-accent { color: var(--link); }
.text-center { text-align: center; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.tnum { font-variant-numeric: tabular-nums; }

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

.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.stack-4,
.stack-8,
.stack-12,
.stack-16,
.stack-24 {
  display: flex;
  flex-direction: column;
}

.stack-4 { gap: 4px; }
.stack-8 { gap: 8px; }
.stack-12 { gap: 12px; }
.stack-16 { gap: 16px; }
.stack-24 { gap: 24px; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.spacer {
  flex: 1 1 auto;
}

.w-full {
  width: 100%;
}

@media (max-width: 767.98px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

body {
  --sticky-top: calc(var(--topbar-h) + var(--safe-top));
}

.layout--no-bottom-nav {
  --bottom-nav-h: 0px;
}

.layout--no-bottom-nav .bottom-nav {
  display: none;
}

.layout--no-topbar {
  --topbar-h: 0px;
  --sticky-top: 0px;
}

.layout--no-topbar .topbar {
  display: none;
}

.app {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.app__main {
  min-width: 0;
  padding: var(--main-pt) 0 calc(var(--bottom-nav-h) + var(--safe-bottom) + 32px);
  outline: none;
}

.app__content {
  min-width: 0;
}

.app__aside,
.sidebar {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand__wordmark {
  display: block;
  width: auto;
  height: 30px;
  flex-shrink: 0;
}

.brand__star {
  display: block;
  width: 26px;
  height: auto;
  flex-shrink: 0;
  margin-top: -10px;
  transition: transform var(--dur-slow) var(--ease-out);
}

.brand:hover .brand__star {
  transform: rotate(-12deg) scale(1.08);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  height: calc(var(--topbar-h) + var(--safe-top));
  padding: var(--safe-top) 6px 0 var(--gutter);
  border-bottom: 1px solid var(--border);
  background: var(--chrome-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.topbar .brand__wordmark {
  height: 25px;
}

.topbar .brand__star {
  width: 22px;
  margin-top: -8px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.topbar__actions .btn {
  margin-left: 4px;
}

.topbar__actions .btn:last-child {
  margin-right: 6px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding: 0 4px var(--safe-bottom);
  border-top: 1px solid var(--border);
  background: var(--chrome-bg);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.bottom-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.bottom-nav__item:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

.bottom-nav__item.is-active {
  color: var(--green);
}

.bottom-nav__item .icon,
.bottom-nav__item .avatar,
.bottom-nav__plus {
  transition: transform var(--dur-fast) var(--ease);
}

.bottom-nav__item:active .icon,
.bottom-nav__item:active .avatar,
.bottom-nav__item:active .bottom-nav__plus {
  transform: scale(.9);
}

.bottom-nav__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav__icon {
  position: relative;
  display: inline-flex;
}

.bottom-nav__badge {
  --badge-ring: var(--bg-elevated);
  position: absolute;
  top: -6px;
  left: 14px;
}

.bottom-nav__plus {
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent-hover), var(--accent));
  color: var(--accent-contrast);
  box-shadow: 0 6px 16px rgba(23, 107, 91, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.bottom-nav__item--profile .avatar {
  --avatar-ring: var(--bg-elevated);
}

.bottom-nav__item--profile.is-active .avatar {
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg-elevated), 0 0 0 4px var(--green);
}

.page-header {
  position: sticky;
  top: var(--sticky-top);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  margin: calc(-1 * var(--main-pt)) calc(-1 * var(--gutter)) 12px;
  padding: 6px var(--gutter);
  border-bottom: 1px solid var(--border);
  background: var(--page-bg-translucent);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.layout--no-topbar .page-header {
  padding-top: calc(6px + var(--safe-top));
}

.page-header__back {
  margin-left: -8px;
}

.page-header__titles {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.page-header__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-20);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-header__titles .page-header__title {
  flex: none;
}

.page-header__subtitle {
  overflow: hidden;
  color: var(--text-muted);
  font-size: var(--fs-13);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__item {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.nav__item:hover {
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.nav__item:active {
  transform: scale(.97);
}

.nav__item.is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.nav__item.is-active .icon {
  color: var(--green);
}

.nav__item .icon {
  width: 24px;
  height: 24px;
}

.nav__divider {
  display: block;
  width: 32px;
  height: 1px;
  margin: 6px auto;
  background: var(--border);
}

.user-menu {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px;
  border-radius: var(--r-full);
  color: var(--text);
  text-align: left;
  transition: background-color var(--dur) var(--ease);
}

.user-chip:hover,
.user-chip[aria-expanded="true"] {
  background: var(--surface);
}

.user-chip .user-chip__meta {
  display: none;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.user-chip__name,
.user-chip__handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip__name {
  font-size: var(--fs-14);
  font-weight: 600;
}

.user-chip__handle {
  color: var(--text-muted);
  font-size: var(--fs-12);
}

.user-chip .user-chip__more {
  display: none;
  color: var(--text-muted);
}

.aside-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-field {
  position: relative;
  display: block;
}

.search-field__icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field .input {
  padding-left: 42px;
  border-color: transparent;
  border-radius: var(--r-full);
  background: var(--surface);
}

.search-field .input:focus {
  border-color: var(--focus);
  background: var(--surface-input);
}

.card .search-field .input,
.modal .search-field .input {
  border-color: var(--border-strong);
  background: var(--surface-input);
}

.widget {
  padding: 16px;
}

.widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.widget__title {
  font-size: var(--fs-15);
  font-weight: 700;
}

.widget__link {
  color: var(--link);
  font-size: var(--fs-13);
  font-weight: 600;
}

.widget__body {
  display: flex;
  flex-direction: column;
}

.widget .user-row {
  min-height: 48px;
  padding: 6px 0;
}

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

.welcome__title {
  font-size: var(--fs-17);
  font-weight: 700;
}

.welcome__text {
  color: var(--text-secondary);
  font-size: var(--fs-14);
}

.welcome__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.site-footer {
  padding: 0 4px;
  color: var(--text-muted);
  font-size: var(--fs-12);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.site-footer a,
.focus-footer a {
  color: var(--text-muted);
}

.site-footer a:hover,
.focus-footer a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.site-footer__copy {
  margin-top: 8px;
}

.registration-closed {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: var(--fs-13);
  font-weight: 500;
  line-height: 1.4;
}

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

.welcome__actions .registration-closed {
  justify-content: center;
  margin-top: 2px;
}

.auth__switch.registration-closed {
  justify-content: center;
}

.landing__actions .registration-closed {
  flex-basis: 100%;
}

.project-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 3px;
  overflow: hidden;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

.project-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-icon--lg {
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: 15px;
}

.project-icon--custom {
  padding: 0;
}

.project-icon--custom img {
  object-fit: cover;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.project-card__eyebrow {
  color: var(--text-muted);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.project-card__main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.project-card__title {
  font-size: var(--fs-15);
  font-weight: 700;
  line-height: 1.3;
}

.project-card__text {
  color: var(--text-secondary);
  font-size: var(--fs-13);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.project-card__link .icon {
  color: var(--text-secondary);
}

.project-card--page {
  gap: 0;
  padding: 0;
}

.project-card--page .project-card__main {
  gap: 14px;
  padding: 16px;
}

.project-card--page .project-card__title {
  font-size: var(--fs-17);
}

.project-card--page .project-card__text {
  font-size: var(--fs-14);
}

.project-card--page .project-card__link {
  align-self: flex-start;
  margin-top: 10px;
}

.project-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px 10px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.project-row:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.project-row:has(.project-row__title:focus-visible) {
  box-shadow: var(--focus-ring);
}

.project-row__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.project-row__eyebrow {
  color: var(--text-muted);
  font-size: var(--fs-12);
}

.project-row__title {
  color: inherit;
  font-size: var(--fs-15);
  font-weight: 600;
}

.project-row__title:hover {
  text-decoration: none;
}

@supports selector(:has(a)) {
  .project-row__title:focus-visible {
    outline: none;
  }
}

.project-row__title::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.project-row__text {
  display: -webkit-box;
  margin-top: 1px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: var(--fs-13);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-row__arrow {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.project-row:hover .project-row__arrow {
  color: var(--text-secondary);
  transform: translate(1px, -1px);
}

.project-row--sheet {
  margin-top: 16px;
  background: var(--surface-2);
}

.project-row--sheet:hover {
  background: var(--surface-2-hover);
}

.project-row--landing {
  margin-top: 22px;
}

.landing-book + .project-row--landing {
  margin-top: 10px;
}

.project-row--brand {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(32, 38, 38, .28);
  color: #FFFFFF;
}

.project-row--brand:hover {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(32, 38, 38, .4);
}

.project-row--brand .project-row__eyebrow,
.project-row--brand .project-row__arrow {
  color: rgba(255, 255, 255, .7);
}

.project-row--brand .project-row__text {
  color: rgba(255, 255, 255, .86);
}

.project-row--brand .project-icon {
  box-shadow: none;
}

.announcement {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 12px;
  padding: 6px 6px 6px 10px;
  border: 1px solid rgba(34, 185, 156, .26);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--text);
  font-size: var(--fs-14);
  line-height: 1.4;
}

.announcement__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(34, 185, 156, .18);
  color: var(--cyan);
}

.announcement__text {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  overflow-wrap: anywhere;
}

.announcement__link {
  font-weight: 600;
  white-space: nowrap;
}

.announcement__link:hover {
  text-decoration: underline;
}

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

.no-js .announcement__close {
  display: none;
}

.no-js .announcement {
  padding-right: 12px;
}

.announcement--focus {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 16px;
}

.landing-page .announcement--focus {
  max-width: 1040px;
}

.focus:has(> .focus__card) .announcement--focus,
.focus:has(.auth--single) .announcement--focus,
.focus:has(.auth--manage) .announcement--focus {
  max-width: 560px;
}

@media (max-width: 959.98px) {
  .auth-page .announcement--focus {
    max-width: 560px;
  }
}

.chat-page .announcement {
  display: none;
}

.focus-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(900px 520px at 50% -12%, rgba(29, 131, 111, .32), transparent 65%),
    radial-gradient(600px 400px at 100% 100%, rgba(180, 249, 249, .05), transparent 70%),
    var(--bg);
}

.focus-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(16px + var(--safe-top)) 20px 8px;
}

.focus-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 420px) {
  .focus-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .focus-header .brand__wordmark {
    height: 22px;
  }

  .focus-header .brand__star {
    width: 18px;
    margin-top: -6px;
  }

  .focus-header__actions .btn {
    padding-right: 10px;
    padding-left: 10px;
  }
}

.focus {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
  outline: none;
}

.focus__card {
  width: 100%;
  max-width: 440px;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-3);
}

.focus__card--wide {
  max-width: 560px;
}

.focus-footer {
  padding: 16px 20px calc(24px + var(--safe-bottom));
  color: var(--text-muted);
  font-size: var(--fs-12);
  text-align: center;
}

.focus-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-bottom: 6px;
}

.layout--focus .sidebar,
.layout--focus .topbar,
.layout--focus .bottom-nav,
.layout--focus .app__aside {
  display: none !important;
}

.layout--focus .app {
  display: block;
  max-width: 560px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 20px;
    --topbar-h: 0px;
    --bottom-nav-h: 0px;
    --main-pt: 20px;
  }

  .topbar,
  .bottom-nav {
    display: none;
  }

  .app {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 680px);
    justify-content: center;
    column-gap: var(--layout-gap);
    padding: 0 16px;
  }

  .layout--wide .app {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
  }

  .page-header {
    margin-right: 0;
    margin-left: 0;
    padding-right: 4px;
    padding-left: 4px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    padding: 16px 0;
  }

  .sidebar__brand {
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }

  .sidebar__brand .brand__wordmark {
    display: none;
  }

  .sidebar__brand .brand__star {
    width: 34px;
    margin-top: 0;
  }

  .sidebar__scroll {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 0;
    padding: 2px 0 12px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .sidebar__scroll::-webkit-scrollbar {
    display: none;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .nav__item {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .sidebar {
    z-index: 35;
  }

  .nav .nav__label,
  .sidebar__create .nav__label,
  .sidebar__auth .nav__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav__badge {
    position: absolute;
    top: 4px;
    right: 2px;
  }

  .sidebar__create,
  .sidebar__auth-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 14px;
  }

  .sidebar__auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .sidebar__footer {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-top: 8px;
  }
}

@media (min-width: 1100px) {
  :root {
    --main-pt: 24px;
  }

  .app {
    grid-template-columns: var(--sidebar-w) minmax(0, var(--content-w)) var(--aside-w);
  }

  .layout--wide .app {
    grid-template-columns: var(--sidebar-w) minmax(0, var(--content-wide-w));
  }

  .sidebar {
    align-items: stretch;
    padding: 20px 0 16px;
  }

  .sidebar__brand {
    justify-content: flex-start;
    width: auto;
    height: 44px;
    margin-bottom: 16px;
    padding: 0 12px;
  }

  .sidebar__brand .brand__wordmark {
    display: block;
  }

  .sidebar__brand .brand__star {
    width: 26px;
    margin-top: -10px;
  }

  .sidebar__scroll {
    align-items: stretch;
  }

  .nav {
    align-items: stretch;
    gap: 2px;
  }

  .nav__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    width: auto;
    height: 46px;
    padding: 0 12px;
    border-radius: var(--r-md);
    font-size: var(--fs-15);
    font-weight: 500;
  }

  .nav__item .icon {
    width: 22px;
    height: 22px;
  }

  .nav .nav__label {
    position: static;
    display: block;
    flex: 1;
    width: auto;
    min-width: 0;
    height: auto;
    overflow: hidden;
    clip: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sidebar__create .nav__label,
  .sidebar__auth .nav__label {
    position: static;
    display: inline;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .nav__badge {
    position: static;
  }

  .nav__divider {
    width: auto;
    margin: 8px 12px;
  }

  .sidebar__create,
  .sidebar__auth-btn {
    width: auto;
    height: 46px;
    padding: 0 16px;
    border-radius: var(--r-md);
  }

  .sidebar__auth {
    align-items: stretch;
  }

  .sidebar__footer {
    justify-content: stretch;
  }

  .user-menu {
    justify-content: stretch;
  }

  .user-chip {
    width: 100%;
    padding: 8px 10px;
    border-radius: var(--r-md);
  }

  .user-chip .user-chip__meta {
    display: flex;
  }

  .user-chip .user-chip__more {
    display: inline-block;
  }

  .app__aside {
    position: sticky;
    top: 0;
    display: block;
    align-self: start;
    max-height: 100vh;
    max-height: 100dvh;
    padding: 24px 0;
    overflow-y: auto;
    scrollbar-width: none;
  }

  .app__aside::-webkit-scrollbar {
    display: none;
  }

  .layout--wide .app__aside {
    display: none;
  }
}

@media (min-width: 1100px) and (max-width: 1279.98px) {
  :root {
    --sidebar-w: 220px;
    --aside-w: 288px;
    --layout-gap: 20px;
  }
}

@media (min-width: 768px) {
  .focus__card {
    padding: 36px 40px;
  }
}

.btn {
  --btn-bg: var(--surface-2);
  --btn-bg-hover: var(--surface-2-hover);
  --btn-fg: var(--text);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--btn-border);
  border-radius: var(--r-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-14);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease), filter var(--dur) var(--ease);
}

.btn:hover {
  background: var(--btn-bg-hover);
  text-decoration: none;
}

.btn:active {
  transform: scale(.97);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  --btn-bg: var(--accent);
  --btn-bg-hover: var(--accent-hover);
  --btn-fg: var(--accent-contrast);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 2px rgba(0, 0, 0, .25);
}

.btn--secondary {
  --btn-bg: var(--surface-2);
  --btn-bg-hover: var(--surface-2-hover);
  --btn-fg: var(--text);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: var(--hover-tint);
  --btn-fg: var(--text-secondary);
}

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

.btn--outline {
  --btn-bg: transparent;
  --btn-bg-hover: var(--hover-tint);
  --btn-fg: var(--text);
  --btn-border: var(--border-strong);
}

.btn--danger {
  --btn-bg: var(--danger);
  --btn-bg-hover: var(--danger-hover);
  --btn-fg: #FFFFFF;
}

.btn--sm {
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: var(--fs-13);
}

.btn--sm .icon {
  width: 16px;
  height: 16px;
}

.btn--sm::before,
.icon-btn--sm::before,
.toast__close::before,
.comment__action::before {
  content: "";
  position: absolute;
  inset: -4px;
}

.comment__action,
.toast__close {
  position: relative;
}

.comment__action::before {
  inset: -10px -6px;
}

.btn--lg {
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: var(--fs-15);
}

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

.btn--icon {
  width: 40px;
  padding: 0;
}

.btn--sm.btn--icon {
  width: 34px;
}

.btn--lg.btn--icon {
  width: 48px;
}

.btn[aria-busy="true"] {
  color: transparent !important;
  pointer-events: none;
}

.btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: ml-spin .7s linear infinite;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.icon-btn:hover {
  background: var(--hover-tint);
  color: var(--text);
  text-decoration: none;
}

.icon-btn:active {
  background: var(--press-tint);
  transform: scale(.94);
}

.icon-btn:disabled {
  opacity: .45;
}

.icon-btn .icon {
  width: 22px;
  height: 22px;
}

.icon-btn--sm {
  width: 32px;
  height: 32px;
}

.icon-btn--sm .icon {
  width: 18px;
  height: 18px;
}

.icon-btn--filled {
  background: var(--surface-2);
}

.icon-btn--filled:hover {
  background: var(--surface-2-hover);
}

.icon-btn.is-active {
  color: var(--green);
}

.icon-btn > .badge {
  position: absolute;
  top: 3px;
  right: 1px;
}

.card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.card--flat {
  background: transparent;
}

.card--interactive {
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card--interactive:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.card__title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-17);
  font-weight: 700;
}

.card__subtitle {
  color: var(--text-muted);
  font-size: var(--fs-13);
}

.card__body {
  padding: 16px;
}

.card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.avatar {
  --avatar-size: 40px;
  --avatar-ring: var(--surface);
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  text-decoration: none;
  vertical-align: middle;
}

.avatar__img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface-2);
  object-fit: cover;
  transition: filter var(--dur) var(--ease);
}

a.avatar:hover .avatar__img {
  filter: brightness(1.08);
}

.avatar--xs { --avatar-size: 24px; }
.avatar--sm { --avatar-size: 32px; }
.avatar--md { --avatar-size: 40px; }
.avatar--lg { --avatar-size: 56px; }
.avatar--xl { --avatar-size: 96px; }
.avatar--xxl { --avatar-size: 128px; }

.avatar--xl .avatar__img,
.avatar--xxl .avatar__img {
  box-shadow: 0 0 0 4px var(--avatar-ring), 0 10px 30px rgba(0, 0, 0, .35);
}

.avatar__online {
  position: absolute;
  right: 0;
  bottom: 0;
  width: max(9px, 26%);
  height: max(9px, 26%);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--avatar-ring);
}

.avatar--xl .avatar__online,
.avatar--xxl .avatar__online {
  right: 7%;
  bottom: 7%;
  width: 18%;
  height: 18%;
  box-shadow: 0 0 0 3px var(--avatar-ring);
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
}

.avatar-stack .avatar + .avatar {
  margin-left: calc(var(--avatar-size) * -0.3);
}

.avatar-stack .avatar__img {
  box-shadow: 0 0 0 2px var(--avatar-ring);
}

.badge {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--danger);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 0 0 2px var(--badge-ring, var(--bg));
}

.badge:empty {
  display: none;
}

.badge--accent {
  background: var(--accent-hover);
  color: var(--accent-contrast);
}

.badge--muted {
  background: var(--surface-2);
  color: var(--text-secondary);
}

.badge--dot,
.badge--dot:empty {
  display: inline-block;
  width: 10px;
  min-width: 10px;
  height: 10px;
  padding: 0;
}

.badge--bump {
  animation: ml-bump 420ms var(--ease-out);
}

.nav__item .badge,
.sidebar .badge {
  --badge-ring: var(--bg);
}

.chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: var(--fs-13);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

a.chip:hover,
button.chip:hover {
  background: var(--surface-2-hover);
  color: var(--text);
  text-decoration: none;
}

a.chip:active,
button.chip:active {
  transform: scale(.96);
}

.chip .icon {
  width: 16px;
  height: 16px;
}

.chip--active,
.chip[aria-pressed="true"],
.chip[aria-selected="true"],
.chip[aria-current="page"],
a.chip--active:hover,
button.chip[aria-pressed="true"]:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

.chip--outline {
  border-color: var(--border-strong);
  background: transparent;
}

.chip--sm {
  height: 24px;
  padding: 0 9px;
  font-size: var(--fs-12);
}

.chip--success {
  background: rgba(96, 218, 100, .14);
  color: var(--green);
}

.chip--warning {
  background: rgba(230, 188, 80, .14);
  color: var(--warning);
}

.chip--danger {
  background: rgba(218, 87, 87, .14);
  color: var(--danger-hover);
}

.chip--info {
  background: rgba(76, 171, 255, .14);
  color: var(--blue);
}

.chip-row {
  display: flex;
  gap: 8px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 14px;
  color: var(--text-secondary);
  font-size: var(--fs-14);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  scroll-snap-align: start;
  transition: color var(--dur) var(--ease);
}

.tab:hover {
  color: var(--text);
  text-decoration: none;
}

.tab::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--green);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}

.tab[aria-selected="true"],
.tab[aria-current="page"],
.tab.is-active {
  color: var(--text);
}

.tab[aria-selected="true"]::after,
.tab[aria-current="page"]::after,
.tab.is-active::after {
  transform: scaleX(1);
}

.tab .icon {
  width: 18px;
  height: 18px;
}

.tab__count {
  color: var(--text-muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tabs--stretch .tab {
  flex: 1 0 auto;
  justify-content: center;
}

.segmented {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-input);
}

.segmented--block {
  display: flex;
}

.segmented__item {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  color: var(--text-secondary);
  font-size: var(--fs-13);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.segmented__item:hover {
  color: var(--text);
  text-decoration: none;
}

.segmented__item[aria-pressed="true"],
.segmented__item[aria-selected="true"],
.segmented__item[aria-current="page"],
.segmented__item.is-active {
  background: var(--surface-hover);
  color: var(--text);
  box-shadow: var(--shadow-1);
}

.segmented__item .icon {
  width: 16px;
  height: 16px;
}

.list {
  display: flex;
  flex-direction: column;
}

.card > .list {
  padding: 6px 0;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease);
}

button.list-item {
  width: 100%;
}

a.list-item:hover,
button.list-item:hover,
.list-item--interactive:hover {
  background: var(--hover-tint);
  text-decoration: none;
}

.list-item + .list-item {
  border-top: 1px solid var(--border);
}

.list--plain .list-item + .list-item {
  border-top: 0;
}

.list-item.is-unread {
  background: rgba(34, 185, 156, .08);
}

.list-item__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--cyan);
}

.list-item__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.list-item__title,
.list-item__subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item__title {
  font-size: var(--fs-15);
  font-weight: 600;
}

.list-item__subtitle {
  color: var(--text-muted);
  font-size: var(--fs-13);
}

.list-item__trailing {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: var(--fs-12);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field + .field,
.field + .form-actions,
.form-errors + .field {
  margin-top: 16px;
}

.field__fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__fieldset > .field__label {
  margin-bottom: 8px;
  padding: 0;
}

.field__label {
  color: var(--text-secondary);
  font-size: var(--fs-13);
  font-weight: 600;
}

.field__help {
  color: var(--text-muted);
  font-size: var(--fs-12);
  line-height: 1.45;
}

.field__error {
  color: var(--danger-hover);
  font-size: var(--fs-13);
  line-height: 1.4;
}

.field__error p + p {
  margin-top: 2px;
}

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

.field--check .field__label {
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: 500;
  cursor: pointer;
}

.input,
.textarea,
.select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background-color: var(--surface-input);
  color: var(--text-input);
  font-size: var(--fs-15);
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: rgba(225, 227, 230, .26);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--focus);
  outline: none;
  box-shadow: var(--focus-ring);
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"],
.select[aria-invalid="true"],
.field--invalid .input,
.field--invalid .textarea,
.field--invalid .select {
  border-color: var(--danger);
}

.input[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus {
  box-shadow: var(--danger-ring);
}

.input:disabled,
.textarea:disabled,
.select:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.input--sm {
  min-height: 36px;
  padding: 6px 12px;
  font-size: var(--fs-14);
}

.input--lg {
  min-height: 52px;
  font-size: var(--fs-17);
}

@media (max-width: 767.98px) {
  .input,
  .textarea,
  .select {
    font-size: 16px;
  }
}

.textarea {
  min-height: 96px;
  line-height: 1.5;
  resize: vertical;
}

.textarea[data-autosize] {
  min-height: 44px;
  overflow-y: hidden;
  resize: none;
}

.select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9B8B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 18px;
  cursor: pointer;
}

.select[multiple] {
  padding-right: 14px;
  background-image: none;
}

.select option {
  background: var(--surface);
  color: var(--text);
}

.input[type="date"],
.input[type="time"],
.input[type="datetime-local"] {
  min-height: 44px;
}

.input-file {
  padding: 6px;
  color: var(--text-secondary);
  font-size: var(--fs-14);
  cursor: pointer;
}

.input-file::file-selector-button {
  height: 32px;
  margin-right: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-13);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.input-file:hover::file-selector-button {
  background: var(--surface-2-hover);
}

.checkbox,
.radio,
.choices input[type="checkbox"],
.choices input[type="radio"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #637676;
  background: var(--surface-input) center / 14px no-repeat;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.checkbox,
.choices input[type="checkbox"] {
  border-radius: 6px;
}

.radio,
.choices input[type="radio"] {
  border-radius: 50%;
}

.checkbox:hover,
.radio:hover,
.choices input:hover {
  border-color: var(--text-secondary);
}

.checkbox:checked,
.choices input[type="checkbox"]:checked {
  border-color: var(--accent-hover);
  background-color: var(--accent-hover);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0FFFA' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.radio:checked,
.choices input[type="radio"]:checked {
  border: 6px solid var(--accent-hover);
  background-color: var(--accent-contrast);
}

.checkbox:focus-visible,
.radio:focus-visible,
.switch:focus-visible,
.choices input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.checkbox:disabled,
.radio:disabled,
.switch:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 28px;
  margin: 0;
  border-radius: var(--r-full);
  background: #4A5656;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease);
}

.switch:checked {
  background: var(--accent-hover);
}

.switch:checked::before {
  background: var(--accent-contrast);
  transform: translateX(18px);
}

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

.choices label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: var(--fs-14);
  cursor: pointer;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: var(--fs-14);
  cursor: pointer;
}

.input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.input-row > .input,
.input-row > .textarea {
  flex: 1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.form-actions--start {
  justify-content: flex-start;
}

.form-errors {
  margin-bottom: 16px;
}

.form-errors p + p {
  margin-top: 4px;
}

.file-preview {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-input);
}

.file-preview + .file-preview {
  margin-top: 8px;
}

.file-preview__img,
.file-preview__video {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #121818;
}

.file-preview--file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: var(--fs-14);
}

.file-preview__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview__size {
  color: var(--text-muted);
  font-size: var(--fs-12);
}

.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  transform-origin: top right;
  animation: ml-pop var(--dur) var(--ease-out);
}

.dropdown__menu--start {
  right: auto;
  left: 0;
  transform-origin: top left;
}

.dropdown__menu--up {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom right;
}

.dropdown__menu--up.dropdown__menu--start {
  transform-origin: bottom left;
}

.dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  font-size: var(--fs-14);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease);
}

.dropdown__item:hover,
.dropdown__item:focus-visible {
  background: var(--surface-hover);
  outline: none;
  text-decoration: none;
}

.dropdown__item .icon {
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
}

.dropdown__item--danger,
.dropdown__item--danger .icon {
  color: var(--danger-hover);
}

.dropdown__divider {
  display: block;
  height: 1px;
  margin: 6px 4px;
  background: var(--border);
}

.dropdown__label {
  padding: 6px 12px 4px;
  color: var(--text-muted);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dropdown__form {
  display: block;
  margin: 0;
}

.modal {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  max-height: min(85vh, 760px);
  max-height: min(85dvh, 760px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-3);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: ml-modal-in var(--dur-slow) var(--ease-out);
}

.modal::backdrop {
  background: var(--overlay);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: ml-fade-in var(--dur) var(--ease);
}

.modal[data-closing] {
  animation: ml-modal-out var(--dur-fast) var(--ease) forwards;
}

.modal[data-closing]::backdrop {
  animation: ml-fade-out var(--dur-fast) var(--ease) forwards;
}

.modal--sm {
  width: min(420px, calc(100vw - 32px));
}

.modal--lg {
  width: min(760px, calc(100vw - 32px));
}

.modal__header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 10px 8px 20px;
  border-bottom: 1px solid var(--border);
}

.modal__title {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-17);
  font-weight: 700;
}

.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__footer {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
}

.modal__body + .modal__footer {
  padding-top: 0;
}

.confirm__title {
  font-size: var(--fs-17);
  font-weight: 700;
}

.confirm__text {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: var(--fs-14);
}

html.ml-scroll-lock {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .modal,
  .modal--sm,
  .modal--lg {
    width: 100%;
    max-height: 92vh;
    max-height: 92dvh;
    margin: auto 0 0;
    padding-bottom: var(--safe-bottom);
    border-bottom: 0;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
  }

  .modal[open] {
    animation: ml-sheet-in 300ms var(--ease-out);
  }

  .modal[data-closing] {
    animation: ml-sheet-out 200ms var(--ease) forwards;
  }

  .modal::before {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 36px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 4px;
    background: var(--border-strong);
  }

  .modal__header {
    border-bottom: 0;
  }

  .modal__footer {
    flex-direction: column-reverse;
  }

  .modal__footer .btn {
    width: 100%;
    height: 46px;
  }
}

.toast-region {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
  left: 50%;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(440px, calc(100vw - 24px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast-region[popover] {
  inset: auto auto calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px) 50%;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: inherit;
}

.toast-region:empty {
  display: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 8px 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-hover);
  color: var(--text);
  font-size: var(--fs-14);
  line-height: 1.4;
  box-shadow: var(--shadow-3);
  pointer-events: auto;
}

.toast:not([data-shown]) {
  animation: ml-toast-in 240ms var(--ease-out);
}

.toast[data-leaving] {
  animation: ml-toast-out 180ms var(--ease) forwards;
}

.toast__icon {
  margin-top: 1px;
}

.toast--success .toast__icon { color: var(--green); }
.toast--error .toast__icon { color: var(--danger-hover); }
.toast--warning .toast__icon { color: var(--warning); }
.toast--info .toast__icon { color: var(--cyan); }

.toast--error {
  border-color: rgba(218, 87, 87, .4);
}

.toast__text {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.toast__close {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -4px 0 -4px 4px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.toast__close:hover {
  background: var(--hover-tint);
  color: var(--text);
}

.toast__link {
  display: block;
  color: inherit;
}

.toast__link:hover {
  color: var(--cyan);
  text-decoration: none;
}

@media (min-width: 768px) {
  .toast-region,
  .toast-region[popover] {
    bottom: 24px;
  }
}

.connection-status {
  position: fixed;
  right: 0;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 12px);
  left: 0;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 24px);
  margin: 0 auto;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--surface-hover);
  color: var(--text-secondary);
  font-size: var(--fs-13);
  font-weight: 500;
  line-height: 1.3;
  box-shadow: var(--shadow-2);
  pointer-events: none;
  animation: ml-toast-in 240ms var(--ease-out);
}

.connection-status[hidden] {
  display: none;
}

.connection-status--inline {
  position: static;
  margin: 0;
  box-shadow: none;
  animation: none;
}

.has-connection-status .toast-region,
.has-connection-status .toast-region[popover] {
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom) + 56px);
}

@media (min-width: 768px) {
  .connection-status {
    bottom: 24px;
  }

  .has-connection-status .toast-region,
  .has-connection-status .toast-region[popover] {
    bottom: 68px;
  }
}

.skeleton {
  display: block;
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, var(--surface-2) 0%, #4C5555 50%, var(--surface-2) 100%) 0 0 / 200% 100%;
  animation: ml-shimmer 1.4s ease-in-out infinite;
}

.skeleton--text {
  width: 100%;
  height: 12px;
  border-radius: 6px;
}

.skeleton--title {
  width: 60%;
  height: 16px;
  border-radius: 8px;
}

.skeleton--short {
  width: 55%;
}

.skeleton--avatar,
.skeleton--circle {
  flex-shrink: 0;
  border-radius: 50%;
}

.skeleton--avatar {
  width: 40px;
  height: 40px;
}

.skeleton--rect {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
}

.skeleton--square {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
}

.skeleton-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.skeleton-lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 24px;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-bottom: 8px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(34, 185, 156, .24), rgba(23, 107, 91, .1));
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(180, 249, 249, .12);
}

.empty-state__title {
  font-size: var(--fs-17);
  font-weight: 700;
}

.empty-state__text {
  max-width: 340px;
  color: var(--text-secondary);
  font-size: var(--fs-14);
}

.empty-state .btn {
  margin-top: 12px;
}

.spinner {
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(180, 249, 249, .18);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: ml-spin .75s linear infinite;
}

.spinner--sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.spinner--lg {
  width: 36px;
  height: 36px;
  border-width: 3px;
}

.loader-row,
.infinite-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 1px;
  padding: 16px 0;
  color: var(--text-secondary);
  font-size: var(--fs-14);
}

.infinite-status:empty {
  padding: 0;
}

.divider {
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: var(--border);
}

.divider--text {
  display: flex;
  align-items: center;
  gap: 12px;
  height: auto;
  background: none;
  color: var(--text-muted);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.divider--text::before,
.divider--text::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.tooltip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  max-width: 260px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #101616;
  color: var(--text);
  font-size: var(--fs-12);
  font-weight: 600;
  line-height: 1.3;
  box-shadow: var(--shadow-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms var(--ease);
}

.tooltip.is-visible {
  opacity: 1;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-size: var(--fs-14);
  line-height: 1.45;
}

.alert > .icon {
  margin-top: 1px;
}

.alert__body {
  flex: 1;
  min-width: 0;
}

.alert__title {
  font-weight: 700;
}

.alert--info {
  border-color: rgba(76, 171, 255, .3);
  background: rgba(76, 171, 255, .1);
}

.alert--info > .icon { color: var(--blue); }

.alert--success {
  border-color: rgba(96, 218, 100, .3);
  background: rgba(96, 218, 100, .1);
}

.alert--success > .icon { color: var(--green); }

.alert--warning {
  border-color: rgba(230, 188, 80, .32);
  background: rgba(230, 188, 80, .1);
}

.alert--warning > .icon { color: var(--warning); }

.alert--danger {
  border-color: rgba(218, 87, 87, .36);
  background: rgba(218, 87, 87, .12);
}

.alert--danger > .icon { color: var(--danger-hover); }

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #FFFFFF;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  animation: ml-fade-in var(--dur) var(--ease);
}

.lightbox::backdrop {
  background: rgba(8, 12, 12, .94);
}

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(8px + var(--safe-top)) 8px 8px 16px;
}

.lightbox__counter {
  color: rgba(255, 255, 255, .75);
  font-size: var(--fs-14);
  font-variant-numeric: tabular-nums;
}

.lightbox .icon-btn {
  color: #FFFFFF;
}

.lightbox .icon-btn:hover {
  background: rgba(255, 255, 255, .12);
}

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 12px;
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  object-fit: contain;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.lightbox__img.is-loading {
  opacity: .35;
}

.lightbox__img.is-dragging {
  transition: none;
}

.lightbox__spinner {
  position: absolute;
  inset: 0;
  margin: auto;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  color: #FFFFFF;
  transform: translateY(-50%);
  transition: background-color var(--dur) var(--ease);
}

.lightbox__nav:hover {
  background: rgba(0, 0, 0, .7);
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__caption {
  min-height: 20px;
  padding: 10px 16px calc(14px + var(--safe-bottom));
  color: rgba(255, 255, 255, .85);
  font-size: var(--fs-14);
  text-align: center;
}

@media (hover: none) {
  .lightbox__nav {
    display: none;
  }
}

.user-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  vertical-align: bottom;
  transition: color var(--dur) var(--ease);
}

a.user-link:hover {
  color: var(--cyan);
  text-decoration: none;
}

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

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 0;
}

.list .user-row,
.user-row--padded {
  padding: 8px 16px;
}

.user-row__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.user-row__name {
  font-size: var(--fs-15);
}

.user-row__sub {
  overflow: hidden;
  color: var(--text-muted);
  font-size: var(--fs-13);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row__action {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
}

.post-card__media:first-child {
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) 0 0;
}

.post-card__media:last-child {
  overflow: hidden;
  border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px);
}

.feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.post-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px 8px 16px;
}

.post-card__meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.post-card__author {
  font-size: var(--fs-15);
}

.post-card__time {
  align-self: flex-start;
  color: var(--text-muted);
  font-size: var(--fs-13);
  text-decoration: none;
}

a.post-card__time:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.post-card__body {
  padding: 0 16px 12px;
}

.post-card__text {
  font-size: var(--fs-15);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.js [data-clamp]:not(.is-expanded) {
  max-height: calc(var(--clamp-lines, 8) * 1.55em);
  overflow: hidden;
}

.js [data-clamp].is-overflowing:not(.is-expanded) {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.clamp-toggle {
  margin-top: 4px;
  color: var(--link);
  font-size: var(--fs-14);
  font-weight: 600;
}

.clamp-toggle:hover {
  text-decoration: underline;
}

.post-card__media {
  position: relative;
  background: #151B1B;
}

.post-card__media > a,
.post-card__media > button {
  display: block;
  width: 100%;
}

.post-card__media img,
.post-card__media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: cover;
}

.post-card__media video {
  background: #000000;
  object-fit: contain;
}

.post-card__media + .post-card__body {
  padding-top: 12px;
}

.post-card__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px 8px;
}

.post-card__footer {
  padding: 0 16px 14px;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-full);
  color: var(--text-secondary);
  font-size: var(--fs-14);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.action:hover {
  background: var(--hover-tint);
  color: var(--text);
  text-decoration: none;
}

.action .icon {
  width: 22px;
  height: 22px;
  transition: transform var(--dur) var(--ease-out);
}

.action:active .icon {
  transform: scale(.88);
}

.action__count:empty {
  display: none;
}

.action--like[aria-pressed="true"],
.action--like.is-active {
  color: var(--like);
}

.action--like[aria-pressed="true"] .icon,
.action--like.is-active .icon {
  fill: currentColor;
  animation: ml-like-pop 380ms var(--ease-out);
}

.prose {
  font-size: var(--fs-15);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.prose > * + * {
  margin-top: .75em;
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(34, 185, 156, .45);
  text-underline-offset: 2px;
}

.prose a:hover {
  text-decoration-color: var(--link);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li + li {
  margin-top: .25em;
}

.prose blockquote {
  padding: 4px 0 4px 14px;
  border-left: 3px solid var(--accent-hover);
  color: var(--text-secondary);
}

.prose h2 {
  font-size: 19px;
}

.prose h3 {
  font-size: var(--fs-17);
}

.prose strong,
.prose b {
  font-weight: 700;
}

.comments {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment__main {
  flex: 1;
  min-width: 0;
}

.comment__bubble {
  display: inline-flex;
  flex-direction: column;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 4px 16px 16px 16px;
  background: var(--surface-2);
}

.comment--own .comment__bubble {
  background: rgba(29, 131, 111, .32);
}

.comment__author {
  font-size: var(--fs-13);
}

.comment__text {
  font-size: var(--fs-14);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-top: 4px;
  padding-left: 12px;
  color: var(--text-muted);
  font-size: var(--fs-12);
}

.comment__action {
  color: var(--text-muted);
  font-size: var(--fs-12);
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}

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

.comment__action--danger:hover {
  color: var(--danger-hover);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  overflow: hidden;
  border-radius: var(--r-md);
}

.media-tile {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-2);
  color: #FFFFFF;
  text-decoration: none;
}

.media-tile:focus-visible {
  outline-offset: -3px;
}

.media-tile img,
.media-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.media-tile__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #FFFFFF;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.media-tile__badge .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.media-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(12, 18, 18, .45);
  color: #FFFFFF;
  font-size: var(--fs-14);
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.media-tile__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.media-tile__stat .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.media-tile__text {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  padding: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--accent) 0%, #1D3734 100%);
  color: var(--accent-contrast);
  font-size: var(--fs-13);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
}

@media (hover: hover) {
  .media-tile:hover .media-tile__overlay,
  .media-tile:focus-visible .media-tile__overlay {
    opacity: 1;
  }

  .media-tile:hover img {
    transform: scale(1.04);
  }
}

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

.cover-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.cover-tile:hover {
  text-decoration: none;
}

.cover-tile__img {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

.cover-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease-out);
}

.cover-tile:hover .cover-tile__img img {
  transform: scale(1.04);
}

.cover-tile__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #3A4C4C 0%, #263333 100%);
  color: var(--text-muted);
}

.cover-tile__placeholder .icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.6;
}

.cover-tile__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.cover-tile__badge.chip {
  background: rgba(16, 22, 22, .72);
  color: var(--text);
}

.cover-tile__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: var(--fs-13);
  font-weight: 600;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.cover-tile__sub {
  margin-top: -4px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: var(--fs-12);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .cover-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 14px;
  }
}

@media (min-width: 1100px) {
  .layout--wide .cover-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.stat {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  color: var(--text);
  line-height: 1.25;
  text-decoration: none;
}

.stat__value {
  font-size: var(--fs-17);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color var(--dur) var(--ease);
}

.stat__label {
  color: var(--text-muted);
  font-size: var(--fs-13);
}

a.stat:hover {
  text-decoration: none;
}

a.stat:hover .stat__value {
  color: var(--cyan);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  font-size: var(--fs-17);
  font-weight: 700;
}

.section-title__text {
  min-width: 0;
  font-size: inherit;
  font-weight: inherit;
}

.section-title__action {
  flex-shrink: 0;
  color: var(--link);
  font-size: var(--fs-14);
  font-weight: 600;
}

.section-title__action:hover {
  text-decoration: underline;
}

.section-title--sm {
  color: var(--text-muted);
  font-size: var(--fs-12);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.create-options {
  display: grid;
  gap: 8px;
}

.create-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}

.create-option:hover {
  background: var(--surface-2-hover);
  text-decoration: none;
}

.create-option:active {
  transform: scale(.98);
}

.create-option__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

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

.sections-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
  padding: 12px 6px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-13);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.sections-grid__item .icon {
  color: var(--cyan-soft);
}

.sections-grid__item:hover,
.sections-grid__item:focus-visible {
  background: var(--surface-hover);
  text-decoration: none;
}

.sections-grid__item.is-active {
  border-color: var(--accent);
  color: var(--green);
}

.sections-grid__item.is-active .icon {
  color: var(--green);
}

.sections-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 16px;
  font-size: var(--fs-13);
}

.sections-links a {
  color: var(--text-secondary);
}

.create-option__icon--post {
  background: linear-gradient(145deg, #22B99C, #176B5B);
}

.create-option__icon--video {
  background: linear-gradient(145deg, #E46B6B, #B44646);
}

.create-option__icon--book {
  background: linear-gradient(145deg, #4CABFF, #2B79C2);
}

.create-option__icon--game {
  background: var(--gold-gradient);
  color: #3A2E0E;
}

.create-option__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.create-option__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-15);
  font-weight: 600;
}

.create-option__sub {
  color: var(--text-muted);
  font-size: var(--fs-13);
}

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

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.error-page__star {
  display: block;
  width: 104px;
  height: auto;
  margin-bottom: 6px;
  transform: rotate(-8deg);
}

.error-page__code {
  color: var(--text-muted);
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.error-page__title {
  font-size: var(--fs-24);
  font-weight: 800;
  letter-spacing: -.02em;
}

.error-page__text {
  max-width: 360px;
  color: var(--text-secondary);
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.no-js [data-back] {
  display: none;
}

.page-section + .page-section {
  margin-top: 24px;
}

.sg-section {
  scroll-margin-top: calc(var(--sticky-top) + 72px);
}

.sg-section + .sg-section {
  margin-top: 28px;
}

.sg-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sg-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.sg-swatch__chip {
  height: 56px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
}

.sg-swatch__name {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
}

.sg-swatch__label {
  color: var(--text-muted);
  font-size: var(--fs-12);
}

.sg-type > * + * {
  margin-top: 6px;
}

.sg-table {
  width: 100%;
  font-size: var(--fs-14);
}

.sg-table td,
.sg-table th {
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.sg-table th {
  color: var(--text-muted);
  font-size: var(--fs-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.sg-nav {
  position: sticky;
  top: calc(var(--sticky-top) + 56px);
  z-index: 20;
  margin-bottom: 16px;
  padding: 8px 0;
  background: var(--page-bg-translucent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

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

@keyframes ml-pop {
  from {
    opacity: 0;
    transform: scale(.96) translateY(-4px);
  }
}

@keyframes ml-fade-in {
  from {
    opacity: 0;
  }
}

@keyframes ml-fade-out {
  to {
    opacity: 0;
  }
}

@keyframes ml-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }
}

@keyframes ml-modal-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
}

@keyframes ml-sheet-in {
  from {
    transform: translateY(100%);
  }
}

@keyframes ml-sheet-out {
  to {
    transform: translateY(100%);
  }
}

@keyframes ml-toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
}

@keyframes ml-toast-out {
  to {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
}

@keyframes ml-shimmer {
  from {
    background-position: 150% 0;
  }

  to {
    background-position: -50% 0;
  }
}

@keyframes ml-like-pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.28);
  }

  70% {
    transform: scale(.92);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes ml-bump {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes ml-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

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

  .skeleton {
    animation: none !important;
  }
}

@media print {
  .sidebar,
  .topbar,
  .bottom-nav,
  .app__aside,
  .toast-region,
  .connection-status,
  .skip-link {
    display: none !important;
  }

  body {
    background: #FFFFFF;
    color: #000000;
  }
}
