body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
}

.tdm-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #cc0000;
    padding: 8px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tdm-top-bar-button {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.tdm-top-bar-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 900px;
    margin: 30px auto;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

h1 {
    color: #111;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 28px;
}

h2 {
    margin-top: 30px;
}

p {
    line-height: 1.6;
    color: #555;
    font-size: 16px;
}

.url-form {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}

.url-form input[type="url"] {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.url-form button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.message.error {
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
    background-color: #f8d7da;
    color: #721c24;
}

.tool-tabs {
    display: flex;
    margin-bottom: -1px;
}

.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px 8px 0 0;
    margin-right: 5px;
    font-weight: 500;
}

.tab-link.active {
    background-color: #fff;
    border-bottom-color: #fff;
    border-top-width: 2px;
    border-top-color: #0073aa;
}

.tab-content {
    display: none;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 0 8px 8px 8px;
}

.tab-content.active {
    display: block;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.score-card {
    text-align: center;
}

.score-card h3 {
    font-size: 16px;
    margin-top: 10px;
    color: #555;
}

@property --p {
    syntax: '<integer>';
    inherits: true;
    initial-value: 0;
}

.score-circle {
    --b: 12px;
    --w: 120px;
    width: var(--w);
    aspect-ratio: 1;
    position: relative;
    display: inline-grid;
    place-content: center;
    font-size: 2.5em;
    font-weight: bold;
    animation: p 1s 0.5s both;
}

.score-circle:before,
.score-circle:after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.score-circle:before {
    inset: 0;
    background: #e9ecef;
}

.score-circle:after {
    inset: 0;
    background: radial-gradient(farthest-side, var(--c) 98%, #0000) top/var(--b) var(--b) no-repeat,
        conic-gradient(var(--c) calc(var(--p)*1%), #0000 0);
    -webkit-mask: radial-gradient(farthest-side, #0000 calc(99% - var(--b)), #000 calc(100% - var(--b)));
    mask: radial-gradient(farthest-side, #0000 calc(99% - var(--b)), #000 calc(100% - var(--b)));
}

@keyframes p {
    from {
        --p: 0
    }
}