.hkp-app { --hkp-accent: #1d5fa8; --hkp-border: #d0d5dd; --hkp-muted: #667085; --hkp-bg: #fff; --hkp-soft: #f4f7fb; max-width: 1100px; margin: 0 auto; color: inherit; }
.hkp-app * { box-sizing: border-box; }
.hkp-step { border: 1px solid var(--hkp-border); border-radius: 10px; padding: 14px 16px 6px; margin: 0 0 16px; background: var(--hkp-bg); }
.hkp-step legend { font-weight: 700; padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.hkp-step legend span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hkp-accent); color: #fff; font-size: 13px; }
.hkp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 10px; }
.hkp-app label { display: block; font-size: 14px; font-weight: 600; }
.hkp-app input[type=text], .hkp-app input[type=search], .hkp-app input[type=date], .hkp-app input[type=number], .hkp-app select, .hkp-app textarea {
	display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--hkp-border); border-radius: 6px; font: inherit; font-weight: 400; background: #fff; color: #111; }
.hkp-app .hkp-check { display: flex; align-items: center; gap: 8px; align-self: end; padding-bottom: 8px; }
.hkp-app .hkp-check input { width: auto; margin: 0; }
.hkp-label { font-weight: 600; margin: 6px 0; }
.hkp-search { position: relative; margin-bottom: 10px; }
.hkp-results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 340px; overflow: auto; margin: 4px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--hkp-border); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); color: #111; }
.hkp-results li { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #eef0f3; }
.hkp-results li:hover, .hkp-results li:focus { background: var(--hkp-soft); outline: none; }
.hkp-results li small { display: block; color: var(--hkp-muted); }
.hkp-results li.hkp-nomod b { color: var(--hkp-muted); }
.hkp-results .hkp-empty { cursor: default; color: var(--hkp-muted); }
.hkp-course { padding: 10px 12px; background: var(--hkp-soft); border-radius: 6px; margin-bottom: 10px; color: #111; }
.hkp-modules { margin-bottom: 10px; }
.hkp-app .hkp-mod { display: flex; align-items: center; gap: 8px; font-weight: 400; padding: 5px 0; border-bottom: 1px dashed #e4e7ec; }
.hkp-app .hkp-mod input { width: auto; margin: 0; }
.hkp-app .hkp-mod span { flex: 1; }
.hkp-app .hkp-mod em { font-style: normal; color: var(--hkp-muted); white-space: nowrap; }
.hkp-modsum, .hkp-weekly { color: var(--hkp-muted); margin: 6px 0 10px; }
.hkp-warn { color: #b42318; }
.hkp-info { background: #fff8e6; border: 1px solid #f0d58c; color: #5c4508; border-radius: 6px; padding: 8px 12px; margin: 0 0 10px; font-size: 14px; }
.hkp-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.hkp-app .hkp-day { text-align: center; font-weight: 600; font-size: 13px; }
.hkp-app .hkp-day input { text-align: center; }
.hkp-docs { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.hkp-app .hkp-docs label { display: flex; align-items: center; gap: 6px; font-weight: 400; padding: 6px 10px; border: 1px solid var(--hkp-border); border-radius: 20px; cursor: pointer; }
.hkp-app .hkp-docs input { width: auto; margin: 0; }
.hkp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.hkp-btn { padding: 10px 18px; border-radius: 6px; border: 1px solid var(--hkp-accent); background: #fff; color: var(--hkp-accent); font-weight: 600; cursor: pointer; font-size: 15px; }
.hkp-btn.hkp-primary { background: var(--hkp-accent); color: #fff; }
.hkp-btn:disabled { opacity: .45; cursor: not-allowed; }
.hkp-error { color: #b42318; font-weight: 600; }
.hkp-output { border: 1px solid var(--hkp-border); border-radius: 10px; padding: 18px; background: #fff; overflow-x: auto; margin-top: 10px; }
.hkp-output .hkp-doc { min-width: 900px; }
.hkp-output .hkp-page { border-bottom: 2px dashed #ccc; padding-bottom: 16px; margin-bottom: 16px; }
@media (max-width: 640px) {
	.hkp-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hkp-step { padding: 12px 10px 4px; }
}
