
.atdtp-wrap {
    max-width: 980px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;
}

.atdtp-wrap * {
    box-sizing: border-box;
}

.atdtp-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 34px rgba(17, 24, 39, 0.07);
}

.atdtp-head {
    text-align: center;
    margin-bottom: 24px;
}

.atdtp-label {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 12px;
}

.atdtp-head h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.35;
}

.atdtp-head p {
    line-height: 1.8;
    margin: 0;
    color: #4b5563;
}

.atdtp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.atdtp-grid label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.atdtp-grid label:first-child {
    grid-column: 1 / -1;
}

.atdtp-grid input,
.atdtp-grid select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 16px;
    background: #fff;
}

.atdtp-grid input:focus,
.atdtp-grid select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17,24,39,0.12);
}

.atdtp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.atdtp-actions button {
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.atdtp-actions button:hover {
    transform: translateY(-1px);
}

.atdtp-main-btn {
    border: none;
    background: #111827;
    color: #fff;
}

.atdtp-sub-btn,
.atdtp-copy-all {
    border: 1px solid #111827;
    background: #fff;
    color: #111827;
}

.atdtp-results {
    display: none;
    margin-top: 28px;
}

.atdtp-results.atdtp-show {
    display: block;
}

.atdtp-score-area {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.atdtp-score-main,
.atdtp-bars {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
}

.atdtp-score-main {
    text-align: center;
}

.atdtp-small {
    margin: 0 0 4px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.atdtp-score {
    margin: 0;
    font-size: 36px;
    font-weight: 900;
    color: #111827;
}

.atdtp-rank {
    margin: 6px 0 0;
    font-weight: 900;
    color: #374151;
}

.atdtp-bars {
    display: grid;
    gap: 12px;
}

.atdtp-bars div {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 12px;
}

.atdtp-bars span {
    font-size: 14px;
    font-weight: 700;
}

.atdtp-bars b {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #111827 var(--w, 0%), #e5e7eb var(--w, 0%));
}

.atdtp-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 22px;
    margin-top: 22px;
}

.atdtp-section h3 {
    font-size: 20px;
    margin: 0 0 14px;
    padding-left: 10px;
    border-left: 5px solid #111827;
}

.atdtp-advice {
    padding-left: 20px;
    line-height: 1.9;
}

.atdtp-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 13px 14px;
    margin-bottom: 10px;
}

.atdtp-tag {
    display: inline-block;
    min-width: 72px;
    text-align: center;
    background: #111827;
    color: #fff;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.atdtp-row p {
    margin: 0;
    line-height: 1.65;
    font-weight: 700;
}

.atdtp-copy {
    border: 1px solid #111827;
    color: #111827;
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.atdtp-copy:hover {
    background: #111827;
    color: #fff;
}

.atdtp-best .atdtp-row {
    background: #fff7ed;
    border-color: #fed7aa;
}

.atdtp-best .atdtp-tag {
    background: #9a3412;
}

@media (max-width: 720px) {
    .atdtp-card {
        padding: 20px;
    }

    .atdtp-head h2 {
        font-size: 24px;
    }

    .atdtp-grid {
        grid-template-columns: 1fr;
    }

    .atdtp-grid label:first-child {
        grid-column: auto;
    }

    .atdtp-score-area {
        grid-template-columns: 1fr;
    }

    .atdtp-bars div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .atdtp-row {
        grid-template-columns: 1fr;
    }

    .atdtp-tag {
        width: fit-content;
    }
}
