/* Focus PC end-user portal. Loaded after the console's app.css.
   BRAND COLOURS: change these values to match the Focus PC brand. */
:root {
  --brand: #0b5cad;        /* main brand colour: buttons, links, logo square */
  --brand-dark: #08457f;   /* hover */
  --brand-soft: #e8f1fb;   /* light tint for highlights */
  --brand-ink: #0b1f33;    /* header background */
  --accent: var(--brand); --accent-2: var(--brand-dark); --accent-soft: var(--brand-soft);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --brand: #5aa2ef; --brand-dark: #3b86d6; --brand-soft: #0f2740; --brand-ink: #071421; --on-accent: #071421; }
}
:root[data-theme="dark"] { --brand: #5aa2ef; --brand-dark: #3b86d6; --brand-soft: #0f2740; --brand-ink: #071421; --on-accent: #071421; }

.portal .primary:hover { background: var(--brand-dark); }

/* brand mark */
.pbrand { display: inline-flex; align-items: center; gap: 10px; }
.plogo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.pname { font-weight: 700; letter-spacing: -.01em; }
.pname b { color: var(--brand); margin-left: 4px; font-weight: 800; }
.plogo-img { height: 38px; width: auto; display: block; }
.guest.portal .guest-brand { font-size: 24px; }

/* top bar */
.ptop { display: flex; align-items: center; gap: 24px; padding: 10px 28px; background: var(--brand-ink); color: #e6eef7; position: sticky; top: 0; z-index: 20; }
.ptop-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.ptop-brand:hover { text-decoration: none; }
.ptop-brand .pname b { color: #8cc2f5; }
.ptop-title { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.2); color: #b9c9db; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ptop-nav { display: flex; gap: 4px; }
.ptop-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: #c9d6e4; font-weight: 600; }
.ptop-nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.ptop-nav a.on { background: rgba(255,255,255,.14); color: #fff; }
.ptop-user { margin-left: auto; display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ptop-user .ghost { color: #c9d6e4; }
.pmain { max-width: 1100px; margin: 0 auto; padding: 28px 24px 40px; }
.pmain h1 { font-size: 24px; margin: 0 0 18px; }
.pfoot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 18px; font-size: 12.5px; color: var(--muted); }

/* device cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.pdev { margin: 0; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--line-2); }
.pdev.is-on { border-top-color: var(--ok); }
.pdev-head { display: flex; align-items: flex-start; gap: 12px; }
.pdev-head h2 { margin: 0; font-size: 17px; }
.pdev-head .badge { margin-left: auto; }
.pdev-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); flex: none; }
.pdev-ic .ic { width: 22px; height: 22px; }
.pdev p { margin: 0; }
.pdev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pdev-actions form { margin: 0; }
.pdev-actions button[disabled] { opacity: .45; cursor: not-allowed; }

.pnarrow { max-width: 520px; }
.psteps { padding-left: 20px; color: var(--muted); }
.pkey { word-break: break-all; }

@media (max-width: 720px) {
  .ptop { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .ptop-title { display: none; }
  .ptop-user span { display: none; }
  .pmain { padding: 20px 14px; }
}
