* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #2c2c2c;
  --text-secondary: #737373;
  --text-tertiary: #a3a3a3;
  --accent: #525252;
  --accent-hover: #404040;
  --border: #e5e5e5;
  --shadow: rgba(0, 0, 0, 0.05);
  --danger: #dc2626;
  --warning: #d97706;
  --success: #16a34a;
  --declined: #dc2626;
  --declined-bg: #fef2f2;
  --accepted: #16a34a;
  --accepted-bg: #f0fdf4;
  --pending: #d97706;
  --pending-bg: #fffbeb;
  --warning-bg: #fff7ed;
  --radius: 12px;
  --radius-sm: 8px;
  --focus: #1f2937;
}

[data-theme="dark"] {
  --bg: #121212;
  --surface: #1e1e1e;
  --text: #e5e5e5;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --accent: #a3a3a3;
  --accent-hover: #d4d4d4;
  --border: #2a2a2a;
  --shadow: rgba(0, 0, 0, 0.3);
  --focus: #d4d4d4;
  --declined: #ef4444;
  --declined-bg: #2a1a1a;
  --accepted: #22c55e;
  --accepted-bg: #15251a;
  --pending: #f59e0b;
  --pending-bg: #2a2312;
  --warning-bg: #2a2312;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.wrap {
  width: min(1200px, 100%);
  margin: 0 auto;
}

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

header {
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.theme-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
  padding: 0;
}

.theme-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.theme-btn svg {
  display: block;
}

.lang-switch {
  position: relative;
}

.lang-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 34px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
  transition: all 0.2s;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

.lang-flag {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-flag-img {
  width: 16px;
  height: 11px;
  border-radius: 2px;
}

.lang-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 10px 24px var(--shadow);
  padding: 6px;
  display: none;
  z-index: 40;
}

.lang-popover.open {
  display: block;
}

.lang-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--text);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
}

.lang-option:hover,
.lang-option:focus-visible,
.lang-option--active {
  background: rgba(127, 127, 127, 0.12);
}

.lang-name {
  flex: 1;
}

.top__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

.top__actions .btn {
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.linked-label,
.btn--linked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.linked-label:hover,
.btn--linked:hover {
  color: var(--text-secondary);
  border-color: var(--border);
  background: var(--surface);
}

.profile-menu-wrap {
  position: relative;
}

.profile-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar__fallback {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar img + .profile-avatar__fallback {
  display: none;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 30px var(--shadow);
  padding: 8px;
  display: none;
  z-index: 60;
}

.profile-menu.open {
  display: block;
}

.profile-menu__head {
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  display: grid;
  gap: 2px;
}

.profile-menu__head strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.profile-menu__head span {
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-menu__item {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
  display: block;
  cursor: pointer;
}

.profile-menu__item:hover {
  background: var(--bg);
}

.profile-menu__item--danger {
  color: var(--danger);
}

.greeting {
  font-size: 13px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

main > * {
  width: 100%;
}

.page-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.page-shell > * + * {
  margin-top: 20px;
}

.page-shell > * {
  margin-left: auto;
  margin-right: auto;
}

.page-narrow {
  width: min(920px, 100%);
  margin: 0 auto;
}

.page-wide {
  width: min(1120px, 100%);
  margin: 0 auto;
}

#live-announcement {
  margin-bottom: 20px;
}

#live-announcement:empty {
  display: none;
}

.landing-shell {
  min-height: calc(100vh - 230px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-home .landing-shell {
  min-height: auto;
  width: 100%;
}

.container {
  max-width: 480px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

body.page-home .container {
  max-width: 480px;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.hero__title {
  font-size: 40px;
  letter-spacing: -0.6px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

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

.small {
  font-size: 13px;
}

.title-spaced {
  margin-bottom: 8px;
}

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

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  margin-bottom: 8px;
}

.page-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

.page-header--compact {
  margin-bottom: 20px;
}

.login-card,
.card,
.form-card,
.login-section,
.callout,
.details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
}

.login-card {
  padding: 32px;
  margin-bottom: 24px;
}

body.page-home .login-card {
  margin-bottom: 0;
}

.login-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow);
}

.login-btn--discord,
.login-btn--roblox {
  color: var(--text);
}

.login-btn__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-btn__icon svg {
  width: 20px;
  height: 20px;
}

.login-btn__icon img {
  width: 20px;
  height: 20px;
  display: block;
}

.login-btn--roblox .login-btn__icon svg {
  fill: currentColor;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

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

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  padding: 8px 12px;
  border-radius: 6px;
}

.status-link:hover {
  color: var(--text);
  background: var(--bg);
}

.status-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.status-link:hover svg {
  transform: translateX(2px);
}

.seo-copy {
  margin-top: 20px;
  text-align: left;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 2px 8px var(--shadow);
}

.seo-copy h2,
.seo-copy h3 {
  color: var(--text);
  margin-bottom: 8px;
}

.seo-copy p {
  margin-bottom: 10px;
}

.seo-copy ul {
  margin: 0 0 12px 18px;
}

.seo-copy li {
  margin-bottom: 6px;
}

.seo-faq dt {
  color: var(--text);
  font-weight: 600;
  margin-top: 10px;
}

.seo-faq dd {
  margin: 4px 0 0 0;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover,
button.btn:hover {
  background: var(--accent-hover);
}

.btn--discord {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--discord:hover {
  border-color: var(--accent);
  background: var(--bg);
}

.btn--roblox {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--roblox:hover {
  border-color: var(--accent);
  background: var(--bg);
}

.btn--ghost,
.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover,
.secondary:hover {
  border-color: var(--accent);
  background: var(--bg);
}

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

.btn__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-row,
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-row--mt {
  margin-top: 14px;
}

.btn-row--mt-lg {
  margin-top: 24px;
}

.btn-group--spaced {
  margin-top: 24px;
}

.btn-group--lead {
  margin-bottom: 24px;
}

.card {
  padding: 24px;
}

.form-card {
  padding: 28px;
}

.login-section {
  padding: 24px;
}

.card__title {
  margin-bottom: 8px;
}

.card__title--compact {
  margin-bottom: 6px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

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

.section {
  margin-bottom: 28px;
}

.section p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.step-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 14px;
}

.callout {
  padding: 14px;
}

.callout--info {
  border-color: var(--accent);
}

.callout--center {
  text-align: center;
}

.callout--spaced {
  margin-bottom: 14px;
}

.callout__text {
  margin-bottom: 10px;
}

.chip,
.pill,
.status-chip,
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
}

.chip--ok {
  color: var(--success);
  border-color: var(--success);
}

.chip--ghost {
  background: transparent;
}

.status-chip.accepted {
  color: var(--success);
  border-color: var(--success);
}

.status-chip.declined {
  color: var(--danger);
  border-color: var(--danger);
}

.status-chip.pending,
.pill--wait {
  color: var(--warning);
  border-color: var(--warning);
}

.badge {
  margin-bottom: 8px;
}

.countdown {
  font-variant-numeric: tabular-nums;
}

.countdown--expired {
  color: var(--danger);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

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

label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

input[type="text"],
textarea,
select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 11px 12px;
  font-size: 14px;
  line-height: 1.45;
  transition: border-color 0.2s;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-tertiary);
}

.field-counter {
  align-self: flex-end;
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.details {
  overflow: hidden;
}

.details + .details {
  margin-top: 12px;
}

.details summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.details summary::-webkit-details-marker {
  display: none;
}

.details-body {
  padding: 14px;
  border-top: 1px solid var(--border);
}

.details-count {
  color: var(--text-secondary);
  font-weight: 500;
}

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

.kv-row,
.row__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.kv-row:last-child,
.row__meta:last-child {
  border-bottom: 0;
}

.k,
.row__k {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 600;
}

.v,
.row__v,
.row__v--wrap {
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

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

.row {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.row__left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.row__left .muted + .muted {
  margin-left: 2px;
}

.row__right {
  display: grid;
  gap: 8px;
}

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

.sessions-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.sessions-subheading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 2px;
}

.session-note {
  font-size: 12px;
  color: var(--text-tertiary);
}

.session-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.session-card--history {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.session-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.session-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  padding: 2px 8px;
  color: var(--text-secondary);
  background: var(--surface);
}

.session-pill--new {
  border-color: color-mix(in srgb, var(--warning) 48%, transparent);
  color: var(--warning);
  background: var(--warning-bg);
}

.session-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.session-status--normal {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 45%, transparent);
  background: color-mix(in srgb, var(--success) 10%, transparent);
}

.session-status--expired {
  color: var(--pending);
  border-color: color-mix(in srgb, var(--pending) 45%, transparent);
  background: color-mix(in srgb, var(--pending) 10%, transparent);
}

.session-status--forced {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}

.session-actions {
  display: inline-flex;
}

.session-actions--top {
  margin-top: 2px;
}

.status-page {
  width: min(900px, 100%);
  margin: 0 auto;
}

.status-container {
  max-width: 800px;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--border);
}

.appeal-item {
  position: relative;
  margin-bottom: 24px;
}

.appeal-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 20px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  z-index: 1;
}

.appeal-item.status-declined::before {
  background: var(--declined);
}

.appeal-item.status-accepted::before {
  background: var(--accepted);
}

.appeal-item.status-pending::before {
  background: var(--pending);
}

.appeal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: box-shadow 0.2s;
}

.appeal-card:hover {
  box-shadow: 0 4px 12px var(--shadow);
}

.appeal-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
  gap: 16px;
}

.appeal-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-badge.status-declined {
  background: var(--declined-bg);
  color: var(--declined);
}

.status-badge.status-accepted {
  background: var(--accepted-bg);
  color: var(--accepted);
}

.status-badge.status-pending {
  background: var(--pending-bg);
  color: var(--pending);
}

.status-badge--active {
  background: color-mix(in srgb, var(--success) 16%, transparent);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 42%, transparent);
  margin-left: auto;
  text-transform: none;
  letter-spacing: 0;
}

.appeal-info {
  display: grid;
  gap: 12px;
}

.info-row {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.info-label {
  color: var(--text-tertiary);
  min-width: 100px;
}

.info-value {
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.appeal-text {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.appeal-text .label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.appeal-content {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.history-list--compact .history-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.history-list--compact .history-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.history-list--compact .meta {
  color: var(--text-secondary);
  font-size: 13px;
}

.appeal-submit {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.submit-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  font-family: "Segoe UI", "Roboto", sans-serif;
}

.submit-shell input,
.submit-shell textarea,
.submit-shell button {
  font-family: inherit;
}

.submit-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.submit-profile--ban {
  align-items: center;
  gap: 12px;
}

.submit-profile__avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-tertiary);
  flex-shrink: 0;
  position: relative;
}

.submit-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.submit-profile__avatar span {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-profile__avatar img + span {
  display: none;
}

.submit-profile__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.submit-profile__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submit-profile__sub {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submit-panel--evidence {
  margin-bottom: 14px;
  background: var(--bg);
}

.evidence-links,
.evidence-list {
  list-style: disc;
  margin: 8px 0 0 18px;
  display: grid;
  gap: 6px;
}

.evidence-links li,
.evidence-list li {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.evidence-links a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}

.submit-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.submit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.submit-form-card,
.submit-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--shadow);
}

.submit-form-card {
  padding: 24px;
}

.submit-deadline {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.submit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.submit-panel {
  padding: 16px;
}

.submit-panel__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.chat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-row {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.chat-time {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.chat-channel {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
}

.chat-content {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
}

.announcement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.announcement__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.announcement__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.announcement__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.announcement__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.announcement__text {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.announcement__badge {
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--text-secondary);
  background: var(--bg);
}

.logout-modal,
.follow-modal,
.notice-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.42);
  backdrop-filter: blur(9px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 120;
}

.logout-modal.open,
.follow-modal.open,
.notice-modal.open {
  display: flex;
}

.logout-modal__card,
.follow-modal__card,
.notice-modal__card {
  width: min(520px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px var(--shadow);
  padding: 20px;
}

.logout-modal__card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-modal__card {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-modal__title {
  margin: 0;
  font-size: 22px;
}

.notice-modal__body {
  margin: 0;
  color: var(--text-secondary);
}

.logout-modal__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-weight: 700;
}

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

.follow-modal__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
}

.follow-modal__title h2 {
  margin: 0;
  font-size: 18px;
}

.follow-modal__subtext {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}

.follow-modal__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
}

.follow-btn:hover {
  border-color: var(--accent);
}

.follow-btn--x {
  color: var(--text);
}

.follow-btn__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.follow-btn__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.follow-modal__close {
  margin-top: 12px;
  width: 100%;
}

.follow-modal__close[disabled],
.logout-modal .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.push-nudge,
.follow-nudge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 24px var(--shadow);
  padding: 10px 12px;
  z-index: 130;
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.push-nudge {
  bottom: 86px;
}

.push-nudge.show,
.follow-nudge.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.push-nudge__content,
.follow-nudge__content {
  display: grid;
  gap: 2px;
}

.push-nudge__content p,
.follow-nudge__content p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.push-nudge__action,
.follow-nudge__content a {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.35;
  color: var(--text);
  text-decoration: none;
}

.push-nudge__action:hover,
.follow-nudge__content a:hover {
  color: var(--accent);
}

.push-nudge > button,
.follow-nudge > button {
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  width: 20px;
  height: 20px;
  line-height: 1;
  font-size: 16px;
  cursor: pointer;
}

.push-nudge > button:hover,
.follow-nudge > button:hover {
  color: var(--text);
}

.form-disabled {
  opacity: 0.72;
  pointer-events: none;
}

.centered-card {
  text-align: center;
}

.center-actions {
  justify-content: center;
}

.error-box,
.empty {
  margin-top: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-secondary);
}

.error-state {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border-color: rgba(239, 68, 68, 0.65);
  background: color-mix(in srgb, var(--surface) 92%, rgba(239, 68, 68, 0.08));
  box-shadow: 0 10px 24px var(--shadow);
  padding: 32px;
}

.error-state__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(220, 38, 38, 0.7);
  color: var(--danger);
  background: rgba(220, 38, 38, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.error-state__subtitle {
  margin-bottom: 0;
  max-width: 620px;
}

.icon-error {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--danger);
  font-size: 20px;
  font-weight: 700;
}

.status-card {
  max-width: 920px;
  margin: 0 auto;
}

.legal-card {
  line-height: 1.65;
}

.legal-card h2 {
  margin-bottom: 14px;
}

.legal-card h3 {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.legal-card h3:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-card p + p {
  margin-top: 10px;
}

.legal-card ul {
  margin-top: 10px;
}

.legal-card li + li {
  margin-top: 6px;
}

.status {
  max-width: 760px;
  margin: 0 auto;
}

.status-heading {
  margin-bottom: 12px;
}

.actions {
  margin-top: 14px;
}

.danger {
  border-color: var(--danger);
}

.health-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.health-grid {
  margin-top: 12px;
}

.health-updated {
  margin-top: 10px;
}

.list-indent {
  margin-left: 18px;
}

.list-indent li + li {
  margin-top: 6px;
}

footer {
  padding: 24px;
  text-align: center;
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.copyright {
  color: var(--text-tertiary);
  font-size: 13px;
}

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

@media (max-width: 980px) {
  header {
    padding: 16px 14px;
  }

  header nav {
    flex-wrap: wrap;
    row-gap: 10px;
    align-items: flex-start;
  }

  .logo {
    flex: 1 1 auto;
  }

  .header-right {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  .top__actions {
    margin-left: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .top__actions .btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  .linked-label,
  .btn--linked {
    padding: 7px 10px;
    font-size: 12px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .submit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  main {
    padding: 20px 16px;
  }

  .page-shell > * + * {
    margin-top: 16px;
  }

  h1 {
    font-size: 28px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .hero__title {
    font-size: 32px;
  }

  .login-card,
  .form-card,
  .card {
    padding: 24px;
  }

  .lang-label,
  .greeting {
    display: none;
  }

  .top__actions {
    width: auto;
    justify-content: flex-end;
  }

  .top__actions .btn {
    padding: 7px 9px;
    font-size: 12px;
  }

  .linked-label,
  .btn--linked {
    padding: 7px 9px;
    font-size: 12px;
  }

  .profile-menu {
    right: -6px;
    min-width: 200px;
  }

  .follow-modal__actions {
    grid-template-columns: 1fr;
  }

  .follow-nudge,
  .push-nudge {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .push-nudge {
    bottom: 74px;
  }

  .timeline {
    padding-left: 32px;
  }

  .appeal-item::before {
    left: -26px;
  }

  .submit-profile--ban {
    flex-wrap: wrap;
  }

  .submit-profile--ban .status-badge--active {
    margin-left: 0;
  }

  .appeal-header {
    flex-direction: column;
    align-items: start;
  }

  .info-row {
    flex-direction: column;
    gap: 4px;
  }

  .info-label {
    min-width: auto;
  }
}

@media (max-width: 640px) {
  .header-right .nav-link {
    display: none;
  }

  .top__actions {
    width: 100%;
    justify-content: flex-end;
  }

  .container {
    max-width: 100%;
  }

  .seo-copy {
    padding: 14px;
  }

  .btn-row,
  .btn-group {
    width: 100%;
    justify-content: center;
  }

  .btn-row .btn,
  .btn-group .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
