/* Стили страниц ядра (вход, регистрация, оплата, 404/500, /legal/*) на токенах бренда (/brand/tokens.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.core-page {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: #0f172a;
  background: #f4f6fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.core-header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 16px; }
.core-brand { display: inline-flex; align-items: center; }
.core-main {
  flex: 0 0 auto;
  width: calc(100% - 32px);
  max-width: 560px;
  margin: 32px auto;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.core-main h1 { font-size: 24px; margin: 0 0 16px; }
.core-main p { line-height: 1.55; }
.core-main a { color: var(--brand-primary); }
.core-footer { text-align: center; padding: 16px; color: #64748b; font-size: 14px; margin-top: auto; }
.core-footer a { color: #64748b; }
.core-form { display: flex; flex-direction: column; gap: 12px; }
.core-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.core-form input {
  font: inherit; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; width: 100%;
}
.core-form input:focus { outline: 2px solid var(--brand-primary-soft); border-color: var(--brand-primary); }
.core-btn {
  font: inherit; font-weight: 700; padding: 10px 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--brand-primary); color: var(--brand-primary-contrast);
}
.core-btn:hover { background: var(--brand-primary-hover); }
.core-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 12px; }
.core-note { background: var(--brand-primary-soft); border-radius: 8px; padding: 10px 12px; }
@media (max-width: 480px) { .core-main { margin: 16px auto; border-radius: 10px; } }
/* экран сервера (/console/<сервер>) */
.core-main.core-wide { max-width: 1280px; }
.core-console-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
/* высота - по пропорции экрана сервера (4:3), не выше 75vh: на узком экране без пустых полос сверху и снизу */
.core-console-screen { width: 100%; aspect-ratio: 4 / 3; max-height: 75vh; min-height: 240px; background: #0b1020; border-radius: 8px; overflow: hidden; }
.core-console-status { color: #64748b; font-size: 14px; margin: 8px 0 0; }
.core-btn-light { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
.core-btn-light:hover { background: #f1f5f9; }
.core-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.core-actions form { margin: 0; }
.core-muted { color: #64748b; font-size: 14px; }
.core-code { background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.core-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.core-table td { border-bottom: 1px solid #e5e7eb; padding: 6px 8px; vertical-align: top; }
.core-mono { font-family: ui-monospace, Menlo, monospace; }
