:root {
  color-scheme: light;
  --page-bg: #f5f7fb;
  --surface: #ffffff;
  --text: #182230;
  --muted: #687386;
  --border: #e1e7ef;
  --primary: #2457c5;
  --primary-hover: #1b46a3;
  --radius: 16px;
  font-family: Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--page-bg); color: var(--text); font-size: 15px; line-height: 1.8; }
a { color: inherit; text-decoration: none; }
.site-header {
  min-height: 76px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px; }
.brand-image { display: block; max-width: 190px; max-height: 52px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-label { color: var(--muted); font-size: .95rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button-primary { color: #fff; background: var(--primary); }
.button-primary:hover { background: var(--primary-hover); }
.button-quiet { border-color: var(--border); background: var(--surface); }
.button-full { width: 100%; margin-top: 8px; }
.button:disabled { cursor: not-allowed; opacity: .65; }
.home-empty { min-height: calc(100vh - 77px); }
.page-wrap { width: min(100% - 32px, 760px); margin: 42px auto; }
.panel-card { padding: clamp(22px, 4vw, 36px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(25, 40, 70, .04); }
.login-card { width: min(100%, 480px); margin: 0 auto; }
h1 { margin: 0 0 12px; font-size: 1.55rem; }
h2 { margin: 28px 0 8px; font-size: 1.15rem; }
.muted { color: var(--muted); }
form { display: grid; gap: 10px; margin-top: 22px; }
label { font-weight: 700; margin-top: 6px; }
input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd7e3; border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
input:focus { outline: 3px solid rgba(36, 87, 197, .15); border-color: var(--primary); }
@media (max-width: 520px) {
  .site-header { min-height: 68px; padding-inline: 16px; }
  .brand-text { font-size: 1.15rem; }
  .button { padding-inline: 15px; }
  .page-wrap { margin-top: 24px; }
}

.notice { padding: 11px 14px; border-radius: 10px; margin: 14px 0; }
.notice-success { color: #17633a; background: #eaf8ef; border: 1px solid #b8e4c7; }
.notice-error { color: #9a2626; background: #fff0f0; border: 1px solid #f0c1c1; }
.logo-preview { display: flex; align-items: center; justify-content: flex-start; min-height: 82px; padding: 14px; border: 1px dashed var(--border); border-radius: 12px; background: #fafbfd; }
input[type="file"] { padding: 8px; }