/* CFG Racing Management · premium frontend visual system (v0.6.3) */
.cfg-rm-portal{--cfg-ink:#0d2236;--cfg-navy:#0e2033;--cfg-gold:#d7ad65;--cfg-teal:#0b8c86;--cfg-muted:#668196;--cfg-border:#e0e8ed;background:linear-gradient(165deg,#e9f0f4,#f7f9fa 45%,#e7eff2)!important;color:var(--cfg-ink);padding:34px 20px 55px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:14px;line-height:1.55}
.cfg-rm-portal .cfg-rm-portal-frame{max-width:1420px!important;border-radius:22px;background:#f8fafb;box-shadow:0 30px 90px rgba(11,33,53,.13);overflow:hidden;border:1px solid rgba(13,37,55,.07)}
.cfg-rm-portal .cfg-rm-portal-header{background:linear-gradient(110deg,#0c2034 0%,#142e43 68%,#153a4b 100%)!important;border-radius:0;min-height:112px;padding:25px 42px;position:relative}
.cfg-rm-portal .cfg-rm-portal-header:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:linear-gradient(90deg,#d7ad65,rgba(215,173,101,.08) 72%)}
.cfg-rm-portal .cfg-rm-portal-monogram{height:59px;width:59px;display:grid;place-items:center;background:rgba(215,173,101,.08);border:1px solid rgba(215,173,101,.65);color:#f4d394;font-size:20px;border-radius:14px;padding:0}
.cfg-rm-portal .cfg-rm-portal-name{color:#fff!important;font-size:24px;letter-spacing:-.045em;font-weight:750}.cfg-rm-portal .cfg-rm-version{display:inline-block;font-size:9px;vertical-align:middle;letter-spacing:.16em;border:1px solid rgba(215,173,101,.5);color:#e4bc74;padding:4px 6px;border-radius:5px;margin-left:6px}
.cfg-rm-portal .cfg-rm-portal-overline{letter-spacing:.16em;color:#e0b671}
.cfg-rm-portal .cfg-rm-portal-header-extra{letter-spacing:.08em;border:1px solid #385366;padding:9px 13px;border-radius:100px;color:#d3e3ea;font-size:10px}
.cfg-rm-portal .cfg-rm-portal-welcome{background:radial-gradient(circle at 90% 5%,rgba(27,147,150,.17),transparent 35%),linear-gradient(115deg,#122b40,#173c50)!important;padding:47px 42px 53px;min-height:240px;align-items:flex-start}
.cfg-rm-portal .cfg-rm-portal-welcome h1{font-size:clamp(30px,3.2vw,47px)!important;color:#fff!important;max-width:760px;letter-spacing:-.055em;line-height:1.12;margin:4px 0 14px}
.cfg-rm-portal .cfg-rm-portal-welcome p{color:#c1d5df!important;font-size:15px;max-width:650px;line-height:1.65}
.cfg-rm-portal .cfg-rm-portal-welcome .cfg-rm-portal-tag{color:#e6bd77!important}
.cfg-rm-portal .cfg-rm-workspace-status{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(79,201,185,.4);background:rgba(11,140,134,.12);color:#b3efe1;padding:7px 12px;border-radius:100px;font-size:11px;font-weight:700;margin-top:13px}
.cfg-rm-portal .cfg-rm-portal-account{padding:13px 16px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.055);border-radius:12px;color:#bcd0db;line-height:1.6}
.cfg-rm-portal .cfg-rm-portal-account strong{color:#fff;display:block;margin:2px 0 7px;font-size:14px}.cfg-rm-portal .cfg-rm-portal-account a{color:#efc27d;font-weight:700}
.cfg-rm-portal .cfg-rm-portal-metrics{background:#f6f9fb;padding:24px 40px 30px;gap:14px}
.cfg-rm-portal .cfg-rm-portal-stat{background:#fff;border:1px solid var(--cfg-border);padding:24px 24px 20px;box-shadow:0 6px 17px rgba(13,42,61,.035);border-radius:15px;position:relative;overflow:hidden}
.cfg-rm-portal .cfg-rm-portal-stat:before{content:"";height:3px;left:0;right:0;top:0;position:absolute;background:linear-gradient(90deg,#caa460,#f2dfb3)}
.cfg-rm-portal .cfg-rm-portal-stat strong{font-size:39px;line-height:1.16;letter-spacing:-.055em;color:#0d3046}
.cfg-rm-portal .cfg-rm-portal-stat>span{font-size:12px;color:#567386;font-weight:700}
.cfg-rm-portal .cfg-rm-portal-section-title{padding:20px 40px 18px}.cfg-rm-portal .cfg-rm-portal-section-title h2{font-size:27px;letter-spacing:-.035em}.cfg-rm-portal .cfg-rm-portal-section-title span{color:#9e7539}
.cfg-rm-portal .cfg-rm-frontend-navigation{padding:15px 40px;background:#fff;border-top:1px solid #e3ebef;border-bottom:1px solid #e3ebef;gap:6px;position:relative}
.cfg-rm-portal .cfg-rm-frontend-navigation a{font-size:12px;padding:11px 15px;border-radius:9px;color:#456176;font-weight:700;transition:background .15s,color .15s}.cfg-rm-portal .cfg-rm-frontend-navigation a:hover{background:#eff5f7;color:#123447}.cfg-rm-portal .cfg-rm-frontend-navigation a.is-current{background:#102d42!important;color:white!important;box-shadow:0 5px 12px rgba(16,45,66,.15)}
.cfg-rm-portal .cfg-rm-portal-modules{gap:16px;padding:0 40px 40px;grid-template-columns:repeat(3,minmax(0,1fr))}
.cfg-rm-portal .cfg-rm-portal-module{padding:28px 27px;min-height:225px;border-radius:15px;border:1px solid #dce7ed;box-shadow:0 5px 19px rgba(11,38,53,.03);transition:transform .2s,box-shadow .2s,border-color .2s;position:relative}
.cfg-rm-portal .cfg-rm-portal-module:before{content:"";position:absolute;top:27px;right:24px;width:30px;height:30px;border-radius:9px;background:#eaf5f2;border:1px solid #d7eee7}
.cfg-rm-portal .cfg-rm-portal-module:hover{transform:translateY(-4px);box-shadow:0 17px 35px rgba(11,38,53,.085);border-color:#b2d7d0}
.cfg-rm-portal .cfg-rm-portal-num{font-size:11px;color:#ae8648}.cfg-rm-portal .cfg-rm-portal-module h3{font-size:19px;letter-spacing:-.03em;color:#163448!important;margin:20px 0 10px}.cfg-rm-portal .cfg-rm-portal-module p{font-size:13px;color:#688293;line-height:1.65}.cfg-rm-portal .cfg-rm-portal-module a{font-size:12px;color:#087d78;font-weight:800;border-top:1px solid #edf1f3;padding-top:16px;width:100%;margin-top:auto}
.cfg-rm-portal .cfg-rm-portal-bottom{margin:0 40px 35px;background:#f0f6f5;border:1px solid #d5e8e1;border-radius:14px;padding:21px 25px}
.cfg-rm-portal .cfg-rm-portal-footer{background:#fff;padding:24px 40px;color:#758b9b}
.cfg-rm-portal .cfg-rm-frontend-title{padding:29px 40px;background:#f8fafb}.cfg-rm-portal .cfg-rm-frontend-title h2{font-size:30px;letter-spacing:-.04em}.cfg-rm-portal .cfg-rm-frontend-module-body{padding:6px 40px 44px;background:#f8fafb}
.cfg-rm-portal .cfg-rm-frontend-module-body .card{box-shadow:0 6px 18px rgba(8,42,62,.05);border-radius:13px}
.cfg-rm-demo-workspace{padding:0 40px 45px}.cfg-rm-demo-toolbar{background:#ebf5f3;border:1px solid #d0e8e1;border-radius:14px;padding:17px 22px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.cfg-rm-demo-toolbar .cfg-rm-portal-tag{margin:0 0 4px;color:#0b766f}.cfg-rm-demo-toolbar p{margin:0;color:#50786e;font-size:12px;max-width:800px}
.cfg-demo-btn,.cfg-rm-demo-reset{font-family:inherit!important;cursor:pointer;padding:10px 14px;border-radius:9px;border:1px solid #cfdde3;background:#fff;color:#24495b;font-size:12px!important;font-weight:750!important;line-height:1.3!important;white-space:nowrap}.cfg-demo-btn:hover,.cfg-rm-demo-reset:hover{background:#f0f6f7}.cfg-demo-btn.cfg-demo-primary{background:#0a7774!important;border-color:#0a7774!important;color:white!important;box-shadow:0 4px 10px rgba(8,119,116,.14)}
.cfg-demo-top{background:white;border:1px solid #dde7eb;border-radius:15px 15px 0 0;padding:27px 27px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px}.cfg-demo-eyebrow{font-size:10px;font-weight:800;letter-spacing:.15em;color:#9d7a46}.cfg-demo-top h3{font-size:24px!important;letter-spacing:-.04em!important;color:#183448!important;margin:7px 0 5px!important}.cfg-demo-top p{color:#66808e!important;font-size:13px;margin:0}.cfg-demo-top-actions{display:flex;gap:8px;flex-wrap:wrap}
.cfg-demo-filter{background:#fff;border-left:1px solid #dde7eb;border-right:1px solid #dde7eb;padding:13px 27px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px;color:#738998;font-size:12px}.cfg-demo-filter input{width:330px;max-width:100%;border:1px solid #d1dfe5;border-radius:9px;padding:11px 13px;font-size:13px;background:#f9fbfc;color:#1d394c}
.cfg-demo-table-wrap{border:1px solid #dde7eb;border-radius:0 0 15px 15px;overflow:auto;background:white}.cfg-demo-table{border-collapse:collapse;width:100%;min-width:790px;font-size:12px!important;margin:0!important}.cfg-demo-table th{background:#f1f5f7;border-bottom:1px solid #dce7eb;text-align:left;padding:0;color:#476576;font-size:11px;white-space:nowrap}.cfg-demo-table th .cfg-demo-sort{background:none;border:0;color:inherit;font:inherit;cursor:pointer;text-align:left;display:block;padding:16px 16px;font-weight:800}.cfg-demo-table td{padding:14px 16px;border-bottom:1px solid #eaf0f3;color:#29485b;white-space:nowrap}.cfg-demo-table tbody tr:hover{background:#f7fbfb}.cfg-demo-table tr:last-child td{border-bottom:0}.cfg-demo-table .cfg-demo-row-actions{display:flex;gap:7px}.cfg-demo-btn.cfg-demo-edit,.cfg-demo-btn.cfg-demo-delete{padding:7px 10px}.cfg-demo-btn.cfg-demo-delete{color:#a54848;border-color:#f0d8d8}.cfg-demo-empty{text-align:center;padding:35px!important}
.cfg-demo-edit-panel{background:white;border:1px solid #d7e5e9;padding:25px;border-radius:14px;margin:0 0 18px;box-shadow:0 12px 30px rgba(7,45,54,.06)}.cfg-demo-form-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.cfg-demo-form-head h4{font-size:20px!important;margin:0!important;color:#163a4d}.cfg-demo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.cfg-demo-grid label span{display:block;font-size:12px;font-weight:700;color:#49687a;margin-bottom:7px}.cfg-demo-grid input{display:block;box-sizing:border-box;width:100%;border:1px solid #cbdce3;padding:12px 13px;border-radius:9px;background:#fff;font-size:13px;color:#173b51}.cfg-demo-grid input:focus{outline:2px solid rgba(11,140,134,.15);border-color:#0b8c86}.cfg-demo-form-footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;padding-top:6px}.cfg-demo-disclaimer{color:#778a98;font-size:11px;margin:16px 0 0}
.cfg-rm-portal .cfg-rm-portal-auth{background:#f8fafb}.cfg-rm-portal .cfg-rm-portal-auth h1{font-size:33px}
@media(max-width:1000px){.cfg-rm-portal .cfg-rm-portal-modules{grid-template-columns:repeat(2,1fr)}.cfg-demo-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.cfg-rm-portal{padding:0!important}.cfg-rm-portal .cfg-rm-portal-frame{border-radius:0}.cfg-rm-portal .cfg-rm-portal-header{padding:18px}.cfg-rm-portal .cfg-rm-portal-welcome{padding:28px 18px;min-height:unset}.cfg-rm-portal .cfg-rm-portal-account{margin-top:22px}.cfg-rm-portal .cfg-rm-portal-welcome h1{font-size:32px!important}.cfg-rm-portal .cfg-rm-portal-metrics{padding:16px;gap:9px}.cfg-rm-portal .cfg-rm-portal-stat{padding:17px 13px}.cfg-rm-portal .cfg-rm-portal-stat strong{font-size:30px}.cfg-rm-portal .cfg-rm-portal-section-title{padding:23px 18px 14px}.cfg-rm-portal .cfg-rm-portal-modules{padding:0 16px 25px;grid-template-columns:1fr}.cfg-rm-portal .cfg-rm-frontend-navigation{padding:12px 14px;overflow-x:auto;flex-wrap:nowrap}.cfg-rm-portal .cfg-rm-frontend-navigation a{white-space:nowrap}.cfg-rm-portal .cfg-rm-frontend-title{padding:23px 18px}.cfg-rm-demo-workspace{padding:0 14px 35px}.cfg-rm-demo-toolbar,.cfg-demo-top{flex-direction:column;align-items:flex-start}.cfg-demo-filter{padding:13px;flex-wrap:wrap}.cfg-demo-filter input{width:100%}.cfg-demo-grid{grid-template-columns:1fr}.cfg-rm-portal .cfg-rm-portal-bottom{margin:0 16px 25px}.cfg-rm-portal .cfg-rm-portal-footer{padding:20px 18px}}

/* v0.6.4: clearly distinguished real isolated staging workspace */
.cfg-rm-staging-banner{padding:13px 32px;background:#fdf1d9;color:#704815;border-bottom:1px solid #e7cc8e;font-size:13px;font-weight:800;letter-spacing:.03em}
.cfg-rm-demo-locked{margin:25px 32px;max-width:880px;border:1px solid #dce3ea;border-radius:15px;background:#f6f9fb;padding:30px}
.cfg-rm-demo-locked h2{font-size:25px;color:#122d42;margin:14px 0}
.cfg-rm-frontend-module-body{overflow-x:auto}

/* v0.6.7 — complete clickable module cards */
.cfg-rm-portal .cfg-rm-portal-module-link{display:flex;flex-direction:column;align-items:flex-start;text-decoration:none!important;color:inherit!important;cursor:pointer;width:100%;height:100%;position:relative}
.cfg-rm-portal .cfg-rm-portal-module-link:hover,.cfg-rm-portal .cfg-rm-portal-module-link:focus-visible{border-color:#0b8c86;box-shadow:0 17px 35px rgba(11,38,53,.12);transform:translateY(-3px)}
.cfg-rm-portal .cfg-rm-portal-module-link h3,.cfg-rm-portal .cfg-rm-portal-module-link p{text-decoration:none}
.cfg-rm-portal .cfg-rm-module-open{font-size:12px;color:#087d78;font-weight:800;border-top:1px solid #edf1f3;padding-top:16px;width:100%;margin-top:auto}
.cfg-rm-portal .cfg-rm-portal-module-link:focus-visible{outline:3px solid #d9b877;outline-offset:2px}
