.search-label {
  display: block;
  padding: 11px 18px 0;
  color: #172b4d;
  font-size: 12px;
  font-weight: 800;
}

.search-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
}

.search-examples span { color: #6d7d92; font-size: 11px; font-weight: 700; }
.search-examples button {
  padding: 6px 9px;
  color: #1769ff;
  font: 650 10px Inter;
  cursor: pointer;
  background: #f2f7ff;
  border: 1px solid #c7dcff;
  border-radius: 99px;
}
.search-examples button:hover { color: #fff; background: #1769ff; }

.voice-confirm {
  margin: 10px 7px 4px;
  padding: 13px 15px;
  background: #fff7e7;
  border: 1px solid #e7d1aa;
  border-radius: 12px;
}
.voice-confirm > span { display: block; color: #8b1125; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.voice-confirm > strong { display: block; margin: 4px 0 10px; font-size: 14px; }
.voice-confirm > div { display: flex; gap: 8px; }
.voice-confirm button { padding: 7px 11px; font: 700 10px Inter; cursor: pointer; border-radius: 8px; }
#voice-edit { color: #52637a; background: #fff; border: 1px solid #ccd7e5; }
#voice-submit { color: #fff; background: #1769ff; border: 1px solid #1769ff; }

.understood-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 24px 0 20px;
  padding: 20px 22px;
  color: #10233f;
  background: linear-gradient(110deg,#fff,#edf5ff);
  border: 1px solid #d5e2f2;
  border-radius: 17px;
}
.understood-panel p { margin: 0 0 5px; color: #1769ff; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.understood-panel h3 { margin: 0 0 11px; font: 750 19px Manrope; }
.understood { justify-content: flex-start; }
.understood span { position: relative; padding: 7px 11px 7px 27px; color: #25425f; background: #f5f9ff; border-color: #c8d9ed; }
.understood span:before { content: "✓"; position: absolute; left: 10px; color: #168153; font-weight: 900; }
.understood-actions { display: flex; flex: none; gap: 8px; }
.understood-actions button { padding: 9px 11px; font: 700 10px Inter; cursor: pointer; border-radius: 9px; }
#modify-search { color: #52637a; background: #fff; border: 1px solid #ccd8e7; }
#add-preferences { color: #fff; background: #8b1125; border: 1px solid #8b1125; }

.course-card .description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.course-facts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  margin: 17px 0;
}
.course-facts > div { min-width: 0; padding: 9px 10px; background: #f6f8fb; border: 1px solid #e3e9f0; border-radius: 9px; }
.course-facts span,.course-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-facts span { margin-bottom: 3px; color: #7d8b9e; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.course-facts strong { color: #273b55; font-size: 10px; }
.course-card .why { margin-top: 4px; }
.course-card .why > b { display: block; margin-bottom: 7px; font-size: 11px; }
.course-card .why ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.course-card .why li { position: relative; padding-left: 16px; color: #496079; font-size: 10px; line-height: 1.4; }
.course-card .why li:before { content: "✓"; position: absolute; left: 0; color: #168153; font-weight: 900; }
.compare-toggle { margin: 0 22px 10px; padding: 9px 12px; color: #1769ff; font: 750 11px Inter; cursor: pointer; background: #f2f7ff; border: 1px solid #c6daf8; border-radius: 9px; }
.compare-toggle.selected { color: #fff; background: #1769ff; border-color: #1769ff; }

.compare-bar {
  position: sticky;
  z-index: 20;
  bottom: 18px;
  display: flex;
  width: min(520px,calc(100% - 24px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px auto 0;
  padding: 11px 12px 11px 17px;
  color: #10233f;
  background: rgba(255,255,255,.96);
  border: 1px solid #cdd9e8;
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
}
.compare-bar span { font-size: 11px; font-weight: 700; }
.compare-bar b { color: #1769ff; font-size: 17px; }
.compare-bar button { padding: 10px 14px; color: #fff; font: 750 11px Inter; cursor: pointer; background: #1769ff; border: 0; border-radius: 9px; }
.compare-dialog { width: min(1100px,calc(100vw - 34px)); max-height: calc(100vh - 34px); padding: 30px; color: #10233f; border: 0; border-radius: 22px; box-shadow: 0 30px 100px rgba(0,0,0,.38); }
.compare-dialog::backdrop { background: rgba(5,17,34,.65); backdrop-filter: blur(4px); }
.compare-dialog > .close-dialog { position: absolute; top: 18px; right: 18px; }
.compare-dialog h2 { margin: 7px 55px 22px 0; font: 800 32px Manrope; }
.compare-table { overflow: auto; }
.compare-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11px; }
.compare-table th,.compare-table td { min-width: 180px; padding: 13px; text-align: left; vertical-align: top; border-right: 1px solid #e1e7ef; border-bottom: 1px solid #e1e7ef; }
.compare-table th:first-child,.compare-table td:first-child { min-width: 140px; color: #66778e; font-weight: 800; background: #f6f8fb; }
.compare-table thead th { color: #10233f; font: 750 14px/1.35 Manrope; background: #eef5ff; }
.compare-table a { color: #1769ff; font-weight: 750; }

.diary-link small { font-size: 9px; font-weight: 600; color: #7c8a9e; }

@media (max-width: 980px) {
  .understood-panel { align-items: flex-start; flex-direction: column; }
  .understood-actions { flex-wrap: wrap; }
}

@media (max-width: 650px) {
  .topbar { gap: 13px; }
  .diary-link > span:nth-child(2) { font-size: 0; }
  .diary-link > span:nth-child(2):before { content: "Salvati"; font-size: 10px; }
  .diary-link small { display: none; }
  .hero { padding-top: 26px; }
  h1 { font-size: 48px; }
  .lead { font-size: 15px; }
  .search-examples { align-items: flex-start; flex-direction: column; }
  .search-examples button { font-size: 11px; }
  .search-box { position: relative; }
  .search-label { padding-top: 13px; }
  .search-footer { padding-bottom: env(safe-area-inset-bottom); }
  .understood-panel { margin-top: 16px; padding: 17px; }
  .understood-actions { width: 100%; }
  .understood-actions button { flex: 1; }
  .course-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .conversation { top: auto; right: 10px; bottom: 10px; left: 10px; width: auto; height: min(78vh,680px); border-radius: 20px; }
  .compare-dialog { width: calc(100vw - 18px); max-height: calc(100vh - 18px); padding: 22px 14px; }
  .compare-dialog h2 { font-size: 25px; }
}
