:root {
  --bg: #08090D;
  --card: #12141B;
  --text: #f4f4f8;
  --muted: #9a9aaa;
  --red: #ef1a2a;
  --line: rgba(255,255,255,.08);
  --ok: #22c55e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 10% -10%, rgba(239,26,42,.22), transparent 40%),
    radial-gradient(ellipse at 95% 0%, rgba(239,26,42,.08), transparent 34%),
    var(--bg);
}
.pf-shell {
  width: min(720px, calc(100% - 28px));
  margin: 28px auto 48px;
}
.pf-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.pf-brand {
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 800;
  color: var(--red);
  text-transform: uppercase;
  text-decoration: none;
}
.pf-top a.ghost {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.pf-top a.ghost:hover { color: var(--text); }
.pf-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  margin-bottom: 14px;
}
.pf-card h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  letter-spacing: -.02em;
}
.pf-card h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}
.muted { color: var(--muted); font-size: 14px; }
.err { color: #f87171; font-weight: 600; min-height: 1.2em; }
.ok { color: #86efac; font-weight: 600; min-height: 1.2em; }
.hidden { display: none !important; }

.pf-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.pf-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
}
.pf-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(239,26,42,.45);
  background: linear-gradient(145deg, #2a2a36, #15151c);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  overflow: hidden;
}
.pf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pf-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.pf-meta strong { display: block; font-size: 1.2rem; }
.pf-meta .muted { margin-top: 4px; }

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--muted);
}
input[type="text"],
input[type="password"],
input[type="time"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c0d12;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
textarea { min-height: 72px; resize: vertical; }
.pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .pf-row { grid-template-columns: 1fr; }
}

.pf-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.pf-switch:last-child { border-bottom: 0; }
.pf-switch label {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.pf-switch .hint {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.pf-switch input[type="checkbox"] {
  width: 42px;
  height: 24px;
  accent-color: var(--red);
  flex: 0 0 auto;
}

button, .btn {
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #1a1a24;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}
button.primary, .btn.primary {
  background: var(--red);
  border-color: transparent;
}
button.ghost, .btn.ghost {
  background: transparent;
  margin-top: 0;
  padding: 8px 14px;
  font-size: 13px;
}
button:disabled { opacity: .55; cursor: not-allowed; }

.pf-login {
  max-width: 420px;
  margin: 48px auto;
}
.pf-info-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.pf-info-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.pf-info-grid span { color: var(--muted); }

.pf-svc-list { margin-top: 4px; }
.pf-quiet-row { margin-top: 8px; }
