.wd-inventory-scope{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:12px 0 16px;color:#334155}
.wd-inventory-scope .wd-account-scope-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid #dbe3ef;border-radius:12px;background:#fff}
.wd-inventory-scope .wd-account-scope-switch button{padding:9px 16px;border:0;border-radius:9px;background:#fff!important;color:#253247!important;font:inherit;font-weight:600;cursor:pointer}
.wd-inventory-scope .wd-account-scope-switch button[aria-pressed=true]{background:#396fc5!important;color:#fff!important;box-shadow:0 2px 6px #396fc52b}
.wd-inventory-filtered,[data-inventory-empty][hidden]{display:none!important}
[data-daily-publication-filter]{color-scheme:light!important;background:#fff!important;color:#253247!important;border:1px solid #cbd5e1;border-radius:7px;padding:10px 12px;font:inherit}
[data-daily-publication-filter] option{background:#fff!important;color:#253247!important}
.wd-feature-mask{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:24px;background:rgba(21,33,51,.48)}
.wd-feature-modal{width:min(560px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 32px));overflow:auto;background:#fff;color:#253247;border:1px solid #dce2eb;border-radius:12px;box-shadow:0 24px 64px rgba(21,33,51,.28)}
.wd-feature-modal header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e2e8f0}.wd-feature-modal header h3{margin:0;font-size:18px}.wd-feature-modal header button{border:0;background:transparent;color:#59687d;font-size:24px;cursor:pointer}.wd-feature-modal-body{display:grid;gap:16px;padding:20px}.wd-feature-device-summary{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#f6f8fb;border:1px solid #e0e5ed;border-radius:8px}.wd-feature-device-summary strong{font-size:16px}.wd-feature-device-summary span{color:#59687d}.wd-feature-badge{margin-left:auto;font-style:normal}.wd-feature-badge.bad{color:#b42335;background:#fdebec;border:1px solid #e7a3aa;border-radius:999px;padding:3px 8px;font-size:12px}.wd-feature-field{display:grid;gap:7px}.wd-feature-field>span{font-weight:650}.wd-feature-field textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #cbd5e1;border-radius:7px;padding:10px;color:#253247;background:#fff;font:inherit;line-height:1.6}.wd-feature-field small{color:#76849a;line-height:1.5}.wd-feature-error{margin:0;color:#b42335;background:#fff1f2;border:1px solid #f3c4ca;border-radius:6px;padding:8px 10px;font-size:13px}.wd-feature-actions{display:flex;justify-content:flex-end;gap:8px}.wd-feature-button{border:1px solid #d0d8e4;border-radius:6px;padding:9px 14px;background:#fff;color:#35445b;cursor:pointer;font:inherit}.wd-feature-button.danger{background:#c94040;color:#fff;border-color:#c94040}.wd-feature-button:disabled{opacity:.6;cursor:not-allowed}.wd-feature-device-abnormal{background:#fff4f4!important;border-color:#e3a0a7!important}.wd-feature-issue-note{display:block;margin-top:3px;color:#a42c35;font-size:12px}.wd-feature-loading{color:#76849a}.wd-feature-migration{margin-top:16px}.wd-feature-migration .wd-field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wd-feature-migration select,.wd-feature-migration input,.wd-feature-migration textarea{width:100%;box-sizing:border-box;border:1px solid #d4dce7;border-radius:6px;padding:9px;background:#fff;color:#253247;font:inherit}.wd-feature-migration .wd-field{display:grid;gap:6px}.wd-feature-migration .wd-field>span{font-weight:650}.wd-feature-migration .wd-field-note{color:#76849a;font-size:12px;line-height:1.45}.wd-feature-migration .wd-device-migration-choice{margin-top:14px}.wd-feature-migration .wd-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.wd-feature-migration [data-wd-feature-migration-tab]{position:relative}@media(max-width:620px){.wd-feature-migration .wd-field-row{grid-template-columns:1fr}.wd-feature-modal{padding-bottom:env(safe-area-inset-bottom)}}
/* Device migration modal: keep the old static shell aligned with the standard dialog language. */
.wd-feature-modal-body > .wd-feature-migration { margin: 0; display: grid; gap: 18px; color: #253247; }
.wd-feature-migration-intro { margin: 0; color: #59687d; font-size: 13px; line-height: 1.6; }
.wd-feature-migration .wd-field-row { gap: 16px; }
.wd-feature-migration .wd-field > span { color: #253247; font-size: 13px; }
.wd-feature-migration .wd-field-note { display: block; margin-top: 2px; }
.wd-feature-migration .wd-device-migration-preview { margin: 0; background: #f7f9fc; border: 1px solid #e0e6ef; color: #59687d; }
.wd-feature-migration .wd-device-migration-preview strong { color: #253247; font-size: 14px; }
.wd-feature-migration .wd-device-migration-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.wd-feature-migration .wd-device-migration-choice label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 13px 14px; border: 1px solid #d9e1eb; border-radius: 10px; background: #f8fafc; cursor: pointer; }
.wd-feature-migration .wd-device-migration-choice label:has(input:checked) { border-color: #3d73d1; background: #eef4ff; box-shadow: 0 0 0 2px rgba(61,115,209,.10); }
.wd-feature-migration .wd-device-migration-choice strong { display: block; color: #253247; font-size: 13px; line-height: 1.4; }
.wd-feature-migration .wd-device-migration-choice small { display: block; margin-top: 4px; color: #68778b; font-size: 12px; line-height: 1.5; }
.wd-feature-migration .wd-ledger-block { margin: 0; padding: 14px; border: 1px solid #e0e6ef; border-radius: 10px; background: #f7f9fc; }
.wd-feature-migration .wd-ledger-block h4 { margin: 0 0 12px; color: #253247; font-size: 14px; }
.wd-feature-migration .wd-dialog-actions { margin: 0; padding-top: 4px; border-top: 1px solid #e6ebf1; }
@media (max-width: 620px) { .wd-feature-migration .wd-device-migration-choice { grid-template-columns: 1fr; } }

/* Match the device form controls and keep migration information in readable groups. */
.wd-feature-modal,.wd-feature-migration select{color-scheme:light!important}
.wd-feature-migration select option,.wd-feature-migration select optgroup{background-color:#fff!important;color:#253247!important}
html body .wd-modal-mask .wd-modal .wd-feature-migration select option:checked{background-color:#eaf1ff!important;color:#253247!important}
.wd-feature-migration select option:disabled{background-color:#f8fafc!important;color:#64748b!important}
.wd-modal.wd-migration-modal{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 48px);border-radius:16px;overflow:auto;box-sizing:border-box}
.wd-migration-modal>header{position:sticky;top:0;z-index:2;background:#fff;padding:20px 24px}
.wd-migration-modal>header h3{font-size:19px;font-weight:700;letter-spacing:0}
.wd-migration-modal>header button{width:32px;height:32px;display:grid;place-items:center;padding:0;border:1px solid #e2e8f0;border-radius:7px;background:#f8fafc;line-height:1}
.wd-migration-modal .wd-feature-modal-body{padding:20px 24px 0}
.wd-feature-migration{font-size:14px;line-height:1.5;min-width:0}
.wd-feature-migration .wd-migration-section-title{display:flex;align-items:center;gap:8px;margin:4px 0 -6px;font-size:14px;font-weight:650;color:#253247}
.wd-feature-migration .wd-migration-section-title b{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#edf3ff;color:#396bba;font-size:12px}
.wd-feature-migration .wd-field-row{align-items:start;margin:0}
.wd-feature-migration .wd-field{margin:0;min-width:0;gap:7px}
.wd-feature-migration .wd-field select,.wd-feature-migration .wd-field input:not([type=radio]),.wd-feature-migration .wd-field textarea{min-height:42px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#253247;font-size:14px;line-height:20px;box-shadow:none}
.wd-feature-migration .wd-field textarea{resize:vertical}
.wd-feature-migration .wd-field :is(select,input,textarea):focus-visible{outline:2px solid #8eb5fb;outline-offset:2px}
.wd-feature-migration .wd-device-migration-preview{display:block;padding:14px 16px;border-radius:8px}
.wd-feature-migration .wd-device-migration-preview>strong{display:flex;align-items:center;gap:10px;font-size:16px}
.wd-feature-migration .wd-device-migration-preview strong small{font-size:12px;font-weight:400;color:#68778b}
.wd-feature-migration .wd-device-migration-preview dl{display:grid;grid-template-columns:1fr 1.4fr 1.4fr;gap:12px;margin:12px 0 0}
.wd-feature-migration .wd-device-migration-preview dt{font-size:12px;color:#718096}
.wd-feature-migration .wd-device-migration-preview dd{margin:3px 0 0;color:#334155;font-size:13px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.wd-feature-migration .wd-device-migration-choice label{padding:15px 12px;border-radius:8px;gap:9px;background:#fff;transition:border-color .15s,background .15s}
.wd-feature-migration .wd-device-migration-choice input[type=radio]{appearance:auto;width:16px!important;height:16px!important;min-width:16px;min-height:16px;padding:0!important;margin:2px 0 0!important;accent-color:#396fc5;box-shadow:none}
.wd-feature-migration .wd-device-migration-choice strong{font-size:14px}
.wd-feature-migration .wd-device-migration-choice small{font-size:12px;line-height:1.7}
.wd-feature-migration .wd-ledger-block{display:grid;gap:16px;padding:16px;background:#f8fafc}
.wd-feature-migration .wd-ledger-block .wd-migration-section-title{margin:0}
.wd-feature-migration .wd-dialog-actions{position:sticky;bottom:0;z-index:1;display:flex;justify-content:flex-end;gap:10px;margin:0 -24px;padding:16px 24px;background:#fff;border-top:1px solid #e2e8f0}
.wd-feature-migration .wd-dialog-actions .wd-btn{min-height:40px;min-width:76px;padding:9px 16px;border-radius:7px;font-size:14px;font-weight:600;line-height:20px;box-shadow:none}
.wd-feature-migration .wd-dialog-actions .primary{background:#396fc5!important;border:1px solid #396fc5!important;color:#fff!important}
.wd-feature-migration .wd-dialog-actions .ghost{background:#fff!important;border:1px solid #d4dce7!important;color:#475569!important}
.wd-feature-migration .wd-dialog-actions .primary:disabled{background:#a6bfe6!important;border-color:#a6bfe6!important;color:#fff!important;opacity:1;cursor:not-allowed}
.wd-feature-migration [hidden]{display:none!important}
@media(max-width:620px){.wd-modal.wd-migration-modal{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.wd-migration-modal>header{padding:16px}.wd-migration-modal .wd-feature-modal-body{padding:16px 16px 0}.wd-feature-migration .wd-dialog-actions{margin:0 -16px;padding:14px 16px}.wd-feature-migration .wd-device-migration-preview dl{grid-template-columns:1fr 1fr}.wd-feature-migration .wd-field-row{grid-template-columns:1fr}.wd-feature-mask{padding:12px}}
