/* Hylos LMS — student pages. Mobile first. Colours can be overridden by
   redefining these variables in the theme's Additional CSS. */
.hylos-wrap {
	--hylos-primary: #7f43f9;
	--hylos-primary-ink: #ffffff;
	--hylos-ink: #1f2937;
	--hylos-muted: #6b7280;
	--hylos-line: #e5e7eb;
	--hylos-soft: #f5f7fb;
	--hylos-success: #15803d;
	--hylos-warning: #b45309;
	--hylos-radius: 12px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 16px;
	color: var(--hylos-ink);
	font-size: 16px;
	line-height: 1.6;
	box-sizing: border-box;
}
.hylos-wrap *, .hylos-wrap *::before, .hylos-wrap *::after { box-sizing: border-box; }
.hylos-lang-hi .hylos-wrap { line-height: 1.75; }

.hylos-h1 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 .5rem; }
.hylos-h2 { font-size: 1.25rem; margin: 0 0 .75rem; }
.hylos-h3 { font-size: 1.05rem; font-weight: 600; }
.hylos-lead { font-size: 1.05rem; color: var(--hylos-ink); margin: 0 0 .5rem; }
.hylos-muted { color: var(--hylos-muted); margin: .25rem 0; }
.hylos-small { font-size: .85rem; }
.hylos-eyebrow { color: var(--hylos-primary); font-weight: 600; font-size: .9rem; margin: 0 0 .25rem; }
.hylos-section { margin: 2rem 0; }
.hylos-content img { max-width: 100%; height: auto; }

/* Toolbar + language switch */
.hylos-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.hylos-back { color: var(--hylos-muted); text-decoration: none; font-size: .95rem; }
.hylos-back:hover { color: var(--hylos-primary); }
.hylos-lang-switch { display: inline-flex; border: 1px solid var(--hylos-line); border-radius: 999px; overflow: hidden; }
.hylos-lang-switch a { padding: 6px 14px; text-decoration: none; color: var(--hylos-ink); font-size: .9rem; }
.hylos-lang-switch a.is-active { background: var(--hylos-primary); color: var(--hylos-primary-ink); }
.hylos-lang-fixed { display: inline-block; padding: 6px 14px; border: 1px solid var(--hylos-line); border-radius: 999px; font-size: .9rem; color: var(--hylos-ink); }

/* Buttons, tags, notices */
.hylos-btn { display: inline-block; background: var(--hylos-primary); color: var(--hylos-primary-ink) !important; border: 0; border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.2; }
.hylos-btn:hover { filter: brightness(.95); }
.hylos-btn--block { display: block; width: 100%; margin: 12px 0 4px; }
.hylos-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hylos-tag { background: var(--hylos-soft); color: var(--hylos-primary); border-radius: 999px; padding: 2px 10px; font-size: .8rem; text-decoration: none; font-weight: 600; }
.hylos-badge { background: #ecfdf5; color: var(--hylos-success); border-radius: 6px; padding: 1px 6px; font-size: .75rem; white-space: nowrap; }
.hylos-success { background: #ecfdf5; color: var(--hylos-success); padding: 10px 12px; border-radius: 8px; margin: 0 0 12px; }
.hylos-warning { background: #fffbeb; color: var(--hylos-warning); padding: 10px 12px; border-radius: 8px; }
.hylos-note { background: var(--hylos-soft); color: var(--hylos-muted); padding: 8px 12px; border-radius: 8px; font-size: .85rem; }
.hylos-notice { background: var(--hylos-soft); padding: 24px; border-radius: var(--hylos-radius); text-align: center; color: var(--hylos-muted); }
.hylos-empty { color: var(--hylos-muted); }
.hylos-icon { vertical-align: middle; flex: none; }

/* Progress */
.hylos-progress { height: 8px; background: var(--hylos-line); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.hylos-progress span { display: block; height: 100%; background: var(--hylos-success); border-radius: 999px; }

/* Course hero */
.hylos-hero { display: grid; gap: 20px; }
.hylos-cta { border: 1px solid var(--hylos-line); border-radius: var(--hylos-radius); overflow: hidden; background: #fff; align-self: start; }
.hylos-cta__img img { display: block; width: 100%; height: auto; }
.hylos-cta__box { padding: 16px; }
.hylos-cta__status { font-weight: 600; color: var(--hylos-success); margin: 0; }
.hylos-price { font-size: 1.5rem; font-weight: 700; margin: 0; }

/* Curriculum */
.hylos-curriculum { border: 1px solid var(--hylos-line); border-radius: var(--hylos-radius); overflow: hidden; background: #fff; }
.hylos-chapter + .hylos-chapter { border-top: 1px solid var(--hylos-line); }
.hylos-chapter summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; background: var(--hylos-soft); font-weight: 600; list-style: none; }
.hylos-chapter summary::-webkit-details-marker { display: none; }
.hylos-chapter summary::after { content: "+"; color: var(--hylos-muted); }
.hylos-chapter[open] summary::after { content: "−"; }
.hylos-chapter__count { color: var(--hylos-muted); font-weight: 400; font-size: .85rem; margin-left: auto; white-space: nowrap; }
.hylos-lessons { list-style: none; margin: 0; padding: 0; }
.hylos-lesson-item a, .hylos-lesson-item__locked { display: flex; align-items: center; gap: 10px; padding: 12px 16px; text-decoration: none; color: var(--hylos-ink); border-top: 1px solid var(--hylos-line); min-height: 48px; }
.hylos-lesson-item a:hover { background: var(--hylos-soft); }
.hylos-lesson-item.is-current a { background: #eff6ff; box-shadow: inset 3px 0 0 var(--hylos-primary); font-weight: 600; }
.hylos-lesson-item.is-locked { color: var(--hylos-muted); }
.hylos-lesson-item__locked { color: var(--hylos-muted); cursor: not-allowed; }
.hylos-lesson-item__type { color: var(--hylos-primary); display: inline-flex; }
.hylos-lesson-item__title { flex: 1; }
.hylos-lesson-item__time { color: var(--hylos-muted); font-size: .8rem; white-space: nowrap; }
.hylos-lesson-item__status { display: inline-flex; width: 18px; }
.hylos-lesson-item.is-done .hylos-lesson-item__status { color: var(--hylos-success); }

/* Course grid */
.hylos-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hylos-card { border: 1px solid var(--hylos-line); border-radius: var(--hylos-radius); overflow: hidden; background: #fff; transition: box-shadow .15s; }
.hylos-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.hylos-card__link { display: block; color: inherit; text-decoration: none; }
.hylos-card__media { aspect-ratio: 16 / 9; background: var(--hylos-soft); overflow: hidden; }
.hylos-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hylos-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; color: var(--hylos-primary); }
.hylos-card__body { padding: 14px 16px 16px; }
.hylos-card__title { font-size: 1.1rem; margin: 0 0 4px; line-height: 1.3; }
.hylos-card__meta { color: var(--hylos-muted); font-size: .9rem; margin: 0; }
.hylos-card__price { font-weight: 700; margin: 8px 0 0; }
.hylos-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.hylos-chip { white-space: nowrap; border: 1px solid var(--hylos-line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--hylos-ink); font-size: .9rem; }
.hylos-chip.is-active { background: var(--hylos-primary); border-color: var(--hylos-primary); color: var(--hylos-primary-ink); }

/* Lesson page */
.hylos-lesson-layout { display: grid; gap: 20px; }
.hylos-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--hylos-radius); overflow: hidden; margin: 12px 0 16px; }
.hylos-video iframe, .hylos-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hylos-locked { text-align: center; padding: 40px 20px; background: var(--hylos-soft); border-radius: var(--hylos-radius); color: var(--hylos-muted); }
.hylos-locked .hylos-icon { width: 40px; height: 40px; }
.hylos-lesson-actions { margin: 20px 0; }
.hylos-done { color: var(--hylos-success); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.hylos-pager { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--hylos-line); padding-top: 16px; margin-top: 16px; }
.hylos-pager a { text-decoration: none; color: var(--hylos-primary); font-weight: 600; }
.hylos-pager__next { margin-left: auto; }
.hylos-sidebar-toggle > summary { cursor: pointer; padding: 8px 0; list-style: none; }
.hylos-sidebar-toggle > summary::-webkit-details-marker { display: none; }

/* PDF viewer */
.hylos-pdf { background: var(--hylos-soft); border-radius: var(--hylos-radius); padding: 8px; margin: 12px 0 16px; user-select: none; -webkit-user-select: none; }
.hylos-pdf__status { text-align: center; color: var(--hylos-muted); padding: 16px; }
.hylos-pdf__page { position: relative; margin: 0 auto 8px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.1); max-width: 100%; }
.hylos-pdf__page canvas { display: block; width: 100%; height: auto; }
.hylos-pdf__label { text-align: center; color: var(--hylos-muted); font-size: .75rem; margin-bottom: 12px; }

/* My courses */
.hylos-my-list { display: grid; gap: 12px; }
.hylos-my-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; border: 1px solid var(--hylos-line); border-radius: var(--hylos-radius); padding: 12px; background: #fff; }
.hylos-my-item.is-expired { opacity: .7; }
.hylos-my-item__thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: block; }
.hylos-my-item h3 { font-size: 1.05rem; margin: 0; }
.hylos-my-item h3 a { color: inherit; text-decoration: none; }
.hylos-my-item__cta { grid-column: 1 / -1; }
.hylos-my-item__cta .hylos-btn { width: 100%; }

@media (min-width: 640px) {
	.hylos-grid { grid-template-columns: repeat(2, 1fr); }
	.hylos-my-item { grid-template-columns: 80px 1fr auto; }
	.hylos-my-item__thumb img { width: 80px; height: 80px; }
	.hylos-my-item__cta { grid-column: auto; }
	.hylos-my-item__cta .hylos-btn { width: auto; }
}
@media (min-width: 960px) {
	.hylos-wrap { padding: 24px; }
	.hylos-h1 { font-size: 2rem; }
	.hylos-grid { grid-template-columns: repeat(3, 1fr); }
	.hylos-hero { grid-template-columns: 1fr 360px; align-items: start; }
	.hylos-lesson-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
	.hylos-lesson-sidebar { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; }
}

/* ---------- Tests ---------- */
.hylos-btn--big { font-size: 1.1rem; padding: 14px 28px; }
.hylos-btn--ghost { background: transparent; color: var(--hylos-primary) !important; border: 2px solid var(--hylos-primary); }
.hylos-test-head { margin-bottom: 8px; }
.hylos-test-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.hylos-test-facts div, .hylos-stat-grid div { background: #fff; border: 1px solid var(--hylos-line); border-radius: var(--hylos-radius); padding: 12px; display: flex; flex-direction: column; }
.hylos-test-facts strong, .hylos-stat-grid strong { font-size: 1.4rem; line-height: 1.2; }
.hylos-test-facts span, .hylos-stat-grid span { color: var(--hylos-muted); font-size: .85rem; }
.hylos-stat-grid small { font-size: .8rem; color: var(--hylos-muted); font-weight: 400; }
.hylos-test-start { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hylos-table-wrap { overflow-x: auto; }
.hylos-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--hylos-line); border-radius: var(--hylos-radius); overflow: hidden; font-size: .95rem; }
.hylos-table th, .hylos-table td { padding: 10px 12px; border-bottom: 1px solid var(--hylos-line); text-align: left; }
.hylos-table th { background: var(--hylos-soft); font-weight: 600; }
.hylos-card--test .hylos-card__title { display: flex; gap: 6px; align-items: flex-start; }
.hylos-card--test .hylos-icon { color: var(--hylos-primary); margin-top: 3px; }

/* Result */
.hylos-scorecard { display: grid; gap: 12px; margin: 16px 0 8px; }
.hylos-scorecard__main { background: linear-gradient(135deg, #5520c7, #7f43f9 60%, #9b6bff); color: #fff; border-radius: var(--hylos-radius); padding: 20px; }
.hylos-scorecard__label { opacity: .85; font-size: .9rem; display: block; }
.hylos-scorecard__score { font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.hylos-scorecard__score small { font-size: 1.1rem; font-weight: 500; opacity: .85; }
.hylos-progress--big { height: 10px; background: rgba(255,255,255,.25); margin-top: 12px; }
.hylos-progress--big span { background: #fff; }
.hylos-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hylos-stat-grid .is-good strong { color: var(--hylos-success); }
.hylos-stat-grid .is-bad strong { color: #b91c1c; }
.hylos-chapter-bars { display: grid; gap: 12px; }
.hylos-chapter-bar__head { display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; }
.hylos-chapter-bar.is-weak .hylos-progress span { background: #ef4444; }
.hylos-chapter-bar.is-ok .hylos-progress span { background: #f59e0b; }
.hylos-badge--bad { background: #fef2f2; color: #b91c1c; font-style: normal; margin-left: 4px; }
.hylos-review-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.hylos-review-filter .hylos-chip { background: #fff; cursor: pointer; font: inherit; font-size: .85rem; }
.hylos-review-q { background: #fff; border: 1px solid var(--hylos-line); border-left: 4px solid var(--hylos-line); border-radius: var(--hylos-radius); padding: 14px 16px; margin: 12px 0; }
.hylos-review-q.is-correct { border-left-color: var(--hylos-success); }
.hylos-review-q.is-wrong, .hylos-review-q.is-partial { border-left-color: #ef4444; }
.hylos-review-q header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.hylos-review-q__no { font-weight: 700; }
.hylos-review-q__status { font-size: .85rem; font-weight: 600; }
.hylos-review-q.is-correct .hylos-review-q__status { color: var(--hylos-success); }
.hylos-review-q.is-wrong .hylos-review-q__status, .hylos-review-q.is-partial .hylos-review-q__status { color: #b91c1c; }
.hylos-review-q__text { overflow-x: auto; }
.hylos-review-q__text img, .hylos-review-options img { max-width: 100%; height: auto; }
.hylos-review-options { margin: 8px 0; padding-left: 0; list-style: none; counter-reset: opt; display: grid; gap: 6px; }
.hylos-review-options li { counter-increment: opt; border: 1px solid var(--hylos-line); border-radius: 8px; padding: 8px 10px 8px 38px; position: relative; overflow-x: auto; }
.hylos-review-options li::before { content: counter(opt, upper-alpha); position: absolute; left: 10px; top: 8px; font-weight: 700; color: var(--hylos-muted); }
.hylos-review-options li.is-key { border-color: var(--hylos-success); background: #f0fdf4; }
.hylos-review-options li.is-key::before { color: var(--hylos-success); }
.hylos-review-options li.is-chosen:not(.is-key) { border-color: #ef4444; background: #fef2f2; }
.hylos-tagline { display: inline-block; font-size: .75rem; font-weight: 600; margin-left: 6px; color: var(--hylos-muted); }
.hylos-solution { margin-top: 8px; background: var(--hylos-soft); border-radius: 8px; padding: 8px 12px; }
.hylos-solution summary { cursor: pointer; font-weight: 600; color: var(--hylos-primary); }
@media (min-width: 640px) {
	.hylos-test-facts { grid-template-columns: repeat(4, 1fr); }
	.hylos-stat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
	.hylos-scorecard { grid-template-columns: 320px 1fr; align-items: stretch; }
}
.hylos-review-filter .hylos-chip.is-active { background: var(--hylos-primary); border-color: var(--hylos-primary); color: var(--hylos-primary-ink); }

/* ---------- Practice ---------- */
.hylos-subject-card { display: block; text-decoration: none; color: inherit; }
.hylos-subject-card__icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; background: var(--hylos-soft); color: var(--hylos-primary); margin-bottom: 8px; }
.hylos-subject--biology .hylos-subject-card__icon { background: #ecfdf5; color: #15803d; }
.hylos-subject--physics .hylos-subject-card__icon { background: #eff6ff; color: #1d4ed8; }
.hylos-subject--chemistry .hylos-subject-card__icon { background: #fff7ed; color: #c2410c; }
.hylos-subject--mathematics .hylos-subject-card__icon { background: #f5f3ff; color: #6d28d9; }
.hylos-chapter-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hylos-line); border-radius: var(--hylos-radius); background: #fff; overflow: hidden; }
.hylos-chapter-list li + li { border-top: 1px solid var(--hylos-line); }
.hylos-chapter-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; text-decoration: none; color: inherit; }
.hylos-chapter-list a:hover { background: var(--hylos-soft); }
.hylos-chapter-list__name { font-weight: 600; }
.hylos-chapter-list__meta { color: var(--hylos-muted); font-size: .85rem; text-align: right; }
.hylos-chapter-list .hylos-progress { grid-column: 1 / -1; margin: 4px 0 0; height: 6px; }
.hylos-pp__summary { display: flex; flex-direction: column; gap: 4px; color: var(--hylos-muted); font-size: .9rem; margin-bottom: 12px; }
.hylos-pp__filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.hylos-pp__filters .hylos-chip { background: #fff; cursor: pointer; font: inherit; font-size: .85rem; }
.hylos-pp__filters .hylos-chip.is-active { background: var(--hylos-primary); border-color: var(--hylos-primary); color: var(--hylos-primary-ink); }
.hylos-pp__level { border: 1px solid var(--hylos-line); border-radius: 999px; padding: 5px 10px; font-size: .85rem; background: #fff; }
.hylos-pp__pyq { font-size: .85rem; display: inline-flex; gap: 4px; align-items: center; }
.hylos-pp__strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; }
.hylos-pp__dot { flex: none; min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--hylos-line); background: #fff; font-weight: 600; font-size: .8rem; cursor: pointer; }
.hylos-pp__dot.is-ok { background: #dcfce7; border-color: #86efac; color: #166534; }
.hylos-pp__dot.is-bad { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.hylos-pp__dot.is-current { outline: 2px solid var(--hylos-primary); outline-offset: 1px; }
.hylos-pp__card { background: #fff; border: 1px solid var(--hylos-line); border-radius: var(--hylos-radius); padding: 16px; }
.hylos-pp__card header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hylos-pp__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hylos-pp__tags span { background: var(--hylos-soft); border-radius: 6px; padding: 1px 8px; font-size: .78rem; color: var(--hylos-muted); }
.hylos-pp__q { font-size: 1.05rem; margin-bottom: 12px; overflow-x: auto; }
.hylos-pp__q img, .hylos-pp__opt img, .hylos-pp__solution img { max-width: 100%; height: auto; }
.hylos-pp__opts { display: grid; gap: 8px; }
.hylos-pp__opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; background: #fff; border: 2px solid var(--hylos-line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; min-height: 48px; }
.hylos-pp__opt.is-picked { border-color: var(--hylos-primary); background: #eff6ff; }
.hylos-pp__opt.is-key { border-color: var(--hylos-success); background: #f0fdf4; }
.hylos-pp__opt.is-wrong { border-color: #ef4444; background: #fef2f2; }
.hylos-pp__opt[disabled] { cursor: default; }
.hylos-pp__letter { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #94a3b8; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.hylos-pp__opt.is-picked .hylos-pp__letter { background: var(--hylos-primary); border-color: var(--hylos-primary); color: #fff; }
.hylos-pp__opt.is-key .hylos-pp__letter { background: var(--hylos-success); border-color: var(--hylos-success); color: #fff; }
.hylos-pp__opt.is-wrong .hylos-pp__letter { background: #ef4444; border-color: #ef4444; color: #fff; }
.hylos-pp__num { display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
.hylos-pp__num input { font-size: 1.2rem; padding: 10px 12px; border: 2px solid var(--hylos-line); border-radius: 10px; }
.hylos-pp__result { margin-top: 12px; padding: 10px 12px; border-radius: 8px; }
.hylos-pp__result.is-ok { background: #dcfce7; color: #166534; }
.hylos-pp__result.is-bad { background: #fee2e2; color: #991b1b; }
.hylos-pp__solution { margin-top: 10px; background: var(--hylos-soft); border-radius: 8px; padding: 10px 12px; overflow-x: auto; }
.hylos-pp__msg { color: #b45309; margin: 10px 0 0; }
.hylos-pp__actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hylos-pp__actions .hylos-btn { flex: 1; min-width: 100px; }
.hylos-pp__actions .hylos-btn[disabled] { opacity: .4; cursor: default; }
.hylos-toolbar__text { flex: 1 1 260px; margin: 0; }

/* =========================================================================
   Accounts: sign in, sign up, forgot password, student dashboard
   ========================================================================= */
.hylos-btn--sm { padding: 8px 14px; font-size: .92rem; }
.hylos-btn--lg { padding: 14px 22px; font-size: 1.05rem; }
.hylos-alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-size: .97rem; line-height: 1.5; }
.hylos-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.hylos-alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.hylos-form { display: grid; gap: 14px; }
.hylos-form--wide { max-width: 760px; }
.hylos-form__grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .hylos-form__grid { grid-template-columns: 1fr 1fr; } }
.hylos-field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.hylos-field > label, .hylos-field legend { font-weight: 600; color: var(--hylos-ink); font-size: .95rem; padding: 0; }
.hylos-field input[type="text"], .hylos-field input[type="email"], .hylos-field input[type="tel"], .hylos-field input[type="password"], .hylos-field select {
	width: 100%; min-height: 48px; font: inherit; font-size: 16px; color: var(--hylos-ink); background: #fff;
	border: 1.5px solid #d6d3e0; border-radius: 10px; padding: 10px 14px; box-sizing: border-box;
}
.hylos-field input:focus, .hylos-field select:focus { outline: none; border-color: var(--hylos-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hylos-primary) 18%, transparent); }
.hylos-field.has-error input, .hylos-field.has-error select { border-color: #dc2626; }
.hylos-field__error { color: #b91c1c; font-size: .88rem; margin: 0; }
.hylos-field__hint { color: var(--hylos-muted); font-size: .86rem; margin: 0; }
.hylos-pass { position: relative; }
.hylos-pass input { padding-right: 78px !important; }
.hylos-pass__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--hylos-soft); color: var(--hylos-primary); font: inherit; font-size: .85rem; font-weight: 700; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.hylos-form__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: .95rem; }
.hylos-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.hylos-check input { width: 18px; height: 18px; accent-color: var(--hylos-primary); }
.hylos-medium { display: flex; flex-wrap: wrap; gap: 10px; }
.hylos-medium legend { width: 100%; margin-bottom: 6px; }
.hylos-choice { position: relative; cursor: pointer; }
.hylos-choice input { position: absolute; opacity: 0; pointer-events: none; }
.hylos-choice span { display: inline-block; min-width: 110px; text-align: center; padding: 10px 16px; border: 1.5px solid #d6d3e0; border-radius: 10px; font-weight: 600; }
.hylos-choice input:checked + span { border-color: var(--hylos-primary); background: var(--hylos-soft); color: var(--hylos-primary); }
.hylos-choice input:focus-visible + span { outline: 3px solid var(--hylos-primary); outline-offset: 2px; }
.hylos-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.hylos-auth { display: flex; justify-content: center; padding: 32px 0 56px; }
.hylos-auth__card { width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--hylos-line); border-radius: 20px; padding: 28px 22px; box-shadow: 0 12px 40px rgba(29,22,64,.08); }
@media (min-width: 640px) { .hylos-auth__card { padding: 36px 36px 30px; } }
.hylos-auth__title { font-size: 1.8rem; margin: 0 0 6px; color: var(--hylos-ink); }
.hylos-auth__intro { color: var(--hylos-muted); margin: 0 0 20px; }
.hylos-auth__small { font-size: .85rem; color: var(--hylos-muted); margin: 0; }
.hylos-auth__foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hylos-line); text-align: center; color: var(--hylos-muted); }
.hylos-auth__foot a, .hylos-form__row a { font-weight: 700; color: var(--hylos-primary); }

.hylos-dash { padding-bottom: 48px; }
.hylos-dash__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hylos-dash__avatar { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--hylos-primary); color: #fff; font-size: 1.6rem; font-weight: 800; flex: 0 0 auto; }
.hylos-dash__hello { margin: 0; color: var(--hylos-muted); font-size: .95rem; }
.hylos-dash__name { margin: 0; font-size: 1.6rem; line-height: 1.2; color: var(--hylos-ink); }
.hylos-dash__head .hylos-muted { margin: 2px 0 0; }
.hylos-dash__logout { margin-left: auto; padding: 8px 14px !important; font-size: .9rem !important; }
.hylos-dash__layout { display: grid; gap: 20px; }
.hylos-dash__nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -2px; }
.hylos-dash__nav::-webkit-scrollbar { display: none; }
.hylos-dash__nav a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; background: var(--hylos-soft); color: var(--hylos-ink); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.hylos-dash__nav a.is-active { background: var(--hylos-primary); color: #fff; }
@media (min-width: 900px) {
	.hylos-dash__layout { grid-template-columns: 220px 1fr; align-items: start; }
	.hylos-dash__nav { flex-direction: column; position: sticky; top: 100px; background: #fff; border: 1px solid var(--hylos-line); border-radius: 16px; padding: 8px; overflow: visible; margin: 0; }
	.hylos-dash__nav a { background: transparent; border-radius: 10px; padding: 11px 14px; }
	.hylos-dash__nav a:hover { background: var(--hylos-soft); }
	.hylos-dash__nav a.is-active { background: var(--hylos-primary); color: #fff; }
}
.hylos-dash__panel { min-width: 0; }
.hylos-dash__h2 { font-size: 1.3rem; margin: 0 0 14px; color: var(--hylos-ink); }
.hylos-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }
@media (min-width: 640px) { .hylos-stats { grid-template-columns: repeat(3, 1fr); } }
.hylos-stat { background: #fff; border: 1px solid var(--hylos-line); border-radius: 14px; padding: 14px 16px; }
.hylos-stat strong { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--hylos-primary); }
.hylos-stat span { color: var(--hylos-muted); font-size: .9rem; }
.hylos-dash__cols { display: grid; gap: 26px; margin-bottom: 24px; }
@media (min-width: 1100px) { .hylos-dash__cols { grid-template-columns: 1fr 1fr; } }
.hylos-dash__empty { background: var(--hylos-soft); border: 1px dashed color-mix(in srgb, var(--hylos-primary) 35%, #fff); border-radius: 14px; padding: 20px; text-align: center; }
.hylos-dash__empty p { margin: 0 0 12px; color: var(--hylos-muted); }
.hylos-dash__courses { display: grid; gap: 12px; }
.hylos-dcourse { display: grid; grid-template-columns: 84px 1fr; gap: 14px; background: #fff; border: 1px solid var(--hylos-line); border-radius: 14px; padding: 12px; align-items: center; }
.hylos-dcourse.is-expired { opacity: .65; }
.hylos-dcourse__thumb { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--hylos-soft); color: var(--hylos-primary); font-size: 1.8rem; font-weight: 800; text-decoration: none; }
.hylos-dcourse__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hylos-dcourse__body h3 { font-size: 1.05rem; margin: 0; }
.hylos-dcourse__body h3 a { color: var(--hylos-ink); text-decoration: none; }
.hylos-dcourse__body .hylos-muted { font-size: .88rem; margin: 0 0 8px; }
.hylos-attempts { display: grid; gap: 10px; margin-bottom: 12px; }
.hylos-attempt { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--hylos-line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--hylos-ink); transition: border-color .15s, box-shadow .15s; }
.hylos-attempt:hover { border-color: var(--hylos-primary); box-shadow: 0 6px 18px rgba(29,22,64,.08); }
.hylos-attempt__score { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font-weight: 800; flex: 0 0 auto; background: var(--hylos-soft); color: var(--hylos-primary); }
.hylos-attempt__score.is-good { background: #dcfce7; color: #166534; }
.hylos-attempt__score.is-mid { background: #fef3c7; color: #92400e; }
.hylos-attempt__score.is-low { background: #fee2e2; color: #991b1b; }
.hylos-attempt__body { display: grid; gap: 2px; min-width: 0; }
.hylos-attempt__body .hylos-muted { font-size: .86rem; }
.hylos-attempt__go { margin-left: auto; color: var(--hylos-primary); font-size: 1.2rem; }
.hylos-quick { display: grid; gap: 10px; }
@media (min-width: 640px) { .hylos-quick { grid-template-columns: repeat(3, 1fr); } }
.hylos-quick__item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--hylos-soft); color: var(--hylos-ink); font-weight: 700; text-decoration: none; }
.hylos-quick__item:hover { background: var(--hylos-primary); color: #fff; }
.hylos-psubject { background: #fff; border: 1px solid var(--hylos-line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.hylos-psubject__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.hylos-psubject__head h3 { margin: 0; font-size: 1.15rem; }
.hylos-pchapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hylos-pchapters a { display: grid; grid-template-columns: minmax(0, 1fr) 90px 70px; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 8px; color: var(--hylos-ink); text-decoration: none; font-size: .95rem; }
.hylos-pchapters a:hover { background: var(--hylos-soft); }
.hylos-pchapters__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hylos-pchapters__bar { height: 8px; background: var(--hylos-line); border-radius: 999px; overflow: hidden; }
.hylos-pchapters__bar span { display: block; height: 100%; border-radius: 999px; }
.hylos-pchapters__bar .is-good, .hylos-progress .is-good { background: #16a34a; }
.hylos-pchapters__bar .is-mid { background: #f59e0b; }
.hylos-pchapters__bar .is-low { background: #ef4444; min-width: 6px; }
.hylos-pchapters__num { text-align: right; color: var(--hylos-muted); font-size: .86rem; }

.hylos-wrap button.hylos-btn, .hylos-wrap .hylos-form button { font-family: inherit; }

/* ---------- Buying a course ---------- */
.hylos-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.hylos-buy__price del { color: var(--hylos-muted); font-size: .95rem; font-weight: 400; }
.hylos-buy__off { background: #dcfce7; color: #166534; border-radius: 999px; padding: 2px 8px; font-size: .78rem; font-weight: 700; }
.hylos-buy__validity { margin: 0 0 10px; font-size: .9rem; }
.hylos-buy__new { margin: 8px 0 0; font-size: .9rem; text-align: center; }
.hylos-coupon { margin: 4px 0 10px; }
.hylos-coupon summary { cursor: pointer; color: var(--hylos-primary); font-weight: 600; font-size: .92rem; }
.hylos-coupon__row { display: flex; gap: 8px; margin-top: 8px; }
.hylos-coupon__row input { flex: 1; min-width: 0; min-height: 42px; font: inherit; font-size: 16px; text-transform: uppercase; border: 1.5px solid #d6d3e0; border-radius: 10px; padding: 8px 12px; }
.hylos-coupon__row .hylos-btn { padding: 8px 14px; }
.hylos-coupon__msg { margin: 6px 0 0; font-size: .88rem; }
.hylos-coupon__msg.is-ok { color: #166534; }
.hylos-coupon__msg.is-error, .hylos-buy__msg.is-error { color: #b91c1c; }
.hylos-buy__msg { margin: 6px 0 0; font-size: .9rem; min-height: 0; }
.hylos-buy__msg:empty, .hylos-coupon__msg:empty { display: none; }
.hylos-buy__trust { margin: 8px 0 0; font-size: .8rem; color: var(--hylos-muted); text-align: center; }
.hylos-buy__note { font-size: .82rem; margin: 6px 0 0; }
.hylos-buy__btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Receipt ---------- */
.hylos-receipt { background: #fff; border: 1px solid var(--hylos-line); border-radius: 14px; padding: 22px; max-width: 640px; }
.hylos-receipt__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--hylos-line); padding-bottom: 14px; margin-bottom: 14px; }
.hylos-receipt__brand { font-size: 1.3rem; color: var(--hylos-primary); }
.hylos-receipt__meta { text-align: right; }
.hylos-receipt__table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; }
.hylos-receipt__table th, .hylos-receipt__table td { padding: 10px 0; border-bottom: 1px solid var(--hylos-line); text-align: left; font-weight: 400; }
.hylos-receipt__table td { text-align: right; }
.hylos-receipt__table .is-total th, .hylos-receipt__table .is-total td { font-weight: 800; font-size: 1.1rem; border-bottom: 0; }
@media print {
	.hylos-noprint, .hylos-dash__nav, .hylos-dash__head, .hy-header, .hy-footer, .hy-tabbar, .hy-whatsapp { display: none !important; }
	.hylos-dash__layout { display: block; }
	.hylos-receipt { border: 0; max-width: none; }
}

/* ---------- Teacher partners ---------- */
.hylos-auth__card--wide { max-width: 760px; }
.hylos-teach-intro { margin-bottom: 18px; }
.hylos-teach-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.hylos-teach-points li { position: relative; padding-left: 28px; }
.hylos-teach-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: #166534; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.hylos-teach-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hylos-form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--hylos-ink); border: 1.5px solid #d6d3e0; border-radius: 10px; padding: 10px 14px; box-sizing: border-box; }
.hylos-form textarea:focus { outline: none; border-color: var(--hylos-primary); }
.hylos-form input[type="url"], .hylos-form input[type="file"] { width: 100%; font: inherit; }
.hylos-form input[type="url"] { min-height: 48px; font-size: 16px; border: 1.5px solid #d6d3e0; border-radius: 10px; padding: 10px 14px; box-sizing: border-box; }
.hylos-tgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 24px; }
.hylos-tcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; background: #fff; border: 1px solid var(--hylos-line); border-radius: 16px; padding: 20px 14px; text-decoration: none; color: var(--hylos-ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.hylos-tcard:hover { border-color: var(--hylos-primary); box-shadow: 0 8px 22px rgba(29,22,64,.08); transform: translateY(-2px); }
.hylos-tcard img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--hylos-soft); }
.hylos-tcard__headline { font-size: .9rem; color: var(--hylos-muted); }
.hylos-tprofile { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; }
.hylos-tprofile img { width: 140px; height: 140px; border-radius: 24px; object-fit: cover; background: var(--hylos-soft); flex: 0 0 auto; }
.hylos-tprofile--small img { width: 72px; height: 72px; border-radius: 50%; }
.hylos-tprofile--small p { margin: 2px 0 0; }
.hylos-tprofile__headline { font-weight: 600; color: var(--hylos-primary); margin: 0 0 4px; }
@media (max-width: 560px) { .hylos-tprofile:not(.hylos-tprofile--small) { flex-direction: column; align-items: flex-start; } }
.hylos-teach-banner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; background: var(--hylos-soft); border-radius: 16px; padding: 18px 20px; }
.hylos-dash__toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 10px; }
.hylos-dash__toolbar .hylos-dash__h3 { margin: 0; }
.hylos-dash__h3 { font-size: 1.1rem; margin: 22px 0 10px; color: var(--hylos-ink); }
.hylos-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--hylos-soft); color: var(--hylos-muted); }
.hylos-pill--publish { background: #dcfce7; color: #166534; }
.hylos-pill--pending { background: #fef3c7; color: #92400e; }

/* ---------- Doubts (Q&A) ---------- */
.hylos-doubts { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--hylos-line); }
.hylos-doubts__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.hylos-doubts__head .hylos-h2 { margin: 0; }
.hylos-doubt-ask, .hylos-doubt-reply { display: grid; gap: 10px; margin: 0 0 18px; }
.hylos-doubt-ask textarea, .hylos-doubt-reply textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--hylos-line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; background: #fff; color: var(--hylos-ink); }
.hylos-doubt-ask textarea:focus, .hylos-doubt-reply textarea:focus, .hylos-doubt-ask select:focus { outline: none; border-color: var(--hylos-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hylos-primary) 18%, transparent); }
.hylos-doubt-ask select { border: 1.5px solid var(--hylos-line); border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; }
.hylos-doubt-ask__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.hylos-doubt-attach { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--hylos-muted); cursor: pointer; max-width: 100%; }
.hylos-doubt-attach input[type="file"] { font-size: .85rem; max-width: 220px; }
.hylos-check { display: inline-flex; align-items: center; gap: 6px; font-size: .92rem; }
.hylos-doubt-list { display: grid; gap: 10px; }
.hylos-doubt { border: 1px solid var(--hylos-line); border-radius: 14px; background: #fff; overflow: hidden; }
.hylos-doubt.is-unread { border-color: var(--hylos-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hylos-primary) 14%, transparent); }
.hylos-doubt > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; gap: 6px; }
.hylos-doubt > summary::-webkit-details-marker { display: none; }
.hylos-doubt > summary:hover { background: var(--hylos-soft); }
.hylos-doubt__title { font-weight: 700; color: var(--hylos-ink); line-height: 1.4; overflow-wrap: anywhere; }
.hylos-doubt__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--hylos-muted); }
.hylos-doubt__where { font-size: .84rem; color: var(--hylos-primary); font-weight: 600; }
.hylos-doubt__body { padding: 4px 16px 16px; border-top: 1px solid var(--hylos-line); }
.hylos-doubt__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hylos-doubt__actions form { margin: 0; }
.hylos-msg { margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--hylos-soft); max-width: 92%; }
.hylos-msg--staff { background: color-mix(in srgb, var(--hylos-primary) 9%, #fff); border-left: 3px solid var(--hylos-primary); }
.hylos-msg--mine:not(.hylos-msg--staff) { margin-left: auto; background: #f1f5f9; }
.hylos-msg__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .86rem; margin-bottom: 4px; }
.hylos-msg__head time { color: var(--hylos-muted); }
.hylos-msg__badge { background: var(--hylos-primary); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: .74rem; font-weight: 700; }
.hylos-msg__del { margin: 0 0 0 auto; }
.hylos-msg__text { line-height: 1.6; overflow-wrap: anywhere; }
.hylos-msg__text p { margin: 0 0 8px; }
.hylos-msg__text p:last-child { margin-bottom: 0; }
.hylos-msg__img img { display: block; max-width: 100%; max-height: 360px; border-radius: 10px; margin-top: 8px; border: 1px solid var(--hylos-line); }
.hylos-linkbtn { background: none; border: 0; padding: 0; color: var(--hylos-primary); font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; }
.hylos-linkbtn--danger { color: #b91c1c; }
.hylos-pill--dopen { background: #fef3c7; color: #92400e; }
.hylos-pill--danswered { background: color-mix(in srgb, var(--hylos-primary) 14%, #fff); color: var(--hylos-primary); }
.hylos-pill--dresolved { background: #dcfce7; color: #166534; }
.hylos-pill--new { background: var(--hylos-primary); color: #fff; }
.hylos-doubt-new { margin-bottom: 18px; }
.hylos-doubt-new > summary { list-style: none; display: inline-flex; cursor: pointer; margin-bottom: 10px; }
.hylos-doubt-new > summary::-webkit-details-marker { display: none; }
.hylos-doubts .screen-reader-text, .hylos-dash .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
@media (max-width: 600px) {
	.hylos-msg { max-width: 100%; }
	.hylos-doubt-ask__foot .hylos-btn { width: 100%; }
}

/* ---------- Announcements ---------- */
.hylos-ann-list { display: grid; gap: 12px; }
.hylos-ann { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; padding: 16px 18px; border: 1px solid var(--hylos-line); border-radius: 16px; background: #fff; }
.hylos-ann.is-new { border-color: var(--hylos-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hylos-primary) 14%, transparent); }
.hylos-ann__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: color-mix(in srgb, var(--hylos-primary) 10%, #fff); }
.hylos-ann__title { margin: 0 0 2px; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.hylos-ann__meta { margin: 0 0 8px; font-size: .84rem; color: var(--hylos-muted); }
.hylos-ann__body { line-height: 1.6; overflow-wrap: anywhere; }
.hylos-ann__body p { margin: 0 0 8px; }
.hylos-ann__foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.hylos-ann__foot form { margin: 0 0 0 auto; }
.hylos-ann-compose { margin-bottom: 20px; }
.hylos-ann-compose > summary { list-style: none; display: inline-flex; cursor: pointer; margin-bottom: 12px; }
.hylos-ann-compose > summary::-webkit-details-marker { display: none; }
.hylos-ann-form { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--hylos-line); border-radius: 16px; background: var(--hylos-soft); }
.hylos-ann-form input[type="text"], .hylos-ann-form textarea, .hylos-ann-form select { width: 100%; box-sizing: border-box; border: 1.5px solid var(--hylos-line); border-radius: 12px; padding: 10px 12px; font: inherit; background: #fff; }
.wp-admin .hylos-ann-form { background: none; border: 0; padding: 0; }
.hylos-ann-banner { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 18px; border-radius: 14px; background: color-mix(in srgb, var(--hylos-primary) 10%, #fff); border: 1px solid color-mix(in srgb, var(--hylos-primary) 30%, #fff); color: var(--hylos-ink); text-decoration: none; }
.hylos-ann-banner > span:nth-child(2) { flex: 1; }
.hylos-ann-banner:hover { background: color-mix(in srgb, var(--hylos-primary) 16%, #fff); }
@media (max-width: 600px) { .hylos-ann { grid-template-columns: 1fr; } .hylos-ann__icon { display: none; } }

/* ---------- Live batch registration ---------- */
.hylos-live-wrap { padding-top: 8px; }
.hylos-live { display: grid; gap: 24px; align-items: start; margin: 8px 0 32px; }
@media (min-width: 960px) { .hylos-live { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; } .hylos-live__intro { position: sticky; top: 100px; } }
.hylos-live__intro { padding: 26px; border-radius: 22px; color: #fff; background: radial-gradient(120% 120% at 0% 0%, #9b6bff 0%, #7f43f9 45%, #5b21b6 100%); box-shadow: 0 18px 40px -18px rgba(91,33,182,.6); }
.hylos-live__intro .hylos-live__title { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; color: #fff !important; }
.hylos-live__intro p { margin: 0 0 16px; color: rgba(255,255,255,.92); line-height: 1.6; }
.hylos-live__points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.hylos-live__points li { position: relative; padding-left: 28px; }
.hylos-live__points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.hylos-live__batches { display: grid; gap: 8px; }
.hylos-live__batch { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
.hylos-live__batch span { font-size: .9rem; color: rgba(255,255,255,.85); }
.hylos-live__card { padding: 24px; border: 1px solid var(--hylos-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px -18px rgba(30,20,60,.25); }
.hylos-live__formtitle { margin: 0; font-size: 1.25rem; }
.hylos-live textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--hylos-line); border-radius: 12px; padding: 12px 14px; font: inherit; resize: vertical; }
.hylos-live textarea:focus { outline: none; border-color: var(--hylos-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hylos-primary) 18%, transparent); }
.hylos-chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.hylos-chips legend { margin-bottom: 6px; }
.hylos-req { color: #dc2626; }
.hylos-opt { color: var(--hylos-muted); font-weight: 400; font-size: .85rem; }
.hylos-live__thanks { text-align: center; }
.hylos-live__tick { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: #fff; background: #16a34a; }
.hylos-live__thanks h3 { margin: 0 0 8px; }
.hylos-live__next { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 600px) { .hylos-live__card, .hylos-live__intro { padding: 18px; border-radius: 18px; } }

/* ---------- Reviews ---------- */
.hylos-stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 2px; font-size: 1.05rem; vertical-align: middle; }
.hylos-stars--sm { font-size: .9rem; letter-spacing: 1px; }
.hylos-stars--lg { font-size: 1.5rem; }
.hylos-stars__bg { color: #e5e1f0; }
.hylos-stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #f5a524; }
.hylos-rating-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--hylos-ink); }
.hylos-rating-badge > span:last-child { color: var(--hylos-muted); }
.hylos-card .hylos-rating-badge { margin: 2px 0 6px; }
.hylos-hero__rating { display: inline-flex; text-decoration: none; margin: -4px 0 10px; }
.hylos-reviews__top { display: grid; gap: 20px; padding: 20px; border: 1px solid var(--hylos-line); border-radius: 18px; background: #fff; margin-bottom: 18px; }
@media (min-width: 860px) { .hylos-reviews__top { grid-template-columns: 170px minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; } }
.hylos-reviews__score { text-align: center; }
.hylos-reviews__avg { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--hylos-ink); margin-bottom: 6px; }
.hylos-reviews__score p { margin: 6px 0 0; }
.hylos-reviews__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hylos-reviews__bars li { display: grid; grid-template-columns: 34px 1fr 40px; gap: 8px; align-items: center; font-size: .9rem; }
.hylos-reviews__bar { height: 8px; border-radius: 999px; background: #eeeaf7; overflow: hidden; }
.hylos-reviews__bar span { display: block; height: 100%; background: #f5a524; border-radius: 999px; }
.hylos-creview-form { display: grid; gap: 12px; }
.hylos-creview-form textarea, .hylos-creview__replyform textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--hylos-line); border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; }
.hylos-star-input { border: 0; margin: 0; padding: 0; }
.hylos-star-input legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.hylos-star-input__row { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.hylos-star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hylos-star-input label { cursor: pointer; font-size: 2.1rem; line-height: 1; color: #e5e1f0; transition: transform .1s, color .1s; }
.hylos-star-input label:hover, .hylos-star-input label:hover ~ label, .hylos-star-input input:checked ~ label { color: #f5a524; }
.hylos-star-input label:hover { transform: scale(1.12); }
.hylos-star-input input:focus-visible + label { outline: 3px solid var(--hylos-primary); outline-offset: 2px; border-radius: 6px; }
.hylos-creview-list { display: grid; gap: 12px; }
.hylos-creview { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid var(--hylos-line); border-radius: 14px; background: #fff; }
.hylos-creview.is-pending { border-style: dashed; }
.hylos-creview.is-hidden { opacity: .6; }
.hylos-creview__avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--hylos-primary); background: color-mix(in srgb, var(--hylos-primary) 12%, #fff); }
.hylos-creview__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hylos-creview__head time { color: var(--hylos-muted); font-size: .85rem; }
.hylos-creview__text { margin-top: 6px; line-height: 1.6; overflow-wrap: anywhere; }
.hylos-creview__text p { margin: 0 0 6px; }
.hylos-creview__reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--hylos-primary); background: var(--hylos-soft); border-radius: 0 10px 10px 0; font-size: .95rem; }
.hylos-creview__reply p { margin: 4px 0 0; }
.hylos-creview__tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.hylos-creview__tools form { margin: 0; }
.hylos-creview__replyform form { display: grid; gap: 8px; margin-top: 8px; }
.hylos-creview-mine .hylos-creview { border-color: var(--hylos-primary); }
.hylos-creview-edit { margin-top: 10px; }
.hylos-creview-edit > summary { list-style: none; cursor: pointer; display: inline-block; margin-bottom: 8px; }
.hylos-creview-edit > summary::-webkit-details-marker, .hylos-creview__replyform > summary::-webkit-details-marker { display: none; }
.hylos-creview__replyform > summary { list-style: none; cursor: pointer; }
