.native-tool-widget {
    --native-widget-accent: var(--accent-color, #0f766e);
    width: 100%;
    padding: 20px;
    display: grid;
    gap: 16px;
    color: var(--text-color);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
}

.native-widget-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.native-widget-title-wrap {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.native-widget-title,
.native-widget-subtitle {
    margin: 0;
}

.native-widget-title {
    font-size: 1.15rem;
    line-height: 1.3;
}

.native-widget-subtitle {
    color: var(--text-color-secondary);
    line-height: 1.5;
}

.native-widget-metrics {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
}

.native-widget-metric {
    margin: 0;
    padding: 10px 12px;
    display: grid;
    gap: 3px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 11px;
}

.native-widget-metric dt {
    color: var(--text-color-secondary);
    font-size: 0.75rem;
}

.native-widget-metric dd {
    margin: 0;
    font-weight: 650;
}

.weather-native-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.weather-native-current-copy {
    display: grid;
    gap: 3px;
}

.weather-native-temperature {
    font-size: clamp(2.3rem, 8vw, 4.2rem);
    line-height: 1;
}

.weather-native-condition {
    color: var(--text-color-secondary);
}

.weather-native-symbol {
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 1;
}

.weather-native-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    gap: 8px;
}

.weather-native-day {
    padding: 10px 8px;
    display: grid;
    justify-items: center;
    gap: 6px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-align: center;
}

.weather-native-day-name,
.weather-native-day-temperature {
    font-size: 0.78rem;
}

.weather-native-day-symbol {
    font-size: 1.3rem;
}

.legacy-study-widget details {
    padding-block: 12px;
    border-top: 1px solid var(--border-color);
}

.legacy-study-widget summary:focus-visible {
    outline: 2px solid var(--native-widget-accent);
    outline-offset: 2px;
}

.legacy-study-widget summary {
    cursor: pointer;
    font-weight: 650;
}

@media (max-width: 600px) {
    .native-tool-widget {
        padding: 14px;
        border-radius: 14px;
    }

    .native-widget-header {
        flex-direction: column;
    }


}

@media (prefers-reduced-motion: reduce) {
    .native-tool-widget *,
    .native-tool-widget *::before,
    .native-tool-widget *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
