/* RETAIN-PH student & parent portal — mobile first */
body.portal { background: #f4f7f4; min-height: 100vh; }
.p-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: linear-gradient(135deg, var(--brand-700), var(--deep)); color: #fff; box-shadow: 0 2px 10px rgba(var(--deep-rgb),  .25); }
.p-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; font-weight: 800; line-height: 1.1; }
.p-brand img { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 1px; }
.p-brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--on-deep); }
.p-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.p-lang { color: var(--deep); background: var(--gold); font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 999px; text-decoration: none !important; }
.p-out { background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.p-main { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; }
.p-hello { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; }
.p-hello h1 { font-size: 1.25rem; margin: 0; }
.p-hello p { margin: 0; color: var(--muted); font-size: 13.5px; }
.p-status { border-radius: 18px; padding: 18px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-600)); box-shadow: var(--shadow); margin-bottom: 14px; position: relative; overflow: hidden; }
.p-status::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(var(--gold-rgb),  .25); }
.p-status.out { background: linear-gradient(135deg, #475569, #334155); }
.p-status.none { background: linear-gradient(135deg, #b45309, #92400e); }
.p-status .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.p-status .big { font-size: 1.7rem; font-weight: 800; margin: 2px 0 6px; }
.p-status .times { display: flex; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.p-card h2 { font-size: 1rem; margin: 0; padding: 14px 16px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-card .body { padding: 0 16px 14px; }
.p-list { list-style: none; margin: 0; padding: 0 16px 8px; }
.p-list li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.p-list li:first-child { border-top: 0; }
.p-list .grow { flex: 1; min-width: 0; }
.p-list small { display: block; color: var(--muted); font-size: 12.5px; }
.p-rate { display: flex; align-items: center; gap: 10px; }
.p-rate .progress { flex: 1; }
.p-login { background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-top: 10px; }
.p-login .logos { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.p-login .logos img { width: 64px; height: 64px; }
.p-login h1 { text-align: center; font-size: 1.3rem; }
.p-login input[name=pin] { letter-spacing: .4em; font-size: 20px; text-align: center; }
.p-privacy { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }
.scores { display: flex; gap: 4px; align-items: flex-end; height: 56px; }
.scores .s { flex: 1; min-width: 10px; border-radius: 4px 4px 0 0; background: var(--brand); }
.scores .s[data-v="1"], .scores .s[data-v="2"] { background: #e25b4a; }
.scores .s[data-v="3"] { background: var(--orange); }
.scores .s.none { background: #e5e9e5; height: 100% !important; opacity: .6; }
.scores-labels { display: flex; gap: 4px; font-size: 10px; color: var(--muted); margin-top: 3px; }
.scores-labels span { flex: 1; min-width: 10px; text-align: center; }
.q-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
