/* Developer (superadmin) portal — #/platform */
.pf-login { min-height: calc(100vh - var(--rp-foot, 0px)); display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 25% 20%, #24456f 0, #142a45 55%, #0d1c2f 100%); padding: 24px; }
.pf-login-card { background: var(--bg, #fff); width: min(440px, 100%); padding: 32px; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 12px; }
.pf-login-card h1 { margin: 6px 0 0; font-size: 26px; }
.pf-login-brand { font-size: 30px; }
.pf-shell { min-height: calc(100vh - var(--rp-foot, 0px)); background: var(--bg-soft, #f3f6f9); }
.pf-header { display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: #0f2440; color: #fff; position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.pf-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; }
.pf-brand .wm-a { color: #fff; } .pf-brand .wm-b { color: #7fd3ea; }
.pf-brand .brand-mark { background: #fff; border-radius: 7px; padding: 2px; }
.pf-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; background: #d63a3a; color: #fff; border-radius: 4px; padding: 3px 7px; }
.pf-tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.pf-tab { color: #c9d6e6; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: 14px; }
.pf-tab:hover { background: rgba(255,255,255,.08); color: #fff; }
.pf-tab.on { background: #1b8aa8; color: #fff; }
.pf-who { color: #c9d6e6; font-size: 14px; }
.pf-spacer { flex: 1; }
.pf-main { padding: 20px 24px 60px; max-width: 1400px; margin: 0 auto; }
.pf-main h2 { margin: 6px 0 14px; font-size: 24px; }
.pf-main h3 { margin: 0 0 10px; font-size: 16px; }
.pf-alert { background: #fff4d6; color: #5c3d00; border-bottom: 2px solid #f0b429; padding: 10px 24px; font-weight: 600; }
.pf-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pf-row h2, .pf-row h3 { margin: 0; }
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pf-card { background: var(--bg, #fff); border: 1px solid var(--line, #dde3ea); border-radius: 8px; padding: 14px 16px; }
.pf-card-label { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-2, #5b6b7b); font-weight: 700; }
.pf-card-value { font-size: 26px; font-weight: 800; margin-top: 4px; color: var(--navy, #173a66); }
.pf-card-sub { font-size: 12px; color: var(--text-2, #5b6b7b); margin-top: 2px; }
.pf-panel { background: var(--bg, #fff); border: 1px solid var(--line, #dde3ea); border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; }
.pf-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.pf-two > .pf-panel { margin-bottom: 0; }
.pf-two + * { margin-top: 16px; }
.pf-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pf-table th, .pf-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, #e6ebf0); vertical-align: middle; }
.pf-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2, #5b6b7b); }
.pf-table tbody th { width: 220px; color: var(--text-2, #5b6b7b); font-weight: 600; }
.pf-list { background: var(--bg, #fff); border: 1px solid var(--line, #dde3ea); border-radius: 8px; overflow: hidden; }
.pf-click { cursor: pointer; } .pf-click:hover { background: rgba(27,138,168,.07); }
.pf-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.pf-nowrap { white-space: nowrap; }
.pf-small { font-size: 12px; }
.pf-muted { color: var(--text-2, #5b6b7b); }
.pf-error { color: var(--red, #c0392b); min-height: 18px; font-size: 14px; }
.pf-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #e6ebf0; color: #33475b; margin-right: 4px; }
.pf-ok { background: #dff5e7; color: #17663a; } .pf-bad { background: #fde3e1; color: #a12a1e; } .pf-warn { background: #fff1d1; color: #7a5200; }
.pf-search { max-width: 340px; }
.pf-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.pf-form h4 { grid-column: 1 / -1; margin: 8px 0 0; }
.pf-panel > h4 { margin: 18px 0 8px; }
.pf-table td > .pf-muted + .btn, .pf-table td > .pf-pill + .btn { margin-left: 8px; }
.pf-field { display: flex; flex-direction: column; gap: 4px; }
.pf-label { font-size: 13px; font-weight: 600; }
.pf-hint { font-size: 12px; color: var(--text-2, #5b6b7b); }
.pf-inline { display: flex; gap: 8px; } .pf-inline .input { flex: 1; }
.pf-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.pf-table .pf-actions { justify-content: flex-start; margin: 0; }
.pf-check { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line, #eef2f5); }
.pf-switch { width: 44px; height: 24px; border-radius: 12px; border: 0; background: #c3ccd5; position: relative; cursor: pointer; flex: none; transition: background .15s; }
.pf-switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.pf-switch.on { background: #2ecc71; } .pf-switch.on span { left: 23px; }
.pf-sel { padding: 4px 8px; height: auto; min-width: 160px; }
.pf-row > .input.pf-sel { width: auto; flex: none; padding: 7px 8px; }
.pf-row > .pf-search { flex: 1 1 220px; }
.pf-bars { display: flex; flex-direction: column; gap: 8px; }
.pf-bar-row { display: grid; grid-template-columns: 220px 1fr 50px; align-items: center; gap: 10px; }
.pf-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-bar { background: var(--bg-soft, #eef2f5); border-radius: 4px; height: 14px; overflow: hidden; }
.pf-bar-fill { background: linear-gradient(90deg, #1b8aa8, #2aa3c4); height: 100%; }
.pf-bar-num { text-align: right; font-weight: 700; }
.pf-back { display: inline-block; margin-bottom: 10px; }
.pf-logo { width: 56px; height: 56px; object-fit: contain; }
.pf-files { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-file { background: var(--bg-soft, #eef2f5); border-radius: 6px; padding: 6px 10px; text-decoration: none; font-size: 13px; }
.pf-danger { border-color: #f1b0a9; }
/* Linked overview cards */
a.pf-card-link { display: block; text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
a.pf-card-link:hover { border-color: #1b8aa8; box-shadow: 0 2px 8px rgba(27,138,168,.15); }
.pf-card-bad .pf-card-value { color: #c0392b; }
.pf-copy { padding: 1px 7px; font-size: 11px; vertical-align: middle; }
.pf-mono, .pf-log, .pf-stack { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.pf-form1 { display: flex; flex-direction: column; gap: 10px; }
.pf-checkline { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.pf-checkline input { margin-top: 3px; }
.pf-revoked td { opacity: .55; }
.pf-file-row { display: flex; align-items: center; gap: 6px; background: var(--bg-soft, #eef2f5); border-radius: 6px; padding-right: 6px; }
.pf-file-row .pf-file { background: none; }
/* Usage charts (small multiples, SVG) */
.pf-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.pf-ch-box { border: 1px solid var(--line, #e6ebf0); border-radius: 8px; padding: 10px 12px 4px; }
.pf-ch-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.pf-ch-read { font-size: 12px; color: var(--text-2, #5b6b7b); font-variant-numeric: tabular-nums; }
.pf-ch { width: 100%; height: auto; display: block; }
.pf-ch-grid { stroke: var(--line, #e6ebf0); stroke-width: 1; }
.pf-ch-axis { font-size: 10px; fill: var(--text-2, #5b6b7b); }
.pf-ch-line { fill: none; stroke: #1b8aa8; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pf-ch-area { fill: rgba(27,138,168,.10); }
.pf-ch-cross { stroke: var(--text-2, #8a9aab); stroke-width: 1; stroke-dasharray: 3 3; }
.pf-ch-dot { fill: #1b8aa8; stroke: var(--bg, #fff); stroke-width: 2; }
.pf-ch-table { margin-top: 10px; font-size: 13px; }
.pf-ch-table summary { cursor: pointer; color: var(--text-2, #5b6b7b); }
.pf-ch-table table { max-width: 520px; }
/* Errors */
.pf-errmsg { max-width: 460px; word-break: break-word; }
.pf-stack { background: #0f1b2a; color: #d7e3f0; padding: 12px; border-radius: 6px; font-size: 12px; white-space: pre-wrap; word-break: break-word; max-height: 50vh; overflow: auto; margin-top: 12px; }
/* Live log */
.pf-log { background: #0f1b2a; color: #d7e3f0; border-radius: 8px; padding: 10px 12px; font-size: 12px; height: 62vh; overflow: auto; margin-bottom: 6px; }
.pf-log-line { display: grid; grid-template-columns: 64px 50px 1fr; gap: 8px; padding: 1px 0; white-space: pre-wrap; word-break: break-word; }
.pf-log-t { color: #7f93a8; } .pf-log-lv { color: #7fd3ea; font-weight: 700; }
.pf-log-warn .pf-log-lv { color: #f0b429; } .pf-log-error .pf-log-lv, .pf-log-error .pf-log-x { color: #ff8a80; }
@media (max-width: 760px) {
  .pf-header { padding: 10px 12px; } .pf-main { padding: 14px 12px 60px; }
  .pf-two { grid-template-columns: 1fr; } .pf-bar-row { grid-template-columns: 120px 1fr 40px; }
  .pf-list, .pf-table { display: block; overflow-x: auto; }
}
/* System-wide notice (developer portal → Settings) on the dashboard and sign-in page */
.sys-notice { border-radius: 6px; padding: 10px 14px; margin: 0 0 12px; font-weight: 600; border: 1px solid; }
.sys-notice.sn-info { background: #e6f4fa; border-color: #9fd3e6; color: #0f4c63; }
.sys-notice.sn-warning { background: #fff4d6; border-color: #f0b429; color: #5c3d00; }
.sys-notice.sn-danger { background: #fde3e1; border-color: #f1a39b; color: #8e1b10; }
.login-right .sys-notice { margin-top: 10px; }
