/* Public electric meter V2 presentation.
 * Activated by JS only for the desktop public-area electric-meter tab.
 * Keeps the existing six house tabs and the room/mobile/photo styles untouched.
 */
@media (min-width: 769px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page {
    --pmv2-blue: #006cfd;
    --pmv2-blue-hover: #1d4ed8;
    --pmv2-blue-text: #006cfd;
    --pmv2-blue-soft: #eff6ff;
    --pmv2-bg: #f3f8fe;
    --pmv2-card: #fff;
    --pmv2-border: #dbe8f7;
    --pmv2-text: #10154f;
    --pmv2-muted: #6b7f9d;
    --pmv2-green: #16a34a;
    --pmv2-red: #dc2626;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page #dt-device.pmv2-device.active {
    grid-column: 1 / -1 !important;
    min-width: 0;
    width: 100% !important;
    padding: 0 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page #dt-device.pmv2-device > .dt-device-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    min-width: 0;
    gap: 3px !important;
    padding: 3px !important;
    margin: 0 0 10px !important;
    overflow: visible !important;
    background: #eaf1f9 !important;
    border: 1px solid #dce8f5 !important;
    border-radius: 7px !important;
    box-sizing: border-box;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page #dt-device.pmv2-device > .dt-device-tabs > .dt-device-tab {
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 36px;
    margin: 0 !important;
    padding: 8px !important;
    white-space: nowrap;
    border: 1px solid transparent !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: #6b7f9d !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page #dt-device.pmv2-device > .dt-device-tabs > .dt-device-tab.active {
    color: #006cfd !important;
    background: #fff !important;
    border-color: #cfe0f5 !important;
    box-shadow: 0 1px 4px #29466a09 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page #dt-device-content.pmv2-root {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 310px) !important;
    gap: 12px !important;
    min-width: 0;
    width: 100% !important;
    align-items: start;
    color: var(--pmv2-text);
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-main,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-side {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-side {
    gap: 12px !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-card,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-main > .hmc-card,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-side > .hmc-card,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-main > .gq-meter-history,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-main > .gq-meter-records {
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--pmv2-border) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 1px 4px #29466a08 !important;
    box-sizing: border-box;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-card-head,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hd {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--pmv2-text) !important;
    font-size: 13px !important;
    line-height: 1.4;
    font-weight: 700 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 32px;
    margin: 0 !important;
    padding: 0 2px !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-hdr .nm {
    font-size: 16px !important;
    line-height: 1.4;
    font-weight: 700 !important;
    color: var(--pmv2-text);
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-hdr .sub {
    color: var(--pmv2-muted);
    font-size: 12px !important;
    font-weight: 400;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-toolbar,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-toolbar {
    justify-content: flex-end;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-sync-entry {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-btn,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-qk,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-save-btn,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-sync-entry .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 1px solid #cfe0f5 !important;
    border-radius: 5px !important;
    background: #eef5ff !important;
    color: #006cfd !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 12px !important;
    line-height: 1.4;
    font-weight: 600 !important;
    white-space: nowrap;
    cursor: pointer;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-btn.primary,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-btn--primary {
    color: #fff !important;
    background: #006cfd !important;
    border-color: #006cfd !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-btn.danger,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-btn--danger,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-qk[onclick*="unbind"] {
    color: #dc2626 !important;
    background: #fff5f5 !important;
    border-color: #fecaca !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-btn:disabled,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root button:disabled {
    color: #9aa7ba !important;
    background: #f5f7fb !important;
    border-color: #e2e8f0 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-summary,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .gq-meter-overview {
    display: grid !important;
    grid-template-columns: minmax(150px, 1fr) minmax(0, 1.65fr);
    gap: 8px 16px;
    align-items: center;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .gq-meter-overview > .hd {
    grid-column: 1 / -1;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .gq-meter-total {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.25;
    color: var(--pmv2-text);
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-metrics,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .gq-meter-metrics {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin: 0 !important;
    min-width: 0;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-metrics > *,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .gq-meter-metrics > div {
    min-width: 0;
    min-height: 56px;
    padding: 9px 7px !important;
    border: 1px solid #e1ecf9 !important;
    border-radius: 6px !important;
    background: #f4f9ff !important;
    color: #6b7f9d;
    text-align: left;
    font-size: 11px;
    line-height: 1.45;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-metrics strong {
    display: block;
    color: #10154f;
    font-size: 19px;
    line-height: 1.35;
    margin-top: 4px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-usage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(190px, 1fr);
    gap: 12px;
    min-width: 0;
    align-items: start;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-usage-grid > * {
    min-width: 0;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-stat-list {
    border: 1px solid #e6eff9;
    border-radius: 6px;
    background: #f5faff;
    padding: 5px 10px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-stat-list > * {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #e6edf7;
    color: #6b7f9d;
    font-size: 12px;
    line-height: 1.4;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-stat-list > :last-child {
    border-bottom: 0;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-stat-list strong {
    color: #10154f;
    font-size: 16px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-tabs,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .gq-device-record-tabs {
    display: flex;
    gap: 18px;
    min-width: 0;
    margin: 0 !important;
    border-bottom: 1px solid #dce8f7;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-tabs > button,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .gq-device-record-tabs > button {
    padding: 8px 3px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #6b7f9d;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    cursor: pointer;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-tabs > button[aria-selected="true"],
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-tabs > button.active,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .gq-device-record-tabs > button[aria-selected="true"] {
    color: #006cfd;
    border-bottom-color: #006cfd;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-mode-tabs,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-seg {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-mode-tabs > *,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-seg-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    padding: 6px 10px !important;
    border: 1px solid #e0eaf7 !important;
    border-radius: 6px !important;
    background: #f4f8fd !important;
    color: #5b7293 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-mode-tabs .active,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-mode-tabs [aria-selected="true"],
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-seg-btn.on {
    background: #eff6ff !important;
    color: #006cfd !important;
    border-color: #9cc0fb !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-mode-tabs small,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-seg-btn small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 400;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-share-controls,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-share-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px !important;
    color: #647b9b;
    font-size: 12px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-chip {
    padding: 5px 8px;
    border: 1px solid #dbe8f7;
    border-radius: 5px;
    color: #6b7f9d;
    background: #fff;
    font-size: 12px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-chip.on {
    border-color: #bfd7ff;
    color: #006cfd;
    background: #eff6ff;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-table-scroll {
    overflow-x: auto;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #e3ecf8;
    border-radius: 6px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-table {
    width: 100%;
    border-collapse: collapse;
    color: #4f6688;
    font-size: 12px;
    line-height: 1.45;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-table th {
    padding: 8px 7px;
    border-bottom: 1px solid #e0eafa;
    background: #eff6ff;
    color: #667f9f;
    font-size: 11px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-table td {
    padding: 7px;
    border-bottom: 1px solid #edf2f9;
    vertical-align: middle;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-table tr:last-child td {
    border-bottom: 0;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-table input[type="number"],
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-ratio {
    width: 66px !important;
    min-height: 29px;
    padding: 4px 5px !important;
    border: 1px solid #cfe0f5 !important;
    border-radius: 5px;
    background: #fff;
    color: #243d65;
    font-size: 12px !important;
    line-height: 1.4;
    text-align: right;
    box-sizing: border-box;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-table input:focus,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-ratio:focus {
    outline: 2px solid #dbeafe;
    outline-offset: 1px;
    border-color: #7aaafa !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-ratio:disabled {
    color: #9aa7ba;
    background: #f8fafc;
    border-color: #e2e8f0 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-footer,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-share-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #edf2f9;
    font-size: 12px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-kv,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-side .hmc-kv {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 7px;
    min-height: 30px;
    padding: 6px 0;
    border-bottom: 1px solid #edf2f9;
    align-items: start;
    color: #6b7f9d;
    font-size: 12px !important;
    line-height: 1.5;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-kv > :last-child,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-side .hmc-kv .v {
    min-width: 0;
    color: #243d65;
    text-align: left;
    overflow-wrap: anywhere;
    font-weight: 500;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-kv .note {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    color: #8a9bb3;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-note,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-share-note,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-hint-line {
    color: #7489a7;
    font-size: 11px !important;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-empty {
    padding: 20px 12px;
    color: #8a9bb3;
    text-align: center;
    font-size: 12px;
    line-height: 1.6;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root [hidden] {
    display: none !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #bfd0e8 transparent;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root ::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root ::-webkit-scrollbar-thumb {
    background: #bfd0e8;
    border-radius: 8px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root ::-webkit-scrollbar-track {
    background: transparent;
  }
}
@media (min-width: 769px) and (max-width: 1100px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page #dt-device-content.pmv2-root {
    grid-template-columns: minmax(0, 1fr) 260px !important;
    gap: 10px !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-usage-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .gq-meter-overview {
    column-gap: 10px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .gq-meter-total {
    font-size: 24px !important;
  }
}

/* Confirmation is shared by both clients and scoped to this new dialog only. */
.pmv2-risk{font:13px/1.65 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#40598b}.pmv2-risk dl{display:grid;grid-template-columns:75px minmax(0,1fr);gap:6px 12px;background:#f3f8ff;padding:12px;border-radius:8px;margin:12px 0}.pmv2-risk dt{color:#7589b6}.pmv2-risk dd{margin:0;color:#10154f;overflow-wrap:anywhere}.pmv2-risk label{display:flex;flex-direction:column;gap:6px}.pmv2-risk input{width:100%;box-sizing:border-box;border:1px solid #d9e7fb;border-radius:6px;padding:9px 10px;font:inherit}.pmv2-risk button{border:1px solid #d9e7fb;border-radius:6px;background:white;padding:9px 15px;color:#40598b;font:inherit;cursor:pointer}.pmv2-risk .pmv2-primary{background:#006cfd;border-color:#006cfd;color:white}.pmv2-risk-buttons{display:flex;gap:10px;margin-top:12px}.pmv2-risk-buttons button{flex:1}.pmv2-risk-warning{padding:10px;background:#fff8eb;border-radius:6px;color:#a16814}.pmv2-risk-error{color:#dc2626;min-height:20px}.pmv2-risk-success{color:#009c63}.pmv2-risk button:disabled{background:#edf2f8;color:#91a0b6;cursor:not-allowed}
@media(min-width:769px){.pmv2-summary>.pmv2-actions{grid-column:1/-1!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}.pmv2-summary>.pmv2-actions>div{display:flex!important;flex-wrap:wrap;gap:6px!important}.pmv2-summary>.pmv2-actions .hmc-qk{width:auto!important}.pmv2-summary>.pmv2-actions .hmc-hint-line{width:100%;margin:0}.pmv2-root .pmv2-table-scroll{overflow:auto}.pmv2-root .hmc-share-foot{flex-wrap:wrap}.pmv2-share-status{font-size:11px;color:#7589b6;flex:1 1 100%}.pmv2-root .hmc-ratio{width:62px}.pmv2-room-state{display:block;color:#7589b6;font-size:10px}.pmv2-switch{width:28px;height:16px;border:0;border-radius:10px;position:relative;background:#c5cfdf;cursor:pointer;padding:0}.pmv2-switch:before{content:'';position:absolute;top:2px;left:2px;width:12px;height:12px;background:white;border-radius:50%}.pmv2-switch[data-on="1"]{background:#00b86b}.pmv2-switch[data-on="1"]:before{left:14px}.pmv2-switch:disabled{opacity:.5}.pmv2-link{border:0;background:none;color:#006cfd;cursor:pointer}.pmv2-root .hmc-share-foot .hmc-save-btn{background:#006cfd!important;color:white!important}.pmv2-root [hidden]{display:none!important}}

@media(min-width:769px){.pmv2-root .gq-meter-records{display:block!important}.pmv2-chart{display:block;width:100%;height:135px}.pmv2-chart text{font-size:9px;fill:#6b7f9d}.pmv2-period{display:flex;flex-wrap:wrap;gap:6px;margin:3px 0 8px}.pmv2-period button{font:inherit;font-size:11px;border:1px solid #d9e7fb;background:white;color:#536b9c;border-radius:5px;padding:4px 10px;cursor:pointer}.pmv2-period .active{border-color:#006cfd;color:#006cfd;background:#eef7ff}.pmv2-period button:disabled{opacity:.45}.pmv2-card-head small{color:#7589b6;font-size:11px;font-weight:400}.pmv2-stat-list small{font-size:10px;color:#7589b6}.pmv2-main>.pmv2-tabs{margin-top:0!important}.pmv2-main>.gq-meter-history[hidden]{display:none!important}}

@media(min-width:769px){body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-summary>.pmv2-actions{grid-column:1/-1!important;grid-row:auto!important;border:0!important;padding:0!important;background:none!important;box-shadow:none!important;width:100%!important}body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-summary>.pmv2-actions>div{display:flex!important;flex-wrap:wrap;gap:6px!important}body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-sync-entry .btn{width:auto!important}.pmv2-price-choice{flex-direction:row!important;align-items:center;border-bottom:1px solid #e5edf8;padding:8px}.pmv2-price-choice input{width:auto!important}}

@media(min-width:769px){body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page #dt-device-content.pmv2-root [hidden]{display:none!important}}

/* Reference alignment; only the public electric-meter desktop content. */
@media (min-width:769px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-hdr {
    flex-wrap:nowrap; gap:8px; min-height:32px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-hdr > .nm { flex:1; min-width:0; font-size:16px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-header-right { display:flex; flex:0 0 auto; align-items:center; gap:8px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-header-right .hmc-sync-entry { flex-wrap:nowrap; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-header-right .hmc-upd { font-size:10px; line-height:1.25; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-header-right .hmc-st { white-space:nowrap; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-summary {
    grid-template-columns:minmax(220px,1.1fr) minmax(140px,.72fr) minmax(320px,1.65fr)!important;
    gap:8px 14px!important; padding:10px 12px!important; align-items:center!important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-meter-identity {
    display:flex; align-items:center; gap:10px; min-width:0; align-self:stretch; border-right:1px solid #e5edf8; padding-right:12px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-device-symbol {
    display:flex; align-items:center; justify-content:center; width:62px; height:76px; flex:0 0 62px;
    border:1px solid #e1ecf9; border-radius:7px; background:#eff6ff; color:#006cfd; font-size:30px;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-identity-fields { flex:1; min-width:0; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-identity-fields > div { display:flex; align-items:baseline; gap:6px; padding:2px 0; font-size:11px; line-height:1.5; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-identity-fields span { flex:0 0 49px; color:#6b7f9d; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-identity-fields b { min-width:0; overflow-wrap:anywhere; font-weight:500; color:#243d65; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-reading,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings { min-width:0; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-reading > .hd { display:block!important; margin-bottom:3px!important; font-size:12px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-reading > .hd > .hmc-st-badge { display:none!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-reading > .gq-meter-total { margin:2px 0!important; font-size:25px!important; white-space:nowrap; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-reading #hmc-read-note { font-size:9px!important; line-height:1.4; color:#8a9bb3; margin:2px 0 0!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings { display:flex; flex-direction:column; gap:6px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings .gq-meter-metrics { gap:6px!important; grid-column:auto!important; grid-row:auto!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings .gq-meter-metrics > div { min-height:52px!important; padding:6px 8px!important; text-align:left!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings > .pmv2-actions { width:100%!important; border:0!important; box-shadow:none!important; background:transparent!important; padding:0!important; margin:0!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings > .pmv2-actions > div { display:flex!important; align-items:center; justify-content:flex-end; gap:5px!important; flex-wrap:wrap; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings .hmc-qk { width:auto!important; min-height:29px!important; padding:4px 7px!important; font-size:11px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-summary > .pmv2-summary-notes { grid-column:1/-1!important; display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 12px; padding-top:5px; border-top:1px solid #edf2f9; color:#8a9bb3; font-size:10px!important; line-height:1.4; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-summary-notes > div { display:flex!important; flex-wrap:wrap; align-items:baseline; gap:4px; background:none!important; border:0!important; margin:0!important; padding:0!important; font-size:10px!important; line-height:1.4!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-summary-notes #hmc-bal { font-size:10px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-usage-grid { grid-template-columns:minmax(0,1.9fr) minmax(205px,1fr); gap:12px; align-items:stretch; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-usage-main { min-width:0; padding-right:12px; border-right:1px solid #e8eff9; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-usage-main .pmv2-card-head,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-usage-statistics .pmv2-card-head { margin-bottom:5px!important; min-height:21px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-usage-statistics { min-width:0; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-coverage { color:#7489a7; font-size:10px; line-height:1.45; margin-top:5px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-field-group { border-top:1px solid #edf2f9; padding-top:7px; margin-top:7px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-field-group-label { color:#6b7f9d; font-size:10px; font-weight:600; line-height:1.4; margin-bottom:3px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-field-group .hmc-kv { min-height:27px; padding:4px 0; border:0; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-other-info .pmv2-kv { min-height:27px; padding:4px 0; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-share-control-row { display:flex; gap:6px; align-items:center; margin-bottom:5px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-share-control-row .hmc-share-total { margin-left:auto; display:flex; align-items:baseline; gap:6px; flex:0 0 auto; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-share-control-row .hmc-share-total .lbl { font-size:10px; color:#7489a7; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-share-control-row .hmc-share-total .val { font-size:14px; font-weight:700; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-duplicate-title { display:none!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root #hmc-share-note,
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root #hmc-vac-fold { font-size:10px!important; line-height:1.4; margin:3px 0!important; padding:0!important; color:#7489a7; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-share-foot { justify-content:flex-end; margin-top:6px!important; padding-top:6px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-share-foot .pmv2-share-status { flex:1 1 auto; }
}
@media (min-width:769px) and (max-width:1200px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-summary { grid-template-columns:minmax(190px,1.1fr) minmax(0,1fr)!important; gap:8px 12px!important; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings { grid-column:1/-1; flex-direction:row; align-items:center; gap:12px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings .gq-meter-metrics { flex:1; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings > .pmv2-actions { width:auto!important; flex:0 1 auto; max-width:45%; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-reading > .gq-meter-total { font-size:24px!important; }
}
@media (min-width:769px) and (max-width:1000px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .hmc-hdr { flex-wrap:wrap; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-header-right { margin-left:auto; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings { flex-direction:column; align-items:stretch; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-readings > .pmv2-actions { width:100%!important; max-width:none; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-usage-grid { grid-template-columns:minmax(0,1fr); gap:8px; }
  body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page .pmv2-root .pmv2-usage-main { border:0; padding:0; }
}

@media(min-width:769px){body #desktop-house-detail-modal .gq-v3.gq-device-page.pm-v2-electric-page #dt-device.pmv2-device.active{padding-top:var(--pmv2-upper-clearance,0px)!important}}
.pmv2-ops-table { display:none; }
@media(min-width:769px) {
  #dt-device-content.pmv2-root #hmc-records.pmv2-records-table > .pmv2-native-record { display:none!important; }
  #dt-device-content.pmv2-root #hmc-records > .pmv2-ops-table { display:table; width:100%; border-collapse:collapse; font-size:11px; line-height:1.4; color:#40598b; }
  #dt-device-content.pmv2-root .pmv2-ops-table th { padding:6px 7px; text-align:left; font-weight:500; background:#f1f7fd; color:#7589b6; border-bottom:1px solid #dfebfa; white-space:nowrap; }
  #dt-device-content.pmv2-root .pmv2-ops-table td { padding:6px 7px; border-bottom:1px solid #edf2f9; vertical-align:top; overflow-wrap:anywhere; }
  #dt-device-content.pmv2-root .pmv2-ops-table td:first-child { width:96px; white-space:nowrap; }
  #dt-device-content.pmv2-root .pmv2-ops-table .pmv2-record-result { color:#00a867; }
  #dt-device-content.pmv2-root .pmv2-ops-table .pmv2-record-failed { color:#f04453; }
}

@media(max-width:768px){.pmv2-meter-identity,.pmv2-other-info{display:none!important}}
@media(min-width:769px){.pmv2-readings .hmc-qk[onclick*="_hmcRefreshRead"]{order:-1}}

/* All three public device tabs share the full detail width; content grids stay native. */
@media (min-width: 769px) {
  body #desktop-house-detail-modal .gq-v3.gq-device-page #dt-device.public-device-nav-wide.public-device-nav-wide.active {
    padding-top: var(--public-device-clearance, 0px) !important;
    min-width: 0;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page #dt-device.public-device-nav-wide.public-device-nav-wide > .dt-device-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: var(--public-device-tabs-width) !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 44.5px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    gap: 3px !important;
    padding: 3px !important;
    margin: 0 0 10px !important;
    border: 1px solid #dce8f5 !important;
    border-radius: 7px !important;
    background: #fff !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page #dt-device.public-device-nav-wide.public-device-nav-wide > .dt-device-tabs > .dt-device-tab {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 8px !important;
    line-height: 20px !important;
    white-space: nowrap !important;
    border: 1px solid transparent !important;
    border-radius: 5px !important;
    color: #6b7f9d !important;
    background: #fff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page #dt-device.public-device-nav-wide.public-device-nav-wide > .dt-device-tabs > .dt-device-tab:hover:not(.active) {
    background: #f5f9ff !important;
  }
  body #desktop-house-detail-modal .gq-v3.gq-device-page #dt-device.public-device-nav-wide.public-device-nav-wide > .dt-device-tabs > .dt-device-tab.active {
    color: #006cfd !important;
    background: #eaf3ff !important;
    border-color: #bdd7ff !important;
    box-shadow: 0 1px 4px #29466a09 !important;
  }
}

/* Settled-day chart controls and records, scoped to the public electric meter. */
@media (min-width: 769px) {
  #dt-device-content.pmv2-root .pmv2-daily-head { display:flex; align-items:center; gap:8px; margin:0 0 5px; }
  #dt-device-content.pmv2-root .pmv2-daily-head label { display:flex; align-items:center; gap:7px; color:#6b7f9d; font-size:11px; }
  #dt-device-content.pmv2-root .pmv2-metric-select { min-width:0; width:155px; height:28px; padding:3px 7px; border:1px solid #d9e7fb; border-radius:5px; background:#fff; color:#40598b; font:inherit; }
  #dt-device-content.pmv2-root .pmv2-metric-select:focus { outline:2px solid #dbeafe; outline-offset:1px; border-color:#7aaafa; }
  #dt-device-content.pmv2-root .pmv2-range-caption { margin:0 0 4px; color:#7589b6; font-size:10px; line-height:1.5; overflow-wrap:anywhere; }
  #dt-device-content.pmv2-root .pmv2-daily-card .pmv2-chart { height:150px; }
  #dt-device-content.pmv2-root .pmv2-extreme-date { display:block; padding-top:2px; font-weight:400; font-size:10px; }
  #dt-device-content.pmv2-root .pmv2-note { margin-top:7px; color:#7589b6; font-size:10px; line-height:1.5; }
  #dt-device-content.pmv2-root .pmv2-daily-records .pmv2-table { min-width:660px; }
  #dt-device-content.pmv2-root .pmv2-daily-records .pmv2-table td:nth-child(2) { white-space:nowrap; font-size:10px; }
  #dt-device-content.pmv2-root .pmv2-daily-records .pmv2-note { margin-bottom:7px; }
  #dt-device-content.pmv2-root .pmv2-daily-records .pmv2-table td:last-child { min-width:86px; font-size:10px; }
}
