/* Feuerwehr edition · derived from portal-ui.css; layout unchanged, only blue-teal hues replaced. */
/* JF Portal role-based SaaS UI, tenant branding and protected personal views. */
:root{--org-accent:#a92e39}
.logo .portal-crest{width:45px;height:45px;flex:none}
.portal-crest{display:grid;place-items:center;width:50px;height:50px;border-radius:12px;object-fit:contain;background:#f1f2f4;border:2px solid #e4e5e7;color:var(--org-accent);font-size:20px;font-weight:950;letter-spacing:-.04em}
.portal-crest-fallback{border-color:var(--org-accent);background:#f1f2f4}
.portal-crest.small{width:45px;height:45px}
.portal-crest.large{width:78px;height:78px;border-radius:18px;font-size:27px}
.portal-crest.preview{width:110px;height:110px;border-radius:15px;font-size:33px}
.appbar{justify-content:flex-start}
.appbar-brand-crest{flex:none}
.appbar>.buttons{margin-left:auto}
.appbar .org{font-size:17px}
.sidebar .logo{align-items:center}
.sidebar .logo>span:last-child{min-width:0;overflow:hidden}
.sidebar .logo small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:165px;line-height:1.4}
.appbar .identity{line-height:1.3}
.cl-welcome{background:linear-gradient(100deg,#2e2f31,#363739)}
.cl-welcome>.eyebrow{color:#efbaad}
.portal-user-banner{background:linear-gradient(100deg,#2d2e30,#3a3b3d);padding:27px;border:1px solid #535456;border-left:4px solid var(--org-accent);border-radius:17px;display:flex;gap:18px;align-items:center;margin-bottom:17px}
.portal-user-banner h1{margin:5px 0 5px;color:#f9fafc;font-size:36px}
.portal-user-banner p{margin:0;color:#d3d4d6}
.portal-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:17px}
.portal-home-grid,.portal-brand-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.portal-home-grid>.card{min-height:210px}
.portal-brand-grid .card h2{font-size:24px}
.portal-crest-preview{display:flex;align-items:center;gap:21px;border:1px solid #4e4f51;border-radius:13px;padding:18px;background:#323335;margin:17px 0 21px}
.portal-crest-preview>div{min-width:0;display:flex;flex-direction:column;gap:6px}
.portal-crest-preview strong{font-size:18px;overflow-wrap:anywhere}
.portal-crest-preview span{font-size:12px;color:#d5d6d8}
.portal-goal-list{display:grid;gap:13px;margin-top:17px}
.portal-goal{background:#2f3032;border:1px solid #505153;border-radius:13px;padding:20px}
.portal-goal-top{display:flex;align-items:start;justify-content:space-between;gap:16px}
.portal-goal h3{font-size:19px;margin:5px 0 6px}
.portal-goal p{color:#d1d2d4;font-size:13px;margin:0 0 8px}
.portal-goal-requirements{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}
.portal-goal-requirements span{font-size:12px;padding:8px 10px;border-radius:8px;border:1px solid #5c5d5f;color:#e5e6e8;background:#38393b}
.portal-goal .buttons{margin-top:13px}
.portal-intro-card{border:1px solid #565759;background:linear-gradient(120deg,#2f3032,#2b2c2e);border-radius:14px;padding:25px;margin-bottom:16px}
.portal-intro-card h2{font-size:26px;margin:8px 0}
.portal-intro-card p{font-size:14px;color:#d6d7d9;max-width:800px;margin:0}
.portal-safety-note{border-left:4px solid #cda363;background:#2b2c2e;border-radius:0 10px 10px 0;color:#efddbc;padding:15px 19px;font-size:12px;line-height:1.6;margin-top:17px}
.portal-member-select{min-width:200px}
.portal-topic-choices{padding:15px;background:#2e2f31;border:1px solid #505153;border-radius:13px}
.portal-topic-choices p{margin:4px 0 11px}
.portal-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.portal-check-grid .check-field{align-items:start;font-weight:500;font-size:13px}
.portal-quiz-card{max-width:930px;margin:0 auto;padding:35px}
.portal-quiz-line{display:flex;justify-content:space-between;gap:10px;color:#bfc0c2;font-size:12px;text-transform:uppercase;font-weight:750}
.portal-quiz-track{height:10px;background:#3f4042;border-radius:50px;overflow:hidden;margin:20px 0 28px}
.portal-quiz-track i{display:block;height:100%;background:linear-gradient(90deg,var(--org-accent),#e7a47e)}
.portal-quiz-card h2{font-size:clamp(24px,3vw,34px);max-width:820px;margin:15px 0 24px}
.portal-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.portal-answer{border:2px solid #555658;background:#363739;color:#f1f2f4;border-radius:13px;padding:17px;min-height:80px;text-align:left;display:flex;align-items:center;gap:12px;font-weight:680}
.portal-answer:hover{background:#444547}
.portal-answer span{display:grid;place-items:center;width:30px;height:30px;min-width:30px;border-radius:7px;border:1px solid #969799;font-size:12px}
.portal-answer.selected{background:#3f4042;border-color:#e59499}
.portal-quiz-result{max-width:920px;margin:auto}
.portal-quiz-result .portal-score{font-size:60px;font-weight:900;color:#bcbdbf}
.portal-feedback{display:grid;gap:9px;margin:20px 0}
.portal-feedback-item{background:#2f3032;border:1px solid #4f5052;border-radius:11px;padding:13px}
.portal-feedback-item p{margin:5px 0 0;color:#d5d6d8;font-size:13px}
.portal-quiz-history{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #4a4b4d;padding:12px 0}
.portal-quiz-history b{font-size:14px}
.portal-quiz-history span{font-size:12px;color:#c7c8ca;text-align:right}
.portal-doc-list{display:grid;gap:10px}
.portal-doc-entry{display:flex;align-items:center;gap:16px;background:#2f3032;border:1px solid #4c4d4f;border-radius:12px;padding:16px}
.portal-doc-icon{display:grid;place-items:center;font-weight:850;font-size:13px;color:#d5d6d8;background:#3e3f41;border-radius:9px;min-width:53px;height:62px}
.portal-doc-info{flex:1;min-width:0}
.portal-doc-info h3{font-size:18px;margin:5px 0}
.portal-doc-info p{font-size:13px;color:#d0d1d3;margin:0 0 7px}
.portal-doc-info small{font-size:11px;color:#b5b6b8}
.portal-doc-actions{display:flex;flex-direction:column;gap:7px}
.portal-doc-replies{border-top:1px solid #4a4b4d;display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;padding-top:10px}
.portal-doc-replies span{font-size:11px;color:#acd7c1}
.portal-quiz-history:last-child{border-bottom:0}
.appbar-brand-crest .portal-crest{background:#f1f2f4}
.btn.primary{background:var(--org-accent);border-color:var(--org-accent)}
.cl-quick:hover{border-color:var(--org-accent)}
@media(max-width:1080px){.portal-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){.portal-brand-grid,.portal-home-grid{grid-template-columns:1fr}.portal-user-banner{padding:20px}.portal-user-banner h1{font-size:29px}.appbar-brand-crest{display:none}.portal-doc-entry{align-items:start;flex-wrap:wrap}.portal-doc-actions{width:100%;flex-direction:row;flex-wrap:wrap}.portal-answers,.portal-check-grid{grid-template-columns:1fr}.portal-quiz-card{padding:22px}.portal-goal-top{flex-direction:column}}
@media(max-width:440px){.portal-crest.large{width:61px;height:61px}.portal-user-banner{gap:10px}.portal-user-banner h1{font-size:25px}.portal-quiz-line{font-size:10px}.portal-quiz-history{align-items:start;flex-direction:column}}
.portal-learning-banner{display:flex;justify-content:space-between;align-items:center;gap:19px;padding:24px;background:linear-gradient(95deg,#2d2e30,#38393b);border-radius:15px;margin-bottom:15px;border:1px solid #525355}
.portal-learning-banner h2{color:#f9fafc;margin:7px 0}
.portal-learning-banner p{color:#d5d6d8;font-size:13px;margin:0;max-width:690px}
.portal-learning-link{display:flex;flex-direction:column;gap:5px;padding:13px 3px;border-bottom:1px solid #494a4c;text-decoration:none}
.portal-learning-link:hover{background:#2d2e30;text-decoration:none}
.portal-learning-link strong{color:#f1f2f4}
.portal-learning-link span{font-size:12px;color:#e59499}
.portal-learning-status{display:flex;align-items:center;justify-content:space-between;gap:13px;padding:12px 0;border-bottom:1px solid #4a4b4d}
.portal-learning-status b{font-size:14px;color:#eff0f2}
.portal-learning-status span{font-size:12px;color:#a8d3bb;text-align:right}
.sidebar .nav-btn .icon{font-size:20px;font-weight:750;line-height:1;color:#c0c1c3;width:26px;text-align:center}
@media(max-width:650px){.portal-learning-banner{flex-direction:column;align-items:stretch}}
