/* Aptora Equipment Decoder widget styles (scoped under .aed-widget). */
.aed-widget { --aed-accent: #0f3d6e; max-width: 520px; margin: 0 auto; }
.aed-widget * { box-sizing: border-box; }

.aed-card {
    border: 1px solid var(--aed-border, #e2e8f0);
    border-radius: var(--aed-radius, 14px);
    padding: 22px 22px 14px;
    background: var(--aed-surface, #fff);
    box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--aed-text, #1e293b);
}

.aed-title { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; color: var(--aed-heading, var(--aed-accent)); line-height: 1.2; }
.aed-sub { margin: 0 0 14px; color: var(--aed-muted, #64748b); font-size: .92rem; }

.aed-form { display: flex; flex-direction: column; gap: 10px; }
.aed-label { display: flex; flex-direction: column; font-size: .82rem; font-weight: 600; color: #475569; gap: 4px; }
.aed-input {
    width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 9px;
    font-size: .95rem; font-family: inherit; color: #1e293b; background: #fff;
}
.aed-input:focus { outline: none; border-color: var(--aed-accent); box-shadow: 0 0 0 3px rgba(15, 61, 110, .12); }

.aed-btn {
    width: 100%; padding: 12px 16px; border: 0; border-radius: 9px; cursor: pointer;
    background: var(--aed-accent); color: var(--aed-button-text, #fff); font-size: 1rem; font-weight: 700;
    font-family: inherit; transition: filter .15s ease;
}
.aed-btn:hover { filter: brightness(1.08); }
.aed-btn:disabled { opacity: .6; cursor: default; }

.aed-hint { font-size: .76rem; color: #94a3b8; margin-top: 2px; }

.aed-result { margin-top: 16px; }
.aed-msg { padding: 10px 0; color: #475569; font-size: .92rem; }
.aed-err { color: #b91c1c; }

.aed-banner { border-radius: 10px; padding: 11px 14px; font-size: .9rem; margin-bottom: 12px; line-height: 1.4; }
.aed-banner-warn { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.aed-banner-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

.aed-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.aed-table th, .aed-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.aed-table th { color: var(--aed-muted, #64748b); font-weight: 600; width: 45%; }
.aed-table td { color: var(--aed-text, #1e293b); font-weight: 600; }

.aed-lead { margin-top: 18px; border-top: 2px solid var(--aed-border, #f1f5f9); padding-top: 16px; }
.aed-lead-head { font-size: 1.05rem; font-weight: 800; color: var(--aed-heading, var(--aed-accent)); }
.aed-lead-co { font-size: .85rem; color: var(--aed-muted, #64748b); margin: 2px 0 12px; }
.aed-lead-form { display: flex; flex-direction: column; gap: 9px; position: relative; }
.aed-ts { margin: 2px 0; }
.aed-l-status { font-size: .82rem; min-height: 1em; }

.aed-thanks {
    background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534;
    border-radius: 10px; padding: 16px; font-size: .95rem; text-align: center; font-weight: 600;
}

.aed-attrib { margin-top: 14px; text-align: center; font-size: .76rem; color: #94a3b8; }
.aed-attrib a { color: #64748b; font-weight: 700; text-decoration: none; }
.aed-attrib a:hover { text-decoration: underline; }
