.wt-tracker {
    margin-top: 30px;
    cursor: auto;
    user-select: text;
    -webkit-user-select: text;
}

.wt-tracker *,
.wt-tracker *::before,
.wt-tracker *::after {
    box-sizing: border-box;
}

.wt-tracker dl,
.wt-tracker dd,
.wt-tracker p {
    margin: 0;
}

.wt-top {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.wt-stats {
    display: grid;
    flex: 3 1 520px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 30px;
    padding: 25px 30px;
    border: 1px solid #352E4C;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 100% 100%, rgba(202, 12, 4, 0.35), transparent 55%),
        radial-gradient(ellipse at 90% 0%, rgba(150, 40, 200, 0.2), transparent 50%),
        #0C0913;
}

.wt-stats dt {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.wt-stats dd {
    margin-top: 8px;
    font-size: 16px;
}

.wt-card {
    display: flex;
    flex: 1 1 280px;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 30px;
    border: 1px solid #352E4C;
    border-radius: 20px;
    background: #0C0913;
}

.wt-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    line-height: 1.5;
}

.wt-open {
    border: 0;
    align-self: flex-start;
}

.wt-open[aria-expanded="true"] {
    background-color: #1d1830;
}

.wt-panel {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    transition:
        grid-template-rows 0.45s ease,
        margin-top 0.45s ease,
        opacity 0.35s ease,
        transform 0.45s ease,
        visibility 0s linear 0.45s;
}

.wt-panel.is-open {
    grid-template-rows: 1fr;
    margin-top: 20px;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
}

.wt-panel-inner {
    min-height: 0;
    overflow: hidden;
}

.wt-panel-body {
    position: relative;
    padding: 30px;
    border: 1px solid #352E4C;
    border-radius: 20px;
    background: #0C0913;
}

.wt-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #1d1830;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wt-close:hover {
    background: #CA0C04;
}

.wt-form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.wt-form[hidden],
.wt-success[hidden],
.wt-error[hidden] {
    display: none;
}

.wt-heading {
    grid-column: 1 / -1;
    margin: 0 40px 6px 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
}

.wt-time {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.wt-time legend {
    margin-bottom: 8px;
    padding: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

.wt-time label {
    position: relative;
    display: block;
}

.wt-time label span {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    pointer-events: none;
}

.wt-form .wt-time input[type="number"] {
    padding-right: 72px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.wt-form .wt-time input[type="number"]::-webkit-inner-spin-button,
.wt-form .wt-time input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.wt-form input[type="number"],
.wt-form select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #352E4C;
    border-radius: 10px;
    background-color: #0C0913;
    color: #fff;
    font: inherit;
    font-size: 16px;
    outline: 0;
}

.wt-form input[type="number"]:focus,
.wt-form select:focus {
    border-color: #CA0C04;
}

.wt-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.wt-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.wt-error {
    grid-column: 1 / -1;
    color: #ff6b6b;
    font-size: 15px;
}

.wt-submit {
    max-width: none;
    border: 0;
}

.wt-form .wt-submit {
    height: 48px;
}

.wt-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.wt-success {
    display: flex;
    align-items: center;
    min-height: 120px;
    padding-right: 40px;
}

.wt-success-text {
    font-size: 18px;
    line-height: 1.4;
}

@media only screen and (max-width: 900px) {
    .wt-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wt-time {
        grid-column: 1 / -1;
    }

    .wt-submit {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .wt-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 20px;
    }

    .wt-card,
    .wt-panel-body {
        padding: 20px;
    }
}

@media only screen and (max-width: 520px) {
    .wt-stats {
        grid-template-columns: 1fr;
    }

    .wt-form .wt-time input[type="number"] {
        padding: 0 54px 0 12px;
    }

    .wt-time label span {
        right: 10px;
        font-size: 12px;
    }

    .wt-form {
        grid-template-columns: 1fr;
    }

    .wt-open {
        width: 100%;
        max-width: none;
        align-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wt-panel,
    .wt-panel.is-open,
    .wt-close {
        transition: none;
    }
}
