/* Nexora Community: shared visual language for the site, Control and mini apps. */
:root {
  --bg: #0c1118;
  --panel: #141c26;
  --panel-2: #192431;
  --panel-strong: #1c2b39;
  --text: #edf3f3;
  --muted: #a4b3bd;
  --quiet: #899aa7;
  --line: #2a3945;
  --line-strong: #3c525f;
  --blue: #94ddcc;
  --blue-soft: #163c38;
  --green: #94ddcc;
  --silver: #d9f0e9;
  --radius: 18px;
  --accent: #94ddcc;
  --accent-ink: #0c3029;
  --danger: #ff9a9c;
  font-family: "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}
html { background: var(--bg); scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--text); }
.control-body { background: var(--bg); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, input, select { min-height: 44px; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
input, textarea, select { background: #0e1720; color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; }
input::placeholder, textarea::placeholder { color: #94a5b2; }
::selection { background: #8fd4c8; color: #0c2221; }
.site-header, .control-header, .app-header, .author-shell > header {
  background: rgba(12, 17, 24, .94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { letter-spacing: -.035em; }
.main-nav a { color: #bac9cf; }
.main-nav a:hover { color: var(--accent); }
.staff-login-button, .compact-button, .secondary-button { border-color: var(--line-strong); border-radius: 10px; }
.hero { min-height: 700px; background: #0c1118; border-bottom: 1px solid var(--line); }
.hero-visual { opacity: .32; filter: saturate(.35); object-position: 72% center; }
.hero-shadow { background: linear-gradient(90deg, #0c1118 12%, rgba(12,17,24,.76) 52%, rgba(12,17,24,.05)); }
.hero-inner { padding-top: 115px; padding-bottom: 80px; }
.hero-logo { width: 60px; height: 64px; margin-bottom: 28px; }
.hero h1 { max-width: 850px; font-size: clamp(46px, 6.7vw, 92px); line-height: 1.02; letter-spacing: -.065em; font-weight: 650; }
.hero-copy { max-width: 540px; color: #b8c7cd; font-size: 19px; line-height: 1.65; }
.eyebrow, .section-label { color: var(--accent); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.hero-actions { margin-top: 32px; }
.primary-button { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-radius: 12px; font-weight: 700; }
.control-login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 28px 80px #0005; }
.control-login h1 { letter-spacing: -.05em; }
.control-sidebar { background: #101923; border-right: 1px solid var(--line); }
.control-nav button { border-radius: 10px; margin-bottom: 3px; }
.control-nav button.is-active { background: #1c3735; color: #c5f4e8; box-shadow: inset 3px 0 var(--accent); }
.control-stat-card, .control-panel, .setting-row, .bot-card, .staff-card, .ticket-card,
.profile-card, .metric, .timeline article, .feedback-card, .comment-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 4px 16px #0000000d;
}
.control-stat-card { padding: 22px; }
.control-stat-card strong { letter-spacing: -.055em; font-weight: 650; }
.control-stat-card small { color: var(--muted); }
.control-panel h2, .section-head h2 { letter-spacing: -.03em; }
.setting-row { padding: 20px; gap: 20px; margin-bottom: 10px; }
.setting-row h2 { font-size: 16px; }
.setting-row p { line-height: 1.55; max-width: 560px; }
.setting-control { flex-wrap: wrap; gap: 8px; }
.setting-control input { width: 190px; padding: 10px 12px; }
.toggle-button { border-radius: 999px; min-width: 140px; }
.toggle-button.is-on { color: #bcf2e2; background: #173a32; border-color: #3d7c6d; }
.control-table-wrap { border-radius: 14px; overflow-x: auto; border-color: var(--line); }
.control-table th { background: #17212c; color: var(--muted); }
.control-table td { border-color: var(--line); }
.control-empty, .empty { color: var(--muted); border-radius: 16px; background: #111923; }
.author-shell, .feedback-shell, .comments-shell { padding-bottom: env(safe-area-inset-bottom); }
.author-tabs, .mini-tabs { background: #121e29; border-color: var(--line); border-radius: 14px; }
.author-tabs a, .mini-tabs a { min-height: 44px; display: flex; justify-content: center; align-items: center; }
.author-tabs a.is-active, .mini-tabs a.is-active { background: #254139; color: #cdf9e8; box-shadow: none; }
.profile-card { background: #172922; }
.profile-avatar { background: #395e52; color: #dcfff0; }
.profile-card span, .section-head span { color: #add9c7; }
.profile-card h1 { letter-spacing: -.035em; }
.score strong { color: #c4efd9; }
.tier { border-color: #3e6556; color: #b1dfc8; font-size: 10px; letter-spacing: .08em; }
.timeline article { border-left: 3px solid #44675d; }
.timeline p { color: #d5e2e5; line-height: 1.6; overflow-wrap: anywhere; }
.metric strong { color: #dbefe7; }
.error button { background: var(--accent); color: var(--accent-ink); }
.connectome-card, .connectome-toolbar { border-color: var(--line); border-radius: 16px; }
@media (max-width: 760px) {
  .hero { min-height: 610px; }
  .hero-inner { padding: 100px 22px 55px; }
  .hero-visual { opacity: .18; }
  .hero-copy { font-size: 16px; }
  .setting-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .setting-control { width: 100%; }
  .setting-control input, .setting-control select { max-width: 100%; flex: 1; min-width: 100px; }
  .setting-control .compact-button { flex: 0 0 auto; }
  .control-stat-card { padding: 16px; }
  .control-login-card { margin: 14px; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
