/**
 * PROGRAM-005 — Pro / demo müşteri yüzeyi hijyeni
 * CC-SIDEBAR-UX-LOCK cc-ux-16 — ONAYLI; değiştirmeden önce npm run check:cc-sidebar-ux
 * Staff (?staff=1 | ?ops=1) bu kurallardan muaf kalır.
 */
html[data-customer-mode='pro'] .launcher-code,
html[data-customer-mode='demo'] .launcher-code,
html[data-customer-mode='pro'] .b07-live-sync,
html[data-customer-mode='demo'] .b07-live-sync,
html[data-customer-mode='pro'] .pack-module-lead,
html[data-customer-mode='demo'] .pack-module-lead,
html[data-customer-mode='pro'] #modules-db-center,
html[data-customer-mode='demo'] #modules-db-center,
html[data-customer-mode='pro'] #finance-cogs-center,
html[data-customer-mode='demo'] #finance-cogs-center,
html[data-customer-mode='pro'] #finance-bank-transfer-ops,
html[data-customer-mode='demo'] #finance-bank-transfer-ops,
html[data-customer-mode='pro'] #pilot-workspace,
html[data-customer-mode='demo'] #pilot-workspace,
html[data-customer-mode='pro'] #capability-intelligence-workspace,
html[data-customer-mode='demo'] #capability-intelligence-workspace,
html[data-customer-mode='pro'] .gtos-cc__gate,
html[data-customer-mode='demo'] .gtos-cc__gate,
html[data-customer-mode='pro'] .gtos-cc__cap-health,
html[data-customer-mode='demo'] .gtos-cc__cap-health,
html[data-customer-mode='pro'] [data-gtos-staff-only],
html[data-customer-mode='demo'] [data-gtos-staff-only],
html[data-customer-mode='onboarding'] [data-gtos-staff-only],
html[data-customer-mode='pro'] .gtos-mp--b01 [data-b01-staff-only],
html[data-customer-mode='demo'] .gtos-mp--b01 [data-b01-staff-only],
html[data-customer-mode='onboarding'] .gtos-mp--b01 [data-b01-staff-only] {
  display: none !important;
}

html[data-customer-mode='pro'] .module-pilot-notice,
html[data-customer-mode='demo'] .module-pilot-notice {
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--gtos-d2030-muted, var(--gtos-slate-400));
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

html[data-gtos-nav='on'] .sidebar-block.is-expanded .sidebar-block-items {
  display: block;
}

/* —— Sprint CC-UX-1: Command Center birincil · müşteri yüzeyi sadeleştirme —— */
html[data-gtos-cc='on'] #gtos-demo-seed-banner {
  display: none !important;
}

html[data-gtos-cc='on'] .header-insights,
html[data-gtos-cc='on'] .role-toggle,
html[data-gtos-cc='on'] #sidebar-pilot-dashboard,
html[data-gtos-cc='on'] #sidebar-capability-intelligence,
html[data-gtos-cc='on'] .sidebar-nav-group--mgmt {
  display: none !important;
}

html[data-gtos-cc='on'] #sidebar-open-module-dir-main {
  display: none !important;
}

html[data-gtos-cc='on'] #modules-directory:not([open]) {
  display: none !important;
}

html[data-gtos-cc='on'][data-customer-mode='demo'] .gtos-ctx__tools-more,
html[data-gtos-cc='on'][data-customer-mode='demo'] [data-gtos-ctx='journeys'],
html[data-gtos-cc='on'][data-customer-mode='demo'] [data-gtos-ctx='cmdk'],
html[data-gtos-cc='on'][data-customer-mode='demo'] [data-gtos-ctx='refresh'],
html[data-gtos-cc='on'][data-customer-mode='pro'] .gtos-ctx__tools-more,
html[data-gtos-cc='on'][data-customer-mode='pro'] [data-gtos-ctx='journeys'],
html[data-gtos-cc='on'][data-customer-mode='pro'] [data-gtos-ctx='cmdk'],
html[data-gtos-cc='on'][data-customer-mode='pro'] [data-gtos-ctx='refresh'] {
  display: none !important;
}

html[data-gtos-cc='on'][data-customer-mode='demo'] .search-box--with-industry .header-sector-heading,
html[data-gtos-cc='on'][data-customer-mode='demo'] .search-box--with-industry .global-search-industry {
  display: none !important;
}

html[data-gtos-cc='on'] .sidebar-nav-group:not(.sidebar-nav-group--mgmt) {
  display: none !important;
}

html[data-gtos-cc='on'] .sidebar-home-btn--primary {
  box-shadow: 0 0 0 1px rgba(207, 175, 107, 0.35);
}

/* Sidebar layout — üst sabit, modül listesi kayar, alt dock sabit */
html[data-gtos-cc='on'] .sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

html[data-gtos-cc='on'] .sidebar-brand-row,
html[data-gtos-cc='on'] .sidebar-nav-group,
html[data-gtos-cc='on'] .sidebar-home-btn {
  flex-shrink: 0;
}

html[data-gtos-cc='on'] #sidebar-modules-access {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0.15rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: none;
  background: transparent;
  margin-left: 0;
  margin-right: 0;
}

html[data-gtos-cc='on'] .sidebar-modules-label {
  list-style: none;
  cursor: default;
  width: 100%;
  text-align: left;
  flex-shrink: 0;
  border-color: rgba(207, 175, 107, 0.35);
  background: rgba(207, 175, 107, 0.1);
}

html[data-gtos-cc='on'] #sidebar-modules-access.is-collapsed .sidebar-modules-panel {
  display: none !important;
}

html[data-gtos-cc='on'] .sidebar-modules-panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 175, 107, 0.45) transparent;
  padding-top: 0.35rem;
  padding-right: 0.1rem;
}

html[data-gtos-cc='on'] .sidebar-modules-panel::-webkit-scrollbar {
  width: 6px;
}

html[data-gtos-cc='on'] .sidebar-modules-panel::-webkit-scrollbar-thumb {
  background: rgba(207, 175, 107, 0.45);
  border-radius: 999px;
}

html[data-gtos-cc='on'] .sidebar-modules-access-hint {
  margin: 0 0.45rem 0.35rem;
  font-size: 0.68rem;
  color: var(--maytras-landing-text-muted, var(--gtos-shell-ink-500));
}

html[data-gtos-cc='on'] .sidebar-quick-tools {
  flex-shrink: 0;
}

html[data-gtos-cc='on'] #sidebar-modules-access .sidebar-nav-accordion {
  flex: none;
  min-height: 0;
  max-height: none !important;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

html[data-gtos-cc='on'] .sidebar-nav-accordion.gtos-nav-ia .sidebar-workspace-head {
  cursor: pointer;
}

html[data-gtos-cc='on'] .sidebar-modules-label {
  flex-shrink: 0;
  margin-bottom: 0.2rem;
}

html[data-gtos-cc='on'] .sidebar-brand-row .sidebar-logo {
  align-items: center;
  gap: 0.45rem;
  padding-right: 0.35rem;
  overflow: hidden;
}

html[data-gtos-cc='on'] .sidebar-brand-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.02rem;
  min-width: 0;
  line-height: 1.05;
}

html[data-gtos-cc='on'] .sidebar-brand-tag {
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(207, 175, 107, 0.82);
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

html[data-gtos-cc='on'] .sidebar-block {
  flex-shrink: 0;
}

html[data-gtos-cc='on'] .sidebar-module-desc {
  display: none;
}

html[data-gtos-cc='on'] .sidebar-module-link {
  padding: 0.38rem 0.45rem 0.38rem 0.5rem;
  min-height: 0;
  gap: 0.35rem;
  align-items: center;
}

html[data-gtos-cc='on'] .sidebar-module-link.active {
  background: rgba(207, 175, 107, 0.22);
  color: var(--gtos-white);
  box-shadow: inset 0 0 0 1px rgba(207, 175, 107, 0.38);
}

html[data-gtos-cc='on'] .sidebar-module-link.is-favorite {
  border-left: 2px solid rgba(207, 175, 107, 0.75);
}

html[data-gtos-cc='on'] .sidebar-module-title {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  min-height: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  line-height: 1.25;
  font-size: 0.82rem;
}

html[data-gtos-cc='on'] .sidebar-pin-toggle {
  position: static;
  right: auto;
  top: auto;
  transform: none;
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.1rem;
  align-self: center;
  color: var(--gtos-gold-400);
}

html[data-gtos-cc='on'] .sidebar-workspace-head {
  padding: 0.45rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

html[data-gtos-cc='on'] .sidebar-block-items {
  display: none;
}

html[data-gtos-cc='on'] .sidebar-block.is-expanded .sidebar-block-items {
  display: flex;
}

html[data-gtos-cc='on'] .sidebar-modules-access-summary {
  display: none;
}

html[data-gtos-cc='on'] .sidebar-user-header {
  flex-shrink: 0;
  padding: 0.15rem 0.35rem 0.55rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

html[data-gtos-cc='on'] .sidebar-user-header .sidebar-account-dock__profile {
  width: 100%;
  min-width: 0;
  padding: 0;
}

html[data-gtos-cc='on'] .sidebar-user-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  min-width: 0;
  max-width: 100%;
}

html[data-gtos-cc='on'] .sidebar-user-name-row strong {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 0 1 auto;
}

html[data-gtos-cc='on'] .sidebar-user-tenant {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--maytras-landing-text-muted, var(--gtos-shell-ink-500));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

html[data-gtos-cc='on'] .sidebar-brand-row {
  flex-shrink: 0;
  margin-bottom: 0.15rem;
}

html[data-gtos-cc='on'] .sidebar-account-dock {
  position: static;
  flex-shrink: 0;
  margin-top: 0.35rem;
  padding: 0.55rem 0.35rem 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: none;
}

html[data-gtos-cc='on'] .sidebar-account-dock__profile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.15rem 0.55rem;
  font-size: 0.82rem;
}

html[data-gtos-cc='on'] .sidebar-account-dock__profile > i {
  font-size: 2rem;
  opacity: 0.92;
  color: var(--maytras-landing-text-muted, var(--gtos-shell-ink-500));
}

html[data-gtos-cc='on'] .sidebar-account-dock__meta {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

html[data-gtos-cc='on'] .sidebar-account-dock__meta strong {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-gtos-cc='on'] .sidebar-account-dock__hint {
  font-size: 0.68rem;
  opacity: 0.72;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

html[data-gtos-cc='on'] .sidebar-account-dock__grid {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

html[data-gtos-cc='on'] .sidebar-dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  width: 100%;
  padding: 0.52rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.35);
  color: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

html[data-gtos-cc='on'] .sidebar-dock-btn i {
  font-size: 0.78rem;
  opacity: 0.85;
}

html[data-gtos-cc='on'] .sidebar-dock-btn--accent {
  border-color: rgba(207, 175, 107, 0.45);
  background: linear-gradient(135deg, rgba(207, 175, 107, 0.22), rgba(120, 98, 56, 0.18));
  color: #f5e6c8;
}

html[data-gtos-cc='on'] .sidebar-dock-btn--ghost {
  opacity: 0.92;
}

html[data-gtos-cc='on'] .sidebar-dock-btn:hover {
  border-color: rgba(45, 212, 191, 0.35);
}

.gtos-sidebar-flytip {
  position: fixed;
  z-index: 10050;
  transform: translateY(-50%);
  padding: 0.42rem 0.72rem;
  border-radius: 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--gtos-slate-50);
  background: rgba(10, 14, 24, 0.97);
  border: 1px solid rgba(207, 175, 107, 0.38);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.gtos-sidebar-flytip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  margin-right: -1px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: rgba(207, 175, 107, 0.38);
}

.gtos-sidebar-flytip[hidden] {
  display: none !important;
}

[data-theme='dark'] html[data-gtos-cc='on'] .sidebar-dock-btn {
  background: rgba(15, 23, 42, 0.55);
}

/* CC collapsed — compact icon rail */
html[data-gtos-cc='on'] body.sidebar-collapsed {
  --sidebar-width: 72px;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar {
  padding: 0.65rem 0.35rem;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1105;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-home-btn > i,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-workspace-head > i:first-child,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-dock-btn > i,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-collapse-toggle > i,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-modules-label > i {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 1rem;
  font-size: 0.95rem !important;
  line-height: 1;
  opacity: 1 !important;
  color: var(--gtos-slate-300) !important;
  flex-shrink: 0;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-user-header {
  padding: 0.2rem 0;
  margin-bottom: 0.2rem;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-user-header .sidebar-account-dock__meta {
  display: none;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-user-header .sidebar-account-dock__profile {
  justify-content: center;
  gap: 0;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-user-header .sidebar-account-dock__profile > i {
  font-size: 1.65rem;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-nav-group,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-modules-access-hint,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-modules-label .sidebar-modules-access-title,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-module-title,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-dock-btn span,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-pin-toggle {
  display: none !important;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-modules-label {
  justify-content: center;
  padding: 0.55rem 0.35rem;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-home-btn,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-dock-btn,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-workspace-head,
html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-module-link {
  justify-content: center;
  padding: 0.5rem 0.35rem;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-brand-row {
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-logo {
  width: 100%;
  justify-content: center;
  padding: 0.35rem;
}

html[data-gtos-cc='on'] body.sidebar-collapsed #sidebar-modules-access {
  flex: 0 0 auto;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-modules-panel {
  overflow: hidden;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-account-dock {
  padding: 0.35rem 0;
  margin-top: 0.15rem;
}

html[data-gtos-cc='on'] body.sidebar-collapsed .sidebar-account-dock__grid {
  gap: 0.25rem;
}

/* —— CC chrome: Trade Context + modül üst şerit (taşma / hizalama) —— */
/* CC-MODULE-SHELL-LOCK: shell aligned → no full Trade Context strip (header Bağlam). */
html[data-gtos-cc='on']:not([data-customer-mode='staff']) #gtos-context-bar {
  display: none !important;
}

html[data-gtos-ctx='compact'] #gtos-context-bar {
  display: none !important;
}

html[data-gtos-ctx='compact'] .gtos-header-ctx {
  flex-shrink: 0;
}

.gtos-header-ctx__details {
  position: relative;
}

.gtos-header-ctx__summary {
  list-style: none;
  cursor: pointer;
}

.gtos-header-ctx__summary::-webkit-details-marker {
  display: none;
}

.gtos-header-ctx__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 1400;
  width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.65rem 0.75rem;
  border-radius: var(--gtos-radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--gtos-color-bg, var(--gtos-slate-900));
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
}

@media (max-width: 640px) {
  .gtos-header-ctx__panel {
    position: fixed;
    top: 4.5rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-width: none;
    box-sizing: border-box;
  }
}

.gtos-header-ctx__hint {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--gtos-color-text-muted, var(--gtos-slate-400));
}

.gtos-header-ctx__chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.gtos-header-ctx__chip {
  min-width: 0;
}

.gtos-header-ctx__chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

html[data-theme='light'] .gtos-header-ctx__panel {
  background: var(--gtos-white);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

html[data-gtos-cc='on'] .gtos-ctx-bar {
  box-sizing: border-box;
  width: 100%;
}

html[data-gtos-cc='on'][data-customer-mode='pro'] .gtos-ctx__inner,
html[data-gtos-cc='on'][data-customer-mode='demo'] .gtos-ctx__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: 'brand chips tools';
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.3rem;
  padding: 0.4rem clamp(0.75rem, 2vw, 1.35rem);
  max-width: min(100%, 1820px);
  margin: 0 auto;
  box-sizing: border-box;
}

html[data-gtos-cc='on'][data-customer-mode='pro'] .gtos-ctx__brand,
html[data-gtos-cc='on'][data-customer-mode='demo'] .gtos-ctx__brand {
  grid-area: brand;
}

html[data-gtos-cc='on'][data-customer-mode='pro'] .gtos-ctx__chips--primary,
html[data-gtos-cc='on'][data-customer-mode='demo'] .gtos-ctx__chips--primary {
  grid-area: chips;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  min-width: 0;
  padding-bottom: 0.1rem;
  -webkit-mask-image: linear-gradient(to right, var(--gtos-black) 90%, transparent 100%);
  mask-image: linear-gradient(to right, var(--gtos-black) 90%, transparent 100%);
}

html[data-gtos-cc='on'][data-customer-mode='pro'] .gtos-ctx__tools,
html[data-gtos-cc='on'][data-customer-mode='demo'] .gtos-ctx__tools {
  grid-area: tools;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 0.4rem;
  max-width: 100%;
}

html[data-gtos-cc='on'][data-customer-mode='pro'] .gtos-ctx__tools .gtos-cc__btn,
html[data-gtos-cc='on'][data-customer-mode='demo'] .gtos-ctx__tools .gtos-cc__btn {
  padding: 0.38rem 0.72rem;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
}

html[data-gtos-cc='on'][data-customer-mode='pro'] .gtos-ctx__more,
html[data-gtos-cc='on'][data-customer-mode='demo'] .gtos-ctx__more {
  grid-column: 1 / -1;
  justify-self: start;
}

html[data-gtos-cc='on'][data-customer-mode='pro'] #module-product-focus-band,
html[data-gtos-cc='on'][data-customer-mode='demo'] #module-product-focus-band {
  display: none !important;
}

html[data-gtos-cc='on'][data-customer-mode='pro'] .module-pilot-notice {
  display: none !important;
}

html[data-gtos-cc='on'] .module-workspace-bar {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: 'back main how agent';
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.65rem clamp(0.85rem, 2.2vw, 1.35rem) 0.75rem !important;
  margin-bottom: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  position: relative;
  z-index: 2;
}

html[data-gtos-cc='on'] .module-workspace-back {
  grid-area: back;
  align-self: center;
  flex-shrink: 0;
}

html[data-gtos-cc='on'] .module-workspace-title-wrap {
  grid-area: main;
  min-width: 0;
}

html[data-gtos-cc='on'] .module-workspace-how-shell {
  grid-area: how;
  flex-shrink: 0;
}

html[data-gtos-cc='on'] .module-workspace-agent-chip-host {
  grid-area: agent;
  flex-shrink: 1;
  min-width: 0;
  max-width: min(16rem, 34vw);
  justify-self: end;
}

html[data-gtos-cc='on'] .module-workspace-headline {
  align-items: center;
  min-width: 0;
}

html[data-gtos-cc='on'] .module-workspace-icon {
  width: 2.85rem;
  height: 2.85rem;
  min-width: 2.85rem;
  min-height: 2.85rem;
}

html[data-gtos-cc='on'] .module-workspace-title {
  font-size: 1.08rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

html[data-gtos-cc='on'] .module-workspace-subtitle {
  font-size: 0.8125rem;
  line-height: 1.42;
  max-width: none;
  color: var(--gtos-color-text-muted, var(--gtos-slate-400));
}

html[data-gtos-cc='on'] .module-pilot-notice {
  grid-column: 1 / -1;
  margin: 0 0 0.35rem;
  max-width: 100%;
  box-sizing: border-box;
}

#platform-controlled-pilot-banner {
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
  color: var(--gtos-color-text-muted, var(--gtos-slate-400));
  background: color-mix(in srgb, var(--gtos-color-primary, var(--gtos-gold-500)) 12%, transparent);
  border-bottom: 1px solid rgba(207, 175, 107, 0.22);
}

#platform-controlled-pilot-banner[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  html[data-gtos-cc='on'] .module-workspace-bar {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      'back how'
      'main main'
      'agent agent';
  }

  html[data-gtos-cc='on'] .module-workspace-agent-chip-host {
    max-width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  html[data-gtos-cc='on'][data-customer-mode='pro'] .gtos-ctx__inner,
  html[data-gtos-cc='on'][data-customer-mode='demo'] .gtos-ctx__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand tools'
      'chips chips';
  }
}

/* CC-MODULE-SHELL-LOCK v=cc-module-shell-001 — A01 referans kabuk; değiştirmek için yazılı CEO onayı + guard */
/* —— A01 referans kabuk (oval çerçeve + üst şerit) — tüm modül workspace —— */
html[data-gtos-cc='on'] #module-workspace-root:not(.hidden) {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--gtos-color-surface, var(--gtos-slate-800)) 42%, transparent);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

html[data-gtos-cc='on'] #module-workspace-root:not(.hidden) .module-workspace-bar {
  background: color-mix(in srgb, var(--gtos-color-bg, var(--gtos-slate-900)) 72%, transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1rem 1rem 0 0;
}

html[data-gtos-cc='on'] #module-workspace-root.module-workspace-root--b08 .module-workspace-bar::after {
  display: none;
}

html[data-gtos-cc='on'] #maytras-app.b08-workspace-immersive .main-header {
  display: flex !important;
}

html[data-gtos-cc='on'] .module-workspace-back {
  border-radius: 999px;
}

/* —— Full-bleed (yalnız staff / CC dışı): içerik inset —— */
html[data-gtos-cc='on'] #maytras-app.b04-workspace-fullbleed #module-workspace-root.module-workspace-root--b04 .module-workspace-body,
html[data-gtos-cc='on'] #maytras-app.b07-workspace-fullbleed #module-workspace-root.module-workspace-root--b07 .module-workspace-body,
html[data-gtos-cc='on'] #maytras-app.b08-workspace-fullbleed #module-workspace-root.module-workspace-root--b08 .module-workspace-body {
  padding-left: clamp(0.85rem, 2.2vw, 1.35rem);
  padding-right: clamp(0.85rem, 2.2vw, 1.35rem);
}

html[data-gtos-cc='on'] #maytras-app.b08-workspace-fullbleed #module-workspace-root.module-workspace-root--b08 .module-workspace-bar::after {
  left: clamp(0.85rem, 2.2vw, 1.35rem);
  right: clamp(0.85rem, 2.2vw, 1.35rem);
}

/* B07 — platform şeridinde başlık var; iç dash-head sadeleştir */
html[data-gtos-cc='on'] .gtos-mp--b07 .b07-dash-head__left {
  display: none;
}

html[data-gtos-cc='on'] .gtos-mp--b07 .b07-dash-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
}

html[data-gtos-cc='on'][data-customer-mode='pro'] .b07-demo-badge,
html[data-gtos-cc='on'][data-customer-mode='pro'] .b07-order-row__demo,
html[data-gtos-cc='on'][data-customer-mode='pro'] .b07-cargo-tile__demo,
html[data-gtos-cc='on'][data-customer-mode='pro'] .b07-demo-sync {
  display: none !important;
}

html[data-gtos-cc='on'][data-customer-mode='pro'] .b07-kpi-card .b07-demo-badge {
  display: none !important;
}

html[data-gtos-cc='on'] .gtos-mp--b07 .b07-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  html[data-gtos-cc='on'] .gtos-mp--b07 .b07-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

html[data-gtos-cc='on'] .gtos-mp--b07 .b07-eexport-root {
  min-width: 0;
  overflow-x: auto;
}

/* B08 — iç hero tekrarını azalt; koyu tema uyumu */
html[data-gtos-cc='on'] .module-card[data-module='b08'] .b08-kb-root {
  border-radius: 0 0 1rem 1rem;
  overflow: hidden;
  margin: 0;
}

html[data-gtos-cc='on'] .module-card[data-module='b08'] .b08-kb-hero-context {
  display: none;
}

html[data-gtos-cc='on'] .module-card[data-module='b08'] .b08-kb-hero-title {
  font-size: 1.05rem;
  font-weight: 700;
}

html[data-gtos-cc='on'] .module-card[data-module='b08'] .b08-kb-hero {
  padding: 0.65rem 0.85rem;
}

html[data-gtos-cc='on'][data-theme='dark'] .module-card[data-module='b08'] .b08-kb-root {
  --b08-page-bg: color-mix(in srgb, var(--gtos-color-surface, var(--gtos-slate-800)) 88%, transparent);
}

html[data-gtos-cc='on'][data-theme='dark'] .module-card[data-module='b08'] .b08-kb-hero {
  background: color-mix(in srgb, var(--gtos-color-surface, var(--gtos-slate-800)) 95%, transparent);
}

html[data-gtos-cc='on'][data-theme='dark'] .module-card[data-module='b08'] .b08-kb-page-head {
  background: color-mix(in srgb, var(--gtos-color-surface, var(--gtos-slate-800)) 92%, transparent);
}

@media (max-width: 768px) {
  html[data-gtos-cc='on'] #module-workspace-root:not(.hidden) {
    border-radius: 0.75rem;
  }

  html[data-gtos-cc='on'] .module-workspace-scroll,
  html[data-gtos-cc='on'] .module-workspace-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }

  html[data-gtos-cc='on'] .module-workspace-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  html[data-gtos-cc='on'] .module-workspace-back {
    min-height: 44px;
  }

  html[data-gtos-cc='on'] #module-workspace-root:not(.hidden) .module-workspace-bar {
    position: sticky;
    top: 0;
    z-index: 130;
    background: color-mix(in srgb, var(--gtos-color-surface, var(--gtos-slate-800)) 96%, transparent);
    backdrop-filter: blur(8px);
  }

  html[data-gtos-cc='on'] #module-workspace-root:not(.hidden) .module-workspace-scroll {
    max-height: none;
  }
}

/* =========================================================================
   FIN-GATE-20260826 — odeme kapisi paywall karti + sidebar kilit rozeti
   (Yasin P0: "once odeme, sonra dashboard"). UX-PROGRAM-2026-08 genel onayi
   kapsaminda EKLENDI — CC-MODULE-SHELL-LOCK / CC-SIDEBAR-UX-LOCK bolumlerine
   dokunmuyor, yalniz yeni/ayri siniflar tanimliyor. Guard: check:cc-sidebar-ux
   + check:cc-module-shell-ux (ikisi de bu ekten sonra PASS).
   ========================================================================= */

/* position:fixed + document.body kokune ekleniyor (unified-platform.js showPaywallBanner) —
   #maytras-app kendisi display:flex (row) oldugu icin normal-akista bir prepend, banner'i
   sidebar ile ayni satirda tam-yukseklik bir "kolon" yapiyordu (flex item bug). Fixed +
   body-seviyesi bu sorunu tamamen ortadan kaldirir, hicbir grid/flex varsayimina bagli degil. */
.maytras-paywall-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.1rem;
  background: color-mix(in srgb, var(--gtos-amber-500, #f2b90c) 16%, var(--gtos-slate-900, #0b1220));
  color: var(--gtos-color-text, #f5f7fb);
  border-bottom: 1px solid color-mix(in srgb, var(--gtos-amber-500, #f2b90c) 40%, transparent);
  font-size: 0.85rem;
  line-height: 1.4;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* .sidebar z-index:1001 (fixed, tam yukseklik) USTUNE CIKMAZ — kasten dusuk tutuldu,
     boylece banner sidebar'in altinda "kaybolur" (0-260px), yalniz icerik alaninda
     (260px+) gorunur; sidebar profil/hesap basligini ortmez. */
  z-index: 900;
}

.maytras-paywall-banner.hidden {
  display: none;
}

/* Fixed banner gorunurken #maytras-app icerigi altina itilir (ortusme yok). JS bunu
   showPaywallBanner/hidePaywallBanner icinde toggle eder. */
#maytras-app.maytras-app--paywall-banner-visible {
  padding-top: 2.5rem;
}

.maytras-paywall-banner i {
  color: var(--gtos-amber-500, #f2b90c);
  flex-shrink: 0;
}

.maytras-paywall-banner__text {
  flex: 1 1 auto;
}

.maytras-paywall-banner__cta {
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--gtos-amber-500, #f2b90c) 55%, transparent);
  background: transparent;
  color: inherit;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.maytras-paywall-banner__cta:hover {
  background: color-mix(in srgb, var(--gtos-amber-500, #f2b90c) 18%, transparent);
}

.maytras-paywall-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  max-width: 26rem;
  margin: 3.5rem auto;
  padding: 2.25rem 2rem;
}

.maytras-paywall-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--gtos-amber-500, #f2b90c) 20%, transparent);
  color: var(--gtos-amber-500, #f2b90c);
  font-size: 1.1rem;
}

.maytras-paywall-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gtos-color-text, #f5f7fb);
}

.maytras-paywall-card__message {
  margin: 0;
  color: var(--gtos-color-text-muted, rgba(245, 247, 251, 0.72));
  font-size: 0.92rem;
  line-height: 1.55;
}

.maytras-paywall-card__cta {
  margin-top: 0.35rem;
}

/* Sidebar modul linki: pending_payment/canceled iken tiklanabilir kalir (merak
   uyandirsin), yalniz ince bir kilit rozeti eklenir — modul acilinca zaten
   paywall kartina yonlenir (openModuleWorkspace guard). */
.sidebar-module-link--locked {
  position: relative;
}

.sidebar-module-link--locked::after {
  content: '\f023'; /* fa-lock */
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
  font-weight: 900;
  font-size: 0.65rem;
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  color: var(--gtos-amber-500, #f2b90c);
  opacity: 0.85;
}

/* GECE-TURU-2 (20260827, B07 P1 — durustluk):
   [data-b07-pilot-band] yukaridaki "pro/demo modda gizle" listesinde,
   .launcher-code / #pilot-workspace gibi STAFF gurultusuyle ayni gruptaydi.
   Oysa bu band staff notu degil, B07 KPI seridinin ORNEK VERI etiketidir:
   "$42.8k toplam satis", "1.284 aktif SKU", "3,2 gun ortalama teslim" ve
   ustlerindeki artis/azalis yuzdeleri HTML'de sabit yazili. Band gizlenince
   odeme yapan pro musteri bu rakamlari kendi canli verisi saniyordu — bu,
   "sahte/mock veriyi canliymis gibi gosterme" kirmizi cizgisinin ihlali.
   Band artik pro/demo modda da gorunur ve okunur bicimde stillenir
   (B02'deki .b02-demo-info-band deseniyle ayni amber ton). */
[data-b07-pilot-band] {
  flex: 1 1 100%;
  margin: 0.15rem 0 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--gtos-radius-md, 8px);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--gtos-amber-800, #92400e);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

html[data-theme='dark'] [data-b07-pilot-band],
html[data-gtos-theme='dark'] [data-b07-pilot-band] {
  color: var(--gtos-amber-300, #fcd34d);
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
}

/* GECE-TURU-2 (20260827, B07 P2): filtre/arama 0 sonuc verdiginde gosterilen
   bilgi satiri (applyB07OrderFilters). Tabloyu bos birakmak yerine neden bos
   oldugunu soyler. */
.b07-orders-empty {
  padding: 1.1rem 0.75rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gtos-d2030-muted, var(--gtos-slate-400, #94a3b8));
}
