.course-picker-help {
  margin: -10px 2px 0;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 650;
}

.module-list {
  margin-top: 9px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
}

.module-list summary {
  cursor: pointer;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
}

.module-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: .8rem;
}

.module-list > div:last-child { border-bottom: 0; }
.module-list > div b { white-space: nowrap; }
.list-row > .grow > .row { align-items: flex-start; }

/* Catalogo iniziale */
.catalog-onboarding{min-height:100vh;background:linear-gradient(180deg,#0b1d38 0,#112f56 350px,var(--bg) 350px);padding:28px 22px 80px}.catalog-hero,.catalog-browser{width:min(1180px,100%);margin:auto}.catalog-hero{display:grid;grid-template-columns:220px minmax(0,1fr);gap:48px;align-items:start;color:#fff;padding:12px 6px 54px}.catalog-hero .wordmark{font-size:1.8rem}.catalog-hero-copy{max-width:720px}.catalog-hero .eyebrow{color:var(--gold-light)}.catalog-hero h1{font-size:clamp(2.25rem,6vw,4.6rem);max-width:780px;margin:.25rem 0 1rem}.catalog-hero p{color:#c9d7ea;font-size:1.1rem}.catalog-browser{display:grid;gap:24px}.catalog-search-panel{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:0 18px 55px #07172d22}.catalog-search{display:flex;align-items:center;gap:12px;border:2px solid transparent;background:var(--soft);border-radius:16px;padding:0 16px}.catalog-search:focus-within{border-color:var(--gold)}.catalog-search .ico{color:var(--accent);width:26px;height:26px}.catalog-search input{width:100%;min-height:62px;border:0;outline:0;background:transparent;color:var(--text);font-size:1.08rem}.catalog-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:10px;margin-top:14px}.catalog-filters label{display:grid;gap:4px;color:var(--muted);font-size:.72rem;font-weight:750;text-transform:uppercase;letter-spacing:.08em}.catalog-filters select{min-width:0;min-height:46px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text);padding:8px 10px;font-size:.9rem;text-transform:none;letter-spacing:0}.catalog-reset{align-self:end;min-height:46px;padding:8px 14px;border-radius:11px;background:transparent;color:var(--accent);font-weight:700}.catalog-results-head{display:flex;align-items:end;justify-content:space-between;gap:18px}.catalog-results-head h2{font-size:1.65rem;margin:0}.catalog-course-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.catalog-course-card{--course-color:#315f91;display:flex;flex-direction:column;min-height:220px;padding:19px;border:1px solid var(--line);border-top:6px solid var(--course-color);border-radius:18px;background:var(--surface);color:var(--text);text-align:left;box-shadow:0 7px 24px #07172d0b;transition:transform .18s,border-color .18s,box-shadow .18s}.catalog-course-card:hover{transform:translateY(-3px);box-shadow:0 15px 35px #07172d18}.catalog-course-card.is-selected{outline:3px solid var(--gold);outline-offset:2px}.dept-tone-0{--course-color:#2369a6}.dept-tone-1{--course-color:#008477}.dept-tone-2{--course-color:#8054a1}.dept-tone-3{--course-color:#bd5f36}.dept-tone-4{--course-color:#3f7b4b}.dept-tone-5{--course-color:#b07813}.dept-tone-6{--course-color:#aa3d64}.dept-tone-7{--course-color:#536a91}.catalog-card-top,.catalog-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.catalog-card-top strong{color:var(--course-color);font-size:1.05rem}.catalog-degree{padding:4px 8px;border-radius:99px;background:var(--soft);color:var(--muted);font-size:.72rem;font-weight:750}.catalog-course-name{display:block;margin:18px 0 8px;font-size:1.17rem;line-height:1.3;font-weight:780}.catalog-department{display:block;flex:1;color:var(--muted);font-size:.82rem;line-height:1.4}.catalog-card-bottom{margin-top:18px;padding-top:12px;border-top:1px solid var(--line);color:var(--muted);font-size:.75rem;font-weight:650}.catalog-no-results{grid-column:1/-1;text-align:center;padding:48px 20px;border:1px dashed var(--line);border-radius:18px;background:var(--surface)}.catalog-selection{position:sticky;bottom:14px;z-index:20;display:none;grid-template-columns:minmax(0,1fr) 150px auto;align-items:end;gap:16px;padding:16px 18px;border:1px solid #ffffff2b;border-radius:18px;background:#0b1d38;color:#fff;box-shadow:0 18px 60px #0005}.catalog-selection.is-visible{display:grid}.catalog-selection>div span,.catalog-selection label{display:grid;gap:4px;color:#bcd0ea;font-size:.75rem}.catalog-selection>div strong{display:block;color:#fff;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-selection select{min-height:44px;border:1px solid #ffffff31;border-radius:10px;background:#fff;color:#14243b;padding:8px}.catalog-recover{justify-self:center}.catalog-browser>.error{text-align:center}.catalog-onboarding .wordmark span{color:#cfdaeb}

/* Timeline, libretto e moduli */
.plan-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 24px;margin:10px 0 25px;padding:24px;border-radius:22px;background:linear-gradient(125deg,#102745,#17487b);color:#fff;box-shadow:0 14px 34px #11244225}.plan-progress .eyebrow{color:#c6d7ec}.plan-progress h2{font-size:2.15rem;margin:0}.plan-progress h2 small{font-size:1rem;font-weight:500;color:#c6d7ec}.plan-progress p{margin:3px 0 0;color:#d9e5f4}.plan-progress .progress-number{display:grid;text-align:right;align-content:center}.plan-progress .progress-number strong{font-size:1.7rem;color:var(--gold-light)}.plan-progress .progress-number span{font-size:.75rem;color:#c6d7ec}.plan-progress progress{grid-column:1/-1;width:100%;height:12px;border:0;border-radius:99px;overflow:hidden;background:#ffffff23}.plan-progress progress::-webkit-progress-bar{background:#ffffff23}.plan-progress progress::-webkit-progress-value{background:linear-gradient(90deg,var(--gold),var(--gold-light));border-radius:99px}.plan-progress progress::-moz-progress-bar{background:var(--gold-light);border-radius:99px}.timeline-year{margin:0 0 13px;border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden}.timeline-year>summary{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:17px 18px;cursor:pointer;list-style:none}.timeline-year>summary::-webkit-details-marker,.timeline-semester>summary::-webkit-details-marker,.nested-modules>summary::-webkit-details-marker{display:none}.timeline-marker{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--blue);color:var(--gold-light);font-size:1.05rem;font-weight:850}.timeline-year>summary b{display:block;font-size:1.05rem}.timeline-year>summary small{display:block;margin-top:2px;color:var(--muted)}.timeline-chevron{font-size:1.35rem;transition:transform .18s}.timeline-year[open]>summary .timeline-chevron{transform:rotate(180deg)}.timeline-year-body{position:relative;padding:0 17px 17px 38px}.timeline-year-body:before{content:'';position:absolute;left:38px;top:0;bottom:23px;width:2px;background:var(--line)}.timeline-semester{position:relative;margin:10px 0 10px 20px;border:1px solid var(--line);border-radius:14px;background:var(--bg)}.timeline-semester:before{content:'';position:absolute;left:-27px;top:22px;width:27px;height:2px;background:var(--line)}.timeline-semester>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;cursor:pointer;list-style:none}.timeline-semester>summary b,.timeline-semester>summary small{display:block}.timeline-semester>summary small{color:var(--muted);font-size:.75rem}.timeline-semester>summary>span:last-child{color:var(--accent);font-size:.75rem;font-weight:750}.timeline-semester[open]>summary>span:last-child{font-size:0}.timeline-semester[open]>summary>span:last-child:after{content:'Chiudi';font-size:.75rem}.timeline-semester>div{padding:0 15px 7px}.study-activity{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;padding:17px 0;border-top:1px solid var(--line)}.study-activity.is-passed{opacity:.88}.study-check{position:relative;display:block;width:28px;height:28px;margin-top:2px}.study-check input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}.study-check>span[aria-hidden]{display:grid;place-items:center;width:28px;height:28px;border:2px solid #9bacc1;border-radius:9px;background:var(--surface);color:#fff}.study-check input:focus-visible+span{outline:3px solid var(--gold);outline-offset:2px}.study-check input:checked+span{border-color:#20745b;background:#20745b}.study-check .ico{width:18px;height:18px}.study-activity-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.study-activity-title>div>strong{display:block;font-size:.98rem;line-height:1.4}.study-activity.is-passed .study-activity-title>div>strong{text-decoration:line-through;text-decoration-color:#20745b66}.study-cfu{display:grid;place-items:center;flex:0 0 52px;min-height:50px;border-radius:13px;background:var(--soft);color:var(--accent);font-size:1.1rem;font-weight:850}.study-cfu small{font-size:.58rem;letter-spacing:.08em}.study-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.study-badge{position:relative;padding:3px 7px;border-radius:6px;font-size:.67rem;font-weight:750;cursor:help}.type-base{background:#dff3e7;color:#216344}.type-main{background:#e0edff;color:#245a96}.type-related{background:#eee5fa;color:#69448a}.type-choice{background:#fff0ce;color:#765315}.type-final{background:#f8e2e9;color:#8a3151}.type-other{background:var(--soft);color:var(--muted)}.type-ssd{border:1px solid var(--line);background:transparent;color:var(--muted);font-weight:650}.study-badge:after{content:attr(data-tooltip);position:absolute;left:0;bottom:calc(100% + 8px);z-index:30;display:none;width:220px;padding:9px 11px;border-radius:9px;background:#07172d;color:#fff;box-shadow:0 8px 24px #0003;font-size:.72rem;font-weight:500;line-height:1.35}.study-badge:hover:after,.study-badge:focus:after{display:block}.nested-modules{margin-top:12px;border-radius:12px;background:var(--soft);overflow:hidden}.nested-modules>summary{padding:11px 12px;cursor:pointer;list-style:none}.nested-modules>summary span,.nested-modules>summary small{display:flex;align-items:center;gap:7px}.nested-modules>summary span{color:var(--accent);font-size:.8rem;font-weight:750}.nested-modules>summary .ico{width:16px;height:16px;transform:rotate(90deg);transition:transform .18s}.nested-modules[open]>summary .ico{transform:rotate(-90deg)}.nested-modules>summary small{margin-top:3px;color:var(--muted);font-size:.69rem}.nested-module-list{padding:0 12px 8px 25px}.nested-module{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 10px 12px;border-top:1px solid var(--line);border-left:2px solid var(--gold)}.nested-module span b,.nested-module span small{display:block}.nested-module span b{font-size:.8rem}.nested-module span small{margin-top:2px;color:var(--muted);font-size:.68rem}.nested-module>strong{white-space:nowrap;font-size:.78rem}.grade-reveal{display:flex;align-items:center;gap:8px;width:max-content;margin-top:11px;padding:7px 10px;border-radius:10px;background:#ddf2e7;color:#245d46;font-size:.75rem;font-weight:750}.grade-reveal input{width:56px;min-height:35px;border:1px solid #8ebba6;border-radius:8px;background:#fff;color:#173f30;padding:5px;text-align:center;font-weight:800}

@media(max-width:900px){.catalog-course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-hero{grid-template-columns:1fr;gap:30px}.catalog-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-reset{grid-column:1/-1;justify-self:start}.catalog-selection{grid-template-columns:minmax(0,1fr) 120px}.catalog-selection .btn{grid-column:1/-1}}
@media(max-width:600px){.catalog-onboarding{padding:18px 12px 100px;background:linear-gradient(180deg,#0b1d38 0,#112f56 315px,var(--bg) 315px)}.catalog-hero{padding-bottom:32px}.catalog-hero h1{font-size:2.25rem}.catalog-search-panel{padding:12px;border-radius:18px}.catalog-search input{min-height:56px;font-size:.95rem}.catalog-filters{grid-template-columns:1fr}.catalog-reset{grid-column:auto}.catalog-course-grid{grid-template-columns:1fr}.catalog-course-card{min-height:190px}.catalog-selection{bottom:8px;grid-template-columns:1fr 105px;padding:13px}.catalog-selection>div strong{max-width:210px}.catalog-selection .btn{grid-column:1/-1}.plan-progress{padding:19px}.timeline-year>summary{padding:14px}.timeline-year-body{padding:0 10px 12px 21px}.timeline-year-body:before{left:21px}.timeline-semester{margin-left:17px}.timeline-semester:before{left:-19px;width:19px}.timeline-semester>div{padding:0 11px 5px}.study-activity{gap:10px}.study-activity-title>div>strong{font-size:.9rem}.study-badge:after{left:auto;right:0;width:190px}.nested-module{align-items:flex-start}.plan-progress .progress-number strong{font-size:1.4rem}}

/* 93: esito dell'esame (con voto / idoneità) */
.grade-kind{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0;margin:0;padding:0;border:0}
.grade-kind legend{margin-bottom:6px;padding:0;font-size:11px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:var(--muted)}
.grade-kind label{position:relative;display:block;min-width:0;cursor:pointer}
.grade-kind input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.grade-kind span{display:flex;align-items:center;justify-content:center;height:100%;min-height:44px;padding:8px 10px;text-align:center;font-size:.875rem;font-weight:600;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:12px}
.grade-kind input:checked+span{color:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.grade-kind input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.plan-result{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:11px}
.plan-result .grade-reveal{margin-top:0}
