:root { --ok:#16a34a; --maybe:#f59e0b; --no:#ef4444; --bg:#0f172a; --card:#111827; --grid:#0b1220; --fg:#e5e7eb; --line:#1f2937; }
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:system-ui,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--fg)}
.container{max-width:1280px;margin:20px auto;padding:16px}
.card{background:var(--card);border-radius:12px;padding:16px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
h1,h2{margin:0 0 12px}
a{color:#93c5fd;text-decoration:none}
label{display:block;margin:.4rem 0 .2rem}
input[type=text],input[type=datetime-local],input[type=email],input[type=password],textarea,select{width:100%;padding:10px;border-radius:8px;border:1px solid #293241;background:#0b1220;color:#fff}
textarea{min-height:90px}
.row{display:grid;gap:12px}
.row.cols-2{grid-template-columns:1fr 1fr}
.row.cols-3{grid-template-columns:repeat(3,1fr)}
.btn{display:inline-block;padding:10px 14px;border-radius:8px;border:1px solid #333;background:#1f2937;color:#fff;cursor:pointer;text-align:center}
.btn.primary{background:#2563eb}
.btn.light{background:#0b1220}
.btn.danger{background:#991b1b}
.badge{padding:4px 8px;border-radius:999px;font-size:.8rem;background:#111;border:1px solid #333}
.notice{padding:10px;border-left:4px solid #2563eb;background:#0b1220;margin:12px 0;border-radius:6px}
.notice.warn{border-left-color:var(--maybe)} .notice.success{border-left-color:var(--ok)} .notice.error{border-left-color:var(--no)}

.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px}
.matrix{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%}
.matrix th,.matrix td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:6px 8px;white-space:nowrap;background:var(--grid)}
.matrix th{position:sticky;top:0;background:#111827;z-index:2}
.matrix th:first-child,.matrix td:first-child{position:sticky;left:0;z-index:1;background:#0f172a}
.matrix th:first-child{z-index:3}
.matrix tr:first-child th{border-top:1px solid var(--line)}
.matrix th:first-child,.matrix td:first-child{border-left:1px solid var(--line)}
.matrix .op{min-width:140px;text-align:center}
.matrix .name{min-width:160px;font-weight:600}
.cell{display:flex;gap:6px;align-items:center;justify-content:center}
.cell input{display:none}
.cell label{display:inline-flex;align-items:center;justify-content:center;width:34px;height:28px;border-radius:6px;border:1px solid #333;cursor:pointer;user-select:none;font-weight:600}
.cell label:hover{filter:brightness(1.05)}
.cell .l-yes{background:rgba(22,163,74,.18)} .cell .l-maybe{background:rgba(245,158,11,.18)} .cell .l-no{background:rgba(239,68,68,.18)}
.cell input:checked + label{outline:2px solid #fff}
.sum-yes{background:rgba(22,163,74,.25)} .sum-maybe{background:rgba(245,158,11,.25)} .sum-no{background:rgba(239,68,68,.25)}
tfoot td{font-weight:700}

.legend{display:flex;gap:10px;flex-wrap:wrap;margin:.5rem 0}
.legend .i{display:inline-flex;align-items:center;gap:6px}
.legend .box{width:18px;height:14px;border-radius:4px;border:1px solid #333}
.legend .yes{background:rgba(22,163,74,.6)} .legend .maybe{background:rgba(245,158,11,.6)} .legend .no{background:rgba(239,68,68,.6)}

.eval{margin-top:16px}
.eval table{width:100%;border-collapse:collapse}
.eval th,.eval td{padding:8px;border-bottom:1px solid var(--line)}
.eval th{background:#111827;text-align:left}
.eval .score{font-weight:700}
.footer{opacity:.8;font-size:.9rem;margin-top:12px}