/* BARBAROS — smart.css: command palette + insights card */
html[data-buld-theme] .ap-search-btn svg { width: 18px; height: 18px; }

/* palette */
html[data-buld-theme] .sm-pal { position: fixed; inset: 0; z-index: 10010; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; opacity: 0; transition: opacity var(--bx-dur-hover) var(--bx-ease); }
html[data-buld-theme] .sm-pal.is-open { opacity: 1; }
html[data-buld-theme] .sm-pal__scrim { position: absolute; inset: 0; background: var(--bx-scrim); }
html[data-buld-theme] body .sm-pal__box { position: relative; width: min(640px, calc(100vw - 32px)); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden; padding: 0; box-shadow: var(--bx-shadow-3) !important; transform: translateY(8px) scale(.98); transition: transform var(--bx-dur-overlay) var(--bx-ease); }
html[data-buld-theme] .sm-pal.is-open .sm-pal__box { transform: none; }
html[data-buld-theme] .sm-pal__search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--buld-hairline); }
html[data-buld-theme] .sm-pal__search svg { width: 18px; height: 18px; color: var(--buld-ink-3); flex-shrink: 0; }
html[data-buld-theme] body .sm-pal__search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; height: 28px !important; font-size: 15px !important; color: var(--buld-ink-1) !important; font-family: inherit; }
html[data-buld-theme] .sm-pal__search input::placeholder { color: var(--buld-ink-4); }
html[data-buld-theme] .sm-pal kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; border: 1px solid var(--buld-divider); background: var(--buld-elevated); color: var(--buld-ink-3); font-family: inherit; font-size: 11px; font-weight: 600; }
html[data-buld-theme] .sm-pal__list { overflow: auto; padding: 6px; }
html[data-buld-theme] .sm-pal__group { padding: 10px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--buld-ink-3); }
html[data-buld-theme] .sm-pal__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
html[data-buld-theme] .sm-pal__item.is-active, html[data-buld-theme] .sm-pal__item:hover { background: var(--buld-cta-soft); }
html[data-buld-theme] .sm-pal__ico { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--buld-elevated); color: var(--buld-ink-2); flex-shrink: 0; }
html[data-buld-theme] .sm-pal__ico svg { width: 16px; height: 16px; }
html[data-buld-theme] .sm-pal__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
html[data-buld-theme] .sm-pal__text strong { font-size: 13.5px; font-weight: 600; color: var(--buld-ink-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-buld-theme] .sm-pal__text small { font-size: 12px; color: var(--buld-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-buld-theme] .sm-pal__enter { width: 14px; height: 14px; color: var(--buld-ink-4); opacity: 0; }
html[data-buld-theme] .sm-pal__item.is-active .sm-pal__enter { opacity: 1; }
html[data-buld-theme] .sm-pal__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; color: var(--buld-ink-3); font-size: 13px; }
html[data-buld-theme] .sm-pal__empty svg { width: 22px; height: 22px; }
html[data-buld-theme] .sm-pal__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--buld-hairline); font-size: 11.5px; color: var(--buld-ink-3); }
html[data-buld-theme] .sm-pal__foot span { display: inline-flex; align-items: center; gap: 4px; }

/* insights */
html[data-buld-theme] body #panel-overview .sm-ins { padding: 16px 18px; margin: 0 0 18px; background: var(--p-card-bg) !important; border: 1px solid var(--p-card-border) !important; }
html[data-buld-theme] .sm-ins__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
html[data-buld-theme] body .sm-ins__head h3 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--buld-ink-1) !important; background: transparent !important; border: 0 !important; padding: 0 !important; }
html[data-buld-theme] .sm-ins__head h3 svg { width: 16px; height: 16px; color: var(--buld-cta); }
html[data-buld-theme] body .sm-ins__head span { font-size: 12px; color: var(--buld-ink-3) !important; background: transparent !important; border: 0 !important; padding: 0 !important; }
html[data-buld-theme] .sm-ins__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
html[data-buld-theme] body .sm-ins__item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; background: var(--buld-elevated) !important; border: 1px solid transparent !important; box-shadow: none !important; }
html[data-buld-theme="light"] body .sm-ins__item { background: var(--buld-page) !important; }
html[data-buld-theme] .sm-ins__ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--buld-cta-soft); color: var(--buld-cta); }
html[data-buld-theme] .sm-ins__item--good .sm-ins__ico { background: var(--bx-success-soft); color: var(--buld-success); }
html[data-buld-theme] .sm-ins__item--warn .sm-ins__ico { background: var(--bx-warning-soft); color: var(--buld-warning); }
html[data-buld-theme] .sm-ins__ico svg { width: 16px; height: 16px; }
html[data-buld-theme] body .sm-ins__item strong { display: block; font-size: 13px; font-weight: 600; color: var(--buld-ink-1) !important; background: transparent !important; border: 0 !important; padding: 0 !important; }
html[data-buld-theme] body .sm-ins__item p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--buld-ink-3) !important; background: transparent !important; border: 0 !important; padding: 0 !important; }
html[data-buld-theme] .sm-ins__item .bx-btn { margin-top: 8px; }
