:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172235;
  background: #eef2f6;
  font-synthesis: none;
  --ink: #172235;
  --muted: #697789;
  --line: #dbe3ec;
  --surface: #ffffff;
  --accent: #e4563f;
  --accent-dark: #c84230;
  --blue: #28699f;
  --success: #257555;
  --danger: #b4312b;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #eef2f6; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding: 30px 0 34px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.top-links { display: flex; align-items: center; gap: 14px; }
.top-links a { color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.top-links a:hover { color: #194b77; text-decoration: underline; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: white; background: var(--accent); box-shadow: 0 8px 18px rgba(228, 86, 63, .2); font-weight: 800; letter-spacing: .04em; }
.eyebrow { margin: 0 0 5px; color: #8b96a3; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 23px; letter-spacing: -.02em; }
h2 { margin-bottom: 0; font-size: 20px; letter-spacing: -.02em; }
h3 { margin-bottom: 5px; font-size: 18px; }
.mode-badge, .result-status { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fafcfe; font-size: 12px; font-weight: 700; }
.workspace { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 14px 34px rgba(33, 46, 61, .06); }
.query-panel { padding: 27px 30px 24px; }
.result-panel { min-height: 420px; padding: 27px 30px 30px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.secure-note { color: var(--success); font-size: 12px; font-weight: 700; }
.method-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: min(100%, 420px); padding: 4px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 9px; background: #f4f7fa; }
.method { border: 0; border-radius: 5px; padding: 10px 12px; color: var(--muted); background: transparent; font-size: 13px; font-weight: 700; }
.method.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(25, 33, 43, .1); }
.field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.input-wrap { display: flex; align-items: center; max-width: 760px; overflow: hidden; border: 1px solid #cbd5df; border-radius: 9px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(229, 83, 61, .12); }
input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 13px 14px; color: var(--ink); background: transparent; }
.visibility { border: 0; border-left: 1px solid var(--line); padding: 12px 11px; color: var(--muted); background: transparent; font-size: 12px; }
.field-hint { min-height: 28px; margin: 9px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: min(100%, 280px); border: 0; border-radius: 9px; padding: 13px 15px; color: white; background: var(--accent); box-shadow: 0 7px 14px rgba(228, 86, 63, .18); font-weight: 800; transition: background .2s, transform .2s, box-shadow .2s; }
.primary-button:hover { background: var(--accent-dark); }
.primary-button:hover { box-shadow: 0 9px 17px rgba(228, 86, 63, .24); }
.primary-button:active { transform: translateY(1px); }
.primary-button[disabled] { cursor: wait; opacity: .65; }
.button-arrow { font-size: 18px; line-height: 1; }
.connection-row { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #d0a52c; }
.result-heading { margin-bottom: 0; }
.result-status.success { color: var(--success); border-color: #b8dfcc; background: #f1fbf5; }
.result-status.error { color: var(--danger); border-color: #e9beb9; background: #fff5f4; }
.empty-state, .error-state { display: grid; place-items: center; min-height: 260px; margin-top: 22px; padding: 24px; border: 1px dashed #d5dee8; border-radius: 12px; text-align: center; color: var(--muted); }
.empty-state h3, .error-state h3 { color: var(--ink); }
.empty-state p, .error-state p { max-width: 330px; margin-bottom: 0; font-size: 13px; line-height: 1.55; }
.empty-icon, .error-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 14px; border-radius: 50%; color: #7d8894; background: #f2f5f7; font-size: 25px; font-weight: 800; }
.error-icon { color: var(--danger); background: #fff0ef; }
.result-content { padding-top: 22px; }
.device-summary { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #dce7f0; border-radius: 12px; background: #f7fafc; }
.device-icon { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 auto; border-radius: 16px; color: white; background: var(--blue); box-shadow: 0 7px 15px rgba(40, 105, 159, .2); font-size: 24px; font-weight: 900; }
.device-summary p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.info-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.info-grid .info-item { border: 1px solid var(--line); border-radius: 10px; }
.info-item { display: grid; gap: 8px; min-width: 0; padding: 14px; background: white; }
.info-item span { color: var(--muted); font-size: 12px; }
.info-item strong { overflow: hidden; text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.all-fields { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 19px; }
.all-fields-heading { margin-bottom: 11px; color: var(--ink); font-size: 14px; font-weight: 800; }
.all-fields-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.all-fields-grid .info-item { min-width: 0; border: 1px solid var(--line); border-radius: 10px; }
.all-fields-grid .info-item strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.raw-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.raw-details summary { cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 700; }
pre { overflow: auto; margin: 12px 0 0; padding: 13px; border-radius: 6px; color: #dce7f3; background: #202a35; font-size: 12px; line-height: 1.5; }
.hidden { display: none !important; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 17px; color: #87919d; font-size: 12px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .all-fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .topbar { align-items: flex-start; } .topbar-actions { align-items: flex-end; flex-direction: column-reverse; gap: 8px; } .top-links { gap: 9px; } }
@media (max-width: 600px) { .shell { width: min(100% - 24px, 560px); padding-top: 20px; } .query-panel, .result-panel { padding: 22px 18px; } .topbar { align-items: flex-start; } .topbar-actions { max-width: 54%; } .top-links { align-items: flex-end; flex-direction: column; gap: 4px; } .mode-badge { margin-top: 2px; } .info-grid, .all-fields-grid { grid-template-columns: 1fr; } .footer { flex-direction: column; gap: 5px; align-items: flex-start; } }
