/* Hub v237: compact top bar, one action-flow surface, and office-first entry. */

.page-hub .topbar {
  gap: 14px;
}

.page-hub .topbar .hub-topbar-clock-v237 {
  position: relative;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  grid-template-rows: auto auto;
  min-width: 238px;
  margin-left: auto;
  padding: 1px 14px;
  align-items: center;
  column-gap: 12px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--text);
  text-align: left;
}

.page-hub .topbar .hub-topbar-clock-v237 .hub-clock-label {
  grid-column: 1;
  grid-row: 1;
  gap: 6px;
  color: #247560;
  font-size: 9px;
  letter-spacing: .1em;
}

.page-hub .topbar .hub-topbar-clock-v237 .hub-clock-label i {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 4px rgba(70, 227, 202, .1);
}

.page-hub .topbar .hub-topbar-clock-v237 time {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--text);
  font-size: 28px;
  letter-spacing: -.045em;
  text-shadow: none;
}

.page-hub .topbar .hub-topbar-clock-v237 time em {
  color: #2a77c7;
}

.page-hub .topbar .hub-topbar-clock-v237 .hub-clock-date {
  grid-column: 1;
  grid-row: 2;
  overflow: hidden;
  max-width: 150px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-hub-theme] .page-hub .topbar .hub-topbar-clock-v237 .hub-clock-label {
  color: var(--hub-theme-accent, #247560);
}

html[data-hub-theme] .page-hub .topbar .hub-topbar-clock-v237 .hub-clock-date {
  color: var(--hub-theme-muted, var(--muted));
}

html[data-dark="true"] .page-hub .topbar .hub-topbar-clock-v237 time {
  color: var(--text);
}

.hub-command-main-v228 {
  gap: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}

.hub-command-main-v228 > .hub-command-priority-v228,
.hub-command-main-v228 > .hub-command-pipeline-v228 {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hub-command-main-v228 > .hub-command-priority-v228 {
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

.hub-command-main-v228 > .hub-command-pipeline-v228 {
  padding-left: 16px;
}

.hub-command-main-v228 .hub-command-priority-v228 > header,
.hub-command-main-v228 .hub-command-pipeline-v228 > header {
  margin-bottom: 10px;
}

.hub-command-main-v228 .hub-command-priority-v228 > header .eyebrow,
.hub-command-main-v228 .hub-command-pipeline-v228 > header .eyebrow,
.hub-command-main-v228 .hub-command-pipeline-v228 > header > span {
  display: none;
}

.hub-command-main-v228 .hub-command-priority-v228 h3,
.hub-command-main-v228 .hub-command-pipeline-v228 h3 {
  font-size: 18px;
}

.hub-command-main-v228 .hub-command-priority-row-v228 {
  min-height: 52px;
  padding: 7px 9px;
}

.hub-command-main-v228 .hub-command-priority-row-v228 > b {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
}

.hub-command-main-v228 .hub-command-pipeline-list-v228 > button {
  min-height: 124px;
  padding: 12px 10px;
}

@media (min-width: 1024px) {
  .hub-office-simulation-ready-v235 .hub-department-floor-head-v228 #hub-department-view-toggle-v228 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .hub-command-main-v228 {
    grid-template-columns: 1fr;
  }

  .hub-command-main-v228 > .hub-command-priority-v228 {
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hub-command-main-v228 > .hub-command-pipeline-v228 {
    padding: 14px 0 0;
  }

  .hub-command-main-v228 .hub-command-priority-list-v228 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 820px) {
  .page-hub .topbar {
    flex-wrap: wrap;
  }

  .page-hub .topbar .hub-topbar-clock-v237 {
    order: 3;
    width: 100%;
    min-width: 0;
    padding: 7px 2px 0;
    grid-template-columns: minmax(0, 1fr) auto;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .page-hub .topbar .hub-topbar-clock-v237 .hub-clock-date {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .hub-command-main-v228 {
    display: grid;
    padding: 14px;
    border-radius: 17px;
  }

  .hub-command-main-v228 > .hub-command-priority-v228 {
    order: initial;
    padding: 0 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hub-command-main-v228 > .hub-command-pipeline-v228 {
    order: initial;
    padding: 14px 0 0;
  }
}

@media (max-width: 520px) {
  .page-hub .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hub .topbar .top-actions {
    grid-column: 1;
    grid-row: 2;
    align-items: center;
    flex-direction: row;
    gap: 6px;
    justify-self: end;
  }

  .page-hub .topbar .top-actions .secure { display: none; }

  .page-hub .topbar .top-actions .ghost {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 11px;
  }

  .page-hub .topbar .hub-topbar-clock-v237 {
    grid-column: 1;
    grid-row: 3;
  }

  .page-hub .topbar .hub-topbar-clock-v237 .hub-clock-label {
    font-size: 8px;
  }

  .page-hub .topbar .hub-topbar-clock-v237 time {
    font-size: 25px;
  }

  .page-hub .topbar .hub-topbar-clock-v237 .hub-clock-date {
    display: block;
    font-size: 8px;
  }
}
