/* Platform console (MGK Unified operators only) */
body { background: var(--bg); }
.p-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px 28px; }
.p-top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.p-top .p-wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.p-logo { height: 44px; width: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 8px; }
.p-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--heading); line-height: 1.1; }
.p-title small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); }
.p-grow { flex: 1; }

.p-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 22px 0 18px; }
.p-stat { position: relative; overflow: hidden; padding: 16px 18px; }
.p-stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.p-stat .l { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.p-stat .v { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--heading); margin-top: 2px; letter-spacing: -.02em; }
.p-stat .s { color: var(--muted); font-size: 12px; }

.p-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.p-bar input[type=search] { max-width: 320px; }
.chips { display: flex; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip.on { background: var(--brand-soft); color: var(--brand-deep); border-color: var(--brand); }

.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); gap: 16px; }
.cust { padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .15s, transform .15s; }
.cust:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.cust.off { opacity: .8; }
.cust-head { display: flex; gap: 12px; align-items: center; }
.avatar-lg { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; flex: none; }
.cust-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--heading); line-height: 1.2; word-break: break-word; }
.cust-host { font-size: 12.5px; }
.cust-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--neutral-bg); border-radius: 12px; padding: 10px 12px; }
.cust-metrics div { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cust-metrics b { display: block; font-size: 14px; color: var(--heading); text-transform: none; letter-spacing: 0; margin-top: 2px; font-weight: 700; }
.cust-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }

.p-login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.p-login .brand-side { background: var(--grad); color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 56px; position: relative; overflow: hidden; }
.p-login .brand-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: #ffffff1f; }
.p-login .brand-side img { width: 220px; background: #fff; border-radius: 18px; padding: 12px 16px; }
.p-login .brand-side h1 { color: #fff; font-size: 34px; letter-spacing: -.02em; }
.p-login .brand-side p { margin: 0; max-width: 420px; font-size: 16px; opacity: .95; }
.p-login ul { margin: 0; padding-left: 18px; line-height: 1.9; opacity: .95; }
.p-login .form-side { display: grid; place-items: center; padding: 32px; }
.p-login form { width: 100%; max-width: 380px; }
.p-foot { margin-top: 28px; }
.sess-active { color: var(--bad); font-weight: 700; }

@media (max-width: 960px) {
  .p-stats { grid-template-columns: repeat(2, 1fr); } .p-login { grid-template-columns: 1fr; } .p-login .brand-side { padding: 32px; }
  .cust-grid { grid-template-columns: 1fr; }
}
