.aether-board {
    color: #122033;
    font-family: "Inter", "Noto Sans SC", "Segoe UI", sans-serif;
    font-size: 13px;
}
.aether-panel,
.aether-pack,
.aether-card {
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 0;
}
.aether-panel { margin-bottom: 0; }
.aether-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 18px 20px;
    min-height: 64px;
    box-sizing: border-box;
    background: linear-gradient(90deg, #0f3d5c 0%, #145074 46%, #1a77a3 100%);
}
.aether-titlebar h1 {
    flex: 1;
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}
.aether-pill {
    display: inline-block;
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 0;
}
.aether-pill.is-ok {
    background: #1f9d55;
    border-color: #1f9d55;
}
.aether-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
}
.aether-rule {
    width: calc(100% - 32px);
    margin: 0 16px;
    border-bottom: 1px solid #e5eaf0;
}
.aether-stat,
.aether-stat.is-pay,
.aether-stat:last-child {
    padding: 14px 16px;
    background: #e8f3fb;
    border: 1px solid #e5eaf0;
    border-radius: 0;
}
.aether-stat.is-pay {
    grid-column: auto;
}
.aether-kicker {
    display: block;
    margin: 0 0 2px;
    color: #7b8b9a;
    font-size: 12px;
    font-weight: 600;
}
.aether-stat strong {
    color: #122033;
    font-size: 13px;
    font-weight: 600;
}
.aether-meter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 8px;
    color: #5c6b7a;
    font-size: 13px;
    font-weight: 600;
}
.aether-meter strong {
    color: #122033;
    font-weight: 600;
}
.aether-track {
    height: 10px;
    margin: 0 16px;
    background: #d5e2ee;
    border-radius: 0;
    overflow: hidden;
}
.aether-fill {
    height: 100%;
    background: #4090cc;
    border-radius: 0;
}
.aether-traffic-line {
    margin: 6px 12px 10px;
    color: #5c6b7a;
    font-size: 13px;
    font-weight: 500;
}
.aether-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 8px;
}
.aether-head h2 {
    margin: 0;
    color: #122033;
    font-size: 15px;
    font-weight: 600;
}
.aether-head-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: auto;
}
.aether-head-side form { margin: 0; }
.aether-note {
    margin: 0;
    color: #7b8b9a;
    font-size: 12px;
    font-weight: 500;
}
.aether-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin: 0 0 2px 4px;
    padding: 0;
    border: 1px solid #8aa0b5;
    border-radius: 0;
    background: transparent;
    color: #6d8296;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}
.aether-card-title .aether-info,
.aether-ports .aether-info {
    margin: 0;
    flex: 0 0 auto;
}
.aether-port[data-tip] {
    position: relative;
    cursor: help;
}
.aether-ports .aether-info:hover::after,
.aether-ports .aether-info:focus::after,
.aether-ports .aether-port[data-tip]:hover::after,
.aether-ports .aether-port[data-tip]:focus::after {
    left: auto;
    right: 0;
}
.aether-info:hover::after,
.aether-info:focus::after,
.aether-port[data-tip]:hover::after,
.aether-port[data-tip]:focus::after {
    content: attr(data-tip);
    position: absolute;
    z-index: 6;
    left: 0;
    top: calc(100% + 6px);
    width: max-content;
    max-width: min(420px, calc(100vw - 48px));
    padding: 8px 10px;
    background: #122033;
    color: #fff;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    white-space: pre-line;
    border-radius: 0;
}
.aether-pack-row,
.aether-proto-row {
    display: grid;
    gap: 12px;
}
.aether-pack-row { grid-template-columns: 1fr 1fr; }
.aether-proto-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.aether-proto-row .aether-card,
.aether-cell { min-width: 0; }
.aether-pack,
.aether-card { padding: 12px; }
.aether-pack h3,
.aether-card h3 {
    margin: 0;
    color: #122033;
    font-size: 14px;
    font-weight: 600;
}
.aether-pack p {
    margin: 8px 0 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5eaf0;
    color: #8aa0b5;
    font-size: 12px;
}
.aether-pack-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}
.aether-price {
    color: #4090cc;
    font-size: 14px;
    font-weight: 600;
}
.aether-actions,
.aether-node-tools,
.aether-stack,
.aether-ports,
.aether-chips,
.aether-card-title,
.aether-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.aether-actions {
    justify-content: flex-start;
    margin-top: 12px;
}
.aether-actions a,
.aether-solid,
.aether-outline,
.aether-disclosure {
    width: auto;
    flex: 0 0 auto;
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}
.aether-solid,
.aether-outline,
.aether-disclosure {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
}
.aether-solid {
    background: #4090cc;
    color: #fff;
    border: 1px solid #4090cc;
}
.aether-solid.is-red {
    background: #b83028;
    border-color: #b83028;
    color: #fff;
}
.aether-outline {
    background: #fff;
    color: #4090cc;
    border: 1px solid #4090cc;
}
.aether-outline.is-red {
    color: #b83028;
    border-color: #b83028;
}
.aether-solid:hover,
.aether-outline:hover,
.aether-disclosure:hover { text-decoration: none; }
.aether-stack {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}
.aether-card-title { margin-bottom: 8px; }
.aether-card-title h3 { font-size: 14px; }
.aether-proto-row .aether-card-title {
    flex: 0 0 72px;
    width: 72px;
    margin: 0;
    justify-content: center;
}
.aether-proto-row .aether-card-title h3 { display: none; }
.aether-badge,
.aether-chip,
.aether-port {
    display: inline-block;
    padding: 2px 6px;
    background: #e7f3fb;
    color: #145074;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 0;
}
.aether-port-ss { background: #e3f2fb; color: #1d6fbf; }
.aether-port-reality { background: #f0e9fb; color: #7a45b0; }
.aether-port-anytls { background: #e5f6ef; color: #1c8a62; }
.aether-port-tuic { background: #fff1e4; color: #c56a14; }
.aether-subline,
.aether-conn {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.aether-subline,
.aether-conn {
    align-items: center;
    flex-wrap: nowrap;
}
.aether-subline .aether-chip,
.aether-subline .aether-solid,
.aether-conn .aether-chip,
.aether-conn .aether-solid { flex: 0 0 auto; }
.aether-subline .aether-field,
.aether-conn .aether-field {
    position: relative;
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    height: 36px;
    overflow: hidden;
    background: transparent;
}
.aether-board .aether-glass,
.aether-board .aether-glass:focus,
.aether-board .aether-glass:focus-visible,
.aether-board .aether-field,
.aether-board .aether-field:focus,
.aether-board .aether-field:focus-within {
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
}
.aether-board .aether-field-input,
.aether-board .aether-field-input:focus,
.aether-board .aether-field-input:focus-visible,
.aether-board .aether-field-cover,
.aether-board .aether-field-cover:focus,
.aether-board .aether-field-cover:focus-visible {
    border: 0;
    outline: none;
    box-shadow: none;
}
.aether-field-input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #122033;
    font-family: "Inter", "Noto Sans SC", "Segoe UI", sans-serif;
    font-size: 13px;
    line-height: 36px;
    white-space: nowrap;
    overflow: hidden;
    cursor: text;
    user-select: text;
}
.aether-field-cover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #5c6b7a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    cursor: text;
}
.aether-field:not(.is-open) .aether-field-input {
    filter: blur(6px);
    -webkit-filter: blur(6px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    color: #5c6b7a;
    pointer-events: none;
}
.aether-field.is-open .aether-field-cover { display: none; }
.aether-field.is-open .aether-field-input {
    filter: none;
    -webkit-filter: none;
    -webkit-mask-image: none;
    mask-image: none;
    pointer-events: auto;
}
.aether-proto-row .aether-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #dce1e5;
    border-radius: 0;
}
.aether-proto-row .aether-subline {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}
.aether-proto-row .aether-badge,
.aether-proto-row .aether-chip {
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 0;
}
.aether-proto-row .aether-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 72px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    white-space: nowrap;
}
.aether-tone-ss .aether-badge,
.aether-tone-ss .aether-chip {
    background: #e3f2fb;
    color: #1d6fbf;
}
.aether-tone-reality .aether-badge,
.aether-tone-reality .aether-chip {
    background: #f0e9fb;
    color: #7a45b0;
}
.aether-tone-anytls .aether-badge,
.aether-tone-anytls .aether-chip {
    background: #e5f6ef;
    color: #1c8a62;
}
.aether-tone-tuic .aether-badge,
.aether-tone-tuic .aether-chip {
    background: #fff1e4;
    color: #c56a14;
}
.aether-clash {
    margin-top: 0;
    flex: 0 0 auto;
}
.aether-glass {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
    cursor: text;
}
.aether-glass-clip {
    display: block;
    width: 100%;
    min-width: 0;
    height: 18px;
    overflow: hidden;
}
.aether-glass-value {
    display: block;
    filter: blur(6px);
    -webkit-filter: blur(6px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    user-select: none;
    pointer-events: none;
    color: #5c6b7a;
    font-family: "Inter", "Noto Sans SC", "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
}
.aether-glass-shade {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
    pointer-events: none;
}
.aether-glass-label {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    color: #5c6b7a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}
.aether-glass.is-open {
    height: auto;
    min-height: 36px;
    overflow: visible;
    background: transparent;
}
.aether-glass.is-open .aether-glass-clip {
    height: auto;
    overflow: visible;
}
.aether-glass.is-open .aether-glass-value {
    filter: none;
    -webkit-filter: none;
    color: #1a3348;
    -webkit-mask-image: none;
    mask-image: none;
    user-select: text;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.45;
}
.aether-glass.is-open .aether-glass-shade,
.aether-glass.is-open .aether-glass-label { display: none; }
.aether-glass-inline {
    width: 180px;
    max-width: 180px;
    flex: 0 0 auto;
    margin-top: 0;
}
.aether-node { padding: 8px 12px; }
.aether-node-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.aether-node-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 0 0 auto;
    width: 132px;
    max-width: 132px;
    min-width: 0;
    gap: 2px;
}
.aether-node-name .aether-glass,
.aether-node-name .aether-glass.is-open {
    width: 132px;
    max-width: 132px;
    height: 22px;
    min-height: 0;
    padding: 0 8px;
    overflow: hidden;
}
.aether-node-name .aether-glass-clip,
.aether-node-name .aether-glass.is-open .aether-glass-clip {
    height: 14px;
    overflow: hidden;
}
.aether-node-name .aether-glass-value,
.aether-node-name .aether-glass.is-open .aether-glass-value {
    font-size: 12px;
    line-height: 14px;
    white-space: nowrap;
    word-break: normal;
}
.aether-node-name { order: 1; }
.aether-status { order: 2; margin-left: auto; }
.aether-ports {
    order: 3;
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.aether-qr-wrap { order: 4; }
#aether-details-toggle { order: 5; }
.aether-node-tools,
.aether-status { flex: 0 0 auto; white-space: nowrap; }
.aether-node-tools { margin-left: auto; }
.aether-qr-wrap { position: relative; display: inline-flex; }
#aether-details[hidden] { display: none !important; }
.aether-node-name strong {
    color: #122033;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
}
.aether-node-tools { margin-left: auto; }
.aether-status {
    color: #1f9d55;
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
}
#aether-details {
    margin: 0 -12px -8px;
    padding: 10px 12px 12px;
    background: #eef6fb;
    border-top: 0;
    border-radius: 0;
}
.aether-block {
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
    background: transparent;
}
.aether-block:first-child { margin-top: 0; }
#aether-details .aether-cell,
#aether-details .aether-conn {
    box-sizing: border-box;
    border: 1px solid #e7eef5;
    border-radius: 0;
    background: #ffffff;
}
#aether-details .aether-glass,
#aether-details .aether-glass.is-open {
    height: 22px;
    min-height: 0;
    padding: 0 8px;
    overflow: hidden;
}
#aether-details .aether-cell .aether-glass,
#aether-details .aether-cell .aether-glass.is-open {
    display: inline-grid;
    width: max-content;
    max-width: 100%;
    justify-items: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
}
#aether-details .aether-cell .aether-glass-clip,
#aether-details .aether-cell .aether-glass-label {
    grid-area: 1 / 1;
}
#aether-details .aether-cell .aether-glass-clip,
#aether-details .aether-cell .aether-glass.is-open .aether-glass-clip {
    position: relative;
    width: auto;
    max-width: 100%;
    height: 16px;
    overflow: hidden;
}
#aether-details .aether-cell .aether-glass-value,
#aether-details .aether-cell .aether-glass.is-open .aether-glass-value {
    text-align: center;
}
#aether-details .aether-cell .aether-glass-label {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 16px;
    margin: 0;
    background: transparent;
    border: 0;
    text-align: center;
    pointer-events: none;
}
#aether-details .aether-cell .aether-glass.is-open .aether-glass-label {
    display: none;
}
#aether-details .aether-glass-clip,
#aether-details .aether-glass.is-open .aether-glass-clip {
    height: 16px;
    overflow: hidden;
}
#aether-details .aether-glass-value,
#aether-details .aether-glass.is-open .aether-glass-value {
    line-height: 16px;
    white-space: nowrap;
    word-break: normal;
}
.aether-block-title { margin-bottom: 8px; }
.aether-block-title strong {
    color: #122033;
    font-size: 14px;
    font-weight: 600;
}
.aether-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    background: transparent;
    border: 0;
}
#aether-details .aether-cell {
    padding: 6px 8px;
}
.aether-cell-label {
    margin-bottom: 2px;
    color: #8aa0b5;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.aether-cell-value {
    color: #122033;
    font-size: 13px;
    font-weight: 500;
    word-break: break-all;
}
#aether-details .aether-conn {
    margin-top: 8px;
    margin-bottom: 0;
    padding: 6px 8px;
}
#aether-details .aether-conn .aether-field,
#aether-details .aether-conn .aether-field-input { height: 22px; }
#aether-details .aether-conn .aether-field-input { line-height: 22px; }
#aether-details .aether-json-box {
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
}
#aether-details .aether-json-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}
#aether-details .aether-json-copy {
    display: none;
    min-height: 28px;
    padding: 4px 10px;
    font-size: 12px;
}
#aether-details .aether-json-box.is-open .aether-json-copy {
    display: inline-flex;
}
#aether-details .aether-disclosure {
    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6a7c8c;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    justify-content: flex-start;
}
.aether-caret {
    display: inline-block;
    margin-right: 4px;
}
.aether-disclosure.is-open .aether-caret { transform: rotate(90deg); }
.aether-json {
    margin: 4px 0 0;
    padding: 0;
    background: transparent;
    color: #122033;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}
.aether-qr {
    position: absolute;
    z-index: 6;
    top: calc(100% + 6px);
    right: 0;
    width: fit-content;
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 0;
}
.aether-secret { display: none; }
html[data-theme="dark"] .aether-board,
html[data-theme="dark"] .aether-head h2,
html[data-theme="dark"] .aether-pack h3,
html[data-theme="dark"] .aether-card h3,
html[data-theme="dark"] .aether-stat strong,
html[data-theme="dark"] .aether-node-name strong,
html[data-theme="dark"] .aether-block-title strong,
html[data-theme="dark"] .aether-glass.is-open .aether-glass-value,
html[data-theme="dark"] .aether-cell-value,
html[data-theme="dark"] .aether-json {
    color: #ededed;
}
html[data-theme="dark"] .aether-panel,
html[data-theme="dark"] .aether-pack,
html[data-theme="dark"] .aether-card,
html[data-theme="dark"] .aether-outline,
html[data-theme="dark"] .aether-qr {
    background: #142433;
    border-color: #24384a;
}
html[data-theme="dark"] .aether-outline:not(.is-red) {
    color: #8ecae6;
}
html[data-theme="dark"] .aether-titlebar {
    background: linear-gradient(90deg, #1a5270 0%, #21739a 55%, #3d94bf 100%);
}
html[data-theme="dark"] .aether-pack p,
html[data-theme="dark"] .aether-rule {
    border-bottom-color: #24384a;
}
html[data-theme="dark"] .aether-outline.is-red {
    color: #f0a8a4;
    border-color: #b83028;
}
html[data-theme="dark"] .aether-info {
    border-color: #8aa0b5;
    color: #d5dee6;
    background: transparent;
    border-radius: 0;
}
html[data-theme="dark"] .aether-note,
html[data-theme="dark"] .aether-traffic-line,
html[data-theme="dark"] .aether-pack p,
html[data-theme="dark"] .aether-cell-label {
    color: #a1a1a1;
}
html[data-theme="dark"] .aether-subline .aether-field,
html[data-theme="dark"] .aether-conn .aether-field { background: transparent; }
html[data-theme="dark"] .aether-field-input { color: #ededed; }
html[data-theme="dark"] .aether-field-cover { background: transparent; color: #a1a1a1; }
html[data-theme="dark"] .aether-glass,
html[data-theme="dark"] .aether-glass:focus,
html[data-theme="dark"] .aether-field,
html[data-theme="dark"] .aether-field:focus,
html[data-theme="dark"] .aether-field:focus-within {
    background: transparent;
    border: 0;
    outline: none;
    box-shadow: none;
}
html[data-theme="dark"] .aether-glass-value { color: #ededed; }
html[data-theme="dark"] .aether-glass-shade { background: transparent; }
html[data-theme="dark"] .aether-glass-label { color: #a1a1a1; }
html[data-theme="dark"] .aether-glass-inline,
html[data-theme="dark"] .aether-glass.is-open { background: transparent; }
html[data-theme="dark"] .aether-stat,
html[data-theme="dark"] .aether-stats { border-color: #24384a; }
html[data-theme="dark"] .aether-stat { background: #1c3348; }
html[data-theme="dark"] .aether-kicker,
html[data-theme="dark"] .aether-meter { color: #8aa0b5; }
html[data-theme="dark"] .aether-meter strong { color: #ededed; }
html[data-theme="dark"] .aether-track { background: #1c3348; }
html[data-theme="dark"] #aether-details { background: #1a3348; }
html[data-theme="dark"] #aether-details .aether-cell,
html[data-theme="dark"] #aether-details .aether-conn {
    border-color: #3a5c78;
    background: #243e56;
}
html[data-theme="dark"] #aether-details .aether-json-box {
    border: 0;
    background: transparent;
}
html[data-theme="dark"] #aether-details .aether-disclosure { color: #8ecae6; }
html[data-theme="dark"] .aether-json { background: transparent; border-color: transparent; }
html[data-theme="dark"] .aether-node .aether-badge,
html[data-theme="dark"] .aether-node .aether-chip,
html[data-theme="dark"] .aether-port {
    background: #102433;
    color: #8ecae6;
}
html[data-theme="dark"] .aether-port-ss { background: #123044; color: #8ec8f0; }
html[data-theme="dark"] .aether-port-reality { background: #2a2040; color: #d2b4f0; }
html[data-theme="dark"] .aether-port-anytls { background: #123028; color: #8ee0c0; }
html[data-theme="dark"] .aether-port-tuic { background: #3a2814; color: #f0c48a; }
html[data-theme="dark"] .aether-tone-ss .aether-badge,
html[data-theme="dark"] .aether-tone-ss .aether-chip {
    background: #123044;
    color: #8ec8f0;
}
html[data-theme="dark"] .aether-tone-reality .aether-badge,
html[data-theme="dark"] .aether-tone-reality .aether-chip {
    background: #2a2040;
    color: #d2b4f0;
}
html[data-theme="dark"] .aether-tone-anytls .aether-badge,
html[data-theme="dark"] .aether-tone-anytls .aether-chip {
    background: #123028;
    color: #8ee0c0;
}
html[data-theme="dark"] .aether-tone-tuic .aether-badge,
html[data-theme="dark"] .aether-tone-tuic .aether-chip {
    background: #3a2814;
    color: #f0c48a;
}
html[data-theme="dark"] .aether-price,
html[data-theme="dark"] .aether-solid:not(.is-red) {
    color: #fff;
}
html[data-theme="dark"] .aether-price { color: #4090cc; }
body:has(.aether-board) .primary-content {
    flex: 0 0 100%;
    max-width: 100%;
}
@media (max-width: 991px) {
    .aether-stats,
    .aether-pack-row,
    .aether-grid { grid-template-columns: 1fr; }
    .aether-head,
    .aether-head-side { flex-wrap: wrap; }
    .aether-node-top,
    .aether-ports { flex-wrap: nowrap; }
    .aether-node-tools { margin-left: 0; }
}
html[data-theme="light"] .aether-card.aether-node,
html[data-theme="light"] .aether-node-top {
    background: #ffffff;
}
html[data-theme="light"] #aether-details {
    background: #eef6fb;
    border-top: 0;
}
html[data-theme="light"] #aether-details .aether-cell,
html[data-theme="light"] #aether-details .aether-conn {
    background: #ffffff;
    border: 1px solid #e7eef5;
}
html[data-theme="light"] #aether-details .aether-block,
html[data-theme="light"] #aether-details .aether-block-title,
html[data-theme="light"] #aether-details .aether-grid,
html[data-theme="light"] #aether-details .aether-json,
html[data-theme="light"] #aether-details .aether-json-box {
    background: transparent;
    border: 0;
}

/* fv-phone-390 service detail. Desktop rules above stay. */
@media (max-width: 767px) {
    .aether-board,
    .aether-panel,
    .aether-card,
    .aether-node,
    .aether-pack {
        max-width: 100%;
        box-sizing: border-box;
    }

    .aether-titlebar {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 12px;
    }

    .aether-titlebar h1 {
        flex: 1 1 100%;
        min-width: 0;
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .aether-stats,
    .aether-pack-row,
    .aether-proto-row,
    .aether-grid {
        grid-template-columns: 1fr;
    }

    .aether-stats {
        padding: 12px;
    }

    .aether-head,
    .aether-head-side,
    .aether-actions,
    .aether-pack-foot {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .aether-head-side {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .aether-subline,
    .aether-conn,
    .aether-node-top,
    .aether-ports {
        flex-wrap: wrap;
        align-items: stretch;
        white-space: normal;
    }

    .aether-subline,
    .aether-conn {
        gap: 8px;
    }

    .aether-subline .aether-field,
    .aether-conn .aether-field,
    .aether-board .aether-field {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        height: 44px;
        min-height: 44px;
    }

    .aether-field-input,
    .aether-board input,
    .aether-board select,
    .aether-board textarea {
        font-size: 16px;
    }

    .aether-field-cover,
    .aether-subline > .aether-solid,
    .aether-subline > .aether-outline,
    .aether-conn > .aether-solid,
    .aether-card > .aether-outline,
    .aether-card > .aether-clash,
    .aether-pack .aether-solid,
    .aether-actions .aether-outline,
    .aether-actions .aether-solid,
    .aether-head-side .aether-solid,
    .aether-node-top > .aether-outline,
    .aether-node-top .aether-outline {
        min-height: 44px;
        box-sizing: border-box;
    }

    .aether-subline > .aether-solid,
    .aether-conn > .aether-solid,
    .aether-card > .aether-outline,
    .aether-card > .aether-clash,
    .aether-pack .aether-solid,
    .aether-actions a,
    .aether-head-side .aether-solid,
    .aether-node-top > .aether-outline,
    #aether-qr-toggle,
    #aether-details-toggle {
        flex: 1 1 100%;
        width: 100%;
        justify-content: center;
    }

    .aether-node-top {
        align-items: flex-start;
        gap: 8px;
    }

    .aether-node-name,
    .aether-node-name .aether-glass,
    .aether-node-name .aether-glass.is-open,
    .aether-status,
    .aether-ports,
    .aether-qr-wrap {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }

    .aether-node-name .aether-glass,
    .aether-node-name .aether-glass.is-open {
        height: auto;
        min-height: 44px;
    }

    .aether-ports {
        display: flex;
        justify-content: flex-start;
        gap: 6px;
        order: 3;
    }

    .aether-port {
        font-size: 13px;
        padding: 6px 8px;
    }

    .aether-status {
        order: 2;
        line-height: 1.4;
    }

    .aether-meter,
    .aether-track,
    .aether-fill {
        max-width: 100%;
    }

    .aether-traffic-line,
    .aether-note,
    .aether-cell-value,
    .aether-node-name strong {
        overflow-wrap: anywhere;
    }

    .aether-info {
        min-width: 28px;
        min-height: 28px;
    }
}


/* fv-phone-390b service controls. Desktop rules above stay. */
@media (max-width: 767px) {
    .aether-board input,
    .aether-board select,
    .aether-board button,
    .aether-field,
    .aether-field-input,
    .aether-field-cover,
    .aether-solid,
    .aether-outline,
    .aether-info {
        min-height: 44px;
        font-size: 16px;
    }

    .aether-info {
        min-width: 44px;
    }
}


/* fv-service-pass: due date first, compact protocol list. */
.aether-summary {
    padding: 0 16px 16px;
}
.aether-panel > .aether-stats {
    padding-bottom: 4px;
}
.aether-summary .aether-meter {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 8px;
}
.aether-summary .aether-track {
    width: 100%;
    margin: 0;
}
.aether-summary .aether-traffic-line {
    margin: 8px 0 0;
}
.aether-due {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 10px 0 4px;
    font-size: 14px;
    font-weight: 600;
}
.aether-due span {
    color: #7b8b9a;
    font-size: 13px;
    font-weight: 600;
}
.aether-due strong {
    color: #4090cc;
    font-weight: 600;
}
.aether-proto-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}
.aether-proto {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    min-width: 0;
    max-width: 100%;
}
.aether-proto .aether-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
}
.aether-proto .aether-card-title h3 {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.aether-proto-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}
.aether-proto .aether-field {
    position: relative;
    overflow: hidden;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    height: 36px;
}
.aether-proto .aether-solid,
.aether-proto .aether-outline {
    width: auto;
    flex: 0 0 auto;
    min-height: 36px;
}
.aether-actions,
.aether-node,
.aether-pack-row,
.aether-board {
    max-width: 100%;
}
@media (max-width: 767px) {
    .aether-proto-row {
        grid-template-columns: 1fr;
    }
    .aether-proto {
        flex-wrap: wrap;
        align-items: stretch;
    }
    .aether-proto .aether-card-title {
        flex: 1 1 100%;
    }
    .aether-proto-actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
    }
    .aether-proto .aether-field {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        height: 44px;
    }
    .aether-proto .aether-solid,
    .aether-proto .aether-outline,
    .aether-proto .aether-clash {
        width: auto;
        min-height: 44px;
        min-width: 64px;
        justify-content: center;
        padding: 0 12px;
    }
    .aether-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        max-width: 100%;
    }
    .aether-actions a {
        flex: 1 1 calc(50% - 8px);
        width: auto;
        max-width: 100%;
        min-height: 44px;
        justify-content: center;
        box-sizing: border-box;
    }
    .aether-node,
    .aether-node-top,
    .aether-pack {
        max-width: 100%;
        box-sizing: border-box;
    }
}


/* fv-detail-facts: five billing facts in one row; reveal stays in the subscription row. */
@media (min-width: 992px) {
    .aether-stats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
.aether-proto .aether-field,
.aether-proto-actions .aether-field {
    position: relative;
    overflow: hidden;
}
.aether-proto .aether-field-cover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 8px;
    background: transparent;
    color: #5c6b7a;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html[data-theme="dark"] .aether-proto .aether-field-cover {
    background: transparent;
    color: #a1a1a1;
}
