:root{
  --tonex-bg:#f4f7fb;
  --tonex-surface:#ffffff;
  --tonex-surface-2:#eef4ff;
  --tonex-border:#d9e3f0;
  --tonex-text:#0f172a;
  --tonex-muted:#475569;
  --tonex-blue:#2351d8;
  --tonex-blue-2:#38a8ee;
  --tonex-blue-3:#17358c;
  --tonex-shadow:0 14px 34px rgba(15,23,42,.08);
  --tonex-radius:20px;
  --tonex-radius-lg:28px;
  --tonex-shell:1180px;
}
html{box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;scroll-behavior:smooth}
*,*:before,*:after{box-sizing:inherit}
body{margin:0;background:linear-gradient(180deg,#f7faff 0%,#eff5fb 100%);color:var(--tonex-text);font-family:Inter,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.65}
a{color:var(--tonex-blue);text-decoration:none}
a:hover{text-decoration:none;color:var(--tonex-blue-3)}
img{max-width:100%;height:auto}
.tonex-shell{width:min(var(--tonex-shell),calc(100% - 32px));margin:0 auto}
.tonex-site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid rgba(217,227,240,.9)}
.tonex-header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0}
.site-branding{display:flex;flex-direction:column;gap:2px}
.site-logo img{max-height:58px;width:auto}
.site-title{font-weight:800;font-size:1.25rem;color:var(--tonex-text)}
.site-tagline{margin:0;color:var(--tonex-muted);font-size:.95rem}
.tonex-menu,.tonex-footer-menu{list-style:none;margin:0;padding:0;display:flex;gap:14px;flex-wrap:wrap}
.tonex-menu a,.tonex-footer-menu a{display:inline-flex;align-items:center;padding:10px 14px;border-radius:999px;color:var(--tonex-text);font-weight:600}
.tonex-menu a:hover,.tonex-menu a.is-current-link{background:var(--tonex-surface-2);color:var(--tonex-blue-3)}
.tonex-main{padding:34px 0 56px}
.tonex-card,.tonex-page-card{background:var(--tonex-surface);border:1px solid var(--tonex-border);border-radius:var(--tonex-radius);box-shadow:var(--tonex-shadow)}
.tonex-page-card,.tonex-post-card{padding:28px}
.entry-title{margin:0 0 18px;font-size:clamp(2rem,4vw,3rem);line-height:1.08;letter-spacing:-.03em}
.entry-content>:first-child{margin-top:0}
.entry-content>:last-child{margin-bottom:0}
.tonex-hero{padding:22px 0 0}
.tonex-hero-inner{padding:52px;border-radius:var(--tonex-radius-lg);background:linear-gradient(135deg,#0f172a 0%,#1d4ed8 54%,#38bdf8 100%);box-shadow:0 28px 64px rgba(15,23,42,.18);color:#fff;position:relative;overflow:hidden}
.tonex-hero-inner:after{content:"";position:absolute;right:-120px;bottom:-120px;width:320px;height:320px;background:radial-gradient(circle,rgba(255,255,255,.16),rgba(255,255,255,0) 70%);border-radius:50%}
.tonex-eyebrow{display:inline-flex;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.14);font-size:.78rem;letter-spacing:.09em;text-transform:uppercase;font-weight:800}
.tonex-hero h1{margin:14px 0 10px;font-size:clamp(2.4rem,5vw,4.4rem);line-height:1.02;color:#fff}
.tonex-hero p{max-width:780px;font-size:1.06rem;color:#dbeafe;margin:0}
.tonex-hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px}
.tonex-button,
button,
input[type=submit],
.wp-block-button__link,
.tonex-lms-button,
.tonex-lms-button-secondary,
.tonex-lms-dashboard-edit a,
.tonex-lms-box a.button,
.tonex-lms-box .button,
.tonex-lms-dashboard .tonex-lms-certificate-actions a{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:14px;border:1px solid transparent;background:linear-gradient(135deg,var(--tonex-blue) 0%,#315efb 100%);color:#fff!important;font-weight:700;box-shadow:0 12px 26px rgba(35,81,216,.18);transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;text-decoration:none;
}
.tonex-button:hover,
button:hover,
input[type=submit]:hover,
.wp-block-button__link:hover,
.tonex-lms-button:hover,
.tonex-lms-button-secondary:hover,
.tonex-lms-dashboard-edit a:hover,
.tonex-lms-box a.button:hover,
.tonex-lms-box .button:hover{transform:translateY(-1px);box-shadow:0 16px 30px rgba(35,81,216,.22);opacity:.98}
.tonex-button-secondary{background:#fff;color:var(--tonex-text)!important;border-color:var(--tonex-border);box-shadow:0 10px 24px rgba(15,23,42,.08)}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=url],input[type=search],textarea,select{width:100%;padding:14px 15px;border:1px solid var(--tonex-border);border-radius:14px;background:#fff;color:var(--tonex-text);font:inherit;box-shadow:inset 0 1px 2px rgba(15,23,42,.03)}
input:focus,textarea:focus,select:focus{outline:none;border-color:#7cb2ff;box-shadow:0 0 0 4px rgba(59,130,246,.12)}
.tonex-site-footer{margin-top:48px;background:#0f172a;color:#dbeafe}
.tonex-footer-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;padding:36px 0 24px}
.tonex-site-footer h3{color:#fff;margin-top:0}
.tonex-footer-bottom{padding:0 0 20px;border-top:1px solid rgba(255,255,255,.1)}
.tonex-footer-bottom p{margin:14px 0 0;color:#cbd5e1}
.tonex-lms-page .tonex-page-card,.tonex-lms-dashboard-page .tonex-page-card{padding:0;background:transparent;border:0;box-shadow:none}
.tonex-lms-dashboard{max-width:1200px!important;margin:0 auto!important}
.tonex-lms-dashboard-shell{gap:24px!important}
.tonex-lms-dashboard-hero{border-radius:30px!important;box-shadow:0 30px 64px rgba(15,23,42,.18)!important;padding:36px 32px 28px!important}
.tonex-lms-dashboard-kicker{font-size:.78rem!important;letter-spacing:.08em!important}
.tonex-lms-dashboard-hero h2{font-size:clamp(2.6rem,5vw,4rem)!important;letter-spacing:-.04em}
.tonex-lms-dashboard-name{font-size:1.9rem!important;font-weight:700!important}
.tonex-lms-dashboard-sub{font-size:1.05rem!important;max-width:760px!important}
.tonex-lms-dashboard-stats > div,.tonex-lms-dashboard-stat,.tonex-lms-dashboard-stats .tonex-card{background:#fff;border:1px solid var(--tonex-border);border-radius:22px;box-shadow:var(--tonex-shadow);padding:20px}
.tonex-lms-dashboard-heading h3{font-size:clamp(2rem,4vw,3rem)!important;letter-spacing:-.03em}
.tonex-lms-dashboard-course{border-radius:22px!important;border:1px solid var(--tonex-border)!important;box-shadow:var(--tonex-shadow)!important;overflow:hidden}
.tonex-lms-course-toggle{padding:18px 22px!important;font-size:1.15rem!important}
.tonex-lms-course-title{font-weight:700!important}
.tonex-lms-course-panel{padding:0 22px 22px 54px!important;background:linear-gradient(180deg,#fff,#fbfdff)}
.tonex-lms-dashboard-exams{padding-left:12px}
.tonex-lms-box,
.tonex-lms-certificate-shell,
.tonex-lms-course-shell,
.tonex-lms-login-shell,
.tonex-lms-profile-shell,
.tonex-lms-result-shell,
.tonex-lms-review-shell,
.tonex-lms-rules-shell,
.tonex-lms-submit-shell{background:var(--tonex-surface);border:1px solid var(--tonex-border);border-radius:24px;box-shadow:var(--tonex-shadow)}
.tonex-lms-box{padding:24px}
.tonex-lms-form-grid{gap:18px!important}
.tonex-lms-certificate-shell{padding:26px!important}
.tonex-lms-certificate{border-radius:10px!important;box-shadow:0 14px 28px rgba(15,23,42,.1)!important}
.tonex-lms-course-meta,.tonex-lms-course-rules,.tonex-lms-exam-meta-list{color:var(--tonex-muted)}
#tonex-lms-exam-form{background:#fff;border:1px solid var(--tonex-border);border-radius:26px;box-shadow:var(--tonex-shadow);padding:18px}
.tonex-lms-question-stage{border-radius:22px!important;background:linear-gradient(180deg,#ffffff,#f8fbff)!important;border:1px solid var(--tonex-border)!important}
.tonex-lms-question-slide{border-radius:16px}
.tonex-lms-rules-modal .tonex-lms-modal-content,
.tonex-lms-modal .tonex-lms-modal-content{border-radius:22px!important;border:1px solid var(--tonex-border)!important;box-shadow:0 28px 64px rgba(15,23,42,.2)!important}
.tonex-lms-live-warning-card,.tonex-lms-review-item,.tonex-lms-submit-status-card{border-radius:18px!important}
.tonex-lms-login-form,
.tonex-lms-profile-form{display:grid;gap:16px}
.tonex-lms-login-shell,.tonex-lms-profile-shell{padding:28px}
.tonex-center-card{text-align:center;padding:48px}
@media (max-width:960px){
  .tonex-header-inner{flex-direction:column;align-items:flex-start}
  .tonex-footer-grid{grid-template-columns:1fr}
  .tonex-hero-inner{padding:36px 24px}
}
@media (max-width:720px){
  .tonex-shell{width:min(var(--tonex-shell),calc(100% - 20px))}
  .tonex-main{padding-top:22px}
  .tonex-page-card,.tonex-post-card{padding:22px}
  .tonex-lms-dashboard-hero{padding:28px 20px!important}
  .tonex-lms-dashboard-stats{grid-template-columns:1fr 1fr!important}
}

/* Customizer controlled enterprise theme refinements */
body.tonex-static-header .tonex-site-header{position:relative;top:auto}
body.tonex-header-soft .tonex-site-header{background:linear-gradient(180deg,#f8fbff,#ffffff)}
body.tonex-header-compact .tonex-header-inner{padding:8px 0}
body.tonex-header-footer-dark .tonex-site-header{background:#0f172a;border-bottom:1px solid rgba(255,255,255,.1);box-shadow:0 14px 34px rgba(15,23,42,.16);backdrop-filter:none}
body.tonex-header-navy-gradient .tonex-site-header{background:linear-gradient(135deg,#0f172a 0%,#17358c 56%,#2351d8 100%);border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 14px 34px rgba(15,23,42,.16);backdrop-filter:none}
body.tonex-header-royal-blue .tonex-site-header{background:linear-gradient(135deg,#17358c 0%,#2351d8 100%);border-bottom:1px solid rgba(255,255,255,.14);box-shadow:0 14px 34px rgba(35,81,216,.18);backdrop-filter:none}
body.tonex-header-slate .tonex-site-header{background:linear-gradient(135deg,#111827 0%,#1e293b 100%);border-bottom:1px solid rgba(255,255,255,.12);box-shadow:0 14px 34px rgba(15,23,42,.16);backdrop-filter:none}
body.tonex-header-teal .tonex-site-header{background:linear-gradient(135deg,#0f172a 0%,#0f766e 100%);border-bottom:1px solid rgba(255,255,255,.14);box-shadow:0 14px 34px rgba(15,118,110,.16);backdrop-filter:none}
body.tonex-header-footer-dark .site-title,
body.tonex-header-navy-gradient .site-title,
body.tonex-header-royal-blue .site-title,
body.tonex-header-slate .site-title,
body.tonex-header-teal .site-title{color:#fff}
body.tonex-header-footer-dark .site-tagline,
body.tonex-header-navy-gradient .site-tagline,
body.tonex-header-royal-blue .site-tagline,
body.tonex-header-slate .site-tagline,
body.tonex-header-teal .site-tagline{color:#dbeafe}
body.tonex-header-footer-dark .tonex-menu a,
body.tonex-header-navy-gradient .tonex-menu a,
body.tonex-header-royal-blue .tonex-menu a,
body.tonex-header-slate .tonex-menu a,
body.tonex-header-teal .tonex-menu a{color:#f8fafc}
body.tonex-header-footer-dark .tonex-menu a:hover,
body.tonex-header-footer-dark .tonex-menu a.is-current-link,
body.tonex-header-navy-gradient .tonex-menu a:hover,
body.tonex-header-navy-gradient .tonex-menu a.is-current-link,
body.tonex-header-royal-blue .tonex-menu a:hover,
body.tonex-header-royal-blue .tonex-menu a.is-current-link,
body.tonex-header-slate .tonex-menu a:hover,
body.tonex-header-slate .tonex-menu a.is-current-link,
body.tonex-header-teal .tonex-menu a:hover,
body.tonex-header-teal .tonex-menu a.is-current-link{background:rgba(255,255,255,.14);color:#fff}
body.tonex-header-compact .site-logo img{max-height:42px}
body.tonex-header-compact .site-tagline{font-size:.85rem}
body.tonex-page-layout-plain .tonex-page-card,
body.tonex-page-layout-plain .tonex-post-card{background:transparent;border:0;box-shadow:none;padding:10px 0}
body.tonex-page-layout-narrow .tonex-page-shell,
body.tonex-page-layout-narrow .tonex-content-grid{width:min(900px,calc(100% - 32px))}
body.tonex-lms-layout-wide.tonex-lms-page .tonex-page-shell,
body.tonex-lms-layout-wide.tonex-lms-dashboard-page .tonex-page-shell{width:min(1320px,calc(100% - 24px))}
body.tonex-lms-layout-compact.tonex-lms-page .tonex-lms-box,
body.tonex-lms-layout-compact.tonex-lms-page .tonex-lms-course-shell,
body.tonex-lms-layout-compact.tonex-lms-page .tonex-lms-login-shell,
body.tonex-lms-layout-compact.tonex-lms-page .tonex-lms-profile-shell,
body.tonex-lms-layout-compact.tonex-lms-page .tonex-lms-result-shell,
body.tonex-lms-layout-compact.tonex-lms-page .tonex-lms-review-shell{padding:18px!important;border-radius:18px!important}
body.tonex-footer-center .tonex-footer-grid{display:block;text-align:center;max-width:820px}
body.tonex-footer-center .tonex-footer-menu{justify-content:center;margin-top:18px}
body.tonex-footer-minimal .tonex-footer-grid{display:none}
body.tonex-footer-minimal .tonex-footer-bottom{border-top:0;padding-top:20px}
.site-navigation ul{list-style:none;margin:0;padding:0}
.site-navigation li{list-style:none;margin:0}
.site-navigation li::marker{content:""}
.site-navigation .tonex-menu li:before{display:none!important;content:none!important}
.entry-content table{width:100%;border-collapse:collapse;border:1px solid var(--tonex-border);background:#fff;border-radius:14px;overflow:hidden}
.entry-content th,.entry-content td{padding:12px 14px;border:1px solid var(--tonex-border);vertical-align:top}
.entry-content th{background:#f8fbff;font-weight:800}
.entry-content input[type=text],.entry-content input[type=email],.entry-content input[type=password],.entry-content input[type=number],.entry-content input[type=url],.entry-content input[type=search],.entry-content textarea,.entry-content select{max-width:100%;min-height:42px;border-radius:12px;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.entry-content textarea{min-height:110px;resize:vertical}
.entry-content input[type=radio],.entry-content input[type=checkbox]{width:auto;margin-right:6px;transform:translateY(1px)}
.entry-content label{font-weight:700;color:var(--tonex-text)}
.tonex-lms-page .entry-content>h1:first-child,.tonex-lms-page .entry-content>h2:first-child,.tonex-lms-page .entry-content>h3:first-child{margin-top:0}
.tonex-lms-page .entry-content,.tonex-lms-dashboard-page .entry-content{max-width:100%}
.tonex-lms-page .tonex-page-shell{width:min(var(--tonex-shell),calc(100% - 28px))}
@media (max-width:720px){body.tonex-page-layout-narrow .tonex-page-shell,body.tonex-page-layout-narrow .tonex-content-grid{width:min(100% - 20px,900px)}.entry-content th,.entry-content td{padding:10px 8px}}


/* Public dashboard login fallback */
.tonex-dashboard-page-card{padding:0;background:transparent;border:0;box-shadow:none}
.tonex-theme-login-card{max-width:620px;margin:0 auto;padding:34px;border-radius:26px;background:#fff;border:1px solid var(--tonex-border);box-shadow:var(--tonex-shadow)}
.tonex-theme-login-kicker{display:inline-flex;align-items:center;margin-bottom:14px;padding:7px 12px;border-radius:999px;background:#eaf2ff;color:var(--tonex-blue);font-size:.78rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.tonex-theme-login-card h2{margin:0 0 10px;font-size:clamp(2rem,4vw,3rem);letter-spacing:-.035em;color:var(--tonex-text)}
.tonex-theme-login-card p{color:var(--tonex-muted)}
.tonex-theme-login-card form{display:grid;gap:14px;margin-top:20px}
.tonex-theme-login-card label{font-weight:800;color:var(--tonex-text)}
.tonex-theme-login-card input[type=text],.tonex-theme-login-card input[type=password]{width:100%;min-height:48px;border-radius:14px}
.tonex-theme-login-card .login-remember label{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--tonex-muted)}
.tonex-theme-login-card .login-submit .button,.tonex-theme-login-card .login-submit input[type=submit]{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:0;border-radius:14px;background:var(--tonex-blue);color:#fff;font-weight:800;cursor:pointer;box-shadow:0 14px 28px rgba(35,81,216,.22)}
.tonex-theme-login-links{margin-top:14px}
.tonex-theme-login-links a{font-weight:800;color:var(--tonex-blue)}
.tonex-theme-dashboard-missing{text-align:center;padding:34px}
