body{
    font-family:Arial,sans-serif;
    background:#f4f6f8;
    margin:0;
    padding:24px;
    color:#111;
}

.wrap{
    max-width:1500px;
    margin:0 auto;
}

h2{
    margin:0 0 14px 0;
    font-size:22px;
}

.hint{
    color:#666;
    margin:0 0 18px 0;
    font-size:13px;
}

table{
    border-collapse:collapse;
    width:100%;
    background:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    border-radius:10px;
    overflow:hidden;
}

th,td{
    padding:10px 12px;
    border-bottom:1px solid #e9edf2;
    text-align:left;
    vertical-align:top;
    font-size:13px;
}

th{
    background:#2c3e50;
    color:#fff;
    text-transform:uppercase;
    font-size:11px;
    letter-spacing:.06em;
    white-space:nowrap;
}

tr:hover{
    background:#f6fafc;
}

.num{
    text-align:right;
    white-space:nowrap;
}

.center{
    text-align:center;
    white-space:nowrap;
}

.score-excellent{color:#1e8449;font-weight:700;}
.score-good{color:#2e86c1;font-weight:700;}
.score-medium{color:#d68910;}
.score-low{color:#c0392b;}

a{
    color:#2980b9;
    text-decoration:none;
}

a:hover{
    text-decoration:underline;
}

.na{
    color:#999;
}

.name{
    font-weight:600;
    line-height:1.25;
}

.tags{
    line-height:1.8;
    min-width:260px;
}

.tag{
    display:inline-block;
    padding:2px 8px;
    border:1px solid #dde4ec;
    border-radius:999px;
    background:#f7fafc;
    margin:0 6px 6px 0;
    font-size:12px;
    color:#334;
    white-space:nowrap;
}

.tag-more{
    background:#fff3cd;
    border-color:#ffe69c;
    color:#7a5a00;
}

th a{
    color:#fff;
    text-decoration:none;
}

th a:hover{
    text-decoration:underline;
}

@media (max-width:1100px){
    body{padding:14px;}
    th,td{padding:8px 9px;}
    .tags{min-width:200px;}
}

.desc-preview {
    color: #666;
    font-size: 12px;
    max-width: 420px;
    line-height: 1.4;
}

.desc-full {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    max-width: 520px;
    white-space: normal;
}

.toggle-desc-link {
    margin-left: 8px;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.bubble-wrap {
    position: relative;
    display: inline-block;
    cursor: help;
}

.bubble {
    display: none;
    position: absolute;
    z-index: 9999;
    right: 0;
    top: 24px;
    width: 420px;
    max-width: 70vw;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    padding: 12px;
    color: #222;
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
}

.bubble-wrap:hover .bubble {
    display: block;
}

.ai-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ai-popup-box {
    background: #fff;
    width: min(700px, 92vw);
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
    border: 1px solid #ddd;
}

.ai-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

.ai-popup-title {
    font-weight: bold;
    font-size: 18px;
    padding-right: 15px;
}

.ai-popup-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.ai-popup-body {
    padding: 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #222;
    white-space: pre-line;
}