@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Serif+SC:wght@500;600;700;800&display=swap');

:root {
  --pp-ink: #0f172a;
  --pp-slate: #475467;
  --pp-muted: #667085;
  --pp-border: #d0d5dd;
  --pp-border-strong: #98a2b3;
  --pp-paper: #f6f8fc;
  --pp-card: #ffffff;
  --pp-emerald: #14b8a6;
  --pp-gold: #c99a42;
  --pp-sky: #e9f5ff;
  --pp-rose: #ff6b7a;
  --pp-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --pp-radius: 28px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--pp-ink);
  font-family: 'Inter', 'Microsoft YaHei', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(20,184,166,.11), transparent 28%),
    radial-gradient(circle at top right, rgba(201,154,66,.13), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, .03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 72%);
}

a { color: inherit; }
img { max-width: 100%; }

.pp-app-shell {
  width: min(1260px, calc(100% - 40px));
  margin: 24px auto 48px;
}

.pp-flash {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--pp-border);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
  font-weight: 700;
}
.pp-flash.error { border-color: rgba(255,107,122,.35); color: #9f1239; background: #fff1f2; }
.pp-flash.success { border-color: rgba(20,184,166,.25); color: #0f766e; background: #ecfeff; }

.pp-shell-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1260px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(208,213,221,.85);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(15,23,42,.08);
}
.pp-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.pp-topbar-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .08em;
}
.pp-topbar-brand strong {
  display: block;
  font-size: 15px;
  line-height: 1.15;
}
.pp-topbar-brand small {
  display: block;
  margin-top: 3px;
  color: var(--pp-muted);
  font-size: 12px;
  font-weight: 600;
}
.pp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pp-topbar-link,
.pp-topbar-menu {
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(152,162,179,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: var(--pp-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.pp-topbar-link:hover,
.pp-topbar-menu:hover {
  border-color: rgba(20,184,166,.35);
  color: #0f766e;
}
.pp-topbar-language-wrap { position: relative; }
.pp-topbar-language-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(208,213,221,.95);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 60px rgba(15,23,42,.12);
}
.pp-topbar-language-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--pp-ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.pp-topbar-language-panel a:hover,
.pp-topbar-language-panel a.active { background: #ecfdf3; color: #0f766e; }
.pp-topbar-language-chevron { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.pp-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(208,213,221,.9);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15,23,42,.96) 0%, rgba(15,23,42,.92) 56%, rgba(20,184,166,.18) 100%);
  box-shadow: var(--pp-shadow);
}
.pp-hero-image {
  min-height: 440px;
  background:
    linear-gradient(135deg, rgba(15,23,42,.08), rgba(15,23,42,.36)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(120deg, rgba(20,184,166,.78), rgba(15,23,42,.08) 44%, rgba(201,154,66,.55) 100%);
  position: relative;
}
.pp-hero-image::after {
  content: '';
  position: absolute;
  inset: 28px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent 38%),
    radial-gradient(circle at 70% 28%, rgba(255,255,255,.16), transparent 20%),
    radial-gradient(circle at 35% 72%, rgba(255,255,255,.12), transparent 24%);
}
.pp-hero-content {
  padding: 42px 40px 42px 36px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pp-kicker {
  margin: 0 0 12px;
  color: rgba(255,255,255,.72);
  letter-spacing: .2em;
  font-size: 12px;
  font-weight: 800;
}
.pp-home-hero h1,
.pp-page-title {
  margin: 0;
  font-family: 'Noto Serif SC', 'Inter', serif;
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.03;
  letter-spacing: -.03em;
}
.pp-hero-intro {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.75;
}
.pp-home-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.pp-button {
  height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .01em;
}
.pp-button-primary {
  background: linear-gradient(135deg, #ecfeff 0%, #ffffff 100%);
  color: #0f172a;
}
.pp-button-outline {
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  background: rgba(255,255,255,.06);
}
.pp-button b { font-size: 16px; }
.pp-hero-index {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: grid;
  justify-items: end;
  gap: 4px;
  color: rgba(255,255,255,.78);
}
.pp-hero-index strong { font-size: 36px; line-height: 1; }
.pp-hero-index span { width: 88px; height: 1px; background: rgba(255,255,255,.4); }
.pp-hero-index small { font-size: 11px; letter-spacing: .16em; }

.pp-home-rail {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pp-home-rail > div {
  padding: 18px 20px;
  border: 1px solid rgba(208,213,221,.86);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
}
.pp-rail-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.pp-home-rail strong {
  display: block;
  margin-top: 12px;
  font-size: 18px;
}
.pp-home-rail p {
  margin: 8px 0 0;
  color: var(--pp-muted);
  line-height: 1.7;
  font-size: 14px;
}

.card,
.auth-card,
.form,
.login-card,
.pp-surface {
  border: 1px solid rgba(208,213,221,.92);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--pp-shadow);
}
.card,
.auth-card,
.login-card,
.pp-surface {
  padding: 28px;
}
.page-title,
.auth-card h1,
.login-card h1 {
  margin: 0;
  font-family: 'Noto Serif SC', 'Inter', serif;
  font-size: 30px;
  line-height: 1.1;
}
.lead,
.auth-card p,
.login-card p,
.pp-surface p {
  color: var(--pp-muted);
  line-height: 1.75;
}
.form,
.login-form,
.auth-card .form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.form label,
.login-form label {
  display: grid;
  gap: 8px;
  color: var(--pp-ink);
  font-size: 14px;
  font-weight: 800;
}
.form input,
.form select,
.login-form input,
.login-form select,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--pp-border);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--pp-ink);
  background: #fff;
  font: inherit;
  outline: none;
}
textarea { min-height: 120px; padding: 14px; resize: vertical; }
.form input:focus,
.form select:focus,
.login-form input:focus,
.login-form select:focus,
textarea:focus,
select:focus,
input:focus {
  border-color: rgba(20,184,166,.7);
  box-shadow: 0 0 0 4px rgba(20,184,166,.12);
}
button,
.btn,
.promo-register-submit,
.login-form button,
.form button {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button.secondary,
.btn.secondary,
.pp-button-outline,
.promo-register-submit.secondary {
  background: #fff;
  color: #0f172a;
  border: 1px solid var(--pp-border);
}

.nav-front.pp-search-nav {
  width: min(1260px, calc(100% - 40px));
  margin: 14px auto 0;
}

.pp-shell-topbar + .pp-app-shell { margin-top: 18px; }

.admin-shell {
  background:
    radial-gradient(circle at top left, rgba(15,23,42,.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.admin-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  width: min(1480px, calc(100% - 32px));
  margin: 16px auto 32px;
}
.admin-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  padding: 22px 18px;
  border: 1px solid rgba(208,213,221,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--pp-shadow);
}
.admin-brand-label {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--pp-ink);
  font-weight: 900;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  color: #fff;
}
.admin-side-links {
  display: grid;
  gap: 10px;
}
.admin-side-links a,
.logout-link {
  padding: 13px 14px;
  border-radius: 16px;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid transparent;
  color: var(--pp-ink);
  font-weight: 700;
}
.admin-side-links a.active,
.admin-side-links a:hover,
.logout-link:hover {
  border-color: rgba(20,184,166,.2);
  background: #ecfeff;
  color: #0f766e;
}
.admin-main,
.container.admin-main {
  width: 100%;
  min-width: 0;
  padding: 0;
}

.admin-shell .card,
.admin-shell .form,
.admin-shell .section,
.admin-shell .panel,
.admin-shell .page-card,
.admin-shell .admin-content,
.admin-shell .admin-panel,
.admin-shell .admin-section,
.admin-shell .table-card {
  border: 1px solid rgba(208,213,221,.88);
  border-radius: 26px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--pp-shadow);
}
.admin-shell .card,
.admin-shell .page-card,
.admin-shell .admin-content,
.admin-shell .admin-panel,
.admin-shell .admin-section,
.admin-shell .table-card {
  padding: 22px;
}
.admin-shell .page-title,
.admin-shell h1,
.admin-shell h2,
.admin-shell h3 {
  font-family: 'Noto Serif SC', 'Inter', serif;
}

.chat-page {
  width: 100%;
  min-height: calc(var(--pp-vh, 100dvh) - 32px);
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 18px;
}
.chat-inbox,
.chat-room {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(208,213,221,.9);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255,255,255,.94);
  box-shadow: var(--pp-shadow);
}
.chat-inbox { display: flex; flex-direction: column; }
.chat-inbox-head {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(228,233,241,.95);
  background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(15,23,42,.92));
  color: #fff;
}
.chat-eyebrow { font-size: 12px; color: rgba(255,255,255,.64); letter-spacing: .12em; font-weight: 900; }
.chat-inbox-head h2 { margin: 8px 0 6px; font-size: 26px; line-height: 1.12; }
.chat-inbox-head p { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; }
.chat-list { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 10px; }
.chat-row {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 12px;
  border-radius: 20px;
  color: var(--pp-ink);
  text-decoration: none !important;
}
.chat-row:hover,
.chat-row.is-active {
  background: linear-gradient(135deg, rgba(236,253,245,.96), rgba(233,245,255,.96));
}
.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  background: linear-gradient(135deg, #14b8a6, #0f172a);
}
.chat-row[data-room-type="public"] .chat-avatar { background: linear-gradient(135deg, #0f172a, #14b8a6); }
.chat-row-main { min-width: 0; }
.chat-row-title {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
}
.chat-row-title span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ffefef;
  color: #c81e3a;
  font-size: 11px;
  font-weight: 900;
}
.chat-preview {
  margin-top: 4px;
  color: var(--pp-muted);
  font-size: 12px;
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-meta {
  color: var(--pp-muted);
  font-size: 11px;
  white-space: nowrap;
  align-self: start;
  padding-top: 3px;
}
.chat-arrow { color: #98a2b3; font-size: 22px; }
.chat-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  display: none;
}
.chat-row:hover .chat-close,
.chat-row:focus-within .chat-close { display: inline-grid; place-items: center; }
.chat-room {
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
}
.chat-room-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(228,233,241,.95);
  background: rgba(255,255,255,.96);
}
.chat-back {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef2f7;
  text-decoration: none !important;
  font-size: 18px;
}
.chat-title-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #14b8a6, #0f172a);
}
.chat-title { min-width: 0; }
.chat-title h1 {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  color: var(--pp-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-title p {
  margin: 2px 0 0;
  color: var(--pp-muted);
  font-size: 12px;
}
.chat-messages {
  min-height: 0;
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f4f7fb 100%);
}
.chat-message {
  max-width: min(680px, 82%);
  padding: 10px 13px 12px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.chat-message.is-self {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, #0f172a, #14b8a6);
  color: #fff;
  border-color: transparent;
}
.chat-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 5px;
  color: var(--pp-muted);
  font-size: 11px;
}
.chat-message.is-self .chat-message-meta { color: rgba(255,255,255,.74); }
.chat-message p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
}
.chat-message-image { margin-top: 8px; display: grid; gap: 5px; }
.chat-message-image img {
  display: block;
  max-width: min(360px, 100%);
  max-height: 280px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.42);
  object-fit: contain;
}
.chat-message-image small { font-size: 11px; color: inherit; opacity: .76; word-break: break-all; }
.chat-empty {
  padding: 24px;
  border: 1px dashed rgba(148,163,184,.5);
  border-radius: 20px;
  color: var(--pp-muted);
  text-align: center;
}
.chat-composer,
.chat-readonly {
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(228,233,241,.95);
  background: rgba(255,255,255,.98);
}
.chat-composer-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.chat-composer textarea {
  flex: 1 1 auto;
  min-height: 56px;
  max-height: 170px;
  resize: none;
  border-radius: 22px;
  padding: 14px 16px;
}
.chat-send {
  width: 54px;
  height: 54px;
  min-height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #14b8a6);
  font-size: 18px;
  box-shadow: 0 18px 30px rgba(20,184,166,.22);
}
.chat-readonly {
  color: var(--pp-muted);
  font-weight: 700;
}

.pp-new-home .pp-home-hero { margin-top: 2px; }
.pp-new-home .pp-home-rail { margin-bottom: 0; }

@media (max-width: 1100px) {
  .pp-home-hero,
  .admin-layout,
  .chat-page {
    grid-template-columns: 1fr;
  }
  .pp-hero-image { min-height: 260px; }
  .admin-sidebar { position: static; }
  .chat-inbox { max-height: 380px; }
}

@media (max-width: 780px) {
  .pp-shell-topbar,
  .pp-app-shell,
  .nav-front.pp-search-nav,
  .admin-layout { width: calc(100% - 20px); margin-left: auto; margin-right: auto; }
  .pp-shell-topbar {
    flex-wrap: wrap;
    border-radius: 22px;
    padding: 14px;
  }
  .pp-topbar-actions { justify-content: flex-start; }
  .pp-home-hero,
  .pp-home-rail,
  .admin-layout,
  .chat-page { gap: 12px; }
  .pp-home-hero { border-radius: 24px; }
  .pp-hero-content { padding: 26px 20px 28px; }
  .pp-home-rail { grid-template-columns: 1fr; }
  .pp-home-rail > div,
  .card,
  .auth-card,
  .login-card,
  .pp-surface,
  .admin-sidebar,
  .admin-shell .card,
  .admin-shell .page-card,
  .admin-shell .admin-content,
  .admin-shell .admin-panel,
  .admin-shell .admin-section,
  .admin-shell .table-card { padding: 18px; border-radius: 22px; }
  .page-title,
  .auth-card h1,
  .login-card h1 { font-size: 26px; }
  .chat-page { min-height: calc(var(--pp-vh, 100dvh) - 16px); }
  .chat-inbox { max-height: 320px; }
  .chat-room-head,
  .chat-messages,
  .chat-composer,
  .chat-readonly { padding-left: 14px; padding-right: 14px; }
  .chat-message { max-width: 90%; }
}

@media (max-width: 640px) {
  .pp-shell-topbar { position: static; }
  .pp-topbar-brand-mark { width: 44px; height: 44px; border-radius: 14px; }
  .pp-topbar-link, .pp-topbar-menu { height: 38px; padding: 0 12px; font-size: 13px; }
  .pp-home-hero { grid-template-columns: 1fr; }
  .pp-hero-image { min-height: 210px; }
  .pp-hero-index { right: 16px; bottom: 16px; }
  .pp-hero-index strong { font-size: 28px; }
  .chat-page { display: block; }
  .chat-inbox, .chat-room { border-radius: 20px; }
  .chat-room { min-height: 72vh; }
  .chat-back { display: inline-flex; }
  .chat-message { max-width: 94%; }
}


.pp-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.pp-login-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
  align-items: stretch;
}
.pp-login-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(15,23,42,.9)),
    radial-gradient(circle at 20% 15%, rgba(20,184,166,.18), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(201,154,66,.18), transparent 24%);
  color: #fff;
}
.pp-login-copy {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
}
.pp-login-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.pp-login-points > div {
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.05);
}
.pp-login-points strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}
.pp-login-points span {
  color: rgba(255,255,255,.76);
  font-size: 13px;
  line-height: 1.6;
}
.pp-login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}
.pp-login-flashes { display: grid; gap: 10px; margin-bottom: 12px; }
.pp-login-form { display: grid; gap: 14px; }
.pp-login-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 800; color: var(--pp-ink); }
.pp-login-form input { min-height: 48px; border-radius: 16px; }
.pp-login-remember { display: flex !important; align-items: center; gap: 8px; font-weight: 700 !important; color: var(--pp-muted) !important; }
.pp-login-remember input { width: 16px; height: 16px; min-height: 16px; accent-color: var(--pp-emerald); }
.pp-login-footer-link { margin-top: 16px; text-align: center; }
.pp-login-footer-link a { color: var(--pp-emerald); font-size: 13px; font-weight: 800; text-decoration: none; }
.pp-login-footer-link a:hover { text-decoration: underline; }
.pp-admin-login-shell .pp-login-hero { background: linear-gradient(135deg, rgba(15,23,42,.97), rgba(30,41,59,.94)); }
.agent-login-notice[hidden] { display: none !important; }
.agent-login-notice {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15,23,42,.42);
}
.agent-login-notice-dialog {
  width: min(420px, 100%);
  border: 1px solid rgba(208,213,221,.9);
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--pp-shadow);
  overflow: hidden;
}
.agent-login-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(208,213,221,.7);
}
.agent-login-notice-head h2 { margin: 0; font-size: 16px; font-weight: 900; }
.agent-login-notice-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  background: #fff;
  color: var(--pp-ink);
  cursor: pointer;
}
.agent-login-notice-body {
  max-height: min(52vh, 360px);
  overflow: auto;
  padding: 16px;
  color: var(--pp-slate);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
@media (max-width: 960px) {
  .pp-login-grid { grid-template-columns: 1fr; }
  .pp-login-hero { min-height: 0; padding: 28px; }
}
@media (max-width: 640px) {
  .pp-login-shell { padding: 14px; }
  .pp-login-card,
  .pp-login-hero { padding: 22px; }
}

.pp-dashboard-hero,
.pp-agent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.pp-dashboard-hero-meta,
.pp-agent-head-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 320px;
}
.pp-dashboard-hero-meta > div,
.pp-agent-head-metrics > div {
  padding: 14px 16px;
  border: 1px solid rgba(208,213,221,.8);
  border-radius: 20px;
  background: rgba(255,255,255,.74);
}
.pp-dashboard-hero-meta strong,
.pp-agent-head-metrics strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}
.pp-dashboard-hero-meta span,
.pp-agent-head-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--pp-muted);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 960px) {
  .pp-dashboard-hero,
  .pp-agent-head { flex-direction: column; }
  .pp-dashboard-hero-meta,
  .pp-agent-head-metrics { width: 100%; min-width: 0; }
}


.pp-admin-login-shell {
  background:
    radial-gradient(circle at top left, rgba(20,184,166,.14), transparent 26%),
    radial-gradient(circle at top right, rgba(201,154,66,.12), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}
.pp-admin-login-card {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 30px;
  display: grid;
  gap: 16px;
}
.pp-admin-login-header {
  display: grid;
  gap: 10px;
}
.pp-admin-login-header h1 {
  margin: 0;
  font-family: 'Noto Serif SC', 'Inter', serif;
  font-size: 34px;
  line-height: 1.08;
}
.pp-admin-login-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pp-admin-login-notes > div {
  padding: 14px 15px;
  border: 1px solid rgba(208,213,221,.82);
  border-radius: 20px;
  background: #f8fafc;
}
.pp-admin-login-notes strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
  color: var(--pp-ink);
}
.pp-admin-login-notes span {
  display: block;
  color: var(--pp-muted);
  font-size: 12px;
  line-height: 1.65;
}
.pp-admin-login-shell .pp-login-form {
  margin-top: 0;
}
.pp-admin-login-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pp-admin-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(208,213,221,.92);
  background: #f8fafc;
  color: var(--pp-ink);
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}
.pp-admin-login-link.primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-color: transparent;
}
.pp-admin-login-link.ghost {
  background: #fff;
  color: var(--pp-muted);
}
.pp-admin-login-tip {
  margin: 0;
  color: var(--pp-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 720px) {
  .pp-admin-login-card { padding: 22px; }
  .pp-admin-login-links { grid-template-columns: 1fr; }
  .pp-admin-login-header h1 { font-size: 28px; }
}
