
@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@500;600;700;800;900&family=Orbitron:wght@700;800;900&family=Outfit:wght@400;500;600;700;800&family=Sora:wght@600;700;800&display=swap");

:root{
--bg-bottom: #0a1220;
--font-base: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
--font-title: "Sora", "Outfit", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
--weight-body-regular: 500;
--weight-body-strong: 600;
--weight-title: 700;
--weight-title-strong: 900;

--surface: rgba(255,255,255,0.06);
--surface-strong: rgba(255,255,255,0.09);
--border: rgba(255,255,255,0.11);

--text: rgba(255,255,255,0.92);
--muted: rgba(255,255,255,0.62);

--accent: #7cb6ff;
--title-line-start: rgba(124,182,255,0.2);
--title-line-mid: rgba(124,182,255,0.95);
--title-line-end: rgba(120,255,212,0.7);
--progress-fill-start: var(--accent);
--progress-fill-end: var(--title-line-end);

--shadow: 0 14px 34px rgba(0,0,0,0.38);
--radius: 18px;
}

*{ box-sizing: border-box; }

html, body{
height: 100%;
}

body{
margin: 0;
font-family: var(--font-base);
color: var(--text);
background: var(--bg-bottom);
padding: 20px;
overflow-x: hidden;
line-height: 1.5;
}

h1, h2, h3, .main-title{
font-family: var(--font-title);
letter-spacing: 0.01em;
margin: 0;
}

p{
margin: 0;
color: var(--muted);
}

a{
color: inherit;
}

.wrap{
max-width: 980px;
margin: 0 auto;
padding: 44px 18px 64px;
}

.main{
border-radius: 22px;
padding: 22px 20px;
background: var(--surface-strong);
border: 1px solid var(--border);
box-shadow: var(--shadow);
backdrop-filter: blur(8px);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.main:hover{
transform: translateY(-2px);
box-shadow: 0 16px 36px rgba(0,0,0,0.35);

}

.main-title{
text-align:center;
font-family: var(--font-title);
font-weight: var(--weight-title-strong);
font-size: 2.8rem;
letter-spacing: 0;
line-height: 1.08;
color:white;
}

.main-date{
margin-top: 10px;
margin-bottom: 18px;
text-align: center;
font-size: 1rem;
letter-spacing: 0.4px;
color: var(--muted);
font-weight: var(--weight-body-strong);
}


.main-sub{
margin-top: 6px;
margin-bottom: 18px;
color: white;
font-size: 15px;
line-height: 1.45;
font-family: var(--font-base);
font-weight: var(--weight-body-regular);
}

.link-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
gap: 15px; 
padding: 10px;
}

.link-button {
    display: inline-block;         
    padding: 10px 20px;            
    background-color: #1e90ff;   
    color: white;                
    text-decoration: none;       
    border-radius: 5px;            
    font-weight: bold;             
    transition: background-color 0.3s, transform 0.2s; 
}

.link-button:hover {
    background-color: #0f78d1;     
    transform: translateY(-2px);    
}


.section-title{
margin: 24px 0 16px;
color: white;
font-weight: var(--weight-title-strong);
letter-spacing: 0;
font-size: clamp(1.85rem, 2.4vw, 2.05rem);
text-align:center;
font-family: var(--font-title);
text-shadow: 0 4px 12px rgba(0,0,0,0.28);
position: relative;
padding-bottom: 10px;
}


.section-subtitle{
margin: -10px 0 12px;
text-align: center;
font-size: clamp(0.78rem, 1.8vw, 0.9rem);
line-height: 1.2;
letter-spacing: 0.25px;
color: rgba(255,255,255,0.64);
font-family: var(--font-title);
font-weight: var(--weight-title-strong);
}

.section-title::after{
content: "";
position: absolute;
left: 50%;
bottom: 0;
width: 82px;
height: 3px;
border-radius: 999px;
transform: translateX(-50%);
background: linear-gradient(90deg, var(--title-line-start), var(--title-line-mid), var(--title-line-end));

}

.grid{
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
width: 100%;
max-width: 900px;
margin: 0 auto;
}



.button{
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 14px 16px;
border-radius: var(--radius);
text-decoration: none;
font-weight: var(--weight-body-strong);

background: var(--surface-strong);
border: 1px solid var(--border);
box-shadow: 0 12px 28px rgba(0,0,0,0.32);

transition: transform 220ms cubic-bezier(.2,.7,.2,1), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
position: relative;
overflow: hidden;
}

.button::before{
content: "";
position: absolute;
inset: 0;
background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.12), transparent 68%);
transform: translateX(-120%);
transition: transform 0.35s ease;
pointer-events: none;

}

h1:not(.main-title){
text-align: center;
text-transform: capitalize;
font-size: clamp(2.15rem, 4.4vw, 2.75rem);
line-height: 1.15;
margin: 26px 0 20px;
color: white;
font-weight: var(--weight-title-strong);
letter-spacing: 0.01em;
font-family: var(--font-title);
text-shadow: 0 6px 16px rgba(0,0,0,0.35);
position: relative;
padding-bottom: 14px;
}

h1:not(.main-title)::after{
content: "";
position: absolute;
left: 50%;
bottom: 0;
width: 82px;
height: 3px;
border-radius: 999px;
transform: translateX(-50%);
background: linear-gradient(90deg, var(--title-line-start), var(--title-line-mid), var(--title-line-end));
}


.button:hover{
transform: translateY(-2px) scale(1.015);
border-color: rgba(124,182,255,0.45);
background: rgba(255,255,255,0.14);
}
.button:hover::before{
transform: translateX(120%);

}

.button:active{
transform: translateY(0) scale(0.985);
background: rgba(255,255,255,0.08);
}

.button:focus-visible{
outline: 2px solid rgba(124,182,255,0.75);
outline-offset: 3px;
}


.countdown{
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
margin-top: 8px;
}

.timebox{
border-radius: var(--radius); 
padding: 14px 12px;
transform: translateY(-2px);
border-color: rgba(124,182,255,0.4);
background: var(--surface);
border: 1px solid var(--border);
text-align: center;
}


.timebox .num{
display: block;
font-weight: var(--weight-title-strong);
font-size: clamp(22px, 3.2vw, 36px);
line-height: 1;
color: rgba(255,255,255,0.95);
}

.timebox .label{
display: block;
font-weight: var(--weight-body-strong);
margin-top: 9px;
font-size: 14px;
letter-spacing: 0.9px;;
color: white;
}

.list{
margin: 14px 0 0;
padding: 0;
list-style: none;
display: grid;
gap: 10px;
}

.list a{
display: block;
padding: 12px 14px;
border-radius: var(--radius);
background: var(--surface);
border: 1px solid var(--border);
text-decoration: none;
font-weight: var(--weight-body-strong);
}

.list a:hover{
border-color: rgba(124,182,255,0.45);
background: rgba(255,255,255,0.10);
}

.exam-layout{
  display: grid;
  grid-template-columns: minmax(0, 7.5fr) minmax(280px, 2.5fr);
  gap: 16px;
  align-items: stretch;
}


.pdf-reader{
  min-width: 0;
  height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdf-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(12, 16, 25, 0.86);
}

.pdf-toolbar-left{
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
  flex: 1;
}

#pdf-title{
  font-size: 0.92rem;
  color: rgba(255,255,255,0.96);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#pdf-status{
  font-size: 0.8rem;
  color: rgba(255,255,255,0.72);
}

.pdf-toolbar-actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button-mini{
  height: 34px;
  min-width: 34px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: white;
  border-radius: 10px;
  padding: 0 10px;
  font-weight: 700;
  cursor: pointer;
}

.button-mini:hover{
  background: rgba(255,255,255,0.13);
}

.button-mini-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pdf-container{
  flex: 1;
  overflow: auto;
  padding: 12px;
}

.pdf-page-wrapper{
  max-width: 100%;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px;
}

.pdf-page-label{
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
}

.pdf-canvas{
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  background: #fff;
}

.pdf-error,
.pdf-error-sub{
  text-align: center;
}

.pdf-error{
  color: #ffccd3;
  margin-bottom: 8px;
}



.study-tools{
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 0.92fr) minmax(0, 0.78fr);
  gap: 10px;
  height: calc(100vh - 40px);
  max-height: calc(100vh - 40px);
}

.focus-block{
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  overflow: hidden;
}

.timer-block,
.ambiance-block{
  min-height: 0;
}

.focus-row{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.focus-label{
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  font-weight: var(--weight-title-strong);
  font-family: var(--font-title);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.95);
  position: relative;
  padding-bottom: 12px;
}

.focus-label::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 82px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--title-line-start), var(--title-line-mid), var(--title-line-end));
}

.timer-display{
  padding: 6px 4px;
  border-radius: 10px;
  text-align: center;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1;
  font-weight: var(--weight-title-strong);
  font-family: var(--font-title);
  letter-spacing: 0.06em;
  color: #f6fbff;
}

.focus-input-label{
  font-size: 0.74rem;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.timer-form{
  display: grid;
  align-content: start;
  gap: 10px;
}

.time-columns{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.time-unit{
  display: grid;
  justify-items: stretch;
  gap: 4px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
}

.time-unit-hint{
  font-size: 0.64rem;
  line-height: 1;
  text-align: center;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.03em;
}

#timer-hours,
#timer-minutes,
#timer-seconds{
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.22);
  color: rgba(255,255,255,0.95);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  padding: 4px;
  font-family: var(--font-base);
}

#timer-hours::-webkit-outer-spin-button,
#timer-hours::-webkit-inner-spin-button,
#timer-minutes::-webkit-outer-spin-button,
#timer-minutes::-webkit-inner-spin-button,
#timer-seconds::-webkit-outer-spin-button,
#timer-seconds::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

#timer-hours,
#timer-minutes,
#timer-seconds{
  appearance: textfield;
}

#timer-hours:focus-visible,
#timer-minutes:focus-visible,
#timer-seconds:focus-visible{
  outline: 2px solid rgba(124,182,255,0.75);
  outline-offset: 1px;
}

.timer-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.timer-main-button{
  min-height: 34px;
  border-radius: 999px;
  font-size: 0.85rem;
  padding: 6px;
  font-weight: 800;
}

.timer-reset-button{
  background: rgba(255,255,255,0.04);
}

.icon-button{
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
}

.timer-step-button{
  width: 100%;
  height: 22px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.98);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.timer-step-button:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.26);
  transform: translateY(-1px);
}

.timer-step-button:active{
  transform: translateY(0);
}

.timer-step-button:focus-visible{
  outline: none;
  box-shadow: none;
  border-color: rgba(255,255,255,0.3);
}

.ambiance-actions{
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 4px;
}

.sound-select-stack{
  width: 100%;
  display: grid;
  gap: 8px;
}

.sound-select{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(124,182,255,0.32);
  background: linear-gradient(180deg, rgba(10,18,30,0.92), rgba(12,22,36,0.76));
  color: rgba(255,255,255,0.96);
  padding: 10px 14px;
  font-size: 1rem;
  font-weight: var(--weight-title-strong);
  font-family: var(--font-title);
  text-align: center;
  text-align-last: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 16px rgba(0,0,0,0.2);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  appearance: none;
  background-image:
    linear-gradient(180deg, rgba(10,18,30,0.92), rgba(12,22,36,0.76)),
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.75) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.75) 50%, transparent 50%);
  background-position: center, calc(100% - 20px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
  background-size: auto, 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 30px;
}

.sound-select option{
  background: #0f1b2d;
  color: #edf5ff;
  text-align: center;
}

.sound-select:hover{
  border-color: rgba(124,182,255,0.55);
}

.sound-select:focus-visible{
  outline: none;
  border-color: rgba(124,182,255,0.78);
  box-shadow: 0 0 0 3px rgba(124,182,255,0.22);
}

.lofi-variant-wrap{
  max-height: 0;
  opacity: 0;
  transform: translateY(-5px);
  overflow: hidden;
  pointer-events: none;
  transition: max-height 260ms ease, opacity 260ms ease, transform 260ms ease;
}

.lofi-variant-wrap.is-visible{
  max-height: 54px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lofi-variant-select{
  font-size: 0.95rem;
}

.sound-play-circle{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.98);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

.sound-play-circle:hover{
  background: rgba(255,255,255,0.13);
}

.timer-display.is-finished{
  animation: timerPulse 0.42s ease-in-out 3;
}

@keyframes timerPulse{
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.02); filter: brightness(1.22); }
}

@media (max-width: 900px){
  .exam-layout{
    grid-template-columns: 1fr;
  }
  .study-tools{
    width: 100%;
    min-width: 0;
    grid-template-rows: auto;
  }
}


.intro-panel{
  max-width: 1000px;
  margin: 18px auto;
  padding: 28px 26px;
  border: 1px solid rgba(124,182,255,0.38);
  border-radius: 16px;
  background: rgba(20, 28, 40, 0.55);
  backdrop-filter: blur(8px);
  box-shadow:
  0 18px 44px rgba(0,0,0,0.4),
  inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.intro-panel::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 45%);
  pointer-events: none;

}

::-webkit-scrollbar{
  width: 12px;
}

::-webkit-scrollbar-track{
  background: rgba(255,255,255,0.05);
}

::-webkit-scrollbar-thumb{
  background: rgba(124,182,255,0.52);
  border-radius: 999px;
  border: 2px solid rgba(10,18,32,0.7);
}

::-webkit-scrollbar-thumb:hover{
  background: rgba(124,182,255,0.75);
}

@media (max-width: 640px){
  body{
    padding: 12px;
  }

  .wrap{
    padding: 26px 8px 44px;
  }

  .grid,
  .countdown{
    grid-template-columns: 1fr;
  }

  .main-title{
    font-size: 2.2rem;
  }

  .section-title{
    margin: 20px 0 14px;
    font-size: clamp(1.6rem, 7vw, 1.9rem);
  }

  .section-subtitle{
    margin: -8px 0 10px;
    font-size: 0.76rem;
  }

  .button{
    padding: 13px 14px;
  }

  .button:hover{
    transform: translateY(-1px) scale(1.01);
  }

  .button:active{
    transform: scale(0.985);
  }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


.intro-panel h1{
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-size: 2rem;
  text-align: center;
  font-weight: var(--weight-title);
}

.intro-panel p{
  margin: 0;
  line-height: 1.4;
  opacity: 0.9;
}

.pdf-error{
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.18);
    color: var(--muted);
}

.exam-list {
  list-style: none;
  padding: 0;
  margin: 24px auto 0;
  max-width: 980px;

}

.exam-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.exam-row .button{
  font-size: 0.98rem;
  padding: 12px;
}

.exam-check-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #466080;
  background: #0d1520;
  color: #dff2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.exam-check-toggle:hover {
  border-color: #7eb4ff;
  transform: translateY(-1px);
}

.exam-check-toggle.is-done {
  background: linear-gradient(135deg, #2caa72, #1f7d59);
  border-color: #5fd6a1;
}


.intro-title{
  margin: 0 0 14px;
  text-align: center;
  font-size: clamp(1.8rem, 2.3vw + 1rem, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  color: #f5f9ff;
  text-shadow:
    0 12px 32px rgba(0,0,0,0.45),
    0 0 20px rgba(124,182,255,0.35);

}

.intro-highlight{
  background: linear-gradient(95deg, #d9eaff 0%, #7cb6ff 42%, #8ff8db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(124,182,255,0.45);
}

.intro-panel p{
  color: rgba(242,248,255,0.94);
  font-size: clamp(1.02rem, 1vw + 0.75rem, 1.2rem);
  line-height: 1.7;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  text-wrap: pretty;
  width:100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.intro-panel p + p{
  margin-top: 10px;
}

.page-wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 18px 40px;
}

.exam-heading{
  text-align: center;
  margin-top: 24px;
}

.cadre-card{
  max-width: 760px;
  margin: 0 auto;
}



.index-wrap{
max-width: 980px;
margin: 0 auto;
padding: clamp(36px, 8vw, 90px) 20px;
}

.index-main-card{
padding: clamp(26px, 5vw, 40px);
}

.index-brand-title{
text-align: center;
font-size: clamp(2.7rem, 7vw, 4.5rem);
font-weight: 800;
margin: 0;
line-height: 1.05;
color: #ffffff;
}

.index-title{
text-align: center;
color: #ffffff;
font-size: clamp(1.35rem, 3.2vw, 1.9rem);
font-weight: 700;
margin: 0;

}

.index-card-grid{
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 16px;
}

.index-level-card{
display: flex;
flex-direction: column;
gap: 12px;
padding: 20px 16px;
min-height: 220px;
}

.index-card-title{
margin: 0;
text-align: center;
font-size: clamp(1.55rem, 4vw, 2rem);
font-family: var(--font-title);
font-weight: var(--weight-title-strong);
letter-spacing: 0.02em;
color: #ffffff;
text-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.index-card-description{
margin: 0;
text-align: center;
font-size: 0.98rem;
color: var(--muted);
}

.index-enter-button{
margin: auto auto 0;
min-width: 130px;
border: 1px solid rgba(255,255,255,0.22);
cursor: pointer;
font-family: inherit;
font-size: 0.98rem;
font-weight: 700;
letter-spacing: 0.2px;
position: relative;
isolation: isolate;
overflow: hidden;
background: linear-gradient(140deg, #8ec0ff 0%, #6da6ff 55%, #5f9dff 100%);
background: linear-gradient(
  140deg,
  color-mix(in srgb, var(--accent) 56%, #ffffff 44%) 0%,
  color-mix(in srgb, var(--accent) 80%, #7ee6ff 20%) 52%,
  color-mix(in srgb, var(--accent) 73%, #0f1d35 27%) 100%
);
color: color-mix(in srgb, #071a33 86%, var(--accent) 14%);
padding: 10px 20px;
border-radius: 999px;
box-shadow:
  0 10px 22px rgba(0,0,0,0.18),
  inset 0 1px 0 rgba(255,255,255,0.35);
transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.index-enter-button::before{
content: "";
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.5) 48%, transparent 76%);
transform: translateX(-135%);
transition: transform 0.55s ease;
z-index: -1;
}

.index-enter-button::after{
content: "";
position: absolute;
inset: 2px;
border-radius: inherit;
border: 1px solid color-mix(in srgb, var(--accent) 24%, #ffffff 76%);
opacity: 0.45;
pointer-events: none;
}

.index-enter-button:hover{
transform: translateY(-2px) scale(1.02);
filter: saturate(1.08) brightness(1.05);
border-color: color-mix(in srgb, var(--accent) 52%, #ffffff 48%);
box-shadow:
  0 14px 26px rgba(0,0,0,0.24),
  inset 0 1px 0 rgba(255,255,255,0.35);
}

.index-enter-button:hover::before{
transform: translateX(135%);
}

.index-level-card:hover .index-enter-button{
transform: translateY(-2px);
}

.index-enter-button:focus-visible{
outline: 2px solid color-mix(in srgb, var(--accent) 72%, #ffffff 28%);
outline-offset: 3px;
}

.theme-clair .index-enter-button,
.theme-cotton .index-enter-button{
color: #072038;
}

@media (max-width: 640px){
.index-card-grid{
grid-template-columns: 1fr;
}


.index-level-card{
min-height: 0;
}

.index-enter-button{
width: 100%;
}
}

.exam-progress {
  margin: 10px auto 16px;
  padding: 12px 14px 14px;
  width: min(100%, 760px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
}

.exam-progress-value {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #f5fbff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.52);
  z-index: 2;
}

.exam-progress-track {
  width: 100%;
  margin: 0 auto;
  height: 24px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  position: relative;
}

.exam-progress-fill {
  width: 0;
  height: 100%;
  background: color-mix(in srgb, var(--accent) 50%, #9ea8b7 50%);
  transition: width 180ms ease;
}

.exam-progress-end {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--text) 82%, #000000 18%);
  pointer-events: none;
}


.button-disabled{
  opacity: 0.78;
  cursor: not-allowed;
  filter: grayscale(0.08);
  pointer-events: none;
}

.button-unavailable{
  flex-direction: column;
  gap: 4px;
}

.button-unavailable-note{
  font-size: 0.82rem;
  font-weight: 600;
}

.exam-done-button {
  margin-left: 8px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  font-family: var(--font-base);
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.exam-done-button:not(.exam-done){
  color: rgba(223,242,255,0.88);
}

.exam-done-button.exam-done {
  background: #1f6b4f;
  border-color: #29895f;
}

.session-progress-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.session-progress-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  flex: 0 0 auto;
}

.exam-link-done {
  opacity: 0.75;
  text-decoration: line-through;
}


body{
  transition: background 300ms ease, color 220ms ease;
}

.theme-bleu{}
.theme-clair{
  --bg-bottom: #101c33;
  --surface: rgba(32,51,84,0.68);
  --surface-strong: rgba(39,63,102,0.82);
  --border: rgba(128,165,225,0.28);
  --text: #e4edff;
  --muted: #adc2e8;
  --accent: #8eb6ff;
  --title-line-start: rgba(142,182,255,0.28);
  --title-line-mid: rgba(93,139,255,0.95);
  --title-line-end: rgba(176,203,255,0.88);
}

.theme-vert{
  --bg-bottom: #07180e;
  --surface: rgba(39,163,94,0.18);
  --surface-strong: rgba(45,181,104,0.24);
  --border: rgba(108,236,169,0.35);
  --accent: #39d379;
  --title-line-start: rgba(57,211,121,0.24);
  --title-line-mid: rgba(57,211,121,0.98);
  --title-line-end: rgba(153,255,203,0.86);
}

.theme-rose{
  --bg-bottom: #2c0820;
  --surface: rgba(255,74,168,0.19);
  --surface-strong: rgba(255,93,178,0.25);
  --border: rgba(255,166,221,0.39);
  --accent: #ff4aa8;
  --title-line-start: rgba(255,74,168,0.25);
  --title-line-mid: rgba(255,74,168,0.98);
  --title-line-end: rgba(255,182,228,0.88);
}

.theme-banana{
  --bg-bottom: #2a2101;
  --surface: rgba(255,214,26,0.2);
  --surface-strong: rgba(255,221,56,0.28);
  --border: rgba(255,238,142,0.44);
  --accent: #ffd61a;
  --title-line-start: rgba(255,214,26,0.24);
  --title-line-mid: rgba(255,214,26,0.98);
  --title-line-end: rgba(255,243,150,0.9);
}

.theme-noir{
  --bg-bottom: #050505;
  --surface: rgba(255,255,255,0.05);
  --surface-strong: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.15);
  --accent: #b5bcc8;
  --title-line-start: rgba(181,188,200,0.24);
  --title-line-mid: rgba(181,188,200,0.94);
  --title-line-end: rgba(226,232,240,0.72);
}

.theme-gold{
  --bg-bottom: #2b1404;
  --surface: rgba(255,138,34,0.18);
  --surface-strong: rgba(255,152,49,0.24);
  --border: rgba(255,197,133,0.38);
  --accent: #ff8a22;
  --title-line-start: rgba(255,138,34,0.24);
  --title-line-mid: rgba(255,138,34,0.97);
  --title-line-end: rgba(255,214,154,0.87);
}

.theme-cotton{
  --bg-bottom: #1a2c45;
  --surface: rgba(63,107,158,0.46);
  --surface-strong: rgba(73,123,180,0.58);
  --border: rgba(163,206,255,0.38);
  --text: #edf6ff;
  --muted: #c0d9f3;
  --accent: #9dcfff;
  --title-line-start: rgba(125,187,255,0.32);
  --title-line-mid: rgba(125,187,255,0.96);
  --title-line-end: rgba(177,214,255,0.92);
}

.theme-lavande{
  --bg-bottom: #2a1d43;
  --surface: rgba(118,90,169,0.44);
  --surface-strong: rgba(133,102,191,0.56);
  --border: rgba(206,178,255,0.38);
  --text: #f6f1ff;
  --muted: #dbcafc;
  --accent: #cfb1ff;
  --title-line-start: rgba(190,155,255,0.34);
  --title-line-mid: rgba(190,155,255,0.97);
  --title-line-end: rgba(216,190,255,0.94);
}

.theme-peach{
  --bg-bottom: #442a1e;
  --surface: rgba(163,104,75,0.46);
  --surface-strong: rgba(186,120,88,0.58);
  --border: rgba(251,198,167,0.38);
  --text: #fff3eb;
  --muted: #f4d4c1;
  --accent: #f4be9d;
  --title-line-start: rgba(240,174,132,0.34);
  --title-line-mid: rgba(240,174,132,0.98);
  --title-line-end: rgba(252,210,184,0.94);
}

.theme-sunset{
  --bg-bottom: #081832;
  --surface: rgba(52,127,255,0.17);
  --surface-strong: rgba(66,141,255,0.24);
  --border: rgba(145,193,255,0.36);
  --accent: #3f8cff;
  --title-line-start: rgba(63,140,255,0.24);
  --title-line-mid: rgba(63,140,255,0.98);
  --title-line-end: rgba(149,215,255,0.88);
}

.theme-pistache{
  --bg-bottom: #1d3226;
  --surface: rgba(82,138,99,0.46);
  --surface-strong: rgba(95,157,112,0.58);
  --border: rgba(176,234,193,0.38);
  --text: #f2fff6;
  --muted: #c9edd5;
  --accent: #a9e4ba;
  --title-line-start: rgba(142,217,164,0.34);
  --title-line-mid: rgba(142,217,164,0.98);
  --title-line-end: rgba(194,238,206,0.94);
}

.theme-bubble{
  --bg-bottom: #432136;
  --surface: rgba(157,84,125,0.46);
  --surface-strong: rgba(180,98,142,0.58);
  --border: rgba(246,184,221,0.38);
  --text: #fff1f9;
  --muted: #f6cde4;
  --accent: #f6b8db;
  --title-line-start: rgba(242,162,207,0.34);
  --title-line-mid: rgba(242,162,207,0.98);
  --title-line-end: rgba(250,201,228,0.94);
}

.theme-sorbet{
  --bg-bottom: #453818;
  --surface: rgba(167,141,71,0.48);
  --surface-strong: rgba(189,158,81,0.6);
  --border: rgba(248,222,145,0.39);
  --text: #fff9e5;
  --muted: #f3e4b8;
  --accent: #f7da93;
  --title-line-start: rgba(244,207,113,0.34);
  --title-line-mid: rgba(244,207,113,0.98);
  --title-line-end: rgba(250,229,161,0.92);
}

.theme-grape{
  --bg-bottom: #180a28;
  --surface: rgba(153,91,255,0.16);
  --surface-strong: rgba(169,108,255,0.23);
  --border: rgba(215,177,255,0.35);
  --accent: #9f5cff;
  --title-line-start: rgba(159,92,255,0.24);
  --title-line-mid: rgba(159,92,255,0.98);
  --title-line-end: rgba(225,177,255,0.86);
}

.theme-lavande .main-title,
.theme-lavande .main-sub,
.theme-lavande .section-title,
.theme-lavande h1:not(.main-title),
.theme-peach .main-title,
.theme-peach .main-sub,
.theme-peach .section-title,
.theme-peach h1:not(.main-title),
.theme-pistache .main-title,
.theme-pistache .main-sub,
.theme-pistache .section-title,
.theme-pistache h1:not(.main-title),
.theme-bubble .main-title,
.theme-bubble .main-sub,
.theme-bubble .section-title,
.theme-bubble h1:not(.main-title),
.theme-sorbet .main-title,
.theme-sorbet .main-sub,
.theme-sorbet .section-title,
.theme-sorbet h1:not(.main-title){
  color: var(--text);
  text-shadow: none;
}

.theme-clair .main-title,
.theme-clair .main-sub,
.theme-clair .section-title,
.theme-clair h1:not(.main-title),
.theme-cotton .main-title,
.theme-cotton .main-sub,
.theme-cotton .section-title,
.theme-cotton h1:not(.main-title){
  color: var(--text);
  text-shadow: none;
}

.theme-clair .index-brand-title,
.theme-clair .index-title,
.theme-clair .index-card-title,
.theme-cotton .index-brand-title,
.theme-cotton .index-title,
.theme-cotton .index-card-title{
  color: var(--text);
}

.theme-clair .timebox .num,
.theme-clair .timebox .label,
.theme-clair #pdf-title,
.theme-clair #pdf-status,
.theme-clair .button-mini,
.theme-clair .pdf-page-label,
.theme-cotton .timebox .num,
.theme-cotton .timebox .label,
.theme-cotton #pdf-title,
.theme-cotton #pdf-status,
.theme-cotton .button-mini,
.theme-cotton .pdf-page-label{
  color: var(--text);
}

.theme-clair .pdf-toolbar,
.theme-cotton .pdf-toolbar{
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--accent) 12%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.theme-clair .button-mini,
.theme-cotton .button-mini{
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 86%, var(--accent) 14%);
}

.theme-clair .button-mini:hover,
.theme-cotton .button-mini:hover{
  background: color-mix(in srgb, var(--surface-strong) 82%, var(--accent) 18%);
}

.theme-clair,
.theme-cotton,
.theme-lavande,
.theme-peach,
.theme-pistache,
.theme-bubble,
.theme-sorbet{
  --shadow: 0 12px 28px rgba(15, 35, 60, 0.14);
}

.theme-clair .section-subtitle,
.theme-cotton .section-subtitle,
.theme-lavande .section-subtitle,
.theme-peach .section-subtitle,
.theme-pistache .section-subtitle,
.theme-bubble .section-subtitle,
.theme-sorbet .section-subtitle{
  color: var(--muted);
}

.theme-clair .button,
.theme-clair .list a,
.theme-clair .timebox .num,
.theme-clair .timebox .label,
.theme-clair #pdf-title,
.theme-clair #pdf-status,
.theme-clair .pdf-page-label,
.theme-clair .focus-label,
.theme-clair .timer-display,
.theme-clair .focus-input-label,
.theme-clair .time-unit-hint,
.theme-clair .timer-step-button,
.theme-clair .icon-button,
.theme-clair .sound-play-circle,
.theme-clair .sound-select,
.theme-cotton .button,
.theme-cotton .list a,
.theme-cotton .timebox .num,
.theme-cotton .timebox .label,
.theme-cotton #pdf-title,
.theme-cotton #pdf-status,
.theme-cotton .pdf-page-label,
.theme-cotton .focus-label,
.theme-cotton .timer-display,
.theme-cotton .focus-input-label,
.theme-cotton .time-unit-hint,
.theme-cotton .timer-step-button,
.theme-cotton .icon-button,
.theme-cotton .sound-play-circle,
.theme-cotton .sound-select,
.theme-lavande .button,
.theme-lavande .list a,
.theme-lavande .timebox .num,
.theme-lavande .timebox .label,
.theme-lavande #pdf-title,
.theme-lavande #pdf-status,
.theme-lavande .pdf-page-label,
.theme-lavande .focus-label,
.theme-lavande .timer-display,
.theme-lavande .focus-input-label,
.theme-lavande .time-unit-hint,
.theme-lavande .timer-step-button,
.theme-lavande .icon-button,
.theme-lavande .sound-play-circle,
.theme-lavande .sound-select,
.theme-peach .button,
.theme-peach .list a,
.theme-peach .timebox .num,
.theme-peach .timebox .label,
.theme-peach #pdf-title,
.theme-peach #pdf-status,
.theme-peach .pdf-page-label,
.theme-peach .focus-label,
.theme-peach .timer-display,
.theme-peach .focus-input-label,
.theme-peach .time-unit-hint,
.theme-peach .timer-step-button,
.theme-peach .icon-button,
.theme-peach .sound-play-circle,
.theme-peach .sound-select,
.theme-pistache .button,
.theme-pistache .list a,
.theme-pistache .timebox .num,
.theme-pistache .timebox .label,
.theme-pistache #pdf-title,
.theme-pistache #pdf-status,
.theme-pistache .pdf-page-label,
.theme-pistache .focus-label,
.theme-pistache .timer-display,
.theme-pistache .focus-input-label,
.theme-pistache .time-unit-hint,
.theme-pistache .timer-step-button,
.theme-pistache .icon-button,
.theme-pistache .sound-play-circle,
.theme-pistache .sound-select,
.theme-bubble .button,
.theme-bubble .list a,
.theme-bubble .timebox .num,
.theme-bubble .timebox .label,
.theme-bubble #pdf-title,
.theme-bubble #pdf-status,
.theme-bubble .pdf-page-label,
.theme-bubble .focus-label,
.theme-bubble .timer-display,
.theme-bubble .focus-input-label,
.theme-bubble .time-unit-hint,
.theme-bubble .timer-step-button,
.theme-bubble .icon-button,
.theme-bubble .sound-play-circle,
.theme-bubble .sound-select,
.theme-sorbet .button,
.theme-sorbet .list a,
.theme-sorbet .timebox .num,
.theme-sorbet .timebox .label,
.theme-sorbet #pdf-title,
.theme-sorbet #pdf-status,
.theme-sorbet .pdf-page-label,
.theme-sorbet .focus-label,
.theme-sorbet .timer-display,
.theme-sorbet .focus-input-label,
.theme-sorbet .time-unit-hint,
.theme-sorbet .timer-step-button,
.theme-sorbet .icon-button,
.theme-sorbet .sound-play-circle,
.theme-sorbet .sound-select{
  color: var(--text);
}

.theme-clair .button-mini,
.theme-cotton .button-mini,
.theme-lavande .button-mini,
.theme-peach .button-mini,
.theme-pistache .button-mini,
.theme-bubble .button-mini,
.theme-sorbet .button-mini{
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background: color-mix(in srgb, var(--surface) 86%, var(--accent) 14%);
}

.theme-clair .pdf-toolbar,
.theme-cotton .pdf-toolbar,
.theme-lavande .pdf-toolbar,
.theme-peach .pdf-toolbar,
.theme-pistache .pdf-toolbar,
.theme-bubble .pdf-toolbar,
.theme-sorbet .pdf-toolbar{
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--accent) 12%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.student-panel-grid{
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 860px;
}

.glass-card{
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  box-shadow: var(--shadow);
}

.glass-card h2,
.glass-card h3{
  margin: 0 0 8px;
  font-size: 1.15rem;
  text-align: center;
}

.theme-menu{
  position: fixed;
  top: 26px;
  left: 22px;
  z-index: 50;
}

.sound-option{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 11px;
  padding: 10px 12px;
  text-align: center;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sound-option:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 55%, white);
  background: rgba(255,255,255,0.13);
}

.sound-option.is-active{
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

.theme-toggle{
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-bottom) 84%, #0d1829 16%);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px 18px;
  min-height: 46px;
  font-size: 1rem;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.32);
  min-width: 124px;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1), border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.theme-toggle:hover{
  transform: translateY(-2px);
  border-color: rgba(124,182,255,0.45);
  background: rgba(255,255,255,0.11);
}

.theme-toggle:active{
  transform: translateY(1px) scale(0.99);
}

.theme-options{
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 9px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-bottom) 88%, #101f33 12%);
  transform-origin: top;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height 280ms ease, opacity 220ms ease, transform 280ms ease;
}

.theme-options.is-open{
  max-height: 360px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.theme-swatch{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.44);
  cursor: pointer;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 240ms ease, opacity 200ms ease, box-shadow 160ms ease;
}

.theme-options.is-open .theme-swatch{
  transform: translateY(0);
  opacity: 1;
}

.theme-swatch[data-theme="theme-bleu"]{ background: #7cb6ff; }
.theme-swatch[data-theme="theme-clair"]{ background: #e6efff; }
.theme-swatch[data-theme="theme-vert"]{ background: #39d379; }
.theme-swatch[data-theme="theme-rose"]{ background: #ff4aa8; }
.theme-swatch[data-theme="theme-banana"]{ background: #ffd61a; }
.theme-swatch[data-theme="theme-cotton"]{ background: #91c2ff; }
.theme-swatch[data-theme="theme-noir"]{ background: #171717; }
.theme-swatch[data-theme="theme-gold"]{ background: #ff8a22; }
.theme-swatch[data-theme="theme-peach"]{ background: #f3b088; }
.theme-swatch[data-theme="theme-lavande"]{ background: #bea0f3; }
.theme-swatch[data-theme="theme-pistache"]{ background: #9ad8a8; }
.theme-swatch[data-theme="theme-sunset"]{ background: #3f8cff; }
.theme-swatch[data-theme="theme-bubble"]{ background: #f2a5ca; }
.theme-swatch[data-theme="theme-sorbet"]{ background: #eedb96; }
.theme-swatch[data-theme="theme-grape"]{ background: #9f5cff; }
.theme-options.is-open .theme-swatch:nth-child(1){ transition-delay: 30ms; }
.theme-options.is-open .theme-swatch:nth-child(2){ transition-delay: 60ms; }
.theme-options.is-open .theme-swatch:nth-child(3){ transition-delay: 90ms; }
.theme-options.is-open .theme-swatch:nth-child(4){ transition-delay: 120ms; }
.theme-options.is-open .theme-swatch:nth-child(5){ transition-delay: 150ms; }
.theme-options.is-open .theme-swatch:nth-child(6){ transition-delay: 180ms; }
.theme-options.is-open .theme-swatch:nth-child(7){ transition-delay: 210ms; }
.theme-options.is-open .theme-swatch:nth-child(8){ transition-delay: 240ms; }
.theme-options.is-open .theme-swatch:nth-child(9){ transition-delay: 270ms; }
.theme-options.is-open .theme-swatch:nth-child(10){ transition-delay: 300ms; }
.theme-options.is-open .theme-swatch:nth-child(11){ transition-delay: 330ms; }
.theme-options.is-open .theme-swatch:nth-child(12){ transition-delay: 360ms; }
.theme-options.is-open .theme-swatch:nth-child(13){ transition-delay: 390ms; }
.theme-options.is-open .theme-swatch:nth-child(14){ transition-delay: 420ms; }
.theme-options.is-open .theme-swatch:nth-child(15){ transition-delay: 450ms; }
.theme-swatch:hover{ transform: translateY(-2px) scale(1.04); }
.theme-swatch.is-active{ transform: scale(1.06); box-shadow: 0 0 0 2px var(--accent), 0 8px 20px color-mix(in srgb, var(--accent) 46%, transparent); }

.todo-form{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.todo-form input,
.timer-form input{
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.16);
  color: var(--text);
  padding: 12px;
  font: inherit;
}

.todo-list{
  list-style: none;
  padding: 0;
  margin: 10px auto 0;
  display: grid;
  gap: 8px;
  max-width: 760px;
  width: 100%;
  transition: transform 180ms ease;
}
.todo-list.is-sorting{
  transform: scale(0.995);
}
.todo-item{
  display: grid;
  grid-template-columns: 28px 1fr 26px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,0.12);
  border: 1px solid transparent;
  position: relative;
  cursor: grab;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.todo-item.is-added{
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  background:
    linear-gradient(110deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 58%),
    color-mix(in srgb, var(--surface-strong) 72%, rgba(0,0,0,0.12));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent),
    0 12px 28px color-mix(in srgb, var(--accent) 18%, transparent);
  animation: todoAddedPop 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.todo-item:active{ cursor: grabbing; }
.todo-item::before{
  content: "";
  position: absolute;
  left: 42px;
  right: 10px;
  top: -5px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 140ms ease, transform 140ms ease;
}
.todo-item::after{
  content: "";
  position: absolute;
  left: 42px;
  right: 10px;
  bottom: -5px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 30%, transparent), var(--accent));
  opacity: 0;
  transform: scaleX(0.7);
  transition: opacity 140ms ease, transform 140ms ease;
}
.todo-item.is-drop-before::before,
.todo-item.is-drop-after::after{
  opacity: 1;
  transform: scaleX(1);
}
.todo-check{ width: 22px;height: 22px;border-radius: 50%;border:1px solid var(--border);background: transparent;cursor:pointer; }
.todo-check.is-done{ background: linear-gradient(135deg, #2db17b, #1e805a); border-color: #5fd6a1; }
.todo-check.is-done::after{ content: "✓"; color: #fff; font-size: 14px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.todo-text.is-done{ text-decoration: line-through; opacity: .72; }
.todo-delete{ border:0;background: transparent;color: var(--muted);font-size:1rem;cursor:pointer; }
.todo-item.is-dragging{
  opacity: 0.28;
  transform: scale(0.985);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.todo-item.is-hovered{
  transform: translateY(-2px);
  box-shadow: 0 12px 24px color-mix(in srgb, #000 24%, transparent);
}
.todo-drag-ghost{
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 72%, #0d1b2a);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  transform: rotate(-1.1deg) scale(1.01);
}
.todo-toggle-all{ margin: 10px auto 0; display: block; border: 1px solid var(--border); background: var(--surface-strong); color: var(--text); border-radius: 10px; padding: 8px 10px; cursor:pointer; font-weight: 700; font-family: var(--font-base); }
.todo-form .button{ color: #fff; }

@keyframes todoAddedPop {
  0% {
    transform: translateY(6px) scale(0.985);
    filter: saturate(0.92);
  }
  55% {
    transform: translateY(-2px) scale(1.006);
    filter: saturate(1.04);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: saturate(1);
  }
}

.session-progress-badge {
  position: relative;
  background:
    radial-gradient(circle at center, var(--surface-strong) 62%, transparent 63%),
    conic-gradient(var(--progress-fill-end) var(--progress, 0%), var(--surface) 0);
  color: #f4fbff;
  border: none;
  font-size: .56rem;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}
@media (max-width: 900px){
  .student-panel-grid{ grid-template-columns: 1fr; }
  .study-tools{ width: 100%; }
  .theme-menu{ top: auto; left: auto; right: 12px; bottom: 12px; }
  .theme-toggle{ padding: 11px 18px; min-height: 44px; }
  .theme-options{ grid-template-columns: repeat(3, 28px); border-radius: 16px; }
}


.button.has-button-progress{
  padding-bottom: 14px;
}

.button.has-button-progress .session-progress-badge{
  margin-right: 2px;
}

.pdf-toolbar-actions .button-mini{
  font-family: var(--font-base);
  letter-spacing: 0.01em;
  padding: 0 12px;
}

@media (max-width: 640px){
  .pdf-toolbar{
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-toolbar-actions{
    justify-content: center;
  }

  .pdf-toolbar-actions .button-mini{
    flex: 1 1 auto;
    min-width: 0;
  }

  .exam-progress {
    width: 100%;
    margin-bottom: 14px;
  }
}
