.network-checkup { min-width: 0; color: #29363d; font-size: 14px; line-height: 1.6; letter-spacing: 0; }
.network-checkup *, .network-checkup *::before, .network-checkup *::after { box-sizing: border-box; }
.network-checkup [hidden] { display: none !important; }
.nc-screen { --nc-border: #e5e9eb; --nc-muted: #657079; --nc-accent: #11796d; width: 100%; min-width: 0; background: #fff; }
.nc-heading, .nc-heading > div, .nc-toolbar, .nc-primary-actions, .nc-reportbar, .nc-report-actions, .nc-historybar, .nc-history-actions { display: flex; align-items: center; gap: 10px; }
.nc-heading { justify-content: space-between; gap: 16px; padding: 2px 0 20px; }
.nc-heading h2 { margin: 0; font-size: 20px; font-weight: 600; }
.nc-heading [data-state] { color: var(--nc-muted); font-size: 13px; text-align: right; }
.nc-toolbar { flex-wrap: wrap; padding-bottom: 20px; gap: 12px 18px; }
.nc-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 7px 13px; border: 1px solid #cfd7da; border-radius: 3px; background: #fff; color: #39494f; font: inherit; line-height: 1.4; cursor: pointer; }
.nc-button:hover:not(:disabled) { background: #f2f6f6; border-color: #a8b8ba; }
.nc-button.nc-primary { background: var(--nc-accent); border-color: var(--nc-accent); color: #fff; }
.nc-button.nc-primary:hover:not(:disabled) { background: #0d665c; }
.nc-button.nc-icon { width: 40px; height: 40px; flex: 0 0 40px; padding: 0; }
.nc-button:disabled { opacity: .5; cursor: default; }
.network-checkup button:focus-visible, .network-checkup summary:focus-visible, .network-checkup input:focus-visible, .network-checkup select:focus-visible { outline: 2px solid var(--nc-accent); outline-offset: 3px; }
.nc-check { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; margin: 0; cursor: pointer; white-space: nowrap; }
.network-checkup input[type=checkbox] { width: 16px; height: 16px; margin: 0; accent-color: var(--nc-accent); }
.nc-region { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; color: var(--nc-muted); font-weight: 400; }
.network-checkup select { height: 38px; max-width: 100%; padding: 5px 28px 5px 10px; border: 1px solid #cfd7da; border-radius: 3px; color: #39494f; background: #fff; font: inherit; }
.nc-overview { display: grid; grid-template-columns: 160px minmax(0, 1fr); border-top: 1px solid var(--nc-border); border-bottom: 1px solid var(--nc-border); padding: 22px 0; gap: 24px; }
.nc-grade { display: flex; flex-direction: column; border-right: 1px solid var(--nc-border); gap: 4px; }
.nc-grade > span, .nc-metrics span { color: var(--nc-muted); font-size: 13px; }
.nc-grade strong { font-size: 48px; font-weight: 500; line-height: 1.2; color: var(--nc-accent); font-variant-numeric: tabular-nums; }
.nc-grade small { font-size: 12px; color: var(--nc-muted); }
.nc-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: center; }
.nc-metrics > div:first-child { grid-column: 1 / -1; }
.nc-metrics > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nc-metrics strong { font-size: 18px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.nc-metrics > div:first-child strong { font-size: 16px; }
.nc-section-grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 14px 0; margin: 0; border-bottom: 1px solid var(--nc-border); }
.nc-section-grades dt { font-weight: 400; font-size: 12px; color: var(--nc-muted); }
.nc-section-grades dd { margin: 3px 0 0; font-size: 20px; font-weight: 500; }
.nc-grade-short { display: none; }
.nc-phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 18px 0 10px; margin: 0; list-style: none; color: var(--nc-muted); font-size: 13px; }
.nc-phases li { display: flex; align-items: center; gap: 7px; }
.nc-phases li::before { content: ''; width: 7px; height: 7px; background: #c8cfd2; border-radius: 50%; flex: 0 0 7px; }
.nc-phases .is-active { color: var(--nc-accent); }
.nc-phases .is-active::before, .nc-phases .is-done::before { background: var(--nc-accent); }
.nc-progress { display: block; width: 100%; height: 3px; border: 0; background: #edf1f2; color: var(--nc-accent); accent-color: var(--nc-accent); }
.nc-progress::-webkit-progress-bar { background: #edf1f2; }
.nc-progress::-webkit-progress-value { background: var(--nc-accent); }
.nc-reportbar { justify-content: space-between; flex-wrap: wrap; padding: 12px 0 18px; }
.nc-reportbar > span { color: var(--nc-muted); font-size: 13px; }
.nc-report-actions { gap: 4px; }
.nc-report-actions .nc-button { border-color: transparent; }
.nc-findings { padding: 14px 16px; background: #f4f8f7; margin-bottom: 20px; }
.nc-findings h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.nc-findings ul { margin: 0; padding-left: 18px; font-size: 13px; }
.nc-findings li + li { margin-top: 5px; }
.nc-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--nc-border); }
.nc-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0; margin-bottom: -1px; color: var(--nc-muted); font: inherit; cursor: pointer; }
.nc-tabs button[aria-selected=true] { color: var(--nc-accent); border-bottom-color: var(--nc-accent); }
.nc-filter { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.nc-filter > label:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; margin: 0; border: 1px solid #d5dde0; border-radius: 3px; padding: 0 11px; color: var(--nc-muted); }
.nc-filter input[type=search] { min-width: 0; width: 100%; height: 38px; border: 0; background: transparent; font: inherit; font-weight: 400; color: #29363d; outline: none; }
.nc-filter input::placeholder { color: #707b82; }
.nc-tool { display: flex; gap: 8px; align-items: flex-start; border-top: 1px solid var(--nc-border); padding: 4px 0; }
.nc-tool:last-child { border-bottom: 1px solid var(--nc-border); }
.nc-tool > details { flex: 1; min-width: 0; }
.nc-tool > .nc-button { margin-top: 7px; border-color: transparent; }
.nc-tool-summary { display: grid; grid-template-columns: 14px minmax(105px, .8fr) minmax(0, 1.7fr) 78px; gap: 8px; align-items: center; min-height: 54px; padding: 10px 2px; cursor: pointer; list-style: none; }
.network-checkup summary::-webkit-details-marker { display: none; }
.nc-tool-summary > i { color: var(--nc-muted); }
.nc-tool details[open] > .nc-tool-summary > i { transform: rotate(90deg); }
.nc-tool-name { font-weight: 500; }
.nc-tool-value { color: var(--nc-muted); font-size: 13px; overflow-wrap: anywhere; }
.nc-tool-status { color: var(--nc-muted); font-size: 12px; text-align: right; }
.nc-tool[data-status=running] .nc-tool-status, .nc-tool[data-status=done] .nc-tool-status { color: var(--nc-accent); }
.nc-tool[data-status=error] .nc-tool-status, .nc-tool[data-status=timeout] .nc-tool-status { color: #a35323; }
.nc-tool[data-status=running] > button i { animation: nc-spin 1.2s linear infinite; }
.nc-rows { margin: 0 0 12px 22px; }
.nc-row { border-top: 1px solid #edf0f2; padding: 10px 0; }
.nc-row > summary { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.5fr); gap: 14px; cursor: pointer; font-size: 13px; list-style: none; }
.nc-row-name, .nc-row-value { overflow-wrap: anywhere; }
.nc-row-value { color: var(--nc-muted); }
.nc-row[data-status=warning] .nc-row-value { color: #98501f; }
.nc-row p { margin: 10px 0 0; color: var(--nc-muted); font-size: 13px; }
.nc-row pre { max-height: 340px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; background: #f7f9fa; border: 0; padding: 12px; margin: 10px 0 0; font-size: 12px; color: #40525b; }
.nc-empty, .nc-history-empty { padding: 32px 0; color: var(--nc-muted); text-align: center; margin: 0; }
.nc-historybar { justify-content: space-between; padding: 20px 0; }
.nc-historybar label { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 400; }
.nc-comparison > div { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--nc-border); }
.nc-comparison strong { font-weight: 500; }
.nc-comparison > div > :last-child { color: var(--nc-muted); text-align: right; }
.nc-toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: min(540px, calc(100% - 32px)); padding: 12px 20px; border: 1px solid #d3dfdc; border-radius: 3px; background: #fff; color: #244c45; box-shadow: 0 5px 24px #192f2426; z-index: 9999; }
@keyframes nc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nc-tool[data-status=running] > button i { animation: none; } }
@media (max-width: 959.98px) { .nc-region { margin-left: 0; } .nc-tool-summary { grid-template-columns: 14px 115px minmax(0, 1fr); } .nc-tool-status { grid-column: 3; grid-row: 1; } .nc-tool-value { grid-column: 2 / -1; } }
@media (max-width: 639.98px) {
  .nc-heading { align-items: flex-start; padding-bottom: 16px; }
  .nc-heading h2 { font-size: 18px; }
  .nc-heading [data-state] { max-width: 140px; font-size: 12px; }
  .nc-toolbar { gap: 12px; }
  .nc-button { min-height: 44px; }
  .nc-button.nc-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .nc-region { width: 100%; justify-content: space-between; }
  .nc-region select { width: 160px; height: 44px; }
  .nc-overview { grid-template-columns: 105px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  .nc-grade strong { font-size: 40px; }
  .nc-grade small { max-width: 90px; }
  .nc-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  .nc-metrics > div:last-child { grid-column: 1 / -1; }
  .nc-metrics strong { font-size: 16px; }
  .nc-metrics > div:first-child strong { font-size: 14px; }
  .nc-section-grades dt { font-size: 12px; }
  .nc-grade-long { display: none; }
  .nc-grade-short { display: inline; }
  .nc-section-grades dd { font-size: 18px; }
  .nc-phases { font-size: 12px; gap: 5px; }
  .nc-phases li { gap: 5px; }
  .nc-reportbar { gap: 4px; }
  .nc-report-actions { margin-left: auto; }
  .nc-report-actions .nc-button { width: 36px; height: 40px; flex-basis: 36px; }
  .nc-filter { gap: 10px; }
  .nc-filter .nc-check { font-size: 12px; }
  .nc-filter input[type=search] { font-size: 13px; height: 42px; }
  .nc-tool { gap: 2px; }
  .nc-tool-summary { grid-template-columns: 12px minmax(0, 1fr) 70px; gap: 6px; }
  .nc-tool-name { font-size: 14px; }
  .nc-tool > .nc-button { margin-top: 6px; }
  .nc-rows { margin-left: 0; }
  .nc-row > summary { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .nc-historybar label { align-items: flex-start; flex-direction: column; gap: 5px; min-width: 0; }
  .nc-comparison > div { grid-template-columns: 1fr 1fr; }
  .nc-comparison > div > :last-child { grid-column: 2; }
}
