/* HIIT Support design system. Mobile-first. */
:root{
  --navy:#101B3D; --navy-2:#16265A; --royal:#2455D6; --blue:#1769FF; --teal:#12A6A6;
  --bg:#F3F6FC; --card:#fff; --ink:#142042; --muted:#5B6785; --line:#E3E9F5;
  --amber:#B7791F; --amber-bg:#FFF4DC; --red:#C2410C; --red-bg:#FDEBE3;
  --radius:16px; --shadow:0 6px 24px rgba(16,27,61,.07); --shadow-lg:0 20px 50px rgba(16,27,61,.18);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:Inter,"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;color:var(--ink);background:#fff;-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.55}
h1,h2,h3,h4,h5,h6{color:var(--navy);font-weight:700;letter-spacing:-.01em}
a{color:var(--royal);text-decoration:none} a:hover{color:var(--blue)}
.muted{color:var(--muted)} .small{font-size:.85rem}
:focus-visible{outline:3px solid rgba(23,105,255,.45);outline-offset:2px;border-radius:6px}

/* Logo */
.logo{display:inline-flex;align-items:center;gap:.65rem;color:var(--navy)}
.logo-mark{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--royal),var(--blue));color:#fff;font-weight:800;font-size:1.15rem;box-shadow:0 6px 14px rgba(36,85,214,.35)}
.logo-mark.sm{width:26px;height:26px;border-radius:8px;font-size:.8rem}
.logo-text{display:flex;flex-direction:column;line-height:1.1}
.logo-text strong{font-size:1.05rem;color:inherit}
.logo-text small{font-size:.66rem;color:var(--muted);letter-spacing:.01em}
.logo-light,.logo-light strong{color:#fff} .logo-light small{color:rgba(255,255,255,.65)}
.logo-link:hover{opacity:.9}

/* Buttons */
.btn-hiit,.btn-ghost,.btn-light-hiit,.btn-outline-light-hiit{display:inline-flex;align-items:center;gap:.5rem;justify-content:center;font-weight:600;border-radius:12px;padding:.65rem 1.15rem;border:1.5px solid transparent;cursor:pointer;transition:.18s;font-size:.95rem;line-height:1.2}
.btn-hiit{background:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(23,105,255,.28)}
.btn-hiit:hover{background:var(--royal);color:#fff;transform:translateY(-1px)}
.btn-hiit:disabled{opacity:.7;cursor:progress;transform:none}
.btn-hiit.sm{padding:.5rem .85rem;font-size:.85rem;box-shadow:none}
.btn-lg-hiit{padding:.85rem 1.5rem;font-size:1rem}
.btn-ghost{background:#fff;color:var(--navy);border-color:var(--line)} .btn-ghost:hover{border-color:var(--blue);color:var(--blue)}
.btn-light-hiit{background:#fff;color:var(--royal)} .btn-light-hiit:hover{background:var(--bg);color:var(--royal)}
.btn-outline-light-hiit{color:#fff;border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.06)} .btn-outline-light-hiit:hover{background:rgba(255,255,255,.16);color:#fff}

/* Public nav */
.pub-nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.pub-nav .container{height:68px}
.pub-links{gap:2rem} .pub-links a{color:var(--navy);font-weight:600;font-size:.9rem} .pub-links a:hover{color:var(--blue)}
.nav-toggle{border:1px solid var(--line);background:#fff;border-radius:10px;width:40px;height:40px;font-size:1.4rem;line-height:1;color:var(--navy)}
.pub-mobile{display:flex;flex-direction:column;gap:.25rem;padding:.5rem 0 1rem}
.pub-mobile a{padding:.7rem .25rem;font-weight:600;color:var(--navy)} .pub-mobile .btn-hiit{color:#fff;margin-top:.5rem}

/* Hero */
.hero{background:radial-gradient(900px 500px at 85% 110%,rgba(36,85,214,.55),transparent 60%),linear-gradient(160deg,var(--navy) 0%,#0F2A6B 100%);color:#fff;padding:3.5rem 0 4.5rem;overflow:hidden}
.hero h1{color:#fff;font-size:clamp(2.4rem,7vw,3.6rem);line-height:1.05;font-weight:800;margin:1.1rem 0}
.hero h1 span{color:#4F9BFF}
.hero .lead{color:rgba(255,255,255,.82);max-width:34rem;font-size:1.05rem}
.hero-badge{display:inline-flex;align-items:center;gap:.5rem;font-size:.72rem;letter-spacing:.06em;font-weight:600;padding:.4rem .8rem;border-radius:99px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18)}
.hero-badge i{font-size:.45rem;color:var(--teal)}
.trust{list-style:none;padding:0;margin:1.75rem 0 0;display:flex;gap:1.5rem;flex-wrap:wrap;color:rgba(255,255,255,.9);font-size:.9rem}
.trust i{color:var(--teal);margin-right:.25rem}
.preview-card{background:#fff;color:var(--ink);border-radius:20px;padding:1.1rem;box-shadow:var(--shadow-lg);position:relative}
.preview-card h6{margin:.4rem 0 0}
.pv-head{display:flex;justify-content:space-between;align-items:center}
.sample-chip{display:inline-block;font-size:.66rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--royal);background:#E8EFFF;padding:.2rem .55rem;border-radius:99px}
.pv-stat{display:flex;align-items:center;gap:.65rem;border:1px solid var(--line);border-radius:12px;padding:.65rem}
.pv-stat i{font-size:1.2rem} .pv-stat small{display:block;color:var(--muted);font-size:.7rem} .pv-stat b{font-size:1.2rem;color:var(--navy)}
.pv-stat.v{display:block;padding:.5rem} .c-red{color:#E25D3A}.c-blue{color:var(--blue)}.c-teal{color:var(--teal)}
.pv-row{display:flex;align-items:center;gap:.7rem;padding:.6rem .2rem;border-top:1px solid var(--line)}
.pv-row>i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#E8EFFF;color:var(--royal)}
.pv-row span{flex:1;min-width:0} .pv-row b{display:block;font-size:.82rem} .pv-row small{color:var(--muted);font-size:.7rem}
.pv-row em{font-style:normal}

/* Sections */
.section{padding:4rem 0} @media(min-width:992px){.section{padding:5rem 0}}
.eyebrow{display:inline-block;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--royal);background:#E8EFFF;padding:.3rem .7rem;border-radius:99px;margin-bottom:.9rem}
.eyebrow.light{background:rgba(255,255,255,.12);color:#CFE0FF}
.section h2,.how-box h2{font-size:clamp(1.7rem,4.5vw,2.4rem);font-weight:800}
.section-sub{color:var(--muted);max-width:38rem;margin:.75rem auto 0;font-size:1.02rem}
.feature{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.5rem 1rem;height:100%;transition:.2s}
.feature:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#cfdcf7}
.feature h5{font-size:1rem;margin:1rem 0 .4rem} .feature p{color:var(--muted);font-size:.86rem;margin:0}
.f-ico{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;font-size:1.5rem;color:#fff}
.f-blue{background:linear-gradient(135deg,var(--royal),var(--blue))} .f-teal{background:linear-gradient(135deg,#0E8E8E,var(--teal))}
.how-box{background:var(--bg);border-radius:24px;padding:3rem 1.25rem}
.step{position:relative} .step-ico{display:inline-grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#E3ECFF;color:var(--royal);font-size:1.8rem}
.step-n{position:absolute;top:-6px;left:calc(50% - 46px);width:26px;height:26px;border-radius:50%;background:var(--royal);color:#fff;font-size:.8rem;font-weight:700;display:grid;place-items:center;z-index:1}
.step h5{margin:1rem 0 .3rem;font-size:1.02rem} .step p{color:var(--muted);font-size:.88rem;max-width:15rem;margin:0 auto}
.checks{list-style:none;padding:0;margin:1.25rem 0 0} .checks li{margin:.55rem 0;font-weight:500} .checks i{color:var(--teal);margin-right:.5rem}
.card-soft{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.25rem}
@media(min-width:768px){.card-soft{padding:1.5rem}}
.timeline{list-style:none;margin:0;padding:0;position:relative}
.timeline li{display:flex;gap:.9rem;align-items:flex-start;padding:.7rem 0;position:relative}
.timeline li:not(:last-child)::before{content:"";position:absolute;left:17px;top:2.6rem;bottom:-.5rem;width:2px;background:var(--line)}
.timeline div{flex:1;min-width:0} .timeline b{display:block;font-size:.9rem} .timeline small{display:block;color:var(--muted);font-size:.8rem;overflow-wrap:anywhere}
.timeline time{font-size:.74rem;color:var(--muted);white-space:nowrap}
.tl-dot{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#E3ECFF;color:var(--royal);font-size:1rem}
.timeline li:nth-child(even) .tl-dot{background:#DDF3F3;color:var(--teal)}
.timeline .pending{opacity:.55}
.timeline.compact li{padding:.55rem 0}
.staff-preview{position:relative;display:flex;border-radius:18px;overflow:hidden;box-shadow:var(--shadow-lg);background:#fff;border:1px solid var(--line);min-height:300px}
.staff-preview .sample-chip{position:absolute;right:.75rem;top:.6rem;z-index:2}
.sp-side{background:var(--navy);color:#B7C4E8;padding:1rem .8rem;width:30%;min-width:112px;font-size:.78rem;display:flex;flex-direction:column;gap:.35rem}
.sp-side i{font-style:normal;padding:.4rem .6rem;border-radius:8px} .sp-side i.active{background:var(--blue);color:#fff}
.sp-side .logo{margin-bottom:.7rem;font-size:.8rem}
.sp-main{flex:1;padding:1rem;padding-top:2rem;min-width:0}
.cta{background:linear-gradient(120deg,var(--navy),#17358F);border-radius:24px;padding:2.5rem 1.5rem;display:flex;justify-content:space-between;align-items:center;color:#fff;margin:1rem auto 4rem;overflow:hidden}
@media(min-width:768px){.cta{padding:3rem}}
.cta h2{color:#fff;font-size:clamp(1.5rem,4vw,2.1rem)} .cta p{color:rgba(255,255,255,.8);max-width:30rem}
.cta-ico{font-size:7rem;color:rgba(255,255,255,.9);margin-right:2rem}
.pub-footer{background:var(--navy);color:rgba(255,255,255,.75);padding:3rem 0 1.5rem;font-size:.9rem}
.pub-footer h6{color:#fff;font-size:.85rem;margin-bottom:.8rem} .pub-footer a{display:block;color:rgba(255,255,255,.7);padding:.2rem 0} .pub-footer a:hover{color:#fff}
.foot-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;border-top:1px solid rgba(255,255,255,.12);margin-top:2rem;padding-top:1.25rem;font-size:.8rem}

/* Auth */
.auth-body{background:var(--bg)}
.auth-wrap{min-height:100vh;display:flex}
.auth-side{width:44%;max-width:560px;background:linear-gradient(160deg,var(--navy),#17358F);color:#fff;padding:2.5rem;flex-direction:column;justify-content:space-between}
.auth-side h2{color:#fff;font-size:2.4rem;font-weight:800} .auth-side h2 span{color:#4F9BFF} .auth-side p{color:rgba(255,255,255,.8);max-width:26rem}
.auth-main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem 1rem}
.auth-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:1.5rem;width:100%;max-width:480px}
@media(min-width:576px){.auth-card{padding:2.25rem}}
.auth-card h1{font-size:1.6rem;margin-bottom:.25rem} .auth-card form{margin-top:1.25rem}
.auth-alt{text-align:center;margin:1.25rem 0 0;color:var(--muted);font-size:.9rem}

/* Forms */
.field{margin-bottom:1rem} .field label{display:block;font-weight:600;font-size:.85rem;margin-bottom:.35rem;color:var(--navy)}
.field input:not([type=checkbox]),.field select,.field textarea,.filters select,.filters input,.manage select{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:.7rem .85rem;font-size:.95rem;background:#fff;color:var(--ink);transition:.15s;font-family:inherit}
.field input:focus,.field select:focus,.field textarea:focus,.filters select:focus,.filters input:focus,.manage select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(23,105,255,.14)}
.field.has-error input,.field.has-error select,.field.has-error textarea{border-color:#E0623B;background:#FFF8F5}
.field-error{color:var(--red);font-size:.8rem;margin-top:.3rem} .field-help{color:var(--muted);font-size:.76rem;margin-top:.3rem} .field-help ul{padding-left:1.1rem;margin:.2rem 0 0}
.char-count{text-align:right;font-size:.75rem;color:var(--muted);margin:-.6rem 0 .8rem}
.form-card{max-width:720px}
.flash-wrap{padding:1rem 1rem 0;max-width:900px;margin:0 auto;width:100%}
.flash{display:flex;align-items:center;gap:.7rem;padding:.8rem 1rem;border-radius:12px;font-size:.9rem;margin-bottom:.6rem;border:1px solid}
.flash span{flex:1} .flash-x{border:0;background:transparent;font-size:1.3rem;line-height:1;color:inherit;opacity:.6}
.flash-success{background:#E7F7F2;border-color:#BCE8DB;color:#0B6B5A} .flash-error,.flash-warning{background:var(--red-bg);border-color:#F6CDBB;color:var(--red)} .flash-info{background:#E8EFFF;border-color:#CBDAFB;color:var(--royal)}
.auth-main .flash-wrap{padding:0 0 1rem;max-width:480px}

/* App shell */
.app-body{background:var(--bg)}
.app-shell{display:flex;min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:var(--navy);color:#B7C4E8;padding:1.25rem 1rem;display:flex;flex-direction:column;z-index:60;transform:translateX(-100%);transition:transform .25s}
.sidebar.open{transform:none}
.sidebar-backdrop{position:fixed;inset:0;background:rgba(10,16,40,.5);z-index:55;display:none} .sidebar-backdrop.show{display:block}
.side-logo{margin:.25rem .5rem 1.5rem}
.side-nav{display:flex;flex-direction:column;gap:.2rem;flex:1}
.side-nav a,.side-logout button{display:flex;align-items:center;gap:.75rem;padding:.7rem .85rem;border-radius:12px;color:#B7C4E8;font-weight:500;font-size:.92rem;border:0;background:transparent;width:100%;text-align:left}
.side-nav a:hover,.side-logout button:hover{background:rgba(255,255,255,.07);color:#fff}
.side-nav a.active{background:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(23,105,255,.35)}
.side-logout{border-top:1px solid rgba(255,255,255,.1);padding-top:.75rem}
.app-main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;gap:.9rem;padding:.8rem 1rem;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.topbar-title{font-weight:700;color:var(--navy);flex:1}
.user-chip{display:flex;align-items:center;gap:.6rem;font-size:.85rem;line-height:1.15} .user-chip small{display:block;color:var(--muted);font-size:.72rem}
.avatar{flex:none;width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--royal),var(--teal));color:#fff;display:inline-grid;place-items:center;font-size:.78rem;font-weight:700}
.app-content{padding:1.25rem 1rem 3rem;width:100%;max-width:1200px;margin:0 auto}
@media(min-width:992px){
  .sidebar{transform:none} .app-main{margin-left:260px} .topbar .nav-toggle{display:none} .app-content{padding:2rem 2rem 3rem}
}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:1.5rem}
.page-head h1{font-size:1.5rem;margin:0} .page-head p{margin:.2rem 0 0}
.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem} .card-head h5{margin:0;font-size:1.02rem}
.back-link{display:inline-block;margin-bottom:1rem;font-weight:600;font-size:.9rem}

/* Stats */
.stat{display:flex;align-items:center;gap:.85rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1rem;box-shadow:var(--shadow);height:100%}
.stat.v{flex-direction:column;align-items:flex-start;gap:.35rem}
.stat small{display:block;color:var(--muted);font-size:.78rem} .stat b{font-size:1.6rem;color:var(--navy);line-height:1.1}
.stat-ico{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:1.25rem;flex:none}
.s-blue{background:#E3ECFF;color:var(--royal)} .s-teal{background:#DDF3F3;color:var(--teal)} .s-amber{background:var(--amber-bg);color:var(--amber)}
.mini small{display:block;color:var(--muted);font-size:.78rem} .mini b{display:block;font-size:1.7rem;color:var(--navy)} .mini em{font-style:normal;font-size:.72rem;color:var(--muted)}

/* Issue rows */
.issue-list{display:flex;flex-direction:column}
.issue-row{display:grid;grid-template-columns:44px 1fr;gap:.2rem .85rem;align-items:center;padding:.9rem .25rem;border-top:1px solid var(--line);color:inherit;transition:background .15s;border-radius:10px}
.issue-row:first-child{border-top:0} .issue-row:hover{background:#F7F9FE;color:inherit}
.issue-main{min-width:0} .issue-main strong{display:block;color:var(--navy);font-size:.94rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.issue-main small{display:block;color:var(--muted);font-size:.76rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.issue-meta{grid-column:2;display:flex;gap:.45rem;flex-wrap:wrap} .issue-assignee{grid-column:2;font-size:.78rem;color:var(--muted)}
@media(min-width:992px){
  .issue-row{grid-template-columns:44px 1fr auto 170px;padding:.85rem .6rem}
  .issue-meta,.issue-assignee{grid-column:auto} .issue-assignee{text-align:right}
}
.issue-ico{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:1.2rem;background:#E3ECFF;color:var(--royal);flex:none}
.issue-ico.big{width:52px;height:52px;font-size:1.4rem}
.cat-laboratory,.cat-payment{background:#DDF3F3;color:var(--teal)} .cat-course_registration,.cat-certificate{background:var(--amber-bg);color:var(--amber)}
.badge-status,.badge-pr{display:inline-flex;align-items:center;font-size:.72rem;font-weight:700;padding:.25rem .65rem;border-radius:99px;white-space:nowrap}
.st-open{background:var(--amber-bg);color:#8A5A12} .st-in_progress{background:#E3ECFF;color:var(--royal)} .st-resolved{background:#DDF5EC;color:#0B6B5A} .st-closed{background:#EAEDF4;color:#4A5675}
.pr-low{background:#EAF3F3;color:#0E7777} .pr-medium{background:#EEF1FA;color:#40507D} .pr-high{background:var(--red-bg);color:var(--red)}
.filters{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:1rem} .filters .search{position:relative;flex:1 1 260px}
.filters .search i{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);color:var(--muted)} .filters .search input{padding-left:2.4rem}
.filters select{width:auto;flex:1 1 140px}
.pager{display:flex;justify-content:center;align-items:center;gap:1rem;padding-top:1rem;font-size:.88rem;color:var(--muted)}
.empty{text-align:center;padding:2.5rem 1rem;color:var(--muted)} .empty i{font-size:2.6rem;color:#9DB4E6} .empty h5{margin:.7rem 0 .3rem} .empty p{max-width:24rem;margin:0 auto 1rem}
.empty.small{padding:1rem} .empty.small i{font-size:1.6rem}

/* Detail */
.issue-desc{margin:1.25rem 0;color:#2B3558;overflow-wrap:anywhere}
.meta-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;margin:0;padding-top:1rem;border-top:1px solid var(--line)}
@media(min-width:768px){.meta-grid{grid-template-columns:repeat(3,1fr)}}
.meta-grid dt{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:600} .meta-grid dd{margin:.15rem 0 0;font-weight:600;color:var(--navy);font-size:.92rem}
.response{display:flex;gap:.8rem;padding:.9rem 0;border-top:1px solid var(--line)} .response:first-of-type{border-top:0}
.response p{margin:.2rem 0 0;overflow-wrap:anywhere} .response-top{display:flex;gap:.7rem;align-items:baseline;flex-wrap:wrap} .response-top time{font-size:.74rem;color:var(--muted)}
.manage{margin-bottom:1rem} .manage label{display:block;font-size:.78rem;font-weight:600;color:var(--muted);margin-bottom:.3rem} .manage select{padding:.55rem .7rem}
.manage .field,.manage .d-flex>select{flex:1}

/* Staff lists, bars */
.person-row{display:flex;align-items:center;gap:.85rem;padding:.8rem 0;border-top:1px solid var(--line)} .person-row:first-of-type{border-top:0}
.person-row>.small{text-align:right}
.bar-row{display:grid;grid-template-columns:120px 1fr 28px;align-items:center;gap:.7rem;margin:.55rem 0;font-size:.85rem}
.bar{height:9px;border-radius:99px;background:#E9EEF9;overflow:hidden} .bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--royal),var(--teal))} .bar-row b{text-align:right}
.day-chart{display:flex;align-items:flex-end;gap:.5rem;height:180px}
.day-chart div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:.3rem;font-size:.75rem}
.day-chart span{width:100%;max-width:38px;min-height:4px;border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,var(--blue),var(--royal))} .day-chart small{color:var(--muted)}

/* Errors */
.error-page{min-height:100vh;display:grid;place-items:center;background:var(--bg);padding:1rem}
.error-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:2.5rem 1.75rem;max-width:460px;text-align:center}
.error-code{font-size:4rem;font-weight:800;color:var(--royal);line-height:1;margin:1rem 0 .3rem} .error-card p{color:var(--muted)}
@media(max-width:575px){.hero{padding:2.5rem 0 3rem}.cta{margin-bottom:2.5rem}.bar-row{grid-template-columns:96px 1fr 24px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
