/* ==========================================================================
   HEXA OS 2.1 — founder.css  (hidden SUDO founder console body)
   Built on the .sx-* styles in style.css. Only the new pieces live here.
   ========================================================================== */
.fx-dash { min-height: 100%; }
.fx-title-h { margin: 0; font-weight: 400; }
.fx-nav { position: sticky; top: 0; z-index: 1; padding: 8px 12px 0; background: rgba(2, 2, 6, .9); border-bottom: 1px solid rgba(var(--accent-2-rgb), .18); }
.sx-head { position: relative; }
.fx-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; padding-bottom: 8px; width: min(1100px, 100%); margin: 0 auto; }
.fx-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted); font-weight: 600; font-size: .9rem; }
.fx-tab .ic { width: 18px; height: 18px; }
.fx-tab[aria-selected="true"] { background: rgba(var(--accent-2-rgb), .16); border-color: var(--accent-2); color: var(--text); }
.fx-tab:focus-visible, .fx-tile:focus-visible, .fx-subtabs button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.fx-wrap { width: min(1100px, 100%); }
.fx-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fx-main:focus { outline: none; }
.fx-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fx-status { min-height: 1.3em; margin: 0; font-size: .85rem; color: var(--accent-2); }
.fx-status[data-state="error"] { color: #ffb3bf; }

/* overview tiles */
.fx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fx-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 92px; padding: 12px 14px; text-align: left; color: var(--text); border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 14px; background: rgba(20, 20, 34, .6); }
.fx-tile:hover { border-color: var(--accent-2); }
.fx-tile-v { font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-family: var(--mono); overflow-wrap: anywhere; }
.fx-tile-l { font-size: .85rem; font-weight: 600; }
.fx-tile-s { font-size: .75rem; color: var(--muted); }

/* lists */
.fx-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fx-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); min-width: 0; }
.fx-item.is-done .fx-title { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); color: var(--muted); }
.fx-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fx-title { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.fx-meta { margin: 0; font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.fx-note { margin: 0; font-size: .82rem; color: #cfcbea; overflow-wrap: anywhere; white-space: pre-wrap; }
.fx-btns { display: flex; gap: 2px; flex: none; }
.fx-btns-wide { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.fx-check { display: grid; place-items: center; width: 44px; height: 44px; flex: none; cursor: pointer; }
.fx-appic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--accent-rgb), .18); }
.fx-appic .ic { width: 22px; height: 22px; }
.fx-count { margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.fx-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--line-strong); color: #d8d5f2; background: rgba(255, 255, 255, .06); }
.fx-badge.ok, .fx-badge.st-done, .fx-badge.rs-shipped { color: #8ff0c4; border-color: rgba(61, 220, 151, .5); background: rgba(61, 220, 151, .12); }
.fx-badge.warn, .fx-badge.pr-medium { color: #ffd98f; border-color: rgba(251, 191, 36, .5); background: rgba(251, 191, 36, .1); }
.fx-badge.bad, .fx-badge.pr-high { color: #ffb3bf; border-color: rgba(255, 107, 129, .55); background: rgba(255, 107, 129, .12); }
.fx-badge.st-active, .fx-badge.rs-in-progress { color: #9eeaff; border-color: rgba(var(--accent-2-rgb), .55); background: rgba(var(--accent-2-rgb), .12); }

/* toolbars */
.fx-bar { display: flex; flex-direction: column; gap: 8px; }
.fx-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.fx-bar .btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
.fx-subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fx-subtabs button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--muted); font-weight: 600; }
.fx-subtabs button[aria-pressed="true"] { background: rgba(var(--accent-rgb), .24); border-color: var(--accent); color: var(--text); }
.fx-export { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.fx-manager .sx-msg { margin-top: 6px; }
.fx-ta { min-height: 84px; resize: vertical; }
.btn-row .btn, .fx-bar .btn, .fx-btns .btn { display: inline-flex; align-items: center; gap: 6px; }
.fx-dash .btn .ic { width: 18px; height: 18px; }

/* diagnostics, logs */
.fx-sumrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.fx-group { margin-top: 12px; }
.fx-group-h { margin: 0 0 6px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fx-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fx-check-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.fx-check-row .fx-badge { flex: none; min-width: 64px; text-align: center; }
.fx-log { gap: 4px; }
.fx-logrow { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; align-items: baseline; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: .82rem; background: rgba(255, 255, 255, .02); }
.fx-logt { font-family: var(--mono); font-size: .72rem; color: var(--muted); white-space: nowrap; }
.fx-logm { overflow-wrap: anywhere; min-width: 0; }
.fx-modal-list { margin: 4px 0 8px; padding-left: 20px; font-size: .9rem; color: #d8d5f2; }
.fx-modal-list li { margin: 2px 0; overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .fx-item { flex-wrap: wrap; }
  .fx-btns-wide { width: 100%; justify-content: flex-start; }
  .fx-logrow { grid-template-columns: 1fr auto; }
  .fx-logm { grid-column: 1 / -1; }
  .fx-nav { padding: 6px 8px 0; }
  .fx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
