/* IoTronics components. Exported from the brand system; do not edit by hand. */
800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 24px; background: var(--surface); color: var(--ink); }
.iot-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }

/* Button */
.iot-btn { font: inherit; font-size: 15px; font-weight: 600; height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2); }
.iot-btn:hover { background: var(--surface-sunken); }
.iot-btn-primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.iot-btn-primary:hover { background: var(--orange); filter: brightness(1.06); }
.iot-btn-ghost { background: transparent; border-color: transparent; color: var(--orange-text); }
.iot-btn-ghost:hover { background: var(--orange-soft); }
.iot-btn-danger { background: var(--surface-raised); border-color: var(--red); color: var(--red); }
.iot-btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.iot-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* StatusBadge */
.iot-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 20px; font-weight: 600; padding: 0 var(--space-2); border-radius: var(--radius-sm); white-space: nowrap; }
.iot-status-dot { width: 8px; height: 8px; border-radius: var(--radius-dot); background: currentColor; }
.iot-status-online { background: var(--green-soft); color: var(--green); }
.iot-status-info { background: var(--blue-soft); color: var(--blue); }
.iot-status-warning { background: var(--amber-soft); color: var(--amber); }
.iot-status-fault, .iot-status-offline { background: var(--red-soft); color: var(--red); }
.iot-status-offline .iot-status-dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }

/* SpecTable */
.iot-spec { width: 100%; border-collapse: collapse; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.iot-spec caption { text-align: left; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); padding: 0 0 var(--space-2); }
.iot-spec thead th { background: var(--surface-sunken); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 2px solid var(--orange); }
.iot-spec tbody th, .iot-spec td { padding: var(--space-2) var(--space-3); border-top: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: top; }
.iot-spec tbody tr:first-child th, .iot-spec tbody tr:first-child td { border-top: 0; }
.iot-spec .num { text-align: right; font-family: var(--font-mono); font-size: 13px; }
.iot-spec .unit { color: var(--ink-muted); width: 1%; white-space: nowrap; }

/* DeviceCard */
.iot-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-4); display: grid; gap: var(--space-3); max-width: 360px; }
.iot-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.iot-card-title { margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.iot-card-model { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .02em; color: var(--ink-muted); margin-top: 2px; }
.iot-card-desc { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.iot-card-specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.iot-card-specs dt { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.iot-card-specs dd { margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--ink); }
.iot-card-foot { display: flex; gap: var(--space-2); flex-wrap: wrap; }
