/* Unified IndusOS navigation and full-width Operations Center */
.work > header {
  grid-template-columns: 150px minmax(0, 1fr) auto;
  column-gap: 12px;
  padding: 0 18px;
  background:
    radial-gradient(circle at 46% -120%, rgba(67, 143, 172, .34), transparent 55%),
    linear-gradient(110deg, #061c2a 0%, #0a2d40 55%, #103f52 100%);
  box-shadow: 0 8px 28px rgba(2, 18, 28, .28);
}

.top-brand {
  height: 42px;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, .14);
}

.module-switcher {
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: auto;
  overflow-y: visible;
}

.module-switcher button {
  height: 42px;
  padding: 0 13px;
  border: 1px solid transparent !important;
  border-radius: 8px;
  background: transparent !important;
  color: #bfd3dc !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.module-switcher button:hover:not(.active) {
  background: rgba(255, 255, 255, .09) !important;
  border-color: rgba(255, 255, 255, .12) !important;
  box-shadow: none;
}

.module-switcher button.active {
  background: linear-gradient(180deg, #f1c45f, #d9a233) !important;
  border-color: #f4cf7d !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .62);
}

.top-actions {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.ioc-mode .work > header { display: grid; }
.ioc-mode .native-app { min-height: calc(100vh - 72px); }
.ioc-mode .module-surface { width: 100%; }
.ioc-mode .module-surface .content { width: 100%; }
.ioc-shell {
  display: block;
  min-height: calc(100vh - 72px);
}
.ioc-side { display: none; }
.ioc-main {
  width: 100%;
  padding: 14px 20px 28px;
}

@media (max-width: 1180px) {
  .work > header { grid-template-columns: 54px minmax(0, 1fr) auto; padding: 0 12px; }
  .top-brand > span { display: none; }
  .top-brand { padding-right: 10px; }
  .module-switcher { justify-content: flex-start; }
  .module-switcher button { padding: 0 10px; }
}

@media (max-width: 600px) {
  .work > header { grid-template-columns: 46px minmax(0, 1fr) 42px; column-gap: 5px; padding: 0 8px; }
  .top-actions { padding-left: 6px; }
  .top-actions #lang, .top-actions #sync { display: none; }
  .module-switcher button { height: 38px; padding: 0 9px; }
  .ioc-main { padding: 12px 12px 24px; }
}

.linked-cause-panel {
  position: fixed;
  z-index: 120;
  right: 18px;
  top: 88px;
  width: min(440px, calc(100vw - 28px));
  max-height: calc(100vh - 106px);
  overflow: auto;
  color: #dce9ee;
  background: linear-gradient(155deg, rgba(12, 43, 61, .98), rgba(7, 27, 41, .98));
  border: 1px solid #3b5a6d;
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(0, 8, 14, .58);
  opacity: 0;
  transform: translateX(28px);
  pointer-events: none;
  transition: .22s ease;
}
.linked-cause-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.linked-cause-panel header { display: flex; justify-content: space-between; gap: 18px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.linked-cause-panel header small { color: #e6b349; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.linked-cause-panel header h2 { margin: 7px 0 5px; color: #fff; font-size: 19px; line-height: 1.3; }
.linked-cause-panel header p { margin: 0; color: #8eabb7; font-size: 12px; }
.linked-cause-panel header button { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid #426074; border-radius: 50%; background: #12364a; color: #fff; font-size: 20px; cursor: pointer; }
.linked-cause-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 15px 20px 5px; }
.linked-cause-score span { display: grid; gap: 4px; padding: 10px; border: 1px solid #294b5e; border-radius: 8px; background: rgba(18, 51, 70, .8); color: #83a0ac; font-size: 10px; }
.linked-cause-score strong { color: #fff; font-size: 13px; }
.linked-cause-score span:first-child strong { color: #ef8a81; }
.linked-cause-panel dl { display: grid; grid-template-columns: 122px 1fr; gap: 0; margin: 12px 20px; border-top: 1px solid rgba(255,255,255,.08); }
.linked-cause-panel dt,.linked-cause-panel dd { margin: 0; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; line-height: 1.45; }
.linked-cause-panel dt { color: #7f9ca8; }
.linked-cause-panel dd { color: #edf6f8; font-weight: 650; }
.linked-cause-panel footer { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 20px; }
.linked-cause-panel footer button { border: 1px solid #3c5b6e; border-radius: 8px; background: #113247; color: #dce9ee; padding: 10px 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.linked-cause-panel footer button:last-child { border-color: #e7b34a; background: linear-gradient(180deg,#f0c25d,#d69f30); color: #102c3d; }
@media(max-width:600px){.linked-cause-panel{top:80px;right:8px;max-height:calc(100vh - 88px)}.linked-cause-score{grid-template-columns:1fr}.linked-cause-panel dl{grid-template-columns:105px 1fr}}
