/* CSV Suite — single-row unified header */

:root {
  --suite-header-height: 48px;
}

.suite-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

.suite-header {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 48px;
  padding: 6px 14px 6px 16px;
  background: #1c1c22;
  border-bottom: 2px solid #000;
  color: #f3f1ea;
}

/* ── Left: brand + app tabs ── */
.suite-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.suite-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #f3f1ea;
  flex-shrink: 0;
  transition: opacity 0.12s;
}

.suite-brand:hover {
  opacity: 0.88;
}

.suite-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d98a1f;
  box-shadow: 0 0 0 3px rgba(217, 138, 31, 0.25);
  flex-shrink: 0;
}

/* SVG logo dropped at icon/logo.svg (replaces .suite-dot via suite-nav.js) */
.suite-logo {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.suite-brand-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.suite-divider {
  width: 1px;
  align-self: stretch;
  min-height: 26px;
  margin: 0 12px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

/* ── Suite nav tabs ── */
[data-suite-nav] {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 252px;
}

.suite-nav {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.suite-nav__tabs {
  display: inline-flex;
  align-items: stretch;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
}

.suite-nav__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.12s, color 0.12s;
}

.suite-nav__tab:last-child {
  border-right: none;
}

.suite-nav__tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.suite-nav__tab[aria-current="page"] {
  background: rgba(217, 138, 31, 0.22);
  color: #fff;
  cursor: default;
  pointer-events: none;
  box-shadow: inset 0 -2px 0 #d98a1f;
}

/* ── Right: app identity + actions ── */
.suite-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
  margin-right: auto;
}

.app-name {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: #eceae3;
}

.app-tagline {
  font-size: 11.5px;
  color: #9b968b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.app-actions::-webkit-scrollbar {
  display: none;
}

/* Home page tagline */
.suite-header--home .suite-tagline {
  margin-left: auto;
  font-size: 12px;
  color: #9b968b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Studio / Crosscheck: hide redundant title when tab is active */
.suite-header--studio .app-identity,
.suite-header--crosscheck .app-identity,
.suite-header--wrangler .app-identity {
  display: none;
}

.suite-header--studio .app-actions,
.suite-header--crosscheck .app-actions,
.suite-header--wrangler .app-actions {
  margin-left: auto;
}

/* Studio header controls on dark bar */
.suite-header .app-actions .seg-label {
  font-size: 10.5px;
  color: #9b968b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.suite-header .app-actions select {
  height: 32px;
  padding: 0 7px;
  font-size: 12px;
  color: #eceae3;
  background: #30303a;
  border: 1px solid #44444f;
  border-radius: 6px;
  outline: none;
}

.suite-header .app-actions select:focus {
  border-color: #7d93f5;
}

.suite-header .app-actions button {
  height: 32px;
  color: #eceae3;
  background: #30303a;
  border: 1px solid #44444f;
  border-radius: 6px;
}

.suite-header .app-actions button:hover {
  background: #3f3f4b;
  border-color: #62616c;
}

.suite-header .app-actions button.primary {
  background: #5664d6;
  border-color: #5664d6;
  color: #fff;
}

.suite-header .app-actions button.primary:hover {
  background: #4856cb;
  border-color: #4856cb;
}

.suite-header .app-actions .icon-btn {
  width: 32px;
  padding: 0;
  justify-content: center;
}

.suite-header .app-actions .pg-divider {
  width: 1px;
  align-self: stretch;
  min-height: 22px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 2px;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .suite-tagline,
  .app-tagline {
    display: none;
  }
}

@media (max-width: 900px) {
  .suite-brand-text {
    display: none;
  }

  .suite-divider {
    margin: 0 8px;
  }
}

@media (max-width: 720px) {
  .suite-header {
    padding: 6px 10px;
  }

  .suite-left {
    gap: 8px;
  }

  .suite-nav__tab {
    padding: 6px 9px;
    font-size: 11.5px;
  }

  .app-name {
    display: none;
  }
}

/* ── Help trigger (icon-only ? button in suite header) ── */
.suite-header .help-trigger {
  width: 32px;
  min-width: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.suite-header .help-trigger svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

/* ── Help guide modal header (shared across Studio, Wrangler, Crosscheck) ── */
.help-guide-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  background: #1c1c22;
  color: #f3f1ea;
  border-bottom: 2px solid #000;
  flex-shrink: 0;
}

.help-guide-head h2,
.help-guide-head b {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.help-guide-ver {
  font-size: 11px;
  color: #9b968b;
  font-family: Consolas, "Courier New", monospace;
}

.help-guide-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #cfccc3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}

.help-guide-close:hover {
  background: #3f3f4b;
  color: #fff;
}

.help-guide-close svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
