.dns-panel { min-width: 0; color: inherit; letter-spacing: 0; }
.dns-modal.modal-sheet { background: #091b3d !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
:root[data-theme="light"] .dns-modal.modal-sheet { background: #f1f8ff !important; }
.dns-modal .modal-header { position: relative; background: transparent; }
.dns-panel *, .dns-panel *::before, .dns-panel *::after { box-sizing: border-box; letter-spacing: 0; }
.dns-panel h3 { font-size: 15px; line-height: 1.4; margin: 0 0 12px; font-weight: 650; }
.dns-status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 12px; }
.dns-address-group { border-bottom: 1px solid rgba(127,127,127,.22); }
.dns-group-toggle { display: list-item; list-style-position: inside; cursor: pointer; min-height: 64px; padding: 14px 0; }
.dns-group-toggle:focus-visible { outline: 2px solid #369fcc; outline-offset: 2px; }
.dns-group-toggle h3 { display: inline-block; vertical-align: top; width: calc(100% - 24px); margin: 0; }
.dns-group-toggle .dns-role-description { display: block; margin: 4px 0 0; font-weight: 400; }
.dns-group-content { padding-bottom: 8px; }
.dns-endpoint { padding: 12px 0; }
.dns-endpoint + .dns-endpoint { border-top: 1px solid rgba(127,127,127,.16); }
.dns-role-description { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: var(--muted, inherit); overflow-wrap: anywhere; }
.dns-replica-label { margin-bottom: 10px; font-weight: 650; }
.dns-address-row { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; gap: 10px; align-items: center; min-height: 54px; }
.dns-address-content { min-width: 0; padding: 6px 0; }
.dns-address-purpose { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: var(--muted, inherit); overflow-wrap: anywhere; }
.dns-address-row code { display: block; white-space: normal; overflow-wrap: anywhere; font: 12px/1.5 ui-monospace,monospace; }
.dns-protocol { font-size: 12px; font-weight: 650; opacity: .7; }
.dns-bootstrap { opacity: .7; min-height: 42px; }
.dns-icon-button { appearance: none; padding: 8px; width: 40px; height: 40px; border: 1px solid rgba(127,127,127,.24); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.dns-icon-button:hover { background: rgba(127,127,127,.12); }
.dns-icon-button:disabled { opacity: .35; cursor: default; }
.dns-icon { display: block; width: 20px; height: 20px; background: currentColor; mask: var(--dns-icon) center/contain no-repeat; -webkit-mask: var(--dns-icon) center/contain no-repeat; }
.dns-copy { --dns-icon: url('./copy.svg'); }
.dns-refresh { --dns-icon: url('./refresh-cw.svg'); }
.dns-domains { padding-top: 24px; }
.dns-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.dns-periods { display: inline-flex; border: 1px solid rgba(127,127,127,.25); border-radius: 6px; padding: 3px; gap: 2px; }
.dns-periods button { border: 0; border-radius: 4px; font: inherit; font-size: 13px; min-height: 34px; padding: 6px 12px; color: inherit; background: transparent; cursor: pointer; }
.dns-periods button[aria-pressed="true"] { background: #087b75; color: #fff; }
.dns-toolbar select { min-width: 0; max-width: 100%; min-height: 40px; color: inherit; background: transparent; border: 1px solid rgba(127,127,127,.3); border-radius: 6px; padding: 6px; font: inherit; font-size: 12px; }
.dns-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 20px 0 6px; }
.dns-summary-vpn { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dns-toolbar select[hidden] { display: none !important; }
.dns-table th { overflow-wrap: anywhere; }
.dns-summary strong { display: block; font-size: 20px; overflow-wrap: anywhere; }
.dns-summary span { font-size: 11px; opacity: .7; overflow-wrap: anywhere; }
.dns-freshness, .dns-copy-status { font-size: 12px; opacity: .7; min-height: 18px; }
.dns-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.dns-table th { text-align: left; font-size: 11px; font-weight: 500; opacity: .7; padding: 10px 4px; }
.dns-table td { padding: 12px 4px; border-top: 1px solid rgba(127,127,127,.2); vertical-align: top; }
.dns-table th:first-child { width: 49%; }
.dns-table th:nth-child(2) { width: 21%; text-align: right; }
.dns-table td:nth-child(2) { text-align: right; padding-right: 12px; }
.dns-domain { overflow-wrap: anywhere; display: block; line-height: 1.5; }
.dns-table time { font-size: 10px; line-height: 1.5; }
.dns-table small { display: block; margin-top: 4px; font-size: 10px; }
.dns-blocked { color: #aa4a21; }
.dns-error { color: #bf3e50; }
.dns-empty { text-align: center; opacity: .65; }
.dns-more { background: transparent; color: inherit; border: 1px solid rgba(127,127,127,.3); padding: 8px 16px; border-radius: 6px; margin-top: 10px; cursor: pointer; }
.dns-copy-helper { position: fixed; left: -9999px; top: 0; }
.bottom-nav:has([data-tab="dns"]) { grid-template-columns: repeat(5,minmax(0,1fr)); }
.bottom-nav:has([data-tab="dns"]) [data-tab] { min-width: 0; }
.bottom-nav:has([data-tab="dns"]) .bottom-nav-lens { width: calc((100% - 16px) / 5); }
.nav-dns { background: currentColor; mask: url('./network.svg') center/contain no-repeat; -webkit-mask: url('./network.svg') center/contain no-repeat; }
@media (max-width: 359px) {
  .dns-address-row { grid-template-columns: 30px minmax(0,1fr) 36px; gap: 6px; }
  .dns-icon-button { width: 36px; height: 36px; padding: 7px; }
  .dns-periods button { padding: 6px 9px; }
}
