.ntd-box,
.ntd-results,
.ntd-single-card {
    max-width: 960px;
    margin: 30px auto;
    padding: 28px;
    border-radius: 20px;
    background: #f5f7fb;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    font-family: Arial, sans-serif;
}

.ntd-box h2,
.ntd-results h3 {
    margin-top: 0;
    text-align: center;
}

.ntd-box input,
.ntd-box select,
.ntd-box button,
.ntd-catalog-form input,
.ntd-catalog-form select,
.ntd-catalog-form button {
    width: 100%;
    margin: 9px 0;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 16px;
    box-sizing: border-box;
    background: #fff;
}

.ntd-button,
.ntd-external-button {
    border: none !important;
    background: var(--ntd-primary, #1d4ed8) !important;
    color: white !important;
    font-weight: 600;
    cursor: pointer;
}

.ntd-external-button {
    background: var(--ntd-external, #0f766e) !important;
}

.ntd-reset-button {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border-radius: 12px;
    background: #64748b;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    box-sizing: border-box;
}

.ntd-reset-button:hover {
    background: #475569;
    color: #ffffff;
}

.ntd-note,
.ntd-warning {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.ntd-card {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
}

.ntd-card h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.ntd-card a,
.ntd-box a {
    color: var(--ntd-primary, #1d4ed8);
    text-decoration: none;
}

.ntd-card a:hover,
.ntd-box a:hover {
    text-decoration: underline;
}

.ntd-card-meta {
    color: #334155;
    line-height: 1.55;
}

.ntd-card-excerpt {
    color: #1f2937;
    line-height: 1.55;
}

.ntd-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.ntd-pagination a,
.ntd-pagination span {
    padding: 9px 13px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    text-decoration: none;
}

.ntd-pagination .current {
    background: var(--ntd-primary, #1d4ed8);
    color: #ffffff;
    border-color: var(--ntd-primary, #1d4ed8);
}

.ntd-single-card h1 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 30px;
    line-height: 1.25;
}

.ntd-single-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.ntd-single-grid div {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 14px;
    line-height: 1.4;
}

.ntd-single-content {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.65;
    color: #1f2937;
}

.ntd-single-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.ntd-single-links a {
    display: inline-block;
    padding: 13px 18px;
    border-radius: 12px;
    background: var(--ntd-primary, #1d4ed8);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.ntd-status-badge {
    margin: 0 0 22px 0;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 17px;
    text-align: center;
    border: 1px solid #dbe3ef;
}

.ntd-status-label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    opacity: 0.8;
}

.ntd-status-active {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}

.ntd-status-cancelled {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.ntd-status-replaced {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.ntd-status-unknown {
    background: #f8fafc;
    color: #334155;
    border-color: #cbd5e1;
}

.ntd-expert-box {
    margin: 0 0 22px 0;
    padding: 16px 18px;
    border-radius: 14px;
    line-height: 1.5;
    text-align: center;
}

.ntd-expert-checked {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.ntd-expert-unchecked {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.ntd-expert-comment {
    margin-top: 8px;
    font-size: 14px;
}

@media (max-width: 700px) {
    .ntd-box,
    .ntd-results,
    .ntd-single-card {
        padding: 20px;
        border-radius: 16px;
    }

    .ntd-single-grid {
        grid-template-columns: 1fr;
    }

    .ntd-single-card h1 {
        font-size: 24px;
    }
}
