/* ===== BASE ===== */

:root{
  --ink:#07334f;
  --text:#172033;
  --muted:#64748b;
  --line:#dbe5f1;
  --turquoise:#29c6c0;
  --turquoise-dark:#13a8a3;
  --purple:#8b5cf6;
  --purple-dark:#6d45d8;
  --red:#ff4d67;
  --green:#21a66b;
  --yellow:#facc15;
  --bg1:#e6fbff;
  --bg2:#f2eaff;
  --white:#fff;
  --shadow:0 18px 45px rgba(39,54,91,.12);
  --shadow-soft:0 10px 28px rgba(39,54,91,.08);
  --radius:24px;
}

*{box-sizing:border-box;}

body{
  margin:0;
  min-height:100vh;
  font-family:Inter,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 10%,rgba(41,198,192,.24),transparent 34%),
    radial-gradient(circle at 90% 20%,rgba(139,92,246,.22),transparent 36%),
    linear-gradient(135deg,var(--bg1),var(--bg2));
  padding-top:88px;
}

a{text-decoration:none;color:inherit;}

.topbar{
  min-height:88px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(219,229,241,.8);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 38px;
  position:fixed;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:9999;
  box-shadow:0 8px 28px rgba(39,54,91,.08);
}


.brand{display:flex;align-items:center;gap:16px;}

.logo{
  width:52px;
  height:52px;
  border-radius:17px;
  border:3px solid transparent;
  background:linear-gradient(#fff,#fff) padding-box,linear-gradient(145deg,var(--turquoise),var(--purple)) border-box;
  display:grid;
  place-items:center;
  color:var(--turquoise-dark);
  font-weight:900;
  font-size:28px;
}

.brand h1{font-size:25px;line-height:1.15;margin:0;color:var(--ink);}
.brand p{margin:5px 0 0;color:#53627a;}

.top-actions{display:flex;gap:12px;flex-wrap:wrap;}

.nav-btn{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.74);
  color:var(--ink);
  font-weight:700;
  transition:.2s ease;
}

.nav-btn:hover{transform:translateY(-2px);box-shadow:var(--shadow-soft);}

.page{
  max-width:1500px;
  margin:20px auto 0;
  padding:0 20px 24px;
}

.footer{text-align:center;color:#708197;padding:18px 0 28px;}

/* ===== COMMON ===== */

.hero-card,
.main-card,
.side-card,
.bottom-card,
.test-card,
.article-card,
.result-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(219,229,241,.76);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.btn{
  border:0;
  border-radius:12px;
  padding:14px 24px;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.btn-primary{background:linear-gradient(135deg,var(--turquoise),var(--purple));color:#fff;}
.btn-light{background:#fff;color:var(--purple);border:1px solid var(--line);}
.btn-danger{background:linear-gradient(135deg,#ff4d67,#ff6b81);color:#fff;border:none;}
.btn-wide{width:100%;}

/* ===== MAIN PAGE / TEST PAGE ===== */

.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;margin-bottom:22px;}
.hero-card{padding:30px;}
.hero-card h2{font-size:32px;color:var(--ink);margin:0 0 12px;}
.hero-card p{font-size:17px;line-height:1.6;color:#45556f;margin:0;}
.hero-note{padding:28px;display:grid;gap:14px;}
.note-line{display:flex;gap:14px;align-items:flex-start;color:#31415b;}

.note-icon,
.round-icon{
  width:44px;
  height:44px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--turquoise),var(--purple));
  color:#fff;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  font-weight:800;
}

.test-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.test-card{min-height:160px;padding:22px;transition:.25s;display:flex;flex-direction:column;justify-content:space-between;}
.test-card:hover,.article-card:hover{transform:translateY(-4px);box-shadow:0 24px 55px rgba(39,54,91,.18);}
.test-top{display:flex;gap:15px;align-items:center;}
.test-card h3,.article-card h3{margin:0;color:var(--ink);font-size:21px;}
.test-card p,.article-card p{margin:12px 0 0;color:#5b6b84;line-height:1.45;}
.start-line{margin-top:16px;color:var(--purple);font-weight:800;}

.layout{display:grid;grid-template-columns:300px 1fr 280px;gap:22px;align-items:start;}
.sidebar,.rightbar{position:sticky;top:110px;}
.panel{background:rgba(255,255,255,.74);border:1px solid rgba(219,229,241,.74);border-radius:22px;box-shadow:var(--shadow);padding:14px;}
.side-link{display:flex;align-items:center;gap:14px;padding:14px 12px;border-radius:15px;color:#16405e;margin-bottom:8px;font-weight:700;}
.side-link.active{background:#fff;box-shadow:0 10px 25px rgba(31,58,97,.12);}
.side-support{margin-top:18px;padding:20px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.75);}
.side-support b{display:block;color:var(--ink);margin-bottom:8px;}
.side-support a{color:var(--purple);font-weight:800;}

.main-card{overflow:hidden;}
.progress-head{display:grid;grid-template-columns:160px 1fr 60px;gap:18px;align-items:center;padding:26px 32px;border-bottom:1px solid var(--line);font-size:18px;color:#34445d;}
.progress{height:9px;background:#edf2f7;border-radius:99px;overflow:hidden;}
.progress span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--turquoise),var(--purple));border-radius:99px;}
.question-box{padding:32px;}
.question-box h2{font-size:23px;margin:0 0 24px;color:#101827;}
.option{display:flex;align-items:center;gap:16px;padding:18px 20px;border:1px solid var(--line);border-radius:12px;margin-bottom:12px;background:rgba(255,255,255,.72);cursor:pointer;transition:.15s;font-size:17px;}
.option:hover,.option:has(input:checked){border-color:var(--turquoise);box-shadow:0 0 0 4px rgba(41,198,192,.11);}
.option input{width:22px;height:22px;accent-color:var(--turquoise-dark);}
.actions{display:flex;justify-content:space-between;gap:18px;margin-top:26px;padding-top:22px;border-top:1px solid var(--line);}
.side-card{padding:22px;margin-bottom:20px;color:#152238;line-height:1.55;}
.side-card h3{display:flex;align-items:center;gap:12px;color:var(--ink);margin:0 0 14px;font-size:20px;}

/* ===== RESULT LAYOUT ===== */

.result-page{max-width:1500px;}

.result-dashboard{
  display:grid;
  grid-template-columns:1fr 1.08fr;
  gap:20px;
  align-items:stretch;
}

.result-card{
  padding:24px;
  margin-bottom:20px;
}

.result-title-row,
.section-heading{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}

.compact-heading{margin-bottom:12px;}

.result-title-row h2,
.section-heading h2{
  margin:0;
  color:#0f2942;
  font-size:22px;
}

.section-heading h2 span{color:#475569;font-size:16px;font-weight:700;}

.mini-icon,
.section-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  background:#eef2ff;
  color:#705cf6;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:20px;
}

.music-top-card{
  display:grid;
  grid-template-columns:170px 1fr 310px;
  gap:28px;
  align-items:center;
  min-height:230px;
}

.music-cover{
  width:170px;
  height:170px;
  border-radius:22px;
  background:
    linear-gradient(135deg,rgba(41,198,192,.18),rgba(139,92,246,.22)),
    url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=900&q=80');
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.music-cover:after{
  content:"♫";
  position:absolute;
  right:14px;
  bottom:14px;
  width:52px;
  height:52px;
  border-radius:50%;
  background:rgba(255,255,255,.93);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7c3aed;
  font-size:25px;
  font-weight:900;
  box-shadow:var(--shadow-soft);
}

.music-main h3{
  margin:0 0 8px;
  color:#0f2942;
  font-size:24px;
}

.music-main p{
  margin:0 0 18px;
  color:#52657f;
  line-height:1.55;
  max-width:650px;
}

.music-main audio{
  width:100%;
  max-width:560px;
  border-radius:16px;
}

.random-note{
  padding:18px;
  border-radius:20px;
  background:rgba(245,243,255,.75);
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:center;
}

.random-note strong{color:#0f2942;}
.random-note span{
  grid-column:2;
  color:#64748b;
  line-height:1.45;
}

.result-main{
  min-height:455px;
}

.result-score-area{
  display:grid;
  grid-template-columns:1fr 1.05fr;
  gap:24px;
  align-items:center;
}

.big-score{
  font-size:82px;
  line-height:1;
  font-weight:900;
  letter-spacing:-2px;
}

.big-score.low{color:#21a66b;}
.big-score.middle{color:#d18b00;}
.big-score.high{color:var(--red);}
.big-score span{color:#475569;font-size:52px;}

.stress-badge{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  margin-top:16px;
  font-weight:800;
  border:1px solid transparent;
}

.stress-badge.low{background:#e7fff2;color:#0f9d58;border-color:#a7f3d0;}
.stress-badge.middle{background:#fff6da;color:#c77700;border-color:#fde68a;}
.stress-badge.high{background:#ffe6ea;color:var(--red);border-color:#ffb5c1;}

.stress-scale-box{
  padding:22px;
  border-radius:22px;
  background:rgba(255,255,255,.92);
  border:1px solid #e2e8f0;
  box-shadow:var(--shadow-soft);
}

.scale-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
  color:#0f2942;
  font-weight:900;
  font-size:18px;
}

.scale-percent{
  background:#24324a;
  color:#fff;
  border-radius:10px;
  padding:8px 10px;
  font-size:15px;
  position:relative;
}

.scale-percent:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-7px;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:7px solid transparent;
  border-right:7px solid transparent;
  border-top:7px solid #24324a;
}

.stress-scale{
  height:24px;
  border-radius:99px;
  background:linear-gradient(90deg,#22c55e 0%,#facc15 50%,#ff4d67 100%);
  position:relative;
  overflow:visible;
  margin:8px 0 14px;
}

.scale-pointer{
  position:absolute;
  top:-11px;
  width:18px;
  height:46px;
  border-radius:9px;
  background:#24324a;
  box-shadow:0 7px 15px rgba(0,0,0,.22);
}

.scale-labels{
  display:flex;
  justify-content:space-between;
  color:#475569;
  font-weight:800;
  font-size:14px;
}

.result-message{
  margin:28px 0 0;
  max-width:720px;
  font-size:17px;
  line-height:1.65;
  color:#27364f;
}

.psychologist-panel{
  margin-top:24px;
  padding:24px;
  border-radius:22px;
  background:linear-gradient(135deg,#fff1f3,#fff7f8);
  border:2px solid #ffc9d2;
  display:grid;
  grid-template-columns:44px 1fr;
  gap:18px;
  position:relative;
  overflow:hidden;
}

.alert-icon{
  width:44px;
  height:44px;
  border-radius:14px;
  background:var(--red);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:26px;
}

.psy-content h3{margin:0 0 8px;color:#0f2942;font-size:22px;}
.psy-content p{margin:0 0 16px;color:#4b5d75;line-height:1.5;}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.psychologist-panel label{display:block;color:#334155;font-weight:700;margin-bottom:12px;}
.psychologist-panel label span{display:block;margin-bottom:7px;}
.psychologist-panel input,.psychologist-panel textarea{width:100%;padding:14px 16px;border-radius:12px;border:1px solid #dbe5f1;font:inherit;background:#fff;}
.psychologist-panel textarea{min-height:100px;resize:vertical;}

.video-section{
  min-height:455px;
}

.video-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.video-card{
  display:block;
  border-radius:18px;
  overflow:hidden;
  transition:.25s ease;
}

.video-card:hover{transform:translateY(-4px);}

.video-preview{
  height:132px;
  border-radius:16px;
  background-size:cover;
  background-position:center;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}

.video-preview:before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.04);
}

.play-circle{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(255,255,255,.88);
  color:#5b5ce2;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  backdrop-filter:blur(8px);
  box-shadow:0 8px 20px rgba(0,0,0,.16);
}

.duration{
  position:absolute;
  right:9px;
  bottom:9px;
  background:rgba(15,23,42,.86);
  color:#fff;
  padding:5px 8px;
  border-radius:8px;
  font-size:12px;
  font-weight:800;
}

.video-info{padding:10px 2px 0;}
.video-info h3{font-size:15px;line-height:1.35;margin:0 0 7px;color:#0f2942;}
.video-info p{margin:0;color:#64748b;font-size:13px;line-height:1.35;}

.outline-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:20px;
  padding:13px 18px;
  border-radius:13px;
  border:1px solid #cfd8ef;
  color:#5b5ce2;
  font-weight:800;
  background:#fff;
}

.articles-section{
  margin-top:0;
}

.article-cards-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.article-result-card{
  display:grid;
  grid-template-rows:190px 1fr;
  border:1px solid var(--line);
  border-radius:20px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow-soft);
  transition:.22s ease;
}

.article-result-card:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 42px rgba(39,54,91,.14);
}

.article-result-image{
  background-size:cover;
  background-position:center;
}

.article-result-body{
  padding:20px;
  display:flex;
  flex-direction:column;
}

.article-tag{
  align-self:flex-start;
  background:#e8f0ff;
  color:#536dfe;
  font-weight:800;
  font-size:13px;
  padding:6px 10px;
  border-radius:8px;
  margin-bottom:12px;
}

.article-result-body h3{
  margin:0 0 12px;
  color:#0f2942;
  font-size:21px;
  line-height:1.35;
}

.article-result-body p{
  margin:0 0 18px;
  color:#52657f;
  line-height:1.55;
}

.article-footer{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#64748b;
}

.article-footer b{
  color:#6d45d8;
}

.bottom-reminder{
  display:grid;
  grid-template-columns:56px 1fr auto;
  gap:20px;
  align-items:center;
  margin-bottom:0;
}

.heart-icon{
  width:56px;
  height:56px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:#f0eaff;
  color:#7c3aed;
  font-size:32px;
  font-weight:900;
}

.bottom-reminder p{
  margin:0;
  color:#334155;
  line-height:1.5;
}

/* ===== ARTICLES / OLD PAGES ===== */

.article-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;}
.article-card{padding:24px;transition:.25s;}
.article-header{display:flex;gap:18px;align-items:center;}
.article-page{max-width:980px;}
.article-page h2{color:var(--ink);font-size:34px;}
.article-page p,.article-page li{font-size:18px;line-height:1.65;}
.steps{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;margin:20px 0;}
.illus{height:170px;border-radius:22px;background:linear-gradient(135deg,rgba(41,198,192,.15),rgba(139,92,246,.15));position:relative;overflow:hidden;margin-bottom:20px;}

/* ===== RESPONSIVE ===== */

@media(max-width:1250px){
  .result-dashboard{grid-template-columns:1fr;}
  .music-top-card{grid-template-columns:150px 1fr;}
  .random-note{grid-column:1 / -1;}
}

@media(max-width:1100px){
  .layout,.hero{grid-template-columns:1fr;}
  .sidebar,.rightbar{position:static;}
  .test-grid,.article-grid{grid-template-columns:1fr;}
  .result-score-area{grid-template-columns:1fr;}
  .article-cards-grid{grid-template-columns:1fr;}
  .form-grid{grid-template-columns:1fr;}
  .bottom-reminder{grid-template-columns:1fr;}
}

@media(max-width:760px){
  .video-grid{grid-template-columns:1fr;}
  .music-top-card{grid-template-columns:1fr;}
  .music-cover{width:100%;height:210px;}
  .big-score{font-size:66px;}
  .big-score span{font-size:40px;}
}

@media(max-width:680px){
  .topbar{align-items:flex-start;gap:16px;flex-direction:column;padding:18px;}
  .top-actions{width:100%;display:grid;grid-template-columns:1fr;}
  .page{padding:0 14px;}
  .progress-head{grid-template-columns:1fr;gap:10px;padding:22px;}
  .question-box{padding:22px;}
  .result-card{padding:20px;}
}
/* ===== САМ СОБІ ПСИХОЛОГ ===== */

.self-help-block{
background:rgba(255,255,255,.92);
border-radius:28px;
padding:28px;
margin-top:24px;
box-shadow:0 18px 45px rgba(39,54,91,.08);
}

.self-help-header h2{
margin:0 0 10px;
font-size:28px;
color:#0f2942;
}

.self-help-header p{
margin:0 0 24px;
color:#52657f;
font-size:17px;
}

.self-help-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.self-card{
background:#fff;
border-radius:22px;
overflow:hidden;
border:1px solid #e5edf7;
box-shadow:0 10px 24px rgba(39,54,91,.08);
transition:.2s;
}

.self-card:hover{
transform:translateY(-4px);
}

.self-image{
height:180px;
background-size:cover;
background-position:center;
border-radius:18px;
margin:18px 18px 0;
}

.image1{
background-image:url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=900&q=80');
}

.image2{
background-image:url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=900&q=80');
}

.image3{
background-image:url('https://images.unsplash.com/photo-1515377905703-c4788e51af15?auto=format&fit=crop&w=900&q=80');
}

.image4{
background-image:url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=900&q=80');
}

.self-card h3{
padding:18px 18px 8px;
margin:0;
font-size:22px;
line-height:1.3;
color:#0f2942;
}

.self-card p{
padding:0 18px;
margin:0 0 16px;
line-height:1.5;
color:#5c6b82;
}

.self-card a{
display:inline-block;
padding:0 18px 20px;
font-weight:800;
color:#7c3aed;
}

.self-help-button{
text-align:center;
margin-top:26px;
}

@media(max-width:1200px){
.self-help-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:760px){
.self-help-grid{
grid-template-columns:1fr;
}
}


/* ===== ADAPTED SELF HELP ARTICLES ===== */

.self-help-block{
background:rgba(255,255,255,.92);
border-radius:28px;
padding:28px;
margin-top:24px;
box-shadow:0 18px 45px rgba(39,54,91,.08);
}

.self-help-header h2{
margin:0 0 10px;
font-size:28px;
color:#0f2942;
}

.self-help-header p{
margin:0 0 24px;
color:#52657f;
font-size:17px;
}

.self-help-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
}

.self-card{
background:#fff;
border-radius:22px;
overflow:hidden;
border:1px solid #e5edf7;
box-shadow:0 10px 24px rgba(39,54,91,.08);
transition:.2s;
display:flex;
flex-direction:column;
}

.self-card:hover{
transform:translateY(-4px);
box-shadow:0 20px 42px rgba(39,54,91,.14);
}

.self-card .self-image{
height:180px;
background-size:cover;
background-position:center;
border-radius:18px;
margin:18px 18px 0;
display:block;
}

.self-card h3{
padding:18px 18px 8px;
margin:0;
font-size:21px;
line-height:1.3;
color:#0f2942;
}

.self-card p{
padding:0 18px;
margin:0 0 16px;
line-height:1.5;
color:#5c6b82;
}

.self-card a{
display:inline-block;
padding:0 18px 20px;
font-weight:800;
color:#7c3aed;
margin-top:auto;
}

.self-help-button{
text-align:center;
margin-top:26px;
}

.image-breathing,
.image1{
background-image:
linear-gradient(135deg,rgba(41,198,192,.16),rgba(139,92,246,.14)),
url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?auto=format&fit=crop&w=1000&q=80');
}

.image-grounding,
.image2{
background-image:
linear-gradient(135deg,rgba(41,198,192,.16),rgba(139,92,246,.14)),
url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?auto=format&fit=crop&w=1000&q=80');
}

.image-muscle,
.image3{
background-image:
linear-gradient(135deg,rgba(41,198,192,.16),rgba(139,92,246,.14)),
url('https://images.unsplash.com/photo-1515377905703-c4788e51af15?auto=format&fit=crop&w=1000&q=80');
}

.image-mindfulness,
.image4{
background-image:
linear-gradient(135deg,rgba(41,198,192,.16),rgba(139,92,246,.14)),
url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1000&q=80');
}

/* Article page */

.article-detail{
max-width:1100px;
margin:0 auto;
}

.article-detail-card{
background:rgba(255,255,255,.94);
border:1px solid rgba(219,229,241,.76);
border-radius:28px;
box-shadow:0 18px 45px rgba(39,54,91,.12);
overflow:hidden;
}

.article-hero-image{
height:340px;
background-size:cover;
background-position:center;
}

.article-content{
padding:34px;
}

.article-content h1{
margin:0 0 14px;
font-size:36px;
line-height:1.2;
color:#0f2942;
}

.article-content .article-lead{
font-size:19px;
line-height:1.65;
color:#52657f;
margin:0 0 24px;
}

.article-content h2{
font-size:25px;
color:#0f2942;
margin:28px 0 14px;
}

.article-content p,
.article-content li{
font-size:18px;
line-height:1.7;
color:#334155;
}

.article-content ol,
.article-content ul{
padding-left:24px;
}

.article-note{
background:#f8fbff;
border:1px solid #dbe5f1;
border-radius:18px;
padding:20px;
margin:24px 0;
}

.article-actions{
display:flex;
gap:14px;
flex-wrap:wrap;
margin-top:28px;
}

@media(max-width:1200px){
.self-help-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:760px){
.self-help-grid{
grid-template-columns:1fr;
}

.article-hero-image{
height:230px;
}

.article-content{
padding:22px;
}

.article-content h1{
font-size:28px;
}
}


/* ===== AUTH + TEACHER CONFIRMATION ===== */
.nav-primary{background:linear-gradient(135deg,var(--turquoise),var(--purple));color:#fff;border:none;}
.nav-status{display:flex;align-items:center;padding:12px 16px;border-radius:12px;background:#eefbf7;color:#0f8b5f;font-weight:800;border:1px solid #b9f2d8;}
.auth-page{display:flex;justify-content:center;align-items:flex-start;min-height:calc(100vh - 170px);padding-top:34px;}
.auth-card{width:min(100%,520px);background:rgba(255,255,255,.94);border:1px solid rgba(219,229,241,.8);border-radius:28px;box-shadow:var(--shadow);padding:34px;}
.auth-card-wide{width:min(100%,620px);}
.auth-card h2{margin:0 0 10px;color:var(--ink);font-size:32px;text-align:center;}
.auth-card p{margin:0 0 24px;color:#52657f;text-align:center;line-height:1.5;}
.auth-form{display:grid;gap:16px;}
.auth-form label{display:grid;gap:8px;color:#334155;font-weight:800;}
.auth-form input{width:100%;padding:15px 16px;border:1px solid #dbe5f1;border-radius:14px;background:#fff;font:inherit;color:#172033;}
.auth-error{padding:14px 16px;border-radius:14px;background:#fff1f3;border:1px solid #ffc9d2;color:#d71f46;font-weight:800;margin-bottom:18px;}
.auth-bottom{text-align:center;margin-top:18px;color:#52657f;}
.auth-bottom a{color:#7c3aed;font-weight:900;}
.teacher-check{grid-template-columns:26px 1fr!important;align-items:flex-start;background:#f8fbff;border:2px solid #dbe5f1;border-radius:16px;padding:14px;cursor:pointer;}
.teacher-check input{width:22px;height:22px;accent-color:var(--purple);margin-top:3px;}
.teacher-check small{display:block;color:#64748b;line-height:1.45;margin-top:5px;font-weight:600;}
.access-note{padding:18px;border-radius:18px;background:#fff8e6;border:1px solid #fde68a;color:#9a5a00;margin-top:18px;line-height:1.55;}
.admin-actions{display:flex;gap:10px;flex-wrap:wrap;}
.admin-small-form{display:inline;}
.admin-table td,.admin-table th{padding:12px 14px;border-bottom:1px solid #e5edf7;text-align:left;}
.admin-table{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden;}
.badge-pending{background:#fff4df;color:#d97706;padding:7px 10px;border-radius:10px;font-weight:800;}
.badge-ok{background:#dcfce7;color:#15803d;padding:7px 10px;border-radius:10px;font-weight:800;}
.badge-no{background:#ffe4e6;color:#e11d48;padding:7px 10px;border-radius:10px;font-weight:800;}
.youtube-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.youtube-card{background:#fff;border:1px solid #e5edf7;border-radius:22px;overflow:hidden;box-shadow:var(--shadow-soft);}
.youtube-card iframe{width:100%;height:230px;border:0;display:block;}
.youtube-content{padding:18px;}
.youtube-content h3{margin:0 0 10px;color:#0f2942;font-size:20px;}
.youtube-content p{margin:0;color:#52657f;line-height:1.5;}
.image-safeplace{background-image:linear-gradient(135deg,rgba(41,198,192,.16),rgba(139,92,246,.14)),url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1000&q=80');}
.image-workday{background-image:linear-gradient(135deg,rgba(41,198,192,.16),rgba(139,92,246,.14)),url('https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1000&q=80');}
@media(max-width:1100px){.youtube-grid{grid-template-columns:1fr;}.nav-status{width:100%;justify-content:center;}}

/* ===== SafeMind222 portals and CMS ===== */
.portal-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:16px;margin:22px 0}.kpi-card{background:#fff;border-radius:22px;padding:20px;box-shadow:0 16px 40px rgba(103,90,200,.12);border:1px solid rgba(150,140,255,.16)}.kpi-card b{display:block;font-size:32px;color:#5d55d9}.kpi-card span{color:#65708a}.portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;margin:22px 0}.portal-grid.two{grid-template-columns:repeat(auto-fit,minmax(380px,1fr))}.portal-card{background:#fff;border-radius:24px;padding:22px;box-shadow:0 16px 40px rgba(103,90,200,.12);border:1px solid rgba(150,140,255,.16)}.portal-card h3{margin:0 0 10px;color:#293057}.portal-card p,.muted{color:#697390;line-height:1.55}.portal-card.locked{opacity:.78}.line-chart{height:180px;display:flex;align-items:flex-end;gap:14px;padding:16px;border-radius:18px;background:linear-gradient(180deg,rgba(115,214,219,.13),rgba(151,118,255,.10))}.line-chart span{flex:1;min-height:20px;border-radius:12px 12px 4px 4px;background:linear-gradient(180deg,#8b7cff,#45d6cf);box-shadow:0 8px 18px rgba(72,144,210,.2)}.bar-row{display:grid;grid-template-columns:120px 1fr 48px;gap:12px;align-items:center;margin:14px 0}.bar-row label{color:#4d5675}.bar{height:14px;border-radius:999px;background:#eef1fb;overflow:hidden}.bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#58d9d2,#9280ff)}.check-list{margin:0;padding-left:22px;color:#53617e;line-height:1.7}.admin-table{width:100%;border-collapse:collapse;margin-top:16px;background:#fff;border-radius:18px;overflow:hidden}.admin-table th,.admin-table td{padding:12px 14px;border-bottom:1px solid #edf0f7;text-align:left;vertical-align:top}.admin-table th{background:rgba(130,125,255,.10);color:#343b60}.admin-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-small-form{display:inline}.auth-form textarea,.auth-form select{width:100%;border:1px solid #dfe5f3;border-radius:14px;padding:12px 14px;font:inherit;background:#fff;box-sizing:border-box}.demo-logins{margin-top:18px;padding:14px;border-radius:16px;background:rgba(91,216,209,.12);color:#4f5872;line-height:1.5}.article-video{margin:18px 0}.article-video iframe{height:330px}.article-text{line-height:1.75;color:#44506f;font-size:17px}.youtube-card iframe{width:100%;height:220px;border:0;border-radius:18px 18px 0 0}.badge-pending,.badge-ok,.badge-no{display:inline-block;border-radius:99px;padding:5px 10px;font-size:13px}.badge-pending{background:#fff5d6;color:#946300}.badge-ok{background:#ddfbef;color:#05794a}.badge-no{background:#ffe2e2;color:#a23232}@media(max-width:760px){.portal-grid.two{grid-template-columns:1fr}.bar-row{grid-template-columns:1fr}.topbar{gap:12px}.top-actions{justify-content:flex-start}.article-video iframe{height:220px}}

/* Incident consultation system */
.incident-list{display:grid;gap:18px;margin-top:20px}.incident-card{background:#fff;border:1px solid rgba(100,116,139,.16);border-radius:22px;padding:20px;box-shadow:0 12px 30px rgba(54,68,105,.08)}.incident-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.incident-head h3{margin:0;color:#0b3a5b}.incident-head p{margin:6px 0 0;color:#526178}.incident-meta{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.incident-meta span{background:#f3f7ff;border:1px solid #dce8fb;border-radius:999px;padding:7px 12px;color:#42526c;font-size:14px}.incident-body,.incident-answer{background:#f8fbff;border-radius:16px;padding:14px 16px;margin-top:12px}.incident-answer{background:linear-gradient(135deg,rgba(41,203,190,.12),rgba(139,92,246,.10));border:1px solid rgba(116,92,246,.14)}.incident-body p,.incident-answer p{margin:8px 0 0;line-height:1.55}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:8px 12px;font-weight:700;font-size:13px}.badge-new{background:#fff3d8;color:#9a5b00}.badge-work{background:#dff7ff;color:#056b88}.badge-wait{background:#eee7ff;color:#5a32c9}.badge-closed{background:#e7f8ee;color:#147a3b}.timeline{margin-top:14px;border-top:1px dashed #d6deee;padding-top:12px}.timeline-row{display:grid;grid-template-columns:160px 1fr;gap:10px;padding:8px 0;color:#526178}.timeline-row span{color:#7b879c}.timeline-row strong{color:#20304f}.timeline-row em{grid-column:2;color:#667085;font-style:normal}.incident-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;margin-top:16px}.incident-actions form{margin:0}.reply-form{flex:1;min-width:280px}.reply-form textarea,.incident-form textarea,.incident-form select{width:100%;border:1px solid #d6e0f2;border-radius:16px;padding:14px;font:inherit;background:#fff;box-sizing:border-box}.reply-form button{margin-top:10px}.teacher-incidents .incident-card{border-left:5px solid #39c8c3}@media(max-width:720px){.incident-head{flex-direction:column}.timeline-row{grid-template-columns:1fr}.timeline-row em{grid-column:1}.incident-actions{flex-direction:column}.reply-form{width:100%;min-width:0}}

/* User analytics and incident UI fixes */
.badge-urgent{background:#ffe5e8;color:#b91c1c;border:1px solid rgba(185,28,28,.16)}
.user-line-chart span{min-width:28px}
.portal-card .admin-table{margin-top:16px}
.kpi-card b{word-break:break-word}


/* Legal pages and footer links */
.footer{
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
    text-align:center;
    padding:28px 20px;
}
.footer-links{
    display:flex;
    flex-wrap:wrap;
    gap:10px 16px;
    justify-content:center;
    font-size:14px;
}
.footer-links a{
    color:inherit;
    text-decoration:none;
    opacity:.82;
}
.footer-links a:hover{
    opacity:1;
    text-decoration:underline;
}
.legal-page{
    max-width:1050px;
}
.legal-card{
    padding:36px;
}
.legal-badge{
    display:inline-flex;
    padding:8px 14px;
    border-radius:999px;
    background:linear-gradient(135deg,rgba(41,199,216,.15),rgba(123,97,255,.15));
    color:#4c47a8;
    font-weight:700;
    margin-bottom:12px;
}
.legal-lead{
    font-size:18px;
    opacity:.82;
    margin-bottom:24px;
}
.legal-section{
    background:rgba(255,255,255,.66);
    border:1px solid rgba(123,97,255,.12);
    border-radius:22px;
    padding:20px 22px;
    margin:16px 0;
    box-shadow:0 12px 30px rgba(50,50,120,.06);
}
.legal-section h3{
    margin:0 0 10px;
    color:#2f3370;
}
.legal-section p{
    margin:0;
    line-height:1.65;
}
.teacher-check a{
    color:#5b55d8;
    font-weight:700;
}
@media (max-width:700px){
    .legal-card{padding:24px 18px;}
    .footer-links{flex-direction:column;gap:8px;}
}


/* SafeMind222 update: average analytics, material actions and anonymous trend chart */
.attempt-average-box{margin:18px 0;padding:18px 20px;border-radius:20px;background:linear-gradient(135deg,rgba(41,199,216,.13),rgba(123,97,255,.12));border:1px solid rgba(123,97,255,.18);color:#183153;box-shadow:0 10px 30px rgba(61,90,180,.08)}
.attempt-average-box strong{display:block;margin-bottom:6px;color:#073b5d}.attempt-average-box span{display:block;margin-top:6px;color:#60708f;font-size:14px}
.material-actions{margin:18px 0 24px;display:flex;gap:12px;flex-wrap:wrap}.anonymous-chart-wrap{background:linear-gradient(180deg,#fff,rgba(244,248,255,.86));border:1px solid rgba(123,97,255,.14);border-radius:22px;padding:16px;overflow:hidden}.chart-title{font-weight:800;color:#063b5a;margin-bottom:8px}.anonymous-trend-chart{width:100%;height:auto;min-height:230px}.chart-axis{stroke:#0f172a;stroke-width:2;stroke-linecap:round}.chart-line{stroke:#15213d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.chart-label{fill:#60708f;font-size:13px;font-weight:700}.chart-legend{display:flex;gap:14px;align-items:center;color:#60708f;font-size:14px;font-weight:700}.legend-dot{width:12px;height:12px;border-radius:50%;display:inline-block}.legend-dot.low{background:#22c55e}.legend-dot.mid{background:#facc15}.legend-dot.high{background:#ef4444}.portal-card .anonymous-chart-wrap{padding:10px}.portal-card .chart-title{font-size:14px}.portal-card .chart-legend{font-size:12px}.side-support{margin-top:16px;padding:16px;border-radius:18px;background:rgba(255,255,255,.68);border:1px solid rgba(123,97,255,.13)}
@media(max-width:760px){.anonymous-trend-chart{min-height:180px}.material-actions,.portal-actions{flex-direction:column}.material-actions .btn,.portal-actions .btn{width:100%;text-align:center}}

/* Incident continuous chat and teacher close/reopen controls */
.incident-create-card{max-width:860px;margin-left:auto;margin-right:auto}
.incident-submit-btn{width:100%;border:none;border-radius:18px;padding:16px 22px;font-size:17px;font-weight:800;cursor:pointer;color:#fff;background:linear-gradient(135deg,#29c7d8,#7b61ff);box-shadow:0 10px 25px rgba(123,97,255,.28);transition:.25s ease;margin-top:16px}.incident-submit-btn:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(123,97,255,.35);background:linear-gradient(135deg,#22bfd0,#6d54ff)}.incident-submit-btn:active{transform:scale(.98)}.incident-submit-btn span{display:flex;align-items:center;justify-content:center;gap:10px}.incident-submit-btn span:before{content:"✉";font-size:20px}
.incident-chat{margin-top:14px;border-radius:18px;background:linear-gradient(180deg,rgba(248,251,255,.92),rgba(255,255,255,.94));border:1px solid rgba(123,97,255,.12);padding:14px;display:grid;gap:10px}.chat-bubble{max-width:82%;border-radius:18px;padding:11px 13px;box-shadow:0 8px 20px rgba(53,67,120,.08);line-height:1.5}.chat-bubble p{margin:6px 0 0}.chat-teacher{justify-self:start;background:#ffffff;border:1px solid rgba(34,197,94,.18)}.chat-psychologist{justify-self:end;background:linear-gradient(135deg,rgba(41,199,216,.16),rgba(123,97,255,.14));border:1px solid rgba(123,97,255,.16)}.chat-meta{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:12px;color:#667085}.chat-meta span{font-weight:800;color:#253153}.chat-meta em{font-style:normal;color:#7b879c}.incident-teacher-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;margin-top:14px}.teacher-reply-form{flex:1;min-width:300px}.inline-action-form{margin:0}.closed-note{padding:12px 14px;border-radius:16px;background:#f6f1ff;border:1px solid rgba(123,97,255,.16);color:#4b3a91;font-weight:700}.compact-timeline .timeline-row{padding:6px 0}.badge-wait{background:#eee7ff;color:#5a32c9}.teacher-incidents .chat-psychologist{justify-self:start}.teacher-incidents .chat-teacher{justify-self:end;background:linear-gradient(135deg,rgba(41,199,216,.14),rgba(123,97,255,.12));border-color:rgba(123,97,255,.16)}
@media(max-width:720px){.chat-bubble{max-width:100%}.incident-teacher-actions{flex-direction:column}.teacher-reply-form{width:100%;min-width:0}.inline-action-form,.inline-action-form .btn{width:100%}}

/* Compact polished test management and result analytics */
.compact-page{max-width:1180px;margin:0 auto;padding:22px 18px 34px;}
.compact-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 26px;margin-bottom:16px;}
.compact-hero h2{margin:0 0 6px;font-size:26px;line-height:1.15;}
.compact-hero p{margin:0;font-size:14px;line-height:1.5;max-width:820px;}
.manage-tests-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:16px;align-items:start;}
.manage-form-card,.manage-list-card{padding:20px;border-radius:22px;}
.manage-form-card h3,.manage-list-card h3{margin:0 0 12px;font-size:20px;}
.compact-form{gap:10px;}
.compact-form label{font-size:14px;font-weight:700;}
.compact-form input,.compact-form select,.compact-form textarea{margin-top:6px;min-height:42px;font-size:14px;border-radius:14px;}
.compact-form textarea{min-height:auto;resize:vertical;}
.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.list-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.list-card-head span{font-size:13px;color:#667085;background:rgba(123,97,255,.08);border:1px solid rgba(123,97,255,.16);padding:7px 10px;border-radius:999px;}
.tests-list-compact{display:flex;flex-direction:column;gap:10px;max-height:720px;overflow:auto;padding-right:4px;}
.test-row-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 14px;border-radius:16px;background:rgba(255,255,255,.82);border:1px solid rgba(120,145,180,.18);box-shadow:0 8px 22px rgba(21,39,70,.05);}
.test-row-main{min-width:0;display:flex;flex-direction:column;gap:4px;}
.test-row-main strong{font-size:14px;color:#0b3352;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.test-row-main span{font-size:12.5px;color:#667085;}
.test-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;}
.btn-mini{padding:7px 9px!important;font-size:12px!important;border-radius:11px!important;min-height:auto!important;}
.inline-form{display:inline-flex;margin:0;}
.status-pill{display:inline-flex;align-items:center;padding:6px 8px;border-radius:999px;font-size:11.5px;font-weight:800;white-space:nowrap;}
.status-pill.ok{background:rgba(34,197,94,.13);color:#128047;}
.status-pill.neutral{background:rgba(100,116,139,.12);color:#475569;}
.compact-test-layout{gap:16px;grid-template-columns:250px minmax(0,1fr) 270px;}
.compact-panel{padding:14px;}
.compact-panel .side-link{padding:10px 11px;border-radius:14px;font-size:13.5px;}
.compact-test-card{padding:22px;border-radius:24px;}
.compact-test-card .question-box h2{font-size:22px;line-height:1.25;margin-bottom:16px;}
.compact-test-card .option{padding:12px 14px;border-radius:14px;margin-bottom:9px;font-size:14px;}
.result-mini-analytics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0 12px;}
.result-mini-card{padding:13px 14px;border-radius:16px;background:linear-gradient(135deg,rgba(41,198,192,.10),rgba(139,92,246,.09));border:1px solid rgba(123,97,255,.15);}
.result-mini-card span{display:block;font-size:12.5px;color:#667085;margin-bottom:3px;}
.result-mini-card strong{font-size:20px;color:#0b3352;}
.result-chart-panel{margin-top:14px;padding:14px;border-radius:18px;background:rgba(255,255,255,.72);border:1px solid rgba(120,145,180,.18);}
.anonymous-chart-wrap{width:100%;}
.chart-title{font-size:15px;font-weight:800;color:#0b3352;margin-bottom:8px;}
.anonymous-trend-chart{width:100%;height:auto;display:block;background:linear-gradient(180deg,rgba(255,255,255,.8),rgba(245,249,255,.55));border-radius:14px;}
.chart-axis{stroke:#cbd5e1;stroke-width:1.2;}
.chart-line{stroke:#7b61ff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 4px 8px rgba(123,97,255,.25));}
.chart-label{font-size:12px;fill:#64748b;}
.chart-legend{display:flex;gap:14px;align-items:center;justify-content:center;margin-top:8px;font-size:12.5px;color:#64748b;}
.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:4px;}
.legend-dot.low{background:#22c55e}.legend-dot.mid{background:#facc15}.legend-dot.high{background:#ef4444}
.attempt-average-box{padding:13px 14px;border-radius:16px;background:rgba(250,204,21,.11);border:1px solid rgba(250,204,21,.28);font-size:14px;line-height:1.45;margin-top:14px;}
.attempt-average-box span{display:block;color:#64748b;font-size:12.5px;margin-top:4px;}
@media (max-width: 980px){
  .manage-tests-layout,.compact-test-layout{grid-template-columns:1fr;}
  .compact-hero{flex-direction:column;align-items:flex-start;}
  .two-fields,.result-mini-analytics{grid-template-columns:1fr;}
  .test-row-card{grid-template-columns:1fr;}
  .test-row-actions{justify-content:flex-start;}
}

/* ===== RESULT PAGE: COMPACT FULL-WIDTH UPDATE ===== */
.result-page{max-width:1480px;width:min(1480px,calc(100% - 32px));}
.result-two-column{display:grid;grid-template-columns:minmax(300px,1fr) minmax(680px,2fr);gap:18px;align-items:stretch;margin-bottom:18px;}
.result-summary-card{grid-column:2;}
.result-dynamics-card{grid-column:1;}
.premium-result-summary{padding:28px!important;}
.premium-result-layout{grid-template-columns:minmax(0,1.25fr) 340px!important;gap:34px!important;}
.premium-gauge{width:340px!important;height:205px!important;}
.premium-gauge-arc{border-radius:340px 340px 0 0!important;}
.premium-gauge-arc:after{left:44px!important;right:44px!important;height:140px!important;border-radius:280px 280px 0 0!important;}
.premium-gauge-center strong{font-size:58px!important;}
.premium-recommend-grid{grid-template-columns:repeat(4,minmax(145px,1fr))!important;}
.result-two-column .result-card{margin-bottom:0;}
.result-dynamics-card,.result-summary-card{min-height:520px;display:flex;flex-direction:column;}
.result-dynamics-card .wide-chart-panel{flex:1;display:flex;align-items:stretch;}
.result-dynamics-card .chart-box,.result-dynamics-card svg{min-height:330px;}
.result-score-compact{gap:18px;align-items:center;}
.compact-text{font-size:14px;margin:0 0 12px;line-height:1.45;}
.dynamic-mini{margin-top:14px;grid-template-columns:repeat(3,1fr);}
.compact-psy-panel{margin-top:16px;padding:14px;border-radius:20px;}
.compact-psy-panel textarea{min-height:86px;margin:10px 0 0;}
.result-support-grid{display:grid;grid-template-columns:1fr;gap:18px;margin-bottom:18px;}
.compact-video-grid{grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;}
.compact-video-grid .video-preview{height:118px;}
.compact-video-grid .video-info{padding:12px;}
.compact-video-grid .video-info h3{font-size:14px;line-height:1.25;}
.compact-video-grid .video-info p{font-size:12px;}
.result-card{margin-bottom:18px;}
.footer{padding:18px 24px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;}
.footer-links{display:flex;gap:10px 14px;flex-wrap:wrap;align-items:center;justify-content:flex-end;font-size:13px;}
.footer-links a{color:#42526e;text-decoration:none;border-bottom:1px solid transparent;}
.footer-links a:hover{color:#6d54ff;border-color:#6d54ff;}
@media(max-width:1150px){.result-two-column{grid-template-columns:1fr}.result-summary-card,.result-dynamics-card{grid-column:auto}.result-dynamics-card,.result-summary-card{min-height:auto}.compact-video-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.result-page{width:min(100% - 18px,1480px)}.compact-video-grid{grid-template-columns:1fr}.dynamic-mini{grid-template-columns:1fr}.footer{align-items:flex-start}.footer-links{justify-content:flex-start}}


/* Compact user management and profile pages */
.compact-page{padding-top:20px;}
.compact-hero{padding:20px 24px;margin-bottom:16px;}
.compact-hero h2{font-size:28px;margin-bottom:6px;}
.compact-card{padding:20px;}
.kpi-compact{gap:14px;margin:14px 0 18px;}
.kpi-compact .kpi-card{padding:16px 18px;min-height:auto;}
.user-admin-grid{grid-template-columns:minmax(340px, .85fr) minmax(520px, 1.15fr);align-items:start;gap:18px;}
.compact-form{gap:12px;}
.compact-form label{font-size:14px;gap:6px;}
.profile-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.table-scroll{overflow:auto;max-height:620px;border-radius:18px;border:1px solid rgba(130,150,200,.16);}
.compact-table{font-size:13px;min-width:760px;}
.compact-table th,.compact-table td{padding:10px 12px;vertical-align:middle;}
.btn-mini{padding:7px 10px;font-size:12px;border-radius:10px;}
.btn-danger{background:linear-gradient(135deg,#ff5b78,#ef4444);color:#fff;border:0;box-shadow:0 8px 18px rgba(239,68,68,.18);}
.role-pill{display:inline-flex;align-items:center;white-space:nowrap;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#eef2ff;color:#334155;}
.role-admin{background:#ede9fe;color:#5b21b6;}
.role-psychologist{background:#dcfce7;color:#166534;}
.role-teacher{background:#e0f2fe;color:#075985;}
.role-teacher_pending{background:#fff7ed;color:#c2410c;}
.role-user{background:#f1f5f9;color:#475569;}
.notice{padding:12px 16px;border-radius:16px;margin:12px 0;font-weight:700;}
.success-notice{background:#dcfce7;color:#166534;border:1px solid #86efac;}
.profile-layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px;align-items:start;}
.profile-summary-card{text-align:center;padding:22px;}
.profile-avatar{width:76px;height:76px;border-radius:24px;margin:0 auto 12px;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900;color:#fff;background:linear-gradient(135deg,#29c7d8,#7b61ff);box-shadow:0 14px 28px rgba(123,97,255,.22);}
.profile-summary-card h3{margin:6px 0 4px;font-size:22px;}
.profile-summary-card p{margin:4px 0 10px;color:#516179;}
.profile-info-box{margin:16px 0;padding:12px;border-radius:16px;background:#f8fbff;border:1px solid rgba(130,150,200,.18);text-align:left;font-size:14px;line-height:1.6;}
.profile-about{padding:12px;border-radius:16px;background:linear-gradient(135deg,rgba(41,199,216,.08),rgba(123,97,255,.08));text-align:left;line-height:1.55;font-size:14px;}
@media(max-width:980px){.user-admin-grid,.profile-layout{grid-template-columns:1fr}.profile-mini-grid{grid-template-columns:1fr}.compact-table{min-width:680px}}


/* SafeMind PWA QR block */
.pwa-install-block{margin:28px 0}.pwa-install-card{display:grid;grid-template-columns:1fr 230px;gap:22px;align-items:center;background:linear-gradient(135deg,#ecfeff,#f5edff);border:1px solid #d9e4ff;border-radius:28px;padding:28px;box-shadow:0 22px 60px rgba(84,70,190,.12)}.pwa-pill{display:inline-flex;padding:8px 14px;border-radius:999px;background:#ede9fe;color:#6d42e8;font-weight:800;margin-bottom:10px}.pwa-install-card h2{font-size:34px;margin:6px 0 12px;color:#07384d}.pwa-install-card p{font-size:17px;line-height:1.55;color:#536174}.pwa-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.qr-card{background:#fff;border:1px solid #dfe6f5;border-radius:24px;padding:16px;text-align:center;box-shadow:0 12px 30px rgba(55,72,120,.12)}.qr-card img{width:170px;height:170px;display:block;margin:0 auto 10px}.qr-card strong{display:block;color:#07384d;font-size:18px}.qr-card span{display:block;color:#65758d;font-size:12px;margin-top:4px;word-break:break-all}@media(max-width:760px){.pwa-install-card{grid-template-columns:1fr;padding:22px}.qr-card img{width:190px;height:190px}.pwa-buttons .btn{width:100%;justify-content:center}}


/* ===== BEAUTIFUL FOOTER WITH PWA QR ===== */
.site-footer{
  max-width:1500px;
  margin:34px auto 0;
  padding:42px 40px 28px;
  border-radius:36px 36px 0 0;
  border:1px solid rgba(219,229,241,.78);
  background:
    radial-gradient(circle at 4% 8%, rgba(41,198,192,.18), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(139,92,246,.20), transparent 38%),
    rgba(255,255,255,.82);
  box-shadow:0 -18px 50px rgba(39,54,91,.10);
  backdrop-filter:blur(18px);
  color:#172033;
}
.footer-main{
  display:grid;
  grid-template-columns:1.45fr 1fr 1fr 1fr;
  gap:32px;
  align-items:start;
}
.footer-brand h2{margin:12px 0 10px;color:#061e38;font-size:28px;}
.footer-brand p{margin:0;color:#52647d;line-height:1.7;max-width:360px;}
.footer-logo{
  width:58px;height:58px;border-radius:19px;
  display:grid;place-items:center;font-size:31px;font-weight:900;
  color:#1aa6a1;
  background:linear-gradient(#fff,#fff) padding-box,linear-gradient(145deg,var(--turquoise),var(--purple)) border-box;
  border:3px solid transparent;
  box-shadow:0 12px 28px rgba(108,87,255,.16);
}
.footer-social{display:flex;gap:12px;margin-top:22px;}
.footer-social span{
  width:40px;height:40px;border-radius:14px;display:grid;place-items:center;
  background:#fff;color:var(--purple);font-weight:900;box-shadow:var(--shadow-soft);
}
.footer-col h3{margin:5px 0 18px;color:#111827;font-size:20px;}
.footer-col h3:after{content:"";display:block;width:34px;height:3px;background:linear-gradient(90deg,var(--turquoise),var(--purple));border-radius:99px;margin-top:12px;}
.footer-col a{display:block;color:#31415b;margin:0 0 14px;font-weight:650;transition:.18s;}
.footer-col a:hover{color:var(--purple);transform:translateX(3px);}
.footer-pwa-card{
  margin-top:34px;
  display:grid;
  grid-template-columns:1.05fr 1.35fr 230px 1fr;
  gap:28px;
  align-items:center;
  padding:24px;
  border:1px solid rgba(219,229,241,.82);
  border-radius:28px;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(246,241,255,.9));
  box-shadow:var(--shadow-soft);
}
.footer-pwa-illustration{
  min-height:170px;border-radius:24px;
  display:grid;place-items:center;
  background:radial-gradient(circle at 50% 30%,rgba(139,92,246,.18),transparent 55%),linear-gradient(135deg,#eefcff,#f3edff);
  overflow:hidden;position:relative;
}
.footer-pwa-illustration:before,.footer-pwa-illustration:after{content:"";position:absolute;border-radius:50%;background:rgba(139,92,246,.15);}
.footer-pwa-illustration:before{width:110px;height:110px;left:22px;bottom:-34px;}
.footer-pwa-illustration:after{width:76px;height:76px;right:28px;top:20px;}
.school-icon{width:92px;height:92px;border-radius:28px;display:grid;place-items:center;background:linear-gradient(135deg,var(--turquoise),var(--purple));color:#fff;font-size:48px;box-shadow:0 18px 42px rgba(108,87,255,.24);z-index:1;}
.footer-pill{display:inline-flex;padding:7px 13px;border-radius:99px;background:#efe7ff;color:#6d45d8;font-weight:900;margin-bottom:10px;}
.footer-pwa-text h3{font-size:24px;margin:0 0 10px;color:#0f2942;}
.footer-pwa-text p{margin:0;color:#52647d;line-height:1.65;}
.footer-pwa-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px;}
.footer-qr{text-align:center;background:#fff;border-radius:22px;padding:14px;box-shadow:var(--shadow-soft);border:1px solid rgba(219,229,241,.9);}
.footer-qr img{width:170px;height:170px;object-fit:contain;display:block;margin:0 auto 10px;}
.footer-qr b{display:block;color:#0f2942;margin-bottom:4px;}
.footer-qr small{font-size:11px;color:#708197;word-break:break-all;}
.footer-benefits{list-style:none;margin:0;padding:0;display:grid;gap:12px;color:#31415b;font-weight:700;}
.footer-benefits li{display:flex;gap:10px;align-items:center;}
.footer-benefits li:before{content:"✓";width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#efe7ff;color:var(--purple);font-weight:900;}
.footer-bottom{border-top:1px solid rgba(219,229,241,.9);margin-top:30px;padding-top:20px;display:grid;grid-template-columns:1fr 1.6fr 1fr;gap:20px;color:#61718a;align-items:center;}
.footer-legal{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;}
.footer-legal a{color:#61718a;font-weight:650;}
.footer-contact{display:grid;gap:6px;justify-items:end;}

@media (max-width: 1100px){
  .footer-main{grid-template-columns:1fr 1fr;}
  .footer-pwa-card{grid-template-columns:1fr 1fr;}
  .footer-benefits{grid-column:1 / -1;grid-template-columns:1fr 1fr;}
}
@media (max-width: 760px){
  .site-footer{margin-top:24px;padding:24px 18px 96px;border-radius:28px 28px 0 0;}
  .footer-main{grid-template-columns:1fr;gap:20px;}
  .footer-col{padding-top:10px;border-top:1px solid rgba(219,229,241,.8);}
  .footer-pwa-card{grid-template-columns:1fr;gap:18px;padding:18px;border-radius:24px;}
  .footer-pwa-illustration{min-height:120px;}
  .school-icon{width:72px;height:72px;font-size:36px;}
  .footer-qr img{width:150px;height:150px;}
  .footer-benefits{grid-template-columns:1fr;}
  .footer-bottom{grid-template-columns:1fr;text-align:center;}
  .footer-contact{justify-items:center;}
  .footer-legal{justify-content:center;}
}

/* Visual tests: IQ, associations, colors */
.test-card{position:relative;overflow:hidden;border-top:4px solid var(--test-accent, var(--turquoise));}
.test-card-preview{width:76px;height:76px;border-radius:20px;object-fit:cover;box-shadow:0 12px 28px rgba(39,54,91,.14);background:#fff;flex:0 0 auto;}
.visual-test-card{border-top:6px solid var(--test-accent,#29c6c0);}
.visual-test-head{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:18px;align-items:center;padding:18px;border-radius:22px;margin-bottom:18px;border:1px solid rgba(148,163,184,.22);}
.visual-test-head h1{margin:10px 0 8px;font-size:28px;line-height:1.1;color:var(--ink);}
.visual-test-head p{margin:0;color:#5b6b84;line-height:1.45;}
.visual-test-head img{width:100%;height:145px;object-fit:cover;border-radius:20px;box-shadow:0 16px 34px rgba(39,54,91,.16);background:#fff;}
.visual-placeholder{display:flex;align-items:center;justify-content:center;height:145px;border-radius:20px;background:linear-gradient(135deg,var(--test-accent,#29c6c0),var(--test-secondary,#8b5cf6));color:white;}
.visual-placeholder svg{width:72px;height:72px;stroke:white;}
.visual-option{border-color:rgba(148,163,184,.35);}
.visual-option:hover,.visual-option:has(input:checked){border-color:var(--test-accent,#29c6c0);box-shadow:0 0 0 4px color-mix(in srgb, var(--test-accent,#29c6c0) 18%, transparent);}
.visual-option input{accent-color:var(--test-accent,#29c6c0);}
.progress span,#bar{background:linear-gradient(90deg,var(--test-accent,#29c6c0),var(--test-secondary,#8b5cf6));}
.manage-form-card input[type="color"]{height:44px;padding:4px;border-radius:12px;cursor:pointer;}
.manage-form-card input[type="file"]{padding:12px;background:#fff;}
@media(max-width:900px){.visual-test-head{grid-template-columns:1fr}.visual-test-head img,.visual-placeholder{height:180px}.test-card-preview{width:62px;height:62px}}

/* Question builder for SafeMind tests */
.question-builder-head{margin:18px 0 10px;padding:14px 16px;border-radius:18px;background:linear-gradient(135deg,rgba(41,198,192,.12),rgba(139,92,246,.10));border:1px solid rgba(139,92,246,.16)}
.question-builder-head h4{margin:0 0 6px;color:#253064;font-size:18px}.question-builder-head p{margin:0;color:#64748b;font-size:13px;line-height:1.45}.question-builder{display:grid;gap:14px}.builder-question{padding:14px;border-radius:18px;background:#fff;border:1px solid #e5e7f2;box-shadow:0 8px 22px rgba(36,48,100,.06)}.builder-question textarea{min-height:58px}.builder-options{display:grid;gap:9px;margin-top:10px}.builder-option{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center}.builder-option .answer-text{width:100%;padding:11px 12px;border-radius:13px;border:1px solid #d9e2f1;background:#f9fbff}.correct-mark{display:flex;gap:5px;align-items:center;white-space:nowrap;font-size:12px;color:#475569;background:#f3f6ff;border:1px solid #dbe4ff;border-radius:999px;padding:8px 10px}.mode-single .multi-correct{display:none}.mode-multi .single-correct{display:none}.status-pill.ok{background:rgba(41,198,192,.16);color:#0f766e;border-color:rgba(41,198,192,.32)}
@media(max-width:760px){.builder-option{grid-template-columns:1fr}.correct-mark{width:max-content}}

/* SafeMind222: extended diagnostic constructor */
.builder-question[data-type="open"] .builder-options,
.builder-question[data-type="association"] .builder-options{display:none!important}
.builder-question[data-type="likert5"] .answer-row input[name*="question_images"],
.builder-question[data-type="scale10"] .answer-row input[name*="question_images"],
.builder-question[data-type="single4"] .answer-row input[type="color"],
.builder-question[data-type="multi"] .answer-row input[type="color"],
.builder-question[data-type="yesno"] .answer-row input[type="color"],
.builder-question[data-type="truefalse"] .answer-row input[type="color"]{display:none}
.builder-question[data-type="image_choice"] .answer-row input[type="color"]{display:none}
.builder-question[data-type="color_choice"] .answer-row input[name*="question_images"]{display:none}
.builder-question[data-type="multi"] .single-correct{display:none!important}
.builder-question:not([data-type="multi"]) .multi-correct{display:none!important}
.answer-row{grid-template-columns:1.2fr 54px 1fr auto auto;gap:8px;align-items:center}
.open-answer-field{width:100%;border:1px solid #dbe5f1;border-radius:18px;padding:16px;font:inherit;background:#fff;resize:vertical}
.scale-answer-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:10px;margin:16px 0}.scale-option input{display:none}.scale-option span{display:flex;align-items:center;justify-content:center;min-height:52px;border-radius:18px;border:1px solid #dbe5f1;background:#fff;font-weight:800;cursor:pointer}.scale-option input:checked+span{background:linear-gradient(135deg,var(--test-accent,#29c6c0),var(--test-secondary,#8b5cf6));color:#fff;border-color:transparent;box-shadow:0 12px 28px rgba(77,105,255,.22)}
.color-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0}.color-choice-option{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #dbe5f1;border-radius:20px;padding:14px;cursor:pointer}.color-choice-option input{accent-color:var(--test-accent,#29c6c0)}.color-dot{width:34px;height:34px;border-radius:50%;display:inline-block;box-shadow:inset 0 0 0 3px rgba(255,255,255,.7),0 8px 20px rgba(15,23,42,.14)}
.image-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:16px 0}.image-choice-option{background:#fff;border:1px solid #dbe5f1;border-radius:22px;padding:12px;display:grid;gap:9px;cursor:pointer}.image-choice-option img{width:100%;height:120px;object-fit:cover;border-radius:16px;background:#eef7fb}.image-choice-option input{accent-color:var(--test-accent,#29c6c0)}.image-choice-option span{font-weight:800}.answer-thumb{width:70px;height:54px;object-fit:cover;border-radius:12px;margin-right:8px}.mobile-scale-row{display:grid;gap:8px}
@media(max-width:760px){.answer-row{grid-template-columns:1fr}.answer-row input[type="color"]{width:100%}.image-choice-grid,.color-choice-grid{grid-template-columns:1fr}.scale-answer-row{grid-template-columns:repeat(2,1fr)}}

/* ===== SafeMind222: visual test constructor like mockup #1 ===== */
.constructor-body{background:linear-gradient(135deg,#f7fbff 0%,#fbf8ff 44%,#eefcf8 100%);}
.constructor-shell{width:min(1540px,calc(100% - 28px));margin:20px auto 44px;}
.constructor-top{display:flex;justify-content:space-between;align-items:center;gap:18px;background:rgba(255,255,255,.82);border:1px solid rgba(129,112,255,.14);border-radius:26px;padding:20px 22px;box-shadow:0 22px 50px rgba(63,49,160,.08);backdrop-filter:blur(12px);}
.constructor-top h2{margin:6px 0 6px;color:#10173a;font-size:28px;line-height:1.15}.constructor-top p{margin:0;color:#667085;font-size:14px}.crumbs{font-size:13px;color:#8a92a8}.save-dot{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#dcfce7;color:#16a34a;font-weight:900}.constructor-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}.constructor-grid{display:grid;grid-template-columns:300px minmax(0,1fr) 350px;gap:16px;margin-top:16px;align-items:start}.constructor-panel,.constructor-main-card,.constructor-list-card{background:rgba(255,255,255,.88);border:1px solid rgba(132,120,220,.16);border-radius:24px;box-shadow:0 20px 48px rgba(62,61,120,.08);backdrop-filter:blur(10px)}.constructor-panel{padding:16px}.constructor-panel h3,.constructor-list-card h3{margin:0;color:#10173a;font-size:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.mini-square{width:34px;height:34px;border-radius:12px;border:1px solid #d9def1;background:#fff;color:#6d54ff;font-size:20px;font-weight:900;cursor:pointer}.question-list{display:flex;flex-direction:column;gap:8px;max-height:620px;overflow:auto;padding-right:3px}.question-list-item{width:100%;text-align:left;border:1px solid #e5e9f7;background:#fff;border-radius:16px;padding:12px 12px;cursor:pointer;transition:.2s}.question-list-item:hover{border-color:#7b61ff;box-shadow:0 10px 24px rgba(123,97,255,.11);transform:translateY(-1px)}.question-list-item span{display:block;color:#17203f;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.question-list-item b{display:inline-flex;margin-top:7px;padding:4px 8px;border-radius:999px;background:#ede9fe;color:#6d54ff;font-size:11px}.add-question-line{width:100%;margin-top:12px;border:1px dashed #b9c3ee;background:#fbfdff;color:#6d54ff;border-radius:16px;padding:14px;font-weight:850;cursor:pointer}.constructor-main-card{padding:16px}.test-title-card{border:1px solid #e6eaf7;border-radius:22px;padding:18px;background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(247,246,255,.86));margin-bottom:14px}.test-title-card label,.constructor-panel label,.question-card label{display:block;color:#25304f;font-weight:800;font-size:13px}.test-title-card input,.test-title-card textarea,.constructor-panel input,.constructor-panel select,.constructor-panel textarea,.question-card input,.question-card select,.question-card textarea{width:100%;box-sizing:border-box;margin-top:7px;border:1px solid #dfe5f2;border-radius:14px;background:#fff;padding:12px 13px;font:inherit;color:#121936;outline:none;transition:.18s}.test-title-card input:focus,.test-title-card textarea:focus,.constructor-panel input:focus,.constructor-panel select:focus,.constructor-panel textarea:focus,.question-card input:focus,.question-card select:focus,.question-card textarea:focus{border-color:#7b61ff;box-shadow:0 0 0 4px rgba(123,97,255,.10)}.test-title-card input{font-size:22px;font-weight:900}.test-meta-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.test-meta-row span{display:inline-flex;gap:6px;align-items:center;border-radius:999px;background:#f1efff;color:#667085;padding:8px 11px;font-size:12.5px}.test-meta-row b{color:#6d54ff}.editor-tabs{display:flex;gap:8px;align-items:center;border:1px solid #e6eaf7;background:#fff;border-radius:16px;padding:6px;margin-bottom:10px}.editor-tabs button{border:0;background:transparent;border-radius:12px;padding:10px 13px;color:#667085;font-weight:850;cursor:pointer}.editor-tabs button.active{background:#ede9fe;color:#6d54ff}.editor-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid #e6eaf7;background:#fff;border-radius:16px;padding:10px 12px;margin-bottom:12px;color:#24304f}.editor-toolbar select{border:0;background:#f8f9ff;border-radius:10px;padding:8px 10px}.question-editor{display:flex;flex-direction:column;gap:14px}.question-card{border:1px solid #e6eaf7;border-radius:22px;background:#fff;padding:18px;box-shadow:0 12px 34px rgba(43,51,104,.05)}.question-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.q-pill{display:inline-flex;gap:5px;align-items:center;padding:8px 11px;border-radius:999px;background:#ede9fe;color:#6d54ff;font-weight:900}.q-tools{display:flex;gap:8px}.q-tools button{width:34px;height:34px;border:1px solid #e0e6f7;background:#fff;border-radius:12px;cursor:pointer}.question-main-fields{display:grid;grid-template-columns:220px minmax(0,1fr);gap:12px;margin-bottom:12px}.answer-options{display:flex;flex-direction:column;gap:9px;margin:14px 0 10px}.answer-row{display:grid;grid-template-columns:32px minmax(220px,1fr) 48px minmax(160px,.65fr) auto auto;gap:8px;align-items:center}.drag-dot{color:#9aa3bd;text-align:center;font-weight:900}.answer-row .answer-text{margin:0;min-height:44px}.answer-color{margin:0!important;width:46px!important;height:42px!important;padding:5px!important}.answer-image{margin:0!important;min-height:42px}.correct-mark{display:flex!important;gap:6px;align-items:center;white-space:nowrap;font-size:12px!important;color:#475569;background:#f6f7ff;border:1px solid #dfe6ff;border-radius:999px;padding:9px 10px;font-weight:800!important}.correct-mark input{width:auto!important;margin:0!important}.add-answer-btn{border:1px dashed #cbd5f5;background:#fbfdff;color:#6d54ff;border-radius:14px;padding:12px 14px;font-weight:900;cursor:pointer}.question-hint{margin-top:12px;padding:13px;border-radius:16px;background:#ecfdf5;border:1px solid #b9efd2;color:#166534;font-size:13px;line-height:1.45}.mobile-settings-inline{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:12px}.mobile-settings-inline label{display:inline-flex;align-items:center;gap:8px;background:#f8fbff;border:1px solid #e2e8f5;border-radius:14px;padding:9px 10px}.mobile-settings-inline input[type="number"]{width:88px!important;margin:0!important}.mobile-settings-inline input[type="checkbox"]{width:auto!important;margin:0!important}.bottom-question-types{margin-top:16px;border:1px solid #e6eaf7;border-radius:22px;background:#fff;padding:14px;display:grid;grid-template-columns:120px repeat(10,minmax(90px,1fr));gap:10px;align-items:stretch;overflow:auto}.bottom-question-types span{font-weight:900;color:#25304f;display:flex;align-items:center}.bottom-question-types button{border:1px solid #e3e7f5;background:linear-gradient(180deg,#fff,#fafbff);border-radius:16px;color:#24304f;font-weight:850;padding:12px 10px;cursor:pointer;min-width:96px}.bottom-question-types button:hover{border-color:#7b61ff;background:#f4f0ff;color:#6d54ff}.settings-panel{position:sticky;top:16px;display:flex;flex-direction:column;gap:13px}.settings-line{height:1px;background:#edf0f7;margin:4px 0}.color-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.color-pair input{height:44px;padding:5px}.live-question-settings{padding:14px;border-radius:18px;background:#f8fbff;border:1px solid #e5e9f7}.live-question-settings h4{margin:0 0 6px;color:#25304f}.live-question-settings p{margin:0;color:#667085;line-height:1.45}.constructor-list-card{padding:18px;margin-top:16px}.constructor-list-card .tests-list-compact{max-height:420px}.constructor-list-card .test-row-card{background:#fff}.question-card[data-type="open"] .answer-options,.question-card[data-type="association"] .answer-options{display:none!important}.question-card[data-type="likert5"] .answer-image,.question-card[data-type="scale10"] .answer-image,.question-card[data-type="single4"] .answer-color,.question-card[data-type="multi"] .answer-color,.question-card[data-type="yesno"] .answer-color,.question-card[data-type="truefalse"] .answer-color,.question-card[data-type="image_choice"] .answer-color{display:none!important}.question-card[data-type="color_choice"] .answer-image{display:none!important}.question-card[data-type="multi"] .single-correct{display:none!important}.question-card:not([data-type="multi"]) .multi-correct{display:none!important}.question-card[data-type="likert5"] .single-correct,.question-card[data-type="likert5"] .multi-correct,.question-card[data-type="scale10"] .single-correct,.question-card[data-type="scale10"] .multi-correct,.question-card[data-type="color_choice"] .single-correct,.question-card[data-type="color_choice"] .multi-correct{display:none!important}@media(max-width:1250px){.constructor-grid{grid-template-columns:260px minmax(0,1fr)}.settings-panel{grid-column:1/-1;position:static}.bottom-question-types{grid-template-columns:120px repeat(5,minmax(120px,1fr))}.answer-row{grid-template-columns:28px minmax(180px,1fr) 44px minmax(140px,.65fr)}}@media(max-width:860px){.constructor-shell{width:min(100% - 16px,1540px)}.constructor-top{align-items:flex-start;flex-direction:column}.constructor-actions{justify-content:flex-start}.constructor-grid{grid-template-columns:1fr}.question-main-fields{grid-template-columns:1fr}.answer-row{grid-template-columns:24px 1fr}.answer-color,.answer-image,.correct-mark{grid-column:2}.bottom-question-types{grid-template-columns:1fr 1fr}.bottom-question-types span{grid-column:1/-1}.constructor-top .btn{width:100%;justify-content:center}.constructor-actions{width:100%}}

/* ===== SafeMind222: one-question constructor mode ===== */
.constructor-grid{grid-template-columns:280px minmax(0,1fr) 330px;}
.question-editor{min-height:520px;}
.question-card{display:none;}
.question-card.active-question{display:block;animation:questionFade .22s ease-out;}
@keyframes questionFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.question-card.active-question .question-card-head{padding-bottom:14px;border-bottom:1px solid #eef2f7;margin-bottom:18px;}
.question-card.active-question{border-color:rgba(41,198,192,.38);box-shadow:0 22px 54px rgba(13,148,136,.10);}
.question-list-item.active{border-color:#29c6c0;background:linear-gradient(135deg,rgba(41,198,192,.10),rgba(139,92,246,.06));box-shadow:0 12px 26px rgba(41,198,192,.12);}
.question-list-item.active b{background:#dcfce7;color:#047857;}
.single-question-actions{margin-top:18px;display:grid;grid-template-columns:1fr 1fr 1.35fr 1.55fr;gap:12px;align-items:center;padding:16px;border:1px solid #e6eaf7;border-radius:22px;background:linear-gradient(135deg,#ffffff,#f7fffc);box-shadow:0 16px 36px rgba(41,198,192,.08);}
.single-question-actions .btn{width:100%;justify-content:center;min-height:48px;border-radius:15px;font-weight:900;}
.add-question-main{background:#fff;color:#0f9f8e;border:1px solid rgba(41,198,192,.55);box-shadow:0 10px 24px rgba(41,198,192,.08);}
.add-question-main:hover{background:#ecfdf5;}
.finish-test-main{background:linear-gradient(135deg,#20bfae,#0f9f8e);color:#fff;border:0;box-shadow:0 15px 30px rgba(15,159,142,.22);}
.finish-test-main:hover{filter:brightness(.98);transform:translateY(-1px);}
.single-question-note{margin-top:10px;color:#64748b;font-size:13px;line-height:1.45;text-align:center;}
.constructor-top .btn-primary{background:linear-gradient(135deg,#20bfae,#0f9f8e);}
.constructor-top h2:before{content:'✦';display:inline-grid;place-items:center;width:34px;height:34px;margin-right:10px;border-radius:12px;background:linear-gradient(135deg,rgba(41,198,192,.18),rgba(139,92,246,.14));color:#0f9f8e;font-size:18px;vertical-align:middle;}
.structure-panel{position:sticky;top:16px;}
.structure-panel:after{content:'Працюйте з одним питанням за раз: виберіть його у списку або додайте наступне.';display:block;margin-top:12px;padding:12px;border-radius:16px;background:#f0fdfa;border:1px solid #ccfbf1;color:#0f766e;font-size:12.5px;line-height:1.45;}
.question-main-fields{grid-template-columns:280px minmax(0,1fr);}
.answer-options{gap:12px;}
.answer-row{border:1px solid #edf2f7;border-radius:16px;padding:8px;background:#fff;}
.answer-row:has(input:checked){border-color:rgba(41,198,192,.65);background:linear-gradient(135deg,rgba(41,198,192,.08),#fff);}
@media(max-width:1250px){.constructor-grid{grid-template-columns:240px minmax(0,1fr)}.single-question-actions{grid-template-columns:1fr 1fr}.settings-panel{grid-column:1/-1}.structure-panel{position:static}.question-main-fields{grid-template-columns:1fr}}
@media(max-width:760px){.single-question-actions{grid-template-columns:1fr}.question-editor{min-height:auto}.constructor-grid{grid-template-columns:1fr}}

/* ===== Wide public test page: full footer width ===== */
.test-page-wide{
  max-width:1500px !important;
  width:min(100% - 24px,1500px);
  margin:20px auto 0;
  padding:0 0 34px;
}
.test-page-wide .compact-test-layout{
  grid-template-columns:280px minmax(720px,1fr) 310px;
  gap:18px;
  align-items:start;
}
.test-page-wide .compact-test-card{
  min-height:640px;
}
.test-page-wide .visual-test-head{
  grid-template-columns:minmax(0,1fr) 250px;
}
.test-page-wide .question-box{
  max-width:760px;
  margin:0 auto;
}
.test-page-wide .visual-option{
  max-width:100%;
}
@media(max-width:1200px){
  .test-page-wide .compact-test-layout{grid-template-columns:240px minmax(0,1fr);}
  .test-page-wide .rightbar{grid-column:1/-1;position:static;display:grid;grid-template-columns:1fr 1fr;gap:16px;}
}
@media(max-width:900px){
  .test-page-wide{width:min(100% - 16px,1500px);padding-bottom:24px;}
  .test-page-wide .compact-test-layout{grid-template-columns:1fr;}
  .test-page-wide .rightbar{display:block;}
  .test-page-wide .question-box{max-width:none;}
}

/* ===== FIXED HEADER PATCH ===== */
body.has-fixed-header{padding-top:88px;}
@media(max-width:760px){
  body{padding-top:150px;}
  body.has-fixed-header{padding-top:150px;}
  .topbar{
    align-items:flex-start;
    gap:12px;
    flex-direction:column;
    padding:14px 16px;
  }
  .top-actions{width:100%; justify-content:flex-start;}
}
@media(max-width:520px){
  body{padding-top:158px;}
  body.has-fixed-header{padding-top:158px;}
  .brand h1{font-size:20px;}
  .brand p{font-size:13px;}
  .logo{width:46px;height:46px;font-size:24px;}
  .nav-btn{padding:10px 12px;font-size:14px;}
}


/* ===== DEFINITIVE FIXED HEADER: SafeMind222 ===== */
html{scroll-padding-top:132px;}
body{padding-top:120px !important;}
.topbar{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:2147483000 !important;
  background:rgba(255,255,255,.96) !important;
  backdrop-filter:blur(18px) !important;
  -webkit-backdrop-filter:blur(18px) !important;
  box-shadow:0 10px 34px rgba(15,23,42,.10) !important;
}
@media(max-width:1180px){
  body{padding-top:148px !important;}
  html{scroll-padding-top:158px;}
}
@media(max-width:760px){
  body{padding-top:178px !important;}
  html{scroll-padding-top:188px;}
  .topbar{padding:12px 14px !important;}
}
@media(max-width:520px){
  body{padding-top:188px !important;}
  html{scroll-padding-top:198px;}
}


.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:12px;font-weight:800;margin-left:4px}
.chat-meta em{font-style:normal;color:#64748b;font-size:12px}
.notification-card{border-left:5px solid #27c4bd}
.notice.success{border:1px solid rgba(39,196,189,.35);background:rgba(39,196,189,.1);color:#08756e;border-radius:16px;padding:12px 14px;font-weight:700}

/* ===== FINAL SITE HEADER FIX 2026-05-13 ===== */
html{scroll-padding-top:118px!important;}
body{padding-top:104px!important;overflow-x:hidden!important;}
.topbar{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  max-width:none!important;
  z-index:99999!important;
  margin:0!important;
  padding:14px max(22px,calc((100vw - 1280px)/2 + 22px))!important;
  background:rgba(255,255,255,.97)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  border-bottom:1px solid rgba(124,77,255,.14)!important;
  box-shadow:0 10px 32px rgba(15,23,42,.10)!important;
}
@media(max-width:760px){
  html{scroll-padding-top:164px!important;}
  body{padding-top:156px!important;}
  .topbar{padding:12px 14px!important;gap:10px!important;}
}
@media(max-width:520px){
  html{scroll-padding-top:176px!important;}
  body{padding-top:168px!important;}
}


/* ===== FINAL SMART HEADER WITH DROPDOWN 2026-05-13 ===== */
html{scroll-padding-top:106px!important;}
body{padding-top:96px!important;overflow-x:hidden!important;}
.topbar-smart{
  position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;
  z-index:999999!important;margin:0!important;min-height:82px!important;
  padding:12px max(28px,calc((100vw - 1480px)/2 + 28px))!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;
  background:rgba(255,255,255,.97)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;
  border-bottom:1px solid rgba(124,77,255,.14)!important;box-shadow:0 10px 32px rgba(15,23,42,.10)!important;
}
.topbar-smart .brand{min-width:0!important;flex:1 1 390px!important;max-width:760px!important;}
.topbar-smart .brand-text{min-width:0!important;}
.topbar-smart .brand h1{font-size:clamp(22px,1.55vw,28px)!important;line-height:1.12!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;}
.topbar-smart .brand p{font-size:14px!important;white-space:normal!important;}
.topbar-smart .top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;flex:0 1 auto!important;min-width:0!important;flex-wrap:nowrap!important;}
.topbar-smart .nav-btn,.topbar-smart .nav-more>summary{
  min-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  padding:10px 14px!important;border:1px solid rgba(159,172,196,.45)!important;border-radius:15px!important;background:rgba(255,255,255,.82)!important;
  color:#07334f!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important;box-shadow:none!important;cursor:pointer!important;
}
.topbar-smart .nav-primary{border:0!important;color:#fff!important;background:linear-gradient(135deg,#24c6c8,#7c4dff)!important;box-shadow:0 10px 24px rgba(79,70,229,.22)!important;}
.topbar-smart .nav-login{background:#fff!important;color:#07334f!important;}
.topbar-smart .nav-exit{background:#fff!important;color:#07334f!important;}
.topbar-smart .nav-status{display:inline-flex!important;align-items:center!important;min-height:40px!important;padding:8px 12px!important;border-radius:999px!important;background:#eefdfb!important;color:#08756e!important;font-weight:900!important;white-space:nowrap!important;}
.topbar-smart .nav-ico{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;}
.topbar-smart .nav-more{position:relative!important;display:inline-block!important;}
.topbar-smart .nav-more>summary{list-style:none!important;}
.topbar-smart .nav-more>summary::-webkit-details-marker{display:none!important;}
.topbar-smart .nav-more-menu{
  position:absolute!important;right:0!important;top:calc(100% + 10px)!important;width:260px!important;max-width:calc(100vw - 22px)!important;
  display:grid!important;gap:6px!important;padding:10px!important;border-radius:20px!important;background:rgba(255,255,255,.98)!important;
  border:1px solid rgba(159,172,196,.45)!important;box-shadow:0 22px 55px rgba(15,23,42,.18)!important;z-index:1000000!important;
}
.topbar-smart .nav-more:not([open]) .nav-more-menu{display:none!important;}
.topbar-smart .nav-more-menu a{display:flex!important;align-items:center!important;gap:10px!important;padding:12px 13px!important;border-radius:14px!important;color:#07334f!important;font-weight:850!important;background:rgba(247,250,255,.76)!important;white-space:normal!important;}
.topbar-smart .nav-more-menu a:hover{background:linear-gradient(135deg,rgba(36,198,200,.16),rgba(124,77,255,.14))!important;}
@media(max-width:1280px){
  .topbar-smart{padding-left:20px!important;padding-right:20px!important;}
  .topbar-smart .nav-main span:not(.nav-ico){display:none!important;}
  .topbar-smart .nav-main{width:46px!important;padding:10px!important;}
}
@media(max-width:980px){
  html{scroll-padding-top:148px!important;} body{padding-top:140px!important;}
  .topbar-smart{align-items:flex-start!important;flex-direction:column!important;gap:10px!important;min-height:126px!important;}
  .topbar-smart .brand{width:100%!important;max-width:none!important;}
  .topbar-smart .top-actions{width:100%!important;justify-content:flex-start!important;overflow-x:auto!important;padding-bottom:2px!important;}
  .topbar-smart .top-actions::-webkit-scrollbar{height:0!important;}
  .topbar-smart .nav-more-menu{left:0!important;right:auto!important;}
}
@media(max-width:560px){
  html{scroll-padding-top:154px!important;} body{padding-top:146px!important;}
  .topbar-smart{padding:10px 12px!important;}
  .topbar-smart .logo{width:44px!important;height:44px!important;border-radius:15px!important;font-size:24px!important;}
  .topbar-smart .brand{gap:10px!important;}
  .topbar-smart .brand h1{font-size:18px!important;}
  .topbar-smart .brand p{font-size:12px!important;}
  .topbar-smart .nav-btn,.topbar-smart .nav-more>summary{min-height:40px!important;padding:9px 11px!important;border-radius:13px!important;font-size:14px!important;}
  .topbar-smart .nav-status{display:none!important;}
}
@media(max-width:390px){
  html{scroll-padding-top:168px!important;} body{padding-top:160px!important;}
  .topbar-smart .brand h1{font-size:17px!important;}
  .topbar-smart .nav-primary{padding-left:12px!important;padding-right:12px!important;}
}

/* ===== FINAL STICKY HEADER / RESPONSIVE ROLE MENU FIX ===== */
html{scroll-padding-top:104px;}
body{padding-top:96px!important;overflow-x:hidden;}
.topbar.topbar-smart,.topbar{
  position:fixed!important;
  top:0!important;left:0!important;right:0!important;width:100%!important;
  z-index:2147483000!important;
  min-height:86px!important;
  padding:12px clamp(18px,4vw,72px)!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:24px!important;
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid rgba(207,220,238,.9)!important;
  box-shadow:0 10px 34px rgba(16,35,70,.10)!important;
  backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;
}
.topbar .brand{min-width:280px;max-width:620px;flex:1 1 auto;gap:14px!important;overflow:hidden;}
.topbar .brand-text{min-width:0;max-width:100%;}
.topbar .brand h1{font-size:clamp(19px,1.45vw,27px)!important;line-height:1.12!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;margin:0!important;}
.topbar .brand p{font-size:14px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.topbar .logo{width:56px!important;height:56px!important;flex:0 0 56px!important;border-radius:18px!important;}
.topbar .top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:nowrap!important;min-width:0;flex:0 1 auto;}
.topbar .nav-btn,.topbar .nav-more>summary{height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:0 16px!important;border-radius:13px!important;border:1px solid #d7e3f4!important;background:#fff!important;color:#092b49!important;font-weight:800!important;white-space:nowrap!important;box-shadow:0 6px 16px rgba(15,40,80,.04)!important;cursor:pointer!important;}
.topbar .nav-primary{background:linear-gradient(135deg,#28c7d7,#7c55f6)!important;color:#fff!important;border:0!important;box-shadow:0 12px 24px rgba(102,86,220,.22)!important;}
.topbar .nav-login{background:#fff!important;color:#09669b!important;border-color:#b8ddf3!important;}
.topbar .nav-separator{height:44px;width:1px;background:#dbe5f1;margin:0 8px;flex:0 0 1px;}
.topbar .auth-zone{display:flex!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important;}
.topbar .nav-status{height:40px;display:inline-flex!important;align-items:center;justify-content:center;padding:0 13px!important;border-radius:12px!important;background:#f0fbf7!important;color:#0f8b5f!important;border:1px solid #c9f3df!important;font-weight:900!important;white-space:nowrap!important;}
.topbar .nav-more{position:relative;flex:0 0 auto;}
.topbar .nav-more>summary{list-style:none;}
.topbar .nav-more>summary::-webkit-details-marker{display:none;}
.topbar .nav-more-menu{position:absolute;right:0;top:calc(100% + 10px);min-width:260px;padding:12px;background:#fff;border:1px solid #dbe5f1;border-radius:18px;box-shadow:0 24px 70px rgba(20,35,70,.16);display:grid;gap:6px;z-index:2147483001;}
.topbar .nav-more:not([open]) .nav-more-menu{display:none;}
.topbar .nav-more-menu a{display:flex;align-items:center;gap:10px;padding:12px 13px;border-radius:13px;color:#10233f;font-weight:760;}
.topbar .nav-more-menu a:hover{background:#f5f8ff;color:#5f45e8;}
.topbar .nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:99px;background:#ef4444;color:#fff;font-size:12px;padding:0 6px;margin-left:5px;}
.page,.compact-page{padding-top:20px!important;}
@media(max-width:1180px){
  .topbar.topbar-smart,.topbar{gap:14px!important;padding-left:24px!important;padding-right:24px!important;}
  .topbar .brand{max-width:440px;}
  .topbar .nav-main:nth-of-type(3){display:none!important;}
}
@media(max-width:960px){
  body{padding-top:84px!important;}
  .topbar.topbar-smart,.topbar{min-height:78px!important;padding:10px 14px!important;gap:10px!important;}
  .topbar .logo{width:46px!important;height:46px!important;flex-basis:46px!important;font-size:24px!important;}
  .topbar .brand{min-width:0;max-width:none;flex:1 1 auto;}
  .topbar .brand h1{font-size:17px!important;line-height:1.08!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important;}
  .topbar .brand p{font-size:12px!important;}
  .topbar .nav-main{display:none!important;}
  .topbar .nav-separator{display:none!important;}
  .topbar .nav-btn,.topbar .nav-more>summary{height:40px!important;padding:0 12px!important;font-size:14px!important;}
  .topbar .auth-zone{gap:8px!important;}
}
@media(max-width:640px){
  body{padding-top:78px!important;}
  .topbar.topbar-smart,.topbar{min-height:72px!important;padding:9px 10px!important;}
  .topbar .brand{gap:9px!important;}
  .topbar .logo{width:40px!important;height:40px!important;flex-basis:40px!important;border-radius:13px!important;font-size:21px!important;}
  .topbar .brand h1{font-size:13.5px!important;max-width:calc(100vw - 210px);}
  .topbar .brand p{display:none!important;}
  .topbar .nav-more>summary span:not(.nav-ico){display:none!important;}
  .topbar .nav-btn span:not(.nav-ico){display:none!important;}
  .topbar .nav-btn,.topbar .nav-more>summary{width:40px!important;padding:0!important;border-radius:12px!important;}
  .topbar .nav-primary{width:auto!important;min-width:44px!important;padding:0 12px!important;}
  .topbar .nav-primary span:not(.nav-ico){display:none!important;}
  .topbar .nav-more-menu{right:-86px;min-width:min(310px,calc(100vw - 20px));}
  .topbar .nav-status{display:none!important;}
}



/* ===== CONTEST FINAL ADDITIONS ===== */
.contest-hero{
  max-width:1180px;
  margin:28px auto;
  padding:38px;
  border-radius:32px;
  background:
    radial-gradient(circle at 12% 15%,rgba(255,255,255,.55),transparent 28%),
    linear-gradient(135deg,rgba(41,198,192,.98),rgba(139,92,246,.95));
  color:#fff;
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.contest-hero h1{font-size:clamp(30px,4vw,54px);line-height:1.05;margin:0 0 14px;font-weight:900;}
.contest-hero .lead{font-size:clamp(17px,2vw,23px);max-width:850px;margin:0 0 20px;opacity:.98;}
.contest-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.contest-badges span{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35);padding:9px 13px;border-radius:999px;font-weight:800}
.contest-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;max-width:1180px;margin:22px auto}
.contest-card{background:rgba(255,255,255,.94);border:1px solid rgba(219,229,241,.8);border-radius:24px;padding:22px;box-shadow:var(--shadow-soft)}
.contest-card h3{margin:0 0 10px;color:var(--ink);font-size:21px}
.contest-card p{margin:0;color:var(--muted);line-height:1.55}
.index-card{
  background:linear-gradient(135deg,#fff,#f8f5ff);
  border-radius:28px;
  padding:26px;
  box-shadow:var(--shadow);
  border:1px solid rgba(139,92,246,.18);
}
.index-score{font-size:58px;font-weight:950;color:var(--purple);letter-spacing:-2px}
.index-bar{height:14px;background:#e8edf6;border-radius:999px;overflow:hidden;margin:16px 0}
.index-bar span{display:block;height:100%;width:78%;background:linear-gradient(90deg,var(--turquoise),var(--purple));border-radius:999px}
.status-table{width:100%;border-collapse:separate;border-spacing:0 10px}
.status-table td{background:#fff;padding:12px 14px;border-top:1px solid #e6edf7;border-bottom:1px solid #e6edf7}
.status-table td:first-child{border-radius:14px 0 0 14px;border-left:1px solid #e6edf7;font-weight:800}
.status-table td:last-child{border-radius:0 14px 14px 0;border-right:1px solid #e6edf7;color:var(--muted)}
.risk-dot{display:inline-block;width:12px;height:12px;border-radius:99px;margin-right:8px;vertical-align:middle}
.risk-green{background:#22c55e}.risk-yellow{background:#facc15}.risk-orange{background:#fb923c}.risk-red{background:#ef4444}
.support-map{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:center}
.support-step{background:#fff;border-radius:18px;padding:16px 18px;min-width:145px;text-align:center;box-shadow:var(--shadow-soft);font-weight:850;color:var(--ink)}
.support-arrow{font-size:26px;color:var(--purple);font-weight:900}
.analytics-board{max-width:1180px;margin:25px auto;display:grid;grid-template-columns:1.1fr .9fr;gap:20px}
@media(max-width:900px){.analytics-board{grid-template-columns:1fr}.contest-hero{padding:26px;margin:16px}.support-arrow{display:none}}
.chart-card{background:#fff;border-radius:26px;padding:22px;box-shadow:var(--shadow-soft);border:1px solid #e6edf7}
.fake-chart{display:flex;align-items:end;gap:12px;height:170px;margin-top:18px;border-bottom:1px solid #e6edf7}
.fake-chart span{flex:1;background:linear-gradient(180deg,var(--purple),var(--turquoise));border-radius:14px 14px 0 0;min-height:30px;position:relative}
.fake-chart span::after{content:attr(data-label);position:absolute;bottom:-26px;left:50%;transform:translateX(-50%);font-size:12px;color:var(--muted)}
.ai-box{background:linear-gradient(135deg,rgba(41,198,192,.13),rgba(139,92,246,.15));border:1px solid rgba(139,92,246,.2);border-radius:24px;padding:22px}
.war-context{background:#fff;border-radius:26px;padding:24px;border-left:7px solid var(--purple);box-shadow:var(--shadow-soft)}
.footer-school{font-weight:800;color:#dffbff}



/* ===== CLEAN MAIN + JURY TAB FIX ===== */
.clean-hero{
  display:grid;
  grid-template-columns:1.35fr .95fr;
  gap:22px;
  align-items:stretch;
  margin:34px auto 28px;
  max-width:1180px;
}
.clean-hero-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(219,229,241,.75);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:34px;
  position:relative;
  overflow:hidden;
}
.clean-hero-card:after{
  content:"";
  position:absolute;
  width:180px;height:180px;border-radius:50%;
  right:-45px;top:-45px;
  background:linear-gradient(135deg,rgba(41,198,192,.18),rgba(139,92,246,.20));
}
.clean-pill{
  display:inline-flex;
  padding:9px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(41,198,192,.16),rgba(139,92,246,.16));
  color:var(--purple);
  font-weight:900;
  margin-bottom:18px;
}
.clean-hero h2{
  margin:0 0 16px;
  color:var(--ink);
  font-size:clamp(32px,4vw,48px);
  line-height:1.06;
  letter-spacing:-1.4px;
}
.clean-hero p{font-size:18px;line-height:1.62;color:#344864;margin:0;}
.clean-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.clean-stat-card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(219,229,241,.75);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:28px;
}
.clean-index{
  border-radius:22px;
  padding:24px;
  background:linear-gradient(135deg,rgba(41,198,192,.13),rgba(139,92,246,.15));
  border:1px solid rgba(139,92,246,.22);
}
.clean-index h3{margin:0 0 12px;color:#53627a;}
.clean-index b{display:block;font-size:58px;line-height:1;color:var(--ink);}
.clean-bar{height:12px;background:#fff;border-radius:999px;overflow:hidden;margin:16px 0 10px;}
.clean-bar span{display:block;height:100%;width:78%;background:linear-gradient(90deg,var(--turquoise),var(--purple));border-radius:999px;}
.clean-stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px;}
.clean-stat{background:#fff;border-radius:18px;padding:16px;text-align:center;box-shadow:var(--shadow-soft);}
.clean-stat b{display:block;color:var(--turquoise-dark);font-size:31px;line-height:1;}
.clean-stat span{font-weight:800;color:#53627a;font-size:13px;}
.clean-section{max-width:1180px;margin:28px auto;}
.clean-section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin:0 0 18px;}
.clean-section-head h2{margin:0;color:var(--ink);font-size:32px;letter-spacing:-.7px;}
.clean-section-head a{font-weight:900;color:var(--purple);}
.clean-test-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.clean-test-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(219,229,241,.75);
  border-top:4px solid var(--turquoise);
  border-radius:22px;
  box-shadow:var(--shadow-soft);
  padding:24px;
  min-height:190px;
  transition:.22s ease;
}
.clean-test-card:hover{transform:translateY(-4px);box-shadow:0 22px 48px rgba(39,54,91,.16);}
.clean-test-top{display:flex;gap:16px;align-items:flex-start;}
.clean-test-icon{
  width:44px;height:44px;border-radius:50%;
  background:linear-gradient(135deg,var(--turquoise),var(--purple));
  color:#fff;display:grid;place-items:center;flex:0 0 auto;
}
.clean-test-card h3{margin:0 0 10px;color:var(--ink);font-size:22px;}
.clean-test-card p{margin:0;color:#53627a;line-height:1.5;}
.clean-category{
  display:block;margin-top:28px;padding:9px 14px;border-radius:999px;
  background:linear-gradient(135deg,rgba(41,198,192,.12),rgba(139,92,246,.14));
  color:var(--purple);font-weight:900;font-size:14px;
}
.clean-articles-box{
  background:rgba(255,255,255,.90);
  border:1px solid rgba(219,229,241,.75);
  border-radius:28px;
  padding:22px;
  box-shadow:var(--shadow);
}
.clean-articles-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.clean-article-card{
  display:block;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;
  box-shadow:var(--shadow-soft);transition:.22s ease;
}
.clean-article-card:hover{transform:translateY(-4px);}
.clean-article-card img{width:100%;height:120px;object-fit:cover;display:block;}
.clean-article-body{padding:16px;}
.clean-article-body h3{margin:0 0 8px;color:var(--ink);font-size:17px;}
.clean-article-body p{margin:0 0 12px;color:#53627a;font-size:13px;line-height:1.45;}
.clean-article-body b{color:var(--purple);}
.jury-hero{
  max-width:1180px;margin:34px auto 24px;padding:36px;border-radius:30px;
  background:linear-gradient(135deg,#29c6c0,#8b5cf6);
  color:#fff;box-shadow:var(--shadow);position:relative;overflow:hidden;
}
.jury-hero:after{content:"";position:absolute;right:-80px;top:-80px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.18);}
.jury-hero h1{font-size:clamp(36px,5vw,58px);line-height:1.04;margin:0 0 14px;letter-spacing:-1.8px;}
.jury-hero p{font-size:19px;line-height:1.6;max-width:840px;margin:0;}
.jury-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px;}
.jury-badges span{padding:10px 13px;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.32);font-weight:900;}
.jury-grid{max-width:1180px;margin:24px auto;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.jury-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow-soft);}
.jury-card h3{margin:0 0 10px;color:var(--ink);font-size:22px;}
.jury-card p{margin:0;color:#53627a;line-height:1.55;}
.jury-wide{max-width:1180px;margin:24px auto;background:#fff;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:var(--shadow);}
.jury-flow{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-top:18px;}
.jury-step{background:linear-gradient(135deg,rgba(41,198,192,.12),rgba(139,92,246,.14));border-radius:18px;padding:18px;text-align:center;font-weight:900;color:var(--ink);}
.jury-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px;}
.jury-metric{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;text-align:center;box-shadow:var(--shadow-soft);}
.jury-metric b{display:block;font-size:36px;color:var(--purple);}
.jury-metric span{color:#53627a;font-weight:800;}
@media(max-width:1100px){
  .clean-hero{grid-template-columns:1fr;}
  .clean-test-grid{grid-template-columns:1fr 1fr;}
  .clean-articles-grid{grid-template-columns:1fr 1fr;}
  .jury-grid{grid-template-columns:1fr 1fr;}
  .jury-flow,.jury-metrics{grid-template-columns:1fr 1fr 1fr;}
}
@media(max-width:680px){
  .clean-test-grid,.clean-articles-grid,.jury-grid,.jury-flow,.jury-metrics{grid-template-columns:1fr;}
  .clean-stat-row{grid-template-columns:1fr 1fr;}
  .clean-hero-card,.clean-stat-card,.jury-hero{padding:24px;}
  .clean-section-head{display:block;}
}



/* ===== ARTICLE DETAIL EXPANDED ===== */
.article-hero-real{
  width:100%;
  border-radius:28px 28px 0 0;
  overflow:hidden;
  background:#eef6fb;
}
.article-hero-real img{
  width:100%;
  max-height:420px;
  object-fit:cover;
  display:block;
}
.article-detail-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(219,229,241,.8);
  border-radius:28px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.article-content{
  padding:34px;
}
.article-content h1{
  color:var(--ink);
  font-size:clamp(30px,4vw,46px);
  line-height:1.1;
  margin:14px 0 16px;
}
.article-lead{
  font-size:20px;
  line-height:1.65;
  color:#45556f;
  margin-bottom:24px;
}
.article-text{
  font-size:18px;
  line-height:1.78;
  color:#26364e;
  background:#fff;
  border:1px solid #e6edf7;
  border-radius:22px;
  padding:24px;
}
.article-note{
  margin-top:22px;
  padding:22px;
  border-radius:22px;
  background:linear-gradient(135deg,rgba(41,198,192,.10),rgba(139,92,246,.12));
  border:1px solid rgba(139,92,246,.18);
}
.article-note h2{
  margin-top:0;
  color:var(--ink);
}
.article-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}



/* ===== WEEKLY AI + JURY MATERIALS ===== */
.week-ai{
  max-width:1180px;
  margin:26px auto;
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:22px;
}
.week-ai-card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(219,229,241,.76);
  border-radius:26px;
  box-shadow:var(--shadow-soft);
  padding:24px;
}
.week-ai-card h2{margin:0 0 10px;color:var(--ink);font-size:28px;}
.week-ai-card p{margin:0;color:#53627a;line-height:1.55;}
.week-score{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:18px;
}
.week-score b{
  font-size:58px;
  color:var(--purple);
  letter-spacing:-1.5px;
}
.week-score span{
  font-weight:900;
  color:#07334f;
}
.week-bar{
  height:14px;
  background:#edf2fb;
  border-radius:999px;
  overflow:hidden;
  margin:18px 0 8px;
}
.week-bar i{
  display:block;
  height:100%;
  width:56%;
  border-radius:999px;
  background:linear-gradient(90deg,#29c6c0,#facc15);
}
.risk-scale{
  display:grid;
  gap:10px;
}
.risk-row{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:12px;
  align-items:center;
  background:#fff;
  border:1px solid #e6edf7;
  border-radius:16px;
  padding:12px 14px;
}
.risk-row strong{color:#07334f;}
.risk-row span{color:#53627a;font-weight:700;}
.jury-tabs{
  max-width:1180px;
  margin:24px auto;
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
}
.jury-tab{
  background:#fff;
  border:1px solid #dbe5f1;
  border-radius:18px;
  padding:16px 12px;
  text-align:center;
  font-weight:900;
  color:#07334f;
  box-shadow:var(--shadow-soft);
}
.demo-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.demo-card{
  background:#fff;
  border:1px solid #dbe5f1;
  border-radius:22px;
  padding:20px;
  box-shadow:var(--shadow-soft);
}
.demo-card h3{margin:0 0 10px;color:var(--ink);}
.demo-card p{margin:0;color:#53627a;line-height:1.5;}
.sitemap-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}
.sitemap-col{
  background:#fff;
  border:1px solid #e6edf7;
  border-radius:20px;
  padding:18px;
}
.sitemap-col h3{margin:0 0 12px;color:var(--purple);}
.sitemap-col a,.sitemap-col span{display:block;margin:8px 0;color:#31415b;font-weight:700;}
.architecture-img{
  width:100%;
  display:block;
  border-radius:22px;
  border:1px solid #dbe5f1;
  background:#fff;
  box-shadow:var(--shadow-soft);
}
.analytics-mini{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.analytics-mini div{
  background:linear-gradient(135deg,rgba(41,198,192,.10),rgba(139,92,246,.12));
  border:1px solid rgba(139,92,246,.18);
  border-radius:18px;
  padding:18px;
}
.analytics-mini b{display:block;font-size:34px;color:var(--purple);}
.analytics-mini span{font-weight:800;color:#53627a;}
@media(max-width:1000px){
  .week-ai{grid-template-columns:1fr;}
  .jury-tabs,.sitemap-grid,.analytics-mini{grid-template-columns:1fr 1fr;}
  .demo-grid{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .jury-tabs,.sitemap-grid,.analytics-mini{grid-template-columns:1fr;}
}


/* ===== OPYTUVALNYKY PAGE ===== */
.polls-hero{
 max-width:1180px;
 margin:28px auto;
 display:grid;
 grid-template-columns:1.15fr .85fr;
 gap:22px;
}
.polls-card{
 background:rgba(255,255,255,.94);
 border:1px solid rgba(219,229,241,.8);
 border-radius:28px;
 padding:30px;
 box-shadow:var(--shadow);
}
.polls-card h1{
 margin:0 0 16px;
 color:var(--ink);
 font-size:clamp(34px,4vw,52px);
 line-height:1.05;
 letter-spacing:-1.5px;
}
.polls-card p{
 color:#53627a;
 font-size:18px;
 line-height:1.65;
}
.polls-features{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:14px;
 margin-top:20px;
}
.poll-feature{
 background:#fff;
 border:1px solid #e6edf7;
 border-radius:18px;
 padding:16px;
}
.poll-feature b{
 display:block;
 color:var(--purple);
 margin-bottom:6px;
}
.poll-grid{
 max-width:1180px;
 margin:24px auto;
 display:grid;
 grid-template-columns:repeat(3,1fr);
 gap:20px;
}
.poll-card{
 background:rgba(255,255,255,.95);
 border:1px solid rgba(219,229,241,.8);
 border-top:4px solid var(--purple);
 border-radius:24px;
 padding:24px;
 box-shadow:var(--shadow-soft);
 transition:.22s ease;
}
.poll-card:hover{
 transform:translateY(-4px);
 box-shadow:0 24px 48px rgba(37,52,90,.16);
}
.poll-card h3{
 margin:0 0 12px;
 color:var(--ink);
 font-size:23px;
}
.poll-card p{
 color:#53627a;
 line-height:1.55;
}
.poll-meta{
 display:flex;
 flex-wrap:wrap;
 gap:8px;
 margin:18px 0;
}
.poll-meta span{
 padding:8px 12px;
 border-radius:999px;
 background:linear-gradient(135deg,rgba(41,198,192,.10),rgba(139,92,246,.12));
 color:var(--purple);
 font-weight:900;
 font-size:13px;
}
.poll-actions{
 display:flex;
 gap:10px;
 flex-wrap:wrap;
 margin-top:20px;
}
@media(max-width:1000px){
 .polls-hero,.poll-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:700px){
 .polls-hero,.poll-grid,.polls-features{grid-template-columns:1fr;}
}


/* ===== MAIN 3+3+3 AND REAL TESTS ===== */
.week-ai-full{
  max-width:1180px;
  margin:26px auto;
}
.week-ai-full .week-ai-inline{
  display:grid;
  grid-template-columns:1fr auto;
  gap:24px;
  align-items:center;
}
.week-ai-summary{
  display:flex;
  align-items:center;
  gap:18px;
  min-width:260px;
}
.week-ai-summary b{
  font-size:64px;
  line-height:1;
  color:var(--purple);
}
.week-ai-summary span{
  color:var(--ink);
  font-weight:900;
}
.home-3-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.real-test-form{
  display:grid;
  gap:18px;
}
.real-question{
  background:#fff;
  border:1px solid #e6edf7;
  border-radius:20px;
  padding:20px;
}
.real-question h3{
  margin:0 0 14px;
  color:var(--ink);
}
.real-options{
  display:grid;
  gap:10px;
}
.real-options label{
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border:1px solid #dbe5f1;
  border-radius:14px;
  background:#f8fbff;
  cursor:pointer;
}
.color-options{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.color-dot{
  width:48px;
  height:48px;
  border-radius:16px;
  border:3px solid #fff;
  box-shadow:0 8px 18px rgba(39,54,91,.18);
  display:inline-block;
}
.test-result-box{
  background:linear-gradient(135deg,rgba(41,198,192,.13),rgba(139,92,246,.14));
  border:1px solid rgba(139,92,246,.18);
  border-radius:22px;
  padding:22px;
  margin-top:18px;
}
@media(max-width:900px){
  .week-ai-full .week-ai-inline{grid-template-columns:1fr;}
  .home-3-grid{grid-template-columns:1fr;}
}


.ai-mini-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--turquoise),var(--purple));
  color:#fff;
  font-weight:950;
  box-shadow:0 10px 22px rgba(39,54,91,.18);
}


/* ===== JURY EMBEDDED SCREENSHOTS ===== */
.role-screenshots{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:18px;
}
.role-shot{
  background:#fff;
  border:1px solid #dbe5f1;
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.role-shot img{
  display:block;
  width:100%;
  height:auto;
}
.role-shot-body{
  padding:16px 18px;
}
.role-shot-body h3{
  margin:0 0 8px;
  color:var(--ink);
}
.role-shot-body p{
  margin:0;
  color:#53627a;
  line-height:1.45;
}
.jury-tabs .analytics-sub{
  background:linear-gradient(135deg,rgba(41,198,192,.14),rgba(139,92,246,.16));
  border-color:rgba(139,92,246,.35);
}
@media(max-width:1000px){
  .role-screenshots{grid-template-columns:1fr;}
}


/* ===== REFINED FINAL CLEANUP ===== */
.week-ai-full{
  max-width:1180px;
  margin:18px auto 22px;
}
.week-ai-full .week-ai-inline{
  min-height:auto;
  padding:14px 18px;
  border-radius:18px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:16px;
  align-items:center;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(219,229,241,.8);
  box-shadow:0 8px 24px rgba(39,54,91,.06);
}
.week-ai-full .clean-pill{
  margin:0;
  white-space:nowrap;
  font-size:13px;
  padding:7px 11px;
}
.week-ai-full h2{
  display:none;
}
.week-ai-full p{
  margin:0;
  font-size:14px;
  line-height:1.45;
  color:#45556f;
}
.week-ai-full .week-bar{
  display:none;
}
.week-ai-summary{
  min-width:auto;
  gap:10px;
}
.week-ai-summary b{
  font-size:36px;
}
.week-ai-summary span{
  font-size:13px;
  line-height:1.2;
}
.ai-mini-icon{
  width:36px;
  height:36px;
  border-radius:12px;
  font-size:13px;
}
.jury-note-title{
  font-size:28px;
  color:var(--ink);
  margin:0 0 12px;
}
.refined-architecture{
  width:100%;
  display:block;
  border-radius:22px;
  border:1px solid #dbe5f1;
  box-shadow:0 14px 36px rgba(39,54,91,.10);
  background:#fff;
}
@media(max-width:800px){
  .week-ai-full .week-ai-inline{grid-template-columns:1fr;}
}


/* ===== HOME MATERIAL CARDS ===== */
.home-materials-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.home-material-card{
  display:block;
  background:#fff;
  border:1px solid #dbe5f1;
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
  transition:.22s ease;
}
.home-material-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 48px rgba(39,54,91,.16);
}
.home-material-card img{
  width:100%;
  height:190px;
  object-fit:cover;
  display:block;
}
.home-material-body{
  padding:20px;
}
.home-material-body h3{
  margin:14px 0 12px;
  color:var(--ink);
  font-size:22px;
  line-height:1.25;
}
.home-material-body p{
  margin:0 0 18px;
  color:#53627a;
  line-height:1.55;
}
@media(max-width:900px){
  .home-materials-grid{grid-template-columns:1fr;}
}

/* AI top inline */
.week-ai-full{
  margin:10px auto 16px;
  max-width:1180px;
}
.week-ai-inline{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:18px;
  align-items:center;
  padding:8px 2px;
}
.week-ai-inline .clean-pill{
  margin:0;
}
.week-ai-inline p{
  margin:0;
  color:#45556f;
  line-height:1.45;
}
.week-ai-inline .week-ai-summary{
  background:rgba(255,255,255,.45);
  border:1px solid rgba(219,229,241,.7);
  padding:10px 14px;
  border-radius:18px;
}

/* =========================================================
   FINAL RESPONSIVE FIX 2026-05-15
   sticky header without overlap + compact desktop width + hero photo as background
   ========================================================= */
html{scroll-padding-top:96px!important;overflow-x:hidden!important;}
body{padding-top:0!important;overflow-x:hidden!important;background:radial-gradient(circle at 8% 20%,rgba(41,198,192,.24),transparent 34%),radial-gradient(circle at 92% 24%,rgba(139,92,246,.20),transparent 36%),linear-gradient(135deg,#e9fbff 0%,#f5efff 100%)!important;}
.topbar.topbar-smart,.topbar{
  position:sticky!important;
  top:0!important;
  left:auto!important;
  right:auto!important;
  width:100%!important;
  z-index:99999!important;
  min-height:82px!important;
  padding:12px clamp(16px,3vw,44px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:20px!important;
  background:rgba(255,255,255,.96)!important;
  border-bottom:1px solid rgba(207,220,238,.9)!important;
  box-shadow:0 10px 30px rgba(20,35,70,.09)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
.topbar.topbar-smart::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(255,255,255,.92),rgba(246,252,255,.94),rgba(250,247,255,.95));}
.topbar .brand{flex:0 1 560px!important;min-width:260px!important;max-width:560px!important;overflow:visible!important;}
.topbar .brand h1{font-size:clamp(18px,1.35vw,24px)!important;line-height:1.12!important;letter-spacing:-.45px!important;}
.topbar .brand p{font-size:13px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;margin-top:4px!important;}
.topbar .logo{width:50px!important;height:50px!important;flex:0 0 50px!important;border-radius:16px!important;font-size:27px!important;}
.topbar .top-actions{flex:0 1 auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:nowrap!important;min-width:0!important;}
.topbar .nav-btn,.topbar .nav-more>summary{height:42px!important;min-height:42px!important;padding:0 14px!important;border-radius:14px!important;font-size:15px!important;}
.topbar .nav-more-menu{top:calc(100% + 12px)!important;right:0!important;z-index:100000!important;}
.topbar .nav-separator{height:42px!important;margin:0 4px!important;}
.topbar .auth-zone{gap:8px!important;}
.page,.compact-page,.result-page{width:min(100% - 32px,1320px)!important;max-width:1320px!important;margin:22px auto 0!important;padding:0 0 28px!important;}
.week-ai-full{width:100%!important;max-width:1320px!important;margin:20px auto 18px!important;padding:0!important;}
.week-ai-full .week-ai-inline,.week-ai-inline{min-height:76px!important;border-radius:24px!important;padding:16px 22px!important;background:rgba(255,255,255,.86)!important;border:1px solid rgba(219,229,241,.85)!important;box-shadow:0 14px 36px rgba(35,49,82,.08)!important;}
.clean-hero{
  width:100%!important;
  max-width:1320px!important;
  min-height:520px!important;
  margin:18px auto 28px!important;
  padding:34px!important;
  display:grid!important;
  grid-template-columns:minmax(380px,1fr) minmax(270px,340px)!important;
  gap:30px!important;
  align-items:center!important;
  position:relative!important;
  overflow:hidden!important;
  border-radius:32px!important;
  border:1px solid rgba(219,229,241,.85)!important;
  box-shadow:0 24px 60px rgba(35,49,82,.13)!important;
  background-image:linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.90) 30%,rgba(255,255,255,.34) 54%,rgba(255,255,255,.08) 72%),url('hero_teacher_collective.png')!important;
  background-size:cover!important;
  background-position:center 38%!important;
}
.clean-hero::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.12) 100%);}
.clean-hero-card{position:relative!important;z-index:2!important;max-width:600px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;}
.clean-hero-card::after{display:none!important;}
.clean-hero h2{max-width:560px!important;font-size:clamp(40px,4vw,64px)!important;line-height:1.03!important;letter-spacing:-1.8px!important;text-wrap:balance!important;text-shadow:0 2px 0 rgba(255,255,255,.55)!important;}
.clean-hero p{max-width:540px!important;font-size:18px!important;line-height:1.62!important;color:#18324f!important;}
.clean-actions{gap:12px!important;margin-top:24px!important;}
.clean-actions .btn{min-height:48px!important;padding:13px 20px!important;border-radius:14px!important;}
.clean-stat-card{position:relative!important;z-index:2!important;align-self:center!important;justify-self:end!important;width:100%!important;max-width:340px!important;padding:28px!important;border-radius:28px!important;background:rgba(255,255,255,.92)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;box-shadow:0 22px 54px rgba(20,35,70,.16)!important;}
.clean-index{background:transparent!important;border:0!important;padding:0!important;}
.clean-index h3{font-size:18px!important;color:#17345b!important;}
.clean-index b{font-size:56px!important;}
.clean-index p{font-size:15px!important;color:#334863!important;}
.clean-stat-row{grid-template-columns:repeat(3,1fr)!important;gap:10px!important;margin-top:20px!important;}
.clean-stat-row .clean-stat:nth-child(4){display:none!important;}
.clean-section{width:100%!important;max-width:1320px!important;margin:26px auto!important;}
.clean-test-grid,.home-3-grid,.home-materials-grid{width:100%!important;}
.site-footer{width:100%!important;margin-top:30px!important;background:rgba(255,255,255,.94)!important;border-top:1px solid rgba(207,220,238,.9)!important;box-shadow:0 -10px 34px rgba(20,35,70,.07)!important;}
.site-footer .footer-main,.site-footer .footer-pwa-card,.site-footer .footer-bottom{max-width:1320px!important;margin-left:auto!important;margin-right:auto!important;}
.layout{width:100%!important;max-width:1320px!important;margin:0 auto!important;grid-template-columns:minmax(230px,280px) minmax(0,1fr) minmax(240px,300px)!important;gap:22px!important;align-items:start!important;}
.sidebar,.rightbar{top:104px!important;}
.main-card{width:100%!important;min-width:0!important;}
.question-box{padding:32px!important;}
.option{width:100%!important;max-width:none!important;}
.question-box form,.question-box .options,.question-box label.option{max-width:none!important;}
@media(max-width:1240px){
  .topbar .brand{max-width:100% !important;}
  .topbar .nav-main span:not(.nav-ico){display:none!important;}
  .topbar .nav-main{width:44px!important;padding:0!important;}
  .clean-hero{grid-template-columns:1fr 310px!important;min-height:500px!important;padding:28px!important;background-position:center 38%!important;}
  .clean-hero h2{font-size:clamp(38px,4.7vw,56px)!important;}
  .layout{grid-template-columns:240px minmax(0,1fr)!important;}
  .rightbar{display:none!important;}
}
@media(max-width:980px){
  html{scroll-padding-top:82px!important;}
  body{padding-top:0!important;}
  .topbar.topbar-smart,.topbar{min-height:76px!important;padding:9px 12px!important;justify-content:space-between!important;gap:10px!important;}
  .topbar .brand{flex:1 1 auto!important;min-width:0!important;max-width:none!important;gap:10px!important;}
  .topbar .logo{width:44px!important;height:44px!important;flex-basis:44px!important;font-size:23px!important;}
  .topbar .brand h1{font-size:16px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
  .topbar .brand p{display:none!important;}
  .topbar .top-actions{flex:0 0 auto!important;gap:7px!important;}
  .topbar .nav-main,.topbar .nav-separator{display:none!important;}
  .topbar .nav-btn,.topbar .nav-more>summary{height:40px!important;min-height:40px!important;padding:0 11px!important;font-size:14px!important;}
  .topbar .nav-primary span:not(.nav-ico),.topbar .nav-login span:not(.nav-ico){display:inline!important;}
  .page,.compact-page,.result-page{width:min(100% - 22px,760px)!important;margin-top:16px!important;}
  .week-ai-full .week-ai-inline,.week-ai-inline{grid-template-columns:1fr!important;gap:10px!important;padding:15px!important;}
  .week-ai-summary{justify-self:start!important;}
  .clean-hero{grid-template-columns:1fr!important;min-height:auto!important;padding:24px!important;background-image:linear-gradient(180deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.82) 50%,rgba(255,255,255,.50) 100%),url('hero_teacher_collective.png')!important;background-position:center top!important;}
  .clean-hero-card{max-width:none!important;}
  .clean-hero h2{font-size:clamp(34px,8vw,50px)!important;max-width:100%!important;}
  .clean-hero p{max-width:100%!important;}
  .clean-stat-card{justify-self:stretch!important;max-width:none!important;}
  .layout{grid-template-columns:1fr!important;gap:16px!important;}
  .sidebar,.rightbar{position:static!important;display:block!important;}
  .panel{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .side-link{margin:0!important;}
}
@media(max-width:640px){
  html{scroll-padding-top:72px!important;}
  .topbar.topbar-smart,.topbar{min-height:66px!important;padding:8px 9px!important;}
  .topbar .logo{width:38px!important;height:38px!important;flex-basis:38px!important;border-radius:13px!important;font-size:20px!important;}
  .topbar .brand h1{font-size:13px!important;line-height:1.07!important;}
  .topbar .nav-more>summary span:not(.nav-ico),.topbar .nav-login span:not(.nav-ico){display:none!important;}
  .topbar .nav-btn,.topbar .nav-more>summary{height:38px!important;min-height:38px!important;padding:0 10px!important;border-radius:12px!important;}
  .topbar .nav-more-menu{right:0!important;width:min(290px,calc(100vw - 18px))!important;}
  .page,.compact-page,.result-page{width:min(100% - 18px,480px)!important;margin-top:12px!important;}
  .clean-hero{padding:20px!important;border-radius:24px!important;background-position:center top!important;}
  .clean-pill{font-size:13px!important;padding:8px 12px!important;margin-bottom:13px!important;}
  .clean-hero h2{font-size:34px!important;letter-spacing:-1.1px!important;}
  .clean-hero p{font-size:16px!important;line-height:1.55!important;}
  .clean-actions{display:grid!important;grid-template-columns:1fr!important;}
  .clean-actions .btn{width:100%!important;}
  .clean-stat-card{padding:20px!important;border-radius:22px!important;}
  .clean-stat-row{grid-template-columns:1fr 1fr 1fr!important;gap:8px!important;}
  .clean-stat{padding:12px 8px!important;}
  .clean-stat b{font-size:24px!important;}
  .clean-stat span{font-size:11px!important;}
  .panel{grid-template-columns:1fr!important;}
  .question-box{padding:22px!important;}
  .actions{flex-direction:column!important;}
  .actions .btn{width:100%!important;}
}

/* === FINAL REBUILD 2026-05-15: sticky header, compact hero, compact PWA footer === */
:root{
  --sm-container: min(100% - 48px, 1320px);
  --sm-text: #06244a;
  --sm-muted: #52657e;
  --sm-border: rgba(199,214,235,.76);
  --sm-shadow: 0 18px 44px rgba(20,35,70,.10);
}
html{scroll-padding-top:96px!important;}
body{padding-top:0!important;background:linear-gradient(115deg,#e7fbff 0%,#f7fbff 43%,#f0edff 100%)!important;color:var(--sm-text)!important;}
.topbar.topbar-smart,.topbar{
  position:sticky!important;top:0!important;left:0!important;right:0!important;z-index:99999!important;
  width:100%!important;max-width:none!important;margin:0!important;
  min-height:76px!important;padding:10px 32px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;
  background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--sm-border)!important;
  box-shadow:0 10px 28px rgba(20,35,70,.08)!important;backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;
  overflow:visible!important;
}
.topbar.topbar-smart::before,.topbar::before{display:none!important;}
.topbar .brand{min-width:0!important;max-width:520px!important;flex:1 1 430px!important;display:flex!important;align-items:center!important;gap:12px!important;text-decoration:none!important;}
.topbar .logo{width:52px!important;height:52px!important;flex:0 0 52px!important;border-radius:16px!important;font-size:27px!important;}
.topbar .brand-text{min-width:0!important;}
.topbar .brand h1{font-size:clamp(17px,1.28vw,22px)!important;line-height:1.08!important;letter-spacing:-.35px!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
.topbar .brand p{font-size:12.5px!important;margin:4px 0 0!important;color:#64748b!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.topbar .top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex:0 1 auto!important;min-width:0!important;flex-wrap:nowrap!important;}
.topbar .nav-btn,.topbar .nav-more>summary{height:42px!important;min-height:42px!important;padding:0 14px!important;border-radius:14px!important;font-size:14.5px!important;white-space:nowrap!important;}
.topbar .nav-more{position:relative!important;}
.topbar .nav-more-menu{position:absolute!important;top:calc(100% + 12px)!important;right:0!important;z-index:100000!important;background:#fff!important;border:1px solid var(--sm-border)!important;border-radius:18px!important;box-shadow:var(--sm-shadow)!important;}
.page,.compact-page,.result-page{width:var(--sm-container)!important;max-width:1320px!important;margin:24px auto 0!important;padding:0 0 24px!important;}
.week-ai-full{width:100%!important;margin:18px auto!important;padding:0!important;}
.week-ai-inline{width:100%!important;min-height:72px!important;padding:14px 22px!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:20px!important;align-items:center!important;border-radius:22px!important;background:rgba(255,255,255,.86)!important;border:1px solid var(--sm-border)!important;box-shadow:var(--sm-shadow)!important;}
.week-ai-inline p{margin:0!important;font-size:14px!important;line-height:1.45!important;}
.week-ai-summary{min-width:220px!important;}
.clean-hero{
  width:100%!important;max-width:1320px!important;min-height:410px!important;height:auto!important;margin:22px auto 28px!important;padding:34px 38px!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) 310px!important;gap:28px!important;align-items:center!important;position:relative!important;overflow:hidden!important;
  border-radius:30px!important;border:1px solid var(--sm-border)!important;box-shadow:0 24px 60px rgba(20,35,70,.12)!important;
  background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.93) 33%,rgba(255,255,255,.58) 53%,rgba(255,255,255,.18) 72%),url('hero_teacher_collective.png')!important;
  background-size:cover!important;background-position:center 45%!important;background-repeat:no-repeat!important;
}
.clean-hero::after{content:""!important;position:absolute!important;inset:0!important;pointer-events:none!important;background:linear-gradient(90deg,rgba(255,255,255,.05),rgba(255,255,255,0))!important;}
.clean-hero-card{position:relative!important;z-index:2!important;max-width:640px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.clean-hero-card::after{display:none!important;}
.clean-pill{display:inline-flex!important;align-items:center!important;border-radius:999px!important;padding:8px 14px!important;font-size:14px!important;font-weight:800!important;background:linear-gradient(90deg,rgba(201,247,247,.72),rgba(233,222,255,.8))!important;color:#8657ff!important;margin-bottom:18px!important;}
.clean-hero h2{font-size:clamp(34px,3.25vw,50px)!important;line-height:1.08!important;letter-spacing:-1.3px!important;margin:0 0 18px!important;max-width:590px!important;color:#062b4a!important;text-wrap:balance!important;text-shadow:0 2px 0 rgba(255,255,255,.5)!important;}
.clean-hero p{font-size:16px!important;line-height:1.58!important;max-width:610px!important;color:#173b5a!important;margin:0!important;}
.clean-actions{display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin-top:24px!important;}
.clean-actions .btn{min-height:46px!important;padding:12px 19px!important;border-radius:14px!important;font-size:15.5px!important;font-weight:800!important;}
.clean-stat-card{position:relative!important;z-index:2!important;justify-self:end!important;align-self:center!important;width:100%!important;max-width:310px!important;padding:24px!important;border-radius:26px!important;background:rgba(255,255,255,.92)!important;border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 18px 42px rgba(20,35,70,.16)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;}
.clean-index{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.clean-index h3{font-size:16px!important;line-height:1.25!important;margin:0 0 12px!important;}
.clean-index b{font-size:48px!important;line-height:1!important;}
.clean-index p{font-size:13.5px!important;line-height:1.45!important;margin-top:12px!important;}
.clean-stat-row{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:9px!important;margin-top:16px!important;}
.clean-stat-row .clean-stat:nth-child(4){display:none!important;}
.clean-stat{padding:12px 8px!important;border-radius:13px!important;background:rgba(255,255,255,.78)!important;}
.clean-stat b{font-size:23px!important;}
.clean-stat span{font-size:10.5px!important;line-height:1.1!important;}
.site-footer.footer-compact{width:100%!important;margin:30px 0 0!important;padding:0!important;background:rgba(255,255,255,.92)!important;border-top:1px solid var(--sm-border)!important;box-shadow:0 -10px 28px rgba(20,35,70,.06)!important;color:#0a2a4d!important;}
.footer-compact-inner{width:var(--sm-container)!important;max-width:1320px!important;margin:0 auto!important;min-height:92px!important;padding:18px 0!important;display:grid!important;grid-template-columns:minmax(260px,360px) minmax(0,1fr) 190px!important;gap:28px!important;align-items:center!important;}
.footer-brand-mini{display:flex!important;align-items:center!important;gap:13px!important;text-decoration:none!important;color:#0a2a4d!important;min-width:0!important;}
.footer-logo{width:48px!important;height:48px!important;flex:0 0 48px!important;border-radius:15px!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#20c0cd,#855cff)!important;color:white!important;font-weight:900!important;font-size:24px!important;box-shadow:0 10px 22px rgba(80,82,200,.18)!important;}
.footer-brand-mini strong{display:block!important;font-size:16px!important;line-height:1.2!important;}
.footer-brand-mini span{display:block!important;margin-top:4px!important;font-size:13px!important;color:#64748b!important;}
.footer-links{display:flex!important;align-items:center!important;justify-content:center!important;gap:18px!important;flex-wrap:wrap!important;border-left:1px solid rgba(203,215,232,.8)!important;border-right:1px solid rgba(203,215,232,.8)!important;min-height:48px!important;padding:0 18px!important;}
.footer-links a{color:#0b2b55!important;text-decoration:none!important;font-weight:800!important;font-size:14px!important;}
.footer-pwa-only{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:6px!important;}
.footer-pwa-only span{font-weight:800!important;color:#51627b!important;}
.footer-pwa-only a{color:#855cff!important;text-decoration:none!important;font-weight:900!important;}
.footer-compact-bottom{width:var(--sm-container)!important;max-width:1320px!important;margin:0 auto!important;border-top:1px solid rgba(203,215,232,.8)!important;padding:12px 0!important;display:flex!important;justify-content:space-between!important;gap:16px!important;color:#64748b!important;font-size:13px!important;}
.layout{width:100%!important;max-width:1320px!important;margin:0 auto!important;grid-template-columns:minmax(230px,280px) minmax(0,1fr) minmax(240px,300px)!important;gap:22px!important;align-items:start!important;}
.sidebar,.rightbar{top:98px!important;}
.main-card,.question-box{min-width:0!important;width:100%!important;}
.question-box form,.question-box .options,.question-box label.option,.option{width:100%!important;max-width:none!important;}
@media (max-width:1260px){
  :root{--sm-container:min(100% - 32px,1120px);}
  .topbar.topbar-smart,.topbar{padding:10px 18px!important;}
  .topbar .brand{max-width:100% !important;}
  .topbar .nav-main span:not(.nav-ico){display:none!important;}
  .topbar .nav-main{width:44px!important;padding:0!important;}
  .clean-hero{grid-template-columns:minmax(0,1fr) 290px!important;min-height:390px!important;padding:30px!important;background-position:center 45%!important;}
  .clean-hero h2{font-size:clamp(32px,3.7vw,46px)!important;}
}
@media (max-width:980px){
  :root{--sm-container:min(100% - 22px,760px);}
  html{scroll-padding-top:78px!important;}
  .topbar.topbar-smart,.topbar{min-height:70px!important;padding:8px 12px!important;gap:10px!important;}
  .topbar .logo{width:42px!important;height:42px!important;flex-basis:42px!important;font-size:22px!important;}
  .topbar .brand{flex:1 1 auto!important;max-width:none!important;}
  .topbar .brand h1{font-size:15px!important;line-height:1.08!important;}
  .topbar .brand p{display:none!important;}
  .topbar .nav-main,.topbar .nav-separator{display:none!important;}
  .topbar .nav-btn,.topbar .nav-more>summary{height:38px!important;min-height:38px!important;padding:0 10px!important;font-size:13.5px!important;}
  .week-ai-inline{grid-template-columns:1fr!important;gap:10px!important;align-items:start!important;}
  .week-ai-summary{justify-self:start!important;min-width:0!important;}
  .clean-hero{grid-template-columns:1fr!important;min-height:0!important;padding:24px!important;background-image:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.78)),url('hero_teacher_collective.png')!important;background-position:center 40%!important;}
  .clean-hero h2{font-size:clamp(30px,7vw,42px)!important;max-width:100%!important;}
  .clean-hero p{max-width:100%!important;}
  .clean-stat-card{justify-self:stretch!important;max-width:none!important;}
  .footer-compact-inner{grid-template-columns:1fr!important;gap:16px!important;align-items:start!important;padding:18px 0!important;}
  .footer-links{justify-content:flex-start!important;border-left:0!important;border-right:0!important;border-top:1px solid rgba(203,215,232,.8)!important;border-bottom:1px solid rgba(203,215,232,.8)!important;padding:14px 0!important;}
  .footer-compact-bottom{flex-direction:column!important;gap:5px!important;}
  .layout{grid-template-columns:1fr!important;gap:16px!important;}
  .sidebar,.rightbar{position:static!important;display:block!important;}
}
@media (max-width:640px){
  :root{--sm-container:min(100% - 18px,480px);}
  html{scroll-padding-top:66px!important;}
  .topbar.topbar-smart,.topbar{min-height:62px!important;padding:7px 9px!important;}
  .topbar .logo{width:38px!important;height:38px!important;flex-basis:38px!important;border-radius:13px!important;font-size:20px!important;}
  .topbar .brand h1{font-size:13px!important;-webkit-line-clamp:2!important;}
  .topbar .nav-more>summary span:not(.nav-ico),.topbar .nav-login span:not(.nav-ico){display:none!important;}
  .topbar .nav-primary{padding:0 12px!important;}
  .topbar .nav-primary span:not(.nav-ico){display:inline!important;}
  .clean-hero{padding:20px!important;border-radius:24px!important;margin-top:16px!important;}
  .clean-pill{font-size:12.5px!important;padding:7px 11px!important;margin-bottom:14px!important;}
  .clean-hero h2{font-size:30px!important;letter-spacing:-.8px!important;}
  .clean-hero p{font-size:15px!important;line-height:1.52!important;}
  .clean-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .clean-actions .btn{width:100%!important;}
  .clean-stat-card{padding:19px!important;border-radius:22px!important;}
  .clean-index b{font-size:42px!important;}
  .footer-links{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
}


/* === CAREFUL FINAL REBUILD: sticky header, compact hero, full-width compact PWA footer === */
:root{
  --sm-container: min(100% - 48px, 1280px);
  --sm-blue: #062b4a;
  --sm-muted: #52657e;
  --sm-border: rgba(199,214,235,.78);
}
*{box-sizing:border-box;}
html{scroll-padding-top:88px!important;}
body{
  padding-top:0!important;
  margin:0!important;
  background:linear-gradient(115deg,#e7fbff 0%,#f7fbff 44%,#f0edff 100%)!important;
  color:var(--sm-blue)!important;
}
.topbar.topbar-smart,.topbar{
  position:sticky!important;
  top:0!important;
  left:0!important;
  right:0!important;
  z-index:100000!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  min-height:72px!important;
  padding:9px 32px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  background:rgba(255,255,255,.95)!important;
  border-bottom:1px solid var(--sm-border)!important;
  box-shadow:0 10px 28px rgba(20,35,70,.08)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  overflow:visible!important;
}
.topbar .brand{
  position:static!important;
  min-width:0!important;
  max-width:500px!important;
  flex:1 1 430px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  text-decoration:none!important;
  overflow:hidden!important;
}
.topbar .logo{
  width:50px!important;
  height:50px!important;
  flex:0 0 50px!important;
  border-radius:16px!important;
  font-size:26px!important;
}
.topbar .brand-text{min-width:0!important;overflow:hidden!important;}
.topbar .brand h1{
  max-width:100%!important;
  margin:0!important;
  font-size:clamp(16px,1.15vw,20px)!important;
  line-height:1.08!important;
  letter-spacing:-.25px!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.topbar .brand p{
  margin:4px 0 0!important;
  font-size:12px!important;
  line-height:1.2!important;
  color:#64748b!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.topbar .top-actions{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 1 auto!important;
  min-width:0!important;
  margin-left:auto!important;
}
.topbar .nav-btn,.topbar .nav-more>summary{
  height:42px!important;
  min-height:42px!important;
  padding:0 14px!important;
  border-radius:14px!important;
  white-space:nowrap!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
}
.topbar .nav-more{position:relative!important;}
.topbar .nav-more-menu{position:absolute!important;top:calc(100% + 10px)!important;right:0!important;z-index:100001!important;}
.page,.compact-page,.result-page{
  width:var(--sm-container)!important;
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.week-ai-full{width:var(--sm-container)!important;max-width:1280px!important;margin:26px auto 22px!important;}
.week-ai-inline{padding:18px 22px!important;border-radius:20px!important;}
.clean-hero{
  width:var(--sm-container)!important;
  max-width:1280px!important;
  margin:22px auto 28px!important;
  min-height:350px!important;
  padding:28px 36px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 300px!important;
  gap:26px!important;
  align-items:center!important;
  position:relative!important;
  overflow:hidden!important;
  border-radius:28px!important;
  border:1px solid var(--sm-border)!important;
  box-shadow:0 22px 54px rgba(20,35,70,.12)!important;
  background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.92) 35%,rgba(255,255,255,.54) 57%,rgba(255,255,255,.14) 76%),url('hero_teacher_collective.png')!important;
  background-size:cover!important;
  background-position:center 58%!important;
  background-repeat:no-repeat!important;
}
.clean-hero-card{
  position:relative!important;
  z-index:2!important;
  max-width:590px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.clean-hero-card::after,.clean-hero::after{display:none!important;}
.clean-pill{
  display:inline-flex!important;
  align-items:center!important;
  border-radius:999px!important;
  padding:7px 13px!important;
  font-size:13.5px!important;
  line-height:1.15!important;
  font-weight:850!important;
  background:linear-gradient(90deg,rgba(201,247,247,.76),rgba(233,222,255,.84))!important;
  color:#8657ff!important;
  margin-bottom:14px!important;
}
.clean-hero h2{
  font-size:clamp(30px,2.85vw,44px)!important;
  line-height:1.08!important;
  letter-spacing:-1.15px!important;
  margin:0 0 15px!important;
  max-width:540px!important;
  color:#062b4a!important;
  text-shadow:0 2px 0 rgba(255,255,255,.52)!important;
}
.clean-hero p{
  font-size:15.5px!important;
  line-height:1.55!important;
  max-width:580px!important;
  margin:0!important;
  color:#173b5a!important;
}
.clean-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:11px!important;
  margin-top:20px!important;
}
.clean-actions .btn{
  min-height:44px!important;
  padding:11px 18px!important;
  border-radius:14px!important;
  font-size:15px!important;
  font-weight:850!important;
}
.clean-stat-card{
  position:relative!important;
  z-index:2!important;
  justify-self:end!important;
  align-self:center!important;
  width:100%!important;
  max-width:300px!important;
  padding:22px!important;
  border-radius:24px!important;
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(255,255,255,.74)!important;
  box-shadow:0 18px 42px rgba(20,35,70,.16)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
.clean-index{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
.clean-index h3{font-size:15.5px!important;line-height:1.25!important;margin:0 0 10px!important;color:#17345b!important;}
.clean-index b{font-size:44px!important;line-height:1!important;color:#062b4a!important;}
.clean-bar{height:9px!important;margin:13px 0 10px!important;}
.clean-index p{font-size:13px!important;line-height:1.42!important;margin-top:10px!important;color:#334863!important;}
.clean-stat-row{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important;margin-top:14px!important;}
.clean-stat-row .clean-stat:nth-child(4){display:none!important;}
.clean-stat{padding:11px 7px!important;border-radius:13px!important;background:rgba(255,255,255,.80)!important;}
.clean-stat b{font-size:22px!important;}
.clean-stat span{font-size:10.5px!important;line-height:1.1!important;}
.site-footer.footer-compact{
  width:100%!important;
  max-width:none!important;
  margin:30px 0 0!important;
  padding:0!important;
  border-radius:0!important;
  background:rgba(255,255,255,.94)!important;
  border-top:1px solid var(--sm-border)!important;
  box-shadow:0 -10px 28px rgba(20,35,70,.06)!important;
  color:#0a2a4d!important;
}
.footer-compact-inner{
  width:var(--sm-container)!important;
  max-width:1280px!important;
  margin:0 auto!important;
  min-height:82px!important;
  padding:14px 0!important;
  display:grid!important;
  grid-template-columns:minmax(260px,380px) minmax(0,1fr) 170px!important;
  gap:24px!important;
  align-items:center!important;
}
.footer-brand-mini{display:flex!important;align-items:center!important;gap:12px!important;text-decoration:none!important;color:#0a2a4d!important;min-width:0!important;}
.footer-logo{width:44px!important;height:44px!important;flex:0 0 44px!important;border-radius:14px!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#20c0cd,#855cff)!important;color:white!important;font-weight:900!important;font-size:22px!important;}
.footer-brand-mini strong{display:block!important;font-size:15px!important;line-height:1.18!important;}
.footer-brand-mini span{display:block!important;margin-top:3px!important;font-size:12.5px!important;color:#64748b!important;}
.footer-links{display:flex!important;align-items:center!important;justify-content:center!important;gap:16px!important;flex-wrap:wrap!important;border-left:1px solid rgba(203,215,232,.8)!important;border-right:1px solid rgba(203,215,232,.8)!important;min-height:44px!important;padding:0 16px!important;}
.footer-links a{color:#0b2b55!important;text-decoration:none!important;font-weight:800!important;font-size:13.5px!important;}
.footer-pwa-only{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;}
.footer-pwa-only span{font-weight:800!important;color:#51627b!important;font-size:13.5px!important;}
.footer-pwa-only a{color:#855cff!important;text-decoration:none!important;font-weight:900!important;font-size:14px!important;}
.footer-compact-bottom{display:none!important;}
.layout{width:100%!important;max-width:1280px!important;margin:24px auto!important;grid-template-columns:minmax(230px,280px) minmax(0,1fr) minmax(240px,300px)!important;gap:22px!important;align-items:start!important;}
.sidebar,.rightbar{top:88px!important;}
.main-card,.question-box{min-width:0!important;width:100%!important;}
.question-box form,.question-box .options,.question-box label.option,.option{width:100%!important;max-width:none!important;}
@media(max-width:1260px){
  :root{--sm-container:min(100% - 32px,1120px);}
  .topbar.topbar-smart,.topbar{padding:9px 18px!important;}
  .topbar .brand{max-width:100% !important;}
  .topbar .nav-main span:not(.nav-ico){display:none!important;}
  .topbar .nav-main{width:42px!important;padding:0!important;}
  .clean-hero{grid-template-columns:minmax(0,1fr) 285px!important;min-height:330px!important;padding:26px 30px!important;background-position:center 58%!important;}
  .clean-hero h2{font-size:clamp(29px,3.3vw,40px)!important;}
}
@media(max-width:980px){
  :root{--sm-container:min(100% - 22px,760px);}
  html{scroll-padding-top:76px!important;}
  .topbar.topbar-smart,.topbar{min-height:68px!important;padding:8px 12px!important;gap:10px!important;}
  .topbar .logo{width:42px!important;height:42px!important;flex-basis:42px!important;font-size:22px!important;}
  .topbar .brand{flex:1 1 auto!important;max-width:none!important;}
  .topbar .brand h1{font-size:15px!important;line-height:1.08!important;}
  .topbar .brand p{display:none!important;}
  .topbar .nav-main,.topbar .nav-separator{display:none!important;}
  .topbar .nav-btn,.topbar .nav-more>summary{height:38px!important;min-height:38px!important;padding:0 10px!important;font-size:13.5px!important;}
  .week-ai-inline{grid-template-columns:1fr!important;gap:10px!important;align-items:start!important;}
  .week-ai-summary{justify-self:start!important;min-width:0!important;}
  .clean-hero{grid-template-columns:1fr!important;min-height:0!important;padding:22px!important;background-image:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.78)),url('hero_teacher_collective.png')!important;background-position:center 50%!important;}
  .clean-hero h2{font-size:clamp(29px,6.8vw,40px)!important;max-width:100%!important;}
  .clean-hero p{max-width:100%!important;}
  .clean-stat-card{justify-self:stretch!important;max-width:none!important;}
  .footer-compact-inner{grid-template-columns:1fr!important;gap:14px!important;align-items:start!important;padding:16px 0!important;}
  .footer-links{justify-content:flex-start!important;border-left:0!important;border-right:0!important;border-top:1px solid rgba(203,215,232,.8)!important;border-bottom:1px solid rgba(203,215,232,.8)!important;padding:12px 0!important;}
  .layout{grid-template-columns:1fr!important;gap:16px!important;margin-top:18px!important;}
  .sidebar,.rightbar{position:static!important;display:block!important;}
}
@media(max-width:640px){
  :root{--sm-container:min(100% - 18px,480px);}
  html{scroll-padding-top:66px!important;}
  .topbar.topbar-smart,.topbar{min-height:62px!important;padding:7px 9px!important;}
  .topbar .logo{width:38px!important;height:38px!important;flex-basis:38px!important;border-radius:13px!important;font-size:20px!important;}
  .topbar .brand h1{font-size:13px!important;-webkit-line-clamp:2!important;}
  .topbar .nav-more>summary span:not(.nav-ico),.topbar .nav-login span:not(.nav-ico){display:none!important;}
  .topbar .nav-primary{padding:0 12px!important;}
  .topbar .nav-primary span:not(.nav-ico){display:inline!important;}
  .clean-hero{padding:18px!important;border-radius:24px!important;margin-top:14px!important;}
  .clean-pill{font-size:12.5px!important;padding:7px 11px!important;margin-bottom:12px!important;}
  .clean-hero h2{font-size:28px!important;letter-spacing:-.8px!important;}
  .clean-hero p{font-size:15px!important;line-height:1.50!important;}
  .clean-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .clean-actions .btn{width:100%!important;}
  .clean-stat-card{padding:18px!important;border-radius:22px!important;}
  .clean-index b{font-size:40px!important;}
  .footer-links{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
}

/* === FACE FIT + FINAL CHECK 2026-05-15 === */
:root{--sm-container:min(100% - 52px,1280px)!important;}
html{scroll-padding-top:90px!important;}
body{overflow-x:hidden!important;}
.topbar.topbar-smart,.topbar{
  position:sticky!important;
  top:0!important;
  z-index:999999!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
}
.topbar .brand h1{line-height:1.08!important;max-width:100% !important;}
.week-ai-full{margin-top:28px!important;}
.clean-hero{
  width:var(--sm-container)!important;
  max-width:1280px!important;
  min-height:335px!important;
  padding:30px 36px!important;
  grid-template-columns:minmax(0,1fr) 300px!important;
  background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.93) 37%,rgba(255,255,255,.66) 55%,rgba(255,255,255,.20) 74%),url('hero_teacher_collective.png')!important;
  background-size:100% 100%, auto 100%!important;
  background-position:center center, right center!important;
  background-repeat:no-repeat,no-repeat!important;
}
.clean-hero-card{max-width:600px!important;}
.clean-hero h2{
  font-size:clamp(28px,2.75vw,40px)!important;
  line-height:1.10!important;
  letter-spacing:-1px!important;
  max-width:560px!important;
}
.clean-hero p{font-size:15.5px!important;line-height:1.54!important;max-width:610px!important;}
.clean-stat-card{max-width:300px!important;}
.site-footer.footer-compact{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;border-radius:0!important;}
.footer-compact-inner{width:var(--sm-container)!important;max-width:1280px!important;}
@media(max-width:1260px){
  :root{--sm-container:min(100% - 32px,1120px)!important;}
  .clean-hero{min-height:325px!important;background-size:100% 100%, auto 100%!important;background-position:center center, right center!important;}
  .clean-hero h2{font-size:clamp(28px,3.05vw,38px)!important;}
}
@media(max-width:980px){
  :root{--sm-container:min(100% - 22px,760px)!important;}
  html{scroll-padding-top:74px!important;}
  .clean-hero{
    grid-template-columns:1fr!important;
    min-height:0!important;
    background-image:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.82)),url('hero_teacher_collective.png')!important;
    background-size:100% 100%, cover!important;
    background-position:center center, center 35%!important;
  }
}
@media(max-width:640px){
  :root{--sm-container:min(100% - 18px,480px)!important;}
  html{scroll-padding-top:66px!important;}
  .clean-hero{min-height:0!important;padding:18px!important;}
  .clean-hero h2{font-size:27px!important;line-height:1.12!important;}
}

/* === FINAL RESPONSIVE NAV + FOOTER LEGAL 2026-05-15 === */
.topbar.topbar-smart,
.topbar{
  position:sticky!important;
  top:0!important;
  z-index:99999!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-radius:0!important;
  background:rgba(255,255,255,.96)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
}
.top-actions{position:relative!important;overflow:visible!important;}
.nav-more{position:relative!important;z-index:100000!important;}
.nav-more>summary{cursor:pointer!important;list-style:none!important;}
.nav-more>summary::-webkit-details-marker{display:none!important;}
.nav-more-menu{
  position:absolute!important;
  right:0!important;
  top:calc(100% + 10px)!important;
  z-index:100001!important;
  min-width:260px!important;
  max-height:min(72vh,560px)!important;
  overflow:auto!important;
  padding:10px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.98)!important;
  border:1px solid rgba(198,213,232,.9)!important;
  box-shadow:0 22px 48px rgba(15,35,80,.18)!important;
}
.nav-more-menu a{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  padding:11px 12px!important;
  border-radius:12px!important;
  text-decoration:none!important;
  color:#092b51!important;
  font-weight:800!important;
}
.nav-more-menu a:hover{background:#f2f7ff!important;}

/* На середніх екранах залишаємо тільки головну, меню, вхід і реєстрацію */
@media(max-width:1180px){
  .top-actions > a.nav-main:not(:first-of-type){display:none!important;}
  .topbar .brand{max-width:100% !important;}
  .topbar .brand h1{font-size:clamp(16px,1.85vw,21px)!important;line-height:1.08!important;}
  .topbar .brand p{font-size:12px!important;}
}
@media(max-width:760px){
  .topbar .brand h1{font-size:14px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
  .topbar .brand p{display:none!important;}
  .top-actions > a.nav-main:first-of-type span:not(.nav-ico){display:none!important;}
  .top-actions > a.nav-main:first-of-type{width:40px!important;padding:0!important;justify-content:center!important;}
  .nav-more>summary span:not(.nav-ico), .nav-login span:not(.nav-ico){display:none!important;}
  .nav-more-menu{right:-90px!important;min-width:min(92vw,320px)!important;}
}
@media(max-width:520px){
  .topbar.topbar-smart,.topbar{gap:7px!important;padding:7px 8px!important;}
  .topbar .brand{min-width:0!important;}
  .topbar .brand h1{font-size:12.5px!important;}
  .auth-zone{gap:6px!important;}
  .nav-primary{padding:0 9px!important;}
  .nav-primary span:not(.nav-ico){font-size:12px!important;}
  .nav-more-menu{right:-120px!important;}
}

/* Компактний full-width футер з правовою інформацією та PWA-посиланням */
.site-footer.footer-compact{
  width:100%!important;
  max-width:none!important;
  margin:30px 0 0!important;
  padding:0!important;
  border-radius:0!important;
  background:linear-gradient(135deg,#6542df 0%,#7b55ee 55%,#5a8df4 100%)!important;
  color:#fff!important;
  box-shadow:0 -12px 36px rgba(46,35,145,.16)!important;
}
.footer-compact-inner.footer-compact-inner-wide{
  width:var(--sm-container)!important;
  max-width:1280px!important;
  margin:0 auto!important;
  padding:20px 0!important;
  min-height:86px!important;
  display:grid!important;
  grid-template-columns:minmax(250px,360px) minmax(0,1fr) minmax(240px,330px)!important;
  gap:26px!important;
  align-items:center!important;
}
.footer-brand-mini,.footer-brand-mini:visited{color:#fff!important;text-decoration:none!important;}
.footer-brand-mini strong{color:#fff!important;font-size:15px!important;line-height:1.2!important;}
.footer-brand-mini span,.footer-brand-mini small{display:block!important;color:rgba(255,255,255,.82)!important;font-size:12.5px!important;line-height:1.35!important;margin-top:3px!important;}
.footer-logo{background:rgba(255,255,255,.18)!important;border:1px solid rgba(255,255,255,.28)!important;color:#fff!important;}
.footer-links.footer-links-wide{
  border-left:1px solid rgba(255,255,255,.24)!important;
  border-right:1px solid rgba(255,255,255,.24)!important;
  padding:0 22px!important;
  display:flex!important;
  justify-content:center!important;
  gap:10px 18px!important;
  flex-wrap:wrap!important;
}
.footer-links.footer-links-wide a{color:rgba(255,255,255,.92)!important;font-weight:800!important;font-size:13px!important;text-decoration:none!important;}
.footer-links.footer-links-wide a:hover{color:#fff!important;text-decoration:underline!important;text-underline-offset:3px!important;}
.footer-contact{display:flex!important;flex-direction:column!important;gap:4px!important;color:rgba(255,255,255,.86)!important;font-size:12.5px!important;line-height:1.35!important;}
.footer-contact strong{font-size:14px!important;color:#fff!important;}
.footer-contact a{color:#fff!important;text-decoration:none!important;font-weight:850!important;}
.footer-contact a:hover{text-decoration:underline!important;text-underline-offset:3px!important;}
.footer-pwa-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin-top:6px!important;padding:9px 12px!important;border-radius:12px!important;border:1px solid rgba(255,255,255,.36)!important;background:rgba(255,255,255,.12)!important;max-width:max-content!important;}
@media(max-width:980px){
  .footer-compact-inner.footer-compact-inner-wide{grid-template-columns:1fr!important;gap:14px!important;padding:18px 0!important;}
  .footer-links.footer-links-wide{justify-content:flex-start!important;border-left:0!important;border-right:0!important;border-top:1px solid rgba(255,255,255,.24)!important;border-bottom:1px solid rgba(255,255,255,.24)!important;padding:12px 0!important;}
}
@media(max-width:560px){
  .footer-links.footer-links-wide{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px 12px!important;}
  .footer-contact{font-size:12px!important;}
}

/* ===== SAMPLE-LIKE HOME SECTIONS 2026-05-15 ===== */
.page{padding-top:18px;}
.clean-section{max-width:1180px;margin:28px auto;padding:0 0;}
.clean-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin:0 0 16px;}
.clean-section-head>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;}
.clean-section-head .clean-pill{order:2;margin:0;font-size:12px;padding:7px 14px;line-height:1;background:linear-gradient(135deg,rgba(41,198,192,.14),rgba(139,92,246,.16));}
.clean-section-head h2{order:1;width:auto;margin:0;color:#08284a;font-size:30px;line-height:1.12;letter-spacing:-.6px;}
.clean-section-head p{width:100%;margin:2px 0 0;color:#52627d;font-size:14px;line-height:1.45;}
.clean-section-head>a{white-space:nowrap;color:#7b55f7;font-weight:900;font-size:15px;}
.clean-test-grid,.home-3-grid,.home-materials-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:100%;}
.clean-test-card,.poll-card{min-height:0;padding:22px 22px 20px;border-radius:16px;background:rgba(255,255,255,.92);border:1px solid rgba(213,226,241,.88);border-top:3px solid #20c2c7;box-shadow:0 14px 34px rgba(33,53,89,.08);}
.poll-card{border-top-color:#8757f3;}
.clean-test-card:hover,.poll-card:hover,.home-material-card:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(33,53,89,.12);}
.clean-test-top{display:flex;align-items:flex-start;gap:14px;}
.clean-test-icon{width:42px;height:42px;min-width:42px;border-radius:50%;box-shadow:0 10px 24px rgba(63,90,210,.18);}
.clean-test-card h3,.poll-card h3{font-size:17px;line-height:1.2;margin:0 0 9px;color:#09274a;letter-spacing:-.15px;}
.clean-test-card p,.poll-card p{font-size:13px;line-height:1.45;color:#53627a;margin:0;}
.clean-category,.poll-meta span{display:inline-flex;margin-top:22px;padding:7px 12px;border-radius:999px;font-size:12px;line-height:1;font-weight:900;background:linear-gradient(135deg,rgba(41,198,192,.14),rgba(139,92,246,.15));color:#12a6a8;}
.poll-meta{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 0;}
.poll-meta span{margin-top:0;color:#7b55f7;}
.home-material-card{border-radius:16px;border:1px solid rgba(213,226,241,.88);box-shadow:0 14px 34px rgba(33,53,89,.08);background:#fff;overflow:hidden;}
.home-material-card img{height:145px;object-fit:cover;}
.home-material-body{padding:14px 16px 16px;}
.home-material-body h3{font-size:17px;line-height:1.22;margin:10px 0 8px;color:#09274a;}
.home-material-body p{font-size:12.5px;line-height:1.45;color:#53627a;margin:0 0 12px;}
.article-tag{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef0ff;color:#7b55f7;font-size:11px;font-weight:900;}
.article-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#53627a;font-size:12px;}
.article-footer b{color:#7b55f7;font-size:12px;}
@media(max-width:1100px){.clean-section{max-width:calc(100% - 40px);} .clean-test-grid,.home-3-grid,.home-materials-grid{gap:14px}.clean-test-card,.poll-card{padding:18px}.home-material-card img{height:128px}}
@media(max-width:820px){.clean-section-head{align-items:flex-start}.clean-section-head h2{font-size:26px}.clean-test-grid,.home-3-grid,.home-materials-grid{grid-template-columns:1fr}.clean-section-head{flex-direction:column}.clean-section-head>a{align-self:flex-start}.home-material-card img{height:180px}}
@media(max-width:520px){.clean-section{max-width:calc(100% - 24px);margin:22px auto}.clean-section-head h2{font-size:24px}.clean-section-head .clean-pill{order:1}.clean-section-head h2{order:2}.clean-test-card,.poll-card{padding:16px}.home-material-card img{height:150px}}

/* === Home blocks rebuilt exactly in compact sample style === */
.home-polls-showcase{max-width:1320px!important;margin:34px auto 26px!important;padding:0!important;}
.sample-head{margin-bottom:24px!important;}
.sample-head>div{display:flex!important;align-items:center!important;gap:18px!important;flex-wrap:wrap!important;}
.sample-head h2{font-size:34px!important;line-height:1.08!important;letter-spacing:-.7px!important;color:#08284a!important;margin:0!important;}
.sample-head .clean-pill{order:initial!important;margin:0!important;background:linear-gradient(135deg,rgba(41,198,192,.13),rgba(139,92,246,.16))!important;color:#8057f2!important;border:0!important;font-size:15px!important;padding:10px 18px!important;border-radius:999px!important;font-weight:900!important;}
.sample-head>a{font-size:18px!important;color:#7d57f4!important;font-weight:900!important;text-decoration:none!important;}
.sample-poll-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;}
.sample-poll-card{min-height:260px;display:flex;flex-direction:column;justify-content:space-between;background:rgba(255,255,255,.92);border:1px solid rgba(218,228,242,.9);border-radius:14px;padding:34px 24px 26px;box-shadow:0 14px 34px rgba(31,55,92,.08);transition:.2s ease;}
.sample-poll-card:hover{transform:translateY(-2px);box-shadow:0 18px 42px rgba(31,55,92,.12);}
.sample-poll-main{display:grid;grid-template-columns:74px 1fr;gap:20px;align-items:start;}
.sample-icon{width:58px;height:58px;border-radius:999px;display:grid;place-items:center;color:white;background:linear-gradient(135deg,#08b6b8,#8057f7);box-shadow:0 12px 28px rgba(52,110,230,.25);}
.sample-icon svg{width:30px;height:30px;stroke:currentColor;}
.sample-poll-text h3{font-size:22px;line-height:1.2;margin:0 0 12px;color:#0a2548;letter-spacing:-.2px;}
.sample-poll-text p{font-size:16px;line-height:1.55;color:#52627b;margin:0;}
.sample-category{align-self:flex-start;margin:24px 0 22px;padding:10px 18px;border-radius:999px;background:rgba(39,196,188,.13);color:#079c9c;font-size:15px;font-weight:900;}
.sample-poll-card:nth-child(2) .sample-category{background:rgba(139,92,246,.13);color:#8057f2;}
.sample-actions{display:grid;grid-template-columns:.85fr 1.25fr 1.25fr;gap:12px;}
.sample-btn{height:44px;border-radius:8px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:15px;font-weight:900;text-decoration:none;border:1px solid rgba(178,195,220,.85);color:#09294f;background:white;white-space:nowrap;}
.sample-btn.primary{border:0;color:white;background:linear-gradient(135deg,#08afa9,#04a897);box-shadow:0 12px 22px rgba(0,165,156,.20);}
.sample-poll-card:nth-child(2) .sample-btn.primary{background:linear-gradient(135deg,#7b55f2,#8057f7);box-shadow:0 12px 22px rgba(123,85,242,.20);}
.sample-btn.light:hover{border-color:#7d57f4;color:#7d57f4;}
.sample-start-card{max-width:1320px;margin:28px auto 30px;background:linear-gradient(120deg,rgba(224,252,250,.78),rgba(255,255,255,.92));border:1px solid rgba(192,233,234,.9);border-radius:14px;box-shadow:0 16px 40px rgba(31,55,92,.08);padding:32px 28px;display:grid;grid-template-columns:120px 1fr auto;gap:28px;align-items:center;}
.sample-start-icon svg{width:92px;height:92px;display:block;}
.sample-start-content h2{font-size:26px;line-height:1.18;margin:0 0 12px;color:#09284d;letter-spacing:-.3px;}
.sample-start-content p{font-size:17px;line-height:1.5;margin:0;color:#31425d;}
.sample-start-content b{color:#009b9a;}
.sample-start-tags{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px;}
.sample-start-tags span{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;border-radius:8px;background:rgba(255,255,255,.68);border:1px solid rgba(198,222,237,.85);font-weight:800;color:#354864;}
.sample-start-button{min-width:240px;height:54px;border-radius:8px;display:flex;align-items:center;justify-content:center;text-decoration:none;background:linear-gradient(135deg,#08afa9,#04a897);color:#fff;font-weight:900;font-size:18px;box-shadow:0 14px 26px rgba(0,165,156,.20);}
.sample-benefits-card{max-width:1320px;margin:0 auto 34px;padding:28px 24px 34px;background:rgba(255,255,255,.92);border:1px solid rgba(218,228,242,.86);border-radius:14px;box-shadow:0 16px 40px rgba(31,55,92,.08);}
.sample-benefits-card h2{font-size:24px;line-height:1.2;margin:0 0 28px;color:#09284d;}
.sample-benefits-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;}
.sample-benefit{display:grid;grid-template-columns:80px 1fr;gap:18px;align-items:center;padding:10px 28px;border-right:1px solid rgba(178,195,220,.7);}
.sample-benefit:last-child{border-right:0;}
.benefit-icon{width:68px;height:68px;border-radius:999px;display:grid;place-items:center;font-size:34px;font-weight:900;}
.benefit-icon.teal{background:rgba(26,188,180,.14);color:#00a69d;}
.benefit-icon.purple{background:rgba(139,92,246,.15);color:#7b55f2;}
.benefit-icon.blue{background:rgba(59,130,246,.13);color:#2d73e8;}
.benefit-icon.pink{background:rgba(236,72,153,.13);color:#ec4899;}
.sample-benefit h3{font-size:17px;margin:0 0 8px;color:#09284d;line-height:1.2;}
.sample-benefit p{font-size:15px;line-height:1.45;color:#52627b;margin:0;}
.sample-created{max-width:1320px;margin:14px auto 34px;text-align:center;color:#52627b;font-size:16px;}
@media(max-width:1360px){.home-polls-showcase,.sample-start-card,.sample-benefits-card,.sample-created{max-width:calc(100% - 48px)!important;}.sample-poll-text h3{font-size:20px}.sample-poll-text p{font-size:15px}.sample-actions{grid-template-columns:1fr 1fr 1fr}.sample-benefit{padding:10px 18px;grid-template-columns:68px 1fr}.benefit-icon{width:60px;height:60px;font-size:30px}}
@media(max-width:1040px){.sample-poll-grid{grid-template-columns:1fr!important}.sample-poll-card{min-height:auto}.sample-start-card{grid-template-columns:90px 1fr;}.sample-start-button{grid-column:1/-1;width:100%;}.sample-benefits-grid{grid-template-columns:1fr 1fr}.sample-benefit:nth-child(2){border-right:0}.sample-benefit:nth-child(1),.sample-benefit:nth-child(2){border-bottom:1px solid rgba(178,195,220,.7);padding-bottom:20px}.sample-benefit:nth-child(3),.sample-benefit:nth-child(4){padding-top:20px}}
@media(max-width:680px){.home-polls-showcase,.sample-start-card,.sample-benefits-card,.sample-created{max-width:calc(100% - 24px)!important}.sample-head{align-items:flex-start!important}.sample-head>div{display:block!important}.sample-head h2{font-size:27px!important;margin:8px 0 0!important}.sample-head .clean-pill{display:inline-flex!important;font-size:12px!important;padding:8px 12px!important}.sample-poll-card{padding:22px 18px}.sample-poll-main{grid-template-columns:54px 1fr;gap:14px}.sample-icon{width:48px;height:48px}.sample-poll-text h3{font-size:18px}.sample-poll-text p{font-size:14px}.sample-actions{grid-template-columns:1fr;}.sample-start-card{grid-template-columns:1fr;padding:24px 18px;text-align:left}.sample-start-icon svg{width:78px;height:78px}.sample-start-content h2{font-size:22px}.sample-start-content p{font-size:15px}.sample-start-tags{gap:8px}.sample-start-tags span{font-size:13px;padding:8px 10px}.sample-start-button{min-width:0;font-size:16px}.sample-benefits-card{padding:22px 18px}.sample-benefits-grid{grid-template-columns:1fr}.sample-benefit{border-right:0!important;border-bottom:1px solid rgba(178,195,220,.7);padding:18px 0!important}.sample-benefit:last-child{border-bottom:0!important}.sample-benefits-card h2{font-size:22px}}

/* === FINAL REQUEST REBUILD 2026-05-15: menu lighter, face centered, laminated start block, top-chart polls, no footer gap === */
.topbar .nav-btn,
.topbar .nav-more > summary,
.nav-more-menu a,
.footer-links.footer-links-wide a{
  font-weight:600!important;
}
.topbar .brand h1{font-weight:800!important;}
.topbar .brand p{font-weight:400!important;}

/* Hero: keep the teacher clearly visible between the headline and the index card */
.clean-hero{
  grid-template-columns:minmax(430px,.95fr) minmax(270px,320px)!important;
  min-height:340px!important;
  padding:34px 34px!important;
  background-size:100% 100%, auto 112%!important;
  background-position:center center, 66% 58%!important;
  gap:34px!important;
}
.clean-hero-card{max-width:555px!important;}
.clean-hero h2{font-size:clamp(30px,2.85vw,40px)!important;line-height:1.10!important;max-width:520px!important;}
.clean-hero p{font-size:15.5px!important;max-width:560px!important;}
.clean-stat-card{align-self:center!important;max-width:320px!important;margin-left:auto!important;}
@media(max-width:1180px){
  .clean-hero{grid-template-columns:minmax(0,1fr) 285px!important;background-size:100% 100%, auto 108%!important;background-position:center center, 68% 58%!important;gap:22px!important;}
  .clean-hero h2{font-size:clamp(28px,3.4vw,36px)!important;}
}
@media(max-width:900px){
  .clean-hero{grid-template-columns:1fr!important;background-image:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.82)),url('hero_teacher_collective.png')!important;background-size:100% 100%, cover!important;background-position:center center, center 45%!important;}
  .clean-stat-card{max-width:100%!important;margin-left:0!important;}
}

/* Start block immediately after hero, laminated/glass effect */
.sample-start-card{
  margin:18px auto 20px!important;
  background:linear-gradient(120deg,rgba(238,255,253,.72),rgba(255,255,255,.76) 44%,rgba(246,241,255,.72))!important;
  border:1px solid rgba(214,231,244,.92)!important;
  border-radius:24px!important;
  box-shadow:0 22px 48px rgba(30,55,96,.10), inset 0 1px 0 rgba(255,255,255,.88)!important;
  backdrop-filter:blur(18px) saturate(1.2)!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.2)!important;
  position:relative!important;
  overflow:hidden!important;
}
.sample-start-card::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.55),rgba(255,255,255,0) 38%,rgba(255,255,255,.34) 74%,rgba(255,255,255,0));
}
.sample-start-card>*{position:relative;z-index:1;}
.sample-start-button{border-radius:16px!important;}

/* Popular polls as a compact top-chart list */
.top-polls-showcase{margin:20px auto 26px!important;}
.top-chart-head{margin-bottom:12px!important;}
.top-chart-head h2{font-size:26px!important;}
.top-chart-head .clean-pill{font-size:12px!important;padding:8px 13px!important;}
.top-chart-head>a{font-size:14px!important;}
.top-polls-list{display:grid!important;gap:10px!important;}
.top-poll-row{
  display:grid!important;
  grid-template-columns:46px 46px minmax(0,1fr) auto auto!important;
  gap:14px!important;
  align-items:center!important;
  min-height:72px!important;
  padding:12px 14px!important;
  background:rgba(255,255,255,.92)!important;
  border:1px solid rgba(216,228,243,.9)!important;
  border-radius:18px!important;
  box-shadow:0 10px 26px rgba(28,50,88,.06)!important;
  transition:.18s ease!important;
}
.top-poll-row:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(28,50,88,.10)!important;}
.top-rank{font-size:18px!important;font-weight:900!important;color:#8b5cf6!important;text-align:center!important;}
.top-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#15b8bd,#7b55f2);box-shadow:0 10px 22px rgba(36,110,210,.18);}
.top-icon svg{width:22px;height:22px;}
.top-text h3{font-size:16px!important;line-height:1.15!important;margin:0 0 4px!important;color:#09284d!important;}
.top-text p{font-size:12.5px!important;line-height:1.35!important;color:#58677f!important;margin:0!important;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
.top-category{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;padding:7px 11px!important;border-radius:999px!important;background:rgba(31,197,190,.12)!important;color:#059da0!important;font-size:12px!important;font-weight:800!important;}
.top-actions-row{display:flex!important;gap:8px!important;align-items:center!important;}
.top-btn{height:34px;padding:0 12px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:1px solid rgba(189,204,226,.9);background:#fff;color:#09284d;font-size:12.5px;font-weight:700;white-space:nowrap;}
.top-btn.primary{border:0;color:#fff;background:linear-gradient(135deg,#08afa9,#8057f7);font-weight:800;}
@media(max-width:980px){
  .top-poll-row{grid-template-columns:38px 42px minmax(0,1fr)!important;}
  .top-category,.top-actions-row{grid-column:3/4;justify-self:start;}
  .top-actions-row{margin-top:6px;flex-wrap:wrap;}
}
@media(max-width:560px){
  .top-poll-row{grid-template-columns:34px minmax(0,1fr)!important;gap:10px!important;}
  .top-icon{display:none!important;}
  .top-category,.top-actions-row{grid-column:2/3;}
  .top-btn{height:32px;padding:0 10px;}
}

/* Footer begins immediately after created line */
.sample-created{margin:10px auto 0!important;padding:0 0 12px!important;}
.site-footer.footer-compact{margin-top:0!important;}


/* === USER FINAL VISUAL FIXES: mixed top-3, centered teacher, compact start card, reliable menu === */
.topbar .nav-btn,
.topbar .nav-more>summary,
.nav-more-menu a,
.footer-links.footer-links-wide a{
  font-weight:600!important;
}
.topbar .brand h1{
  font-weight:760!important;
  max-width:520px!important;
}
.topbar .brand{max-width:560px!important;}
.nav-more[open] .nav-more-menu{display:grid!important;}
.nav-more-menu{pointer-events:auto!important;}

.clean-hero{
  min-height:330px!important;
  padding:30px 36px!important;
  grid-template-columns:minmax(0,1fr) 300px!important;
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.94) 30%,rgba(255,255,255,.70) 46%,rgba(255,255,255,.26) 66%,rgba(255,255,255,.10) 100%),
    url('hero_teacher_collective.png')!important;
  background-size:100% 100%, 100% auto!important;
  background-position:center center, center 36%!important;
  background-repeat:no-repeat,no-repeat!important;
}
.clean-hero-card{max-width:570px!important;}
.clean-hero h2{font-size:clamp(28px,2.55vw,38px)!important;line-height:1.12!important;max-width:540px!important;}
.clean-hero p{font-size:15px!important;line-height:1.52!important;max-width:565px!important;}
.clean-stat-card{margin-right:16px!important;background:rgba(255,255,255,.90)!important;}

.sample-start-card{
  min-height:94px!important;
  padding:16px 24px!important;
  margin-top:-8px!important;
  margin-bottom:20px!important;
  border:1px solid rgba(185,230,232,.78)!important;
  background:linear-gradient(110deg,rgba(232,255,255,.78),rgba(255,255,255,.72),rgba(239,234,255,.78))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88), 0 20px 50px rgba(24,60,95,.10)!important;
  backdrop-filter:blur(16px) saturate(1.12)!important;
  -webkit-backdrop-filter:blur(16px) saturate(1.12)!important;
}
.sample-start-icon{width:70px!important;min-width:70px!important;}
.sample-start-icon svg{width:70px!important;height:70px!important;}
.sample-start-content h2{font-size:22px!important;margin:0 0 6px!important;}
.sample-start-content p{font-size:15px!important;line-height:1.45!important;margin:0!important;}
.sample-start-tags{gap:8px!important;margin-top:10px!important;}
.sample-start-tags span{padding:7px 11px!important;font-size:13px!important;}
.sample-start-button{min-height:44px!important;padding:10px 22px!important;border-radius:13px!important;white-space:nowrap!important;}

.top-chart-head h2{font-size:28px!important;}
.top-polls-list{display:grid!important;gap:10px!important;}
.top-poll-row{
  display:grid!important;
  grid-template-columns:54px 52px minmax(0,1fr) 190px auto!important;
  align-items:center!important;
  gap:14px!important;
  padding:14px 16px!important;
  min-height:82px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.88)!important;
  border:1px solid rgba(214,225,241,.92)!important;
  box-shadow:0 12px 30px rgba(24,50,90,.06)!important;
}
.top-rank{font-size:22px!important;font-weight:860!important;color:#7c5cff!important;opacity:.95!important;}
.top-icon{width:48px!important;height:48px!important;border-radius:16px!important;background:linear-gradient(135deg,#20c0cd,#7c5cff)!important;color:#fff!important;display:grid!important;place-items:center!important;}
.top-text h3{font-size:17px!important;margin:0 0 4px!important;}
.top-text p{font-size:13px!important;line-height:1.32!important;margin:0!important;color:#60718d!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;}
.top-category{justify-self:start!important;padding:7px 10px!important;border-radius:999px!important;background:#eef9f9!important;color:#049b9b!important;font-size:12px!important;font-weight:750!important;white-space:nowrap!important;}
.top-actions-row{display:flex!important;gap:8px!important;flex-wrap:nowrap!important;}
.top-btn{padding:8px 10px!important;border-radius:11px!important;font-size:12.5px!important;font-weight:700!important;white-space:nowrap!important;}
.top-btn.primary{background:linear-gradient(135deg,#19bbc2,#7d56f4)!important;color:#fff!important;}

.sample-created{margin-bottom:0!important;padding-bottom:12px!important;}
.sample-created + .site-footer,
main + .site-footer{margin-top:0!important;}
.site-footer.footer-compact{margin-top:0!important;}

@media(max-width:1180px){
  .topbar .brand{max-width:100% !important;}
  .clean-hero{background-size:100% 100%, auto 120%!important;background-position:center center, 58% 36%!important;}
  .top-poll-row{grid-template-columns:42px 46px minmax(0,1fr)!important;}
  .top-category,.top-actions-row{grid-column:3!important;}
  .top-actions-row{margin-top:6px!important;}
}
@media(max-width:980px){
  .clean-hero{
    background-image:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.84)),url('hero_teacher_collective.png')!important;
    background-size:100% 100%, cover!important;
    background-position:center center, 58% 34%!important;
  }
  .sample-start-card{grid-template-columns:64px 1fr!important;gap:14px!important;}
  .sample-start-button{grid-column:1 / -1;width:100%!important;justify-content:center!important;}
}
@media(max-width:720px){
  .topbar .brand{max-width:none!important;}
  .top-poll-row{grid-template-columns:36px 42px minmax(0,1fr)!important;padding:12px!important;}
  .top-actions-row{display:grid!important;grid-template-columns:1fr 1fr!important;}
  .top-actions-row .top-btn:last-child{grid-column:1 / -1!important;}
}
@media(max-width:640px){
  .clean-hero{background-position:center center, 60% 32%!important;}
  .sample-start-card{padding:14px!important;}
  .sample-start-icon{display:none!important;}
  .sample-start-card{grid-template-columns:1fr!important;}
}

/* === FINAL HERO PHOTO POSITION PATCH 2026-05-15: girl centered in narrow right area === */
.clean-hero{
  background-image:
    linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.94) 36%,rgba(255,255,255,.58) 56%,rgba(255,255,255,.16) 74%),
    url('hero_teacher_collective.png')!important;
  background-size:100% 100%, 150% auto!important;
  background-position:center center, 58% 20%!important;
  background-repeat:no-repeat!important;
}
.clean-stat-card{margin-right:0!important;}
@media(max-width:1260px){
  .clean-hero{
    background-size:100% 100%, 148% auto!important;
    background-position:center center, 58% 20%!important;
  }
}
@media(max-width:1180px){
  .clean-hero{
    background-size:100% 100%, 145% auto!important;
    background-position:center center, 58% 21%!important;
  }
}
@media(max-width:980px){
  .clean-hero{
    background-image:linear-gradient(180deg,rgba(255,255,255,.97),rgba(255,255,255,.84)),url('hero_teacher_collective.png')!important;
    background-size:100% 100%, cover!important;
    background-position:center center, 60% 26%!important;
  }
}
@media(max-width:640px){
  .clean-hero{
    background-position:center center, 61% 24%!important;
  }
}

/* === MENU FIX 2026-05-15: no Home button, lighter submenu, stable More menu === */
.top-actions > a.nav-main,
.topbar .nav-main,
.topbar-smart .nav-main{
  display:none!important;
}
.topbar .nav-more,
.topbar-smart .nav-more,
.nav-more{
  position:relative!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  z-index:100000!important;
}
.topbar .nav-more > summary,
.topbar-smart .nav-more > summary,
.nav-more > summary{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  min-height:42px!important;
  height:42px!important;
  padding:0 14px!important;
  border-radius:14px!important;
  border:1px solid #d7e3f4!important;
  background:#fff!important;
  color:#092b49!important;
  font-family:inherit!important;
  font-size:14.5px!important;
  font-weight:500!important;
  line-height:1!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  list-style:none!important;
  user-select:none!important;
  box-shadow:0 6px 16px rgba(15,40,80,.04)!important;
}
.topbar .nav-more > summary::-webkit-details-marker,
.topbar-smart .nav-more > summary::-webkit-details-marker,
.nav-more > summary::-webkit-details-marker{display:none!important;}
.topbar .nav-more[open] > summary,
.topbar-smart .nav-more[open] > summary,
.nav-more[open] > summary{
  background:#f5f8ff!important;
  border-color:#c9d9ee!important;
}
.topbar .nav-more-menu,
.topbar-smart .nav-more-menu,
.nav-more-menu{
  position:absolute!important;
  top:calc(100% + 10px)!important;
  right:0!important;
  left:auto!important;
  width:min(330px,calc(100vw - 18px))!important;
  min-width:min(330px,calc(100vw - 18px))!important;
  max-height:min(74vh,640px)!important;
  overflow:auto!important;
  padding:10px!important;
  display:grid!important;
  gap:6px!important;
  border:1px solid #dbe5f1!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 24px 70px rgba(20,35,70,.18)!important;
  z-index:2147483647!important;
}
.topbar .nav-more:not([open]) .nav-more-menu,
.topbar-smart .nav-more:not([open]) .nav-more-menu,
.nav-more:not([open]) .nav-more-menu{display:none!important;}
.topbar .nav-more-menu a,
.topbar-smart .nav-more-menu a,
.nav-more-menu a{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:40px!important;
  padding:9px 11px!important;
  border-radius:12px!important;
  background:rgba(247,250,255,.72)!important;
  color:#092b49!important;
  font-family:inherit!important;
  font-size:14.5px!important;
  font-weight:500!important;
  line-height:1.25!important;
  text-decoration:none!important;
  white-space:normal!important;
}
.topbar .nav-more-menu a:hover,
.topbar-smart .nav-more-menu a:hover,
.nav-more-menu a:hover{background:#f2f7ff!important;color:#09669b!important;}
.topbar .nav-more-menu .nav-ico,
.topbar-smart .nav-more-menu .nav-ico,
.nav-more-menu .nav-ico{
  width:22px!important;
  min-width:22px!important;
  display:inline-flex!important;
  justify-content:center!important;
  color:#092b49!important;
  font-weight:500!important;
}
@media(max-width:720px){
  .topbar .nav-more > summary span:not(.nav-ico),
  .topbar-smart .nav-more > summary span:not(.nav-ico),
  .nav-more > summary span:not(.nav-ico){display:inline!important;}
  .topbar .nav-more-menu,
  .topbar-smart .nav-more-menu,
  .nav-more-menu{right:0!important;left:auto!important;width:min(92vw,330px)!important;min-width:min(92vw,330px)!important;}
}
@media(max-width:420px){
  .topbar .nav-more > summary,
  .topbar-smart .nav-more > summary,
  .nav-more > summary{padding:0 12px!important;font-size:14px!important;}
  .topbar .nav-more-menu,
  .topbar-smart .nav-more-menu,
  .nav-more-menu{right:-6px!important;width:calc(100vw - 18px)!important;min-width:calc(100vw - 18px)!important;}
}


/* Real jury role carousel */
.demo-carousel-shell {
  position: relative;
  max-width: 920px;
  margin: 26px auto 0;
  padding: 0 58px 42px;
}

.demo-carousel-viewport {
  overflow: hidden;
  border-radius: 32px;
}

.demo-carousel-track {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}

.demo-slide {
  min-width: 100%;
  min-height: 245px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 34px;
  border: 1px solid rgba(94, 164, 190, .24);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(238,248,255,.94));
  box-shadow: 0 22px 56px rgba(19, 63, 94, .13);
  color: #0b3450;
  text-decoration: none;
}

.demo-slide:hover,
.demo-slide:focus-visible {
  outline: none;
  box-shadow: 0 28px 66px rgba(19, 63, 94, .18);
}

.demo-carousel-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0b3450;
  box-shadow: 0 12px 28px rgba(19, 63, 94, .16);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.demo-prev { left: 0; }
.demo-next { right: 0; }

.demo-carousel-btn:hover,
.demo-carousel-btn:focus-visible {
  background: #0b3450;
  color: #ffffff;
  outline: none;
}

.demo-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.demo-carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 52, 80, .25);
  cursor: pointer;
}

.demo-carousel-dots button.active {
  width: 28px;
  background: #0b3450;
}

.demo-role-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(224, 244, 249, .95);
  color: #0b3450;
  font-size: 24px;
}

.demo-role-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-role-content strong {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.demo-role-content small {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(11, 52, 80, .76);
}

.demo-role-content em {
  width: fit-content;
  margin-top: 4px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #0b3450;
  color: #fff;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .demo-carousel-shell {
    padding: 0 0 42px;
  }

  .demo-carousel-btn {
    display: none;
  }

  .demo-slide {
    min-height: 260px;
    padding: 22px;
    border-radius: 24px;
  }

  .demo-role-content strong {
    font-size: 20px;
  }

  .demo-role-content small {
    font-size: 14px;
  }
}


/* Jury system cards */
.jury-system-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
 gap:18px;
 margin-top:22px;
}

.jury-system-card{
 background:linear-gradient(145deg,#ffffff,#f3f9ff);
 border-radius:28px;
 padding:24px;
 box-shadow:0 18px 40px rgba(15,50,80,.08);
 border:1px solid rgba(120,160,190,.16);
}

.jury-system-card h3{
 margin:0 0 12px;
 color:#0b3450;
 font-size:20px;
}

.jury-system-card p{
 margin:0;
 line-height:1.7;
 color:rgba(11,52,80,.78);
}

.demo-carousel-track{
 width:100%;
}

.demo-slide{
 box-sizing:border-box;
}


/* Jury system section — polished cards */
.jury-system-section .section-lead {
  max-width: 980px;
}

.jury-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.jury-system-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,249,255,.94));
  border: 1px solid rgba(95, 157, 190, .18);
  box-shadow: 0 18px 42px rgba(18, 55, 86, .09);
  overflow: hidden;
}

.jury-system-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137, 197, 213, .20), rgba(167, 139, 250, .08));
}

.jury-system-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(224, 244, 249, .92);
  color: #0b3450;
  font-weight: 700;
  font-size: 14px;
}

.jury-system-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  color: #0b3450;
}

.jury-system-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(11, 52, 80, .78);
}

@media (max-width: 1024px) {
  .jury-system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .jury-system-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .jury-system-card {
    min-height: auto;
    padding: 20px;
    border-radius: 22px;
  }

  .jury-system-card h3 {
    font-size: 18px;
  }

  .jury-system-card p {
    font-size: 14px;
  }
}



/* Fix role carousel scrolling */
.demo-carousel-shell {
  position: relative;
  max-width: 980px;
  margin: 26px auto 0;
  padding: 0 58px 44px;
  overflow: visible;
}

.demo-carousel-viewport {
  width: 100%;
  overflow: hidden;
  border-radius: 32px;
}

.demo-carousel-track {
  display: flex;
  width: 100%;
  transition: transform .35s ease;
  will-change: transform;
  transform: translate3d(0,0,0);
}

.demo-slide {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.demo-carousel-btn {
  z-index: 20;
  pointer-events: auto;
}

.demo-carousel-dots {
  z-index: 20;
  pointer-events: auto;
}

.demo-carousel-dots button {
  pointer-events: auto;
}

@media (max-width: 720px) {
  .demo-carousel-shell {
    padding-left: 0;
    padding-right: 0;
  }
}







/* FINAL SURVEY PAGE LAYOUT LIKE REFERENCE */
.test-page-wide {
  max-width: 100% !important;
  padding: 30px clamp(18px, 4vw, 56px) !important;
}

.compact-test-layout {
  width: 100% !important;
  max-width: 1580px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 330px) minmax(600px, 1fr) minmax(260px, 360px) !important;
  gap: 28px !important;
  align-items: start !important;
}

.compact-test-layout .sidebar,
.compact-test-layout .rightbar {
  width: 100% !important;
  max-width: none !important;
}

.compact-panel,
.side-card {
  border-radius: 28px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 18px 42px rgba(12, 45, 75, .08) !important;
}

.survey-full-card,
.compact-test-card.visual-test-card {
  width: 100% !important;
  max-width: none !important;
  padding: 28px !important;
  border-radius: 30px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.survey-full-card .visual-test-head,
.compact-test-card.visual-test-card .visual-test-head {
  width: 100% !important;
  max-width: none !important;
  padding: 34px 40px !important;
  border-radius: 26px !important;
  box-sizing: border-box !important;
}

.survey-full-card .visual-test-head > div,
.compact-test-card.visual-test-card .visual-test-head > div {
  width: 100% !important;
  max-width: none !important;
}

.survey-full-card h1,
.compact-test-card.visual-test-card h1 {
  font-size: clamp(30px, 2.4vw, 42px) !important;
  line-height: 1.12 !important;
  margin: 18px 0 10px !important;
}

.survey-full-card .visual-test-head p,
.compact-test-card.visual-test-card .visual-test-head p {
  max-width: 760px !important;
  font-size: 18px !important;
  line-height: 1.55 !important;
}

.survey-full-card .question-box,
.compact-test-card.visual-test-card .question-box,
.question-step {
  width: 100% !important;
  max-width: none !important;
  padding: 32px 0 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.survey-full-card .question-box h2,
.compact-test-card.visual-test-card .question-box h2 {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 0 24px !important;
  font-size: clamp(24px, 2vw, 32px) !important;
  line-height: 1.25 !important;
}

.survey-full-card label.option.visual-option,
.compact-test-card.visual-test-card label.option.visual-option,
.survey-full-card .option.visual-option,
.compact-test-card.visual-test-card .option.visual-option {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 64px !important;
  margin: 0 0 12px !important;
  padding: 0 22px !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
  background: rgba(255,255,255,.86) !important;
}

.survey-full-card .option.visual-option input,
.compact-test-card.visual-test-card .option.visual-option input {
  flex: 0 0 auto !important;
}

.survey-full-card .option.visual-option span,
.compact-test-card.visual-test-card .option.visual-option span {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.survey-full-card .actions,
.compact-test-card.visual-test-card .actions {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.7fr) !important;
  gap: 18px !important;
  margin-top: 28px !important;
  padding-top: 24px !important;
  border-top: 1px solid rgba(13, 52, 80, .10) !important;
}

.survey-full-card .actions .btn,
.compact-test-card.visual-test-card .actions .btn {
  width: 100% !important;
  max-width: none !important;
  min-height: 64px !important;
  justify-content: center !important;
  border-radius: 16px !important;
}

/* убирает старые узкие ограничения, которые сжимали вопрос и ответы */
.visual-test-card * {
  max-width: none;
}

.visual-test-card .status-pill,
.visual-test-card .round-icon {
  max-width: fit-content;
}

@media (max-width: 1180px) {
  .compact-test-layout {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) !important;
  }

  .compact-test-layout .rightbar {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

@media (max-width: 820px) {
  .test-page-wide {
    padding: 18px 12px !important;
  }

  .compact-test-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .compact-test-layout .sidebar {
    order: 2 !important;
  }

  .survey-full-card,
  .compact-test-card.visual-test-card {
    order: 1 !important;
    padding: 16px !important;
    border-radius: 24px !important;
  }

  .compact-test-layout .rightbar {
    order: 3 !important;
    grid-template-columns: 1fr !important;
  }

  .survey-full-card .visual-test-head,
  .compact-test-card.visual-test-card .visual-test-head {
    padding: 22px !important;
    border-radius: 22px !important;
  }

  .survey-full-card .visual-test-head p,
  .compact-test-card.visual-test-card .visual-test-head p {
    font-size: 15px !important;
  }

  .survey-full-card .question-box h2,
  .compact-test-card.visual-test-card .question-box h2 {
    font-size: 21px !important;
  }

  .survey-full-card .actions,
  .compact-test-card.visual-test-card .actions {
    grid-template-columns: 1fr !important;
  }
}



/* Content kind selector in constructor */
.settings-panel select[name="content_kind"] {
  font-weight: 700;
  color: #0b3450;
  background: linear-gradient(135deg, rgba(41,198,192,.10), rgba(139,92,246,.10));
}



/* === SafeMind final: App dropdown exactly in current header style === */
.top-actions {
  position: relative;
}

.nav-app {
  position: relative;
}

.nav-app summary {
  list-style: none;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(139, 92, 246, .35);
  border-radius: 16px;
  background: rgba(255,255,255,.86);
  color: #7c3aed;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30, 58, 138, .04);
}

.nav-app summary::-webkit-details-marker {
  display: none;
}

.nav-app summary::after {
  content: "⌄";
  margin-left: 4px;
  font-size: 15px;
  color: #7c3aed;
}

.nav-app[open] summary {
  border-color: rgba(139, 92, 246, .62);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .10);
}

.nav-app .app-ico {
  font-size: 18px;
}

.app-dropdown-card {
  position: absolute;
  top: calc(100% + 18px);
  right: -92px;
  width: min(640px, 86vw);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: 26px;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(166, 190, 220, .28);
  box-shadow: 0 26px 70px rgba(12, 35, 65, .14);
  z-index: 9999;
  backdrop-filter: blur(14px);
}

.app-dropdown-card::before {
  content: "";
  position: absolute;
  top: -13px;
  right: 165px;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,.97);
  border-left: 1px solid rgba(166, 190, 220, .24);
  border-top: 1px solid rgba(166, 190, 220, .24);
  transform: rotate(45deg);
}

.app-phone-preview {
  width: 122px;
  height: 218px;
  justify-self: center;
  align-self: center;
  position: relative;
  border-radius: 25px;
  background: #111827;
  box-shadow: 0 18px 38px rgba(79, 70, 229, .18);
  padding: 7px;
}

.app-phone-notch {
  position: absolute;
  left: 50%;
  top: 11px;
  width: 42px;
  height: 11px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #111827;
  z-index: 2;
}

.app-phone-screen {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fbff 0%, #eef7ff 100%);
  padding: 24px 10px 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.app-mini-head {
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34,197,195,.28), rgba(139,92,246,.18));
  margin-bottom: 9px;
}

.app-mini-chart {
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.80), rgba(255,255,255,.35)),
    linear-gradient(135deg, rgba(20,184,166,.18), rgba(139,92,246,.18));
  margin-bottom: 9px;
}

.app-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.app-mini-grid span {
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 14px rgba(30, 58, 138, .06);
}

.app-dropdown-content {
  align-self: center;
}

.app-dropdown-content h3 {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.15;
  color: #0b3450;
  font-weight: 700;
}

.app-dropdown-content p {
  margin: 0;
  max-width: 360px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(11, 52, 80, .72);
}

.app-dropdown-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  width: 100%;
  border-top: 1px solid rgba(13, 52, 80, .10);
  color: #7c3aed;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
}

.app-dropdown-link span {
  font-size: 24px;
  line-height: 1;
}

/* аккуратнее иконки опитувань/тестів в текущем списке */
.side-link .round-icon,
.round-icon {
  width: 52px !important;
  height: 52px !important;
  flex: 0 0 52px !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.38), transparent 36%),
    linear-gradient(135deg, #22c5c7 0%, #7c3aed 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 10px 22px rgba(79,70,229,.16) !important;
}

.side-link .round-icon svg,
.round-icon svg {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 2.1 !important;
}

/* меньше жирности в меню, поиске и фильтрах */
.nav-more-menu a,
.nav-more-menu a span,
.catalog-filter-grid label,
.catalog-filter-grid select,
.catalog-filter-toggle,
.catalog-type-select select,
.catalog-search-box input,
.catalog-filter-head,
.catalog-filter-head button {
  font-weight: 500 !important;
}

.catalog-filter-grid label > span:first-child {
  font-weight: 400 !important;
}

/* центрирование страницы входа: "або" и замок */
.login-card,
.auth-card,
.login-box {
  text-align: center !important;
}

.login-card form,
.auth-card form,
.login-box form {
  text-align: left !important;
}

.login-card .divider,
.auth-card .divider,
.login-box .divider,
.login-card .secure-note,
.auth-card .secure-note,
.login-box .secure-note {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

@media (max-width: 900px) {
  .nav-app summary {
    padding: 0 14px;
  }

  .app-dropdown-card {
    right: -120px;
    width: min(520px, 92vw);
    grid-template-columns: 125px 1fr;
    gap: 18px;
    padding: 22px;
  }

  .app-phone-preview {
    width: 98px;
    height: 176px;
  }

  .app-dropdown-content h3 {
    font-size: 23px;
  }

  .app-dropdown-content p {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .top-actions {
    gap: 8px;
  }

  .nav-app {
    position: static;
  }

  .app-dropdown-card {
    left: 12px;
    right: 12px;
    top: calc(100% + 12px);
    width: auto;
    grid-template-columns: 92px 1fr;
    border-radius: 22px;
  }

  .app-dropdown-card::before {
    display: none;
  }

  .app-phone-preview {
    width: 76px;
    height: 136px;
    border-radius: 20px;
    padding: 5px;
  }

  .app-phone-screen {
    border-radius: 16px;
    padding: 18px 7px 7px;
  }

  .app-mini-chart {
    height: 28px;
  }

  .app-mini-grid span {
    height: 24px;
  }
}


/* ===== SafeMind architecture/jury refinements ===== */

.jury-architecture,
.architecture-block,
.arch-card,
.architecture-card {
border-radius:26px!important;
border:1px solid rgba(148,163,184,.16)!important;
background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,255,.92))!important;
box-shadow:0 18px 44px rgba(15,23,42,.06)!important;
}

.jury-architecture h2,
.architecture-block h2,
.arch-card h3{
letter-spacing:-0.02em!important;
font-weight:700!important;
color:#0b3450!important;
}

.arch-grid,
.architecture-grid{
gap:22px!important;
}

.arch-mini-card,
.arch-step,
.arch-service{
border-radius:20px!important;
border:1px solid rgba(125,125,255,.10)!important;
background:rgba(255,255,255,.88)!important;
box-shadow:0 8px 22px rgba(79,70,229,.05)!important;
}

.arch-mini-card p,
.arch-step p,
.arch-service p{
font-weight:400!important;
line-height:1.55!important;
color:rgba(11,52,80,.72)!important;
}

.arch-icon,
.arch-service-icon{
background:linear-gradient(135deg,#22c5c7,#7c3aed)!important;
border-radius:18px!important;
box-shadow:0 10px 24px rgba(79,70,229,.12)!important;
}

.jury-section,
.jury-about,
.jury-roadmap{
padding:28px!important;
border-radius:30px!important;
background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
box-shadow:0 16px 42px rgba(15,23,42,.05)!important;
}


/* ===== Jury architecture preview ===== */

.jury-architecture-preview{
    margin:36px auto;
    padding:32px;
    border-radius:32px;
    background:linear-gradient(180deg,#ffffff,#f7faff);
    box-shadow:0 20px 48px rgba(15,23,42,.06);
    border:1px solid rgba(148,163,184,.14);
}

.jury-arch-head{
    margin-bottom:24px;
}

.jury-arch-head h2{
    margin:10px 0 12px;
    font-size:clamp(32px,3vw,48px);
    line-height:1.1;
    color:#0b3450;
}

.jury-arch-head p{
    max-width:760px;
    color:rgba(11,52,80,.72);
    line-height:1.7;
    font-size:17px;
}

.jury-arch-image-wrap{
    border-radius:28px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 18px 42px rgba(15,23,42,.08);
}

.jury-arch-image{
    width:100%;
    display:block;
}

@media(max-width:768px){
    .jury-architecture-preview{
        padding:18px;
        border-radius:24px;
    }
}

/* === SAFE MIND 222: clean global header/footer + jury showcase === */
.sm-topbar{position:sticky;top:0;z-index:9999;display:grid;grid-template-columns:minmax(230px,330px) 1fr;gap:22px;align-items:center;padding:14px clamp(18px,4vw,54px);background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid rgba(120,83,255,.14);box-shadow:0 10px 26px rgba(18,22,74,.06)}
.sm-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#11164a}.sm-logo{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;border:2px solid rgba(124,77,255,.35);background:#fff;color:#6f3df4;font-weight:900;font-size:26px}.sm-brand-text{display:grid}.sm-brand-text strong{font-size:clamp(18px,1.5vw,24px);line-height:1}.sm-brand-text span{font-size:13px;color:#53607d;margin-top:4px}.sm-nav{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}.sm-nav-link,.sm-jury-menu summary,.sm-account-menu summary,.sm-more-menu summary{height:46px;display:inline-flex;align-items:center;gap:8px;padding:0 18px;border-radius:16px;border:1px solid rgba(124,77,255,.16);background:#fff;color:#11164a;text-decoration:none;font-weight:800;white-space:nowrap;cursor:pointer;list-style:none}.sm-jury-menu summary{background:linear-gradient(135deg,#7c4dff,#8e5cff);color:#fff;border:0;box-shadow:0 10px 24px rgba(124,77,255,.23)}.sm-account-menu summary{background:linear-gradient(135deg,#22b8e8,#874cff);color:#fff;border:0}.sm-jury-menu,.sm-account-menu,.sm-more-menu{position:relative}.sm-dropdown{position:absolute;right:0;top:calc(100% + 10px);min-width:245px;background:#fff;border:1px solid rgba(124,77,255,.16);border-radius:20px;padding:12px;box-shadow:0 22px 50px rgba(31,24,74,.16);display:none;flex-direction:column;gap:6px;z-index:10000}.sm-jury-menu[open] .sm-dropdown,.sm-account-menu[open] .sm-dropdown,.sm-more-menu[open] .sm-dropdown{display:flex}.sm-dropdown a{padding:12px 14px;border-radius:14px;text-decoration:none;color:#11164a;font-weight:700}.sm-dropdown a:hover{background:#f4efff;color:#6f3df4}.sm-more-menu summary{padding:0 14px}.sm-footer{width:100%;box-sizing:border-box;margin-top:44px;padding:34px clamp(18px,4vw,54px) 18px;background:linear-gradient(135deg,#7044ea,#5877ef);color:#fff}.sm-footer-grid{max-width:1240px;margin:0 auto;display:grid;grid-template-columns:1.4fr .8fr .9fr 1fr 1fr;gap:28px}.sm-footer h4{margin:0 0 12px;color:#fff}.sm-footer a{display:block;color:rgba(255,255,255,.9);text-decoration:none;margin:7px 0}.sm-footer p{color:rgba(255,255,255,.86);line-height:1.5}.sm-footer-brand{display:flex;align-items:center;gap:10px;margin-bottom:10px}.sm-footer-bottom{max-width:1240px;margin:24px auto 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.2);color:rgba(255,255,255,.85);font-size:13px}

.jury-showcase{background:linear-gradient(180deg,#fbfcff 0%,#fff 100%);color:#10194d}.jury-hero-new{min-height:560px;display:grid;grid-template-columns:1.05fr .95fr;gap:30px;align-items:center;padding:56px clamp(20px,5vw,70px);background:radial-gradient(circle at 10% 20%,#f1ecff 0,#fff 35%,#f8fbff 100%)}.jury-hero-copy h1{font-size:clamp(34px,5vw,68px);line-height:1.05;margin:16px 0;color:#081047}.jury-hero-copy p{font-size:clamp(16px,1.5vw,20px);line-height:1.55;max-width:720px}.jury-pill{display:inline-flex;padding:10px 18px;border-radius:999px;background:#f1ebff;color:#6f3df4;font-weight:800}.jury-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}.jury-actions a{display:inline-flex;align-items:center;justify-content:center;padding:14px 24px;border-radius:16px;background:linear-gradient(135deg,#7c4dff,#8e5cff);color:#fff;text-decoration:none;font-weight:900}.jury-actions .secondary{background:#fff;color:#6f3df4;border:1px solid rgba(124,77,255,.25)}.jury-trust{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.jury-trust span{padding:12px 16px;border-radius:16px;background:#fff;border:1px solid rgba(124,77,255,.14);font-weight:800}.jury-hero-visual{position:relative;min-height:430px;border-radius:34px;overflow:hidden;background:linear-gradient(135deg,#f5f1ff,#edf8ff);box-shadow:0 20px 55px rgba(31,24,74,.12)}.teacher-photo{position:absolute;inset:0;background:url('assets/hero-teacher.jpg') center/cover no-repeat,linear-gradient(135deg,#f5f1ff,#edf8ff)}.hero-stat{position:absolute;right:24px;bottom:24px;width:210px;padding:24px;border-radius:24px;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);box-shadow:0 18px 45px rgba(31,24,74,.12)}.hero-stat b{display:block;font-size:48px;color:#6f3df4}.hero-stat span{font-weight:700}.jury-section,.jury-page-title,.jury-split,.jury-feature-row,.jury-demo-grid,.architecture-wrap,.author-card{max-width:1240px;margin:0 auto 28px;padding:0 clamp(20px,3vw,30px)}.jury-section{padding-top:34px}.jury-section-head{display:flex;align-items:center;gap:14px;margin-bottom:22px}.jury-section-head span,.jury-page-title span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#7c4dff,#8e5cff);color:#fff;font-weight:900}.jury-section-head h2,.jury-page-title h1{margin:0;color:#081047}.jury-card-grid{display:grid;gap:18px}.jury-card-grid.four{grid-template-columns:repeat(4,1fr)}.jury-card-grid article,.soft-panel,.jury-demo-grid article,.author-card{background:#fff;border:1px solid rgba(124,77,255,.14);border-radius:24px;padding:24px;box-shadow:0 14px 34px rgba(31,24,74,.06)}.jury-card-grid article h3{margin:12px 0 8px}.icon{width:58px;height:58px;border-radius:20px;display:grid;place-items:center;font-weight:900;font-size:22px}.purple{background:#f1ebff;color:#6f3df4}.blue{background:#eaf5ff;color:#146de5}.green{background:#eafaf1;color:#099552}.orange{background:#fff1e2;color:#f07a00}.jury-side-nav{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.jury-side-nav a{padding:18px;border-radius:18px;background:#fff;border:1px solid rgba(124,77,255,.16);text-decoration:none;color:#10194d;font-weight:900}.jury-page-title{padding-top:48px;text-align:center}.jury-page-title h1{font-size:clamp(30px,4vw,54px);margin:18px auto 12px;max-width:900px}.jury-page-title p{max-width:800px;margin:0 auto;font-size:18px;line-height:1.55}.jury-split{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:stretch}.jury-split>div:first-child{background:#fff;border-radius:24px;padding:28px;border:1px solid rgba(124,77,255,.14)}.jury-feature-row{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.jury-feature-row div{background:#fff;border:1px solid rgba(124,77,255,.14);border-radius:22px;padding:22px;text-align:center;display:grid;gap:8px}.jury-feature-row b{color:#081047}.jury-demo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.ui-shot{height:150px;border-radius:18px;background:linear-gradient(135deg,#f2edff,#eef9ff);border:1px solid rgba(124,77,255,.15);position:relative}.ui-shot:before{content:'';position:absolute;inset:18px;border-radius:12px;background:repeating-linear-gradient(180deg,#fff 0 18px,#ece8ff 18px 22px)}.architecture-wrap img{width:100%;border-radius:24px;border:1px solid rgba(124,77,255,.16);box-shadow:0 18px 45px rgba(31,24,74,.09)}.author-card{display:grid;grid-template-columns:190px 1fr 160px;gap:26px;align-items:center}.author-photo{width:170px;height:170px;border-radius:50%;background:url('assets/author.jpg') center/cover no-repeat,linear-gradient(135deg,#f5f1ff,#edf8ff);border:8px solid #fff;box-shadow:0 18px 40px rgba(31,24,74,.12)}.qr-box{height:150px;border-radius:22px;display:grid;place-items:center;background:#fff;border:2px dashed rgba(124,77,255,.3);font-size:34px;font-weight:900;color:#6f3df4}

@media(max-width:1100px){.sm-topbar{grid-template-columns:1fr}.sm-nav{justify-content:flex-start;overflow-x:auto}.jury-hero-new{grid-template-columns:1fr}.jury-card-grid.four,.jury-demo-grid{grid-template-columns:repeat(2,1fr)}.jury-feature-row{grid-template-columns:repeat(2,1fr)}.sm-footer-grid{grid-template-columns:1fr 1fr}.jury-side-nav{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.sm-topbar{padding:12px}.sm-brand-text span{display:none}.sm-nav-link,.sm-jury-menu summary,.sm-account-menu summary{height:42px;padding:0 12px;font-size:13px}.jury-hero-new{padding:32px 16px}.jury-hero-visual{min-height:330px}.jury-card-grid.four,.jury-demo-grid,.jury-split,.jury-feature-row,.sm-footer-grid,.jury-side-nav,.author-card{grid-template-columns:1fr}.author-photo{margin:auto}.qr-box{height:120px}.sm-dropdown{left:0;right:auto}}

/* === Jury presentation visual upgrade final === */
.jury-presentation-body{background:#fbfcff}
.pitch-hero,.pitch-slide,.pitch-detail{position:relative;max-width:1480px;margin:0 auto 14px;border:1px solid rgba(124,77,255,.14);border-radius:28px;background:rgba(255,255,255,.94);box-shadow:0 18px 45px rgba(31,24,74,.06);overflow:hidden}
.pitch-hero{min-height:620px;display:grid;grid-template-columns:1.05fr .95fr;gap:26px;align-items:center;padding:54px clamp(22px,4vw,70px);background:radial-gradient(circle at 20% 20%,#f1ebff,transparent 34%),linear-gradient(135deg,#fff,#f7fbff)}
.pitch-copy h1{font-size:clamp(42px,6vw,82px);line-height:.95;margin:18px 0 8px;color:#07104a;letter-spacing:-.04em}
.pitch-copy h2{font-size:clamp(30px,4vw,54px);line-height:1.05;margin:0 0 18px;color:#7044ea}.pitch-copy p,.slide-text p,.detail-copy p{font-size:18px;line-height:1.58;color:#263154}
.pitch-number,.slide-label{position:absolute;top:18px;left:18px;width:54px;height:54px;border-radius:14px;background:linear-gradient(135deg,#7c4dff,#8d5cff);color:#fff;display:grid;place-items:center;font-weight:950;font-size:22px;box-shadow:0 12px 24px rgba(124,77,255,.22)}
.author-hero-visual{min-height:500px;border-radius:32px;background:url('author.jpg') center 30%/cover no-repeat, url('assets/author.jpg') center 30%/cover no-repeat;box-shadow:inset 0 0 0 999px rgba(245,241,255,.16)}
.floating-card{position:absolute;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border:1px solid rgba(124,77,255,.12);border-radius:24px;padding:20px;box-shadow:0 18px 45px rgba(31,24,74,.13)}.stat-card{right:26px;bottom:28px;width:210px}.stat-card b{display:block;font-size:50px;color:#7044ea}.stat-card span{font-weight:800;color:#14204d}.quote-card{top:34px;left:28px;font-weight:900;color:#7044ea}
.pitch-slide{min-height:360px;display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center;padding:54px clamp(22px,4vw,70px)}.slide-text h2,.detail-copy h1{font-size:clamp(30px,4vw,56px);line-height:1.08;margin:12px 0;color:#07104a;letter-spacing:-.03em}.eyebrow{font-weight:900;color:#7044ea;text-transform:uppercase;letter-spacing:.04em;font-size:13px}
.metric-stack{display:grid;gap:16px}.metric-stack div{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid rgba(124,77,255,.14);border-radius:22px;padding:22px}.metric-stack b{font-size:42px;color:#7044ea}.metric-stack span{font-weight:850;color:#14204d}
.safe-ring{position:relative;min-height:390px;border-radius:50%;background:radial-gradient(circle,#f2edff 0,#fff 45%,transparent 65%)}.ring-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:150px;height:150px;border-radius:50%;display:grid;place-items:center;text-align:center;background:linear-gradient(135deg,#7c4dff,#8e5cff);color:#fff;font-weight:950}.safe-ring span{position:absolute;background:#fff;border:1px solid rgba(124,77,255,.14);border-radius:999px;padding:12px 16px;font-weight:850;color:#14204d;box-shadow:0 12px 30px rgba(31,24,74,.07)}.r1{left:5%;top:18%}.r2{right:0;top:20%}.r3{left:0;bottom:20%}.r4{right:4%;bottom:16%}.r5{left:38%;bottom:2%}
.device-mockup{position:relative;min-height:330px;border-radius:30px;background:#fff;border:1px solid rgba(124,77,255,.16);box-shadow:0 24px 60px rgba(31,24,74,.12);padding:22px}.device-mockup.big{min-height:440px}.browser-bar{height:22px;border-radius:999px;background:linear-gradient(90deg,#eee8ff,#f9fbff);margin-bottom:18px}.ui-dashboard{display:grid;grid-template-columns:110px 1fr;gap:18px;height:250px}.ui-side{border-radius:18px;background:#f1ebff}.ui-main{border-radius:18px;background:linear-gradient(135deg,#fbfcff,#f2edff);padding:24px}.circle-score{width:110px;height:110px;border-radius:50%;display:grid;place-items:center;margin:20px 0;background:conic-gradient(#19b980 0 72%,#e7eaf7 72%);font-size:28px;font-weight:950;color:#07104a}.phone-mockup{position:absolute;right:20px;bottom:15px;width:125px;height:220px;border-radius:28px;background:#fff;border:8px solid #101426;display:grid;place-items:center;text-align:center;padding:14px;box-shadow:0 18px 42px rgba(0,0,0,.18)}.phone-mockup b{font-size:40px;color:#7044ea}.phone-mockup span{font-size:12px;font-weight:800}
.innovation-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.innovation-grid div{background:#fff;border:1px solid rgba(124,77,255,.14);border-radius:22px;padding:24px;display:grid;gap:8px;text-align:center}.innovation-grid b{display:block;color:#07104a}.innovation-grid span{color:#53607d;font-size:14px}
.impact-photo{min-height:290px;border-radius:28px;background:linear-gradient(135deg,rgba(124,77,255,.25),rgba(255,255,255,.2)),url('assets/jury-presentation-overview.png') center/cover no-repeat}
.simple-architecture{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}.simple-architecture div{min-width:130px;text-align:center;border-radius:22px;background:#fff;border:1px solid rgba(124,77,255,.18);padding:24px;font-weight:950;color:#07104a}.simple-architecture span{color:#7044ea;font-size:28px;font-weight:950}.simple-architecture.vertical{justify-content:flex-start}
.author-final{grid-template-columns:280px 1fr 180px}.author-final-photo{min-height:300px;border-radius:32px;background:url('assets/author.jpg') center 30%/cover no-repeat;box-shadow:0 18px 42px rgba(31,24,74,.12)}.author-final-photo.large{min-height:500px}.qr-panel{width:160px;height:160px;border-radius:24px;border:2px dashed rgba(124,77,255,.35);display:grid;place-items:center;font-weight:950;font-size:36px;color:#7044ea;background:#fff}
.pitch-detail{min-height:520px;display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center;padding:70px clamp(22px,4vw,70px)}.pitch-detail.author-detail{grid-template-columns:360px 1fr 180px}.pitch-cards-four{max-width:1480px;margin:14px auto;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.pitch-cards-four article{background:#fff;border:1px solid rgba(124,77,255,.14);border-radius:24px;padding:26px;box-shadow:0 14px 34px rgba(31,24,74,.06)}.presentation-architecture{max-width:1480px}.mini-link{display:inline-flex;margin-top:14px;color:#7044ea;font-weight:950;text-decoration:none}.pitch-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}.pitch-actions a{display:inline-flex;align-items:center;justify-content:center;padding:14px 24px;border-radius:16px;background:linear-gradient(135deg,#7c4dff,#8e5cff);color:#fff;text-decoration:none;font-weight:900}.pitch-actions .secondary{background:#fff;color:#6f3df4;border:1px solid rgba(124,77,255,.25)}.pitch-badges{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.pitch-badges span{padding:12px 16px;border-radius:16px;background:#fff;border:1px solid rgba(124,77,255,.14);font-weight:800}
@media(max-width:1000px){.pitch-hero,.pitch-slide,.pitch-detail,.pitch-detail.author-detail{grid-template-columns:1fr}.innovation-grid,.pitch-cards-four{grid-template-columns:repeat(2,1fr)}.author-final{grid-template-columns:1fr}.qr-panel{width:100%;height:120px}.author-final-photo.large{min-height:360px}}
@media(max-width:620px){.pitch-hero,.pitch-slide,.pitch-detail{padding:58px 16px 24px;border-radius:22px}.innovation-grid,.pitch-cards-four{grid-template-columns:1fr}.safe-ring{min-height:auto}.safe-ring span{position:static;display:block;margin:8px}.ring-center{position:static;transform:none;margin:0 auto 20px}.ui-dashboard{grid-template-columns:1fr}.ui-side{display:none}}

/* === Jury demo real cabinet preview with modals === */
.demo-video-hero{
  position:relative;
  max-width:1480px;
  margin:0 auto 18px;
  padding:72px clamp(22px,4vw,70px);
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:34px;
  align-items:center;
  border:1px solid rgba(124,77,255,.14);
  border-radius:30px;
  background:radial-gradient(circle at 12% 20%,#f0e9ff,transparent 38%),linear-gradient(135deg,#fff,#f8fbff);
  box-shadow:0 18px 45px rgba(31,24,74,.06);
}
.demo-video-copy h1{
  font-size:clamp(34px,5vw,64px);
  line-height:1.05;
  color:#07104a;
  margin:12px 0;
  letter-spacing:-.035em;
}
.demo-video-copy p{font-size:18px;line-height:1.6;color:#263154}
.video-placeholder{
  min-height:360px;
  border-radius:30px;
  border:2px dashed rgba(124,77,255,.32);
  background:linear-gradient(135deg,rgba(124,77,255,.08),rgba(34,184,232,.08));
  display:grid;
  place-items:center;
  text-align:center;
  padding:30px;
  color:#10194d;
}
.play-circle{
  width:92px;height:92px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#7c4dff,#8e5cff);
  color:#fff;font-size:34px;
  box-shadow:0 18px 40px rgba(124,77,255,.25);
}
.video-placeholder h3{margin:18px 0 4px;font-size:28px}
.video-placeholder p{max-width:520px;color:#53607d}

.cabinet-preview-section{
  max-width:1480px;
  margin:0 auto 18px;
  padding:42px clamp(22px,4vw,50px);
  border-radius:30px;
  background:#fff;
  border:1px solid rgba(124,77,255,.14);
  box-shadow:0 18px 45px rgba(31,24,74,.06);
}
.cabinet-section-head{text-align:center;max-width:760px;margin:0 auto 30px}
.cabinet-section-head span{display:inline-flex;padding:9px 15px;border-radius:999px;background:#f1ebff;color:#7044ea;font-weight:900}
.cabinet-section-head h2{font-size:clamp(30px,4vw,52px);margin:14px 0 8px;color:#07104a}
.cabinet-section-head p{color:#53607d;font-size:17px}

.cabinet-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.cabinet-card{
  border:1px solid rgba(124,77,255,.14);
  background:linear-gradient(180deg,#fff,#fbfcff);
  border-radius:26px;
  padding:18px;
  text-align:left;
  cursor:pointer;
  color:#10194d;
  box-shadow:0 12px 32px rgba(31,24,74,.06);
  transition:.2s ease;
}
.cabinet-card:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(31,24,74,.11)}
.cabinet-card h3{font-size:20px;margin:16px 0 8px;color:#07104a}
.cabinet-card p{font-size:14px;line-height:1.5;color:#53607d}
.cabinet-card span{display:inline-flex;margin-top:10px;color:#7044ea;font-weight:900}

.cabinet-mini{
  height:185px;
  border-radius:22px;
  background:#f7f9ff;
  border:1px solid rgba(124,77,255,.14);
  padding:14px;
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  overflow:hidden;
}
.mini-sidebar{border-radius:14px;background:linear-gradient(180deg,#7c4dff,#22b8e8);opacity:.18}
.mini-content{display:grid;gap:10px}
.mini-title,.mini-lines,.mini-chat,.mini-message,.mini-bars,.mini-table,.mini-card-row{border-radius:12px;background:#fff;border:1px solid rgba(124,77,255,.12)}
.mini-title{height:28px}.mini-score{width:72px;height:72px;border-radius:50%;background:conic-gradient(#19b980 0 72%,#e8ebf6 72%);box-shadow:inset 0 0 0 12px #fff}.mini-lines{height:44px}
.mini-chat{height:64px}.mini-message{height:34px}.mini-message.small{width:70%;height:30px}
.mini-bars{height:82px;background:linear-gradient(90deg,#fff 0 20%,#f1ebff 20% 32%,#fff 32% 42%,#dff6ee 42% 55%,#fff 55% 66%,#eaf5ff 66% 80%,#fff 80%)}
.mini-table{height:48px}.mini-content.full{grid-column:1/3}.mini-card-row{height:52px}.mini-card-row.second{width:80%}

.cabinet-flow{
  max-width:1480px;
  margin:0 auto 18px;
  padding:34px clamp(22px,4vw,50px);
  border:1px solid rgba(124,77,255,.14);
  border-radius:30px;
  background:linear-gradient(135deg,#fff,#f5f1ff);
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  gap:24px;
  align-items:center;
}
.cabinet-flow h2{margin:8px 0 0;color:#07104a;font-size:34px}
.flow-steps{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.flow-steps span{padding:13px 16px;border-radius:16px;background:#fff;border:1px solid rgba(124,77,255,.14);font-weight:900}
.flow-steps b{color:#7044ea;font-size:24px}

.cabinet-modal{
  position:fixed;inset:0;
  background:rgba(9,14,45,.58);
  backdrop-filter:blur(8px);
  z-index:99999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.cabinet-modal.is-open{display:flex}
.cabinet-modal-window{
  width:min(1120px,96vw);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:30px;
  position:relative;
  box-shadow:0 30px 80px rgba(0,0,0,.28);
}
.modal-close{
  position:absolute;right:18px;top:16px;
  width:42px;height:42px;border-radius:50%;
  border:0;background:#f1ebff;color:#7044ea;
  font-size:28px;font-weight:900;cursor:pointer;
  z-index:2;
}
.modal-layout{display:grid;grid-template-columns:230px 1fr;min-height:650px}
.modal-sidebar{
  background:linear-gradient(180deg,#f4efff,#eef9ff);
  padding:30px 18px;
  display:flex;flex-direction:column;gap:12px;
}
.modal-sidebar strong{font-size:20px;color:#07104a;margin-bottom:12px}
.modal-sidebar a{padding:13px 14px;border-radius:14px;background:rgba(255,255,255,.7);font-weight:800;color:#263154}
.modal-dashboard{padding:42px 34px}
.modal-dashboard h2{font-size:38px;margin:0 0 22px;color:#07104a}
.dashboard-cards,.admin-analytics,.guest-preview-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}
.dashboard-cards div,.admin-analytics div,.guest-preview-grid div,.support-list div,.mock-panel{
  background:#fbfcff;border:1px solid rgba(124,77,255,.14);border-radius:22px;padding:22px;
}
.dashboard-cards b,.admin-analytics b{display:block;font-size:38px;color:#7044ea}
.dashboard-cards small,.dashboard-cards span,.admin-analytics span{color:#53607d;font-weight:800}
.mock-panel{margin-top:16px}.mock-panel button,.guest-register{border:0;border-radius:14px;background:linear-gradient(135deg,#7c4dff,#8e5cff);color:#fff;font-weight:900;padding:13px 18px;margin-right:8px}
.support-list{display:grid;gap:14px}.support-list span{display:block;color:#53607d;margin-top:6px}
.chat-preview{margin-top:18px;background:#f7f9ff;border-radius:22px;padding:22px}.chat-preview p{background:#fff;border-radius:18px;padding:14px;max-width:70%}.chat-preview .reply{margin-left:auto;background:#f1ebff}
.admin-analytics{grid-template-columns:repeat(4,1fr)}
.chart-mock{height:180px;border-radius:22px;background:#fbfcff;border:1px solid rgba(124,77,255,.14);display:flex;align-items:end;gap:16px;padding:22px;margin-bottom:16px}
.chart-mock span{flex:1;border-radius:12px 12px 0 0;background:linear-gradient(180deg,#7c4dff,#22b8e8)}.chart-mock span:nth-child(1){height:35%}.chart-mock span:nth-child(2){height:62%}.chart-mock span:nth-child(3){height:48%}.chart-mock span:nth-child(4){height:80%}.chart-mock span:nth-child(5){height:55%}
.mock-table{border-radius:22px;background:#f7f9ff;border:1px solid rgba(124,77,255,.14);padding:18px}.guest-layout{grid-template-columns:1fr}.guest-intro{font-size:18px;color:#53607d}.guest-preview-grid{grid-template-columns:repeat(3,1fr)}

@media(max-width:1100px){
  .demo-video-hero,.cabinet-flow{grid-template-columns:1fr}
  .cabinet-grid{grid-template-columns:repeat(2,1fr)}
  .flow-steps{justify-content:flex-start}
}
@media(max-width:760px){
  .demo-video-hero,.cabinet-preview-section,.cabinet-flow{padding:58px 16px 24px;border-radius:22px}
  .cabinet-grid,.dashboard-cards,.admin-analytics,.guest-preview-grid{grid-template-columns:1fr}
  .modal-layout{grid-template-columns:1fr}
  .modal-sidebar{display:none}
  .modal-dashboard{padding:56px 18px 24px}
  .cabinet-modal{padding:10px}
}

/* === simplified jury page with video === */
.jury-simple-page{
    background:linear-gradient(180deg,#fbfcff 0%,#ffffff 100%);
    padding:0 0 40px;
}
.jury-video-hero{
    max-width:1480px;
    margin:0 auto 18px;
    padding:70px clamp(22px,4vw,70px);
    display:grid;
    grid-template-columns:.95fr 1.05fr;
    gap:34px;
    align-items:center;
    border-radius:34px;
    background:
        radial-gradient(circle at 18% 20%,rgba(124,77,255,.12),transparent 34%),
        linear-gradient(135deg,#fff,#f7fbff);
    border:1px solid rgba(124,77,255,.14);
    box-shadow:0 18px 45px rgba(31,24,74,.06);
}
.jury-badge{
    display:inline-flex;
    padding:10px 18px;
    border-radius:999px;
    background:#f1ebff;
    color:#7044ea;
    font-weight:900;
}
.jury-video-copy h1{
    font-size:clamp(44px,6vw,84px);
    line-height:.95;
    margin:18px 0 10px;
    color:#07104a;
}
.jury-video-copy h2{
    font-size:clamp(28px,4vw,52px);
    line-height:1.08;
    color:#7044ea;
    margin:0 0 18px;
}
.jury-video-copy p{
    font-size:18px;
    line-height:1.65;
    color:#263154;
    max-width:720px;
}
.jury-video-actions{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:28px;
}
.jury-video-actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:15px 24px;
    border-radius:18px;
    text-decoration:none;
    font-weight:900;
    background:linear-gradient(135deg,#7c4dff,#8e5cff);
    color:#fff;
}
.jury-video-actions .secondary{
    background:#fff;
    color:#7044ea;
    border:1px solid rgba(124,77,255,.22);
}
.jury-video-box{
    min-height:420px;
    border-radius:34px;
    border:2px dashed rgba(124,77,255,.28);
    background:linear-gradient(135deg,rgba(124,77,255,.08),rgba(34,184,232,.08));
    display:grid;
    place-items:center;
    text-align:center;
    padding:30px;
}
.video-play{
    width:96px;
    height:96px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#7c4dff,#8e5cff);
    color:#fff;
    font-size:36px;
    box-shadow:0 18px 42px rgba(124,77,255,.24);
}
.jury-video-box h3{
    margin:20px 0 6px;
    font-size:30px;
    color:#07104a;
}
.jury-video-box p{
    max-width:520px;
    color:#53607d;
    line-height:1.6;
}
.jury-short-info{
    max-width:1480px;
    margin:0 auto 18px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}
.jury-info-card{
    padding:30px;
    border-radius:28px;
    background:#fff;
    border:1px solid rgba(124,77,255,.14);
    box-shadow:0 14px 34px rgba(31,24,74,.06);
}
.jury-info-card h3{
    margin:0 0 12px;
    font-size:24px;
    color:#07104a;
}
.jury-info-card p{
    color:#53607d;
    line-height:1.6;
}
.jury-author-mini{
    max-width:1480px;
    margin:0 auto;
    display:grid;
    grid-template-columns:260px 1fr 170px;
    gap:24px;
    align-items:center;
    padding:34px;
    border-radius:34px;
    background:linear-gradient(135deg,#fff,#f7fbff);
    border:1px solid rgba(124,77,255,.14);
}
.jury-author-photo{
    min-height:260px;
    border-radius:30px;
    background:url('assets/author.jpg') center 28%/cover no-repeat;
    box-shadow:0 18px 42px rgba(31,24,74,.12);
}
.jury-author-copy span{
    color:#7044ea;
    font-weight:900;
    text-transform:uppercase;
    font-size:13px;
}
.jury-author-copy h2{
    margin:10px 0 14px;
    font-size:42px;
    color:#07104a;
}
.jury-author-copy p{
    font-size:18px;
    line-height:1.7;
    color:#263154;
}
.jury-qr-box{
    width:160px;
    height:160px;
    border-radius:28px;
    border:2px dashed rgba(124,77,255,.35);
    display:grid;
    place-items:center;
    background:#fff;
    color:#7044ea;
    font-size:38px;
    font-weight:900;
}
@media(max-width:980px){
    .jury-video-hero,
    .jury-author-mini{
        grid-template-columns:1fr;
    }
    .jury-short-info{
        grid-template-columns:1fr;
    }
    .jury-qr-box{
        width:100%;
    }
}
@media(max-width:680px){
    .jury-video-hero,
    .jury-author-mini{
        padding:58px 16px 24px;
        border-radius:22px;
    }
    .jury-video-box{
        min-height:300px;
    }
    .jury-video-copy h1{
        font-size:52px;
    }
    .jury-video-copy h2{
        font-size:32px;
    }
    .jury-author-copy h2{
        font-size:32px;
    }
}

/* === Demo direct menu button === */
.jury-link-direct{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:13px 22px;
    border-radius:18px;
    background:linear-gradient(135deg,#7c4dff,#8e5cff);
    color:#fff !important;
    text-decoration:none;
    font-weight:900;
    box-shadow:0 12px 28px rgba(124,77,255,.18);
    transition:.2s ease;
}
.jury-link-direct:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 34px rgba(124,77,255,.24);
}
.jury-dropdown-menu,
.jury-dropdown-content{
    display:none !important;
}

/* === clickable logo === */
.logo-home-link{
    text-decoration:none !important;
    color:inherit !important;
    display:flex;
    align-items:center;
}

.sm-demo-link{background:linear-gradient(135deg,#7c4dff,#8e5cff)!important;color:#fff!important;border:0!important;box-shadow:0 10px 24px rgba(124,77,255,.23)}

/* === FIX 2026-05-17: prevent top polls category/button overlap === */
.top-poll-row{
  grid-template-columns:42px 48px minmax(0,1fr)!important;
  align-items:start!important;
  row-gap:7px!important;
}
.top-poll-row .top-text{
  min-width:0!important;
}
.top-poll-row .top-category{
  grid-column:3!important;
  grid-row:auto!important;
  justify-self:start!important;
  max-width:100%!important;
  white-space:normal!important;
  line-height:1.2!important;
  overflow-wrap:anywhere!important;
}
.top-poll-row .top-actions-row{
  grid-column:3!important;
  grid-row:auto!important;
  justify-self:start!important;
  margin-top:2px!important;
  display:flex!important;
  flex-wrap:wrap!important;
  max-width:100%!important;
}
.top-poll-row .top-btn{
  height:auto!important;
  min-height:34px!important;
  max-width:100%!important;
  white-space:normal!important;
  line-height:1.15!important;
  text-align:center!important;
}
@media(max-width:720px){
  .top-poll-row{grid-template-columns:42px minmax(0,1fr)!important;}
  .top-poll-row .top-icon{display:none!important;}
  .top-poll-row .top-category,
  .top-poll-row .top-actions-row{grid-column:2!important;}
}

/* === SafeMind222 responsive header final fix: desktop/tablet/mobile === */
.sm-more-menu{display:block!important;flex:0 0 auto;}
.sm-more-menu summary{gap:8px!important;padding:0 16px!important;}
.sm-more-dropdown a:first-child{font-weight:900;color:#6f3df4;}
.sm-nav{overflow:visible!important;}
@media(max-width:1180px){
  .sm-topbar{grid-template-columns:minmax(210px,280px) 1fr!important;gap:14px!important;padding-left:18px!important;padding-right:18px!important;}
  .sm-nav{gap:8px!important;}
  .sm-nav-link,.sm-account-menu summary,.sm-more-menu summary{height:44px!important;padding:0 12px!important;font-size:14px!important;}
  .sm-brand-text strong{font-size:20px!important;}
}
@media(max-width:980px){
  .sm-topbar{grid-template-columns:1fr!important;align-items:start!important;}
  .sm-brand{width:max-content;max-width:100%;}
  .sm-nav{width:100%;justify-content:flex-start!important;flex-wrap:wrap!important;overflow:visible!important;}
  .sm-dropdown{right:auto;left:0;}
  .sm-account-menu .sm-dropdown{right:0;left:auto;}
}
@media(max-width:720px){
  .sm-topbar{padding:14px 12px!important;gap:12px!important;}
  .sm-brand{gap:10px!important;}
  .sm-logo{width:46px!important;height:46px!important;border-radius:15px!important;font-size:24px!important;}
  .sm-brand-text strong{font-size:21px!important;}
  .sm-brand-text span{display:none!important;}
  .sm-nav{display:grid!important;grid-template-columns:1fr 1fr 76px!important;gap:8px!important;width:100%!important;align-items:center!important;}
  .sm-nav>.sm-nav-link:not(.sm-demo-link){display:none!important;}
  .sm-demo-link{display:inline-flex!important;width:100%!important;justify-content:center!important;padding:0 10px!important;box-sizing:border-box!important;}
  .sm-account-menu,.sm-more-menu{width:100%!important;position:relative!important;}
  .sm-account-menu summary,.sm-more-menu summary{width:100%!important;justify-content:center!important;box-sizing:border-box!important;padding:0 10px!important;}
  .sm-more-menu summary{font-size:0!important;}
  .sm-more-menu summary span{font-size:22px!important;}
  .sm-dropdown{position:fixed!important;left:12px!important;right:12px!important;top:118px!important;min-width:0!important;width:auto!important;border-radius:22px!important;z-index:20000!important;max-height:calc(100vh - 140px)!important;overflow:auto!important;}
  .sm-dropdown a{font-size:16px!important;padding:14px 16px!important;}
  body{overflow-x:hidden!important;}
}
@media(max-width:390px){
  .sm-nav{grid-template-columns:1fr 1fr 68px!important;gap:6px!important;}
  .sm-demo-link,.sm-account-menu summary{font-size:13px!important;}
  .sm-logo{width:42px!important;height:42px!important;}
  .sm-brand-text strong{font-size:19px!important;}
}


/* FINAL HEADER ORDER FIX 20260518: Desktop/mobile order = Demo -> Cabinet -> More */
.sm-nav{display:flex!important;align-items:center!important;gap:12px!important;}
.sm-demo-link{order:10!important;}
.sm-more-menu{display:block!important;order:30!important;position:relative!important;flex:0 0 auto!important;}
.sm-account-menu{order:20!important;position:relative!important;flex:0 0 auto!important;}
.sm-more-menu summary{display:inline-flex!important;visibility:visible!important;opacity:1!important;align-items:center!important;justify-content:center!important;gap:8px!important;height:46px!important;padding:0 16px!important;border-radius:16px!important;border:1px solid rgba(124,77,255,.16)!important;background:#fff!important;color:#11164a!important;font-weight:800!important;white-space:nowrap!important;cursor:pointer!important;list-style:none!important;}
.sm-more-menu summary::-webkit-details-marker{display:none!important;}
@media(max-width:760px){
  .sm-topbar{align-items:flex-start!important;}
  .sm-nav{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;width:100%!important;gap:10px!important;}
  .sm-nav>.sm-nav-link:not(.sm-demo-link){display:none!important;}
  .sm-demo-link{order:10!important;width:100%!important;justify-content:center!important;}
  .sm-more-menu{order:30!important;width:100%!important;}
  .sm-account-menu{order:20!important;width:100%!important;}
  .sm-more-menu summary,.sm-account-menu summary{width:100%!important;box-sizing:border-box!important;justify-content:center!important;}
}

/* === Demo page: enhanced author profile block === */
.jury-author-profile{
    max-width:1480px;
    margin:0 auto 22px;
    display:grid;
    grid-template-columns:360px minmax(360px,1fr) 520px;
    gap:34px;
    align-items:stretch;
    padding:34px;
    border-radius:34px;
    background:linear-gradient(135deg,#ffffff 0%,#fbfdff 58%,#f6fbff 100%);
    border:1px solid rgba(124,77,255,.16);
    box-shadow:0 22px 54px rgba(31,24,74,.07);
    overflow:hidden;
    position:relative;
}
.jury-author-profile:after{
    content:"Психологічна безпека — це теж безпека праці";
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:16px 30px;
    text-align:center;
    color:#fff;
    font-size:24px;
    font-weight:800;
    background:linear-gradient(135deg,#7044ea,#0ea5a8,#7c4dff);
}
.jury-author-portrait-wrap{
    padding-bottom:62px;
}
.jury-author-photo{
    width:100%;
    min-height:470px;
    height:100%;
    border-radius:28px;
    background:url('author.jpg') center 18%/cover no-repeat;
    box-shadow:0 18px 46px rgba(31,24,74,.16);
    border:8px solid #fff;
}
.jury-author-main{
    padding:22px 0 74px;
}
.jury-author-label,
.jury-results-title{
    color:#7044ea;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.02em;
    font-size:18px;
}
.jury-author-main h2{
    margin:18px 0 18px;
    color:#07104a;
    font-size:52px;
    line-height:1.05;
    letter-spacing:-.03em;
}
.jury-author-role{
    color:#6b4ff6;
    font-size:25px;
    line-height:1.35;
    font-weight:700;
    margin:0 0 18px;
}
.jury-author-highlight{
    display:inline-flex;
    align-items:center;
    max-width:460px;
    margin:4px 0 20px;
    padding:16px 20px;
    border-radius:18px;
    border:1.5px solid rgba(14,165,168,.55);
    color:#087b7e;
    background:rgba(14,165,168,.06);
    font-size:22px;
    line-height:1.25;
    font-weight:900;
}
.jury-author-description{
    margin:14px 0 18px;
    color:#172044;
    font-size:18px;
    line-height:1.55;
    max-width:560px;
}
.jury-author-mission{
    margin:0;
    color:#4f46e5;
    font-size:17px;
    line-height:1.45;
    max-width:560px;
    font-weight:700;
}
.jury-author-results{
    padding:22px 0 74px;
    display:flex;
    flex-direction:column;
    gap:12px;
}
.jury-results-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:6px;
    font-size:19px;
}
.jury-result-item{
    display:grid;
    grid-template-columns:68px 1fr;
    gap:16px;
    align-items:center;
    padding:16px 18px;
    border-radius:20px;
    background:linear-gradient(135deg,#fff,rgba(248,250,255,.92));
    border:1px solid rgba(124,77,255,.12);
    box-shadow:0 10px 24px rgba(31,24,74,.045);
    color:#172044;
    font-size:15.5px;
    line-height:1.35;
}
.jury-result-item span{
    width:58px;
    height:58px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,rgba(124,77,255,.12),rgba(14,165,168,.12));
    font-size:28px;
}
.jury-result-item strong{
    color:#7044ea;
    font-size:18px;
}
.jury-result-item:nth-child(3) strong,
.jury-result-item:nth-child(5) strong,
.jury-result-item:nth-child(7) strong{
    color:#087b7e;
}
@media(max-width:1180px){
    .jury-author-profile{grid-template-columns:300px 1fr;}
    .jury-author-results{grid-column:1 / -1;padding-top:0;}
}
@media(max-width:760px){
    .jury-author-profile{grid-template-columns:1fr;padding:22px;border-radius:26px;}
    .jury-author-photo{min-height:420px;}
    .jury-author-main h2{font-size:38px;}
    .jury-author-role{font-size:21px;}
    .jury-author-profile:after{font-size:18px;}
}


/* ===== Premium result summary SafeMind222 ===== */
.premium-result-summary{background:linear-gradient(180deg,#fff,#f8fbff)!important;border:1px solid rgba(124,77,255,.14)!important;border-radius:30px!important;box-shadow:0 22px 50px rgba(36,50,74,.10)!important}.premium-result-head{display:flex;gap:16px;align-items:center;margin-bottom:20px}.premium-result-icon{width:70px;height:70px;border-radius:26px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(38,198,200,.14),rgba(124,77,255,.16));font-size:32px}.premium-result-head h2{margin:0;color:#183153;font-size:clamp(28px,3vw,42px);line-height:1.05}.premium-result-head p{margin:6px 0 0;color:#667085}.premium-result-layout{display:grid;grid-template-columns:1fr 260px;gap:24px;align-items:center}.premium-percent{font-size:82px;line-height:1;font-weight:800;letter-spacing:-.06em;background:linear-gradient(135deg,#7357f6,#26c6c8);-webkit-background-clip:text;background-clip:text;color:transparent}.premium-status{display:inline-flex;margin-top:14px;padding:12px 16px;border-radius:16px;font-weight:800;border:1px solid transparent}.premium-status.low{background:#ecfdf5;color:#0f9d58;border-color:#bbf7d0}.premium-status.middle{background:#fff7ed;color:#ea580c;border-color:#fed7aa}.premium-status.high{background:#fff1f2;color:#e11d48;border-color:#fecdd3}.premium-message{margin-top:18px!important}.premium-gauge{width:260px;height:160px;position:relative}.premium-gauge-arc{position:absolute;inset:0;border-radius:260px 260px 0 0;background:conic-gradient(from 270deg at 50% 100%,#35c872 0deg,#facc15 82deg,#ff4d67 calc(var(--p)*1.8deg),#eef2f7 0deg 180deg)}.premium-gauge-arc:after{content:"";position:absolute;left:34px;right:34px;bottom:0;height:108px;border-radius:220px 220px 0 0;background:linear-gradient(180deg,#fff,#f8fbff)}.premium-gauge-dot{position:absolute;left:calc(50% + (118px * cos((180 - var(--p)*1.8) * 1deg)) - 10px);top:calc(100% - (118px * sin((180 - var(--p)*1.8) * 1deg)) - 10px);width:20px;height:20px;border-radius:50%;background:#24324a;box-shadow:0 8px 16px rgba(36,50,74,.25)}.premium-gauge-center{position:absolute;left:0;right:0;bottom:12px;text-align:center}.premium-gauge-center strong{display:block;font-size:48px;color:#20304f}.premium-gauge-center span{color:#7a8499}.premium-scale-box{margin-top:22px;border:1px solid #e5ecf6;border-radius:22px;background:rgba(255,255,255,.86);padding:18px}.premium-scale-labels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}.premium-scale-labels span{display:grid;grid-template-columns:14px 1fr;gap:6px}.premium-scale-labels i{width:14px;height:14px;border-radius:50%;margin-top:3px}.premium-scale-labels .green{background:#35c872}.premium-scale-labels .yellow{background:#facc15}.premium-scale-labels .red{background:#ff4d67}.premium-scale-labels b{font-size:14px;color:#24324a}.premium-scale-labels small{grid-column:2;color:#7a8499}.premium-line-scale{height:13px;border-radius:999px;background:linear-gradient(90deg,#35c872,#facc15,#ff4d67);position:relative}.premium-line-scale em{position:absolute;top:-7px;width:18px;height:27px;border-radius:12px;background:#24324a;box-shadow:0 8px 16px rgba(36,50,74,.24)}.premium-recommend-title{margin:24px 0 12px;font-weight:900;color:#7357f6;font-size:20px}.premium-recommend-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.premium-rec-card{display:grid;gap:8px;text-decoration:none;color:#183153;padding:14px;border-radius:20px;border:1px solid #e5ecf6;background:#fff}.premium-rec-card span{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;font-size:24px}.premium-rec-card.green span{background:#ecfdf5}.premium-rec-card.violet span{background:#f3e8ff}.premium-rec-card.blue span{background:#eff6ff}.premium-rec-card.red span{background:#fff1f2}.premium-rec-card b{font-size:14px;line-height:1.25}.premium-safety-note{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:center;margin-top:18px;padding:14px;border-radius:18px;background:linear-gradient(135deg,#f8fbff,#f5f3ff);border:1px solid #e5ecf6}.premium-safety-note span{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#eef6ff}.premium-safety-note p{margin:0;color:#31527d}.premium-ai-box{margin-top:22px}@media(max-width:900px){.premium-result-layout{grid-template-columns:1fr!important}.premium-gauge{margin:auto}.premium-gauge{margin:auto}.premium-recommend-grid{grid-template-columns:1fr 1fr}}@media(max-width:560px){.premium-result-head{align-items:flex-start}.premium-result-icon{width:56px;height:56px}.premium-percent{font-size:62px}.premium-scale-labels,.premium-recommend-grid{grid-template-columns:1fr}.premium-gauge{transform:scale(.9);transform-origin:center}.premium-result-summary{border-radius:24px!important}}
