.device-debug-dialog { width: min(1320px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #dce6ee; border-radius: 18px; color: #314a62; background: #f8fbfd; box-shadow: 0 24px 100px #23374d33; }
.device-debug-dialog::backdrop { background: #21374c66; backdrop-filter: blur(3px); }
.debug-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid #e2eaf1; background: #fff; }
.debug-header span { color: #6b8196; font-size: 13px; }
.debug-header h2 { margin: 4px 0 0; font-size: 21px; overflow-wrap: anywhere; }
.debug-header button { font-size: 28px; flex-shrink: 0; }
.debug-body { padding: 14px 24px 24px; font-size: 15px; }
#debugFeedback { color: #627c91; margin: 0 0 14px; }
#debugContent[hidden] { display: none !important; }
.debug-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.debug-summary article { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px; background: #fff; border: 1px solid #dde8f0; border-radius: 12px; }
.debug-summary article span { font-size: 13px; color: #72869a; }
.debug-summary article strong { font-size: 16px; }
.debug-topic { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.debug-topic code { padding: 6px 10px; background: #e8f3fc; color: #29658e; border-radius: 7px; overflow-wrap: anywhere; }
.debug-topic>span,.debug-note { font-size: 13px; line-height: 1.7; color: #74879a; overflow-wrap: anywhere; }
.debug-issue { padding: 11px 14px; border-radius: 9px; background: #eef4fa; border-left: 3px solid #7da2c8; line-height: 1.65; overflow-wrap: anywhere; margin: 8px 0; }
.debug-issue.error { background: #fff0ef; border-color: #de7c73; color: #aa4e46; }
.debug-issue.warning { background: #fff6e5; border-color: #d8b05d; color: #856331; }
.debug-issue.success { background: #edf8f3; border-color: #64b092; color: #358568; }
.debug-columns { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 2fr); gap: 16px; margin: 18px 0; }
.debug-records-panel,.debug-payload-panel { background: #fff; border: 1px solid #dce7ef; border-radius: 12px; padding: 16px; min-width: 0; }
.debug-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.debug-panel-head h3 { margin: 0; font-size: 16px; }
.debug-panel-head label { font-size: 13px; white-space: nowrap; }
.debug-records { display: grid; gap: 8px; max-height: 570px; overflow-y: auto; }
.debug-record { display: flex; flex-direction: column; gap: 7px; width: 100%; padding: 12px; text-align: left; border: 1px solid #e3eaf1; border-radius: 9px; background: #fbfcfe; color: #48647c; cursor: pointer; }
.debug-record>span:first-child { display: flex; flex-direction: column; gap: 6px; }
.debug-record strong { font-size: 14px; }
.debug-record small,.debug-record>span:last-child { font-size: 12px; color: #788b9b; }
.debug-record.selected { border-color: #7db5d7; background: #eef8fd; box-shadow: inset 3px 0 #70a8c9; }
#debugPayload { min-height: 180px; max-height: 370px; overflow: auto; padding: 16px; border-radius: 10px; background: #f0f5f9; border: 1px solid #e1eaf0; color: #26475f; font: 14px/1.75 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.debug-parse { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.debug-parse h4 { margin: 16px 0 5px; font-size: 14px; }
.debug-parse ul { padding-left: 20px; }
.debug-fields { display: flex; flex-wrap: wrap; gap: 6px; }
.debug-fields span { padding: 4px 8px; background: #f0f6fa; border-radius: 6px; }
.debug-warning { color: #957135; }
.debug-empty { padding: 20px 8px; color: #748b9c; line-height: 1.7; }
@media(max-width:760px) { .device-debug-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); } .debug-header { padding: 14px; } .debug-body { padding: 14px; } .debug-summary { grid-template-columns: 1fr; } .debug-summary article { flex-direction: row; justify-content: space-between; gap: 8px; padding: 12px; } .debug-summary article strong { font-size: 14px; } .debug-columns { grid-template-columns: 1fr; } .debug-records { max-height: 200px; } }
