:root {
  --edu-blue: #00a4ff;
  --edu-lime: #c7f408;
  --edu-text: #071527;
  --edu-muted: #64748b;
  --edu-border: rgba(0, 164, 255, 0.18);
  --edu-shadow: 0 18px 45px rgba(0, 164, 255, 0.14);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(199, 244, 8, 0.18), transparent 28%),
    radial-gradient(circle at 95% 8%, rgba(0, 164, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #f4fbff 0%, #fff 50%, #f8fdff 100%);
  color: var(--edu-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.toolistfy-embed .tool-header {
  display: none;
}

.toolistfy-embed .edu-hero {
  display: none;
}

.toolistfy-embed .edu-how {
  display: none;
}

.toolistfy-embed .tool-backend-html-section {
  display: none;
}

.edu-tool {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.toolistfy-embed .edu-tool {
  padding: 14px 0 18px;
}

.toolistfy-embed .edu-grid {
  margin-top: 0;
}

.toolistfy-embed .edu-card {
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(0, 164, 255, 0.1);
}

.toolistfy-embed .edu-form,
.toolistfy-embed .edu-results {
  padding: 20px;
}

.toolistfy-embed .edu-results-empty {
  min-height: 300px;
}

.edu-hero {
  text-align: center;
  margin-bottom: 24px;
}

.edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 164, 255, 0.16);
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edu-badge span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--edu-lime);
}

.edu-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.edu-title-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.edu-hero h1 {
  margin: 0;
  color: var(--edu-blue);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 950;
  line-height: 1.1;
}

.edu-hero p {
  max-width: 820px;
  margin: 18px auto 0;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 550;
}

.edu-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--edu-border);
  border-radius: 28px;
  box-shadow: var(--edu-shadow);
}

.edu-alert {
  padding: 18px 22px;
  margin-bottom: 24px;
  color: #344054;
  line-height: 1.6;
}

.edu-alert strong {
  color: var(--edu-blue);
}

.edu-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: start;
}

.edu-form,
.edu-results,
.edu-how {
  padding: 24px;
}

.edu-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.edu-form h2,
.edu-results h2,
.edu-how h2 {
  margin: 0;
  color: var(--edu-blue);
  font-size: 24px;
  font-weight: 900;
}

.tool-panel {
  display: none;
}

.edu-tool[data-tool-mode="assignment"] .tool-panel[data-panel="assignment"],
.edu-tool[data-tool-mode="study"] .tool-panel[data-panel="study"],
.edu-tool[data-tool-mode="merit"] .tool-panel[data-panel="merit"],
.edu-tool[data-tool-mode="scholarship"] .tool-panel[data-panel="scholarship"],
.edu-tool[data-tool-mode="readiness"] .tool-panel[data-panel="readiness"],
.edu-tool[data-tool-mode="attendance"] .tool-panel[data-panel="attendance"],
.edu-tool[data-tool-mode="marks"] .tool-panel[data-panel="marks"],
.edu-tool[data-tool-mode="semester-gpa"] .tool-panel[data-panel="semester-gpa"],
.edu-tool[data-tool-mode="cgpa"] .tool-panel[data-panel="cgpa"],
.edu-tool[data-tool-mode="gpa-target"] .tool-panel[data-panel="gpa-target"] {
  display: block;
}

.edu-two,
.edu-three {
  display: grid;
  gap: 14px;
}

.edu-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.edu-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edu-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  color: #53627a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.edu-extra-field {
  display: none !important;
}

.edu-form input,
.edu-form select,
.edu-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 164, 255, 0.22);
  border-radius: 16px;
  background: #f8fcff;
  color: var(--edu-text);
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.edu-form input[readonly] {
  background: #eef8ff;
  color: #42526b;
  cursor: not-allowed;
}

.edu-form textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}

.edu-form select[multiple] {
  min-height: 92px;
}

.edu-form input:focus,
.edu-form select:focus,
.edu-form textarea:focus {
  border-color: var(--edu-blue);
  box-shadow: 0 0 0 4px rgba(0, 164, 255, 0.12);
}

.edu-form small {
  color: var(--edu-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.edu-course-section {
  margin-top: 4px;
}

.edu-course-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: #53627a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.edu-course-section-head strong,
.edu-course-section-head small {
  display: block;
}

.edu-course-section-head small {
  margin-top: 4px;
  color: var(--edu-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.edu-course-grid-head,
.edu-course-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) minmax(90px, 0.8fr) minmax(76px, 0.55fr) minmax(88px, 0.65fr) minmax(76px, 0.55fr) 42px;
  gap: 10px;
  align-items: center;
}

.edu-semester-grid-head,
.edu-semester-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.edu-course-grid-head,
.edu-semester-grid-head {
  padding: 0 10px 8px;
  color: #65758e;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.edu-course-rows,
.edu-semester-rows {
  display: grid;
  gap: 10px;
}

.edu-course-row,
.edu-semester-row {
  padding: 10px;
  border: 1px solid rgba(0, 164, 255, 0.16);
  border-radius: 18px;
  background: #fff;
}

.edu-course-row input,
.edu-semester-row input {
  margin: 0;
  padding: 11px 12px;
  border-radius: 13px;
  font-size: 14px;
}

.edu-row-remove {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: 50%;
  background: #fff5f4;
  color: #d92d20;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.course-rows-hidden {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.edu-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 18px;
}

.edu-checks label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(0, 164, 255, 0.18);
  border-radius: 16px;
  background: #fff;
  text-transform: none;
  letter-spacing: 0;
}

.edu-checks input {
  width: auto;
}

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

.edu-primary,
.edu-secondary,
.edu-link-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.edu-primary {
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--edu-blue), #48b9ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 164, 255, 0.28);
}

.edu-secondary,
.edu-link-button {
  padding: 12px 18px;
  background: #fff;
  color: var(--edu-blue);
  border: 1px solid rgba(0, 164, 255, 0.2);
}

.edu-link-button {
  padding: 9px 14px;
}

.edu-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--edu-muted);
  font-size: 13px;
}

.edu-results {
  position: sticky;
  top: 20px;
  min-width: 0;
  overflow: hidden;
}

.edu-results-empty {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--edu-muted);
}

.edu-results-empty span {
  font-size: 48px;
}

.result-score {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background:
    conic-gradient(var(--score-color, var(--edu-blue)) calc(var(--score, 0) * 1%), #e7f6ff 0);
  border: 1px solid rgba(0, 164, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 164, 255, 0.18);
}

.result-score-inner {
  width: 108px;
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0, 164, 255, 0.16);
  box-shadow: inset 0 0 0 6px rgba(0, 164, 255, 0.05);
  text-align: center;
}

.result-score strong {
  color: #061426;
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
}

.result-score span {
  display: block;
  max-width: 92px;
  color: #334155;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.edu-results h2 {
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.15;
}

.result-list,
.schedule-list,
.tips-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.result-list li,
.schedule-list li,
.tips-list li {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6fbff;
  color: #24324a;
  line-height: 1.38;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.schedule-list,
.tips-list {
  font-size: 14px;
}

.result-list b {
  color: var(--edu-blue);
}

.risk-low,
.risk-safe {
  color: #079455;
}

.risk-medium,
.risk-moderate {
  color: #b54708;
}

.risk-high,
.risk-risky {
  color: #d92d20;
}

.edu-how {
  margin-top: 14px;
}

.edu-tool > .tool-backend-html-section {
  margin-top: 24px;
  margin-bottom: 0 !important;
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(135deg, rgba(240, 250, 255, 0.96), rgba(250, 255, 241, 0.92));
  border: 1px solid rgba(0, 164, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 164, 255, 0.12);
  color: var(--edu-text);
  overflow: hidden;
}

.edu-tool > .tool-backend-html-section > :first-child {
  margin-top: 0;
}

.edu-tool > .tool-backend-html-section > :last-child {
  margin-bottom: 0;
}

.edu-tool > .tool-backend-html-section :where(h1, h2, h3, h4, h5, h6) {
  color: var(--edu-text);
  line-height: 1.2;
  margin: 0 0 14px;
}

.edu-tool > .tool-backend-html-section :where(p, li) {
  color: #253244;
  font-size: 16px;
  line-height: 1.72;
}

.edu-tool > .tool-backend-html-section :where(p, ul, ol, table, blockquote) {
  margin: 0 0 18px;
}

.edu-tool > .tool-backend-html-section :where(img, video, iframe) {
  max-width: 100%;
}

.edu-how h2 {
  margin-bottom: 14px;
}

.edu-how ol {
  margin: 0;
  padding-left: 22px;
  color: #334155;
  line-height: 1.8;
  font-weight: 600;
}

@media (max-width: 980px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .edu-results {
    position: static;
  }
}

@media (max-width: 720px) {
  .edu-tool {
    width: min(100% - 20px, 560px);
    padding-top: 26px;
  }

  .edu-title-row {
    flex-direction: column;
    gap: 10px;
  }

  .edu-two,
  .edu-three,
  .edu-checks {
    grid-template-columns: 1fr;
  }

  .edu-course-grid-head,
  .edu-semester-grid-head {
    display: none;
  }

  .edu-course-row,
  .edu-semester-row {
    grid-template-columns: 1fr 1fr;
  }

  .edu-course-row input[data-course-field="name"] {
    grid-column: 1 / -1;
  }

  .edu-form,
  .edu-results,
  .edu-how {
    padding: 18px;
    border-radius: 22px;
  }
}

@media print {
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    background: #fff;
  }

  .tool-header,
  .edu-form,
  .edu-alert,
  .edu-how {
    display: none !important;
  }

  .edu-tool {
    width: 100%;
    padding: 0;
  }

  .edu-grid {
    display: block;
  }

  .edu-card {
    box-shadow: none;
    border: 0;
  }

  .edu-results {
    position: static;
    padding: 18px;
  }

  .result-score {
    box-shadow: none;
    break-inside: avoid;
  }
}
