.diagnostics-root { max-width: 42rem; margin-inline: auto; padding-bottom: 6rem; }
.diag-intro { color: var(--muted, #77776e); font-size: .9rem; }
.diagnostics-root h2 { font-size: 1rem; font-weight: 500; margin: 1.5rem 0 .65rem; }
.diagnostics-root h2 small { font-size: .75rem; color: #77776e; font-weight: 400; }
.diag-status dl { margin: 1.4rem 0; }
.diag-status dl div { display: flex; align-items: baseline; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid #6662; }
.diag-status dt { flex: 0 0 7rem; color: #77776e; font-size: .85rem; }
.diag-status dd { margin: 0; font-size: .85rem; overflow-wrap: anywhere; }
.diag-controls { display: grid; gap: .4rem; }
.diag-control-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }
.diag-controls button { min-height: 44px; font: inherit; color: inherit; }
.diag-picker { border-bottom: 1px solid #8885; min-width: 0; font-size: .85rem; }
.diag-picker-trigger { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: .7rem .15rem; background: transparent; border: 0; border-radius: 0; text-align: left; }
.diag-picker-current { display: flex; align-items: center; gap: .8rem; color: #77776e; }
.diag-picker-current i { font-style: normal; transition: transform 260ms ease; }
.diag-picker-trigger[aria-expanded=true] i { transform: rotate(180deg); }
.diag-picker-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 260ms ease, opacity 260ms ease; }
.diag-picker-body.is-open { grid-template-rows: 1fr; opacity: 1; }
.diag-picker-clip { min-height: 0; overflow: hidden; }
.diag-picker-options { max-height: 156px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 0 .5rem; }
.diag-picker-options button { display: flex; justify-content: space-between; align-items: center; gap: .75rem; width: 100%; padding: .6rem .3rem; background: transparent; border: 0; border-radius: 0; border-bottom: 1px dashed #8882; text-align: left; }
.diag-picker-options button[aria-pressed=true] { color: #61725d; background: #8a9c7910; }
.diag-picker button:focus-visible { outline: 1px dashed #77776e; outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .diag-picker-body, .diag-picker-current i { transition: none; } }
html[data-reduced=true] .diag-picker-body, html[data-reduced=true] .diag-picker-current i { transition: none; }
.diag-timeline details { margin: .7rem 0; padding: .65rem 0; border-bottom: 1px solid #6662; }
.diag-timeline summary { cursor: pointer; min-height: 44px; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9rem; }
.diag-timeline summary::after { content: '⌄'; margin-left: auto; color: #85857c; }
.diag-timeline details[open] summary::after { content: '⌃'; }
.diag-timeline small { font-size: .72rem; color: #77776e; overflow-wrap: anywhere; }
.diag-timeline summary small { flex-basis: 100%; padding-left: 1rem; }
.diag-dot { width: .45rem; height: .45rem; border-radius: 50%; background: #99a790; }
.diag-dot.is-error { background: #bc9a7d; }
.diag-timeline ol { border-left: 1px dashed #b1afa2; padding-left: 1rem; margin-left: .2rem; list-style: none; animation: diag-reveal 220ms ease-out; }
.diag-timeline li { padding: .4rem 0 .85rem; font-size: .8rem; }
.diag-timeline li strong { font-weight: 500; }
.diag-timeline li time { display: block; color: #77776e; font-size: .72rem; }
.diag-timeline li p { margin: .25rem 0; overflow-wrap: anywhere; }
.diag-timeline li small { display: block; }
.diag-empty { padding: 2rem .5rem; color: #85857c; text-align: center; font-size: .9rem; }
.diag-empty svg { width: 4rem; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
@keyframes diag-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .diag-timeline ol { animation: none; } }
html[data-reduced=true] .diag-timeline ol { animation: none; }

.diagnostics-root .fineprint { font-family: inherit; }

.diag-reason{font-weight:500}.diag-advice{color:var(--muted,#77776e)}
.diag-timeline .diag-technical{border:0;padding:0;margin:.25rem 0}.diag-technical summary{font-size:.75rem;color:var(--muted,#77776e)}.diag-technical pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.72rem;line-height:1.7;margin:.2rem 0;background:transparent}
