/* Shared PC site visual language for every page except the homepage layer. */
:root {
  --pc-site-blue: #1777b7;
  --pc-site-blue-dark: #105b8d;
  --pc-site-ink: #263b45;
  --pc-site-muted: #71828a;
  --pc-site-line: #d5e0e4;
  --pc-site-page: #eef2f3;
  --pc-site-surface: #ffffff;
}

body:not(.pc-portal-home) {
  background: var(--pc-site-page) !important;
  color: var(--pc-site-ink);
}

body:not(.pc-portal-home) .header {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: #1f2a31 !important;
  border-bottom: 1px solid #6b94a5;
  box-shadow: 0 6px 18px rgba(31, 55, 78, .16);
}

body:not(.pc-portal-home) .middle,
body:not(.pc-portal-home) .body {
  width: min(1400px, calc(100% - 32px));
  max-width: none;
  margin: 20px auto 28px;
  padding: 24px 28px;
  box-sizing: border-box;
  border: 1px solid var(--pc-site-line);
  border-radius: 8px;
  background: var(--pc-site-page) !important;
  box-shadow: 0 8px 24px rgba(31, 55, 78, .07);
}

body:not(.pc-portal-home) .middle > h1,
body:not(.pc-portal-home) .page-title,
body:not(.pc-portal-home) .census-title,
body:not(.pc-portal-home) .mall-title,
body:not(.pc-portal-home) .op-title,
body:not(.pc-portal-home) .guide-detail-title {
  color: var(--pc-site-ink) !important;
  letter-spacing: .04em;
}

body:not(.pc-portal-home) :is(.guide-item, .report-card, .report-ban-wall,
  .stats-panel, .stats-player-card, .stats-summary, .census-card,
  .rewards-panel, .mission-panel, .control-panel, .server-status-card,
  .server-table-container, .mall-page, .op-panel, .op-form-card,
  .op-mission-section, .op-score-summary-card, .op-admin-main) {
  border: 1px solid var(--pc-site-line) !important;
  border-radius: 8px !important;
  background: var(--pc-site-surface) !important;
  box-shadow: 0 5px 16px rgba(31, 55, 78, .07) !important;
}

body:not(.pc-portal-home) :is(.guide-item, .stats-panel, .rewards-panel,
  .mission-panel, .server-status-card) {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

body:not(.pc-portal-home) :is(.guide-item, .box, .stats-panel, .rewards-panel,
  .mission-panel, .server-status-card):hover {
  border-color: #9fc2d5 !important;
  box-shadow: 0 8px 22px rgba(31, 55, 78, .11) !important;
  transform: translateY(-1px);
}

body:not(.pc-portal-home) :is(button, input[type="submit"], input[type="button"],
  .buy, .back-btn, .action-btn, .control-btn, .mission_btn, .checkin-btn,
  .rewards-btn, .stats-page-btn, .op-btn, .report-form button) {
  border: 1px solid var(--pc-site-blue) !important;
  border-radius: 6px !important;
  color: #fff !important;
  background: linear-gradient(135deg, var(--pc-site-blue) 0%, var(--pc-site-blue-dark) 100%) !important;
  box-shadow: 0 3px 10px rgba(23, 119, 183, .18) !important;
  font-weight: 800;
}

body:not(.pc-portal-home) :is(button, input[type="submit"], input[type="button"],
  .buy, .back-btn, .action-btn, .control-btn, .mission_btn, .checkin-btn,
  .rewards-btn, .stats-page-btn, .op-btn, .report-form button):hover {
  border-color: var(--pc-site-blue-dark) !important;
  background: linear-gradient(135deg, #2188c9 0%, var(--pc-site-blue) 100%) !important;
  transform: translateY(-1px);
}

body:not(.pc-portal-home) :is(button, input[type="submit"], input[type="button"]):disabled {
  color: #64748b !important;
  background: #e7edf1 !important;
  border-color: #cbd5dc !important;
  box-shadow: none !important;
  transform: none;
}

body:not(.pc-portal-home) :is(input[type="text"], input[type="password"],
  input[type="number"], input[type="email"], select, textarea) {
  border: 1px solid #c8d6dc !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--pc-site-ink) !important;
  box-shadow: none !important;
}

body:not(.pc-portal-home) :is(input[type="text"], input[type="password"],
  input[type="number"], input[type="email"], select, textarea):focus {
  border-color: var(--pc-site-blue) !important;
  outline: 2px solid rgba(23, 119, 183, .14);
}

body:not(.pc-portal-home) :is(.stats-panel-head, .rewards-panel-head,
  .mission-panel-head, .server-table thead, .census-head) {
  border-color: var(--pc-site-line) !important;
  background: #e9eff1 !important;
}

body:not(.pc-portal-home) :is(.stats-panel-head h2, .rewards-panel-head h2,
  .mission-panel-head h2, .census-card h2) {
  color: var(--pc-site-ink) !important;
}

body:not(.pc-portal-home) .site-footer {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 8px 8px 0 0;
  background: #1b2830 !important;
  border-top: 1px solid #3f5968;
  color: #b9c7cf;
}

body:not(.pc-portal-home) .site-footer a {
  color: #d8e4ec;
}

body:not(.pc-portal-home) > div[style*="text-align: center"] {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto !important;
  box-sizing: border-box;
}

html[data-theme-resolved="dark"] body:not(.pc-portal-home) {
  --pc-site-ink: #e6edf2;
  --pc-site-muted: #9ca8b5;
  --pc-site-line: #35434b;
  --pc-site-page: #10161b;
  --pc-site-surface: #1b242b;
  background: var(--pc-site-page) !important;
}

html[data-theme-resolved="dark"] body:not(.pc-portal-home) .middle,
html[data-theme-resolved="dark"] body:not(.pc-portal-home) .body {
  background: var(--pc-site-page) !important;
}

html[data-theme-resolved="dark"] body:not(.pc-portal-home) :is(input[type="text"],
  input[type="password"], input[type="number"], input[type="email"], select, textarea) {
  background: #202b33 !important;
  color: #e6edf2 !important;
  border-color: #4b5c66 !important;
}

@media (max-width: 768px) {
  body:not(.pc-portal-home) .header,
  body:not(.pc-portal-home) .middle,
  body:not(.pc-portal-home) .body,
  body:not(.pc-portal-home) .site-footer,
  body:not(.pc-portal-home) > div[style*="text-align: center"] {
    width: calc(100% - 20px);
  }

  body:not(.pc-portal-home) .middle,
  body:not(.pc-portal-home) .body {
    margin-top: 12px;
    padding: 16px 12px;
  }
}

/* Header actions use one consistent PC-site style on every non-home page. */
body:not(.pc-portal-home) .header-actions {
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(151, 190, 211, .32);
}

body:not(.pc-portal-home) .header-actions > a,
body:not(.pc-portal-home) .header-actions > button.pavlov-theme-toggle,
body:not(.pc-portal-home) .header-actions .home-login button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(150, 205, 235, .58) !important;
  border-radius: 5px !important;
  color: #f5fbff !important;
  background: #176fae !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

body:not(.pc-portal-home) .header-actions > a:hover,
body:not(.pc-portal-home) .header-actions > button.pavlov-theme-toggle:hover,
body:not(.pc-portal-home) .header-actions .home-login button:hover {
  border-color: #e4f5ff !important;
  background: #2188c9 !important;
  transform: none;
}

body:not(.pc-portal-home) .header-actions .home-armory-link,
body:not(.pc-portal-home) .header-actions .logout-link,
body:not(.pc-portal-home) .header-actions .pavlov-theme-toggle {
  min-width: 0;
  min-height: 40px;
  background: #176fae !important;
  border-color: rgba(150, 205, 235, .58) !important;
  box-shadow: none !important;
}

body:not(.pc-portal-home) .header-actions .home-armory-link::after {
  display: none;
}

body:not(.pc-portal-home) .home-login {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.pc-portal-home .header-actions > .pavlov-theme-toggle,
body.pc-portal-home .home-login button {
  border-color: rgba(150, 205, 235, .58) !important;
  border-radius: 5px !important;
  color: #f5fbff !important;
  background: #176fae !important;
  box-shadow: none !important;
}
