/* Rank Local Engine: team portal shell (full-screen app, theme independent). */
html{background:#f6f7f9}
body.rlp-body{margin:0;padding:0;min-height:100vh;background:#f6f7f9;color:#0f172a;font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
.rlp-body *,.rlp-body *::before,.rlp-body *::after{box-sizing:border-box}
.rlp-body a{color:#1f4a94}
.rlp-body .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* ---------- login ---------- */
.rlp-login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 16px}
.rlp-login-card{width:100%;max-width:400px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:32px 28px}
.rlp-login-logo{display:block;height:auto;margin:0 0 24px}
.rlp-login-card h1{margin:0;font-size:22px;font-weight:600;letter-spacing:-.01em;color:#0f172a}
.rlp-login-card>p{margin:6px 0 22px;color:#64748b;font-size:14px}
.rlp-login-card form p{margin:0 0 14px}
.rlp-login-card label{display:block;margin-bottom:6px;font-size:13px;font-weight:500;color:#334155}
.rlp-login-card input[type=text],.rlp-login-card input[type=password]{width:100%;height:42px;padding:0 12px;border:1px solid #cbd5e1;border-radius:6px;font:15px inherit;font-family:inherit;color:#0f172a;background:#fff}
.rlp-login-card input[type=text]:focus,.rlp-login-card input[type=password]:focus{outline:0;border-color:#1f4a94;box-shadow:0 0 0 3px rgba(31,74,148,.15)}
.rlp-login-card .login-remember label{display:flex;align-items:center;gap:8px;font-weight:400;color:#475569}
.rlp-login-card input[type=submit],.rlp-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;height:42px;border:0;border-radius:6px;background:#1f4a94;color:#fff!important;font:600 14px/1 inherit;font-family:inherit;cursor:pointer;text-decoration:none}
.rlp-login-card input[type=submit]:hover,.rlp-btn:hover{background:#173a75}
.rlp-lost{display:inline-block;margin-top:4px;font-size:13px}

/* ---------- app shell ---------- */
.rlp{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}
.rlp-side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:20px;padding:20px 14px;background:#fff;border-right:1px solid #e2e8f0}
.rlp-brand{display:block;padding:2px 8px}
.rlp-brand img{display:block;height:auto;max-width:150px}
.rlp-side .rlp-nav{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;background:none;border-radius:0;flex:1}
.rlp-side .rlp-nav button,.rlp-side .rlp-nav a{appearance:none;display:flex;align-items:center;gap:10px;width:100%;height:38px;padding:0 10px;border:0;border-radius:6px;background:none;box-shadow:none;color:#475569;font:500 14px/1 inherit;font-family:inherit;text-align:left;text-decoration:none;cursor:pointer}
.rlp-side .rlp-nav button:hover,.rlp-side .rlp-nav a:hover{background:#f1f5f9;color:#0f172a}
.rlp-side .rlp-nav button.on{background:#eef2fa;color:#1f4a94;box-shadow:none}
.rlp-side .rlp-nav .dashicons{font-size:18px;width:18px;height:18px;line-height:1;color:currentColor;opacity:.85}
.rlp-side .rlp-nav a{margin-top:auto;border-top:1px solid #f1f5f9;border-radius:0 0 6px 6px;padding-top:2px}
.rlp-user{display:flex;align-items:center;gap:10px;padding:12px 8px 0;border-top:1px solid #e2e8f0}
.rlp-avatar{flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#0f172a;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;letter-spacing:.02em}
.rlp-who{min-width:0;flex:1;display:flex;flex-direction:column}
.rlp-who b{font-size:13px;font-weight:600;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rlp-who small{font-size:11.5px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rlp-out{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;color:#64748b!important;text-decoration:none}
.rlp-out:hover{background:#f1f5f9;color:#b91c1c!important}

.rlp-main{min-width:0;padding:24px 28px 48px}
.rlp-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:12px}
.rlp-head h1{margin:0;font-size:22px;font-weight:600;letter-spacing:-.01em;color:#0f172a;line-height:1.25}
.rlp-head p{margin:4px 0 0;color:#64748b;font-size:14px;max-width:560px}
.rlp-stats{display:flex;margin:0;background:#fff;border:1px solid #e2e8f0;border-radius:8px}
.rlp-stats div{padding:9px 16px;border-left:1px solid #e2e8f0;min-width:96px}
.rlp-stats div:first-child{border-left:0}
.rlp-stats dt{font-size:11.5px;color:#64748b;white-space:nowrap}
.rlp-stats dd{margin:2px 0 0;font-size:19px;font-weight:600;color:#0f172a;font-variant-numeric:tabular-nums;line-height:1.2}
.rlp-stats dd small{font-size:13px;font-weight:500;color:#94a3b8}
.rlp-stats dd.warn{color:#c2410c}
.rlp-target{height:4px;background:#e2e8f0;border-radius:2px;overflow:hidden;margin:0 0 20px}
.rlp-target i{display:block;height:100%;background:#1f4a94;border-radius:2px}
.rlp-content{margin-top:16px}

/* ---------- team app inside the portal ---------- */
.rlp .rle-team{max-width:none;margin:0}
.rlp .rle-team>.rle-app{max-width:none}
.rlp .rle-hero{background:#fff;color:#0f172a;text-align:left;border:1px solid #e2e8f0;border-radius:8px;box-shadow:none;padding:20px}
.rlp .rle-hero::before,.rlp .rle-hero::after,.rlp .rle-hero-logo,.rlp .rle-hero-title,.rlp .rle-hero-sub,.rlp .rle-trust,.rlp .rle-features{display:none}
.rlp .rle-note{color:#64748b;font-size:12.5px;margin-top:10px!important}
.rlp .rle-form{max-width:none;margin:0}
.rlp .rle-row{background:none;box-shadow:none;padding:0;border-radius:0;gap:8px}
.rlp .rle-app .rle-input{height:42px;border:1px solid #cbd5e1;border-radius:6px;font-size:15px}
.rlp .rle-app .rle-input:focus{border-color:#1f4a94;box-shadow:0 0 0 3px rgba(31,74,148,.15)}
.rlp .rle-app .rle-go{height:42px;padding:0 20px;border-radius:6px;font-size:14px;background:#1f4a94;border-color:#1f4a94}
.rlp .rle-app .rle-go:hover{background:#173a75;border-color:#173a75}
.rlp .rlt-fields{margin-top:12px}
.rlp .rlt-fields span{color:#475569;font-weight:500}
.rlp .rlt-fields input,.rlp .rlt-fields select{height:38px;border:1px solid #cbd5e1;border-radius:6px}
.rlp .rlt-out{border:1px solid #e2e8f0;border-radius:8px}
.rlp .rlt-pane,.rlp .rle-app.rlt-pane{border-radius:8px;border-color:#e2e8f0}
.rlp .rlt-crm.rle-app{padding:0;border:0;background:none}
.rlp .rle-progress{border-radius:8px;box-shadow:none}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .rlp-stats{width:100%}
  .rlp-stats div{flex:1}
}
@media (max-width:860px){
  .rlp{grid-template-columns:1fr}
  .rlp-side{position:sticky;top:0;z-index:20;height:auto;flex-direction:row;align-items:center;gap:10px;padding:8px 12px;border-right:0;border-bottom:1px solid #e2e8f0}
  .rlp-brand{padding:0;flex:0 0 auto}
  .rlp-brand img{max-width:104px}
  .rlp-side .rlp-nav{flex-direction:row;overflow-x:auto;gap:2px;scrollbar-width:none}
  .rlp-side .rlp-nav::-webkit-scrollbar{display:none}
  .rlp-side .rlp-nav button,.rlp-side .rlp-nav a{width:auto;flex:0 0 auto;height:34px;padding:0 10px;font-size:13px;white-space:nowrap}
  .rlp-side .rlp-nav a{margin-top:0;border-top:0;border-radius:6px}
  .rlp-user{padding:0;border-top:0;flex:0 0 auto}
  .rlp-who{display:none}
  .rlp-main{padding:18px 16px 40px}
}
@media (max-width:600px){
  .rlp-side{flex-wrap:wrap}
  .rlp-side .rlp-nav{order:3;flex:1 1 100%}
  .rlp-user{margin-left:auto}
  .rlp-side .rlp-nav .dashicons{display:none}
  .rlp-head h1{font-size:19px}
  .rlp-stats{display:grid;grid-template-columns:1fr 1fr}
  .rlp-stats div{border-left:0;border-top:1px solid #e2e8f0}
  .rlp-stats div:nth-child(-n+2){border-top:0}
  .rlp-stats div:nth-child(even){border-left:1px solid #e2e8f0}
  .rlp .rle-row{flex-direction:column}
  .rlp .rle-app .rle-go{width:100%}
}
.rlp-focus{display:inline-flex;align-items:center;gap:8px;margin:8px 0 0!important;padding:4px 10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;font-size:12.5px!important;color:#0f172a!important}
.rlp-focus span{color:#64748b;font-weight:500}
