/* H-Spatial platform pages — builds on hd-ui.css (black + cyan, no emoji). */
html, body { margin: 0; min-height: 100%; background: var(--hd-bg-0); color: var(--hd-text); font-family: var(--hd-font); }
body { -webkit-font-smoothing: antialiased; }
a { color: var(--hd-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

.pf-top { position: sticky; top: 0; z-index: 10; height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; border-bottom: 1px solid var(--hd-line); background: var(--hd-bg-1); backdrop-filter: blur(14px); }
.pf-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 16px; letter-spacing: -0.02em; }
.pf-brand img { width: 26px; height: 26px; }
.pf-brand:hover { text-decoration: none; }
.pf-top-right { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hd-text-2); }

/* sign-in card */
.pf-auth { min-height: calc(100vh - 56px); display: grid; place-items: center; padding: 32px 16px; box-sizing: border-box;
  background: radial-gradient(60% 50% at 50% 0%, rgba(34, 211, 238, 0.08), transparent 70%); }
.pf-card { width: 100%; max-width: 400px; box-sizing: border-box; padding: 28px; border-radius: 16px;
  background: var(--hd-bg-1-solid); border: 1px solid var(--hd-line); box-shadow: var(--hd-shadow); }
.pf-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.pf-card .pf-sub { margin: 0 0 22px; font-size: 13.5px; color: var(--hd-text-2); line-height: 1.55; }
.pf-step { display: grid; gap: 12px; }
.pf-label { display: grid; gap: 6px; font-size: 12.5px; color: var(--hd-text-2); }
.pf-label .hd-input { height: 40px; font-size: 14px; padding: 0 12px; width: 100%; box-sizing: border-box; }
.pf-code { letter-spacing: 0.5em; text-align: center; font-size: 20px !important; font-variant-numeric: tabular-nums; }
.pf-btn { height: 40px !important; font-size: 14px !important; justify-content: center; }
.pf-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--hd-text-2); }
.pf-link { background: none; border: 0; padding: 0; color: var(--hd-accent); font: inherit; font-size: 13px; cursor: pointer; }
.pf-link:hover { text-decoration: underline; }
.pf-link:disabled { color: var(--hd-text-3); cursor: default; text-decoration: none; }
.pf-or { display: flex; align-items: center; gap: 10px; color: var(--hd-text-3); font-size: 12px; margin: 4px 0; }
.pf-or::before, .pf-or::after { content: ""; flex: 1; height: 1px; background: var(--hd-line); }
.pf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--hd-text-2); line-height: 1.5; }
.pf-check input { margin-top: 3px; accent-color: var(--hd-accent); }
.pf-msg { min-height: 18px; font-size: 13px; line-height: 1.5; color: var(--hd-text-2); }
.pf-msg.error { color: var(--hd-danger); }
.pf-msg.good { color: var(--hd-accent); }
.pf-hint { font-size: 12px; color: var(--hd-text-3); line-height: 1.5; }
.pf-foot { margin-top: 18px; font-size: 12px; color: var(--hd-text-3); text-align: center; line-height: 1.6; }

/* account page */
.pf-main { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; display: grid; gap: 16px; }
.pf-main h1 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.02em; }
.pf-panel { padding: 20px; border-radius: 14px; background: var(--hd-bg-1-solid); border: 1px solid var(--hd-line); display: grid; gap: 14px; }
.pf-panel h2 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pf-kv { display: grid; gap: 4px; font-size: 13px; color: var(--hd-text-2); }
.pf-kv b { font-size: 15px; color: var(--hd-text); font-weight: 600; }
.pf-bar { height: 8px; border-radius: 99px; background: var(--hd-bg-3); overflow: hidden; }
.pf-bar > span { display: block; height: 100%; background: var(--hd-accent); border-radius: 99px; }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--hd-accent-soft); color: var(--hd-accent); border: 1px solid var(--hd-accent-line); }
.pf-danger-zone { border-color: rgba(248, 113, 113, 0.25); }
