* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, Arial, sans-serif; background: #f6f4ef; color: #222; }
header { background: #2f6b4f; color: white; padding: 24px; text-align: center; }
header h1 { margin: 0 0 6px; }
header p { margin: 0; opacity: 0.9; }
form, #controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 16px; }
input, select, button { padding: 10px; font-size: 15px; border: 1px solid #ccc; border-radius: 8px; }
#search { width: 280px; }
button { background: #2f6b4f; color: white; border: none; cursor: pointer; }
button:hover { background: #24543e; }
select:disabled { opacity: 0.5; }
#message { text-align: center; font-weight: bold; }
#results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; padding: 16px 24px; }
.card { position: relative; background: white; border-radius: 12px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.card h3 { margin: 0 40px 4px 0; font-size: 17px; }
.sub { margin: 0 0 10px; color: #777; font-size: 13px; }
.card ul { list-style: none; padding: 0; margin: 0 0 10px; }
.card li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #eee; font-size: 14px; }
.bar { height: 8px; background: #eee; border-radius: 4px; margin-bottom: 10px; }
.bar span { display: block; height: 100%; background: #e8913a; border-radius: 4px; }
.tag { display: inline-block; background: #fde2e1; color: #a12622; padding: 3px 8px; border-radius: 12px; font-size: 12px; margin: 2px; }
.tag.ok { background: #e1f5e6; color: #22713b; }
.grade { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; color: white; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.grade-A { background: #038141; } .grade-B { background: #85bb2f; } .grade-C { background: #e6b400; }
.grade-D { background: #ee8100; } .grade-E { background: #e63e11; } .grade-none { background: #aaa; }
footer { text-align: center; padding: 20px; color: #666; font-size: 13px; }