@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg-primary: #07080d;
  --bg-secondary: #0d0f16;
  --bg-card: rgba(17, 19, 28, 0.9);
  --bg-card-hover: rgba(22, 25, 37, 0.96);
  --bg-soft: rgba(255, 255, 255, 0.04);
  --bg-input: rgba(255, 255, 255, 0.06);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.2);
  --text-primary: #f7f8fb;
  --text-secondary: rgba(247, 248, 251, 0.72);
  --text-tertiary: rgba(247, 248, 251, 0.44);
  --accent: #7f7fff;
  --accent-hover: #9a9aff;
  --success: #6ce2a1;
  --warning: #ffd067;
  --danger: #ff817c;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-card: 0 24px 64px rgba(0, 0, 0, 0.26);
  --shadow-elevated: 0 36px 100px rgba(0, 0, 0, 0.36);
  --transition-fast: 160ms ease;
  --transition-normal: 260ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: linear-gradient(180deg, #090a10 0%, #06070b 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  background: rgba(7, 8, 13, 0.74);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1180px;
  height: 60px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-area {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-area haunted-eye {
  background: transparent;
}

.oko-brand-trigger {
  cursor: pointer;
  transform-origin: left center;
  will-change: transform, opacity, filter;
  transition:
    opacity 360ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
}

.oko-brand-trigger haunted-eye {
  position: relative;
  z-index: 1;
  transition:
    opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.19, 1, 0.22, 1),
    filter 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.oko-brand-trigger .site-title {
  position: relative;
  z-index: 1;
  transform-origin: left center;
  transition:
    opacity 520ms cubic-bezier(0.16, 1, 0.3, 1),
    clip-path 620ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.oko-brand-trigger:hover haunted-eye,
.oko-brand-trigger:focus-visible haunted-eye {
  opacity: 0.18;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.16));
  transform: scale(0.72);
}

.oko-brand-lines {
  position: absolute;
  left: 4px;
  top: 50%;
  z-index: 2;
  display: block;
  width: 24px;
  height: 15px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scaleX(0.35);
  transition:
    opacity 320ms ease,
    transform 620ms cubic-bezier(0.19, 1, 0.22, 1);
}

.oko-brand-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 246, 255, 0.4), rgba(255, 255, 255, 0.96), rgba(244, 246, 255, 0.4));
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.14);
  transition:
    opacity 300ms ease,
    transform 620ms cubic-bezier(0.19, 1, 0.22, 1);
}

.oko-brand-lines span:nth-child(1) { top: 0; }
.oko-brand-lines span:nth-child(2) { top: 7px; }
.oko-brand-lines span:nth-child(3) { top: 14px; }

.oko-brand-trigger:hover .oko-brand-lines,
.oko-brand-trigger:focus-visible .oko-brand-lines {
  opacity: 1;
  transform: translateY(-50%) scaleX(1);
}

body.oko-sidebar-open .oko-brand-trigger {
  opacity: 0;
  pointer-events: none;
  filter: blur(0.2px);
  transform: translateX(-10px);
}

body.oko-sidebar-open .oko-brand-trigger haunted-eye {
  opacity: 0;
  transform: translateX(-4px);
}

body.oko-sidebar-open .oko-brand-trigger .site-title {
  opacity: 0;
  clip-path: inset(0 0 0 0);
  transform: translateX(-6px);
}

body.oko-sidebar-open .oko-brand-lines {
  opacity: 0;
  transform: translateY(-50%) scaleX(0.22);
}

.site-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast);
}

.nav-link:hover,
.admin-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
}

.burger-btn {
  display: none !important;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.burger-btn:hover,
.burger-btn[aria-expanded="true"] {
  background: rgba(127, 127, 255, 0.16);
  border-color: rgba(127, 127, 255, 0.32);
  transform: translateY(-1px);
}

.hero-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px 28px;
  text-align: center;
}

.hero-section-public {
  padding-top: 88px;
}

.hero-eye {
  width: min(410px, 74vw);
  margin: 0 auto 26px;
  display: block;
  filter: drop-shadow(0 0 26px rgba(127, 127, 255, 0.1));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(127, 127, 255, 0.24);
  background: rgba(127, 127, 255, 0.08);
  color: #c5c5ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.small-eye {
  width: min(260px, 56vw);
}

.hero-title {
  max-width: 920px;
  margin: 0 auto;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero-subtitle {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.app-hero {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-top: 28px;
  padding-bottom: 10px;
}

.app-hero .hero-badge {
  margin-bottom: 0;
}

.app-hero .hero-eye {
  margin: 0;
}

.app-hero .app-section-nav {
  width: min(100%, 860px);
  margin-bottom: 0;
  justify-content: center;
}

.app-hero-note {
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-align: center;
}

.main-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

.main-content-profile {
  padding-top: 38px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.section-desc {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.section-spaced {
  margin-top: 58px;
}

.section-spaced-sm {
  margin-top: 20px;
}

.section-spaced-xs {
  margin-top: 10px;
}

.cards-grid,
.split-grid,
.summary-grid,
.detail-grid,
.record-list,
.feed-list,
.profile-month-grid {
  display: grid;
  gap: 18px;
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.updates-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card,
.summary-tile,
.record-card,
.spotlight-card,
.search-surface,
.profile-hero-card,
.feed-card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card {
  padding: 24px;
}

.info-strip {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.info-strip strong {
  color: var(--text-primary);
  font-size: 0.96rem;
}

.info-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
  font-size: 0.88rem;
}

.info-strip-grid span b {
  color: var(--text-primary);
}

.feature-card {
  min-height: 170px;
}

.card,
.record-card,
.summary-tile,
.feed-card {
  transition:
    transform var(--transition-normal),
    border-color var(--transition-normal),
    background var(--transition-normal);
}

.card:hover,
.record-card:hover,
.summary-tile:hover,
.feed-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
}

.card-date {
  margin-bottom: 10px;
  color: var(--text-tertiary);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-title {
  margin-bottom: 12px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.card-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.search-surface {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 22px;
}

.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-form-hero .search-input {
  flex: 1;
}

.search-button {
  min-width: 160px;
}

.search-status {
  margin-top: 14px;
}

.summary-tile {
  padding: 22px 18px;
  display: grid;
  gap: 8px;
}

.summary-label {
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-tile strong {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.summary-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stat-box {
  min-width: 0;
  padding: 12px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

.stat-box span {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-box strong {
  display: block;
  margin-top: 6px;
  font-size: 0.94rem;
  word-break: break-word;
}

.identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.identity-compact {
  gap: 12px;
}

.identity-avatar {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 18px;
  border: 1px solid var(--border-medium);
  background: linear-gradient(135deg, rgba(127, 127, 255, 0.18), rgba(255, 255, 255, 0.06));
  display: grid;
  place-items: center;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  overflow: hidden;
}

.identity-avatar-emoji {
  font-size: 2.1rem;
  line-height: 1;
}

.identity-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.identity-text strong {
  font-size: 1rem;
  line-height: 1.15;
}

.identity-text span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.identity-text-large strong {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.identity-text-large span {
  font-size: 1rem;
}

.record-card,
.feed-card {
  padding: 18px;
}

.record-card-head,
.spotlight-header,
.feed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.record-card-body,
.feed-content,
.feed-quote,
.feed-media-grid,
.feed-stats {
  margin-top: 14px;
}

.record-card-title {
  display: block;
  font-size: 1rem;
}

.feed-head-side,
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.feed-content {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
}

.feed-quote {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

.feed-quote strong {
  display: block;
  margin-bottom: 6px;
}

.feed-context-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  color: var(--text-tertiary);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-quote p {
  color: var(--text-secondary);
}

.feed-content-muted {
  color: var(--text-secondary);
}

.feed-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.feed-media-grid img {
  width: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
}

.feed-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 0.86rem;
}

.profile-hero-card,
.spotlight-card {
  overflow: hidden;
}

.profile-cover,
.spotlight-cover {
  min-height: 170px;
  background:
    linear-gradient(135deg, rgba(127, 127, 255, 0.26), rgba(127, 127, 255, 0.06)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  background-size: cover;
  background-position: center;
}

.profile-hero-body,
.spotlight-body {
  padding: 24px;
}

.profile-hero-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.spotlight-meta {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-hero {
  padding-bottom: 18px;
}

.auth-shell {
  max-width: 840px;
  margin: 0 auto;
}

.auth-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.auth-tab {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.auth-tab.active {
  background: rgba(127, 127, 255, 0.16);
  color: var(--text-primary);
}

.auth-panels {
  display: grid;
}

.inline-code,
.mono-line,
.code-block code {
  font-family: "SFMono-Regular", "Consolas", monospace;
}

.inline-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.82rem;
}

.mono-line {
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 0.79rem;
  word-break: break-all;
}

.subtle-line {
  color: var(--text-tertiary);
  font-size: 0.84rem;
}

.code-block {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(127, 127, 255, 0.24);
  border-radius: var(--radius-md);
  background: rgba(127, 127, 255, 0.08);
}

.code-block code {
  display: block;
  margin-top: 6px;
  color: var(--text-primary);
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  word-break: break-all;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(127, 127, 255, 0.22);
}

.btn-secondary {
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
}

.form-group {
  display: grid;
  gap: 8px;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.form-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: rgba(127, 127, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(127, 127, 255, 0.12);
}

.form-input::placeholder {
  color: rgba(247, 248, 251, 0.34);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.choice-pill:hover {
  transform: translateY(-1px);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.choice-pill.active {
  border-color: rgba(127, 127, 255, 0.34);
  background: rgba(127, 127, 255, 0.14);
  color: var(--text-primary);
  box-shadow: 0 10px 28px rgba(127, 127, 255, 0.14);
}

.form-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions {
  justify-content: flex-end;
}

.action-row-stacked {
  margin-bottom: 16px;
  flex-direction: column;
  align-items: stretch;
}

.btn-compact {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.admin-actions-card {
  padding: 18px;
}

.admin-actions-card .card-body {
  font-size: 0.88rem;
}

.status-line {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.status-good {
  color: var(--success);
}

.status-warn {
  color: var(--warning);
}

.status-bad {
  color: var(--danger);
}

.helper-list,
.feature-list {
  margin-top: 16px;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
}

.kv-list {
  display: grid;
  gap: 12px;
}

.kv-list > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.kv-list span {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kv-list strong {
  max-width: 58%;
  text-align: right;
  font-size: 0.94rem;
  word-break: break-word;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill.risk-safe {
  color: var(--success);
  border-color: rgba(108, 226, 161, 0.28);
  background: rgba(108, 226, 161, 0.08);
}

.pill.risk-suspicious {
  color: var(--warning);
  border-color: rgba(255, 208, 103, 0.28);
  background: rgba(255, 208, 103, 0.08);
}

.pill.risk-dangerous {
  color: var(--danger);
  border-color: rgba(255, 129, 124, 0.28);
  background: rgba(255, 129, 124, 0.08);
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.empty-state {
  padding: 52px 24px;
  text-align: center;
  color: var(--text-tertiary);
}

.compact-empty {
  padding: 24px 12px;
}

.empty-state-text {
  font-size: 1rem;
}

.empty-state-hint {
  margin-top: 6px;
  font-size: 0.88rem;
}

.hidden {
  display: none !important;
}

.site-footer {
  padding: 34px 24px 48px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.84rem;
}

.glyph-hero {
  padding-top: 44px;
  padding-bottom: 20px;
}

.glyph-main {
  max-width: 1220px;
}

.glyph-workspace,
.glyph-output-grid {
  display: grid;
  gap: 18px;
  align-items: start;
}

.glyph-workspace {
  grid-template-columns: 360px minmax(0, 1fr);
}

.glyph-output-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
}

.glyph-control-panel {
  position: sticky;
  top: 82px;
}

.glyph-dropzone {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 20px;
  border: 1px dashed rgba(127, 127, 255, 0.36);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(127, 127, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.glyph-dropzone:hover,
.glyph-dropzone.is-dragging {
  transform: translateY(-1px);
  border-color: rgba(154, 154, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(127, 127, 255, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
}

.glyph-dropzone input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.glyph-dropzone-compact {
  min-height: 112px;
}

.glyph-drop-title {
  align-self: end;
  color: var(--text-primary);
  font-size: 1.04rem;
  font-weight: 700;
}

.glyph-drop-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.glyph-controls {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.glyph-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.glyph-range span {
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
}

.glyph-range input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--accent);
}

.glyph-range strong {
  justify-self: end;
  color: var(--text-primary);
  font-size: 0.86rem;
}

.glyph-actions {
  margin-top: 16px;
}

.glyph-preview-panel,
.glyph-target-shell,
.glyph-canvas-shell {
  border: 1px solid var(--border-subtle);
  background: rgba(17, 19, 28, 0.82);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.glyph-preview-panel {
  padding: 18px;
}

.glyph-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.glyph-canvas-shell,
.glyph-target-shell {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(127, 127, 255, 0.08), transparent),
    #10121a;
}

.glyph-canvas-shell canvas,
.glyph-target-shell canvas {
  display: block;
  width: 100%;
  height: auto;
}

.glyph-canvas-shell canvas {
  aspect-ratio: 720 / 920;
}

.glyph-target-shell {
  margin-top: 16px;
}

.glyph-target-shell canvas {
  aspect-ratio: 720 / 460;
}

.glyph-output {
  width: 100%;
  min-height: 320px;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  font: 0.82rem/1.55 "SFMono-Regular", "Consolas", monospace;
  outline: none;
}

.glyph-output-small {
  min-height: 220px;
}

.glyph-output:focus {
  border-color: rgba(127, 127, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(127, 127, 255, 0.12);
}

.glyph-decode-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
}

.glyph-decode-summary span,
.glyph-stat-grid span {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glyph-decode-summary strong {
  color: var(--text-primary);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.glyph-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.glyph-stat-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
}

.glyph-stat-grid strong {
  min-width: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

body[data-page="profile"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(127, 127, 255, 0.08), transparent 30rem),
    radial-gradient(circle at 18% 24rem, rgba(255, 208, 103, 0.055), transparent 22rem),
    linear-gradient(180deg, #08090f 0%, #05060a 100%);
}

.main-content-profile {
  max-width: 1280px;
  padding-top: 26px;
  padding-bottom: 64px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-areas:
    "hero stats"
    "feed stats";
  gap: 20px 24px;
  align-items: start;
}

.profile-layout > * {
  min-width: 0;
  max-width: 100%;
}

#profileHero {
  grid-area: hero;
}

#profileAnalytics {
  grid-area: stats;
}

.profile-feed-shell {
  grid-area: feed;
}

.profile-main-column,
.profile-side-column {
  min-width: 0;
}

.profile-side-column {
  position: sticky;
  top: 82px;
}

.profile-side-card,
.profile-feed-shell,
.profile-analytics-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(19, 21, 31, 0.92), rgba(12, 14, 22, 0.92)),
    var(--bg-card);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.profile-feed-shell,
.profile-side-card,
.profile-analytics-panel {
  padding: 20px;
}

.profile-analytics-panel {
  position: sticky;
  top: 80px;
  border-radius: 22px;
}

.profile-stats-head,
.profile-stats-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-stats-head {
  align-items: center;
  margin-bottom: 12px;
}

.profile-stats-toggle {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: #19191b;
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.profile-stats-toggle:hover,
.profile-stats-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.18);
  background: #202024;
  outline: 0;
}

.profile-stats-toggle:active {
  transform: scale(0.96);
}

.profile-stats-body {
  overflow: hidden;
}

.profile-stats-periods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-stats-period {
  min-width: 0;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-tertiary);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
  transition-property: color, background-color, transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.profile-stats-period:hover,
.profile-stats-period:focus-visible {
  color: var(--text-primary);
  outline: 0;
}

.profile-stats-period:focus-visible {
  box-shadow: 0 0 0 2px rgba(77, 156, 255, 0.55);
}

.profile-stats-period:active {
  transform: scale(0.97);
}

.profile-stats-period[aria-pressed="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.115);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-stats-kpis {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 0.8fr;
  gap: 0;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  margin-bottom: 9px;
}

.profile-stats-kpi {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-stats-kpi:first-child {
  padding-left: 0;
  border-left: 0;
}

.profile-stats-kpi:last-child {
  padding-right: 0;
}

.profile-stats-kpi span {
  display: block;
  margin-bottom: 0;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 800;
}

.profile-stats-kpi strong {
  display: block;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stats-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.profile-stats-secondary span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #202128;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.profile-stats-visual {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.profile-stats-section-head {
  align-items: baseline;
  margin-bottom: 5px;
  font-size: 0.82rem;
}

.profile-stats-insight {
  margin: 0 0 7px;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.profile-stats-section-head span {
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-stats-chart-shell {
  position: relative;
  overflow: visible;
  border-radius: 10px;
  background: #181920;
}

.profile-stats-chart {
  display: block;
  width: 100%;
  height: 132px;
}

.profile-stats-chart-grid {
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.profile-stats-chart-area {
  fill: url(#profileStatsArea);
}

.profile-stats-chart-line {
  fill: none;
  stroke: #4d9cff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.profile-stats-chart-dot {
  fill: #4d9cff;
  stroke: #181920;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.profile-stats-chart-dot.is-active {
  fill: #dcecff;
  stroke: #2f8cff;
  stroke-width: 4;
}

.profile-stats-chart-post-dot {
  fill: #30d158;
  stroke: #181920;
  stroke-width: 2;
  opacity: 0.95;
  vector-effect: non-scaling-stroke;
}

.profile-stats-chart-hit {
  fill: transparent;
  cursor: crosshair;
  pointer-events: all;
}

.profile-stats-chart-hit:focus {
  outline: 0;
}

.profile-stats-chart-rule {
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}

.profile-stats-chart-tooltip {
  position: absolute;
  top: 8px;
  z-index: 4;
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(17, 17, 19, 0.97);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
  color: var(--text-primary);
  pointer-events: none;
}

.profile-stats-chart-tooltip[hidden] {
  display: none;
}

.profile-stats-chart-tooltip strong,
.profile-stats-chart-tooltip span {
  display: block;
  line-height: 1.25;
}

.profile-stats-chart-tooltip strong {
  font-size: 0.8rem;
}

.profile-stats-chart-tooltip span {
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.profile-stats-chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-stats-activity-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.profile-stats-activity-summary span {
  min-width: 0;
  padding: 5px 7px;
  border-radius: 999px;
  background: #252528;
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.profile-stats-best {
  margin-top: 16px;
}

.profile-stats-best-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.profile-stats-best-row {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #1e1f26;
}

.profile-stats-best-row strong,
.profile-stats-best-row span {
  display: block;
}

.profile-stats-best-row strong {
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 0.82rem;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-stats-best-row span {
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.profile-feed-shell-head,
.profile-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title-compact {
  font-size: 1.08rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.profile-hero-card {
  position: relative;
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(20, 22, 32, 0.84), rgba(12, 14, 22, 0.96)),
    var(--bg-card);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-cover {
  position: relative;
  min-height: clamp(180px, 22vw, 280px);
  background-color: #151722;
  background-image:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.14), transparent 18rem),
    linear-gradient(135deg, rgba(127, 127, 255, 0.22), rgba(255, 208, 103, 0.08));
  background-position: center 36%;
  box-shadow: inset 0 -86px 72px rgba(8, 9, 15, 0.82);
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.02) 0%, rgba(5, 6, 10, 0.18) 48%, rgba(5, 6, 10, 0.86) 100%),
    linear-gradient(90deg, rgba(5, 6, 10, 0.72) 0%, transparent 30%, transparent 70%, rgba(5, 6, 10, 0.42) 100%);
  pointer-events: none;
}

.profile-hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-top: -76px;
  padding: 0 26px 24px;
}

.profile-hero-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.identity-profile .identity-avatar,
.profile-hero-card .identity-avatar {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(127, 127, 255, 0.22), rgba(255, 208, 103, 0.12)),
    #171925;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 1.35rem;
}

.profile-hero-card .identity-avatar-emoji {
  font-size: 3rem;
}

.profile-hero-card .identity-text-large strong {
  display: block;
  max-width: min(52vw, 620px);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 0.96;
  text-wrap: balance;
}

.profile-hero-card .identity-text-large span {
  color: rgba(247, 248, 251, 0.7);
  font-size: 1rem;
}

.profile-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.profile-inline-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.profile-inline-metrics strong {
  color: var(--text-primary);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.profile-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-summary-grid .summary-tile {
  min-height: 92px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.profile-summary-grid .summary-tile strong {
  font-size: 1.55rem;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.profile-summary-grid .summary-tile-wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.profile-summary-grid .summary-tile-muted strong {
  max-width: 100%;
  font-size: 0.98rem;
  line-height: 1.28;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.profile-month-compact {
  margin-top: 14px;
}

.profile-stats-groups {
  display: grid;
  gap: 18px;
}

.profile-stats-group {
  min-width: 0;
}

.profile-stats-group + .profile-stats-group {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.profile-stats-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.profile-stats-group-head strong {
  font-size: 0.82rem;
  letter-spacing: 0;
}

.profile-stats-group-head span {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: right;
}

.profile-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-detail-grid .stat-box {
  padding: 10px 12px;
}

.profile-detail-grid .stat-box strong {
  font-size: 0.9rem;
}

.activity-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 16px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.18);
}

.activity-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.activity-tab:active {
  transform: scale(0.98);
}

.activity-tab strong {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.activity-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.activity-tab.active strong {
  color: var(--text-primary);
}

.feed-list {
  gap: 14px;
}

.feed-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.feed-head {
  gap: 10px;
}

.feed-head-side {
  gap: 6px;
}

.feed-content {
  font-size: 0.96rem;
  line-height: 1.62;
}

.feed-quote {
  padding: 12px 14px;
}

.feed-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.feed-media-grid img {
  min-height: 144px;
}

.feed-stats {
  gap: 10px 14px;
  font-size: 0.82rem;
}

.profile-feed-shell .status-line,
.profile-side-card .status-line {
  font-size: 0.84rem;
}

.profile-feed-shell .compact-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 28px 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(127, 127, 255, 0.08), transparent 18rem),
    rgba(255, 255, 255, 0.025);
}

.app-section-nav {
  position: sticky;
  top: 72px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  background: rgba(13, 15, 22, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.app-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.app-nav-btn.active {
  background: rgba(127, 127, 255, 0.16);
  color: var(--text-primary);
}

.app-section-panel.hidden {
  display: none;
}

.fade-in-up {
  animation: fadeInUp 480ms ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 980px) {
  .glyph-workspace,
  .glyph-output-grid {
    grid-template-columns: 1fr;
  }

  .glyph-control-panel {
    position: static;
  }

  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "stats"
      "feed";
  }

  .profile-side-column,
  .profile-analytics-panel {
    position: static;
  }

  .split-grid,
  .summary-grid,
  .profile-hero-body,
  .updates-layout {
    grid-template-columns: 1fr;
  }

  .profile-hero-body {
    display: grid;
    align-items: flex-start;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  body.menu-open {
    overflow: hidden;
  }

  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: max-content;
    max-height: calc(100vh - 72px);
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    overflow-y: auto;
    border: 1px solid rgba(127, 127, 255, 0.18);
    border-radius: 24px;
    background:
      radial-gradient(circle at 80% 0%, rgba(127, 127, 255, 0.18), transparent 38%),
      linear-gradient(180deg, rgba(17, 19, 28, 0.98), rgba(8, 9, 15, 0.98));
    box-shadow:
      0 28px 80px rgba(0, 0, 0, 0.56),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    animation: mobileMenuIn 180ms ease-out;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav.open::before {
    content: "Навигация";
    display: block;
    padding: 4px 8px 6px;
    color: var(--text-tertiary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .nav-link,
  .admin-btn {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    padding: 0 16px;
    border-color: var(--border-subtle);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text-primary);
    font-weight: 700;
  }

  .nav-link:hover,
  .admin-btn:hover {
    background: rgba(127, 127, 255, 0.14);
    border-color: rgba(127, 127, 255, 0.28);
  }

  .oko-sidebar-head {
    height: 56px;
  }

  .hero-section {
    padding: 62px 16px 24px;
  }

  .app-hero {
    gap: 12px;
    padding-top: 18px;
    padding-bottom: 6px;
  }

  .main-content,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cards-grid,
  .detail-grid,
  .feed-media-grid,
  .glyph-workspace,
  .glyph-output-grid,
  .summary-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .search-form,
  .form-actions,
  .action-row,
  .choice-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .search-button {
    width: 100%;
  }

  .record-card-head,
  .spotlight-header,
  .feed-head,
  .kv-list > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .feed-head-side,
  .profile-badges {
    justify-content: flex-start;
  }

  .activity-tabs {
    padding: 4px;
  }

  .app-section-nav {
    top: 64px;
    padding: 6px;
  }

  .activity-tab {
    min-height: 38px;
    padding: 0 14px;
  }

  .app-nav-btn {
    width: 100%;
  }

  .kv-list strong {
    max-width: 100%;
    text-align: left;
  }

  .main-content-profile {
    padding-inline: 12px;
  }

  .profile-analytics-panel,
  .profile-feed-shell {
    padding: 14px;
    border-radius: 16px;
  }

  .profile-stats-head {
    align-items: flex-start;
  }

  .profile-stats-periods {
    gap: 3px;
  }

  .profile-stats-period {
    min-height: 40px;
    padding-inline: 5px;
    font-size: 0.76rem;
  }

  .profile-stats-kpis {
    grid-template-columns: 1.05fr 1.05fr 0.8fr;
  }

  .profile-stats-kpi strong {
    font-size: 1.35rem;
  }

  .profile-stats-visual {
    padding: 10px;
  }

  .profile-stats-chart {
    height: 132px;
  }

  .profile-stats-best-list {
    grid-template-columns: 1fr;
  }
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== Боковая панель (oko-sidebar) ===== */
:root {
  --oko-sidebar-w: 304px;
}

/* Keeps the burger toggle + logo grouped on the left, nav pushed right. */
.logo-area {
  margin-right: auto;
}

.oko-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background:
    radial-gradient(circle at 18% 18%, rgba(127, 127, 255, 0.045), transparent 32%),
    rgba(7, 8, 13, 0.58);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.oko-sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.oko-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  width: min(82vw, var(--oko-sidebar-w));
  height: 100dvh;
  overflow: hidden;
  padding: 0 20px 22px;
  background:
    linear-gradient(180deg, rgba(9, 10, 16, 0.965) 0%, rgba(6, 7, 11, 0.985) 100%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-right: 1px solid var(--border-subtle);
  box-shadow:
    24px 0 70px rgba(0, 0, 0, 0.34),
    inset -1px 0 0 rgba(255, 255, 255, 0.025);
  transform: translateX(-102%);
  transform-origin: left center;
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.oko-sidebar.open {
  transform: translateX(0);
}

.oko-sidebar::after {
  display: none;
}

.oko-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 61px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.oko-sidebar-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  padding-left: 56px;
  color: var(--text-primary);
  font-weight: 780;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateX(26px);
  will-change: transform, opacity;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.oko-sidebar-brand > span {
  display: inline-block;
  transition:
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.oko-sidebar-eye {
  position: absolute;
  left: 0;
  top: 50%;
  z-index: 3;
  background: transparent;
  opacity: 0.8;
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.05));
  transform: translateY(-50%);
  transition:
    opacity 220ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.oko-sidebar-title {
  margin-right: auto;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.oko-sidebar-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(244, 246, 255, 0.54);
  font-size: 1.05rem;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background var(--transition-fast),
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.oko-sidebar-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.045);
  transform: scale(1.04);
}

.oko-sidebar-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.oko-sidebar-body {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: stretch;
  padding: 28px 0 0;
}

.oko-sidebar-nav {
  display: grid;
  width: 100%;
  gap: 0;
}

.oko-sidebar-link {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 18px 0 19px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 620ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 620ms cubic-bezier(0.19, 1, 0.22, 1),
    color 220ms ease;
}

.oko-sidebar-link::before {
  display: none;
}

.oko-sidebar-link:hover {
  color: #ffffff;
  transform: translateX(8px);
}

.oko-sidebar-link:hover::before {
  display: none;
}

.oko-sidebar-link span {
  display: inline-block;
  font-size: 1.06rem;
  font-weight: 760;
  letter-spacing: -0.018em;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.oko-sidebar-link small {
  max-width: 24ch;
  color: rgba(244, 246, 255, 0.48);
  font-size: 0.78rem;
  line-height: 1.45;
  transition: color 220ms ease;
}

.oko-sidebar-link:hover small {
  color: rgba(244, 246, 255, 0.68);
}

/* content settles in just after the panel itself */
.oko-sidebar-head,
.oko-sidebar-body {
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
}

.oko-sidebar.open .oko-sidebar-head {
  transition-delay: 120ms;
  opacity: 1;
  transform: none;
}

.oko-sidebar.open .oko-sidebar-brand {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 180ms;
}

.oko-sidebar.open .oko-sidebar-eye {
  transform: translateY(-50%);
}

.oko-sidebar.is-tracking .oko-sidebar-brand > span {
  opacity: 0.58;
  transform: translateX(-34px);
}

.oko-sidebar.is-tracking .oko-sidebar-eye {
  opacity: 0.86;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.08));
  transform: translate(-12px, calc(-50% + var(--oko-eye-y, 0px))) scale(0.6);
}

.oko-sidebar.is-tracking .oko-sidebar-link:hover span {
  transform: translateX(34px);
}

.oko-sidebar.open .oko-sidebar-body {
  transition-delay: 180ms;
  opacity: 1;
  transform: none;
}

.oko-sidebar.open .oko-sidebar-link {
  opacity: 1;
  transform: translateX(0);
}

.oko-sidebar.open .oko-sidebar-link:nth-child(1) {
  transition-delay: 210ms;
}

.oko-sidebar.open .oko-sidebar-link:nth-child(2) {
  transition-delay: 280ms;
}

.oko-sidebar.open .oko-sidebar-link:nth-child(3) {
  transition-delay: 350ms;
}

@media (min-width: 1200px) {
  .oko-sidebar-overlay {
    display: none;
  }
}

/* Narrower screens: the panel overlays; lock the page scroll behind it. */
@media (max-width: 1199px) {
  body.oko-sidebar-open {
    overflow: hidden;
  }
}

@media (max-width: 780px) {
  .oko-sidebar-head {
    height: 57px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  .oko-sidebar,
  .oko-sidebar-overlay,
  .oko-sidebar-head,
  .oko-sidebar-body,
  .oko-sidebar-brand,
  .oko-brand-trigger,
  .oko-brand-trigger haunted-eye,
  .oko-brand-trigger .site-title,
  .oko-brand-lines,
  .oko-brand-lines span {
    animation: none;
    transition: none;
  }
}
