#kf65-main-button,#kf65-lab-link{display:block;position:relative;z-index:50;box-sizing:border-box;margin:12px auto 18px;width:min(95%,960px);padding:16px 20px;border:1px solid #4eb9d7;border-radius:12px;background:linear-gradient(105deg,#0a3446,#14364e);font:800 15px system-ui;color:#e5fbff;letter-spacing:.09em;cursor:pointer;box-shadow:0 5px 28px #0006}#kf65-main-button:hover,#kf65-lab-link:hover{background:#1b5971}#kf65-lab-link{width:calc(100% - 20px);margin:10px}
#kf65-overlay{position:fixed;inset:0;z-index:2147483645;background:#020911ef;color:#e9f5fa;font-family:system-ui,Arial,sans-serif;display:flex;align-items:center;justify-content:center;padding:10px;box-sizing:border-box}#kf65-overlay *{box-sizing:border-box}#kf65-overlay button{cursor:pointer;color:inherit;font-family:inherit}#kf65-overlay .kf65-window{width:min(1520px,98vw);height:min(900px,96vh);background:linear-gradient(135deg,#071927,#0b1c2a);border:1px solid #3e6374;border-radius:18px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 25px 80px #000c}
#kf65-overlay .kf65-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 24px;border-bottom:1px solid #315063}#kf65-overlay .kf65-head small{color:#84b6c8;font-size:11px;letter-spacing:.16em}#kf65-overlay .kf65-head h2{margin:3px 0;font-size:clamp(22px,2.6vw,36px);letter-spacing:.05em}#kf65-overlay .kf65-head h2 span{color:#efb86b}#kf65-overlay .kf65-head p{margin:0;color:#9bb8c6;font-size:12px}#kf65-close{border:1px solid #487084;background:#133448;padding:12px 18px;border-radius:9px;font-weight:bold}
#kf65-overlay .kf65-body{display:grid;grid-template-columns:minmax(180px,230px) minmax(330px,1fr) minmax(320px,390px);min-height:0;flex:1}#kf65-overlay .kf65-list{padding:13px;overflow:auto;border-right:1px solid #28475b;display:flex;flex-direction:column;gap:9px}#kf65-overlay .kf65-list button{padding:12px;border:1px solid #24445b;background:#0d2537;text-align:left;border-radius:10px;display:flex;align-items:center;gap:10px}#kf65-overlay .kf65-list button.on,#kf65-overlay .kf65-list button:hover{border-color:#eca955;background:#143850}#kf65-overlay .kf65-list strong{display:block;font-size:12px}#kf65-overlay .kf65-list small{display:block;font-size:10px;color:#9bb4c3;margin-top:4px;line-height:1.4}#kf65-overlay .kf65-swatch{display:inline-block;width:9px;height:42px;border-radius:12px;flex:none}
#kf65-overlay .kf65-center{display:flex;flex-direction:column;min-width:0;min-height:0;padding:16px;gap:10px}#kf65-overlay .kf65-view{min-height:300px;flex:1;position:relative;border:1px solid #2c4f65;border-radius:13px;overflow:hidden;background:radial-gradient(ellipse at 50% 70%,#244356,#091b29 70%)}#kf65-canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}#kf65-canvas:active{cursor:grabbing}#kf65-overlay #kf65-error{position:absolute;top:14px;left:14px;color:#ffc28a;font-size:13px;pointer-events:none}#kf65-overlay .kf65-view-controls{position:absolute;bottom:0;left:0;right:0;background:#081927da;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;letter-spacing:.05em}#kf65-reset{padding:8px 10px;border:1px solid #658799;background:#203a4b;border-radius:7px}#kf65-overlay .kf65-identity{display:flex;justify-content:space-between;gap:10px;align-items:center}#kf65-overlay .kf65-identity strong{font-size:15px}#kf65-overlay .kf65-identity span{font-size:11px;color:#f3c888}#kf65-overlay .kf65-disclaimer{color:#a6c0cb;font-size:11px;line-height:1.5;margin:0 0 4px}
#kf65-overlay .kf65-detail{padding:12px;min-height:0;overflow:auto;border-left:1px solid #28475b;display:flex;flex-direction:column}#kf65-overlay .kf65-tabs{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:12px;position:sticky;top:-12px;background:#0a1d2b;z-index:1}#kf65-overlay .kf65-tabs button{border:1px solid #30546d;background:#102c40;border-radius:6px;padding:9px 10px;font-size:10px;font-weight:bold}#kf65-overlay .kf65-tabs button.on{border-color:#edb66c;color:#f5cf8f;background:#294153}#kf65-overlay .kf65-stat{display:flex;align-items:start;justify-content:space-between;gap:12px;padding:12px 4px;border-bottom:1px solid #254255;font-size:12px}#kf65-overlay .kf65-stat>span{max-width:48%;color:#a7c2cf;line-height:1.35}#kf65-overlay .kf65-stat small{display:block;margin-top:5px;font-size:10px;color:#778f9c}#kf65-overlay .kf65-stat>div{text-align:right;max-width:54%}#kf65-overlay .kf65-stat strong{font-size:12px;overflow-wrap:anywhere}#kf65-overlay .kf65-stat em{display:block;color:#e0ad71;font-size:10px;font-style:normal;margin-top:5px}#kf65-overlay .kf65-foot{font-size:10px;color:#879dac;padding:13px 5px}#kf65-overlay .kf65-links{display:flex;flex-wrap:wrap;gap:12px;padding:12px 5px}#kf65-overlay .kf65-links a{color:#a4e4ff}
@media(max-width:1000px){#kf65-overlay .kf65-body{grid-template-columns:145px 1fr}#kf65-overlay .kf65-detail{grid-column:1/-1;border-left:0;border-top:1px solid #28475b;max-height:260px}#kf65-overlay .kf65-list{grid-row:1}#kf65-overlay .kf65-center{min-height:300px}#kf65-overlay .kf65-view{min-height:240px}}@media(max-width:620px){#kf65-overlay .kf65-head{padding:10px}#kf65-overlay .kf65-body{display:flex;flex-direction:column;overflow:auto}#kf65-overlay .kf65-list{flex:none;flex-direction:row;min-height:86px;overflow:auto;border-right:0;border-bottom:1px solid #28475b}#kf65-overlay .kf65-list button{min-width:145px}#kf65-overlay .kf65-center{min-height:330px}#kf65-overlay .kf65-detail{max-height:none;flex:none}#kf65-overlay .kf65-identity{display:block}}
/* The race setup is a centered flex row: float the catalogue entry independently
   so it never pushes the existing Racing or Fiesta start panels sideways. */
#kf39Setup>#kf65-main-button{position:absolute;top:66px;right:clamp(10px,3vw,45px);width:auto;max-width:calc(100% - 20px);margin:0;padding:11px 17px;font-size:12px;z-index:12}
@media(max-width:650px){#kf39Setup>#kf65-main-button{top:62px;right:10px;font-size:10px;padding:8px}}
