.portal{min-height:100vh;padding-bottom:calc(76px + env(safe-area-inset-bottom))}.p-header{background:var(--navy);color:#fff;padding:0 16px 16px}.p-header-inner{max-width:760px;margin:0 auto;display:flex;justify-content:space-between;align-items:center;min-height:54px}.p-header .brand{color:#fff;font-size:1.05rem}.p-header .brand:hover{text-decoration:none}.p-logout{color:#c7d2fe;font-size:.85rem}.p-logout:hover{background:#ffffff1a}.p-student{max-width:760px;margin:0 auto;display:flex;gap:12px;align-items:center;background:#ffffff14;border-radius:14px;padding:10px 12px}.avatar{width:44px;height:44px;border-radius:50%;background:#dbe5f8;color:var(--navy);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.15rem;flex:none}.p-name{font-weight:600}.p-sub{font-size:.8rem;color:#c7d2fe}.p-student select{background:#fffffff2;min-height:36px;padding:5px 10px;font-weight:600;color:var(--navy)}.p-container{max-width:760px;margin:0 auto;padding:18px 16px 24px}.p-container h1{font-size:1.3rem;margin-bottom:.25em}.p-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:30}.p-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.72rem;color:var(--muted);padding:6px 2px;border-radius:10px;max-width:120px}.p-nav a span{font-size:1.05rem;line-height:1}.p-nav a.on{color:var(--navy);font-weight:700;background:var(--soft-2)}.p-nav a:hover{text-decoration:none}.skill-mini{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.skill-mini>div{display:flex;justify-content:space-between;align-items:center;background:var(--soft-2);border-radius:10px;padding:8px 10px;font-size:.9rem}.kpis{display:flex;gap:10px;flex-wrap:wrap}.kpis>div{flex:1;min-width:96px;background:var(--soft-2);border-radius:12px;padding:10px 12px}.kpis b{display:block;font-size:1.35rem;color:var(--navy);font-family:var(--font-brand)}.kpis span{font-size:.78rem;color:var(--muted)}.delta{display:inline-block;margin-top:8px;font-size:.82rem;font-weight:600;color:var(--muted)}.delta.up{color:var(--green)}.delta.down{color:var(--orange)}.quote{margin:10px 0;padding:10px 14px;border-left:3px solid var(--blue);background:var(--soft-2);border-radius:0 10px 10px 0}.ins h3{margin-bottom:6px}.ins ul,ul.plain{margin:0;padding-left:20px}.ins li{margin-bottom:4px}.ins-good h3{color:var(--green)}.ins-warn h3{color:var(--orange)}.ins-blue h3{color:var(--blue)}.card.ins-good{border-left:4px solid var(--green)}.card.ins-warn{border-left:4px solid var(--orange)}.card.ins-blue{border-left:4px solid var(--blue)}.card.ins-navy{border-left:4px solid var(--navy)}div.ins{margin-top:12px}.overall-level{font-size:2rem;font-weight:800;color:var(--navy);font-family:var(--font-brand);line-height:1.1}.skill-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.skill-card .comment{margin:8px 0 0;padding-top:8px;border-top:1px solid var(--line)}.tbl.compact td,.tbl.compact th{padding:7px 8px}.filters{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.test-list,.report-list{list-style:none;margin:0;padding:0}.test-list li{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);align-items:center}.test-list li:last-child{border-bottom:0}.test-list .score{color:var(--navy);font-size:1.05rem}.report-list li{display:flex;gap:8px;align-items:center;margin-bottom:10px}@media(max-width:560px){.skill-cards{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.filters select:first-child{grid-column:1 / -1}.card{padding:16px}}.login-title{font-size:1.25rem;margin:.9rem 0 .25rem}.p-nav a{font-size:.68rem}.buddy-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem}.buddy-mode{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:.7rem .3rem;border:1.5px solid var(--line);border-radius:12px;background:var(--soft-2);cursor:pointer;font:inherit;color:var(--text);text-align:center}.buddy-mode strong{font-size:.92rem;color:var(--navy)}.buddy-mode.on{border-color:var(--blue);background:#eef3ff;box-shadow:0 0 0 3px #2563eb1f}.buddy-mode-icon{font-size:1.4rem;line-height:1.1}.buddy-tag{font-size:.68rem;font-weight:700;padding:.05rem .45rem;border-radius:999px}.buddy-tag-buddy{background:var(--green-bg);color:#047857}.buddy-tag-ladder{background:var(--orange-bg);color:#b45309}.buddy-tag-detective{background:#f1eafe;color:#6d28d9}.buddy-levels{display:flex;gap:4px;background:var(--gray);padding:4px;border-radius:12px;margin-top:.75rem}.buddy-levels button{flex:1;border:0;background:transparent;padding:.45rem .3rem;border-radius:9px;font:inherit;font-size:.85rem;font-weight:600;color:var(--muted);cursor:pointer}.buddy-levels button.on{background:#fff;color:var(--blue);box-shadow:var(--shadow)}.buddy-chat{padding:0;overflow:hidden;display:flex;flex-direction:column}.buddy-chat-head{display:flex;align-items:center;gap:.6rem;padding:.7rem .9rem;border-bottom:1px solid var(--line)}.buddy-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;flex:none}.buddy-list{min-height:260px;max-height:58vh;overflow-y:auto;padding:.9rem;display:flex;flex-direction:column;gap:.7rem;background:var(--bg)}.buddy-msg{max-width:90%;display:flex;flex-direction:column}.buddy-msg.me{align-self:flex-end}.buddy-msg.bot{align-self:flex-start}.buddy-bubble{padding:.65rem .9rem;border-radius:16px;line-height:1.65;font-size:.95rem;word-wrap:break-word}.buddy-msg.me .buddy-bubble{background:var(--blue);color:#fff;border-bottom-right-radius:4px;white-space:pre-wrap}.buddy-msg.bot .buddy-bubble{background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px}.buddy-bubble p{margin:0}.buddy-bubble .gap{height:.5rem}.buddy-bubble ul,.buddy-bubble ol{margin:.25rem 0 .25rem 1.2rem;padding:0}.buddy-bubble em{color:var(--navy-2)}.buddy-bubble code{background:var(--gray);padding:0 .3rem;border-radius:4px}.buddy-speak{align-self:flex-start;border:0;background:transparent;color:var(--muted);font:inherit;font-size:.78rem;padding:.2rem .3rem;cursor:pointer}.buddy-note{align-self:center;text-align:center;font-size:.8rem;color:var(--muted);background:var(--gray);padding:.3rem .8rem;border-radius:999px}.buddy-typing{display:inline-flex;gap:4px;padding:.25rem 0}.buddy-typing i{width:7px;height:7px;border-radius:50%;background:var(--muted);opacity:.4;animation:buddyDot 1.2s infinite ease-in-out}.buddy-typing i:nth-child(2){animation-delay:.2s}.buddy-typing i:nth-child(3){animation-delay:.4s}@keyframes buddyDot{0%,80%,to{opacity:.25}40%{opacity:.9}}@media(prefers-reduced-motion:reduce){.buddy-typing i{animation:none;opacity:.6}}.buddy-examples{display:flex;gap:.4rem;overflow-x:auto;padding:.6rem .9rem 0;background:var(--bg)}.buddy-examples button{flex:none;max-width:240px;text-align:left;border:1px dashed rgba(37,99,235,.4);background:#fff;color:var(--navy-2);padding:.45rem .7rem;border-radius:10px;font:inherit;font-size:.82rem;cursor:pointer}.buddy-input{display:flex;gap:.5rem;align-items:flex-end;padding:.7rem;border-top:1px solid var(--line);background:#fff}.buddy-input textarea{flex:1;resize:none;min-height:42px;max-height:120px;border-radius:18px;padding:.55rem .9rem}.buddy-send,.buddy-mic{flex:none;width:42px;height:42px;border-radius:50%;border:0;cursor:pointer;font-size:1rem}.buddy-send{background:var(--blue);color:#fff}.buddy-send:disabled{opacity:.45;cursor:not-allowed}.buddy-mic{background:var(--gray)}.buddy-mic.on{background:#fee2e2}.profile-nudge{display:flex;gap:.8rem;align-items:center;border:1.5px solid #f6c56b;background:#fffaf0;color:var(--text);text-decoration:none}.profile-nudge:hover{text-decoration:none;border-color:#d97706}.overall-only{display:flex;gap:.8rem;align-items:center;margin-top:.4rem}.overall-only .lvl{font-size:1.4rem;min-width:70px;padding:.35rem .8rem}.group-pick+.group-pick{margin-top:.9rem}.group-course{font-weight:700;color:var(--navy);font-size:.92rem;margin-bottom:.4rem}.group-option{display:flex;gap:.65rem;align-items:center;padding:.65rem .8rem;border:1.5px solid var(--line);border-radius:12px;margin-bottom:.45rem;cursor:pointer;background:#fff}.group-option.on{border-color:var(--blue);background:#eef3ff}.group-option input{width:20px;height:20px;flex:none}
