/* ============================================================
   STEP TO TOPPERS — GK/GS additive UI integration v14.1
   STRICT RULE: this file styles GK/GS pages only.
   It deliberately does not reposition the shared header/sidebar/footer.
   All colors are inherited from the existing tenant theme variables.
   ============================================================ */
:root{
  --app-bg:#f1f4fa;
  --card:#fff;
  --text:#171a21;
  --muted:#717988;
  --border:#dfe4ec;
  --brand-blue:#007bff;
  --brand-blue-dark:#0013b3;
  --blue-grad-horz:linear-gradient(to right,#0084ff,#0013b3);
  --blue-grad-vert:linear-gradient(to bottom,#0084ff,#0013b3);
}
*{box-sizing:border-box;margin:0;padding:0;font-family:Roboto,sans-serif;-webkit-tap-highlight-color:transparent}
body.page-gkgs,body.page-gkgs-tests{background:#e8ebf1;display:flex;justify-content:center;align-items:flex-start;color:var(--text);min-height:100vh}
.page-gkgs .app-container,.page-gkgs-tests .app-container{width:100%;max-width:480px;min-height:100vh;background:var(--app-bg);position:relative;padding-top:75px;padding-bottom:82px;overflow-x:hidden;border-left:1px solid #e0e4eb;border-right:1px solid #e0e4eb}
.page-gkgs main,.page-gkgs-tests main{padding:20px 16px 26px}

/* Page title: same language as Tests title. */
.gkgs-page-title{display:flex;align-items:center;gap:9px;margin:4px 0 16px;font-size:19px;font-weight:800;letter-spacing:-.3px;flex-wrap:wrap}
.gkgs-page-title::before{content:'';width:5px;height:27px;border-radius:6px;background:var(--blue-grad-vert);flex:0 0 auto}
.gkgs-page-title .gkgs-title-text{background:var(--blue-grad-horz);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.gkgs-page-badge{display:inline-flex;align-items:center;height:30px;padding:0 11px;border:1px solid #d5d9e1;border-radius:8px;background:#fff;color:#596170;font-size:12px;font-weight:700;white-space:nowrap}
.gkgs-subtitle{font-size:9px;line-height:1.55;color:var(--muted);font-weight:650;margin:-8px 0 15px 14px}

/* Master hero: same gradient/card geometry used by the dashboard welcome card. */
.gkgs-hero{min-height:145px;background:var(--blue-grad-horz);border:2px solid #fff;border-radius:11px;color:#fff;padding:18px;display:grid;grid-template-columns:minmax(0,1fr) 82px;align-items:center;gap:13px;box-shadow:0 6px 16px rgba(15,23,42,.17);position:relative;overflow:hidden}
.gkgs-hero::after{content:'';position:absolute;right:-42px;top:-60px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.09)}
.gkgs-hero-copy{position:relative;z-index:2;min-width:0}
.gkgs-hero-copy small{font-size:8.5px;font-weight:800;letter-spacing:.45px;opacity:.9;text-transform:uppercase}
.gkgs-hero-copy h1{font-size:20px;line-height:1.22;margin:4px 0 6px;font-weight:900}
.gkgs-hero-copy p{font-size:8.5px;line-height:1.55;font-weight:650;opacity:.94;max-width:330px}
.gkgs-hero-tags{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px}
.gkgs-hero-tag{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:6px;border:1px solid rgba(255,255,255,.36);background:rgba(255,255,255,.13);font-size:7.5px;font-weight:850;line-height:1.1;white-space:nowrap}
.gkgs-hero-icon{width:70px;height:70px;border-radius:16px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.28);display:grid;place-items:center;color:#fff;font-size:29px;position:relative;z-index:2;justify-self:end}

/* Section heading copied from Dashboard language. */
.gkgs-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:19px 3px 9px}
.gkgs-section-head h2{font-size:12.5px;font-weight:900;text-transform:uppercase;display:flex;align-items:center;gap:7px}
.gkgs-section-head h2::before{content:'';width:4px;height:17px;border-radius:4px;background:var(--blue-grad-vert)}
.gkgs-section-head a{font-size:9px;font-weight:800;text-decoration:none;color:var(--brand-blue);white-space:nowrap}

/* Four master tracks. White card/radius/shadow/icon treatment matches Dashboard. */
.gkgs-track-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gkgs-track-card{min-width:0;min-height:154px;background:#fff;border:1px solid var(--border);border-radius:9px;box-shadow:0 3px 8px rgba(15,23,42,.04);text-decoration:none;color:var(--text);padding:11px;display:flex;flex-direction:column;position:relative;overflow:hidden}
.gkgs-track-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.gkgs-track-number{font-size:8px;font-weight:900;color:var(--brand-blue);line-height:1.2}
.gkgs-track-icon{width:38px;height:38px;border-radius:9px;background:color-mix(in srgb,var(--theme-accent) 10%,#fff);color:var(--brand-blue);display:grid;place-items:center;font-size:16px;flex:0 0 38px}
.gkgs-track-card h3{font-size:11px;line-height:1.35;font-weight:900;margin-top:8px}
.gkgs-track-card p{font-size:7.5px;line-height:1.5;color:var(--muted);font-weight:650;margin-top:4px;flex:1}
.gkgs-track-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;color:var(--brand-blue);font-size:7.5px;font-weight:850}
.gkgs-track-card:active{transform:scale(.99)}

/* Daily challenge: same dashboard practice card language. */
.gkgs-challenge{background:#fff;border:1px solid var(--border);border-radius:10px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:12px;align-items:center;box-shadow:0 3px 9px rgba(15,23,42,.04)}
.gkgs-challenge h3{font-size:13px;line-height:1.4;font-weight:900}
.gkgs-challenge p{font-size:8px;color:var(--muted);margin-top:3px;line-height:1.45}
.gkgs-challenge-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px;font-size:7px;color:#6f7786;font-weight:750}
.gkgs-challenge-meta i{color:var(--brand-blue);margin-right:2px}
.gkgs-challenge-side{min-height:116px;border-radius:9px;background:color-mix(in srgb,var(--theme-accent) 9%,#fff);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:9px}
.gkgs-challenge-bubble{width:48px;height:48px;border-radius:50%;background:var(--blue-grad-vert);color:#fff;display:grid;place-items:center;font-size:19px;box-shadow:0 4px 10px rgba(15,23,42,.14)}
.gkgs-primary-btn{width:100%;padding:0 8px;background:var(--blue-grad-vert);border:2px solid #fff;box-shadow:0 4px 7px rgba(0,0,0,.15);color:#fff;text-decoration:none;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;height:45px!important;min-height:45px!important;max-height:45px!important;border-radius:8px!important;font-size:10.5px!important;line-height:1.2!important}

/* Track test library: reuse the actual Tests page visual grammar. */
.gkgs-back-link{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:var(--brand-blue);font-size:9px;font-weight:850;margin-bottom:7px}
.gkgs-series-tabs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}
.gkgs-library-tab{width:100%;min-width:0;padding:0 14px;border:1px solid #d5d9e1;background:#fff;color:#646b79;text-decoration:none;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;transition:.18s ease;height:45px!important;min-height:45px!important;max-height:45px!important;border-radius:8px!important;font-size:12.5px!important;line-height:1.2!important}
.gkgs-library-tab:hover{border-color:var(--brand-blue);color:var(--brand-blue)}
.gkgs-library-tab.active{background:var(--blue-grad-vert);color:#fff;border:2px solid #fff;box-shadow:0 6px 9px rgba(15,23,42,.22);transform:translateY(-1px)}

.gkgs-subject-panel{background:#fff;border:1px solid #d9e1eb;border-radius:14px;padding:12px 10px 10px;box-shadow:0 5px 12px rgba(15,23,42,.04);margin-bottom:14px}
.gkgs-subject-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 4px 10px}
.gkgs-subject-title{font-size:13px;font-weight:900;color:#536274;display:flex;align-items:center;gap:8px}
.gkgs-subject-title i{color:var(--brand-blue);font-size:12px}
.gkgs-subject-helper{font-size:9px;font-weight:700;color:#8a93a3}
.gkgs-subject-options{display:grid;gap:10px}
.gkgs-subject-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px;border:1px solid #d7dfeb;background:#fff;color:#273244;text-decoration:none;transition:transform .14s ease,border-color .17s ease,box-shadow .17s ease,background .17s ease;height:52px!important;min-height:52px!important;max-height:52px!important;border-radius:11px!important;font-size:13px!important;line-height:1.2!important}
.gkgs-subject-option:hover{border-color:color-mix(in srgb,var(--brand-blue) 45%,#d7dfeb)}
.gkgs-subject-option.active{border-color:var(--brand-blue);background:color-mix(in srgb,var(--theme-accent) 4%,#fff);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand-blue) 8%,transparent)}
.gkgs-subject-main{display:flex;align-items:center;gap:10px;min-width:0}
.gkgs-subject-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:color-mix(in srgb,var(--theme-accent) 10%,#fff);color:var(--brand-blue);font-size:11px;flex:0 0 30px}
.gkgs-subject-copy{min-width:0}.gkgs-subject-copy b{display:block;font-size:12px;font-weight:800;color:#344255;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gkgs-subject-copy span{display:block;font-size:8px;color:#8a93a3;margin-top:2px;font-weight:700}
.gkgs-subject-arrow{color:#94a3b8;font-size:9px}

.gkgs-info-note{background:#fff;border:1px solid #d9e1eb;border-radius:10px;padding:10px 11px;margin-bottom:12px;color:#6f7b8c;font-size:8.5px;font-weight:650;line-height:1.55}
.gkgs-test-grid{display:grid;gap:0}
.gkgs-test-card{background:#fff;border:1px solid #dce3ed;border-radius:14px;padding:14px;margin-bottom:14px;box-shadow:0 6px 18px rgba(15,23,42,.06)}
.gkgs-test-top{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:12px}
.gkgs-test-no{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:var(--blue-grad-vert);color:#fff;font-size:13px;font-weight:900;border:2px solid #fff;box-shadow:0 4px 8px rgba(15,23,42,.20)}
.gkgs-test-copy{min-width:0;text-align:left}.gkgs-test-copy h3{margin:0;font-size:15px;line-height:1.25;font-weight:900;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gkgs-test-copy p{margin-top:4px;font-size:10px;line-height:1.25;font-weight:700;color:var(--brand-blue);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gkgs-status{justify-self:end;display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 9px;border-radius:6px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.02em;text-decoration:none;white-space:nowrap;border:1px solid transparent}
.gkgs-status.free,.gkgs-status.ready,.gkgs-status.best-pass{background:#dcfce7;color:#15803d;border-color:#b7efca}.gkgs-status.best-fail{background:#fff7ed;color:#c2410c;border-color:#fed7aa}.gkgs-status.locked{background:#fef3c7;color:#b45309;border-color:#f8df91}
.gkgs-test-meta{min-height:58px;border-radius:10px;background:#f8fafc;display:grid;grid-template-columns:repeat(3,1fr);align-items:center;margin-bottom:12px;overflow:hidden}
.gkgs-test-meta-item{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:7px 4px;position:relative}
.gkgs-test-meta-item:not(:last-child)::after{content:'';position:absolute;right:0;top:18%;height:64%;width:1px;background:#dfe5ed}
.gkgs-test-meta-item i{font-size:12px;color:var(--brand-blue);margin-bottom:3px}.gkgs-test-meta-item b{font-size:10.5px;line-height:1.15;font-weight:900;color:#536078}.gkgs-test-meta-item span{margin-top:2px;font-size:6.8px;line-height:1.1;font-weight:800;color:#8a94a5;letter-spacing:.03em}
.gkgs-test-actions{display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:9px}
.gkgs-test-btn{display:flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;font-weight:900;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;height:45px!important;min-height:45px!important;max-height:45px!important;border-radius:8px!important;font-size:12px!important;line-height:1.2!important;text-align:center;padding:0 10px}
.gkgs-test-btn i{font-size:10px}.gkgs-test-btn.outline{background:#fff;border:1.5px solid var(--brand-blue);color:var(--brand-blue)}.gkgs-test-btn.start{background:var(--blue-grad-vert);color:#fff;border:2px solid #fff;box-shadow:0 5px 9px rgba(15,23,42,.18);text-transform:uppercase;letter-spacing:.15px}.gkgs-test-btn.locked{background:#f8fafc;border:1px solid #d7dee8;color:#94a3b8;pointer-events:none}.gkgs-test-btn:active{transform:scale(.985)}
.gkgs-empty{background:#fff;border:1px dashed var(--border);border-radius:10px;padding:30px 18px;text-align:center;color:var(--muted);font-size:10px;font-weight:650;line-height:1.65}.gkgs-empty-icon{width:58px;height:58px;border-radius:12px;background:color-mix(in srgb,var(--theme-accent) 8%,#fff);border:1px solid color-mix(in srgb,var(--theme-accent) 18%,#e5e7eb);display:grid;place-items:center;margin:0 auto 12px;color:var(--brand-blue);font-size:24px}

@media(max-width:380px){
  .page-gkgs main,.page-gkgs-tests main{padding-left:12px;padding-right:12px}
  .gkgs-page-title{font-size:18px}.gkgs-page-badge{height:28px;padding:0 9px;font-size:11px}
  .gkgs-hero{grid-template-columns:minmax(0,1fr) 68px;padding:15px 13px}.gkgs-hero-copy h1{font-size:18px}.gkgs-hero-icon{width:60px;height:60px;font-size:24px}
  .gkgs-track-grid{gap:6px}.gkgs-track-card{padding:10px;min-height:150px}.gkgs-track-icon{width:34px;height:34px;flex-basis:34px}
  .gkgs-challenge{grid-template-columns:minmax(0,1fr) 92px}.gkgs-challenge-side{min-height:108px;padding:7px}.gkgs-primary-btn{font-size:9.5px!important;padding:0 4px}
  .gkgs-test-card{padding:12px}.gkgs-test-top{grid-template-columns:38px minmax(0,1fr) auto;gap:8px}.gkgs-test-no{width:34px;height:34px}.gkgs-test-copy h3{font-size:14px}.gkgs-status{padding:0 7px;font-size:7px}.gkgs-test-actions{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:7px}.gkgs-test-btn{font-size:11.5px!important;padding:0 7px}
}

/* Desktop: components expand inside the EXISTING software shell only.
   No app-container/header/sidebar positioning is overridden here. */
@media(min-width:901px) and (hover:hover) and (pointer:fine){
  .page-gkgs main,.page-gkgs-tests main{max-width:1320px!important}
  .gkgs-page-title{font-size:24px;margin-bottom:18px}.gkgs-page-badge{font-size:12px}
  .gkgs-subtitle{font-size:10px;margin-left:14px}
  .gkgs-hero{min-height:190px;border-radius:18px;padding:24px;grid-template-columns:minmax(0,1fr) 120px;box-shadow:0 10px 30px rgba(15,23,42,.075)}
  .gkgs-hero-copy small{font-size:9px}.gkgs-hero-copy h1{font-size:28px}.gkgs-hero-copy p{font-size:11px;max-width:650px}.gkgs-hero-tag{font-size:9px;padding:6px 10px}.gkgs-hero-icon{width:106px;height:106px;border-radius:20px;font-size:42px}
  .gkgs-section-head{margin:22px 3px 11px}.gkgs-section-head h2{font-size:14px}.gkgs-section-head a{font-size:10px}
  .gkgs-track-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gkgs-track-card{min-height:164px;border-radius:15px;padding:16px}.gkgs-track-card h3{font-size:15px}.gkgs-track-card p{font-size:10px}.gkgs-track-foot{font-size:9px}.gkgs-track-icon{width:44px;height:44px;border-radius:12px;font-size:18px}
  .gkgs-challenge{grid-template-columns:minmax(0,1fr) 180px;border-radius:16px;padding:18px}.gkgs-challenge h3{font-size:17px}.gkgs-challenge p{font-size:10px}.gkgs-challenge-meta{font-size:9px}.gkgs-challenge-side{min-height:132px;border-radius:13px}.gkgs-primary-btn{max-width:150px;font-size:11.5px!important}
  .gkgs-series-tabs{max-width:620px}.gkgs-subject-options{grid-template-columns:repeat(2,minmax(0,1fr))}.gkgs-test-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.gkgs-test-card{margin:0;border-radius:17px;padding:15px;height:100%}.gkgs-test-copy h3{font-size:15px}.gkgs-info-note{font-size:9.5px;border-radius:12px}.gkgs-empty{grid-column:1/-1;border-radius:14px}
}
