.dtt {
    display: flex;
    flex-direction: column;
    gap: 12px;
    contain: layout paint;
}

.dtt-strong {
    font-weight: 600;
}

.dtt-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 4px 4px 16px 12px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.dtt-hero-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.dtt-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: color-mix(in srgb, currentColor 12%, transparent);
}

.dtt-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 25%, transparent);
}

.dtt-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    flex-shrink: 0;
}

.dtt-clock {
    display: flex;
    align-items: baseline;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
}

.dtt-colon {
    margin: 0 1px;
    opacity: .35;
}

.dtt-clock-sec {
    margin-left: 4px;
    font-size: .5em;
    font-weight: 500;
    letter-spacing: 0;
    opacity: .45;
}

.dtt-since {
    font-size: 12px;
}

.dtt-idle-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.dtt-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 66px;
    height: 66px;
}

.dtt-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
    pointer-events: none;
}

.dtt-ring circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
}

.dtt-ring-track {
    opacity: .15;
}

.dtt-ring-value {
    stroke-linecap: round;
    stroke-dasharray: 182.21;
}

.dtt-action-idle .dtt-ring-track {
    opacity: .45;
    stroke-dasharray: 3 7;
    stroke-linecap: round;
}

.dtt-round {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    font-size: 15px;
    box-shadow: none;
    transition: transform .1s ease-out, opacity .1s ease-out;
}

.dtt-round:hover,
.dtt-round:focus-visible {
    transform: scale(1.06);
}

.dtt-round:active {
    transform: scale(.95);
}

.dtt-round .fa-play,
.dtt-icon-lg .fa-play {
    margin-left: 3px;
}

.dtt-busy .dtt-round,
.dtt-busy .dtt-recent-item {
    opacity: .55;
    pointer-events: none;
}

.dtt-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
    background: color-mix(in srgb, currentColor 8%, transparent);
}

.dtt-icon-sm {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 12px;
}

.dtt-icon-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 16px;
    background: none;
}

.dtt-icon-tint {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: currentColor;
    opacity: .14;
}

.dtt-icon > :not(.dtt-icon-tint) {
    position: relative;
}

.dtt-record {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background-color .1s ease-out;
}

.dtt-record:hover,
.dtt-record:focus-visible {
    color: inherit;
    text-decoration: none;
    outline: none;
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.dtt-record-arrow {
    font-size: 11px;
    opacity: 0;
    transition: opacity .1s ease-out;
}

.dtt-record:hover .dtt-record-arrow,
.dtt-record:focus-visible .dtt-record-arrow {
    opacity: 1;
}

.dtt-record-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.dtt-record-name {
    overflow: hidden;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dtt-overline {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.dtt-entry {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.dtt-entry-name {
    font-weight: 500;
}

.dtt-entry-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
}

.dtt-section-title {
    padding: 0 12px;
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.dtt-recent {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dtt-recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: inherit;
    text-align: left;
    transition: background-color .1s ease-out;
}

.dtt-recent-item:hover,
.dtt-recent-item:focus-visible {
    outline: none;
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.dtt-play {
    opacity: 0;
    transition: opacity .1s ease-out;
}

.dtt-recent-item:hover .dtt-play,
.dtt-recent-item:focus-visible .dtt-play {
    opacity: 1;
}

.dtt-today {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 12px 2px;
    font-size: 12px;
    border-top: 1px solid color-mix(in srgb, currentColor 8%, transparent);
}

.dtt-today-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.dtt-progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 10%, transparent);
}

.dtt-progress-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
}

.dtt-hero-modal {
    flex-wrap: wrap;
    padding: 0 0 18px;
    margin-bottom: 18px;
}

.dtt-hero-record {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    padding: 8px 14px 8px 8px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, currentColor 9%, transparent);
}

.dtt-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.dtt-progress-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 90px;
}

.dtt-progress-field .dtt-progress {
    flex: 1;
    min-width: 40px;
}

.dtt-progress-value {
    min-width: 36px;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dtt-progress-edit {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dtt-progress-edit-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dtt-range {
    flex: 1;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: currentColor;
}

.dtt-progress-input {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 90px;
}

.dtt-progress-input .form-control {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dtt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dtt-chip {
    padding: 3px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    background: transparent;
    color: inherit;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    transition: background-color .1s ease-out, border-color .1s ease-out;
}

.dtt-chip:hover,
.dtt-chip:focus-visible {
    outline: none;
    background: color-mix(in srgb, currentColor 6%, transparent);
}

.dtt-chip.active {
    font-weight: 600;
    border-color: color-mix(in srgb, currentColor 40%, transparent);
    background: color-mix(in srgb, currentColor 12%, transparent);
}

@media (max-width: 480px) {
    .dtt-clock {
        font-size: 34px;
    }

    .dtt-action {
        width: 58px;
        height: 58px;
    }

    .dtt-round {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dtt-round,
    .dtt-record,
    .dtt-record-arrow,
    .dtt-recent-item,
    .dtt-play,
    .dtt-chip {
        transition: none;
    }
}
